joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4700e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4b30ad
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x20c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x47021d
xor esi, esi
test eax, eax
je 0x470188
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x47021d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4701f8
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.004700e0
mov esi, eax
test esi, esi
jne 0x47021d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4701c6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470209
push eax
call ebx
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.00470270
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470235
push eax
call ebx
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0047dde6
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x471120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4b3155
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4711c8
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4711c8
call fcn.0046f550
mov edi, eax
jmp 0x4712d0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4711e5
call fcn.0046f550
jmp 0x4712c3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x471200
call fcn.0046f550
jmp 0x4712c3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x47121e
mov edi, 0x8007000e
jmp 0x4712c5
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x471312
jb 0x471242
cmp eax, 0xffffffff
ja 0x471312
cmp eax, 0x400
jbe 0x47125b
push eax
lea ecx, [ebp]
call fcn.0040abd0
mov dword [ebp - 4], 1
jmp 0x471280
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x471280
mov eax, dword [ebp]
test eax, eax
jne 0x47128e
mov edi, 0x8007000e
jmp 0x4712c5
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4712a9
call fcn.0046f550
jmp 0x4712c3
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.00470fc0
mov edi, eax
test esi, esi
je 0x4712d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4712e4
lea ecx, [ebp]
call fcn.0040ab90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0047dde6
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004027c0
int3
Function at 0x474240
Capabilities:
Create directory
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4b3d8d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040e8e0
mov dword [ebp - 4], 0
mov ecx, ebx
push eax
call fcn.00408f80
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4742b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4742c5
xor al, al
jmp 0x4743dd
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x474400
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x10]
mov ecx, dword [esi]
push 0
call fcn.0040d0f0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x47430c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404b10
mov esi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
cmp byte [esi], al
je 0x474347
inc eax
cmp byte [eax + esi], 0
jne 0x474340
push eax
push esi
lea ecx, [ebp]
call fcn.0040ff20
lea ecx, [ebp]
call fcn.0040fff0
lea ecx, [ebp]
call fcn.0040fff0
cmp byte [ebp + 0x68], 0
je 0x4743aa
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [ebp + edi*2 + 0x6c], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [ebp + edi*2 + 0x6d], al
inc edi
cmp edi, 0x10
jl 0x474370
mov byte [ebp + 0x8c], 0
or edi, 0xffffffff
lea eax, [ebp + 0x6c]
mov ecx, ebx
push eax
call fcn.0040cb50
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4743db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0047dde6
lea esp, [ebp + 0x94]
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x474410
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4b3dda
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e4050]
xor eax, ebp
mov dword [ebp + 0xa4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], ecx
push 0
push 2
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x28], 0x4c2580
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x47447f
xor bl, bl
or eax, eax
jmp 0x4745bf
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.0047fe00
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4745b5
nop dword [eax]
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x20], 0x4c2580
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0x410
test edi, edi
je 0x474585
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x474585
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.004879a3
add esp, 8
test eax, eax
jne 0x474585
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp ebx, ecx
jne 0x474560
mov edx, dword [esi]
lea eax, [ebp + 8]
cmp eax, edx
jb 0x474536
lea eax, [edx + ecx*4]
lea edx, [ebp + 8]
cmp edx, eax
mov edx, dword [esi]
jb 0x474604
test ecx, ecx
jne 0x47453f
lea ebx, [ecx + 1]
jmp 0x47454b
add ebx, ebx
js 0x474582
cmp ebx, 0x1fffffff
ja 0x474582
push 4
push ebx
push edx
call fcn.00487b3f
add esp, 0xc
test eax, eax
je 0x474582
mov dword [esi + 8], ebx
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x30], ecx
mov eax, dword [esi]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x47457b
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 1
inc dword [esi + 4]
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x4c2580
test edi, edi
je 0x4745a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4744b0
cmp dword [esi + 4], 0
mov eax, dword [ebp - 0x10]
setg bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4c2580
test eax, eax
je 0x4745df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4c]
xor ecx, ebp
call fcn.0047dde6
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x474b20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x476260
mov dword [esp + 0x1c], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x474b69
push 0x64
call edi
inc esi
cmp esi, 0x14
jl 0x474b37
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x475ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b42d5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], 0x4c4100
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x475bc9
push 0xa
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x475bc9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x475bfb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x475bad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x475bad
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x475bad
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.00431990
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041e7f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475bad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ebx, 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x475bc9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4c4100
test edi, edi
je 0x475be9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3
Function at 0x479b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b49e4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x4cae14
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
lea edi, [ebx + 0x30]
mov eax, dword [ebp + 0x10]
lea esi, [edi + 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], edi
mov dword [edi], 0x4c802c
mov dword [ebp + 0xc], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004027f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0x4c8c10
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47abe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x4c8014
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0x4c802c
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004027f0
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x2c], 0x4c8c10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
je 0x47ad0c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4c2580
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x47aca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4c2580
push esi
jmp 0x47acd9
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47acef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4c2580
test esi, esi
je 0x47ace6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
test edi, edi
je 0x47ad0c
jmp 0x47ad93
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4c2580
test esi, esi
je 0x47ad0c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [ebp + 8], 0
test eax, eax
jle 0x47ad7f
xor esi, esi
nop
test esi, esi
js 0x47add8
cmp edi, eax
jge 0x47add8
mov ecx, dword [ebx]
add ecx, esi
cmp byte [ecx + 0x15c], 0
je 0x47ad5e
cmp byte [ebp + 0xc], 0
je 0x47ad4c
test byte [ecx + 0x94], 1
je 0x47ad5e
lea eax, [ebp - 0x2c]
push eax
call fcn.0045d1d0
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
jmp 0x47ad61
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
inc edi
add esi, 0x16c
cmp edi, eax
jl 0x47ad20
test ecx, ecx
jle 0x47ad7f
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.00444f20
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0xec]
call fcn.0043d2e0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47adc2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x8000000b
call fcn.004027c0
int3
Function at 0x47ec41
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47ec80
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47ec80
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ec80
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47ec80
cmp dword [ecx + 0x74], 0xe
jbe 0x47ec80
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x490e0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0047ef10
mov eax, dword [0x4e4050]
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.0048f34d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x490e51
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x490fad
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049d9c0
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 + 0x4e5e60]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004909a4
mov ecx, dword [esi*4 + 0x4e5e60]
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 0x490fa6
cmp eax, dword [edi + ecx + 0x24]
jne 0x490fa6
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 0x490fa6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004909a4
add esp, 0x14
test edx, edx
jl 0x490fa6
jg 0x490f1c
test eax, eax
jb 0x490fa6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x490fa6
jl 0x490f36
cmp dword [ebp - 0x1008], eax
ja 0x490fa6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490f54
test ebx, ebx
je 0x490f8d
cmp ecx, edi
jae 0x490f8d
mov al, byte [ecx]
cmp al, 0xd
jne 0x490f6e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490f7a
cmp byte [ecx + 1], 0xa
jne 0x490f7a
inc ecx
jmp 0x490f7a
movzx eax, al
movsx eax, byte [eax + 0x4e4980]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490f54
cmp edx, ebx
jne 0x490f54
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x490fab
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047dde6
leave
ret

Function at 0x4913aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049104c

Function at 0x4913b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004911db

Function at 0x491c05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bab30
push 0x4bab28
push str.FlsAlloc
push 0x1e
call fcn.00491aee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x491c39
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b64f8]
call esi
jmp 0x491c3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x491c83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bab40
push 0x4bab38
push str.FlsGetValue
push 0x20
call fcn.00491aee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x491cba
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b64f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4956ac
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e4050]
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 0x4956f7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049584b
test al, al
jne 0x4956f1
sub edx, 2
cmp edx, edi
jne 0x4956d7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495719
lea eax, [edi + 2]
cmp edx, eax
je 0x495719
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004955f8
add esp, 0x10
jmp 0x495813
push esi
lea ecx, [ebp - 0x255]
call fcn.0049584b
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 0x49575c
push dword [ebp - 0x25c]
jmp 0x495709
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 0x495799
cmp word [ebp - 0x226], 0
je 0x4957ba
cmp word [ebp - 0x226], ax
jne 0x495799
cmp word [ebp - 0x224], 0
je 0x4957ba
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004955f8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495806
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495773
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4957ee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495813
push 0x495428
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049c630
add esp, 0x10
jmp 0x4957e3
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.0047dde6
leave
ret