joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ce0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ae008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4b3b9c], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x440d53
cmp dword [ebp - 0x108], 2
jne 0x440d53
mov eax, dword [ebp - 0x114]
mov dword [0x4b3b98], 1
cmp eax, 5
ja 0x440d49
jne 0x440d53
cmp dword [ebp - 0x110], 0
je 0x440d53
mov dword [0x4b3b94], 1
call fcn.00440c60
call fcn.00424bd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret

Function at 0x440d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0046dc54
mov edi, eax
add esp, 8
test edi, edi
je 0x440db6
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.0046d497
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 0x440fc0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4b3b30]
test eax, eax
je 0x440ff5
cmp dword [0x4b3b64], 0
je 0x440fde
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4b3b30]
test eax, eax
je 0x440ff5
push eax
call fcn.0046d497
add esp, 4
mov dword [0x4b3b30], 0
mov eax, dword [0x4b39e4]
test eax, eax
je 0x441011
push eax
call fcn.0046d497
add esp, 4
mov dword [0x4b39e4], 0
mov eax, dword [0x4b3b78]
test eax, eax
je 0x441021
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4b3b7c]
test eax, eax
je 0x441031
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x441880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3b70]
sub esp, 0x40
push esi
mov esi, ecx
test eax, eax
je 0x4418d2
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4418bc
cmp dword [ebp - 4], 0x103
jne 0x4418bc
cmp dword [0x4b3b70], 0
jne 0x441935
jmp 0x4418d2
push dword [0x4b3b70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b3b70], 0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004721e0
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], 0x491e00
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [0x4b3b74], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4b3b70]
test eax, eax
cmovne ecx, dword [ebp - 8]
mov dword [0x4b3b70], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441fc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x4b39d4]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x441fe0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x100
jne 0x442023
cmp dword [ebp + 8], 9
jne 0x44204b
cmp dword [esi + 0x518], ecx
jle 0x44204b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4b39d4]
test ax, ax
js 0x442010
call fcn.0044f7c0
jmp 0x442015
call fcn.0044f980
test eax, eax
je 0x442040
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 5
jne 0x44204b
mov eax, dword [0x4b39cc]
test byte [eax + 0x14], 0x10
je 0x44204b
cmp byte [esi + 0x4c8], cl
je 0x44204b
call fcn.0042c970
mov edx, dword [ebp - 4]
mov esi, dword [0x4b39d4]
xor ecx, ecx
movsx eax, word [esi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x44208c
push edi
xor edi, edi
test eax, eax
jle 0x44208b
push ebx
lea ebx, [esi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push esi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x44208a
mov edx, dword [ebp - 4]
inc edi
add ebx, 4
cmp edi, dword [ebp - 0xc]
jl 0x442067
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442180
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4b39a8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x4421a7
push 0
push dword [0x4b39a8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
push edi
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [0x4b39a8]
call ebx
mov esi, eax
test esi, esi
je 0x4421f7
jmp 0x4421e0
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4421e0
mov eax, dword [0x4b39cc]
cmp dword [eax + 0x1fc], 0
jne 0x44224e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x44224e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x442230
push dword [0x4b39a4]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x442271
push 5
push dword [0x4b39a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x447d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, edx
push edi
movzx eax, word [esi]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
call ebx
test eax, eax
jne 0x447d65
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x447daf
sub eax, 2
jne 0x447d5c
mov eax, dword [esi]
sub eax, 0
je 0x447d8b
sub eax, 2
je 0x447d84
xorps xmm0, xmm0
jmp 0x447d94
movsd xmm0, qword [esi + 8]
jmp 0x447d94
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
movsd qword [ebp - 0x18], xmm0
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x447dc6
sub eax, 2
je 0x447dbf
xor eax, eax
jmp 0x447dc9
cvttsd2si eax, qword [esi + 8]
jmp 0x447dc9
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x449b16
cmp dword [ebp - 8], 2
jb 0x449b16
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x449aeb
dec eax
je 0x449b16
dec eax
jne 0x449b16
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x449b16
cmp dword [ebp - 8], 8
jb 0x449b16
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi + 8], xmm0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x449b16
cmp dword [ebp - 8], 4
jb 0x449b16
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
lea eax, [ebp - 4]
push eax
push edx
mov dword [ebp - 0xc], ecx
call dword [0x4b3b0c]
mov edi, eax
cmp edi, 0xffffffff
je 0x44c302
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44c302
push ebx
call fcn.0046d405
mov esi, eax
add esp, 4
test esi, esi
je 0x44c2fb
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x44c2f2
mov ecx, dword [ebp - 0xc]
push edi
mov dword [ecx], eax
call dword [0x4b3adc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0046d497
add esp, 4
push edi
call dword [0x4b3adc]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ce30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ae008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1fc], 0
je 0x44ce8b
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x44ce9f
cmp dword [ebp - 0x14], 0xc
jne 0x44ce9f
push 0
push dword [ebp - 0x10]
push esi
call fcn.0044ceb0
push 0
push dword [ebp - 0xc]
push esi
call fcn.0044cf30
push 0
push dword [ebp - 8]
push esi
call fcn.0044cfb0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret
Function at 0x451340
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 0x451419
mov eax, dword [ebp + 8]
lea esp, [esp]
cmp ax, word [esi + 2]
jne 0x4513b3
mov al, byte [esi]
and al, 0x10
je 0x451370
test ebx, ebx
jne 0x451378
test al, al
jne 0x4513b0
test ebx, ebx
jne 0x4513b0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45138c
test eax, eax
jns 0x4513b0
jmp 0x451390
test eax, eax
js 0x4513b0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 4
cwde
je 0x4513a4
test eax, eax
jns 0x4513ac
jmp 0x4513a8
test eax, eax
js 0x4513ac
movzx edi, word [esi + 4]
test edi, edi
jne 0x4513bd
mov eax, dword [ebp + 8]
test byte [esi], 0x80
jne 0x451419
add esi, 8
jmp 0x451360
test byte [esi], 0x40
jne 0x4513f0
cmp edi, 0x7d0
jge 0x4513f8
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 0x4513ca
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x451419
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x451419
test al, 1
je 0x4513cd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451690
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 0x4516db
push esi
push 2
push 0x40
call fcn.0046dc54
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b3998]
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.0046d497
add esp, 0x10
pop esi
jmp 0x451727
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x4516f8
lea eax, [edi - 0x6f]
push eax
push 0x492110
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x451727
xor eax, eax
lea ebx, [ebx]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x451711
inc eax
cmp eax, 0x14
jl 0x451700
jmp 0x451727
push 0x3f
push ebx
push dword [eax*8 + 0x4b2324]
push dword [0x4b3998]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45173f
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 0x451750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
mov ebx, ecx
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x4517c8
push 2
push 0x80
call fcn.0046dc54
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 8
movsx edx, word [eax + esi*2]
mov ecx, edi
call fcn.00451690
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0046d497
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x451782
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 1
cmp dword [esi + 0x1f6], 0
lea eax, [ebp - 1]
mov ebx, edx
push eax
push ebx
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457fed
cmp byte [ebp - 1], 0
push edi
je 0x457fdf
mov esi, dword [esi + 0x1f6]
mov edi, dword [0x4b39cc]
cmp edi, esi
je 0x457fc6
test esi, esi
jne 0x457f65
xor ecx, ecx
jmp 0x457f6b
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b39d0], ecx
je 0x457f8f
mov dword [0x4b39d4], 0
test ecx, ecx
je 0x457f89
mov eax, dword [ecx + 0x7c]
mov dword [0x4b39d4], eax
mov dword [0x4b39d0], ecx
mov dword [0x4b39cc], esi
test esi, esi
je 0x457fac
mov eax, dword [esi + 0x1d0]
mov dword [0x4b39ac], eax
mov eax, dword [esi + 0x1d4]
jmp 0x457fb8
mov dword [0x4b39ac], 0
xor eax, eax
push eax
mov dword [0x4b39a4], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, ebx
call fcn.00448080
mov ecx, esi
mov edi, eax
call fcn.004029b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458089
cmp byte [ebp - 1], 0
je 0x458084
push dword [ebx + 0x1fe]
mov edx, dword [ebx + 0x44]
push edi
mov ecx, ebx
call fcn.00457460
mov ecx, dword [ebx + 0x1f6]
add esp, 8
test ecx, ecx
je 0x458089
call fcn.004029b0
mov ecx, dword [ebx + 0x1f6]
xor edx, edx
mov esi, eax
call fcn.00405bb0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00449c70
mov ecx, esi
mov edi, eax
call fcn.004029b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462c80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ae008]
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 0x462cc8
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004721b2
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d3f6
mov esp, ebp
pop ebp
ret

Function at 0x469010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x4690ae
mov edi, dword [ebp + 8]
test edi, edi
je 0x4690ae
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4690ae
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4690ae
push esi
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46909d
cmp dword [esi], 0x4550
jne 0x46909d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4690a7
lea esi, [eax + edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46908e
add eax, edi
push ebx
push eax
call fcn.00470b71
add esp, 8
test eax, eax
je 0x46908e
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x469074
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 0x469450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x4694c9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4694c9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4694c9
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 0x4694b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4694b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4694b1
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 0x4694d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x469549
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469549
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469549
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469531
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469531
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469531
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
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 0x469550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x4695c9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4695c9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4695c9
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 0x4695b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4695b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4695b1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
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 0x4695d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x469649
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469649
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469649
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469631
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469631
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469631
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
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 0x4698d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x469934
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x469934
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x469934
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 0x469925
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469925
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469925
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46992e
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 0x469940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b2a58]
push edi
test eax, eax
je 0x4699a4
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4699a4
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4699a4
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 0x469995
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x469995
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469995
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46999e
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 0x477fd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047710a
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 0x478008
xor eax, eax
jmp 0x478034
cmp esi, dword [ebp - 4]
je 0x478031
cmp dword [ebp + 0xc], 0
je 0x478031
push dword [edi + 0x9c]
call fcn.00477bde
push dword [edi + 0x9c]
mov esi, eax
call fcn.00476cec
pop ecx
pop ecx
cmp esi, eax
je 0x478004
xor eax, eax
inc eax
pop edi
pop esi
leave
ret