joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ea47
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], esi
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
add esi, 4
mov ecx, dword [edi + 4]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
add esi, 8
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
add esi, 0xc
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
add esi, 0x10
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x14]
add esi, 0x14
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x10]
movups xmmword [ecx + 0x18], xmm0
mov dword [ecx + 0x28], 0
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x28], eax
movups xmmword [ecx + 0x2c], xmm0
mov dword [ecx + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0x2c], eax
lea esi, [ecx + 0x40]
mov eax, dword [edi + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
mov ecx, dword [edi + 0x40]
sub ecx, 0x10
mov dword [ebp + 8], esi
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
movzx eax, byte [edi + 0x44]
mov byte [ecx + 0x44], al
movzx eax, byte [edi + 0x45]
mov byte [ecx + 0x45], al
mov eax, dword [edi + 0x48]
mov dword [ecx + 0x48], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1690
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x55eab5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x20c]
push dword [ebx + 4]
call fcn.0052203a
push esi
lea eax, [ebp]
mov dword [ebx + 4], 0
push str.SELECT__Text__FROM__UIText__WHERE__Key____s
push eax
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x4a171a
push eax
call edi
push dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea ecx, [ebp]
call fcn.004a19c0
add esp, 4
test eax, eax
jns 0x4a173a
xor bl, bl
jmp 0x4a1794
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a174f
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4a1784
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x4a1776
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x4a17ca
cmp eax, 0x80070103
je 0x4a1784
call fcn.004a1a80
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4a1794
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a17a5
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00521781
lea esp, [ebp + 0x204]
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x585738
push 1
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x4a1823
mov esi, dword [ebp - 0x18]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x18], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052203f
add esp, 4
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x18]
mov dword [ebx], esi
push ecx
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
sete bl
jmp 0x4a1786
Function at 0x4a1f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ebe5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp + 0xc]
shl eax, 8
inc eax
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x14
mov esi, eax
mov dword [ebp - 0x18], 1
call fcn.0052203f
mov ebx, eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x14], 0x14
call fcn.0052203f
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x10], 0x14
call fcn.0052203a
push 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.0052203f
add esp, 0x10
mov dword [ebp + 0xc], eax
xor edi, edi
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x4a20e4
mov esi, str.AI_InstallLanguage
dec esi
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x20], eax
cmp eax, 0xea
jne 0x4a2097
push ebx
call fcn.0052203a
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.0052203f
mov ebx, eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], ebx
push dword [ebp + 0xc]
call fcn.0052203a
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.0052203f
add esp, 0x10
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], 0xffffffff
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, esi
mov esi, ebx
sub esi, str.AI_InstallLanguage
mov al, byte [esi + edx + 1]
lea edx, [edx + 1]
mov cl, byte [edx]
cmp al, cl
jl 0x4a20d2
jg 0x4a20d2
test al, al
je 0x4a20b8
test cl, cl
jne 0x4a20a1
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffffffff
call fcn.004ab620
add esp, 4
mov esi, eax
jmp 0x4a20e6
inc edi
cmp dword [ebp - 0x20], 0
jne 0x4a20e4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
jmp 0x4a2003
xor esi, esi
mov byte [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.0052203a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.0052203a
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov eax, esi
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 0x4a5140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f835
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
add ecx, 0x30
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004acb30
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a5286
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], 0x5853a8
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp esi, edi
jne 0x4a51d1
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], 0x5853a8
push edi
jmp 0x4a5279
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
add ecx, 2
push 0
push eax
push ecx
push esi
add ebx, 0xfffffffe
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a5269
mov eax, ebx
lea ecx, [ebp - 0x10]
shr eax, 1
push eax
push 0x78
call fcn.00478290
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4a5224
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408c90
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a524b
cmp dword [ebp - 0x20], 0
je 0x4a524b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c6e60
jmp 0x4a524b
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5269
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], 0x5853a8
test esi, esi
je 0x4a5286
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a52a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4ac0f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561115
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xc0], 0
je 0x4ac2d9
cmp byte [edi + 0xd8], 0
jne 0x4ac2d9
cmp dword [edi + 0x90], 3
je 0x4ac15f
call fcn.004aef30
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x4ac15f
cmp eax, 1
je 0x4ac15f
test byte [edi + 0x44], 0x48
je 0x4ac15f
mov ecx, edi
call fcn.004ad310
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4ac1fb
cmp ebx, dword [edi + 0xa8]
jge 0x4ac2eb
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4ac1f5
cmp ebx, dword [edi + 0xa8]
jge 0x4ac2eb
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0048f870
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4ac1a3
mov ebx, dword [edi + 0xb4]
lea esi, [edi + 0xb0]
sub ebx, 1
js 0x4ac25f
nop dword [eax]
cmp ebx, dword [esi + 4]
jge 0x4ac2eb
mov eax, dword [esi]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
lea esi, [edi + 0xb0]
jne 0x4ac25a
cmp ebx, dword [esi + 4]
jge 0x4ac2eb
mov eax, dword [esi]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.0048f870
sub ebx, 1
jns 0x4ac210
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xa4]
push eax
call fcn.004b1390
mov ecx, esi
call fcn.0047f580
mov eax, dword [ebp - 0x18]
lea esi, [eax - 1]
test esi, esi
js 0x4ac2a0
nop
cmp esi, eax
jge 0x4ac2eb
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 0xb0]
lea eax, [eax + esi*4]
push eax
call fcn.0048f870
sub esi, 1
js 0x4ac2a0
mov eax, dword [ebp - 0x18]
jmp 0x4ac280
cmp dword [edi + 0xa8], 0
jne 0x4ac2b6
cmp dword [edi + 0xb4], 0
jne 0x4ac2b6
mov al, 1
jmp 0x4ac2b8
xor al, al
mov byte [edi + 0xd8], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0047f580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047f580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00411080
int3
Function at 0x4b11b0
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebx, ecx
push esi
xor esi, esi
push edi
cmp dword [ebx + 0xe4], esi
jle 0x4b11e6
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
js 0x4b11f5
cmp esi, dword [ebx + 0xe4]
jge 0x4b11f5
mov eax, dword [ebx + 0xe0]
push dword [eax + esi*4]
call ebp
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x4b11c6
pop edi
pop esi
pop ebp
lea ecx, [ebx + 0xe0]
pop ebx
jmp fcn.0047f580
push 1
push 0xc000008c
call fcn.00411080
int3

Function at 0x4b16d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562186
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4b1712
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x4b17cb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b17cb
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4b1857
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, str.SoftwareCaphyonSetups
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4b1795
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4b17a1
push 0x17
push str.SoftwareCaphyonSetups
call fcn.00408e90
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10]
call fcn.004bc7a0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b17cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4b17e6
push eax
call fcn.005297f6
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4b180f
push eax
call fcn.005297f6
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b1845
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
int3
Function at 0x4b1c80
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x5622a5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x2c], 0
mov esi, 0x5dd458
je 0x4b1cd6
xor eax, eax
xchg dword [esi], eax
mov eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x30]
je 0x4b1cd6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x214]
mov dword [edi + 0x2c], eax
xchg dword [esi], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x4b1d56
push 0x104
lea eax, [ebp]
push eax
push dword [0x5dd458]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4b1d56
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x4b1dd5
xor eax, eax
mov word [ebp + esi], ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b1d56
lea eax, [esi + 2]
push eax
lea eax, [ebp]
push eax
push 1
push 0
push dword [edi + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
push edi
lea ecx, [edi + 8]
call fcn.00478220
lea ecx, [edi + 8]
call fcn.004cf2f0
mov edx, 0xa1
lea ecx, [ebp - 0x10]
call fcn.004bb250
mov dword [ebp - 4], 0
lea eax, [edi + 4]
push dword [edi + 8]
push dword [ebp - 0x10]
push eax
call fcn.004087c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b1db1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00521781
lea esp, [ebp + 0x20c]
pop ebp
ret 4
call fcn.00521d6e
int3
Function at 0x4b2050
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x38
mov eax, dword [0x5d8024]
xor eax, esp
mov dword [esp + 0x34], eax
movaps xmm0, xmmword [0x59f4d0]
push ebx
push ebp
push esi
movups xmmword [esp + 0x20], xmm0
mov bh, dl
mov ebp, ecx
movaps xmm0, xmmword [0x59f4d0]
push edi
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call edi
test eax, eax
je 0x4b20d0
call eax
movzx eax, ax
mov dword [esp + 0x10], eax
push str.GetUserDefaultUILanguage
push esi
call edi
test eax, eax
je 0x4b20e5
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 4]
xor eax, eax
test edi, edi
jle 0x4b219e
lea esi, [eax + 0xc]
mov ecx, dword [ebp]
movzx edx, word [ecx + eax*2]
mov ecx, dword [esp + 0x18]
cmp dx, cx
jne 0x4b2114
xor ecx, ecx
test bh, bh
cmovne ecx, esi
mov dword [esp + ecx + 0x24], eax
mov ecx, dword [esp + 0x18]
movzx esi, bh
cmp dl, cl
jne 0x4b211f
mov dword [esp + esi*8 + 0x38], eax
mov ecx, dword [esp + 0x1c]
cmp dx, cx
jne 0x4b2144
test bh, bh
mov dword [esp + 0x20], 0
mov ecx, 0xc
cmovne ecx, dword [esp + 0x20]
mov dword [esp + ecx + 0x24], eax
mov ecx, dword [esp + 0x1c]
mov bl, bh
xor bl, 1
cmp dl, cl
jne 0x4b2154
movzx ecx, bl
mov dword [esp + ecx*8 + 0x38], eax
mov ecx, dword [esp + 0x10]
cmp dx, cx
jne 0x4b2168
movzx ecx, bh
mov dword [esp + ecx*4 + 0x28], eax
mov ecx, dword [esp + 0x10]
cmp dl, cl
jne 0x4b2170
mov dword [esp + esi*8 + 0x34], eax
cmp dx, word [esp + 0x14]
jne 0x4b2183
movzx ecx, bh
xor ecx, 1
mov dword [esp + ecx*4 + 0x28], eax
jmp 0x4b2186
movzx ecx, bl
cmp dl, byte [esp + 0x14]
jne 0x4b2190
mov dword [esp + ecx*8 + 0x34], eax
inc eax
mov esi, 0xc
cmp eax, edi
jl 0x4b20f5
xor eax, eax
mov ecx, dword [esp + eax*4 + 0x24]
test ecx, ecx
jns 0x4b21cb
inc eax
cmp eax, 8
jb 0x4b21a0
test edi, edi
jle 0x4b21e9
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
mov ax, word [eax]
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00521781
add esp, 0x38
ret
cmp ecx, edi
jge 0x4b21e9
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x38]
pop ebx
xor ecx, esp
call fcn.00521781
add esp, 0x38
ret
push 1
push 0xc000008c
call fcn.00411080
int3
Function at 0x4b2410
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5623e6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4b250b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0x585738
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00478290
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x4b24b6
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408c90
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.004087c0
add esp, 0x10
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b24f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fe0
int3

Function at 0x4b2860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5d8024]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, ecx
push esi
push 2
mov dword [esp + 0xc], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, 5
cmp byte [ecx + 0x2c], al
cmovne eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 8]
push 0x3e9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0xc]
push eax
push esi
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x30], 0
jne 0x4b28f9
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x2c], 0
je 0x4b2904
mov edx, dword [ecx + 0x30]
jmp 0x4b2908
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x206
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00521781
mov esp, ebp
pop ebp
ret