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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x4085c2
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x40854a
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.0046f1e7
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x204]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x220]
inc dword [edi + 0x20c]
test eax, eax
je 0x4085c2
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4085c1
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [edi + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [edi + 0x220]
test eax, eax
je 0x4085d5
push eax
call fcn.0046d737
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x4085e9
push eax
call fcn.0046d737
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x408670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408774
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x40876d
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push 2
add eax, 0x18c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
call fcn.0046d6a5
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x40876d
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408755
mov dword [esi + 0x208], edi
xor eax, eax
mov dword [esi + 0x20c], 0
lea edi, [esi + 4]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esi + 0x210], eax
push ebx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x224], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x204]
call fcn.0046d737
add esp, 4
mov dword [esi + 0x204], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411eb0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, edx
call fcn.004724a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411fc7
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x411fb3
call fcn.0042b5b0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x411f49
mov eax, dword [0x4b49d4]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b49d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411f49
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411f88
cmp dword [ebp + 8], 0x103
jne 0x411f88
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402c40
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x411f50
pop edi
test bx, bx
je 0x411fae
mov eax, dword [0x4b49d4]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b49d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411fae
push 5
push eax
call esi
call fcn.0042b680
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
pop ebx
movsx eax, cx
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, si
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4255a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
push 0x104
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
je 0x4256c9
push edi
push 2
push 0x104
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x4255fd
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4b1b28
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0046d737
add esp, 4
cmp word [esi], bx
je 0x4256ba
push esi
call fcn.0046f1b9
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425614
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x425643
lea edi, [esi - 2]
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x425630
mov eax, dword [0x492e18]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x425650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425650
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.0046d6a5
mov edx, eax
add esp, 4
test edx, edx
jne 0x425685
call fcn.00470da1
push edi
call fcn.0046d6a5
add esp, 4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [eax], edx
sub edx, esi
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x425690
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.0046d737
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ebx, 0xe
call fcn.0046d737
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4257f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 2
push 0x104
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
je 0x42582e
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x492e1c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0046fc6e
push esi
call fcn.0046d737
add esp, 8
pop esi
ret
push 0x492e1c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
ret
Function at 0x425840
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push edi
push 1
push 0x250
mov esi, ecx
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x425919
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42590f
test byte [edi], 0x10
jne 0x4258f8
lea esi, [edi + 0x2c]
mov ecx, 0x492e24
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4258aa
test dx, dx
je 0x4258a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4258aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x425884
xor eax, eax
jmp 0x4258af
sbb eax, eax
or eax, 1
test eax, eax
je 0x4258f8
mov eax, 0x492e1c
mov ecx, esi
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4258e6
test dx, dx
je 0x4258e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4258e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4258c0
xor eax, eax
jmp 0x4258eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4258f8
push esi
call fcn.0046f1b9
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425871
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0046d737
add esp, 4
pop ebx
pop edi
pop esi
ret
Function at 0x440e70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4b4b9c], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x440ee3
cmp dword [ebp - 0x108], 2
jne 0x440ee3
mov eax, dword [ebp - 0x114]
mov dword [0x4b4b98], 1
cmp eax, 5
ja 0x440ed9
jne 0x440ee3
cmp dword [ebp - 0x110], 0
je 0x440ee3
mov dword [0x4b4b94], 1
call fcn.00440df0
call fcn.00424c80
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d696
mov esp, ebp
pop ebp
ret

Function at 0x440f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x440f46
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.0046d737
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x441150
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4b4b30]
test eax, eax
je 0x441185
cmp dword [0x4b4b64], 0
je 0x44116e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4b4b30]
test eax, eax
je 0x441185
push eax
call fcn.0046d737
add esp, 4
mov dword [0x4b4b30], 0
mov eax, dword [0x4b49e4]
test eax, eax
je 0x4411a1
push eax
call fcn.0046d737
add esp, 4
mov dword [0x4b49e4], 0
mov eax, dword [0x4b4b78]
test eax, eax
je 0x4411b1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4b4b7c]
test eax, eax
je 0x4411c1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x441a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b4b70]
sub esp, 0x40
push esi
mov esi, ecx
test eax, eax
je 0x441a62
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x441a4c
cmp dword [ebp - 4], 0x103
jne 0x441a4c
cmp dword [0x4b4b70], 0
jne 0x441ac5
jmp 0x441a62
push dword [0x4b4b70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b4b70], 0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004724a0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x492e00
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [0x4b4b74], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4b4b70]
test eax, eax
cmovne ecx, dword [ebp - 8]
mov dword [0x4b4b70], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x451620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov ebx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x4516f9
mov eax, dword [ebp + 8]
lea esp, [esp]
cmp ax, word [esi + 2]
jne 0x451693
mov al, byte [esi]
and al, 0x10
je 0x451650
test ebx, ebx
jne 0x451658
test al, al
jne 0x451690
test ebx, ebx
jne 0x451690
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45166c
test eax, eax
jns 0x451690
jmp 0x451670
test eax, eax
js 0x451690
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 4
cwde
je 0x451684
test eax, eax
jns 0x45168c
jmp 0x451688
test eax, eax
js 0x45168c
movzx edi, word [esi + 4]
test edi, edi
jne 0x45169d
mov eax, dword [ebp + 8]
test byte [esi], 0x80
jne 0x4516f9
add esi, 8
jmp 0x451640
test byte [esi], 0x40
jne 0x4516d0
cmp edi, 0x7d0
jge 0x4516d8
mov esi, dword [ebp - 4]
movzx eax, di
push 0
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jge 0x4516aa
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x4516f9
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4516f9
test al, 1
je 0x4516ad
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451970
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor eax, eax
push edi
mov ebx, ecx
mov edi, edx
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4519bb
push esi
push 2
push 0x40
call fcn.0046def4
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b4998]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0046d737
add esp, 0x10
pop esi
jmp 0x451a07
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x4519d8
lea eax, [edi - 0x6f]
push eax
push 0x493110
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x451a07
xor eax, eax
lea ebx, [ebx]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x4519f1
inc eax
cmp eax, 0x14
jl 0x4519e0
jmp 0x451a07
push 0x3f
push ebx
push dword [eax*8 + 0x4b3324]
push dword [0x4b4998]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x451a1f
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x462f10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x462f58
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00472472
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d696
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d696
mov esp, ebp
pop ebp
ret

Function at 0x4692a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x46933e
mov edi, dword [ebp + 8]
test edi, edi
je 0x46933e
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46933e
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x46933e
push esi
mov esi, dword [edi + 0x3c]
push pe_nt_image_headers32
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46932d
cmp dword [esi], 0x4550
jne 0x46932d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x469337
lea esi, [eax + edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46931e
add eax, edi
push ebx
push eax
call fcn.00470e21
add esp, 8
test eax, eax
je 0x46931e
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x469304
xor eax, eax
cmp dword [esi + 0xc], eax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4696e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469759
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469759
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469759
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469741
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469741
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469741
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x469b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469bc4
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469bc4
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469bc4
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469bb5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469bb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469bb5
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x469bbe
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x469bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3a58]
push edi
test eax, eax
je 0x469c34
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469c34
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469c34
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469c25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469c25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469c25
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x469c2e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x478290
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004773ca
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4782c8
xor eax, eax
jmp 0x4782f4
cmp esi, dword [ebp - 4]
je 0x4782f1
cmp dword [ebp + 0xc], 0
je 0x4782f1
push dword [edi + 0x9c]
call fcn.00477e9e
push dword [edi + 0x9c]
mov esi, eax
call fcn.00476fac
pop ecx
pop ecx
cmp esi, eax
je 0x4782c4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x47f088
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00478994
mov dword [ebp - 0x14], eax
cmp dword [0x4b4800], edi
jne 0x47f179
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x47f106
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47f259
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47f259
push 0x492480
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f259
push eax
call ebx
push 0x49248c
push esi
mov dword [0x4b4800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4b4804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4b4808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b4810], eax
test eax, eax
je 0x47f176
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b480c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47f19e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47f191
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x47f1b3
push 4
pop eax
jmp 0x47f25b
cmp dword [ebp - 0x14], edi
je 0x47f1b3
push dword [0x4b4800]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47f198
mov eax, dword [0x4b480c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x47f211
cmp dword [0x4b4810], esi
je 0x47f211
push eax
call ebx
push dword [0x4b4810]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47f211
test eax, eax
je 0x47f211
call ecx
test eax, eax
je 0x47f206
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47f206
test byte [ebp - 8], 1
jne 0x47f211
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x47f241
mov eax, dword [0x4b4804]
cmp eax, esi
je 0x47f23e
push eax
call ebx
test eax, eax
je 0x47f23e
call eax
mov edi, eax
test edi, edi
je 0x47f23e
mov eax, dword [0x4b4808]
cmp eax, esi
je 0x47f23e
push eax
call ebx
test eax, eax
je 0x47f23e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4b4800]
call ebx
test eax, eax
je 0x47f259
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x47f25b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d696
leave
ret
Function at 0x40102b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
and dword [ebp - 4], 0
xor edx, edx
push ebx
push esi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40108f
lea esi, [ecx + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [edi + 0x3c]
lea ebx, [eax + ecx]
cmp dword [ebp + 0xc], ebx
jb 0x401097
mov ebx, dword [esi - 8]
lea ebx, [ebx + edx - 1]
dec edx
not edx
and ebx, edx
cmp ecx, ebx
ja 0x401097
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [esi - 4]
add eax, dword [edi + 4]
push eax
call fcn.0042b140
mov eax, dword [edi]
movzx eax, word [eax + 6]
add esp, 0xc
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x40104a
xor eax, eax
pop esi
pop ebx
leave
ret 8
mov eax, 0xc1
jmp 0x401091