joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1647e
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
call fcn.00017fca
test al, al
jne 0x164ab
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x16620
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push edi
mov ecx, 0x1c310
call esi
mov byte [ebp - 1], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
cdq
push edx
push eax
push dword [0x1c338]
call fcn.00011072
mov edi, dword [ebp + 8]
mov ebx, eax
test ebx, ebx
je 0x165ec
mov eax, dword [ebx + 0x1c]
test al, 1
je 0x16511
mov dl, byte [ebp - 1]
mov ecx, 0x1c310
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
and dword [ecx + 0x1c], 0
mov esi, 0xc00000bc
xor dl, dl
mov dword [ecx + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x1661d
test al, 2
je 0x165ec
cmp byte [ebx + 0x15d], 0
jne 0x165ec
lea ecx, [ebx + 0x1a0]
mov dword [ebp + 0xc], ecx
call esi
mov byte [ebp + 0xb], al
lea eax, [ebx + 0x188]
push eax
call fcn.00016d7c
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [ebx + 0x1c], 4
jne 0x165ec
cmp dword [ebp - 0xc], 5
jge 0x165ec
mov ecx, dword [ebp + 0xc]
call esi
lea ecx, [ebx + 0x188]
mov edx, dword [ecx + 4]
lea esi, [edi + 0x58]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [edx], esi
mov dword [ecx + 4], esi
mov ecx, dword [ebp + 0xc]
mov dl, al
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [edi + 0x60]
or byte [eax + 3], 1
lea ecx, [edi + 0x38]
mov eax, 0x161b2
xchg dword [ecx], eax
mov dword [ebp + 8], eax
mov eax, 0x103
mov dword [edi + 0x18], eax
push dword [ebx + 0x14]
mov dword [ebp - 8], eax
push dword [ebx + 0x10]
push 0xb
call fcn.00018bea
test eax, eax
jge 0x165ec
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebx], ecx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dl, al
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x38]
xchg dword [eax], ecx
and dword [edi + 0x18], 0
and dword [ebp - 8], 0
mov dl, byte [ebp - 1]
mov ecx, 0x1c310
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 8]
cmp eax, 0x103
je 0x1661d
cmp eax, 0xc000009a
je 0x1661d
mov ecx, dword [ebp + 0x10]
inc byte [edi + 0x23]
add dword [edi + 0x60], 0x24
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x17d76
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov edi, 0x1c3a0
mov ecx, edi
mov esi, eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp byte [0x1c3b0], 0
je 0x17da7
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], 0xc0000010
jmp 0x17dbb
mov dword [0x1c3b4], esi
mov esi, dword [ebp + 8]
mov byte [0x1c3b0], 1
and dword [esi + 0x18], 0
mov dl, al
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp dword [esi + 0x18], 0
jne 0x17dd0
call fcn.00012390
and dword [esi + 0x1c], 0
xor dl, dl
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
ret 8

Function at 0x17eec
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push esi
mov esi, 0x1c3a0
mov ecx, esi
call ebx
mov ecx, dword [0x1c350]
mov dl, al
cmp ecx, 0x1c350
je 0x17f5a
push edi
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [eax], edi
mov dword [edi + 4], eax
lea edi, [ecx - 0x58]
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
test eax, eax
je 0x17f4b
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
and dword [edi + 0x1c], 0
xor dl, dl
mov ecx, edi
mov dword [edi + 0x18], 0xc0000120
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, esi
call ebx
mov dl, al
mov ecx, dword [0x1c350]
cmp ecx, 0x1c350
jne 0x17f10
pop edi
mov ecx, esi
pop esi
pop ebx
jmp dword [sym.imp.HAL.dll_KfReleaseSpinLock]

Function at 0x18278
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
test esi, esi
je 0x182e0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0x20
jb 0x182e0
cmp dword [0x1b680], 0
mov ebx, 0x1b668
jne 0x182b6
push 0
push 0x640000
push 0x1b680
call fcn.000180e0
test eax, eax
jl 0x182d0
cmp dword [0x1b668], 0
jne 0x182f0
push 0
push 0x40000
push ebx
call fcn.000180e0
test eax, eax
jge 0x182f0
push 0x1b680
call fcn.00018202
push ebx
call fcn.00018202
and dword [edi + 0x1c], 0
mov eax, 0xc0000001
mov dword [edi + 0x18], eax
mov esi, eax
jmp 0x18333
mov eax, dword [0x1b684]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [0x1b690]
mov dword [esi + 8], eax
mov eax, dword [0x1b694]
mov dword [esi + 0xc], eax
mov eax, dword [0x1b66c]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0x1b678]
mov dword [esi + 0x18], eax
mov eax, dword [0x1b67c]
mov dword [esi + 0x1c], eax
xor esi, esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], 0x20
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x18ab6
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ebx, 0x1c310
push edi
mov ecx, ebx
call esi
mov edi, 0x1c3a0
jmp 0x18bad
mov ecx, dword [edx]
mov dword [0x1c350], ecx
mov dword [ecx + 4], eax
cmp edx, eax
je 0x18bbc
add edx, 0xffffffa8
lea ecx, [edx + 0x58]
mov dword [ebp - 0xc], edx
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
xor ecx, ecx
add edx, 0x38
xchg dword [edx], ecx
test ecx, ecx
je 0x18bbc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 4]
test byte [eax + 6], 5
mov dword [ebp - 0x10], ecx
je 0x18b21
mov eax, dword [eax + 0xc]
jmp 0x18b31
push 0x10
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov dword [ebp - 8], eax
test eax, eax
je 0x18b81
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 8
jb 0x18b81
push dword [0x1b690]
push dword [0x1b688]
call fcn.0001886e
mov ecx, dword [ebp - 8]
and dword [ecx + 4], 0
mov dl, byte [ebp - 1]
mov dword [ecx], eax
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, byte [ebp - 2]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 0xc]
and dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 8
jmp 0x18ba1
mov dl, byte [ebp - 1]
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, byte [ebp - 2]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], 0xc000009a
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, ebx
call esi
mov ecx, edi
mov byte [ebp - 2], al
call esi
mov byte [ebp - 1], al
mov eax, 0x1c350
mov edx, dword [0x1c350]
cmp edx, eax
jne 0x18ada
mov dl, byte [ebp - 1]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
call esi
mov dl, byte [ebp - 2]
mov ecx, ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x18d26
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.000194f6
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ebx, 0x1c310
mov ecx, ebx
call esi
mov edi, 0x1c3a0
mov ecx, edi
mov byte [ebp - 2], al
call esi
and dword [0x1c3b4], 0
mov byte [ebp - 1], al
mov byte [0x1c3b0], 0
call fcn.00017dec
mov dl, byte [ebp - 1]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
call esi
mov dl, byte [ebp - 2]
mov ecx, ebx
call esi
call fcn.00017eec
call fcn.00017e1c
push 0x1b680
call fcn.00018202
push 0x1b668
call fcn.00018202
mov ecx, dword [ebp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x18db8
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test byte [eax + 6], 5
push edi
je 0x18dd2
mov ebx, dword [eax + 0xc]
jmp 0x18de4
push 0x10
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov ebx, eax
test ebx, ebx
je 0x18ec8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 8
jb 0x18ec8
mov edi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, 0x1c310
call edi
mov ecx, 0x1c3a0
mov byte [ebp + 0xf], al
call edi
push dword [0x1b690]
mov byte [ebp + 0xb], al
push dword [0x1b688]
call fcn.0001886e
and dword [ebx + 4], 0
mov dword [ebx], eax
cmp byte [esi + 0x24], 0
mov edi, 0x103
je 0x18e49
xor eax, eax
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
test eax, eax
je 0x18e49
mov dword [ebp - 4], 0xc0000120
jmp 0x18e8f
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x18e8b
mov edx, 0x1c350
cmp dword [0x1c350], edx
jne 0x18e8b
mov eax, dword [esi + 0x60]
or byte [eax + 3], 1
mov dword [esi + 0x18], edi
mov ecx, dword [0x1c354]
lea eax, [esi + 0x58]
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [ecx], eax
mov dword [0x1c354], eax
mov eax, 0x17f6a
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
mov dword [ebp - 4], edi
jmp 0x18e8f
and dword [ebp - 4], 0
mov dl, byte [ebp + 0xb]
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, 0x1c3a0
call ebx
mov dl, byte [ebp + 0xf]
mov ecx, 0x1c310
call ebx
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x18ec4
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], 8
mov dword [esi + 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, ebx
jmp 0x18edc
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x19418
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
test byte [eax + 6], 5
je 0x19439
mov eax, dword [eax + 0xc]
jmp 0x19447
push 0x10
push edi
push edi
push 1
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
cmp eax, edi
je 0x19471
cmp ebx, 8
jb 0x19471
push dword [eax]
push dword [0x1b670]
call fcn.000192f8
xor dl, dl
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x19485
mov edi, 0xc000009a
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7bdd0cb6
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x434c714a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0xf7a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xf7a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xfa3074
push ecx
mov edi, eax
call fcn.00f8e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf7a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f8e02e
push esi
call fcn.00f8dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf7d850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xf7d8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xfa8720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf7d8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00f8e1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xf7d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfa8720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf7d92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00f8f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf7d957
mov word [eax], si
add eax, 2
push eax
call fcn.00f8f030
add esp, 4
jmp 0xf7d959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xf7d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf7d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xf7dff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xf7e080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf7e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfa3458
push ecx
call fcn.00f8e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f8e1e1
add esp, 0x10
jmp 0xf7e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f8e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f8ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f7e050
mov eax, dword [0xfa8728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xf7e13b
push esi
call fcn.00f7dfb0
add esp, 4
mov dword [0xfa8728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf7e14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00f7dff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xf81440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf814b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf8148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf81471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf8147e
add edx, ecx
cmp ebx, edx
jb 0xf8148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf81467
xor ecx, ecx
jmp 0xf814a2
test eax, eax
jne 0xf81492
xor ecx, ecx
jmp 0xf814a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00f813c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf818f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xf81921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xf81946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xf8196e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xf81993
push ecx
push esi
call fcn.00f814c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xf82c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xf82c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xf82c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xf82c38
add edx, eax
cmp ebx, edx
jb 0xf82c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xf82c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xf82c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xf82c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xf82cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf82c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf82ca8
add edx, ecx
cmp ebx, edx
jb 0xf82cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf82c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xf82f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00f8f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf82ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xf82fdd
lea eax, [esp + 0x18]
push eax
jmp 0xf82fe2
push 0xfa8720
call fcn.00f8efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf82fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf82f40
push 4
push ecx
push eax
call fcn.00f8f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf83310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00f8f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf833ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xf8338d
lea eax, [esp + 0x18]
push eax
jmp 0xf83392
push 0xfa8720
call fcn.00f8efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf83360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf82f40
push 4
push ecx
push eax
call fcn.00f8f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf84f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xf84fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xf84fcf
push ebx
push edi
push 0xfa8770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xf84fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xfa8770
push esi
call ebx
test eax, eax
je 0xf84fae
mov ebp, 3
cmp dword [0xfa8774], ebp
jne 0xf84faa
push 0x3e8
call edi
push 0xfa8770
push esi
call ebx
test eax, eax
jne 0xf84f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xf84fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xf84fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret