joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b040
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
push 0x8001
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0040d7c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0x7ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x24]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0
push eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp byte [esp + 0x34], 0
je 0x40b0d1
lea eax, [esp + 0x30]
push eax
call dword [esp + 0x28]
call fcn.0040aef0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040ac70
cmp byte [0x4305f9], 0
je 0x40b104
push 0
push str.RepairPartner_Installer_Usage
push str.RepairPartner_install.exe___s___d__path____register___opt_pdffilter_...___x___autoupdate__n_____n_____s_tinstalls_RepairPartner_silently__without_user_interaction_._n_____d_tchanges_the_directory_where_RepairPartner_will_be_installed._n_____register_tregisters_RepairPartner_as_the_default_PDF_viewer._n_____opt_tenables_optional_components__currently:_pdffilter__pdfpreviewer__plugin_._n_____x_tjust_extracts_the_files_contained_within_the_installer._n_____autoupdate_tperforms_an_update_with_visible_UI_and_minimal_user_interaction.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ebx, ebx
jmp 0x40b159
cmp dword [0x4305fc], 0
jne 0x40b117
call fcn.00409bf0
mov dword [0x4305fc], eax
call fcn.00407750
mov ecx, eax
call fcn.00407680
cmp byte [0x4305f8], 0
je 0x40b140
push 0
call fcn.00408c00
xor ebx, ebx
cmp byte [0x43060c], bl
sete bl
jmp 0x40b159
call fcn.0040a960
test al, al
je 0x40b159
call fcn.0040a9d0
test eax, eax
je 0x40b159
call fcn.0040aac0
mov ebx, eax
cmp dword [0x43056c], 0
je 0x40b19f
mov eax, dword [0x430568]
test eax, eax
je 0x40b19f
push dword [eax + 0x7c]
call fcn.00413186
mov esi, dword [0x430568]
add esp, 4
test esi, esi
je 0x40b195
mov ecx, esi
call fcn.00406d70
push 0x88
push esi
call fcn.0040e583
add esp, 8
mov dword [0x430568], 0
push dword [0x4305fc]
call fcn.00413186
add esp, 4
push dword [0x430604]
call fcn.00413186
add esp, 4
cmp byte [esp + 0x34], 0
je 0x40b1ca
push dword [esp + 0x30]
call dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b350
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push esi
mov esi, edx
xor esi, 0x1505
push edi
mov edi, ecx
cmp edx, 4
jb 0x40b397
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x40b370
imul ecx, dword [edi], 0x5bd1e995
sub edx, 4
imul esi, esi, 0x5bd1e995
add edi, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
sub ebx, 1
jne 0x40b370
pop ebx
sub edx, 1
je 0x40b3b8
sub edx, 1
je 0x40b3af
sub edx, 1
jne 0x40b3c3
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor eax, esi
imul esi, eax, 0x5bd1e995
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x40c400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00410300
add esp, 0xc
lea eax, [ebp - 0x204]
push esi
push 0
push edi
push 0xffffffffffffffff
push 0x200
push eax
call fcn.00401040
push dword [eax + 4]
push dword [eax]
call fcn.00413138
add esp, 0x20
mov byte [ebp - 5], 0
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
pop edi
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c462
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, 0x200
jae 0x40c4a1
mov ecx, 0x1ff
sub ecx, eax
cmp ecx, 1
jbe 0x40c487
mov ecx, 1
push ecx
push 0x425c54
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00414cba
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e41c
mov esp, ebp
pop ebp
ret

Function at 0x40c4c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00410300
add esp, 0xc
lea eax, [ebp - 0x204]
push esi
push 0
push edi
push 0xffffffffffffffff
push 0x100
push eax
call fcn.00401040
push dword [eax + 4]
push dword [eax]
call fcn.0041315f
add esp, 0x20
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
pop edi
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c524
sub eax, edx
sar eax, 1
lea ecx, [eax + 1]
cmp ecx, 0x100
jae 0x40c569
mov ecx, 0xff
sub ecx, eax
cmp ecx, 1
jbe 0x40c54f
mov ecx, 1
push ecx
push 0x42c980
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00415040
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e41c
mov esp, ebp
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ca40
mov esi, eax
cmp esi, edi
je 0x40cf32
test esi, esi
je 0x40cf2b
test edi, edi
je 0x40cf14
mov ecx, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cf06
test dx, dx
je 0x40cf02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cf06
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cee0
xor eax, eax
jmp 0x40cf0b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40cf32
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40cf2b
test byte [ebp - 0x28], 0x10
jne 0x40cf32
mov ecx, esi
call fcn.0040ceb0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cf43
mov bl, 1
jmp 0x40cf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
push esi
call fcn.00413186
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e41c
mov esp, ebp
pop ebp
ret

Function at 0x40dc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
mov ebx, 0x20019
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40dce6
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40dcdd
mov eax, dword [ebp - 8]
shr eax, 1
inc eax
push 2
push eax
call fcn.00413258
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40dcdd
push edi
call fcn.00413186
add esp, 4
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x40dd0a
mov eax, dword [ebp - 0xc]
cmp eax, 0x80000002
jne 0x40dd0a
cmp ebx, 0x20019
jne 0x40dd0a
mov edx, dword [ebp - 0x10]
mov ebx, 0x20119
jmp 0x40dc78
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
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 0x4010cb
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 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
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 0x403095
Capabilities:
Access peb ldr_data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x3d0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x30]
mov esi, dword [eax + 0x18]
mov eax, dword [esi + 0x140bb8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x140bbc]
mov dword [esp + 0x20], eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], edi
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esi + 0x140bc0]
mov dword [esp], eax
call fcn.0040306b
mov dword [esp], edi
call fcn.00402fff
cmp word [eax], 0
je 0x40310e
mov edx, 0
add edx, 1
cmp word [eax + edx*2], 0
jne 0x4030f5
cmp edx, 0x1e
jbe 0x40310e
add esp, 0x3d0
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x28]
mov dword [esp + 0x3cc], eax
mov ecx, dword [esp + 0x7c]
add ecx, esi
cmp dword [ecx], 0
je 0x403167
movzx eax, word [ebx]
test ax, ax
je 0x40317e
mov edx, 0
add edx, 1
cmp word [ebx + edx*2], 0
jne 0x403131
cmp byte [ecx], dl
je 0x403144
cmp byte [ecx + 1], dl
jne 0x403104
add ebx, 2
mov edx, 0
movzx eax, ax
add edx, eax
add ebx, 2
movzx eax, word [ebx - 2]
test ax, ax
jne 0x40314c
cmp dword [ecx + 4], edx
je 0x403167
cmp dword [ecx + 8], edx
jne 0x403104
mov eax, dword [esp + 0x90]
add esi, eax
lea eax, [esp + 0x3b4]
mov dword [esp], eax
call esi
jmp 0x403104
mov edx, 0
cmp byte [ecx], 0
je 0x40315d
mov edx, 0
cmp byte [ecx + 1], 0
je 0x40315d
jmp 0x403104
Function at 0x406120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58abb4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00510a50
add esp, 0xc
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40626f
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406185
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
cmp eax, 4
jne 0x4061a3
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4061f5
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4061c5
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4061dd
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 2
jb 0x40625c
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x406247
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x406217
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40622f
mov eax, 0xb
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x406249
mov eax, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
jb 0x40625c
mov eax, 0xd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp al, 4
jae 0x406286
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406175
cmp dword [ebp - 0x114], 4
jne 0x4062cc
mov eax, dword [ebp - 0x110]
cmp eax, 0xa
jne 0x4062c2
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
mov eax, 5
je 0x4062d1
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
Function at 0x40a460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e868
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x58abb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx - 0xc]
lea esi, [edi - 1]
mov dword [ebp - 4], edx
cmp esi, edx
jl 0x40a4ef
cmp esi, edi
jg 0x40a4ef
movzx eax, word [ecx + esi*2]
cmp eax, 0x30
jb 0x40a4cb
cmp ax, 0x39
ja 0x40a4cb
cmp esi, edx
jl 0x40a51c
dec esi
js 0x40a4c5
cmp esi, edi
jg 0x40a4ef
movzx eax, word [ecx + esi*2]
cmp ax, 0x30
jae 0x40a4b0
cmp esi, edx
jl 0x40a51c
cmp esi, edi
jg 0x40a4ef
movzx eax, word [ecx + esi*2]
cmp eax, 0x3a
je 0x40a51c
cmp esi, edi
jg 0x40a4ef
cmp eax, 0x2d
je 0x40a51c
cmp dword [ebp + 0x10], 0
je 0x40a4f9
push 0x2e
jmp 0x40a510
push 0x80070057
call fcn.00401090
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.00409700
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0x10]
push eax
call fcn.00401440
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005105ba
mov esp, ebp
pop ebp
ret
Function at 0x40b760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e99a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58abb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], 0x53f57c
mov dword [esi + 0x18], 1
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b7c6
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 1
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b7f3
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 2
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b820
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 3
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b84d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 4
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b87a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 5
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b8a7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call fcn.0042e5e3
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418880
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f6a9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58abb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor edi, edi
push edi
push 2
call fcn.00412e10
lea esi, [ebx + 0x64]
mov dword [ebx], 0x5400b4
mov eax, 1
mov dword [ebp - 4], edi
mov dword [esi], 0x53f29c
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov byte [ebp - 4], al
call fcn.0041f9d5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x418912
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 0xb4], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp edx, edi
je 0x418986
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418937
sub eax, dword [ebp + 8]
sar eax, 1
je 0x418986
push edx
lea ecx, [ebp - 0x40]
call fcn.004046f0
lea edx, [ebx + 0x10]
push edx
lea eax, [ebp - 0x3c]
push eax
push esi
mov byte [ebp - 4], 3
call fcn.00410040
add esp, 0xc
test eax, eax
je 0x41897a
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebx + 0xb4]
call fcn.00401b60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403af0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d422
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58abb4]
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 0x41d467
push 0x541230
push 4
push eax
call fcn.00510e74
push eax
call fcn.00401000
add esp, 0x10
jmp 0x41d47d
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d4fd
push edi
call fcn.005126e1
mov edi, dword [eax]
call fcn.005126e1
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.00510cf8
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005126e1
cmp dword [eax], 0
je 0x41d4d1
call fcn.005126e1
push dword [eax]
call fcn.0041ce95
pop ecx
jmp 0x41d4d8
call fcn.005126e1
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41d4fd
cmp dword [ebp - 0x234], esi
jae 0x41d4fd
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41d4ff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005105ba
leave
ret
Function at 0x41da5f
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58abb4]
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.0041d9d3
pop ecx
cmp eax, esi
je 0x41db49
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41db49
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.00510a50
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 0x41db49
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41db49
cmp esi, 0x14
jge 0x41db49
push 0x10
push 0
push edi
call fcn.00512deb
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41db38
call fcn.005126e1
cmp dword [eax], 0x22
je 0x41db38
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00512684
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41db0e
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 [0x58c2fc], 0
jne 0x41dbd4
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41dbfd
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041d422
pop ecx
pop ecx
test eax, eax
jne 0x41dbff
inc edi
cmp edi, esi
jl 0x41dbda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005105ba
leave
ret 8

Function at 0x41ee57
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.0041f7e0
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 0x41ee90
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.0041ea94
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8