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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10038068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100039c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100039fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100039fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10003ae3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003a24
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10003a57
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000e177
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10003ae3
cmp eax, 1
jle 0x10003ab6
cmp eax, 3
jne 0x10003ae3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1000e177
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003ad3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10011440
add esp, 0x10
cmp edi, eax
jne 0x10003ae3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100039e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000938f
mov esp, ebp
pop ebp
ret 4
Function at 0x10004e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10038068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10004eb1
cmp byte [esi + 0x3d], 0
je 0x10004eb1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10004e67
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10004e79
sub eax, 1
je 0x10004e7d
sub eax, 2
je 0x10004eb1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10004e9a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10011440
add esp, 0x10
cmp edi, eax
jne 0x10004e67
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000938f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1000938f
mov esp, ebp
pop ebp
ret

Function at 0x10005280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100263e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10038068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100093a5
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10008405
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x10038068]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10039ce0], 0
push esi
push edi
je 0x100073fd
push 0x9cc
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
lea ecx, [ebp - 0x808]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0x10000
push 0x1003a040
push 0xffffffffffffffff
lea eax, [ebp - 0x808]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, 0x1003a040
sub esp, 0x18
mov esi, esp
mov eax, edx
mov dword [esi + 0x10], 0
lea edi, [eax + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100073e6
sub eax, edi
mov ecx, esi
push eax
push edx
call fcn.10004c20
call fcn.100022e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000938f
mov esp, ebp
pop ebp
ret

Function at 0x10018e18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018c8e
Function at 0x53d0c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe6000]
push edi
jmp 0x53d0da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53d0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53d0d0
mov eax, 1
add ebx, ebx
jne 0x53d0f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53d104
jne 0x53d123
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53d123
dec eax
add ebx, ebx
jne 0x53d110
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53d0e8
add ebx, ebx
jne 0x53d11f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53d175
xor ecx, ecx
sub eax, 3
jb 0x53d13b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53d1aa
sar eax, 1
mov ebp, eax
jmp 0x53d146
add ebx, ebx
jne 0x53d146
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53d114
inc ecx
add ebx, ebx
jne 0x53d154
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53d114
add ebx, ebx
jne 0x53d161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53d156
jne 0x53d172
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53d156
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53d194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53d186
jmp 0x53d0d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53d194
add edi, ecx
jmp 0x53d0d6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53d1b2
cmp byte [edi], 0x11
jne 0x53d1b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53d1b7
lea edi, [esi + 0x136000]
mov eax, dword [edi]
or eax, eax
je 0x53d22f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a16b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a1830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53d1e4
mov ecx, edi
jns 0x53d213
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a1834]
or eax, eax
je 0x53d229
mov dword [ebx], eax
add ebx, 4
jmp 0x53d201
call dword [esi + 0x1a1844]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x53d260
cmp al, 0xef
ja 0x53d253
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x53d235
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x53d242
mov ebp, dword [esi + 0x1a1838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x53d294
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10016f7
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1003220]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x10012b4
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x818], edi
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
push 0x1001250
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
jne 0x1001758
jmp loc.0100a000
inc ecx
call fcn.01001669
test eax, eax
jne 0x1001856
call fcn.01001afd
test eax, eax
je 0x1001774
call fcn.01001a29
mov ecx, esi
call fcn.01001429
test eax, eax
je 0x1001856
mov ecx, esi
call fcn.01001531
test eax, eax
jne 0x1001856
push 0x105
lea eax, [ebp - 0x610]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x610]
push eax
call sub.INETCFG.dll__LaunchSignupWizard_12
cmp dword [ebp - 0x818], 1
jne 0x1001856
mov esi, 0x100
push esi
lea edx, [ebp - 0x404]
mov ecx, 0x3ea
call fcn.0100163c
push esi
lea edx, [ebp - 0x204]
mov ecx, 0x3e8
call fcn.0100163c
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x124
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call esi
cmp eax, 6
jne 0x1001856
call fcn.01001bb2
call fcn.01001cb7
test eax, eax
je 0x100182e
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001856
push 0x200
lea edx, [ebp - 0x810]
mov ecx, 0x3eb
call fcn.0100163c
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call esi
cmp dword [ebp - 0x814], edi
pop edi
pop esi
pop ebx
je 0x100186d
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01001dbe
leave
ret 0x10
Function at 0x1001bb2
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x73c
mov eax, dword [0x1003220]
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
mov esi, 0x3f4
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1001ca5
and word [ebp - 8], 0
push edi
push 0x209
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
and word [ebp - 0x214], 0
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x738]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x738]
push eax
mov dword [ebp - 0x738], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001c41
push 0x45
pop ecx
lea edi, [ebp - 0x738]
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x728], 2
pop edi
jne 0x1001c5a
lea ecx, [ebp - 0x624]
call fcn.01001880
mov esi, eax
jmp 0x1001ca5
lea eax, [ebp - 0x73c]
push eax
push 0x1001308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x1001ca5
push 0x412
lea eax, [ebp - 0x624]
push eax
push 1
push esi
push str.inetwiz
push dword [ebp - 0x73c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x73c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01001dbe
leave
ret

Function at 0x1005183
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esi, dword [edi + eax*4]
ret 4
ja 0x1009d41
xor eax, 0xb169b4c3
sbb eax, dword [esp + 4]
jne 0x10050fe
jmp 0x1005177
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x10050d4
push 0
jmp 0x1009d40
ret
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x10050a5
lea esi, [ebx]
lea edi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x100521f
mov edx, ebx
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
jmp 0x10050f5
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
push ebx
movzx eax, word [esi]
pop esi
jmp 0x1005029
sub dword [esp], eax
cmp byte [edi], 1
pop eax
jmp 0x100503b
pop eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
jmp 0x100524c
Function at 0x401020
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 0x40103b
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 0x401072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40106e
jmp 0x401060
cmp esi, eax
jae 0x401072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x401079
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 0x4048df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x577b10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x404927
push 0x52f1a8
push 4
push eax
call fcn.00509e77
push eax
call fcn.00402ab3
add esp, 0x10
jmp 0x40493d
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4049c0
push edi
call fcn.00509e2e
mov edi, dword [eax]
call fcn.00509e2e
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050a387
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00509e2e
cmp dword [eax], 0
je 0x404994
call fcn.00509e2e
push dword [eax]
call fcn.00403ae0
pop ecx
jmp 0x40499b
call fcn.00509e2e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x4049c0
cmp dword [ebp - 0x11c], esi
jae 0x4049c0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4049c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005089e6
leave
ret
Function at 0x4049cf
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x577b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004047ca
pop ecx
cmp eax, esi
je 0x404ab9
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x404ab9
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0050a590
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x404ab9
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x404ab9
cmp esi, 0x14
jge 0x404ab9
push 0x10
push 0
push edi
call fcn.0050a56a
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x404aa8
call fcn.00509e2e
cmp dword [eax], 0x22
je 0x404aa8
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00509303
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x404a7e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57914c], 0
jne 0x404b44
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x404b6d
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004048df
pop ecx
pop ecx
test eax, eax
jne 0x404b6f
inc edi
cmp edi, esi
jl 0x404b4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005089e6
leave
ret 8
Function at 0x40589b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4058e3
call fcn.0041f136
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 0x4058e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x405926
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40590f
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 0x40590f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x405923
mov ecx, dword [esi + 0x68]
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 0x41197f
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.0041f136
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4119b8
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.004115c1
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 0x411a16
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 0x411a3a
cmp dword [edi + 0x74], 0
jne 0x411a3a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041f136
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.004119d7
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 0x411ffa
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x577b10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41202f
xor eax, eax
jmp 0x412082
lea eax, [ebp - 0x210]
push eax
call fcn.00509303
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x412060
push 0x530050
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050b510
add esp, 0xc
test eax, eax
jne 0x41202b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050b510
add esp, 0xc
test eax, eax
jne 0x41202b
lea eax, [ebp - 0x210]
push eax
call fcn.00406d7c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005089e6
leave
ret

Function at 0x41dccb
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 0x41dd12
call fcn.0041f136
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41dd12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dd2e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d7d0
mov esi, eax
test edi, edi
je 0x41dd2c
test ebx, ebx
je 0x41dd2c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e4e9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x528b96
call fcn.0050983c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41e50e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e560
call fcn.00402c9a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401360
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.00509992
push eax
call fcn.00402ab3
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00509914
ret 8

Function at 0x41f4fa
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041f1b9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41f544
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402b94
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402b65
jmp 0x41f54f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042260a
pop edi
pop esi
pop ebp
ret 0xc