joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ae90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00473fed
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044a830
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00473f1b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004707df
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004707df
push 1
push 0
push 0
mov ecx, esi
call fcn.00470787
push 1
push 0
push 1
mov ecx, esi
call fcn.00470787
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047405f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44b010
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00473fed
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044a830
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00473f1b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44b0d4
cmp dword [esp + 0x40], 1
jne 0x44b0d2
cmp ecx, eax
jge 0x44b0d4
mov eax, ecx
cmp eax, 0xc8
jge 0x44b0e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044ae90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047405f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44b860
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b6a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ebfd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00474295
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004757b1
test eax, eax
je 0x44b97c
mov ecx, dword [esp + 0x3c]
call fcn.004742c2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44b940
push edi
mov ecx, esi
call fcn.0047192a
mov ecx, esi
call fcn.0044bae0
cmp dword [esp + 0x38], 1
jne 0x44b975
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471a65
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44e390
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44e3c3
push esi
call fcn.004514a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44e3bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e449
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e432
mov eax, dword [esi + 8]
test eax, eax
je 0x44e3e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e42e
cmp eax, 2
je 0x44e432
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e3da
cmp eax, 3
je 0x44e40d
cmp eax, 1
jne 0x44e3da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e3da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e3da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e470
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e458
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e470
add esp, 4
pop esi
ret

Function at 0x45a220
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45a2c3
test eax, eax
jbe 0x45a2c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45a2c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45a26e
xor esi, esi
jmp 0x45a274
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45a29f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040f8e0
add esi, eax
push esi
mov ebx, esi
call fcn.0040f8e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45a280
pop ebp
test edi, edi
pop edi
jne 0x45a2c3
test ebx, ebx
je 0x45a2c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045e780
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45a405
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45a51d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45a51d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046f04f
mov esi, eax
test esi, esi
je 0x45a51d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45a51d
mov ecx, esi
call fcn.0045a370
cmp edi, eax
jge 0x45a51d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45a4a3
mov dword [esp + 0x34], 1
jmp 0x45a4fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45a51d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00459910
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46f9f2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46fa2a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046daa9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046da81
jmp 0x46fa36
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4710e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x471129
call fcn.00476bc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471129
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471120
xor eax, eax
jmp 0x471131
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471137
pop edi
pop esi
pop ebx
ret 4
Function at 0x4770f0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47711e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47713c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477056
jmp 0x47713c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47713c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477056
test edi, edi
mov eax, edi
jne 0x477126
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4017e0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 2
push 0
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40181b
lea ecx, [esp + 8]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x40183b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push 0x104
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40184a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x401cb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x402de0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x402e0b
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x402e0b
call fcn.00402ef0
test eax, eax
jl 0x402e0b
mov dword [esi + 0xd8], 0
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x402e2a
mov ecx, esi
call fcn.00404f80
test eax, eax
jl 0x402e2a
mov dword [esi + 0xe0], 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x405f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x927c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402e64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 0x80004005
pop esi
pop ecx
ret
Function at 0x404870
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwareKingsoftkacksa
push SysReAllocStringLen
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4048b6
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.NeedForceReboot
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 1
add esp, 8
ret

Function at 0x4048c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e9cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.ksaengine.dll
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push eax
call esi
lea edx, [esp + 0x20]
push edx
call fcn.0040bf10
add esp, 0xc
test eax, eax
je 0x404a95
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp ebp, ebx
je 0x404a95
push str.CreateEngine
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404a8e
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x638], ebx
push ecx
push ebx
call eax
cmp eax, ebx
jl 0x404a75
mov edx, dword [esp + 0x10]
cmp edx, ebx
je 0x404a79
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xa0]
cmp eax, ebx
jl 0x404a75
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x404a75
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x428]
push str.SOFTWAREKingsoftKAC_
push eax
call esi
lea ecx, [esp + 0x430]
push 0x414a24
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x428]
mov dword [esp + 0x14], ebx
push edx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x404a75
mov esi, dword [str.KSADataVersion]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
lea eax, [esp + 0x220]
push edx
push eax
push 1
push ebx
push esi
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x404a75
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x638], 0xffffffff
je 0x404a8e
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x4050e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405105
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x415c44]
pop esi
test ecx, ecx
je 0x405120
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x415c44], 0
mov eax, 0x80004005
ret 4
Function at 0x405f90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str._regserver
mov dword [esp + 0x14], 0x414dbc
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x3c
ret

Function at 0x4060a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x48
push esi
push edi
mov ecx, 0xf
mov esi, str.SOFTWAREKingsoftKACksaduba
lea edi, [esp + 0x14]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push eax
push 0xf003f
lea ecx, [esp + 0x1c]
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x406152
mov esi, dword [esp + 0xc]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push str.RegVersion
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406112
mov dword [esp + 8], edi
mov eax, dword [0x4142dc]
mov ecx, dword [esp + 8]
cmp ecx, eax
jae 0x406139
lea edx, [esp + 0x10]
push 4
push edx
push 4
push edi
push str.RegVersion
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov ebx, dword [esp + 0xc]
cmp esi, edi
je 0x406149
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x48
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push edi
push 0xf003f
push edi
push edi
lea ecx, [esp + 0x2c]
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x406186
mov esi, dword [esp + 0xc]
jmp 0x4060de
pop edi
xor eax, eax
pop esi
add esp, 0x48
ret

Function at 0x407c70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x20]
push 0x13a4
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x407cb6
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push 0
push esi
push 0x408580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c0], eax
mov edx, dword [esi + 0x1b8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x407d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x66c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x472]
mov word [esp + 0x470], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x470]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x470]
lea edx, [esp + 0x60]
push ecx
push edx
call esi
add esp, 8
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [str.kac_fix.exe]
lea edx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x60]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x407e0b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x66c
ret
mov ecx, dword [str._autofix__]
lea edx, [esp + 0x268]
push ecx
push edx
call esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x478]
lea ecx, [esp + 0x270]
push eax
push ecx
call esi
lea edx, [esp + 0x278]
push 0x414b70
push edx
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x18
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], eax
push edx
push ebx
mov dword [esp + 0x20], eax
push ebx
push ebx
mov dword [esp + 0x2c], eax
push ebx
push ebx
lea eax, [esp + 0x284]
push ebx
lea ecx, [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebx
add esp, 0x66c
ret

Function at 0x407ea0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov ecx, dword [str.SOFTWAREKingsoftKACService]
push esi
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407eff
mov esi, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
mov dword [esp + 0x18], eax
push eax
mov eax, dword [str.u_has_run_fix]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407ef4
mov edi, 1
test esi, esi
je 0x407eff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 8
ret