joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
in al, dx
sub esp, 0x10
shr eax, 3
mov dword [ebp - 4], eax
test eax, eax
je 0x4019c3
lea edx, [ecx + eax*8 - 8]
push esi
mov dword [ebp - 8], edx
push edi
lea ecx, [ecx]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [0x5700e0]
add edx, dword [0x5700e4]
mov esi, 0x20
add edx, dword [0x5700dc]
add edx, dword [0x5700d8]
mov dword [ebp - 0xc], edx
shl edx, 5
dec esi
mov dword [ebp - 0x10], esi
mov esi, ecx
shr esi, 5
add esi, dword [0x5700e4]
mov edi, ecx
shl edi, 4
add edi, dword [0x5700e0]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [0x5700dc]
mov edi, eax
shl edi, 4
add edi, dword [0x5700d8]
xor esi, edi
lea edi, [edx + eax]
sub edx, dword [ebp - 0xc]
xor esi, edi
sub ecx, esi
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x401948
mov esi, dword [0x5700dc]
mov edx, dword [ebp - 8]
xor esi, ecx
mov dword [edx], esi
mov ecx, dword [0x5700dc]
xor ecx, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [edx + 4], ecx
sub edx, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x401920
pop edi
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a90
Capabilities:
Acquire debug privileges
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a8
mov eax, dword [0x56f190]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
push edi
mov edi, ecx
call fcn.0040657f
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call esi
mov edx, dword [edi + 0xb8]
mov eax, dword [edi + 0x20]
push edx
push 0
push 0x80
push eax
call esi
push str.SeDebugPrivilege
call fcn.00402870
push str.SeSecurityPrivilege
call fcn.00402870
push 0x94
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00503a40
add esp, 0xc
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x401bb9
cmp dword [esp + 0x10], 2
jae 0x401bbf
call fcn.00401ce0
test eax, eax
jne 0x401b74
mov ecx, edi
call fcn.00401f30
test eax, eax
jne 0x401b74
lea eax, [esp + 0xa0]
push eax
push edi
call fcn.00402930
call fcn.00402b20
test eax, eax
jne 0x401b74
lea eax, [esp + 0xa0]
call fcn.00402750
test eax, eax
jne 0x401b74
call fcn.00402cf0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0xc4]
mov ecx, 1
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x401ba6
push 0
lea ecx, [edi + 0xc4]
call fcn.00401520
mov ecx, dword [edi + 0xc4]
call fcn.004029a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jbe 0x401b34
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401ce0
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x110]
push 0
mov esi, 0x490
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x260], 0
call fcn.00503a40
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x110]
push 0x5c
push edx
call fcn.00502120
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401d72
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00502120
add esp, 8
test eax, eax
jne 0x401d70
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x254], ecx
mov ebx, ecx
jmp 0x401d79
mov ebx, eax
inc ebx
mov dword [ebp - 0x254], ebx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
mov edx, 0x2a
push ecx
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401f13
jmp 0x401db0
test byte [ebp - 0x250], 0x10
jne 0x401ea7
push str..chm
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x401ea7
lea eax, [ebp - 0x224]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401de3
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ea7
test esi, esi
je 0x401ea7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [edi + 0xc0], eax
call fcn.004032ad
add esp, 4
mov dword [edi + 0xbc], eax
test eax, eax
je 0x401ea0
mov ecx, dword [edi + 0xc0]
push ecx
push 0
push eax
call fcn.00503a40
mov eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0xbc]
add esp, 0xc
push 0
lea edx, [ebp - 0x260]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401ea0
mov ebx, dword [edi + 0xbc]
cmp dword [ebx + 0x1c], 0x50464844
je 0x401ee6
mov eax, dword [edi + 0xc0]
mov ecx, ebx
call fcn.00401900
cmp dword [ebx + 0x1c], 0x50464844
je 0x401ee6
mov ebx, dword [ebp - 0x254]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401db0
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x25c]
push ecx
mov dword [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
Function at 0x4022b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402344
push 0x128
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.00503a40
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40233d
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
lea edx, [ebp - 0x10c]
push str.kxescore.exe
push edx
call fcn.0050f572
add esp, 8
test eax, eax
je 0x402338
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x402310
jmp 0x40233d
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x40275e
mov eax, 0x57
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402757
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4027b7
push esi
call fcn.00402660
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x54ee34
push str.CabinetWClass
call esi
test eax, eax
jne 0x4027a4
push str.Desktop
push str.CabinetWClass
call esi
test eax, eax
je 0x4027b1
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret

Function at 0x4027c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402857
push 0x128
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00503a40
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402850
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea edx, [ebp - 0x10c]
push str.explorer.exe
push edx
call fcn.0050f572
add esp, 8
test eax, eax
je 0x40284a
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x402822
jmp 0x402850
mov ebx, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
Function at 0x4029a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
mov esi, ecx
call fcn.00503a40
add esp, 0xc
test esi, esi
je 0x4029ec
lea edx, [ebp - 0x110]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4029e0
jmp 0x402a00
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x110]
push 0x5c
push edx
call fcn.00502120
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a2e
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00502120
mov esi, eax
add esp, 8
test esi, esi
je 0x402a39
inc esi
mov ecx, 0x2a
mov word [esi], cx
jmp 0x402a4b
mov edx, 0x2a
mov word [ebp - 0x110], dx
lea esi, [ebp - 0x110]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x402adf
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x250], 0x10
jne 0x402ac7
lea eax, [ebp - 0x224]
mov edx, esi
mov ecx, eax
sub edx, ecx
jmp 0x402a90
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402a90
push 0x80
lea edx, [ebp - 0x110]
push edx
call edi
lea eax, [ebp - 0x110]
push eax
call ebx
cmp eax, 1
je 0x402ac7
push 4
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402a76
lea ecx, [ebp - 0x110]
push ecx
mov word [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
je 0x402b08
push 4
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
Function at 0x402b20
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00503a40
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x108]
push ebx
push edx
call fcn.00503a40
mov eax, dword [edi + 0xc4]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 0xc
or ecx, dword [eax - 8]
jge 0x402b99
push ebx
lea ecx, [edi + 0xc4]
call fcn.00401520
mov eax, dword [edi + 0xc4]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402ba7
lea edx, [ebp - 0x108]
push 0x5c
push edx
call fcn.00502120
add esp, 8
test eax, eax
jne 0x402c32
lea eax, [ebp - 0x108]
push 0x2f
push eax
call fcn.00502120
add esp, 8
test eax, eax
jne 0x402c32
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402bf4
mov edx, dword [str.TempIMEC_]
mov ecx, dword [0x54ee68]
mov dword [eax], edx
mov edx, dword [0x54ee6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c20
sub eax, edx
lea eax, [ebp + eax - 0x108]
jmp 0x402c33
inc eax
mov ecx, dword [str.BgRpt.chm]
mov dword [eax], ecx
mov edx, dword [0x54ee74]
mov dword [eax + 4], edx
mov cx, word [0x54ee78]
push 0x80
lea edx, [ebp - 0x108]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 6
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402cd3
test esi, esi
je 0x402cd3
mov edx, dword [edi + 0xc0]
mov eax, dword [edi + 0xbc]
push 0
lea ecx, [ebp - 0x210]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x402cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret
Function at 0x402cf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004027c0
push 0
push 2
mov dword [ebp - 0x134], eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, edi
je 0x402dc0
push 0x128
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00503a40
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402dac
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x118]
jne 0x402d86
lea eax, [ebp - 0x10c]
push str.cesysinfo.exe
push eax
call fcn.0050f572
add esp, 8
test eax, eax
je 0x402d96
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x402d60
jmp 0x402dac
mov edx, dword [ebp - 0x128]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x402dc0
test edi, edi
je 0x402dc0
push 0xffffffffffffffff
jmp 0x402dc5
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501bd9
mov esp, ebp
pop ebp
ret

Function at 0x402e30
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 0x402e4b
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 0x402e82
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402e7e
jmp 0x402e70
cmp esi, eax
jae 0x402e82
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e70
cmp esi, eax
jb 0x402e89
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 0x4039d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56f190]
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 0x403a18
push 0x527050
push 4
push eax
call fcn.00502b64
push eax
call fcn.00403311
add esp, 0x10
jmp 0x403a2e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x403ab1
push edi
call fcn.005037fc
mov edi, dword [eax]
call fcn.005037fc
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.00503799
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005037fc
cmp dword [eax], 0
je 0x403a85
call fcn.005037fc
push dword [eax]
call fcn.0040333d
pop ecx
jmp 0x403a8c
call fcn.005037fc
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x403ab1
cmp dword [ebp - 0x11c], esi
jae 0x403ab1
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x403ab3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501bd9
leave
ret
Function at 0x403ac0
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x56f190]
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.0040385b
pop ecx
cmp eax, esi
je 0x403baa
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x403baa
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.00503a40
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 0x403baa
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x403baa
cmp esi, 0x14
jge 0x403baa
push 0x10
push 0
push edi
call fcn.00503a22
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403b99
call fcn.005037fc
cmp dword [eax], 0x22
je 0x403b99
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00503845
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x403b6f
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 [0x57010c], 0
jne 0x403c35
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x403c5e
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004039d0
pop ecx
pop ecx
test eax, eax
jne 0x403c60
inc edi
cmp edi, esi
jl 0x403c3b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501bd9
leave
ret 8
Function at 0x404b79
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 0x404bc1
call fcn.0040c4bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404bc1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c04
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 0x404bed
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 0x404bed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x404c01
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 0x406a8c
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.0040c4bc
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 0x406ac5
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.004066ce
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 0x406b23
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 0x406b47
cmp dword [edi + 0x74], 0
jne 0x406b47
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040c4bc
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.00406ae4
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 0x412935
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 0x41297c
call fcn.0040c4bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41297c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412998
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041243a
mov esi, eax
test edi, edi
je 0x412996
test ebx, ebx
je 0x412996
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41314f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51a1aa
call fcn.00502fa7
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x413174
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4131c6
call fcn.00407f51
push eax
lea ecx, [ebp - 0x10]
call fcn.004013f0
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.0050409b
push eax
call fcn.00403311
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.004017d0
mov eax, esi
call fcn.0050307f
ret 8

Function at 0x414223
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56f190]
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 0x414258
xor eax, eax
jmp 0x4142ab
lea eax, [ebp - 0x210]
push eax
call fcn.00503845
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x414289
push 0x528bb0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00506097
add esp, 0xc
test eax, eax
jne 0x414254
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00506097
add esp, 0xc
test eax, eax
jne 0x414254
lea eax, [ebp - 0x210]
push eax
call fcn.0040dfc7
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501bd9
leave
ret