joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408102
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4b0e88]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x40811f
mov edi, dword [eax + 4]
jmp 0x408121
xor edi, edi
cmp edi, esi
jne 0x408131
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x408156
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x408156
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408156
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push edi
mov ecx, ebx
mov dword [ebx + 0x438], esi
call fcn.00409b25
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x40817c
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x408289
mov edx, eax
call fcn.00414984
mov dword [esp + 0x20], eax
mov eax, edi
call fcn.00408bcf
cmp dword [ebx + 0x428], esi
je 0x40822c
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x4081d5
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x40820d
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x40822c
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x438], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x408271
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x408271
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x408271
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.00414984
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40853d
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4b0e88]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x40855a
mov edi, dword [eax + 4]
jmp 0x40855c
xor edi, edi
cmp edi, esi
jne 0x40856c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x408591
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x408591
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408591
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push edi
mov ecx, ebx
mov dword [ebx + 0x438], esi
call fcn.0040a475
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4085b7
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4086c4
mov edx, eax
call fcn.00414984
mov dword [esp + 0x20], eax
mov eax, edi
call fcn.00408bcf
cmp dword [ebx + 0x428], esi
je 0x408667
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x408610
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x408648
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x408667
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x438], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x4086ac
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x4086ac
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x4086ac
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.00414984
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40ae61
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40aead
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x150]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40aead
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x278]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x3bc], 0
je 0x40af25
lea ebx, [esi + 0x3cc]
cmp dword [ebx], 0
je 0x40aeca
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x3bc], edi
jne 0x40af1e
push edi
call fcn.00414108
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00438427
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3bc], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x40b1ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3cc]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x40b21f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b263
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b263
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x278]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3b8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40b3b5
push eax
call fcn.00414108
mov edi, eax
test edi, edi
pop ecx
je 0x40b334
mov eax, dword [edi + 0x14]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40b2a9
push 1
push edi
call fcn.0040e31c
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00438427
mov eax, dword [ebp - 4]
cmp dword [esi + 0x3b8], eax
jne 0x40b2ff
mov ecx, dword [edi + 0x44]
xor eax, eax
cmp ecx, eax
je 0x40b2f1
cmp word [ecx], ax
je 0x40b2f1
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40b334
cmp dword [edi + 0x14], eax
je 0x40b334
mov dword [ebp - 0xc], 1
jmp 0x40b334
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40b31d
push 1
push edi
call fcn.0040e31c
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00438427
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x3b8], eax
je 0x40b376
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b3b5
cmp dword [ebp - 0x10], eax
je 0x40b3b5
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x40b3b5
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x3b4
cmp eax, dword [esi]
jne 0x40b3b5
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c4c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3cc]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x40c4f1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40c535
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40c535
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x278]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3b8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40c683
push eax
call fcn.00414108
mov edi, eax
test edi, edi
pop ecx
je 0x40c602
mov eax, dword [edi + 0x14]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40c579
push edi
call fcn.0040e34c
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00438427
mov eax, dword [ebp - 4]
cmp dword [esi + 0x3b8], eax
jne 0x40c5cf
mov ecx, dword [edi + 0x44]
xor eax, eax
cmp ecx, eax
je 0x40c5c1
cmp word [ecx], ax
je 0x40c5c1
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c602
cmp dword [edi + 0x14], eax
je 0x40c602
mov dword [ebp - 0xc], 1
jmp 0x40c602
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40c5eb
push edi
call fcn.0040e34c
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00438427
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x3b8], eax
je 0x40c644
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c683
cmp dword [ebp - 0x10], eax
je 0x40c683
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x40c683
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x3b4
cmp eax, dword [esi]
jne 0x40c683
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x410de3
push 0x80004005
call fcn.004016a6
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x410dea
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ab1a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x410fe9
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x410f3a
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x410fe9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x410fad
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00410ecc
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x41100c
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x410f72
cmp dword [ebp - 0x210], esi
je 0x410fd3
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x410ff9
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045447b
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x41101c
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x410ffb

Function at 0x411dd9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0xc], 0xffffffff
jne 0x411e33
push ebx
push edi
lea ebx, [ebp - 4]
call fcn.00411e39
push dword [eax]
push 0
push 0x4965a8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040154a
test edi, edi
pop edi
pop ebx
je 0x411e25
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.00411fd3
call fcn.004120b1
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
pop esi
leave
ret
Function at 0x411e39
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x48959d
call fcn.0045cbb7
and dword [ebp - 0x14], 0
lea edi, [ebp - 0x14]
call fcn.00411edc
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x411e6b
push 0x494d44
push ebx
call fcn.00401860
jmp 0x411ec9
add eax, 0xfffffff0
call fcn.004016be
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.datadpiconfig.ini
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0043105b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411eb0
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.0040178d
push str._ressrcchsdpisetting.ini
mov eax, edi
push eax
call fcn.0043105b
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.004016be
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.0040154a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, ebx
call fcn.0045cc8f
ret

Function at 0x412076
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x24], 0
jne 0x4120ac
push ebx
lea ebx, [ebp - 4]
call fcn.00411e39
push dword [eax]
push 2
push 0x4965b8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040154a
pop ebx
mov eax, dword [esi + 0x24]
leave
ret

Function at 0x4120b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4120e7
push ebx
lea ebx, [ebp - 4]
call fcn.00411e39
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040154a
pop ebx
mov eax, dword [esi + 4]
leave
ret

Function at 0x4122ba
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x488e22
call fcn.0045cbb7
and dword [ebp - 0x10], 0
mov esi, ecx
add esi, 0x20
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x41232a
lea ebx, [ebp - 0x10]
call fcn.00411e39
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
call fcn.00401960
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [esi]
test eax, eax
je 0x412323
push eax
call fcn.00454255
pop ecx
mov edx, esi
call fcn.00401685
mov eax, dword [esi]
sub eax, 0x10
call fcn.004016be
add eax, 0x10
mov dword [edi], eax
mov eax, edi
call fcn.0045cc8f
ret

Function at 0x4128c2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, esi
call fcn.0041224c
test eax, eax
jne 0x4128d6
push 0x60
pop eax
leave
ret
cmp dword [esi + 8], 0xffffffff
jne 0x412908
push ebx
lea ebx, [ebp - 4]
call fcn.00411e39
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040154a
pop ebx
mov eax, dword [esi + 8]
leave
ret
Function at 0x412982
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x48a98a
call fcn.0045cbb7
mov edi, ecx
mov eax, dword [edi + 0x2c]
add edi, 0x28
test eax, eax
je 0x4129a8
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x412ad3
mov eax, dword [0x4afd74]
mov ecx, 0x4afd74
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x18]
call fcn.00411e39
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401960
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040154a
cmp dword [ebp - 0x10], ebx
jne 0x412a0b
xor eax, eax
jmp 0x412a14
push dword [ebp - 0x10]
call fcn.00454255
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401685
mov esi, 0x4965a4
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x10]
call fcn.00412adb
jmp 0x412aaf
push eax
call fcn.00455b52
fstp qword [ebp - 0x20]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x412a4b
xor ecx, ecx
jmp 0x412a53
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x412a73
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x412a73
mov eax, dword [edi + 8]
fld qword [ebp - 0x20]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x412a90
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x412a7f
call fcn.0045446b
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, edi
call fcn.00412bca
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040154a
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x10]
call fcn.00412adb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x412a36
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, edi
call fcn.0045cc8f
ret
Function at 0x413102
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4ab1a4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x413165
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x413213
mov eax, dword [ebp - 0x98]
dec eax
je 0x4131ff
dec eax
jne 0x413213
cmp dword [ebp - 0xa4], 6
jne 0x4131b0
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x413198
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
add ecx, 8
jmp 0x4131ac
cmp dword [ebp - 0xa0], edi
jne 0x4131ec
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x413213
cmp dword [ebp - 0xa4], 5
jne 0x4131df
cmp dword [ebp - 0xa0], 2
jne 0x4131c6
push 5
jmp 0x4131fc
cmp dword [ebp - 0xa0], 1
jne 0x4131d3
push 6
jmp 0x4131fc
cmp dword [ebp - 0xa0], edi
jne 0x413213
push 3
jmp 0x4131fc
cmp dword [ebp - 0xa4], 4
ja 0x413213
push 4
jmp 0x4131fc
cmp dword [ebp - 0xa0], 2
jne 0x413213
cmp byte [ebp + 0x72], al
jne 0x413213
push 0xa
pop edi
jmp 0x413213
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045447b
add ebp, 0x78
leave
ret

Function at 0x413d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x413d9c
xor eax, eax
jmp 0x413dec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x413d98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x413d98
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.004304c4
test eax, eax
je 0x413dd8
push edi
push dword [ebp - 4]
push eax
call fcn.00457650
add esp, 0xc
mov eax, ebx
call fcn.00413bd1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret