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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52647b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x138]
call fcn.00406480
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x134], 0x114
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 2
jb 0x403fc0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 1
jne 0x404037
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404037
lea edx, [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x13c]
push eax
push 0
push str.CurrentVersion
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40400d
cmp dword [ebp - 0x10], 1
jae 0x40402d
push str.Windows_NT:_Could_not_read_..Windows_NTCurrentVersionCurrentVersion
lea ecx, [ebp - 0x138]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x140], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00406500
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0050c838
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526510
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0xfffffffd
mov dword [ebp - 0x10], 0x800
lea ecx, [ebp - 0x18]
call fcn.00406440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406440
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406540
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00406600
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406540
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406600
mov ecx, dword [ebp + 0x14]
call fcn.00406d10
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00406590
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40442a
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00406590
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004065b0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00406590
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x404407
cmp dword [ebp - 0x10], 0
jbe 0x4043ec
mov dword [ebp - 0x14], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406600
jmp 0x404405
mov dword [ebp - 0x14], 1
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406600
mov ecx, dword [ebp + 0x14]
call fcn.00406d10
jmp 0x404420
mov dword [ebp - 0x14], 0xfffffffe
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406600
mov ecx, dword [ebp + 0x14]
call fcn.00406d10
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406500
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x404c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406d10
push 0x104
mov ecx, dword [ebp + 8]
call fcn.004065b0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x104
jb 0x404c91
mov eax, dword [ebp - 4]
add eax, 2
push eax
mov ecx, dword [ebp + 8]
call fcn.004065b0
push eax
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406600
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x220], 0x104
cmp dword [ebp + 0xc], 0
je 0x405257
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x405257
lea ecx, [ebp - 4]
push ecx
push 0x10008
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x405255
cmp dword [ebp - 0x21c], 0
jne 0x40524b
mov dword [ebp - 0x224], 0x105
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x103
jne 0x405218
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
jmp 0x40524b
cmp dword [ebp - 0x21c], 0
je 0x40522d
cmp dword [ebp - 0x21c], 0xea
jne 0x405246
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00405150
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x4051b5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405261
mov dword [ebp - 0x21c], 0x3f2
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050c838
mov esp, ebp
pop ebp
ret
Function at 0x40cb20
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526f20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cb62
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cb92
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push 0x27
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40cbd3
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cc24
mov edx, dword [ebp - 0x14]
push 2
push 0x536e60
push 1
push eax
push str.Client
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
push str.SetupLanguage
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x14]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cc27
or ebx, 0xffffffff
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cc47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc6a
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 esp, ebp
pop ebp
ret
Function at 0x40e930
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527190
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x18]
call fcn.00406480
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e988
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x27
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
xor edi, edi
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40e9ca
push edi
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea21
mov edx, dword [ebp - 0x14]
push str.Client
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x40ea17
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
push str.__Delete_client_at_compsetup_interface
add eax, 0x24
push edx
push 0xa
push eax
mov eax, dword [ecx + 0x6c]
call eax
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5272c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x10]
call fcn.00406480
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f318
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
push str.SOFTWARESIEMENSShared_ToolsCompSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f418
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax - 8]
lea esi, [ebx + 0x68]
test eax, eax
je 0x40f366
push ecx
push eax
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x40f40e
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40f40e
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x40f399
push 0
mov ecx, esi
call fcn.00406f10
mov eax, dword [esi]
lea edx, [edi + edi + 2]
push edx
push eax
mov eax, dword [ebp - 0x14]
push 1
push 0
push str.Client
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea ecx, [ebp - 0x18]
push str.____x86_adscomlx:_Client_entry_set:
push ecx
call fcn.00405d20
mov ecx, dword [eax]
mov edx, dword [ebx + 0x24]
mov edx, dword [edx + 0x6c]
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x24]
push ecx
push 0xa
push eax
mov byte [ebp - 4], 2
call edx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f402
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f432
push 0x80070057
call fcn.00405680
mov eax, dword [ebp - 0x10]
mov edx, dword [ebx + 0x24]
mov ecx, dword [edx + 0x6c]
push str._x86_adscomlx:_Cannot_open_write_key:_SOFTWARESIEMENSShared_ToolsCompSetup
push eax
add ebx, 0x24
push 0
push ebx
call ecx
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f455
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f47b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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 0x416680
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [ebp - 4]
push edx
call eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4166b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x417f07
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x417f3f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417f4d
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417f4d
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x417f4f
cmp dword [esi + 4], 0
je 0x417f4d
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4184b1
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
cmp ecx, eax
je 0x4184fa
lea edx, [ebp - 0x28]
push edx
push eax
push edi
call fcn.00417eb7
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
jmp 0x418506
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418518
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f12
movzx eax, byte [esi + 0x20]
cmp eax, ebx
je 0x41854c
test bl, 1
je 0x41854c
mov ecx, dword [ebp - 0x34]
push eax
push edi
test ecx, ecx
je 0x418535
call fcn.00417f07
jmp 0x41853b
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41854c
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f12
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x418620
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.004183fe
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x418582
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.004183fe
pop ecx
lea eax, [ebp - 0x44]
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x41859a
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.004183fe
pop ecx
pop ecx
lea esi, [ebp - 0x54]
jmp 0x41859d
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0xc0000000
push edi
cmp ecx, eax
je 0x4185be
call fcn.00417395
jmp 0x4185c4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4185d8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f12
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x38]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x418606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 0x30], eax
call esi
push edi
push dword [ebp - 0x30]
call fcn.00427f12
push ebx
call esi
test eax, eax
jne 0x41861a
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f12
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
movzx eax, byte [esi + 0x20]
cmp eax, ebx
je 0x418654
test bl, 1
jne 0x418654
mov ecx, dword [ebp - 0x34]
push eax
push edi
test ecx, ecx
je 0x41863d
call fcn.00417f07
jmp 0x418643
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x418654
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00427f12
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050c838
leave
ret 0xc
Function at 0x41a8a0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x587730]
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 0x41a8e5
push 0x53ffc8
push 4
push eax
call fcn.0050ec7e
push eax
call fcn.004057a0
add esp, 0x10
jmp 0x41a8fb
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a97b
push edi
call fcn.0050f91c
mov edi, dword [eax]
call fcn.0050f91c
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.0050f0c7
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050f91c
cmp dword [eax], 0
je 0x41a94f
call fcn.0050f91c
push dword [eax]
call fcn.00419a20
pop ecx
jmp 0x41a956
call fcn.0050f91c
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41a97b
cmp dword [ebp - 0x234], esi
jae 0x41a97b
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41a97d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050c838
leave
ret
Function at 0x41aef5
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x587730]
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.00417409
pop ecx
cmp eax, esi
je 0x41afdf
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41afdf
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.0050c850
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 0x41afdf
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41afdf
cmp esi, 0x14
jge 0x41afdf
push 0x10
push 0
push edi
call fcn.00510c34
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41afce
call fcn.0050f91c
cmp dword [eax], 0x22
je 0x41afce
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0050cf1a
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41afa4
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 [0x588fc8], 0
jne 0x41b06a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41b093
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041a8a0
pop ecx
pop ecx
test eax, eax
jne 0x41b095
inc edi
cmp edi, esi
jl 0x41b070
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050c838
leave
ret 8

Function at 0x41e81f
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.0042717f
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 0x41e858
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.0041e45c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8