joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0xb78e8927
sub eax, 0xb74e5724
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x173fa6da
add dword [ebp - 0x40], 0x37129e71
mov dword [ebp - 0x3c], 0x9d53fad9
sub dword [ebp - 0x3c], 0x6b20ae94
mov dword [ebp - 0x38], 0xbe15380d
add dword [ebp - 0x38], 0x8e370c21
mov dword [ebp - 0x34], 0x577c1381
add dword [ebp - 0x34], 0xa883ec7f
lea eax, [ebp - 0x40]
push eax
mov eax, 0xc27740c3
sub eax, 0xc236d05f
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x7862471b
sub dword [ebp - 0x40], 0x3efddc5
mov dword [ebp - 0x3c], 0x1d8a869f
add dword [ebp - 0x3c], 0x23e1dad6
mov dword [ebp - 0x38], 0x7aba054b
add dword [ebp - 0x38], 0xe8b56721
mov dword [ebp - 0x34], 0xd5ac7302
add dword [ebp - 0x34], 0x2a538cfe
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a421
push 0
call eax
mov ecx, 0x5d0569fa
sub ecx, 0x5d051352
mov esi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x30]
mov edi, 0x47ece320
sub edi, 0x9906bff5
xor dword [ebp - 0x2c], 0x4b825c65
mov ebx, dword [edx]
add dword [ebp - 0x14], 0x99fa471f
add ebx, edi
xor dword [ebp - 0x10], 0xa765d14b
mov dword [esi], ebx
xor dword [ebp - 0x1c], 0x3ebd11df
add esi, 0xd8812d25
add esi, 0x277ed2df
add edx, 0x1b0fda42
add edx, 0xe4f025c2
loop 0x40331a
add eax, 0xbcd1249
sub eax, 0xbcbc4d6
mov ebx, eax
add eax, 0x54f8b54a
add eax, 0xab074abb
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x6468286f
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5f6076b2
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
sub byte [esi + ebx], 0x2f
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xd5
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 1
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xa6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x93
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0x7c
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xd9
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xed
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x4a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x10
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x65
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x76
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x8a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x5c
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x55
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4057f9
Capabilities:
Parse pe header

Disassembly:
jmp 0x442baf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442bee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442bee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442bee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442bee
cmp dword [ecx + 0x74], 0xe
jbe 0x442bee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4065f5
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x417380
sub esp, 0x3c
mov eax, dword [0x4d1034]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x417523
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4173f1
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.004054d4
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4174d1
cmp dword [esp + 0x54], 3
jbe 0x4174d1
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov edi, edx
mov ebp, edx
xor edi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae eax, ebx
shr ebp, 2
xor esi, esi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x417479
mov ebx, eax
nop dword [eax]
imul ecx, dword [ebx + esi*4], 0x5bd1e991
inc esi
imul edi, edi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor edi, ecx
cmp esi, ebp
jl 0x417450
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and edx, 3
lea esi, [eax + ebp*4]
xor ecx, ecx
sub edx, 1
je 0x4174a0
sub edx, 1
je 0x417497
sub edx, 1
jne 0x4174ad
movsx ecx, byte [esi + 2]
shl ecx, 0x10
movsx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4174c9
cmp ecx, dword [esp + 0x54]
je 0x41753c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x417514
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x417506
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417591
push ecx
push ebx
call fcn.00401a32
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4173d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403058
add esp, 0x3c
ret
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x417523
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x417585
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417591
push ecx
push ebx
call fcn.00401a32
add esp, 8
jmp 0x417523
call fcn.004047d2
int3
Function at 0x496524
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401da7
mov eax, dword [0x4d1034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405eb6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496566
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4966c2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d4b88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x4d4b88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4966bb
cmp eax, dword [edi + ecx + 0x24]
jne 0x4966bb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4966bb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x4966bb
jg 0x496631
test eax, eax
jb 0x4966bb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4966bb
jl 0x49664b
cmp dword [ebp - 0x1008], eax
ja 0x4966bb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496669
test ebx, ebx
je 0x4966a2
cmp ecx, edi
jae 0x4966a2
mov al, byte [ecx]
cmp al, 0xd
jne 0x496683
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49668f
cmp byte [ecx + 1], 0xa
jne 0x49668f
inc ecx
jmp 0x49668f
movzx eax, al
movsx eax, byte [eax + 0x4d1b98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496669
cmp edx, ebx
jne 0x496669
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4966c0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403058
leave
ret
Function at 0x49ade1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d1034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ae2c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b2a3
test al, al
jne 0x49ae26
sub edx, 2
cmp edx, edi
jne 0x49ae0c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ae4e
lea eax, [edi + 2]
cmp edx, eax
je 0x49ae4e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a9da
add esp, 0x10
jmp 0x49af48
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b2a3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ae91
push dword [ebp - 0x25c]
jmp 0x49ae3e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49aece
cmp word [ebp - 0x226], 0
je 0x49aeef
cmp word [ebp - 0x226], ax
jne 0x49aece
cmp word [ebp - 0x224], 0
je 0x49aeef
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a9da
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49af3b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49aea8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49af23
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49af48
push 0x49a3c2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556f
add esp, 0x10
jmp 0x49af18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403058
leave
ret
Function at 0x4a6abd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d4b88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6afd
cmp byte [ebx], 0xa
jne 0x4a6afd
or byte [eax + edi + 0x28], 4
jmp 0x4a6b02
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6c00
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6be2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6b31
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6b56
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6b60
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a6b13
jmp 0x4a6c00
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6bdd
cmp dword [ebp - 0xc], 0
je 0x4a6bdd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d4b88]
test byte [eax + edi + 0x28], 0x48
je 0x4a6bb7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6ba2
mov byte [esi], dl
jmp 0x4a6bb3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d4b88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6c00
cmp byte [ebp - 1], 0xa
jne 0x4a6bc6
cmp esi, ebx
jne 0x4a6bc6
mov byte [esi], 0xa
jmp 0x4a6bff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401942
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6c00
mov byte [esi], 0xd
jmp 0x4a6bff
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d4b88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6bfc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6c00
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a6c5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d4b88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6c9f
cmp word [esi], dx
jne 0x4a6c9f
or byte [edi + eax + 0x28], 4
jmp 0x4a6ca4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a6df7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a6dd7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6ce6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6d1c
cmp eax, edx
jae 0x4a6d28
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a6cbe
jmp 0x4a6df7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6dd3
cmp dword [ebp - 0x14], 0
je 0x4a6dd3
mov eax, dword [ebx*4 + 0x4d4b88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6dab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6d74
mov word [esi], cx
jmp 0x4a6da7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d4b88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d4b88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d4b88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6df7
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6dbc
cmp esi, dword [ebp + 0xc]
jne 0x4a6dbc
mov word [esi], bx
jmp 0x4a6df4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401942
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6df7
push 0xd
jmp 0x4a6df0
mov ecx, dword [ebx*4 + 0x4d4b88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6dee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6df7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404f36
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404f7d
cmp ebx, 0x20
je 0x404f7d
cmp ebx, 0xffffffe0
je 0x404f7d
jne 0x404f86
add eax, 1
cmp esi, eax
je 0x404f93
jne 0x404f62
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404f97
jne 0x404f5e
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x404fab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x404ff0
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x404ff6
add eax, 4
pop esi
dec esi
push esi
jne 0x404fd8
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x4190c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ff8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00472dc1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419142
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470877
mov eax, dword [eax]
push 0x5ba224
push eax
call fcn.00463294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047304c
test bl, bl
je 0x419142
push 0x5ba224
lea ecx, [esp + 0xc]
call fcn.00473428
push 0x5bdd80
lea ecx, [esp + 0xc]
call fcn.00473428
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41917e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047304c
jmp 0x419249
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x419202
lea edx, [esp + 0x7c]
push 0x5bdd7c
push edx
call fcn.00463294
add esp, 8
test eax, eax
je 0x419202
lea eax, [esp + 0x7c]
push 0x5bdd78
push eax
call fcn.00463294
add esp, 8
test eax, eax
je 0x419202
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419192
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047304c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x419a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419aa2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc