joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4be451
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4be4ab
inc edi
cmp edi, esi
jl 0x4be445
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4be4e0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4be49a
cmp byte [eax], bl
je 0x4be4b5
cmp byte [eax + 1], bl
je 0x4be4be
cmp byte [eax + 2], bl
je 0x4be4c8
cmp byte [eax + 3], bl
je 0x4be4d4
add eax, 4
cmp eax, edi
jb 0x4be471
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x4c2de0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4d2ee4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4c2df3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4c2e34
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4d2f8c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4c2e66
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c2e6a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4c2e5b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4c2e88
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c2e8c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4c2e7d
xor ecx, ecx
mov eax, 0x4d2ef4
xor ebx, ebx
mov bl, byte [ecx + 0x4d2f9c]
cmp byte [esp + ebx + 0x14], 0
je 0x4c2eb7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4d2fb4]
cmp byte [esp + ebx + 0x14], 0
je 0x4c2ece
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4c2e9e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4c2e27
lea edx, [esp + 0x84]
push edx
call fcn.004c2f10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x50b310
Capabilities:
Encode data using xor

Disassembly:
call fcn.006e7cee
push esp
sbb eax, 0x7cb419d5
adc dh, ah
mov esi, 0x1037e29c
sti
add al, byte [ecx + 0x601b0b0b]
in al, 0xfa
cmp esi, esi
add al, 0x6b
sbb esi, dword [esi]
invalid

Function at 0x539cec
Capabilities:
Encode data using xor

Disassembly:
lahf
inc esp
and al, 0x14
push dword [esp + 8]
popfd
lea esp, [esp + 0x14]
call fcn.00506dcf
and word [esp + 0x24], 0x5e9a
call fcn.005fd936
push ebx
xor eax, 0xec89b4de
movsd dword es:[edi], dword [esi]
call 0xfc05b009
jb 0x539d01
nop
in al, dx
lsl ax, word [edx + 0x34]
jae 0x539cd9
sub byte [edx - 0x2fe515bb], dl
retf

Function at 0x75dad1
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 0x1c]
popfd
lea esp, [esp + 0x34]
call fcn.006be9f7
add eax, 0x91a5c8d1
dec ecx
rcr dword [eax - 0xaae7aae], 0x44
add ebp, 0xa45a5061
xor eax, 0xb302d96c
cmp byte [esi + 0x5c], ah
xor byte [eax + 0x3a], cl
mov word [ebx - 0x33a74d3a], ss
cmp cl, byte [ebx + edx*4 - 0x33a74d3a]
xor dword [ecx - 0x7c211f8d], ecx
pop ss
jns 0x75dad6
outsd dx, dword [esi]
mul ch
jno 0x75db44
xchg esi, esi
push 0xffffffffffffff8f
jmp 0x75db4e
scasd eax, dword es:[edi]
mov ebx, 0x8929df89
scasd eax, dword es:[edi]
movsd dword es:[edi], dword [esi]
invalid
leave
and esi, 0x2d
lcall 0x3c19, 0x9f6bed02
inc ebx
rcl byte [ebp + 0x65f316d8], cl
enter 0xfffffffffffff615, 0xffffffffffffff83
adc ebx, dword [edi + 1]
daa
mov bh, 0x76
jmp 0xbdb2a563
push ds
retf 0xbd3c
mov ebp, 0x6e67d634
outsb dx, byte [esi]
xchg esi, eax
loop 0x75dafc
xchg ecx, eax
aad 0x81
invalid
or dword [esi - 0x13552f81], 0x7504c662
push 0xa0da350b
mov byte [esi*2 - 0x25caf498], 0xa0
mov ch, 0xcd
loopne 0x75dba2
aaa
fsubp st(6)
sbb dword [edi - 0x76], ebx
dec edx
push ebx
pop ecx
and dword [esi - 0x5bb8098a], 0x1f7f5362
mov bl, 0x47
imul edi, edx, 0x9f3d482d
lahf
xor eax, 0xdf4bb2db
xchg edi, eax
xchg esp, eax
jae 0x75db19
std
and eax, 0x40e1790a
push eax
clc
jno 0x75dbac
test al, 0x50
ja 0x75db23
mov ah, 0x20
dec esi
jnp 0x75db48
mov ah, 0xc
push ds
movsb byte es:[edi], byte [esi]
push edx
shr cl, 1
pop ss
or dword [esp + ebp*8 + 0x12], edi
jp 0x75db7c
jl 0x75db90
adc bh, byte [edx - 0x2b]
leave
jmp 0x75db41
mov ebx, 0xaa33cf10
bound esi, qword [ebx - 0x67]
aaa
jae 0x75db55
add ebp, edi
mov dword [0x4ba7554d], eax
mov dword [ecx + 0x42c04a52], ebp
inc edx
mov dh, 0xae
out 0x92, eax
imul ecx, dword [esi + 0x7e2911d0], 0x565007fa
adc ebx, esi
xchg byte [ecx + ecx*4 + 0x5a4d8f97], al
dec ebp
pop edx
pop esp
cmp dword [ebx - 0x56], esi
fcmove st(0), st(2)
dec esp
insd dword es:[edi], dx
push eax
sbb ebx, dword [edi - 0x4a]
inc ebx
adc ecx, dword [eax]
jne 0x75dbc3
adc esi, dword [ebp - 0x76]
pop ebx
pop es
cld
ror byte [edx + 0x1c], cl
jns 0x75dbd9
mov bh, 0x50
out dx, al
mov dh, 0x16
dec ebp
cmp ch, byte [esi - 0x4d73a6ec]
mov ah, 0xa6
mov dword [esi + 0x35d339e8], 0xd3d9758e
mov edx, 0xcd758d70
mov dh, 0x50
test eax, 0xad699d65
int1
push ecx
test eax, 0xfdbd7eb5
cmp eax, 0x2ce078bb
inc esp
sbb eax, 0x3aac3bc8
dec esp
mov ebp, 0xa97bed51
fidiv word [esi + ebp*8 + 0x4f71c3d4]
cld
dec esp
loope 0x75dc44
ficomp dword [ecx + 0x17]
mov al, 0x9e
aas
invalid
Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub esi, 1
call fcn.00408966
add esi, 1
and ecx, ecx
xor dword [ebx], eax
sub esp, 4
mov dword [esp], 0x7d4b6ae5
mov esi, dword [esp]
add esp, 4
and ecx, ecx
inc ebx
cmp ebx, edx
jne fcn.00408931
dec ecx
ret
Function at 0x9df370
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 0x9df38e
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 0xa08074
push ecx
mov edi, eax
call fcn.009f3198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9df3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009f302e
push esi
call fcn.009f2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9e2850
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 0x9e28ae
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 0xa0d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9e28ba
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.009f31e1
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 0x9e28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa0d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9e292a
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.009f4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9e2957
mov word [eax], si
add eax, 2
push eax
call fcn.009f4030
add esp, 4
jmp 0x9e2959
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 0x9e28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9e28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9e30c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa08458
push ecx
call fcn.009f31e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009f31e1
add esp, 0x10
jmp 0x9e30d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009f320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009f2dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.009e3050
mov eax, dword [0xa0d728]
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 0x9e313b
push esi
call fcn.009e2fb0
add esp, 4
mov dword [0xa0d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x9e314c
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.009e2ff0
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 0x9e6440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9e64b7
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 0x9e648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9e6471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9e647e
add edx, ecx
cmp ebx, edx
jb 0x9e648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9e6467
xor ecx, ecx
jmp 0x9e64a2
test eax, eax
jne 0x9e6492
xor ecx, ecx
jmp 0x9e64a2
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.009e63c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9e68f0
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 0x9e6921
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 0x9e6946
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 0x9e696e
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 0x9e6993
push ecx
push esi
call fcn.009e64c0
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 0x9e7c00
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 0x9e7c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x9e7c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x9e7c38
add edx, eax
cmp ebx, edx
jb 0x9e7c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x9e7c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x9e7c50
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 0x9e7c70
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 0x9e7cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9e7c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9e7ca8
add edx, ecx
cmp ebx, edx
jb 0x9e7cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9e7c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x9e7f60
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.009f4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9e7ffb
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 0x9e7fdd
lea eax, [esp + 0x18]
push eax
jmp 0x9e7fe2
push 0xa0d720
call fcn.009f3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9e7fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9e7f40
push 4
push ecx
push eax
call fcn.009f443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9e8310
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.009f4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9e83ab
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 0x9e838d
lea eax, [esp + 0x18]
push eax
jmp 0x9e8392
push 0xa0d720
call fcn.009f3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x9e8360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x9e7f40
push 4
push ecx
push eax
call fcn.009f443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x9e9f20
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 0x9e9fd7
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 0x9e9fcf
push ebx
push edi
push 0xa0d770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x9e9fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xa0d770
push esi
call ebx
test eax, eax
je 0x9e9fae
mov ebp, 3
cmp dword [0xa0d774], ebp
jne 0x9e9faa
push 0x3e8
call edi
push 0xa0d770
push esi
call ebx
test eax, eax
jne 0x9e9f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x9e9fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x9e9fbb
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 0x9ede00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xa038f0
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 0x9eded2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009ea7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x9ede61
mov edx, dword [eax]
jmp 0x9ede63
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.009ec050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x9edebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9edebf
cmp esi, edi
je 0x9edebf
mov ecx, esi
call fcn.009e5a00
push esi
call fcn.009f31c8
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.009ea990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x9edef5
mov eax, dword [eax]
jmp 0x9edef7
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.009e9640
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 0x9edf25
mov eax, dword [eax]
jmp 0x9edf27
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 0x9edf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9edf76
cmp esi, edi
je 0x9edf76
mov eax, dword [esi]
cmp eax, edi
je 0x9edf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x9edf6d
push eax
call fcn.009f31c8
add esp, 4
push esi
call fcn.009f31c8
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