joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0875
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00468e90
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp dword [ecx - 0xc], 0
je 0x468d34
mov eax, dword [esi + 4]
cmp eax, 6
je 0x468ce6
cmp eax, 7
je 0x468ce6
cmp eax, 8
je 0x468ce6
cmp eax, 9
je 0x468ce6
cmp eax, 0x12
jne 0x468d34
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x3c], xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x8400
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.00429860
cmp byte [eax + 0x1c], 0
je 0x468e29
call fcn.00429860
test byte [eax + 0x20], 8
je 0x468e29
call fcn.00429860
mov ebx, eax
call fcn.004043d0
test eax, eax
je 0x468e77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x18
push 0x4e7dd0
call fcn.00402420
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.00429320
mov esi, eax
push 0xf
push str.._Return_code:
mov ecx, esi
call fcn.00402420
push edi
mov ecx, esi
call fcn.00429320
mov esi, eax
call fcn.004043d0
test eax, eax
je 0x468e77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push 0
push 0x4e2418
call fcn.00402420
push ecx
push esi
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00429ba0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x468e0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x468e29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x468e63
cmp edi, 0xe0000011
je 0x468e63
cmp edi, 0xe0000027
je 0x468e63
cmp edi, 0xe0000008
je 0x468e63
cmp edi, 0x4c7
je 0x468e63
cmp edi, 0x642
je 0x468e63
cmp edi, 0xe0000029
je 0x468e63
push edi
call fcn.00470210
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
push 0x80004005
call fcn.00402570
int3
Function at 0x46aa10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0e54
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
add eax, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46aa70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.00470720
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00408e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.00408e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46afa0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.purgenotifseen
push dword [esi + 0x184]
call fcn.004a07c3
add esp, 8
test eax, eax
jne 0x46b0e8
lea ecx, [ebp - 0x20]
call fcn.0045b4c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x188]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409440
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46b0fc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
push 5
lea ecx, [ebp - 0x20]
call fcn.0043fb10
test al, al
jne 0x46b039
mov byte [ebp - 4], al
or esi, 0xffffffff
jmp 0x46b0a2
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00408720
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x46b061
push dword [esi + 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x46b073
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b09e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b0bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x46b0e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402570
int3
Function at 0x471c50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2675
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x509074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x471cb5
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp byte [eax], 0
je 0x471cae
mov ecx, dword [esi + 4]
call fcn.0040ea10
test al, al
je 0x471cae
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 4]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4d2abd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x509074]
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 0x473a6d
xor esi, esi
test eax, eax
je 0x4739d8
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 0x473a6d
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 0x473a48
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00473930
mov esi, eax
test esi, esi
jne 0x473a6d
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 0x473a16
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x473a59
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.00473ac0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x473a85
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.00496b9e
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x474940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4d2b65
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x509074]
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 0x4749e8
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4749e8
call fcn.00472d70
mov edi, eax
jmp 0x474af0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x474a05
call fcn.00472d70
jmp 0x474ae3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x474a20
call fcn.00472d70
jmp 0x474ae3
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 0x474a3e
mov edi, 0x8007000e
jmp 0x474ae5
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x474b32
jb 0x474a62
cmp eax, 0xffffffff
ja 0x474b32
cmp eax, 0x400
jbe 0x474a7b
push eax
lea ecx, [ebp]
call fcn.0040b240
mov dword [ebp - 4], 1
jmp 0x474aa0
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x474aa0
mov eax, dword [ebp]
test eax, eax
jne 0x474aae
mov edi, 0x8007000e
jmp 0x474ae5
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 0x474ac9
call fcn.00472d70
jmp 0x474ae3
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.004747e0
mov edi, eax
test esi, esi
je 0x474af0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x474b04
lea ecx, [ebp]
call fcn.0040b200
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.00496b9e
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00402570
int3
Function at 0x477a60
Capabilities:
Create directory
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0xc4
push 0xffffffffffffffff
push 0x4d37ad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x509074]
xor eax, ebp
mov dword [ebp + 0xc0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
lea ecx, [ebp]
call fcn.00406270
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.00421c60
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x477ac3
mov edx, dword [edx]
test edx, edx
jne 0x477acb
xor ecx, ecx
jmp 0x477adf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477ad0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.004035e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00403e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403e10
mov ecx, ebx
call fcn.0040e4f0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x477b19
xor al, al
jmp 0x477c3c
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x477c5f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
lea edx, [ebp - 0x10]
mov ecx, dword [edi]
push 0
call fcn.0040d760
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x477b60
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004049b0
mov esi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x98], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x30], 0x67452301
mov dword [ebp + 0x34], 0xefcdab89
mov dword [ebp + 0x38], 0x98badcfe
mov dword [ebp + 0x3c], 0x10325476
cmp byte [esi], al
je 0x477b9e
inc eax
cmp byte [eax + esi], 0
jne 0x477b97
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.0040fb40
lea ecx, [ebp + 0x30]
call fcn.0040fc10
lea ecx, [ebp + 0x30]
call fcn.0040fc10
cmp byte [ebp + 0x98], 0
je 0x477c03
xor edi, edi
mov dl, byte [ebp + edi + 0x88]
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 + 0x9c], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [ebp + edi*2 + 0x9d], al
inc edi
cmp edi, 0x10
jl 0x477bc3
mov byte [ebp + 0xbc], 0
lea eax, [ebp + 0x9c]
mov ecx, ebx
push eax
call fcn.0040d1c0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477c3a
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 + 0xc0]
xor ecx, ebp
call fcn.00496b9e
lea esp, [ebp + 0xc4]
pop ebp
ret
push 0x80004005
call fcn.00402570
int3
Function at 0x477c70
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4d37fa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x509074]
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], 0x4e0930
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x477cdf
xor bl, bl
or eax, eax
jmp 0x477e1f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.00498b50
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 0x477e15
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], 0x4e0930
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0x410
test edi, edi
je 0x477de5
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 0x477de5
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.004a07c3
add esp, 8
test eax, eax
jne 0x477de5
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp ebx, ecx
jne 0x477dc0
mov edx, dword [esi]
lea eax, [ebp + 8]
cmp eax, edx
jb 0x477d96
lea eax, [edx + ecx*4]
lea edx, [ebp + 8]
cmp edx, eax
mov edx, dword [esi]
jb 0x477e64
test ecx, ecx
jne 0x477d9f
lea ebx, [ecx + 1]
jmp 0x477dab
add ebx, ebx
js 0x477de2
cmp ebx, 0x1fffffff
ja 0x477de2
push 4
push ebx
push edx
call fcn.004a09cc
add esp, 0xc
test eax, eax
je 0x477de2
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 0x477ddb
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], 0x4e0930
test edi, edi
je 0x477e02
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 0x477d10
cmp dword [esi + 4], 0
mov eax, dword [ebp - 0x10]
setg bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4e0930
test eax, eax
je 0x477e3f
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.00496b9e
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.00402570
int3
Function at 0x478380
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 0x479bc0
mov dword [esp + 0x1c], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4783c9
push 0x64
call edi
inc esi
cmp esi, 0x14
jl 0x478397
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 0x479420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3c95
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x509074]
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], 0x4e2500
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x479529
push 0xa
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x479529
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x47955b
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 0x47950d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47950d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x47950d
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.00435000
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041e8d0
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 0x47950d
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 0x479529
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4e2500
test edi, edi
je 0x479549
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.00402570
int3
Function at 0x47d4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d43a4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x509074]
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], 0x4e92bc
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], 0x4e64c8
mov dword [ebp + 0xc], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0x4e70c8
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 0x47e510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4665
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x509074]
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], 0x4e64b0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0x4e64c8
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
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], 0x4e70c8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
je 0x47e63c
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], 0x4e0930
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x47e5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e0930
push esi
jmp 0x47e609
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 0x47e61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e0930
test esi, esi
je 0x47e616
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
test edi, edi
je 0x47e63c
jmp 0x47e6c3
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e0930
test esi, esi
je 0x47e63c
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 0x47e6af
xor esi, esi
nop
test esi, esi
js 0x47e708
cmp edi, eax
jge 0x47e708
mov ecx, dword [ebx]
add ecx, esi
cmp byte [ecx + 0x15c], 0
je 0x47e68e
cmp byte [ebp + 0xc], 0
je 0x47e67c
test byte [ecx + 0x94], 1
je 0x47e68e
lea eax, [ebp - 0x2c]
push eax
call fcn.004609f0
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
jmp 0x47e691
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
inc edi
add esi, 0x16c
cmp edi, eax
jl 0x47e650
test ecx, ecx
jle 0x47e6af
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.00448970
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0xec]
call fcn.00440cf0
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 0x47e6f2
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.00402570
int3