joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000262d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
or edi, 0xffffffff
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 0x82
mov dword [ebp - 8], ebx
jne 0x10002689
call 0x10015866
lea ecx, [ebp - 0x114]
push 0x104
push ecx
push eax
call dword [0x100521c0]
test eax, eax
jbe 0x10002689
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x114]
push 0x80000000
push eax
call dword [0x100521b8]
mov dword [ebp + 8], eax
push 0x121
call fcn.1002ea3f
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x100026a4
mov eax, 0x84
jmp 0x100027d6
cmp dword [ebp + 0xc], ebx
jne 0x100026dc
push 0x11
push 0x1005d0f4
push ebx
push dword [ebp + 8]
call fcn.10012305
add esp, 0x10
cmp eax, edi
jne 0x100026ca
mov eax, 0x82
jmp 0x100027d6
push eax
push dword [ebp + 8]
call fcn.10002c39
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
je 0x100026ed
push ebx
push dword [ebp + 8]
call dword [0x10052030]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x100026f7
mov eax, 0x1f5
jmp 0x100027d6
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1005202c]
mov ebx, eax
cmp ebx, dword [ebp - 0x10]
jae 0x100027b6
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push eax
push 0x121
push esi
push dword [ebp + 8]
call dword [0x1005203c]
test eax, eax
je 0x100027a6
cmp dword [ebp - 0xc], edi
jbe 0x1000275c
imul ebx, ebx, 0x13c6a5
sub ebx, 0x27bcf213
mov eax, ebx
mov ecx, ebx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov ecx, ebx
shr ecx, 8
xor al, cl
xor al, byte [edi + esi]
xor al, bl
mov byte [edi + esi], al
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1000272f
cmp dword [esi], 0xa8726b03
jne 0x100027af
cmp dword [esi + 4], 0xef01996c
jne 0x100027af
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0x10]
jne 0x10002794
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.10002a60
add esp, 0x10
cmp eax, 0x82
mov dword [ebp - 4], eax
jne 0x100027b6
inc dword [ebp - 8]
mov eax, dword [esi + 0x10]
push 0
add eax, dword [esi + 0xc]
push 0
add dword [ebp + 0xc], eax
jmp 0x100026f9
mov dword [ebp - 4], 0x1f5
jmp 0x100027b6
mov dword [ebp - 4], 0x82
push esi
call fcn.1002e7b0
cmp dword [ebp - 4], 0x82
pop ecx
jne 0x100027d3
cmp dword [ebp - 8], 0
jne 0x100027d3
mov dword [ebp - 4], 0x1fd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003fe2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.10015fcf
add esp, 0x10
test ax, ax
jne 0x10004021
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.1002eec0
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.1002eec0
add esp, 0x18
jmp 0x10004061
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x10004052
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.10015fcf
add esp, 0x10
test ax, ax
je 0x10004052
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x10004064
push edi
push 0xff
push ebx
call fcn.1002eec0
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100042a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053638
push 0x1002fd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100042e4
xor ax, ax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc0], 0x94
lea eax, [ebp - 0xc0]
push eax
call dword [0x100520a4]
test eax, eax
jne 0x10004313
xor ax, ax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
cmp dword [ebp - 0xb0], eax
je 0x10004336
mov word [esi], 0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xc8], 0x28
mov dword [ebp - 4], 0
pushal
pushfd
sidt [ebp - 0x24]
mov ebx, dword [ebp - 0x22]
add ebx, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xd4]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cli
mov edi, ebx
mov esi, dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sti
cli
mov edi, ebx
mov esi, dword [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sti
popfd
popal
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov word [eax], 0
jmp 0x100043b2
mov ax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100092b0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [0x100520a4]
test eax, eax
jne 0x100092d8
mov ax, 1
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x9c]
cmp eax, 2
je 0x10009306
mov eax, dword [edi]
and eax, 0x178025ed
mov dword [edi], eax
mov ecx, dword [edi]
xor eax, eax
and ecx, 0x178025ed
mov dword [edi], ecx
pop edi
add esp, 0x94
ret
mov eax, dword [0x1006d010]
test eax, eax
je 0x10009319
mov edx, dword [0x1006d014]
test edx, edx
jne 0x10009364
call fcn.10015235
test eax, eax
mov dword [0x1006d010], eax
je 0x1000935e
push 0x1006cf08
push 0x1006d000
mov dword [0x1006d004], eax
mov dword [0x1006d008], 0x67
call fcn.10003fc8
mov eax, dword [0x1006d010]
mov ecx, dword [0x1006cf80]
add esp, 8
lea edx, [ecx + eax]
mov dword [0x1006d014], edx
jmp 0x10009364
mov edx, dword [0x1006d014]
push esi
mov esi, 0xff
test eax, eax
je 0x10009391
test edx, edx
je 0x10009391
mov ecx, dword [edx + 0x1c]
mov edx, dword [edx + 0x14]
add ecx, eax
xor esi, esi
test edx, edx
jbe 0x10009391
push ebx
mov ebx, dword [ecx]
cmp byte [ebx + eax], 0xcc
jne 0x1000938a
inc esi
add ecx, 4
dec edx
jne 0x10009381
pop ebx
xor edx, edx
cmp edx, esi
pop esi
sbb eax, eax
neg eax
test ax, ax
jne 0x100093b1
mov ecx, dword [edi]
and ecx, 0x178025ed
mov dword [edi], ecx
pop edi
add esp, 0x94
ret
mov ecx, dword [esp + 0x9c]
pop edi
and dword [ecx], 0x2670e163
add esp, 0x94
ret
Function at 0x100095a0
Capabilities:
Check for peb beingdebugged flag
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
lea eax, [ebp - 0x98]
push edi
push eax
mov dword [ebp - 0x98], 0x94
call dword [0x100520a4]
test eax, eax
jne 0x100095d2
mov ax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x88], 2
je 0x100095fa
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
and eax, 0x970560ef
mov dword [ecx], eax
mov edx, dword [ecx]
xor eax, eax
and edx, 0x970560ef
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
pushal
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
movzx eax, byte [ecx + 2]
test eax, eax
jne 0x10009618
xor eax, eax
mov dword [ebp - 4], eax
popal
mov esi, dword [ebp - 4]
xor ecx, ecx
cmp ecx, esi
sbb eax, eax
neg eax
test ax, ax
je 0x10009639
call fcn.1000127a
neg ax
sbb eax, eax
inc eax
test ax, ax
jne 0x10009649
mov ecx, dword [ebp + 8]
and dword [ecx], 0x970560ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
and dword [ecx], 0x68ecd011
mov esp, ebp
pop ebp
ret

Function at 0x1001218a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call 0x1002ea10
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp + 8]
push 1
push eax
call fcn.10003f04
mov esi, eax
add esp, 0x18
test esi, esi
je 0x100121e0
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push esi
push eax
call fcn.1000414d
add esp, 0xc
test eax, eax
jne 0x100121ea
lea eax, [ebp - 8]
add esi, 0x28
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
jmp 0x100121a6
mov eax, 0x258
jmp 0x1001227a
cmp dword [ebp - 4], 0
je 0x10012275
push edi
cmp dword [ebp - 4], 0x1000
mov esi, dword [ebp - 4]
jb 0x10012206
mov esi, 0x1000
lea eax, [ebp - 0x100c]
push eax
push esi
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
call fcn.1001216d
mov al, byte [ebp - 0x100c]
add esp, 0x10
xor al, 0x43
push 1
mov byte [ebp - 0x100c], al
pop edi
xor al, 0x15
cmp esi, edi
mov dl, al
jbe 0x10012251
mov al, byte [ebp + edi - 0x100d]
lea ecx, [ebp + edi - 0x100c]
xor al, byte [ecx]
add al, dl
add dl, al
inc edi
cmp edi, esi
mov byte [ecx], al
jb 0x10012236
lea eax, [ebp - 0x100c]
push eax
push esi
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
call fcn.10012129
sub dword [ebp - 4], esi
add dword [ebp - 8], esi
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x100121f5
pop edi
mov eax, 0x82
pop esi
leave
ret

Function at 0x1001227d
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
cmp dword [esp + 8], edx
jle 0x100122c9
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x10]
xor ecx, dword [esi]
lea edi, [edx + eax]
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
xor al, byte [edi]
xor al, cl
mov byte [edi], al
mov ecx, dword [esi + 4]
movzx eax, al
shl ecx, 8
add ecx, eax
inc edx
cmp edx, dword [esp + 0x14]
mov dword [esi + 4], ecx
jl 0x1001228c
pop edi
pop esi
pop ebx
ret
Function at 0x9ad370
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 0x9ad38e
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 0x9d6074
push ecx
mov edi, eax
call fcn.009c1198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9ad3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009c102e
push esi
call fcn.009c0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9b0850
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 0x9b08ae
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 0x9db720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9b08ba
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.009c11e1
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 0x9b08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9db720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9b092a
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.009c2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9b0957
mov word [eax], si
add eax, 2
push eax
call fcn.009c2030
add esp, 4
jmp 0x9b0959
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 0x9b08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9b08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x9b0ff0
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 0x9b1080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9b10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9d6458
push ecx
call fcn.009c11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009c11e1
add esp, 0x10
jmp 0x9b10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009c120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009c0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.009b1050
mov eax, dword [0x9db728]
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 0x9b113b
push esi
call fcn.009b0fb0
add esp, 4
mov dword [0x9db728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x9b114c
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.009b0ff0
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 0x9b4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9b44b7
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 0x9b448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9b4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9b447e
add edx, ecx
cmp ebx, edx
jb 0x9b448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9b4467
xor ecx, ecx
jmp 0x9b44a2
test eax, eax
jne 0x9b4492
xor ecx, ecx
jmp 0x9b44a2
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.009b43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9b48f0
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 0x9b4921
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 0x9b4946
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 0x9b496e
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 0x9b4993
push ecx
push esi
call fcn.009b44c0
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 0x9b5c00
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 0x9b5c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x9b5c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x9b5c38
add edx, eax
cmp ebx, edx
jb 0x9b5c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x9b5c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x9b5c50
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 0x9b5c70
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 0x9b5cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9b5c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9b5ca8
add edx, ecx
cmp ebx, edx
jb 0x9b5cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9b5c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x9b5f60
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.009c2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9b5ffb
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 0x9b5fdd
lea eax, [esp + 0x18]
push eax
jmp 0x9b5fe2
push 0x9db720
call fcn.009c1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9b5fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9b5f40
push 4
push ecx
push eax
call fcn.009c243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9b6310
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.009c2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9b63ab
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 0x9b638d
lea eax, [esp + 0x18]
push eax
jmp 0x9b6392
push 0x9db720
call fcn.009c1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9b6360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9b5f40
push 4
push ecx
push eax
call fcn.009c243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9b7f20
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 0x9b7fd7
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 0x9b7fcf
push ebx
push edi
push 0x9db770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x9b7fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x9db770
push esi
call ebx
test eax, eax
je 0x9b7fae
mov ebp, 3
cmp dword [0x9db774], ebp
jne 0x9b7faa
push 0x3e8
call edi
push 0x9db770
push esi
call ebx
test eax, eax
jne 0x9b7f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x9b7fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x9b7fbb
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
Function at 0x9bbe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x9d18f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x9bbed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009b87a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x9bbe61
mov edx, dword [eax]
jmp 0x9bbe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.009ba050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x9bbebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9bbebf
cmp esi, edi
je 0x9bbebf
mov ecx, esi
call fcn.009b3a00
push esi
call fcn.009c11c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.009b8990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x9bbef5
mov eax, dword [eax]
jmp 0x9bbef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.009b7640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x9bbf25
mov eax, dword [eax]
jmp 0x9bbf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x9bbf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9bbf76
cmp esi, edi
je 0x9bbf76
mov eax, dword [esi]
cmp eax, edi
je 0x9bbf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x9bbf6d
push eax
call fcn.009c11c8
add esp, 4
push esi
call fcn.009c11c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret