joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032f3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403351
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403351
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403351
cmp dword [edx + ecx], 0x4550
jne 0x403351
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x40333c
mov edi, 0x8664
cmp ax, di
je 0x403351
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403351
add ecx, 0xc
cmp esi, ecx
jae 0x403353
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x40c6f6
Capabilities:
Encode data using xor

Disassembly:
jno 0x40c6fc
xchg ecx, eax
xchg dword [eax + 0x604fec66], esp
mov al, byte [0x604fec66]
mov ah, 0x48
adc al, 0x85
fiadd dword [ebx + 0x28efa31]
fidivr word [ebp - 0x77]
adc ebx, dword [esi - 0x13]
cmp byte [eax + 0x7c], 0
and eax, dword [eax]
pop ss
js 0x40c790
add byte [ebx], ah
add byte [edi], dl
sub cl, al
shl ebx, cl
jecxz 0x40c712
fcomp qword [esi + eax*2 + 0x7e]
cmpsd dword [esi], dword es:[edi]
jno 0x2b0555e0
jae 0x40c784
xor eax, 0x39e0b235
loopne 0x40c769
adc al, 0xab
lds esp, [ebx + edi*2]
in eax, dx
js 0x40c7ae
and byte [ebx], 0x75
mov esp, 0x9766c41
jbe 0x40c74b
fist dword [ecx + ecx]
sbb eax, 0x4a9d7792
xchg byte [edi], bh
aas
wait
pop esp
xor al, 0x7c
outsd dx, dword [esi]
adc al, byte [edx + 0x5a]
mov esp, 0x9f59f9c2
sub eax, 0xc8114629
jle 0x40c740
ret 0x59f9
test byte [ebp + 0x1e2efa3b], al
aas
aas
pop ds
inc ecx
invalid
adc esp, ecx
movlps qword [ebp - 0x431b199c], xmm2
neg dword [ecx - 0x72]
clc
ja 0x40c72e
mov edi, 0x6a53fe05
ja 0x40c755
iretd
inc ebp
int3

Function at 0x41713a
Capabilities:
Authenticate hmac

Disassembly:
add al, 0x4a
mov ecx, 0x18026154
mov word [ecx - 0x2a], gs
jg 0x417129
imul edx, esi, 0x3abbfc7f
inc ecx
int3
mov ebx, 0x82cc413a
and eax, 0x638fdf9a
ret
outsb dx, byte [esi]
pop ds
and dword [esi], 0xb091cffb
iretd
xchg ecx, eax
mov al, 0x4b
pop ss
std
pushal
aas
fist word [ecx + 0x40]
shl byte [ebx], 0xeb
inc esp
xchg ecx, eax
add eax, 0xf7c1bc0e
jle 0x41718e
movsd dword es:[edi], dword [esi]
jae 0x417121
xor ebx, dword [ebx - 0x5e90af73]
inc ecx
fstp dword [edi]
insb byte es:[edi], dx
dec edi
ja 0x4171d6
and al, 0x36
aas
pop ds
dec edi
inc ebp
hlt
mov esi, 0x6c87b5eb
lodsb al, byte [esi]
in al, dx
and al, bh
mov dl, 0x18
sal dword [edi - 0x3e29446a], 1
dec esi
jns 0x4171b9
xor byte [edi], ah
inc ebp
inc ecx
xchg byte [ebx + 0x4c8f7eed], bl
movsd dword es:[edi], dword [esi]
adc dword [edx], esi
mov ebx, 0x61b1849
fisub dword [ebx + 0x757ccccd]
adc byte [esi - 0x58], cl
or esp, 0xe8c2c877
invalid
jne 0x4171cb
dec esi
test al, 0x81
int3
adc ebp, dword [ecx]
add dh, dl
push ecx
les esi, [esi + 0x7dba58bf]
xchg byte [ecx - 0x28b9d9e5], bh
xor eax, 0x520d30db
jb 0x417234
or al, 9
ret
stosd dword es:[edi], eax
and eax, 0xf0625530
invalid
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
mov ecx, 0x5ef07b8f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x56df078e
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x5ef02ff0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x707b0405
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x408941
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
mov ecx, dword [esp]
add esp, 4
call fcn.00408969
and edi, ebx
xor dword [esi], ecx
inc esi
mov ebx, 0xced8c32
sub edi, 0xb114758d
cmp esi, eax
jne fcn.00408941
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x7a021948
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x6b813756
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov esp, dword [ecx - 0x7d]
in al, dx
js 0x401e9d
mov esi, dword [ebp + 0xc]
sub ah, byte [ebx]
inc ebp
mov byte [edx + 0x78], ch
push eax
push esi
call 0xc64086e0
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push ecx
add edx, 0x40
push str._s:__s___d__n
push edx
push dword [edx + 3]
inc ecx
scasb al, byte es:[edi]
add byte [ecx - 0x41befd54], ah
push 0xc08514c4
je 0x401e8c
push eax
mov dl, 0x54
shr byte [eax + 0x6415ff00], cl
rol dword [eax], 0x9e
les ecx, [eax]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
out dx, eax
nop
nop
nop
nop
nop
nop
Function at 0x40c000
Capabilities:
Encode data using base64
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d000
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x420f3c
mov dword [ebp - 0x50], ebx
push edx
pushfd
mov edx, 0xa9da012
lea edx, [edx + edx*8 - 0x1cd8edcb]
xor dx, 0xcb09
lea edx, [edx*2 + 0x671da0bc]
or dl, dh
mov edx, dword [esp + 4]
mov dword [esp + 4], 0xa9ed4f4a
push dword [esp]
popfd
lea esp, [esp + 4]
call fcn.0049e12e

Function at 0x40c0b2
Capabilities:
Hash data using murmur3

Disassembly:
bts eax, 0x3c
lea edx, [esp + eax - 0x73b0251d]
add eax, 0x253940a5
mov ecx, 0x60
lea eax, [esi - 0x80]
jae 0x52c80a
and eax, 0xfffffffc
call fcn.005271a1
ror ecx, 0x4b
or ax, 0xd213
or edx, dword [edx + esi]
sar cx, 0xcb
adc ax, 0xb3b0
btc cx, ax
xor edx, ebx
lea eax, [eax + ecx*4 - 0x14e2f442]
neg cx
neg edx
btr cx, ax
lea edx, [edx + eax - 0x3b891c7a]
cwde
bt ax, cx
setae cl
neg edx
shl cl, 0xa1
ror cl, 0x46
ror edx, 1
ror cl, 0xe5
shl ax, 0x2b
neg edx
or eax, 0x3eb4cd1c
not edx
lea edx, [eax + edx - 0x77b7788]
and ecx, ecx
xor ebx, edx
xadd eax, ecx
rol ecx, 0x98
and ax, ax
adc ebp, edx
call fcn.0051a856

Function at 0x40d890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x425308
call fcn.004108c1
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x40d944
test esi, esi
jne 0x40d944
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40d928
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d922
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d922
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x40d911
cmp esi, eax
jae 0x40d915
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d903
cmp esi, eax
jb 0x40d919
xor eax, eax
jmp 0x40d922
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40d94d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x425308
call fcn.004108c1
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x40d8b5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d978
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d9aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40d9a6
cmp esi, eax
jae 0x40d9aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d998
cmp esi, eax
jb 0x40d9b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40da20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40daa9
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40daa9
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410969
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410969
mov esp, ebp
pop ebp
ret
Function at 0x40e150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40e1fa
call fcn.0040e0a0
mov esi, eax
cmp esi, ebx
je 0x40e1fa
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00415000
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
push 0x13
push esi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
push edi
je 0x40e1c5
mov edx, dword [ebp - 4]
push edx
jmp 0x40e1c6
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e1de
push eax
call ebx
push esi
call ebx
test edi, edi
je 0x40e1f1
mov edx, dword [ebp - 0x18]
push edx
call ebx
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ee90
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ef11
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40ef10
push edi
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x4210b0
push 0x4210b0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40ef0c
push eax
call edi
push esi
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410969
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0040c000
test eax, eax
js 0x40ef72
lea eax, [ebp - 0x30]
push eax
call fcn.0040cfb0
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x40eff9
push 0xf01ff
push 0x4210b0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x40eff2
lea ecx, [ebp - 0x4c]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40efe8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [ebp - 0x4c]
push edx
push esi
call ebx
test eax, eax
je 0x40efe8
jmp 0x40efd0
cmp dword [ebp - 0x48], 3
jne 0x40efe8
push 0x3e8
call edi
lea eax, [ebp - 0x4c]
push eax
push esi
call ebx
test eax, eax
jne 0x40efd0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
jmp 0x40eff3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x18], 0x10
jb 0x40f00b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041095e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410969
mov esp, ebp
pop ebp
ret
Function at 0x40f030
Capabilities:
Enumerate services
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x386c
call fcn.0041ac10
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x40f16c
push edi
push 0x42105c
call fcn.004116e7
add esp, 8
test eax, eax
jne 0x40f17f
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x3864]
push eax
lea ecx, [ebp - 0x3868]
push ecx
lea edx, [ebp - 0x386c]
push edx
push ebx
lea eax, [ebp - 0x1c24]
push eax
push 3
push 0x30
push esi
mov dword [ebp - 0x386c], ebx
mov dword [ebp - 0x3868], ebx
mov dword [ebp - 0x3864], ebx
call edi
lea ecx, [ebp - 0x3864]
push ecx
mov ecx, dword [ebp - 0x386c]
lea edx, [ebp - 0x3868]
push edx
lea eax, [ebp - 0x386c]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x1c24]
push edx
push 3
push 0x30
push esi
call edi
cmp dword [ebp - 0x3868], ebx
jbe 0x40f0fc
mov dword [ebp - 0x386c], ebx
mov dword [ebp - 0x3868], ebx
mov dword [ebp - 0x3864], ebx
lea eax, [ebp - 0x3864]
push eax
lea ecx, [ebp - 0x3868]
push ecx
lea edx, [ebp - 0x386c]
push edx
push ebx
lea eax, [ebp - 0x3844]
push eax
push 3
push 0xb
push esi
call edi
lea ecx, [ebp - 0x3864]
push ecx
mov ecx, dword [ebp - 0x386c]
lea edx, [ebp - 0x3868]
push edx
lea eax, [ebp - 0x386c]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x3844]
push edx
push 3
push 0xb
push esi
call edi
xor edi, edi
cmp dword [ebp - 0x3868], ebx
jbe 0x40f165
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc edi
cmp edi, dword [ebp - 0x3868]
jb 0x40f155
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00410969
mov esp, ebp
pop ebp
ret
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x40f165
lea eax, [ebp - 0x3860]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40f1f6
lea ecx, [ebp - 0x3864]
push ecx
push ebx
push ebx
push edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40f1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f1f6
mov edx, dword [ebp - 0x3864]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, dword [ebp - 0x3864]
lea eax, [ebp - 0x3864]
push eax
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40f1f6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
jmp 0x40f166