joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x40c74a
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40c74a
mov edx, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x40c73b
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.00411d3c
mov esi, eax
add esp, 4
test esi, esi
je 0x40c736
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
push edi
push esi
call fcn.00511f10
add esp, 0xc
cmp dword [ebp - 4], edi
jbe 0x40c73b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push esi
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x40c73b
push esi
call fcn.00411d47
mov edx, dword [ebp + 8]
add esp, 4
xor esi, esi
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xe
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x57
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d4c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x40d4ec
push 0x104
mov ecx, esi
call fcn.00402820
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 4], 0x104
test eax, eax
je 0x40d533
test ecx, ecx
je 0x40d533
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, dword [ebx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x40d526
inc dword [ebx]
lea edi, [eax + 1]
jmp 0x40d53d
sub eax, 0x103
neg eax
sbb eax, eax
mov edi, eax
jmp 0x40d53d
mov dword [edi + 4], 0x57
or edi, 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40d554
push ecx
push eax
call fcn.00510cc1
add esp, 8
test eax, eax
js 0x40d56d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40d56d
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004029a0
int3
Function at 0x40d660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534718
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.004020e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x40d717
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
lea edi, [eax + eax + 2]
jle 0x40d6be
push eax
lea ecx, [ebp - 0x14]
call fcn.00402750
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov byte [ebp + 0x13], 0
test eax, eax
je 0x40d750
test esi, esi
je 0x40d750
push edi
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov cl, 1
test eax, eax
je 0x40d6ea
mov cl, byte [ebp + 0x13]
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
cmp cl, 1
jne 0x40d6f8
mov byte [ebp - 0xd], cl
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00510cc1
add esp, 8
test eax, eax
js 0x40d75c
cmp eax, dword [esi - 8]
jg 0x40d75c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d73a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x57
jmp 0x40d6f8
push 0x80070057
call fcn.004029a0
int3

Function at 0x40da80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534420
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
je 0x40dac8
push 0x57e050
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.00511cb4
mov edi, dword [esi + 8]
mov ecx, 0x564b34
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40daf8
cmp dx, bx
je 0x40daf4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40daf8
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40dad2
xor eax, eax
jmp 0x40dafd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x40db09
push ebx
jmp 0x40db0a
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40db2a
push 0x57e050
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.00511cb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40db70
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x57e050
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.00511cb4
mov byte [ebp - 0x14], 0
mov eax, 0x40db5b
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x40dbee
push edi
mov edi, dword [esi + 8]
mov ecx, 0x564b34
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dbd6
test dx, dx
je 0x40dbd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dbd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40dbb0
xor eax, eax
jmp 0x40dbdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40dbed
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
pop edi
mov eax, dword [esi + 4]
test eax, eax
je 0x40dc1b
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40dc13
cmp eax, 0x80
jne 0x40dc1b
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x40f6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrUtilities
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f72e
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40f790
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x40f852
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x40f84f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x40f84f
cmp dword [esi + 0xc], 0
je 0x40f84f
cmp dword [esi + 0x10], 0
je 0x40f84f
cmp dword [esi + 0x14], 0
je 0x40f84f
cmp dword [esi + 0x18], 0
je 0x40f84f
cmp dword [esi + 0x1c], 0
je 0x40f84f
cmp dword [esi + 0x20], 0
je 0x40f84f
test eax, eax
jne 0x40f852
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40f8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x587c1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x40f9ad
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x40f9ad
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40f930
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f6d0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x40f96e
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f99e
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40f980
push edi
push str.BrLogAPI.dll
mov eax, 0x104
lea edi, [ebp - 0x20c]
call fcn.0040e920
pop edi
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x20c]
call fcn.0040f790
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051033a
mov esp, ebp
pop ebp
ret
Function at 0x410440
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534aa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ebx + 0x20]
push edi
mov ecx, esi
call fcn.00402a50
lea ecx, [esi + 4]
push ebx
call fcn.00402a50
push ecx
lea eax, [ebx + 0x24]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
mov dword [ebp - 0x14], eax
call fcn.004020e0
lea eax, [ebp - 0x10]
push eax
call fcn.00410580
lea ecx, [esi + 8]
push eax
mov dword [ebp - 4], 0
call fcn.00402a50
mov dword [ebp - 4], 0xffffffff
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 0x4104cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
mov eax, 0x564b34
mov cx, word [edi]
cmp cx, word [eax]
jne 0x4104f8
test cx, cx
je 0x4104f4
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x4104f8
add edi, 4
add eax, 4
test cx, cx
jne 0x4104d2
xor eax, eax
jmp 0x4104fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41054c
mov eax, dword [ebx]
mov ecx, 0x564b34
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41052e
test dx, dx
je 0x41052a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41052e
add eax, 4
add ecx, 4
test dx, dx
jne 0x410508
xor eax, eax
jmp 0x410533
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41054c
mov ecx, dword [ebp - 0x14]
push 0x564b34
push ecx
call fcn.0040dde0
add esp, 8
test al, al
je 0x410569
push str.k1bd
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413755
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.0041dc71
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41378e
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.00413392
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 0x4137ec
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 0x413810
cmp dword [edi + 0x74], 0
jne 0x413810
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041dc71
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004137ad
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 0x41a006
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 0x41a04d
call fcn.0041dc71
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a04d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a069
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419b06
mov esi, eax
test edi, edi
je 0x41a067
test ebx, ebx
je 0x41a067
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a820
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x533ab6
call fcn.00511baa
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41a845
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41a897
call fcn.004129bd
push eax
lea ecx, [ebp - 0x10]
call fcn.00402270
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.005116f9
push eax
call fcn.00402350
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.00402a30
mov eax, esi
call fcn.00511c82
ret 8
Function at 0x41b67d
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.0041b2c8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41b6c7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004128be
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405870
jmp 0x41b6d2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00424f58
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41b6d8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041a112
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41b715
call fcn.0041b2c8
mov dword [esi + 0xc], 1
jmp 0x41b71a
call fcn.0041b2c8
cmp dword [esi], 0
je 0x41b763
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x41b73b
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004128be
jmp 0x41b74d
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402880
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405870
jmp 0x41b787
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41b787
push dword [esi]
push dword [ebp + 8]
call fcn.00424f58
pop esi
pop ebp
ret 0xc

Function at 0x41c89d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x587c1c]
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 0x41c8e2
push 0x53ce00
push 4
push eax
call fcn.00511696
push eax
call fcn.00402350
add esp, 0x10
jmp 0x41c8f8
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c978
push edi
call fcn.00511d81
mov edi, dword [eax]
call fcn.00511d81
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.00511d1e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00511d81
cmp dword [eax], 0
je 0x41c94c
call fcn.00511d81
push dword [eax]
call fcn.00412098
pop ecx
jmp 0x41c953
call fcn.00511d81
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41c978
cmp dword [ebp - 0x234], esi
jae 0x41c978
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41c97a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051033a
leave
ret
Function at 0x41c987
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x587c1c]
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.0041571d
pop ecx
cmp eax, esi
je 0x41ca71
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41ca71
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.00511f10
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 0x41ca71
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41ca71
cmp esi, 0x14
jge 0x41ca71
push 0x10
push 0
push edi
call fcn.00513da6
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41ca60
call fcn.00511d81
cmp dword [eax], 0x22
je 0x41ca60
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051167b
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41ca36
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 [0x58b198], 0
jne 0x41cafc
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41cb25
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041c89d
pop ecx
pop ecx
test eax, eax
jne 0x41cb27
inc edi
cmp edi, esi
jl 0x41cb02
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051033a
leave
ret 8
Function at 0x41e16c
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 0x41e1b4
call fcn.0041dc71
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e1b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41e1f7
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 0x41e1e0
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 0x41e1e0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41e1f4
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 0x429477
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x587c1c]
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 0x4294ac
xor eax, eax
jmp 0x4294ff
lea eax, [ebp - 0x210]
push eax
call fcn.0051167b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4294dd
push 0x53d29c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00513dc0
add esp, 0xc
test eax, eax
jne 0x4294a8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00513dc0
add esp, 0xc
test eax, eax
jne 0x4294a8
lea eax, [ebp - 0x210]
push eax
call fcn.0041571d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051033a
leave
ret

Function at 0x4785e5
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 0x4785ff
call fcn.0041dc71
mov esi, dword [eax + 0xc]
push dword [0x58d064]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47861d
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 0x478615
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47864a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x478617
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00478513
mov esi, eax
jmp 0x47863c

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004183e7
call fcn.00412f01
cmp eax, esi
pop esi
jne 0x4edab8
mov ecx, 0x58b700
jmp fcn.00429e9f
ret