joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbcf4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
lea eax, [ebx + 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 ecx, dword [eax]
or eax, 0xffffffff
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4733ce
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x1c]
call fcn.00479980
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x10]
call fcn.004094c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 4]
call fcn.004094c0
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 0x473970
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbdf5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.purgenotifseen
push dword [edi + 0x184]
call fcn.004ab843
add esp, 8
test eax, eax
jne 0x473afe
push SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.00441ab0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x4f28f8
mov dword [ebp - 4], 1
lea eax, [edi + 0x188]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409b90
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x473b14
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 5
lea ecx, [ebp - 0x20]
call fcn.00443920
test al, al
jne 0x473a2b
mov byte [ebp - 4], 1
or ebx, 0xffffffff
jmp 0x473aa0
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00408da0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x473a53
push dword [edi + 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x473a65
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x473a9c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x473ac6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x473afe
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402720
int3
Function at 0x47c9e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4dd78d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x515080]
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 ebx, ecx
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edi, dword [ebx + 4]
push ecx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x47cb1f
test eax, eax
je 0x47ca81
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x47cb1f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47caf7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0047c9e0
mov esi, eax
test esi, esi
jne 0x47cb1f
lea eax, [ebp - 0x2c]
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 dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47cac1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47cb0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0047cb70
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47cb3b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004a1bc0
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x47da50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4dd835
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x515080]
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 ebx, dword [ebp + 0x414]
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
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x47daf7
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x47daf7
call fcn.0047bdf0
mov edi, eax
jmp 0x47dbfd
push dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47db12
call fcn.0047bdf0
jmp 0x47dbf0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x47db2d
call fcn.0047bdf0
jmp 0x47dbf0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x47db4b
mov edi, 0x8007000e
jmp 0x47dbf2
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x47dc3f
jb 0x47db6f
cmp eax, 0xffffffff
ja 0x47dc3f
cmp eax, 0x400
jbe 0x47db88
push eax
lea ecx, [ebp]
call fcn.0040bac0
mov dword [ebp - 4], 1
jmp 0x47dbad
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x47dbad
mov eax, dword [ebp]
test eax, eax
jne 0x47dbbb
mov edi, 0x8007000e
jmp 0x47dbf2
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 0x47dbd6
call fcn.0047bdf0
jmp 0x47dbf0
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.0047d8f0
mov edi, eax
test esi, esi
je 0x47dbfd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x47dc11
lea ecx, [ebp]
call fcn.0040ba80
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.004a1bc0
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00402720
int3
Function at 0x481220
Capabilities:
Create directory
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0xc4
push 0xffffffffffffffff
push 0x4de47d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x515080]
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 dword [ebp - 0x14], ecx
lea ecx, [ebp]
call fcn.00406810
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.00423610
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 7
jbe 0x481286
mov edx, dword [edx]
test edx, edx
jne 0x48128e
xor ecx, ecx
jmp 0x4812a2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481293
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00403890
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.004040e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004040e0
mov ecx, ebx
call fcn.0040ecb0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4812dc
xor al, al
jmp 0x481425
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x481448
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
lea edx, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0
mov ecx, dword [ecx]
call fcn.0040df30
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x481332
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404e50
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 0x481377
nop dword [eax]
inc eax
cmp byte [eax + esi], 0
jne 0x481370
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.004104c0
lea ecx, [ebp + 0x30]
call fcn.00410590
lea ecx, [ebp + 0x30]
call fcn.00410590
cmp byte [ebp + 0x98], 0
je 0x4813e0
xor edi, edi
nop dword [eax]
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 0x4813a0
mov byte [ebp + 0xbc], 0
lea eax, [ebp + 0x9c]
mov ecx, ebx
push eax
call fcn.0040d900
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 0x481423
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
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.004a1bc0
lea esp, [ebp + 0xc4]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x481460
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4de4ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x515080]
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 - 0x1c], ecx
push 0
push 2
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], 0x4ed624
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x4814d1
mov byte [ebp - 0xd], 0
or ebx, eax
jmp 0x48160d
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.004a3ba0
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 0x481605
nop
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x24], 0x4ed624
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x410
test edi, edi
je 0x4815d5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x4815d5
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
call fcn.004ab843
add esp, 8
test eax, eax
jne 0x4815d5
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp ebx, ecx
jne 0x4815b0
mov edx, dword [esi]
lea eax, [ebp + 8]
cmp eax, edx
jb 0x481586
lea eax, [edx + ecx*4]
lea edx, [ebp + 8]
cmp edx, eax
mov edx, dword [esi]
jb 0x481653
test ecx, ecx
jne 0x48158f
lea ebx, [ecx + 1]
jmp 0x48159b
add ebx, ebx
js 0x4815d2
cmp ebx, 0x1fffffff
ja 0x4815d2
push 4
push ebx
push edx
call fcn.004aba4c
add esp, 0xc
test eax, eax
je 0x4815d2
mov dword [esi + 8], ebx
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4815cb
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 1
inc dword [esi + 4]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], 0x4ed624
test edi, edi
je 0x4815f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x481500
cmp dword [esi + 4], 0
setg byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x4ed624
test ebx, ebx
je 0x48162d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0xd]
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.004a1bc0
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x481c20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
xor esi, esi
nop dword [eax]
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
push 0x483810
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x481c68
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x481c30
pop edi
pop esi
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
add esp, 8
ret
Function at 0x482fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de9c5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x28], 0x4ef1f4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x483115
push 0xa
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x483115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
call fcn.004046f0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x483147
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x10]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4830ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4830ed
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4830ed
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00437d50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0041fcf0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4830ed
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or esi, 0xffffffff
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x483115
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4ef1f4
test ebx, ebx
je 0x483135
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24], 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.00402720
int3
Function at 0x487570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df0f4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x515080]
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], 0x4f5f94
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 - 0x14], edi
mov dword [edi], 0x4f319c
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402750
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0x4f3da8
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 0x488770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x4f3184
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0x4f319c
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402750
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x34], 0x4f3da8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
je 0x4888a5
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
mov dword [ebp - 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x4ed624
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x488836
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
push esi
jmp 0x48886f
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x488888
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
test esi, esi
je 0x48887c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x4888a5
mov ebx, dword [ebp - 0x10]
jmp 0x48892a
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0x4ed624
test esi, esi
je 0x4888a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [ebp - 0x10], 0
test eax, eax
jle 0x488916
xor esi, esi
test esi, esi
js 0x48897b
cmp edi, eax
jge 0x48897b
mov ecx, dword [ebx]
add ecx, esi
cmp byte [ecx + 0x15c], 0
je 0x4888f5
cmp byte [ebp + 0xc], 0
je 0x4888e3
test byte [ecx + 0x94], 1
je 0x4888f5
lea eax, [ebp - 0x34]
push eax
call fcn.004685c0
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x4888f8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
inc edi
add esi, 0x16c
cmp edi, eax
jl 0x4888b7
test ecx, ecx
jle 0x488916
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.0044df10
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ecx + 0xec]
call fcn.00444f90
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x488965
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
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 8
push 0x8000000b
call fcn.00402720
int3
Function at 0x4a1acd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004b3ac9
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4a1b0c
sub eax, 1
je 0x4a1b07
sub eax, 1
je 0x4a1b03
xor eax, eax
leave
ret
push 3
jmp 0x4a1b0e
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4a29c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a2a02
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a2a02
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a2a02
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a2a02
cmp dword [ecx + 0x74], 0xe
jbe 0x4a2a02
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret