joyce8/EMBER2024-capa huggingface dataset:
Function at 0xefa000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xefa131
push esi
call fcn.00efd145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00eec080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xefa131
push 0
push ebp
call fcn.00eec3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00eec260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xefa08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00eec2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xefa121
push 0xf12918
push edi
call fcn.00efb3f0
push eax
push ebx
push esi
call fcn.00ef9f60
push 0xf128f8
push edi
call fcn.00efb3f0
push eax
push ebx
push esi
call fcn.00ef9f60
push 0xf128d8
push edi
call fcn.00efb3f0
push eax
push ebx
push esi
call fcn.00ef9f60
push 0xf128c0
push edi
call fcn.00efb3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ef9f60
push 0xf128a0
push edi
call fcn.00efb3f0
push eax
push ebx
push esi
call fcn.00ef9f60
push 0xf12888
push edi
call fcn.00efb3f0
push eax
push ebx
push esi
call fcn.00ef9f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xefb1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00efb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00efb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00efb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00efb140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xefbbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xefbc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf0d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xefbc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xefbc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4070d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4070e3
pop dword [ebp - 0x10]
mov eax, 0x3ad75bff
sub eax, 0x3a96eb1c
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x98bea788
sub dword [ebp - 0x20], 0x4a6c623d
mov dword [ebp - 0x1c], 0xac64b3b4
add dword [ebp - 0x1c], 0x85ce9891
mov dword [ebp - 0x18], 0x93ee7322
add dword [ebp - 0x18], 0xb85dd10c
mov dword [ebp - 0x14], 0x7d7f7e3e
sub dword [ebp - 0x14], 0x7d7f7e3e
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x2f65c969
sub dword [ebp - 0x20], 0xbaf36013
mov dword [ebp - 0x1c], 0xbd14f3d1
add dword [ebp - 0x1c], 0x84576da4
mov dword [ebp - 0x18], 0x5b7b3c30
sub dword [ebp - 0x18], 0xf80bcfc4
mov dword [ebp - 0x14], 0xdcd163a9
sub dword [ebp - 0x14], 0xdcd163a9
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x38254
push 0
call eax
mov ecx, 0x4c5a
xor edi, edi
add edi, eax
mov ebx, 0x3779798c
sub ebx, 0x3734378c
add ebx, dword [ebp - 0x10]
mov esi, 0x670e79ac
xor dword [ebp - 8], esi
mov edx, dword [ebx]
add dword [ebp - 0xc], edi
sub edx, esi
mov dword [edi], edx
add edi, 4
add ebx, 0x2251a485
add ebx, 0xddae5b7f
loop 0x4071f1
add eax, 0x1243b
mov ebx, eax
add eax, 0x52ab2da7
add eax, 0xad54d25e
mov ecx, 0xe37e7ec3
add ecx, 0x1cc1813d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x40100a
repz ret
jmp fcn.0040164f

Function at 0x4071e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040401f
and dword [ebp - 0x14], 0
cmp dword [0x42ce64], 0
mov dword [ebp - 0x18], eax
jne 0x407297
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40733f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40733f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ce64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ce68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ce6c], eax
call edi
push eax
call esi
mov dword [0x42ce74], eax
test eax, eax
je 0x407297
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ce70], eax
mov eax, dword [0x42ce70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4072f0
cmp dword [0x42ce74], ecx
je 0x4072f0
push eax
call esi
push dword [0x42ce74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4072f0
test ebx, ebx
je 0x4072f0
call edi
test eax, eax
je 0x4072e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4072e7
test byte [ebp - 8], 1
jne 0x4072f0
or dword [ebp + 0x10], 0x200000
jmp 0x407323
mov eax, dword [0x42ce68]
cmp eax, dword [ebp - 0x18]
je 0x407323
push eax
call esi
test eax, eax
je 0x407323
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407323
mov eax, dword [0x42ce6c]
cmp eax, dword [ebp - 0x18]
je 0x407323
push eax
call esi
test eax, eax
je 0x407323
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ce64]
call esi
test eax, eax
je 0x40733f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407341
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x422fc0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x22cfea4], 0xfc7
jne 0x422fef
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x42d384]
imul eax, eax, 0x343fd
cmp dword [0x22cfea4], 0x139e
mov dword [0x42d384], eax
jne 0x42301e
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x42d384]
add eax, 0x269ec3
push esi
mov dword [0x42d384], eax
movzx esi, word [0x42d386]
and esi, 0x7fff
cmp dword [0x22cfea4], 0x8e7
jne 0x423053
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x408
ret

Function at 0x423120
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x429200]
push ebx
mov ebx, dword [0x22cf910]
push edi
mov edi, dword [0x22cfea4]
call fcn.00423070
cmp dword [0x22cfea4], 0x2f
jne 0x423185
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.004230a0
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x423460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409160
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x423489
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x42352f
cmp dword [0x22cfea4], 0xa5f
jne 0x4234d3
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x426c7c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x4234f8
mov eax, dword [0x42c0f0]
mov dword [0x22cfea4], eax
mov ecx, dword [0x22cfea4]
add ecx, 0xa231
mov dword [0x22cfea4], ecx
cmp dword [0x22cfea4], 0x141
jne 0x42352a
push str.durudaxo_payuyafelamelokeyir_tacadasevow_kipazoci_kanorowawacasolicalotija
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x42d388], 0xec58acac
mov dword [0x42d38c], 0xffffffff
jmp 0x423480
call fcn.004231a0
jmp dword [0x22cf910]
Function at 0x401720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c278
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x578dbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00401860
push 0x11
push 0x559040
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401f90
call fcn.00404a75
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x401781
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
push ecx
push edx
lea eax, [ebp - 0x14]
push str._i___s___s
push eax
call fcn.00401f70
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4017d5
push 1
push 1
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov ecx, esp
push edx
call fcn.00402100
call fcn.004019b0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40181b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4019b0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x578dbc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x130], esi
call fcn.00410b57
mov ecx, dword [eax + 4]
call fcn.00410f7d
push 0x3c
lea eax, [ebp - 0x170]
push esi
push eax
call fcn.0050af90
mov ecx, dword [ebp + 8]
push 0x11c
lea edx, [ebp - 0x12c]
push esi
push edx
mov dword [ebp - 0x170], 0x3c
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x16c], 0x40
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], str.msiexec
call fcn.0050af90
add esp, 0x18
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, esi
je 0x401a8d
cmp dword [ebp - 0x128], 6
jb 0x401a83
mov dword [ebp - 0x164], str.runas
cmp dword [ebp + 0xc], esi
jne 0x401a8d
mov dword [ebp - 0x164], str.open
lea ecx, [ebp - 0x170]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x401af8
cmp dword [ebp + 0x10], esi
je 0x401af8
mov dword [ebp - 0x130], 0x103
cmp dword [ebp - 0x138], esi
je 0x401af8
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x138]
push 0x1f4
push edx
call esi
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
push ecx
call edi
cmp dword [ebp - 0x130], 0x103
je 0x401ac1
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x130]
lea ecx, [ebp - 0x131]
call fcn.00401d20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00509788
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402220
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 0x40223b
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 0x402272
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40226e
jmp 0x402260
cmp esi, eax
jae 0x402272
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402260
cmp esi, eax
jb 0x402279
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 0x40309c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x578dbc]
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 0x4030e1
push 0x52efc0
push 4
push eax
call fcn.0050a0ee
push eax
call fcn.00402190
add esp, 0x10
jmp 0x4030f7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x403177
push edi
call fcn.0050a7d9
mov edi, dword [eax]
call fcn.0050a7d9
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.0050a776
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050a7d9
cmp dword [eax], 0
je 0x40314b
call fcn.0050a7d9
push dword [eax]
call fcn.004028f3
pop ecx
jmp 0x403152
call fcn.0050a7d9
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x403177
cmp dword [ebp - 0x234], esi
jae 0x403177
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x403179
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00509788
leave
ret
Function at 0x40384b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x578dbc]
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.004036e0
pop ecx
cmp eax, esi
je 0x403935
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x403935
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.0050af90
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 0x403935
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x403935
cmp esi, 0x14
jge 0x403935
push 0x10
push 0
push edi
call fcn.0050af6b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403924
call fcn.0050a7d9
cmp dword [eax], 0x22
je 0x403924
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0050a0d3
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4038fa
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 [0x57a36c], 0
jne 0x4039c0
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4039e9
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040309c
pop ecx
pop ecx
test eax, eax
jne 0x4039eb
inc edi
cmp edi, esi
jl 0x4039c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00509788
leave
ret 8
Function at 0x405361
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 0x4053a9
call fcn.00410b57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4053a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4053ec
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 0x4053d5
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 0x4053d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4053e9
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 0x413d4a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x578dbc]
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 0x413d7f
xor eax, eax
jmp 0x413dd2
lea eax, [ebp - 0x210]
push eax
call fcn.0050a0d3
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x413db0
push 0x5303dc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050b00a
add esp, 0xc
test eax, eax
jne 0x413d7b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050b00a
add esp, 0xc
test eax, eax
jne 0x413d7b
lea eax, [ebp - 0x210]
push eax
call fcn.004036e0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00509788
leave
ret

Function at 0x41bc57
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52adc7
call fcn.0050a602
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41bc7c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41bcce
call fcn.00404a75
push eax
lea ecx, [ebp - 0x10]
call fcn.00401450
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.0050a151
push eax
call fcn.00402190
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.00401530
mov eax, esi
call fcn.0050a6da
ret 8
Function at 0x42a7e7
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 0x42a82e
call fcn.00410b57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a82e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42a84a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042a2e7
mov esi, eax
test edi, edi
je 0x42a848
test ebx, ebx
je 0x42a848
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44486c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x444886
call fcn.00410b57
mov esi, dword [eax + 0xc]
push dword [0x57d140]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4448a4
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x44489c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4448d1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x44489e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0044479a
mov esi, eax
jmp 0x4448c3

Function at 0x48d03c
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.0048cce0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x48d086
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00412b47
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00401ea0
jmp 0x48d091
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00416fbe
pop edi
pop esi
pop ebp
ret 0xc