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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4015c7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x401570
cmp dword [ebp - 8], 2
jne 0x4015c6
push esi
mov esi, dword [ebp + 0xc]
call fcn.00422606
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004228e8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4015ae
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4015be
push eax
call fcn.00489b50
pop ecx
mov edx, esi
call fcn.0040e1f4
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4015ce
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4015fd
push dword [esp + 8]
call fcn.00489b50
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push edi
push str.key_kdesk_ocpc_short_code
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4015fd
inc edi
mov eax, edi
pop edi
ret 4

Function at 0x401603
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x401674
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x401674
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4ed008]
fnstsw ax
test ah, 1
jne 0x401674
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40167a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00489db0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4016d3
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x401781
mov eax, dword [ebp - 0x94]
dec eax
je 0x40176d
dec eax
jne 0x401781
cmp dword [ebp - 0xa0], 6
jne 0x40171e
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x401706
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x40171a
cmp dword [ebp - 0x9c], edi
jne 0x40175a
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x401781
cmp dword [ebp - 0xa0], 5
jne 0x40174d
cmp dword [ebp - 0x9c], 2
jne 0x401734
push 5
jmp 0x40176a
cmp dword [ebp - 0x9c], 1
jne 0x401741
push 6
jmp 0x40176a
cmp dword [ebp - 0x9c], edi
jne 0x401781
push 3
jmp 0x40176a
cmp dword [ebp - 0xa0], 4
ja 0x401781
push 4
jmp 0x40176a
cmp dword [ebp - 0x9c], 2
jne 0x401781
cmp byte [ebp + 0x76], al
jne 0x401781
push 0xa
pop edi
jmp 0x401781
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x401caf
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d2258
call fcn.004ce9f0
sub esp, 0x204
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
push 0x1fe
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00489db0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x100
push eax
push 0x4e5344
push dword [ebp + 8]
push 0x4df684
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00422b5e
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x401d6a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d59e8
call fcn.004ce9f0
sub esp, 0x224
mov eax, dword [0x5096c0]
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, 0x5096c0
mov dword [ebp - 0x1c], ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x208
lea eax, [ebp - 0x22e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x230], bx
call fcn.00489db0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push 0x4df694
call fcn.00460299
test eax, eax
pop ecx
pop ecx
je 0x401e15
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x230]
push ecx
push eax
call fcn.00422646
call fcn.004608b8
cmp eax, ebx
pop ecx
je 0x401e15
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00422bdc
lea esi, [ebp - 0x10]
call fcn.0045e9ac
push str.kwpinsttemp
mov eax, esi
push eax
call fcn.0040c5e6
call fcn.0045e9ac
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
cmp eax, ebx
je 0x401e41
push 3
pop ecx
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00422893
push dword [eax]
mov dword [ebp - 0x1c], 1
call fcn.00401603
test eax, eax
pop ecx
mov byte [ebp - 0x11], 1
jne 0x401e44
mov byte [ebp - 0x11], bl
test byte [ebp - 0x1c], 1
je 0x401e55
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
cmp byte [ebp - 0x11], bl
jne 0x401ec3
lea eax, [ebp - 0x18]
push eax
call fcn.0046091f
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00422ab0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
jne 0x401ec3
push ebx
lea ecx, [ebp - 0x18]
call fcn.00433204
pop ecx
mov byte [ebp - 4], 2
call fcn.00422ab0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov esi, edi
call fcn.0045e9ac
push str.kwpinsttemp
mov eax, edi
push eax
call fcn.0040c5e6
call fcn.0045e9ac
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401ed5
push esi
call fcn.0045eacc
pop ecx
add esi, 0xfffffff0
mov eax, esi
call fcn.00422b5e
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4028db
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov ebx, eax
mov eax, dword [0x50be74]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x402901
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x402905
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], esi
jne 0x402919
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x402946
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esp + 0x10], eax
je 0x402946
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x402946
push esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push dword [esp + 0x10]
mov ecx, ebx
mov dword [ebx + 0x364], esi
call fcn.00402c22
mov edi, eax
cmp edi, esi
mov dword [esp + 0x24], edi
jne 0x402974
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x402a92
mov eax, dword [0x50be74]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x40298b
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x10]
call fcn.00402d8b
cmp dword [ebx + 0x354], esi
je 0x402a2c
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], 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]
push 0x43
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], eax
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4029f1
push 1
push dword [esp + 0x1c]
push eax
call edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x402a0d
push esi
push eax
push dword [esp + 0x1c]
call edi
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x402a2c
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 + 0x24]
push 0x97
push esi
lea edi, [ebx + 4]
push edi
mov dword [ebx + 0x364], esi
call fcn.0040df3c
cmp dword [esp + 0x1c], esi
je 0x402a74
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esp + 0x10], esi
je 0x402a74
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi]
jne 0x402a74
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x50be74]
cmp eax, esi
je 0x402a84
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [edi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x368]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40655a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4d0cb3
call fcn.004ce9f0
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x5030b4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x4065b2
call fcn.00422c44
mov esi, eax
jmp 0x4066b3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4065cf
call fcn.00422c44
jmp 0x4066a8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x4065c5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x406615
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40660b
lea eax, [ebp - 0x424]
call fcn.004066df
mov eax, 0x8007000e
jmp 0x4066ce
push 2
push eax
mov byte [ebp - 4], 2
call fcn.004066e8
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x406639
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004075d4
jmp 0x406645
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x406660
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x406671
mov esi, 0x8007000e
jmp 0x4066aa
call dword [0x5030b4]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4065c5
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0040670d
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4066cc
lea eax, [ebp - 0x424]
call fcn.004066df
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x40758a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40759d
push 0x80004005
call fcn.00422c1d
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 0x4075a4
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 0x40769d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004075f5
mov edi, eax
cmp edi, esi
je 0x4076da
cmp dword [ebp - 8], esi
je 0x4076d6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407747
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4076f8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0040769d
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x40774e
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
je 0x4076e2
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40772e
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x407745
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x40775c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x407747

Function at 0x408519
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp dword [edi + 0xc], 0xffffffff
jne 0x40856e
push esi
lea esi, [ebp - 4]
call fcn.00408574
push dword [eax]
push 0
push 0x4e54a8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
test esi, esi
pop esi
je 0x40855f
push edi
call fcn.0040869e
test eax, eax
jne 0x408568
call fcn.0040887b
test eax, eax
je 0x40856b
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
pop edi
leave
ret

Function at 0x408805
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x18], 0
jne 0x40883b
push esi
lea esi, [ebp - 4]
call fcn.00408574
push dword [eax]
push 2
push 0x4e54b8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
pop esi
mov eax, dword [edi + 0x18]
leave
ret
Function at 0x40887b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 4], 0xffffffff
jne 0x4088b1
push esi
lea esi, [ebp - 4]
call fcn.00408574
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
pop esi
mov eax, dword [edi + 4]
leave
ret

Function at 0x408ac8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
push ecx
and dword [ebp - 0x10], 0
push edi
mov edi, ecx
add edi, 0x14
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x408b3c
push esi
lea esi, [ebp - 0x10]
call fcn.00408574
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
mov esi, edi
call fcn.004228e8
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.00405c8d
mov eax, dword [edi]
test eax, eax
pop esi
je 0x408b35
push eax
call fcn.00489b50
pop ecx
mov edx, edi
call fcn.0040e1f4
mov eax, dword [edi]
sub eax, 0x10
call fcn.00422b5e
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x4090ca
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, edi
call fcn.00408a4f
test eax, eax
jne 0x4090de
push 0x60
pop eax
leave
ret
cmp dword [edi + 8], 0xffffffff
jne 0x409110
push esi
lea esi, [ebp - 4]
call fcn.00408574
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
pop esi
mov eax, dword [edi + 8]
leave
ret
Function at 0x40918a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d3a88
call fcn.004ce9f0
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
xor ebx, ebx
cmp eax, ebx
je 0x4091b6
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x4092de
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00408574
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x14]
call fcn.004228e8
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405c8d
cmp dword [ebp - 0x14], ebx
jne 0x409216
xor eax, eax
jmp 0x40921f
push dword [ebp - 0x14]
call fcn.00489b50
pop ecx
lea edx, [ebp - 0x14]
call fcn.0040e1f4
mov esi, 0x4e5438
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.004092ef
jmp 0x4092ba
push eax
call fcn.0048ac0f
fstp qword [ebp - 0x24]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x409256
xor ecx, ecx
jmp 0x40925e
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x40927e
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x40927e
mov eax, dword [edi + 8]
fld qword [ebp - 0x24]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x40929b
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x40928a
call fcn.0048a49e
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00409570
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x14]
call fcn.004092ef
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x409241
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x409460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409477
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4094ac
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4094a8
cmp edi, eax
jae 0x4094ac
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40949a
cmp edi, eax
jb 0x4094b0
xor eax, eax
jmp 0x4094ba
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40b1ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b210
cmp dword [ebp + 0xc], 1
je 0x40b1e9
cmp dword [ebp + 0xc], 2
je 0x40b1e9
push 0xd
pop eax
jmp 0x40b210
test edi, edi
mov eax, dword [ebp - 4]
je 0x40b20a
test eax, eax
je 0x40b206
test al, 1
jne 0x40b1e4
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b20a
jmp 0x40b1e4
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40b94e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40b9a7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40b998
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40b998
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40b9a7
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4

Function at 0x40b9ab
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40b9cb
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40ba28
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40ba2d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40ba2d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40ba28
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40ba1f
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.004099a4
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40ba28
cmp dword [edi + 0x18], esi
je 0x40ba28
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40ba3c
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8