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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x465f83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x465f6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4999ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046d230
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x659d64
call fcn.0048af44
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46c9a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048af44
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46c99c
push 0
mov ecx, eax
call fcn.00463a40
mov dword [esi + 0xc], eax
jmp 0x46c9a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46c9a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48d5a7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d5df
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b65e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b636
jmp 0x48d5eb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ec99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48ecdb
call fcn.00494751
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48ecdb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ecd2
xor eax, eax
jmp 0x48ece3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048ece9
pop edi
pop esi
pop ebx
ret 4
Function at 0x494c81
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x494caf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x494ccd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494be7
jmp 0x494ccd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494ccd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494be7
test edi, edi
mov eax, edi
jne 0x494cb7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a50
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.00416190
lea ecx, [ebp - 0x18]
call fcn.00416190
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x402ac0
mov ecx, 0x8740
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x402ae0
or ecx, 0x100
mov dword [ebp - 0x50], ecx
mov eax, dword [0x434f0c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00405da0
add esp, 8
lea ecx, [ebp - 0x18]
push eax
call fcn.00416300
cmp dword [ebp - 8], 0
je 0x402b4a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402b6a
test ebx, ebx
jne 0x402b41
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
push dword [ebp - 0x18]
call fcn.0041e329
push dword [ebp - 0xc]
call fcn.0041e329
add esp, 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x402b4f
Function at 0x403a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
lea edi, [esi + 4]
mov dword [esi], 0x42ab30
mov ecx, edi
call fcn.00416190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x403a71
push edi
lea ecx, [ebp - 0x14]
call fcn.004160d0
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp ebx, dword [edi + 8]
jbe 0x403a50
push ebx
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp - 4]
push esi
push eax
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x14]
mov esi, dword [edi]
call fcn.0041e329
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 8]
mov ecx, dword [edi]
xor eax, eax
cmp word [ecx], ax
je 0x403a88
nop word [eax + eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x403a80
mov dword [edi + 4], eax
xor edx, edx
pop edi
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403aa0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi], 0x42ab30
je 0x403ab8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [esi + 4]
call fcn.0041e329
add esp, 4
pop esi
ret
Function at 0x404580
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00416190
push edi
lea ecx, [ebp - 0x14]
call fcn.004160d0
cmp dword [edi + 8], 2
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
jae 0x4045b1
push 2
mov ecx, edi
call fcn.00416a60
push esi
push ebx
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x14]
mov esi, dword [edi]
call fcn.0041e329
add esp, 0x10
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
mov dword [edi + 4], 0
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x404641
push edi
lea ecx, [ebp - 0x14]
inc ebx
call fcn.004160d0
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
cmp ebx, dword [edi + 8]
jbe 0x404607
push ebx
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp + 8]
push esi
push eax
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x14]
mov esi, dword [edi]
call fcn.0041e329
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [edi]
xor eax, eax
cmp word [ecx], ax
je 0x404638
nop
inc eax
cmp word [ecx + eax*2], 0
jne 0x404630
xor edx, edx
mov dword [edi + 4], eax
mov word [ecx + eax*2], dx
mov eax, dword [edi + 4]
xor ebx, ebx
lea ecx, [eax + 0xf]
add eax, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
push edi
lea ecx, [ebp - 0x14]
call fcn.004160d0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp ecx, dword [edi + 8]
jbe 0x404676
push ecx
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp - 4]
push esi
push eax
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x14]
mov esi, dword [edi]
call fcn.0041e329
mov eax, dword [ebp - 8]
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [edi]
xor eax, eax
add esp, 0x1c
cmp word [ecx], ax
je 0x4046ad
inc eax
cmp word [ecx + eax*2], 0
jne 0x4046a5
xor edx, edx
mov dword [edi + 4], eax
mov word [ecx + eax*2], dx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4046cc
inc ebx
cmp ebx, 0xfff
jl 0x404651
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
call fcn.00416130
push 0x42ab98
lea ecx, [ebp - 0xc]
call fcn.00416640
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4047da
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edi
lea ecx, [ebp - 0xc]
call fcn.00416300
mov ecx, dword [ebp - 8]
cmp dword [ebp - 4], ecx
jne 0x404742
lea ecx, [ebp - 0xc]
call fcn.004168a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, 0x5c
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x230]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0xc]
push eax
call fcn.00416640
test byte [ebp - 0x25c], 0x10
je 0x4047a1
push 0x42aba0
lea eax, [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x4047bd
push 0x42aba4
lea eax, [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x4047bd
push dword [ebp - 0xc]
call fcn.004046e0
add esp, 4
jmp 0x4047b9
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404817
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404817
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404726
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x434f78]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404817
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404817
push dword [ebp - 0xc]
mov esi, 1
call fcn.0041e329
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
xor esi, esi
call fcn.0041e329
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404830
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x435094], 0
push esi
jne 0x404897
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404897
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x404889
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404882
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004046e0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4048b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x435094], 0
push esi
jne 0x404937
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404937
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4048ff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40490c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404908
push esi
call fcn.004046e0
add esp, 4
test eax, eax
jne 0x404937
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40491c
cmp eax, 0x20
jne 0x40492f
test byte [0x434f54], 8
je 0x40492f
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00416190
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004160d0
cmp dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jae 0x404973
push 1
lea ecx, [ebp - 0xc]
call fcn.00416a60
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041fb54
push dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
call fcn.0041e329
mov ebx, dword [ebp + 8]
add esp, 0x10
push 1
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404a0e
lea edi, [eax + 1]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004160d0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], eax
cmp edi, dword [ebp - 4]
jbe 0x4049c6
push edi
lea ecx, [ebp - 0xc]
call fcn.00416a60
mov eax, dword [ebp + 8]
push esi
push eax
push dword [ebp - 0xc]
call fcn.0041fb54
push dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
call fcn.0041e329
add esp, 0x10
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0xc]
xor eax, eax
cmp word [edx], ax
je 0x4049fa
inc eax
cmp word [edx + eax*2], 0
jne 0x4049f2
xor ecx, ecx
mov dword [ebp - 8], eax
mov word [edx + eax*2], cx
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
call fcn.00416290
push dword [ebp - 0xc]
call fcn.0041e329
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404c70
Capabilities:
Get geographical location
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4340c0]
sub esp, 0xa0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test eax, eax
je 0x404ca4
nop dword [eax]
cmp eax, esi
je 0x404ca4
inc edi
mov eax, edi
shl eax, 4
mov eax, dword [eax + 0x4340c0]
test eax, eax
jne 0x404c90
shl edi, 4
cmp dword [edi + 0x4340c0], 0
jne 0x404cbb
pop edi
mov eax, 0x42a9f8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 4], esi
call ebx
mov edx, 2
test eax, eax
jne 0x404d63
xor ecx, ecx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e320
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov esi, eax
lea eax, [ebp - 0x60]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x404d5a
call ebx
test eax, eax
jne 0x404d5a
mov eax, dword [edi + 0x4340cc]
test eax, eax
je 0x404d52
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404d5a
push 2
push dword [edi + 0x4340cc]
call fcn.0041e312
add esp, 8
mov dword [edi + 0x4340cc], esi
jmp 0x404d63
push esi
call fcn.0041e329
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x4340cc]
test eax, eax
jne 0x404e9d
mov ebx, dword [edi + 0x4340c4]
cmp dword [edi + 0x4340c8], eax
je 0x404e02
mov dx, word [0x434f08]
test dx, dx
jne 0x404df1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x434f08], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x404db6
movzx eax, ax
jmp 0x404df4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x404dea
mov esi, dword [0x42ada0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x434f08]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x434f08], dx
jmp 0x404df1
mov dx, word [0x434f08]
movzx eax, dx
cmp eax, dword [0x42ada0]
jne 0x404e02
mov ebx, dword [edi + 0x4340c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e320
mov ecx, dword [0x4340bc]
add esp, 4
mov dword [edi + 0x4340cc], eax
cmp ecx, 0xffffffff
jne 0x404e82
push 0x1f
lea eax, [ebp - 0xa0]
mov dword [0x4340bc], 0
push eax
movzx eax, word [0x434f08]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x404e7c
lea eax, [ebp - 0xa0]
push eax
call fcn.0041faf5
mov ecx, eax
add esp, 4
mov dword [0x4340bc], ecx
jmp 0x404e82
mov ecx, dword [0x4340bc]
lea eax, [esi + 1]
push eax
push dword [edi + 0x4340cc]
push esi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x4340cc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405660
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x434f08]
test dx, dx
jne 0x4056cc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x434f08], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x40568d
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x4056c5
push esi
mov esi, dword [0x42ada0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x434f08]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x434f08], dx
pop esi
movzx eax, dx
ret
mov dx, word [0x434f08]
movzx eax, dx
ret

Function at 0x4056d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00416190
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
jle 0x40574d
push esi
push edi
lea ecx, [ebp - 0x10]
lea esi, [ebx + 1]
call fcn.004160d0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x40571d
push esi
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x10]
mov esi, dword [edi]
call fcn.0041e329
add esp, 0x10
lea eax, [ebx + 1]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi]
xor eax, eax
mov dword [edi + 4], ebx
pop esi
mov word [ecx + ebx*2], ax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x434f08]
mov edi, eax
mov ebx, dword [ebp + 0xc]
push ecx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x405cf5
push 0x409
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x405d20
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405d06
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405d20
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x434f14], 0
jne 0x405d8c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x434f58]
mov dword [0x434f14], 1
call edi
movzx ecx, word [0x434f08]
mov esi, eax
push 0
push 0x409
push 0
push ecx
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x405d82
push str.SetThreadPreferredUILanguages
push dword [0x434f58]
call edi
mov esi, eax
test esi, esi
je 0x405d8c
push 0
lea eax, [ebp - 0x40]
push eax
push 4
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, edi
mov dword [ebp - 8], esi
call fcn.00416190
push edi
lea ecx, [ebp - 0x18]
add esi, 2
call fcn.004160d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x405ed1
push esi
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x18]
call fcn.0041e329
add esp, 0x10
lea ecx, [ebp - 0x18]
push edi
call fcn.004160d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x405f0d
push esi
mov ecx, edi
call fcn.00416a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fb54
push dword [ebp - 0x18]
mov esi, dword [edi]
call fcn.0041e329
mov eax, dword [ebp - 8]
add esp, 0x10
inc eax
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi]
xor ecx, ecx
cmp word [eax], cx
je 0x405f48
nop dword [eax + eax]
inc ecx
cmp word [eax + ecx*2], 0
jne 0x405f40
mov dword [edi + 4], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret