joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471262
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x479b67
call fcn.0046c9cb
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x471284
xor eax, eax
jmp 0x4713f7
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4712b2
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4712b2
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4713f7
cmp dword [esi + 0x54], ebx
je 0x4713f2
mov ecx, esi
call fcn.0047027d
cmp dword [esi + 0x44], ebx
jne 0x4712e2
push dword [esi + 0x54]
push edi
call fcn.0047071d
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x4713f7
jmp 0x4713f2
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00470f29
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47139f
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x4713e7
cmp eax, ebx
jg 0x4713a7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x471351
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x471376
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x471364
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0045befe
add esp, 0x10
cmp edi, eax
jne 0x4713e7
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x4713d6
test edi, edi
jne 0x471303
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x4713ec
push 8
call fcn.00470e7b
jmp 0x471303
mov edx, dword [ebp - 0x2c]
jmp 0x471315
cmp eax, 3
jne 0x4713e7
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.0047071d
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4713c6
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00470499
mov ax, si
jmp 0x4713f7
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00470499
mov ax, word [ebp + 8]
jmp 0x4713f7
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00470499
mov eax, 0xffff
call fcn.0046ca15
ret 4
Function at 0x404a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
push 2
xor edi, edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404aeb
push esi
push 0x567f8c
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.005128f5
mov eax, dword [ebp - 0x210]
add esp, 0x14
push 0x208
lea edx, [ebp - 0x20c]
push edx
push 1
push edi
push str.Start_Page
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404ade
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.005121e3
mov esp, ebp
pop ebp
ret
Function at 0x4074c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00407280
add esp, 4
push 3
push esi
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x84]
push ecx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], eax
call fcn.00409180
mov edx, dword [ebp - 0x88]
push 0x5686e4
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.005129d2
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
add esp, 0xc
cmp eax, ecx
je 0x407535
push eax
call fcn.005127a6
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x40757a
mov edx, dword [ebp + 8]
push eax
push 1
push edx
push edi
call fcn.00512b70
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00512d74
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00512e3d
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005121e3
mov esp, ebp
pop ebp
ret
Function at 0x407590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5394ab
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0xa8], ecx
xor ebx, ebx
push esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 4], ebx
call fcn.00409de0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa0]
cmp dword [eax - 0xc], ebx
jne 0x40762f
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
push 3
push esi
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x94]
push edx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ecx
call fcn.00409180
mov eax, dword [ebp - 0x98]
push 0x5686e8
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.005129d2
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
add esp, 0xc
cmp eax, edx
je 0x407684
push eax
call fcn.005127a6
add esp, 4
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
je 0x40771d
push 2
push ebx
push eax
call fcn.00512f3b
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0051314b
mov ecx, dword [ebp - 0x9c]
push ebx
push ebx
push ecx
mov esi, eax
call fcn.00512f3b
push esi
call fcn.00413b60
mov edx, dword [ebp - 0x9c]
add esp, 0x20
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.005133fa
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00512e3d
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa0]
mov dword [ecx], edi
add eax, 0xfffffff0
mov dword [edx], esi
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x407613
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407605
Function at 0x407e30
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
push str._s_s.lnk
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005128f5
add esp, 0x18
lea ecx, [ebp - 0x214]
push ecx
push 0x565d68
push 1
xor edi, edi
push edi
push 0x566078
mov dword [ebp - 0x214], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407f4c
mov eax, dword [ebp - 0x214]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], edi
mov ecx, dword [eax]
push 0x5660d8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [ebp - 0x210]
js 0x407f28
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov eax, dword [ebp - 0x210]
js 0x407f28
cmp eax, edi
je 0x407f02
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x210], edi
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x407f14
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
cmp eax, edi
je 0x407f3a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x210], edi
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x407f4c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.005121e3
mov esp, ebp
pop ebp
ret
Function at 0x408220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538fa2
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.0041ced4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40829b
push 0x80004005
call fcn.0040ab10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 0x219]
movzx edx, byte [ebp - 0x21a]
movzx eax, byte [ebp - 0x21b]
push ecx
movzx ecx, byte [ebp - 0x21c]
push edx
movzx edx, byte [ebp - 0x21d]
push eax
movzx eax, byte [ebp - 0x21e]
push ecx
movzx ecx, byte [ebp - 0x21f]
push edx
movzx edx, byte [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push ecx
movzx ecx, word [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x228]
push eax
push ecx
push edx
lea eax, [ebp - 0x218]
push eax
push str._s_08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X.tmp
push esi
mov dword [ebp - 0x22c], 1
call fcn.0040a810
add esp, 0x38
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
Function at 0x4087b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4087db
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x408863
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x408863
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408856
lea ecx, [ecx]
lea edx, [ebp - 0x20c]
push edx
call ebx
sub eax, edi
lea eax, [ebp + eax*2 - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408876
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408820
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x4088a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4088a6
push esi
call edi
mov ecx, dword [ebp - 0x234]
push ecx
call edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005121e3
mov esp, ebp
pop ebp
ret

Function at 0x409740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00513920
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x4097fc
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x4097c6
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4097b3
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4097e7
cmp dword [ebp - 0x110], 0
jne 0x4097e9
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
jb 0x409824
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x409824
cmp dword [ebp - 0x114], 4
jne 0x409824
cmp dword [ebp - 0x110], 0x5a
sbb eax, eax
add eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005121e3
mov esp, ebp
pop ebp
ret
Function at 0x4099d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4099eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409a22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x409a1e
jmp 0x409a10
cmp esi, eax
jae 0x409a22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409a10
cmp esi, eax
jb 0x409a29
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40bb00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
or ebx, 0xffffffff
push eax
mov dword [ebp - 0x10], 0x40bd60
mov dword [ebp - 0x1c], 0x40bd90
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x40bb4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bc18
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40bb7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bc18
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x40bb9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bba7
mov eax, dword [ebp - 8]
xor ecx, ecx
xor edx, edx
add ecx, esi
adc eax, edx
jmp 0x40bbad
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
push eax
xor ecx, ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0x40bad0
mov dword [ebp - 0x30], 0
call fcn.0040c040
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x40bc21
cmp eax, ebx
je 0x40bbfc
push eax
call esi
test eax, eax
jne 0x40bbf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40bbfc
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40bc10
push eax
call esi
test eax, eax
jne 0x40bc10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40bc37
push eax
call esi
test eax, eax
jne 0x40bc34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40bc37
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40bc4b
push eax
call esi
test eax, eax
jne 0x40bc4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40bcbf
mov dword [edi], 0
jmp 0x40bc80
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40bc8f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40bcc7
test ecx, ecx
je 0x40bcbf
test esi, esi
jne 0x40bc80
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40bd3f
mov dword [edi], 0
jmp 0x40bd00
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40bd0f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40bd47
test ecx, ecx
je 0x40bd3f
test esi, esi
jne 0x40bd00
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e1f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push str.PROP_SkinSB
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x40e2c3
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40e219
lea eax, [ebx + 0xc]
jmp 0x40e225
cmp edx, 1
jne 0x40e2c3
lea eax, [ebx + 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
test esi, esi
jne 0x40e28e
test ecx, ecx
jne 0x40e28e
cmp edx, 3
ja case.default.0x40e23b
jmp dword [edx*4 + 0x40e2cc]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x40e23b
mov esi, 0x100000
jmp case.default.0x40e23b
mov esi, 0x200000
jmp case.default.0x40e23b
mov esi, 0x300000
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test esi, eax
je 0x40e28e
not esi
and eax, esi
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x37
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0x10], 0
je 0x40e2ba
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
xor eax, eax
cmp dword [ebp + 8], 1
mov ecx, ebx
sete al
push eax
push esi
call fcn.0040ea40
add esp, 8
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x41a23f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41a286
call fcn.0041c284
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a286
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a2a2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419d3f
mov esi, eax
test edi, edi
je 0x41a2a0
test ebx, ebx
je 0x41a2a0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41aa78
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x532672
call fcn.00513d7e
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41aa9d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41aaef
call fcn.0041ced4
push eax
lea ecx, [ebp - 0x10]
call fcn.0040ab30
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00514247
push eax
call fcn.0040a010
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040ab60
mov eax, esi
call fcn.00513e56
ret 8

Function at 0x41cd6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041c284
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41cda6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041c9aa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41ce04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41ce28
cmp dword [edi + 0x74], 0
jne 0x41ce28
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041c284
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041cdc5
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420d30
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x420d75
push 0x53f170
push 4
push eax
call fcn.005159a8
push eax
call fcn.0040a010
add esp, 0x10
jmp 0x420d8b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420e0b
push edi
call fcn.005141fe
mov edi, dword [eax]
call fcn.005141fe
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005128f5
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005141fe
cmp dword [eax], 0
je 0x420ddf
call fcn.005141fe
push dword [eax]
call fcn.00413b76
pop ecx
jmp 0x420de6
call fcn.005141fe
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x420e0b
cmp dword [ebp - 0x234], esi
jae 0x420e0b
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x420e0d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005121e3
leave
ret