joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408650
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
push ebx
push ebx
push 2
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00422c2f
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 2
push ecx
call edi
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor edi, edi
cmp dword [esi], ebx
jbe 0x408710
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
push ecx
push edx
call ebp
test eax, eax
jne 0x408725
add edi, 1
add ebx, 8
cmp edi, dword [esi]
jb 0x4086f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00441a71
add esp, 0x18
ret
push esi
call fcn.00422c2a
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00441a71
add esp, 0x18
ret

Function at 0x408760
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1014
call fcn.00444310
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x1010], eax
mov eax, dword [esp + 0x1018]
push esi
push 0
lea ecx, [esp + 8]
push ecx
push 0x200
lea edx, [esp + 0x20]
push edx
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x2d1400
push eax
or esi, 0xffffffff
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
movzx eax, byte [esp + 0x2c]
jne 0x4087c2
mov eax, esi
mov ecx, dword [esp + 0x1014]
pop esi
xor ecx, esp
call fcn.00441a71
add esp, 0x1014
ret
Function at 0x408ff0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x124
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
call fcn.0042b725
xor esi, esi
cmp eax, esi
jne 0x40901a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
push ebx
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov edx, dword [0x59e704]
mov edi, eax
add edi, 0x10
cmp edx, esi
mov dword [esp + 0x14], edi
jle 0x409069
mov eax, 0x49b0c6
mov edi, edi
xor ecx, ecx
mov dword [eax - 0x116], esi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
add eax, 0x3d0
sub edx, 1
jne 0x409040
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
shr edx, cl
test dl, 1
je 0x409172
mov bl, cl
add bl, 0x41
movsx esi, bl
push esi
push str._C:_
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00441afb
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
call ebp
cmp eax, 3
je 0x4090c6
cmp eax, 2
jne 0x40916e
push esi
push str.._C:
lea edx, [esp + 0x34]
push 0x104
push edx
call fcn.00441afb
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409163
push 0
lea ecx, [esp + 0x20]
push ecx
push 0xc
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x409163
mov edx, dword [0x59e704]
xor eax, eax
test edx, edx
jle 0x409163
mov edi, dword [esp + 0x24]
mov ecx, 0x49afa0
cmp edi, dword [ecx]
je 0x409149
add eax, 1
add ecx, 0x3d0
cmp eax, edx
jl 0x409136
jmp 0x409163
imul eax, eax, 0x3d0
mov ecx, dword [eax + 0x49afb0]
mov byte [eax + ecx + 0x49b0c6], bl
add dword [eax + 0x49afb0], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, 0x1a
mov dword [esp + 0x10], ecx
jl 0x409082
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop ebp
pop ebx
jg 0x4091a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.00441a71
add esp, 0x124
ret
Function at 0x40e0d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0xc

Function at 0x40e0f0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e11e
cmp esi, dword [esp + 0xc]
jne 0x40e11e
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x40e130
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push esi
push eax
push str._s_r_n
lea eax, [esp + 0x10]
push 0x200
push eax
mov esi, ecx
call fcn.00441afb
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e170
push 0
sub eax, edx
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esi]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
je 0x40e1cc
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e1a0
sub eax, edx
cmp eax, dword [esp]
jne 0x40e1cc
mov eax, 1
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00441a71
add esp, 0x208
ret 4
mov ecx, dword [esp + 0x204]
xor ecx, esp
xor eax, eax
call fcn.00441a71
add esp, 0x208
ret 4
Function at 0x412aa0
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x210
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x220]
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call fcn.00442640
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.00442640
mov edx, dword [0x59e700]
imul edx, edx, 0x3d0
mov eax, dword [edx + 0x49afa0]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x2c], 0
call fcn.00418d00
add esp, 0x20
push 3
push 0
push 0xc0000000
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0040e6e0
test eax, eax
jne 0x412b5e
push eax
push 4
mov dword [0x481ac0], 4
call fcn.00412820
mov eax, dword [0x481ac0]
add esp, 8
jmp 0x412c4d
mov eax, dword [0x59e700]
imul eax, eax, 0x3d0
mov ecx, dword [eax + 0x49afb0]
cmp dword [esp + 0x224], ecx
jae 0x412b98
push 0
push 2
mov dword [0x481ac0], 2
call fcn.00412820
mov eax, dword [0x481ac0]
add esp, 8
jmp 0x412c4d
xor esi, esi
test ecx, ecx
jle 0x412c4b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea esp, [esp]
movsx eax, byte [eax + esi + 0x49b0c6]
push eax
push str.._C:
lea ecx, [esp + 0x120]
push 0x104
push ecx
call fcn.00441afb
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi + esi*4], eax
je 0x412c30
add dword [ebp], 1
mov ecx, dword [edi + esi*4]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push ecx
call ebx
mov eax, dword [edi + esi*4]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push eax
call ebx
mov eax, dword [0x59e700]
imul eax, eax, 0x3d0
add esi, 1
cmp esi, dword [eax + 0x49afb0]
jl 0x412bb0
pop ebx
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00441a71
add esp, 0x210
ret 0x10
Function at 0x412c70
Capabilities:
Delete drive layout via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x460e68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x480208]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0040e010
mov eax, dword [0x59e700]
imul eax, eax, 0x3d0
mov ecx, dword [eax + 0x49afa0]
push ecx
push 0x49ab40
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
call fcn.00418d00
add esp, 8
push 3
push 0xa0000000
push 0xc0000000
push 0x49ab40
lea ecx, [esp + 0x18]
call fcn.0040e6e0
test eax, eax
push 0
jne 0x412d2c
mov dword [0x481ac0], 4
push 4
call fcn.00412820
mov esi, dword [0x481ac0]
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040e690
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
push 0
push 0x7c100
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0040e020
test esi, esi
jne 0x412d72
cmp dword [0x59e63c], 1
jne 0x412d72
push esi
mov dword [0x481ac0], 0x14
push 0x14
jmp 0x412cfa
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040e690
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4151f0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x461088
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x480208]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0042b725
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41522f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [0x49aad0]
sub eax, 0
mov dword [esp + 0x18], 0
je 0x41527a
sub eax, 1
je 0x41526d
sub eax, 1
je 0x41525f
push 0
jmp 0x41527f
mov edx, dword [0x481ac0]
push str.Erase::
push edx
jmp 0x415286
mov eax, dword [0x481ac0]
push str.Extended_Test::
push eax
jmp 0x415286
push str.Quick_Test::
mov ecx, dword [0x481ac0]
push ecx
call fcn.00412820
add esp, 8
push 0x70
call fcn.0042b71a
test eax, eax
je 0x4152a9
push 0x70
push eax
lea ecx, [esp + 0x14]
call fcn.00403080
mov esi, dword [esp + 0xc]
push esi
lea ecx, [edi + 0x410]
call fcn.004299ad
push 0x46838c
lea ecx, [edi + 0x26c]
mov dword [0x481ac4], 1
call fcn.004299ad
push 0x94
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x4152fc
mov edx, dword [edi + 0x2e0]
push 0
push eax
push 0x170
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x419980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [0x59e640], 0
jne 0x4199e4
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x469674
mov esi, eax
push 0xef
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4199e2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4199e2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4199e1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call fcn.0040d810
add esp, 8
test eax, eax
je 0x4199e1
mov dword [0x59e640], eax
pop ebx
pop edi
pop esi
ret
Function at 0x41c650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x461a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebp
push esi
push edi
mov eax, dword [0x480208]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
push 0
mov dword [esp + 0xa8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movzx ecx, word [esp + 0xac]
mov esi, eax
mov eax, dword [esp + 0xb4]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x41c774
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c774
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x41c774
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esp + 0xb0]
push edx
mov esi, eax
lea eax, [esp + 0x14]
push 0x59e644
push eax
call fcn.00406340
add esp, 0xc
mov eax, dword [eax]
push 1
push 0x40
push 0x22
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 1
call fcn.0041c510
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c73a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041c400
lea ecx, [esp + 0x14]
call fcn.0041be00
lea ecx, [esp + 0x68]
mov byte [esp + 0xa4], 0
call fcn.0041bd90
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], vtable.std::ios_base.0
call fcn.0045cdce
add esp, 4
mov eax, dword [esp + 0xb0]
add eax, 0xfffffff0
mov dword [esp + 0xa4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c7a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x98
ret
Function at 0x42747b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4274b4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042743e
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004262b6
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x429003
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x429046
call fcn.00423c6d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x429046
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x429061
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00428bba
test ebx, ebx
mov esi, eax
je 0x42905f
test edi, edi
je 0x42905f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42aa3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x462b2b
call fcn.00446c3b
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00423c6d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42aa89
call fcn.00423c6d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x42aa9a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42aaa7
or eax, 0xffffffff
jmp 0x42ac03
mov ecx, esi
call fcn.0042a56e
mov dword [ebp - 0x14], eax
call fcn.00426465
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42ab25
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42ab25
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42ab25
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00424fab
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42ab25
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42ab25
mov ecx, ebx
call fcn.00429a68
test eax, eax
je 0x42ab25
push 0
mov ecx, ebx
call fcn.00429a83
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00427eab
push dword [ebp - 0x14]
call fcn.004263bd
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a846
xor edi, edi
cmp eax, edi
je 0x42ab82
test byte [esi + 0x3c], 0x10
je 0x42ab6c
push 4
pop edi
mov ecx, esi
call fcn.0042994f
test ax, 0x100
je 0x42ab62
push 5
pop edi
push edi
mov ecx, esi
call fcn.00425f60
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42ab82
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00429c56
or dword [ebp - 4], 0xffffffff
jmp 0x42abad
cmp dword [ebp - 0x28], edi
je 0x42abbb
push 1
mov ecx, ebx
call fcn.00429a83
cmp dword [ebp - 0x2c], edi
je 0x42abcb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42abe4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42abe4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042a5a8
cmp dword [esi + 0x58], edi
je 0x42ac00
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00446ce0
ret
Function at 0x42d0e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x42d0f8
mov edi, dword [esi + 0xc]
jmp 0x42d138
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42d111
call fcn.004301c7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x42d126
call fcn.004301c7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x42d138
call fcn.004301c7
call fcn.00423c6d
cmp dword [eax + 0x3c], 0
je 0x42d14d
push edi
mov ecx, ebx
call fcn.0042c038
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0042cffc
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x42d16b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42d177
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4311aa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x480208]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4311ea
push 0x46c708
push 4
push eax
call fcn.004442a7
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4311fc
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x43126a
push edi
call fcn.00446e6e
mov edi, dword [eax]
call fcn.00446e6e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00441b17
add esp, 0x18
mov ebx, eax
call fcn.00446e6e
cmp dword [eax], 0
je 0x43124a
call fcn.00446e6e
push dword [eax]
call fcn.0042301c
pop ecx
jmp 0x431251
call fcn.00446e6e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x43126a
cmp ebx, esi
jae 0x43126a
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x43126c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00441a71
leave
ret
Function at 0x4322ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4322f4
call fcn.00423c6d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4322f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x432337
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x432320
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x432320
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x432334
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x441a71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480208]
jne 0x441a7b
repz ret
jmp fcn.0044a980
Function at 0x44a5e3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4805a8]
je 0x44a5fe
inc edi
cmp edi, 0x17
jb 0x44a5ef
cmp edi, 0x17
jae 0x44a77e
push ebp
push 3
call fcn.004557dc
cmp eax, 1
pop ecx
je 0x44a74a
push 3
call fcn.004557dc
test eax, eax
pop ecx
jne 0x44a632
cmp dword [0x4802f0], 1
je 0x44a74a
cmp ebx, 0xfc
je 0x44a77d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5a0710
push ebp
call fcn.004442a7
add esp, 0xc
test eax, eax
je 0x44a668
push esi
push esi
push esi
push esi
push esi
call fcn.00445cbe
add esp, 0x14
push 0x104
mov esi, 0x5a0729
push esi
push 0
mov byte [0x5a082d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44a6ac
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004442a7
add esp, 0xc
test eax, eax
je 0x44a6ac
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00445cbe
add esp, 0x14
push esi
call fcn.00446d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44a6f1
push esi
call fcn.00446d50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5a0a24
push 0x46e1d4
sub ecx, eax
push ecx
push eax
call fcn.00442b26
add esp, 0x14
test eax, eax
je 0x44a6f1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00445cbe
add esp, 0x14
jmp 0x44a6f3
xor esi, esi
push 0x46e1d0
push ebx
push ebp
call fcn.004441ce
add esp, 0xc
test eax, eax
je 0x44a713
push esi
push esi
push esi
push esi
push esi
call fcn.00445cbe
add esp, 0x14
push dword [edi*8 + 0x4805ac]
push ebx
push ebp
call fcn.004441ce
add esp, 0xc
test eax, eax
je 0x44a735
push esi
push esi
push esi
push esi
push esi
call fcn.00445cbe
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045561f
add esp, 0xc
jmp 0x44a77d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44a77d
cmp ebp, 0xffffffff
je 0x44a77d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4805ac]
push dword [esi]
call fcn.00446d50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret