joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4536f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453723
push esi
call fcn.004567e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45371c
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 0x4537a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x453792
mov eax, dword [esi + 8]
test eax, eax
je 0x453747
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 0x45378e
cmp eax, 2
je 0x453792
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45373a
cmp eax, 3
je 0x45376d
cmp eax, 1
jne 0x45373a
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 0x45373a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45373a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004537d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4537b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004537d0
add esp, 4
pop esi
ret

Function at 0x471ff5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47202d
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.004700ac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470084
jmp 0x472039
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4736ec
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 0x47372e
call fcn.004791a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47372e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473725
xor eax, eax
jmp 0x473736
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047373c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4796d4
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 0x479702
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479720
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047963a
jmp 0x479720
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479720
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047963a
test edi, edi
mov eax, edi
jne 0x47970a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xfad3e6
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Parse pe header

Disassembly:
push eax
jmp 0xfab070
call 0xfab061
jmp 0xfad197
call fcn.00fab075
lea esp, [esp + 2]
mov dword [esp + 0x38], edi
jmp 0xfad1ee
lea esp, [esp + 2]
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jnp 0xfad15f
jmp 0xfad162
jmp 0xfad187
mov eax, dword [eax + 8]
push eax
jmp 0xfab05c
mov eax, dword [eax + 0xc]
jmp 0xfad13e
mov eax, dword [eax + 8]
push eax
jmp 0xfab05c
pop eax
jnp 0xfad1b4
jmp 0xfad1d1
xor ax, ax
jmp 0xfad21d
xor ax, ax
jmp 0xfad21d
lea esp, [esp + 0x38]
mov eax, dword fs:[0x30]
jmp 0xfad182
movzx ebx, word [eax + 0x3c]
jmp 0xfad240
cmp word [eax], 0x5a4d
jmp 0xfad327
add ebx, eax
jle 0xfad29d
cmp word [ebx], 0x4550
je 0xfa892d
jmp 0xfad2ca
pushfd
lea esp, [esp + 1]
mov word [esp], cx
mov byte [esp + 2], bl
mov dword [esp], ebp
pop word [esp]
push ebx
pop word [esp + 1]
lea esp, [esp + 4]
mov byte [esp + 3], al
je 0xfad128
jmp 0xfad104
cmp word [ebx], 0x4550
jmp 0xfad2c4
je 0xfa892d
jmp 0xfad305
sub eax, 0x10000
jmp 0xfad21d
je 0xfad1fe
jbe 0xfad305
jmp 0xfad305
pushal
mov dh, bl
mov dx, 0x3100
bswap dx
bswap eax
mov ax, 0x72e6
popal
push bp
mov word [esp], sp
lea esp, [esp + 1]
jmp 0xfad26f
Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edi, edi
jle 0x4011a8
mov dl, byte [eax + esi]
xor dl, cl
xor dl, 0xba
mov byte [eax + esi], dl
add eax, 1
cmp eax, edi
jl 0x401196
mov eax, 1
ret

Function at 0x402130
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x1a
mov esi, str.RegistryMachineSystemCurrentControlSetServices_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x19e
lea ecx, [esp + 0x86]
push 0
push ecx
mov dword [esp + 0x18], eax
movsw word es:[edi], word [esi]
call fcn.0044cf00
mov edx, dword [ebx + 4]
lea eax, [ebx + 4]
push str.CDriver::UnLoadDriver_start
push str._s__n
push eax
mov eax, dword [edx + 0x1c]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
add esp, 0x18
mov ecx, ebx
call eax
test eax, eax
je 0x402245
mov edx, dword [esp + 0xc]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4021b0
push 0x104
sub eax, esi
lea ecx, [esp + 0x224]
push ecx
add eax, 1
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402245
lea eax, [esp + 0x220]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021e4
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402200
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402200
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x48ecac]
cmp dword [0x48ecb0], 0
je 0x402245
mov eax, dword [0x48ecb4]
test eax, eax
je 0x402245
lea ecx, [esp + 0x10]
push ecx
call eax
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ce74
mov esp, ebp
pop ebp
ret 4
Function at 0x402b70
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
push edi
xor edi, edi
push edi
mov esi, eax
mov eax, dword [esi + 0x828]
push edi
mov dword [esp + 0x18], edi
mov eax, dword [eax + 4]
push edi
push eax
call ebx
cmp eax, edi
jne 0x402b9a
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x828]
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x40
lea edx, [esi + 0xca0]
push edx
push eax
call ebp
test eax, eax
jl 0x402c5d
mov edi, dword [esi + 0xcdc]
mov eax, dword [esi + 0x828]
mov ecx, dword [eax + 4]
push 0
push 0
push edi
push ecx
call ebx
cmp eax, edi
jne 0x402be2
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x828]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 4]
push 0xf8
lea ecx, [esi + 0xce0]
push ecx
push edx
call ebp
test eax, eax
jl 0x402c65
mov edi, dword [esi + 0xc68]
mov eax, dword [esi + 0x828]
mov eax, dword [eax + 4]
push 0
push 0
push edi
push eax
call ebx
cmp eax, edi
jne 0x402c24
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc7c]
mov ecx, dword [esi + 0xdd8]
mov esi, dword [esi + 0x828]
lea eax, [eax + eax*4]
add eax, eax
push 0
add eax, eax
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call ebp
test eax, eax
jl 0x402c65
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x402c70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
xor esi, esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SYSTEMCurrentControlSetControlKingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402cd4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402cdb
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x403420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403439
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403474
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403470
lea ebx, [ebx]
cmp esi, eax
jae 0x403474
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403460
cmp esi, eax
jb 0x40347a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404c30
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x404c98
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404cb0
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x404cb0
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404cb0
push esi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x404e30
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e72
mov ecx, dword [esp]
push str.KAVTool
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
test eax, eax
je 0x404e72
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x404f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x461d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.00435984
mov eax, dword [esp + 0x30]
movzx ecx, word [esp + 0x34]
push eax
xor ebx, ebx
push ecx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x404fa2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x404fa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x404fa2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x404fa2
mov edx, dword [esp + 0x38]
push ebx
push 0x1001
push edx
lea ecx, [esp + 0x1c]
call fcn.00435df0
test eax, eax
je 0x404fa2
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.004356d2
lea ecx, [esp + 0x10]
mov bl, 1
call fcn.00435922
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00435a80
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x405e40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x461f06
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
call fcn.004037b0
add eax, 0x10
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.004037b0
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.004037b0
add esp, 0xc
add eax, 0x10
mov dword [esi + 0x58], eax
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4068f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x46209b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push esi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.0044cf00
add esp, 0xc
push 0x400
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406a19
call fcn.004294c1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406979
push 0x80004005
call fcn.00403400
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push str.__s__noshow
push edx
mov dword [esp + 0x42c], ebx
call fcn.00403b20
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 2
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x4069f2
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0xc]
push eax
push esi
push 1
push ebx
push str.KAVTool
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4069f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x420], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044ce74
add esp, 0x418
ret
Function at 0x407270
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x462450
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.004294c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072b2
push 0x80004005
call fcn.00403400
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push 1
mov dword [esp + 0x34], 0
call fcn.00429412
test eax, eax
je 0x4072e5
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004038d0
mov edi, dword [esp + 0x10]
call fcn.004294c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072ff
push 0x80004005
call fcn.00403400
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push 3
push ecx
mov byte [esp + 0x3c], 1
call fcn.00406b20
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
add esp, 0xc
push 0x44
push esi
push edx
mov ecx, ebp
call fcn.0042ba4e
cmp eax, 6
jne 0x4073d8
lea eax, [esp + 0x38]
push eax
push 0x28
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407371
push 0x30
push esi
push 0x469034
mov ecx, ebp
call fcn.0042ba4e
jmp 0x4073d8
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
push str.SeShutdownPrivilege
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x38]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40741d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 4
Function at 0x407e60
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push ebp
push 0x104
mov dword [esp + 0x14], ecx
xor ebp, ebp
call fcn.004282da
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x407f62
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push 0x104
call edi
mov esi, eax
cmp esi, ebp
je 0x407f57
lea esp, [esp]
cmp esi, 0x104
jle 0x407ebb
push ebx
push 0x104
call edi
mov esi, eax
cmp esi, ebp
jne 0x407ea0
jmp 0x407f57
lea eax, [esi - 1]
cmp eax, ebp
jle 0x407f2e
mov dword [esp + 0x10], eax
mov edi, ebx
mov dword [esp + 0x14], ebp
lea esp, [esp]
cmp byte [edi], 0
jne 0x407ed8
mov byte [edi], 0x3b
push 0x4690f4
push edi
call fcn.0044e806
add esp, 8
test eax, eax
je 0x407efc
push 0x4690f0
push edi
call fcn.0044e806
add esp, 8
test eax, eax
jne 0x407f22
mov eax, dword [esp + 0x14]
add eax, 3
mov ecx, esi
sub ecx, eax
push ecx
lea edx, [ebx + ebp + 4]
push edx
push edi
mov dword [esp + 0x20], eax
call fcn.0044d2f0
add esp, 0xc
sub esi, 4
sub dword [esp + 0x10], 4
add ebp, 1
add edi, 1
cmp ebp, dword [esp + 0x10]
jl 0x407ed0
mov ecx, dword [esp + 0x18]
mov eax, ebx
add ecx, 0x28f8
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407f40
sub eax, esi
push eax
push ebx
call fcn.004039a0
mov ebp, 1
push ebx
call fcn.004282df
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x407f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x40c], eax
push edi
mov edi, dword [esp + 0x418]
push 0x3ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.0044cf00
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.SOFTWAREKingsoftAntiVirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40802f
push esi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ProgramPath
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40802c
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408014
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004039a0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x410]
pop edi
xor ecx, esp
call fcn.0044ce74
add esp, 0x410
ret 4