joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518800
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x518833
push 0x2e
push esi
call fcn.004be4d0
add esp, 8
test eax, eax
je 0x518831
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x518990
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x518a21
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.00518900
mov ecx, esi
push 8
push ecx
call fcn.0051bbc0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x518a32
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x518b70
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x518b80
sub edi, ecx
cmp edi, 0x7fffffff
jbe 0x518b9c
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push esi
test edi, edi
je 0x518bad
lea eax, [edi + edi]
push eax
call dword [0x592304]
jmp 0x518bb8
push 0x53fbbd
call dword [0x592310]
mov esi, eax
add esp, 4
test esi, esi
jne 0x518bcb
lea eax, [esi + 0x1b]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
je 0x518be1
mov cl, byte [eax + ebx]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x518bd1
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x518c59
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x518c4d
mov eax, dword [ebp - 4]
push 0
lea edx, [edi + edi]
push edx
push esi
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [ebx + 0x10], eax
push esi
mov byte [ebx + 0x14], al
call dword [0x592308]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51bc10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x592304]
mov edi, eax
add esp, 4
test edi, edi
jne 0x51bc3b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x51bc82
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x51bc85
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x51bce6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x51bcb0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x51bd1f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x56c084
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x56c085
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x51bcf0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x51e1d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa004
call fcn.004bab30
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, ecx
jne 0x51e208
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x24]
call fcn.00402240
xor eax, eax
push 0x9ffe
push eax
lea ecx, [ebp - 0xa002]
push ecx
mov word [ebp - 0xa004], ax
call fcn.004ba010
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x51e23b
mov esi, dword [esi]
push esi
push 0x5000
lea edx, [ebp - 0xa004]
push edx
push str.feature
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionW]
push eax
lea eax, [ebp - 0xa004]
push eax
mov ecx, edi
call fcn.0051df10
mov ecx, dword [ebp - 4]
mov eax, 1
mov dword [edi + 0x20], eax
pop edi
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x51e300
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5326a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea ecx, [esi + 0x18]
mov dword [edi + 0x10], eax
call fcn.0051ca60
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51e394
mov dword [ebp - 0x18], ebx
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x51e3aa
test ebx, ebx
je 0x51e394
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
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 4
push eax
call fcn.004b7ad5
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push eax
mov byte [ebp - 4], 1
call fcn.004ba010
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add esp, 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x51e411
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call esi
mov edx, dword [ebp + 8]
push edx
call fcn.004b9ded
add esp, 4
test ebx, ebx
je 0x51e3fb
push ebx
call esi
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 4
mov eax, dword [ebp + 8]
push 0x14
push eax
push 0x14
push edi
call fcn.004ba9e1
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7ad5
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
add eax, eax
push eax
add ecx, 0x14
push ecx
push eax
push edi
mov dword [ebp - 0x14], edi
call fcn.004ba9e1
add esp, 0x24
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x10], 0
jbe 0x51e485
push edi
lea ecx, [esi + 0x18]
call fcn.0051dc00
mov edx, dword [edi + 4]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
inc eax
add edi, 8
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x14]
jb 0x51e465
mov edi, dword [ebp - 0x14]
push edi
call fcn.004b9ded
mov eax, dword [ebp + 8]
push eax
mov dword [esi], 1
call fcn.004b9ded
add esp, 8
test ebx, ebx
je 0x51e4a8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 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 4
Function at 0x51e5a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push str.WPS_OFFICE_ROOT_DIR
call esi
test eax, eax
je 0x51e5d4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push str.WPS_OFFICE_ROOT_DIR
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push eax
push esi
push 0x400000
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov edi, 2
lea ecx, [ecx]
push 0x5c
push esi
call fcn.004b9013
add esp, 8
test eax, eax
je 0x51e604
xor ecx, ecx
mov word [eax], cx
dec edi
jne 0x51e5f0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x51f300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51f340
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00402460
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x51f370
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x51f38f
cmp dword [ebp - 0xc], esi
jmp 0x51f3fd
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x51f3f9
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x51f3d5
cmp eax, 2
jne 0x51f3f9
cmp dword [ebp - 0xc], 8
jb 0x51f3e7
mov edx, dword [ebp - 0x20]
push edx
call fcn.004b9008
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x51f40b
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x51f550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5327bb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x590cc0]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.0051f420
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.0040d560
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x51f5bb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x51f5dc
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x51f616
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00402630
cmp dword [ebp - 0x220], 8
jb 0x51f799
mov eax, dword [ebp - 0x234]
push eax
jmp 0x51f791
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004ba010
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.00521ab0
push eax
call fcn.0051f300
add esp, 0x14
cmp eax, ebx
je 0x51f681
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.0051f300
add esp, 0x14
cmp eax, ebx
jne 0x51f6c4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x51f690
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00402460
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00402340
cmp dword [ebp - 0x224], ebx
jne 0x51f764
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.00521ab0
push eax
call fcn.0051f300
add esp, 0x14
cmp eax, ebx
je 0x51f71f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.0051f300
add esp, 0x14
cmp eax, ebx
jne 0x51f764
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x51f730
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x51f730
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00402460
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00402340
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00402630
cmp dword [ebp - 0x220], 8
jb 0x51f799
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b9008
add esp, 4
mov eax, edi
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.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x51fdc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5328f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5930b8], 0xffffffff
jne 0x51feae
lea eax, [ebp - 0x64]
push eax
call fcn.0051f550
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], 0
call fcn.00402b90
add esp, 0x10
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x51fe2e
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402240
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x51fe60
lea eax, [ebp - 0x2c]
push eax
push 0
push str.SupportNewLangs
push 0x53e8b0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [0x5930b8], eax
cmp dword [ebp - 0x18], esi
jb 0x51fe89
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x51feae
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9008
add esp, 4
xor eax, eax
cmp dword [0x5930b8], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x520240
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5329d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x590cc0]
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 eax, dword [ebp + 8]
mov ebx, edx
push eax
lea edx, [ebp - 0x64]
xor esi, esi
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], esi
call fcn.0051f910
push 0x539ff0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], esi
call fcn.0040d560
push str.lang.conf
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.00402b90
add esp, 0x20
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 3
jb 0x5202c6
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov edi, 0x80
lea eax, [ecx + 0x7e]
mov edi, edi
test esi, esi
je 0x5202fb
cmp word [esi + edi*2 - 4], 0
jne 0x52034e
cmp word [esi + edi*2 - 2], 0
jne 0x52034e
lea edx, [edi - 2]
cmp eax, edx
jne 0x52034e
add edi, edi
test esi, esi
je 0x52030a
push esi
call fcn.004ba8b3
add esp, 4
lea ebx, [edi + edi]
push ebx
call fcn.004ba94d
push ebx
mov esi, eax
push 0
push esi
call fcn.004ba010
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 8
jae 0x52032d
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
push edi
push esi
push 0x53a154
call fcn.00401620
push eax
push str.Language
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x6c]
jmp 0x5202e0
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push eax
mov word [ebx], cx
push esi
mov ecx, ebx
call fcn.00402460
push esi
call fcn.004ba8b3
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x520389
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x5203ae
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9008
add esp, 4
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.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x520c30
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 1
test byte [0x5969e0], al
jne 0x520c98
or dword [0x5969e0], eax
xor eax, eax
push 0x5383e0
mov dword [0x5969d8], 7
mov dword [0x5969d4], 0
mov word [0x5969c4], ax
call fcn.004b9fdc
add esp, 4
cmp dword [0x5969d4], 0
jne 0x520cfe
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0051f9f0
add esp, 8
push eax
mov ecx, 0x5969c4
mov dword [ebp - 4], 0
call fcn.00402630
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x520ce2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [0x5969d4], eax
je 0x520d0a
push 0x5969c4
mov ecx, esi
call fcn.004034c0
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x521510
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x521652
cmp dword [ebp + 0xc], 0
je 0x521652
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x52155e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x52155e
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.004b7ad5
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x52163e
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x52163e
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x52163e
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x5215c5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x521633
mov eax, dword [ebp + 8]
push eax
call fcn.004b7ad5
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x521624
mov ebx, dword [esi]
test ebx, ebx
je 0x521624
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x521624
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.004b9ded
push esi
call fcn.004b9ded
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.004b9ded
push esi
call fcn.004b9ded
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.004b9ded
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8