joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ee430
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movsx eax, byte [ebp + 8]
cmp eax, 0x41
jne 0x5ee453
mov ecx, dword [ebp + 0xc]
and ecx, 1
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x42
jne 0x5ee46f
mov eax, dword [ebp + 0xc]
and eax, 2
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x43
jne 0x5ee48b
mov edx, dword [ebp + 0xc]
and edx, 4
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x44
jne 0x5ee4a7
mov ecx, dword [ebp + 0xc]
and ecx, 0x10
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x45
jne 0x5ee4c3
mov eax, dword [ebp + 0xc]
and eax, 0x20
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x46
jne 0x5ee4df
mov edx, dword [ebp + 0xc]
and edx, 0x40
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x47
jne 0x5ee4fe
mov ecx, dword [ebp + 0xc]
and ecx, 0x80
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x48
jne 0x5ee51c
mov eax, dword [ebp + 0xc]
and eax, 0x200
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x49
jne 0x5ee53b
mov edx, dword [ebp + 0xc]
and edx, 0x400
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x4a
jne 0x5ee55a
mov ecx, dword [ebp + 0xc]
and ecx, 0x800
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x4b
jne 0x5ee578
mov eax, dword [ebp + 0xc]
and eax, 0x1000
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4c
jne 0x5ee597
mov edx, dword [ebp + 0xc]
and edx, 0x2000
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x4d
jne 0x5ee5b6
mov ecx, dword [ebp + 0xc]
and ecx, 0x8000
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x4e
jne 0x5ee5d4
mov eax, dword [ebp + 0xc]
and eax, 0x10000
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x4f
jne 0x5ee5f3
mov edx, dword [ebp + 0xc]
and edx, 0x20000
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x50
jne 0x5ee612
mov ecx, dword [ebp + 0xc]
and ecx, 0x40000
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x51
jne 0x5ee630
mov eax, dword [ebp + 0xc]
and eax, 0x80000
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x52
jne 0x5ee64f
mov edx, dword [ebp + 0xc]
and edx, 0x100000
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x53
jne 0x5ee668
mov ecx, dword [ebp + 0xc]
and ecx, 0x400000
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x54
jne 0x5ee680
mov eax, dword [ebp + 0xc]
and eax, 0x800000
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x55
jne 0x5ee699
mov edx, dword [ebp + 0xc]
and edx, 0x2000000
setne al
jmp 0x5ee6e3
movsx eax, byte [ebp + 8]
cmp eax, 0x56
jne 0x5ee6b2
mov ecx, dword [ebp + 0xc]
and ecx, 0x20000000
setne al
jmp 0x5ee6e3
movsx edx, byte [ebp + 8]
cmp edx, 0x57
jne 0x5ee6ca
mov eax, dword [ebp + 0xc]
and eax, 0x40000000
setne al
jmp 0x5ee6e3
movsx ecx, byte [ebp + 8]
cmp ecx, 0x58
jne 0x5ee6e1
mov edx, dword [ebp + 0xc]
and edx, 0x80000000
setne al
jmp 0x5ee6e3
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x5f0d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x43c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x440]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x5f0d63
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jge 0x5f0dda
mov eax, dword [ebp - 8]
add eax, 1
movzx ecx, al
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
movzx eax, dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4 + 0x3c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x3c], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x14]
movzx edx, cl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 + 0x3c]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x5f0d5a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x43c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0x440], eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5f29b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x80
jbe 0x5f29ca
xor al, al
jmp 0x5f2b48
cmp dword [ebp + 0x10], 0
jne 0x5f29d7
mov dword [ebp + 0x10], 0x400
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x84
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0xc], 0x80
jae 0x5f2a5c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x83]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x84]
add edx, ecx
and edx, 0xff
mov dl, byte [edx + 0x6ca478]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x84], dl
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0x80
jb 0x5f2a10
mov ecx, dword [ebp + 0x10]
add ecx, 7
shr ecx, 3
mov dword [ebp + 0xc], ecx
mov edx, 0x80
sub edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
movzx esi, byte [eax + 0x84]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 8
div ecx
mov eax, 8
sub eax, edx
xor edx, edx
mov ecx, 8
div ecx
mov eax, 0xff
mov ecx, edx
sar eax, cl
and esi, eax
mov cl, byte [esi + 0x6ca478]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx + 0x84], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
test ecx, ecx
je 0x5f2b00
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + ecx + 0x84]
xor eax, ecx
mov dl, byte [eax + 0x6ca478]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [ebp - 1]
mov byte [eax + 0x84], cl
jmp 0x5f2abf
mov dword [ebp - 8], 0x3f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx*2 + 0x84]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + edx*2 + 0x85]
shl edx, 8
add ecx, edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [edx + eax*2 + 0x84], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
jne 0x5f2b07
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5f7510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5f752e
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x5f7552
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov eax, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0x6ca7c0]
mov dword [ebp - 8], eax
jmp 0x5f7525
mov ecx, dword [ebp - 8]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx + 3], cl
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 2], al
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], dl
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
xor eax, eax
jne 0x5f7552
mov esp, ebp
pop ebp
ret
Function at 0x606c9e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x70635c]
jne 0x606ca8
repz ret
jmp fcn.00607962
Function at 0x4099cf
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ebx, 0x1f40
lea eax, [ebp - 8]
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x20], 1
mov word [ebp - 0x1e], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x3e80
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], 0x10
mov word [ebp - 0x10], si
push eax
jne 0x409ab5
mov edi, dword [0x401604]
call edi
cmp eax, esi
je 0x409a5a
cmp eax, 0x20
jne 0x409a90
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 8
call edi
test eax, eax
jne 0x409a90
xor ebx, ebx
cmp dword [ebp + 8], esi
jbe 0x409a90
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call edi
cmp eax, 4
je 0x409a8d
cmp dword [ebp - 4], esi
je 0x409a82
push dword [ebp - 4]
call dword [fcn.00401600]
inc ebx
cmp ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
jb 0x409a61
jmp 0x409a9e
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], esi
je 0x409a9e
push dword [ebp - 4]
call dword [fcn.00401600]
cmp dword [ebp - 8], esi
je 0x409b3a
push dword [ebp - 8]
call dword [fcn.00401600]
jmp 0x409b3a
mov edi, dword [0x4015fc]
call edi
cmp eax, esi
je 0x409ae8
cmp eax, 0x20
jne 0x409b1e
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 8
call edi
test eax, eax
jne 0x409b1e
xor ebx, ebx
cmp dword [ebp + 8], esi
jbe 0x409b1e
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call edi
cmp eax, 4
je 0x409b1b
cmp dword [ebp - 4], esi
je 0x409b10
push dword [ebp - 4]
call dword [fcn.004015f8]
inc ebx
cmp ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
jb 0x409aef
jmp 0x409b2c
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], esi
je 0x409b2c
push dword [ebp - 4]
call dword [fcn.004015f8]
cmp dword [ebp - 8], esi
je 0x409b3a
push dword [ebp - 8]
call dword [fcn.004015f8]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40c4d2
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4566b4]
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x100007f
mov dword [ebp - 4], eax
jne 0x40c4f6
xor eax, eax
inc eax
jmp 0x40c52d
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0044db3e
test eax, eax
jne 0x40c51b
lea eax, [ebp - 0x108]
push eax
call fcn.0044db32
test eax, eax
jne 0x40c51f
xor eax, eax
jmp 0x40c52d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor ecx, ecx
cmp esi, dword [eax]
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0044d575
leave
ret 4
Function at 0x40ca4d
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0044db56
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40ca6f
mov eax, 0x81000102
jmp 0x40ca9d
push edi
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov word [ebp - 0xc], 2
mov word [ebp - 0xa], 4
call fcn.0040c975
pop edi
pop esi
leave
ret 4

Function at 0x40ebae
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4566b4]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x7f000001
sete bl
test bl, bl
mov dword [ebp - 4], eax
jne 0x40ec1d
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0044db3e
cmp eax, 0xffffffff
je 0x40ec1d
lea eax, [ebp - 0x108]
push eax
call fcn.0044db32
test eax, eax
je 0x40ec1d
cmp word [eax + 8], 2
jne 0x40ec1d
cmp word [eax + 0xa], 4
jne 0x40ec1d
mov eax, dword [eax + 0xc]
jmp 0x40ec13
cmp dword [ecx], esi
je 0x40ec1b
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
jne 0x40ec0c
jmp 0x40ec1d
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
pop ebx
call fcn.0044d575
leave
ret 4

Function at 0x40ed86
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
mov ebx, 0x80004005
jne 0x40eda2
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
jmp 0x40ee17
push dword [ebp + 0xc]
push esi
call fcn.0040ecfe
mov ebx, eax
test ebx, ebx
je 0x40ee17
push edi
push esi
call dword [fcn.00401294]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x40edce
mov ebx, 0x8007000e
jmp 0x40ee16
push esi
push edi
call dword [fcn.004012a8]
push edi
call dword [0x401544]
push edi
push edi
call dword [0x401548]
push edi
call fcn.0044db32
test eax, eax
je 0x40ee0f
cmp word [eax + 8], 2
jne 0x40ee0f
cmp word [eax + 0xa], 4
jne 0x40ee0f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40ee0f
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ebx, ebx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x41161f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call fcn.0041dab2
push eax
call dword [fcn.00401380]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret 4
Function at 0x412705
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x4565fc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41275d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40266c
push dword [ebp - 4]
call esi
push 0x402664
push dword [ebp - 4]
call esi
push 0x402658
push dword [ebp - 4]
call esi
push 0x402648
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x412ae5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x1000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x412b15
mov eax, 0x8007000e
jmp 0x412ca1
push eax
mov ecx, ebx
call fcn.00412992
test eax, eax
jge 0x412b28
mov esi, eax
jmp 0x412c91
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.00412807
test eax, eax
jne 0x412b42
mov esi, 0x80020009
jmp 0x412c91
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 8], esi
jne 0x412b59
mov esi, 0x8007000e
jmp 0x412c91
mov ecx, ebx
call fcn.00412969
push esi
mov ecx, ebx
call fcn.00412992
test eax, eax
jl 0x412c85
movzx eax, word [ebp - 2]
sub eax, 8
je 0x412c6a
sub eax, 9
je 0x412bd0
dec eax
dec eax
jne 0x412c76
push esi
call dword [fcn.00401294]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov eax, esp
push esi
push dword [ebp - 8]
push eax
call fcn.00411bbc
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
call dword [0x401368]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00411fe7
jmp 0x412c76
push esi
call dword [fcn.00401294]
test al, 1
mov dword [ebp - 0xc], eax
je 0x412be8
mov esi, 0x80004005
jmp 0x412c87
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
mov dword [ebp - 4], esp
je 0x412bde
cmp dword [ebp - 0xc], edi
jle 0x412c51
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 8]
movsx eax, byte [edi + eax]
push eax
call fcn.00412899
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x412c1e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x412c76
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.00412102
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.00412992
test eax, eax
jge 0x412c9f
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
jmp 0x412ca1
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413032
Capabilities:
Continue service
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
xor esi, esi
push esi
push 1
push 0x80000002
push 0x4027d4
lea ecx, [ebp - 0x1c]
call fcn.0044dbd9
push esi
push 0x4027d0
lea ecx, [ebp - 0x1c]
call fcn.0044dd85
test eax, eax
jne 0x413069
lea ecx, [ebp - 0x1c]
jmp 0x413075
call fcn.00411d9f
test al, al
lea ecx, [ebp - 0x1c]
je 0x41307c
call fcn.0044df2e
jmp 0x4130f3
push ebx
push esi
push 0x4027cc
call fcn.0044dd85
cmp dword [0x456910], 2
mov ebx, eax
jne 0x4130ea
push edi
push 0xf003f
push 0x4027bc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
push 0x4027b4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
je 0x4130e9
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x34], 1
jne 0x4130d8
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x4130e9
cmp ebx, esi
je 0x4130e9
lea eax, [ebp - 0x38]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0044df2e
pop ebx
pop esi
leave
ret

Function at 0x413fff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4566b4]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], esi
call fcn.00411eac
cmp eax, esi
jne 0x4140a0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x414057
lea eax, [ebp - 0x104]
push eax
call fcn.00413fff
cmp eax, esi
jne 0x41409f
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x108]
je 0x414047
call fcn.00411e39
push dword [ebp - 0x110]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x108]
mov esi, eax
call fcn.00411e39
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.0044d575
leave
ret 4
Function at 0x4141d9
Capabilities:
Pause service
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
inc esi
push 0x456900
mov dword [ebp - 4], esi
mov dword [0x456900], 0x94
call dword [0x401188]
test eax, eax
je 0x4143b4
cmp dword [0x456910], 2
push ebx
push edi
jne 0x4142e6
push 0xf003f
push 0x4027bc
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 8], eax
je 0x4143af
push 0xf01ff
push 0x4027b4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [fcn.004012c0]
test ebx, ebx
je 0x4142d8
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
test eax, eax
je 0x4142d1
cmp dword [ebp - 0x24], esi
je 0x4142d1
cmp dword [ebp - 0x24], 7
je 0x4142d1
test byte [ebp - 0x20], 4
je 0x41429b
mov esi, dword [0x4567b8]
push 0
push 0x412e70
call dword [fcn.0040155c]
push eax
push 0xfa
push esi
call dword [fcn.004015bc]
test eax, eax
mov dword [ebp - 4], eax
je 0x4142d1
lea eax, [ebp - 0x28]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
cmp dword [ebp - 0x24], 7
je 0x4142c8
push 0x3e8
call dword [0x4012a4]
inc esi
cmp esi, 0x1e
jl 0x4142aa
cmp esi, 0x1e
jne 0x4142d1
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4143af
mov edi, dword [0x401184]
push 0x402b54
push 0
mov ebx, 0x1f0003
push ebx
call edi
push 0x402b48
push 0
push ebx
mov dword [ebp - 8], eax
call edi
mov esi, eax
call dword [fcn.004012c0]
cmp dword [ebp - 8], 0
je 0x4143af
test esi, esi
je 0x4143af
push esi
mov esi, dword [0x4012b8]
call esi
push 0x402b3c
push 0
push ebx
call edi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x41436e
mov eax, dword [0x4567b8]
push 0
push 0x412e70
mov dword [ebp - 4], eax
call dword [fcn.0040155c]
push eax
push 0xfa
push dword [ebp - 4]
call dword [fcn.004015bc]
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0
je 0x4143af
push dword [ebp - 8]
call dword [0x4012b4]
push dword [ebp - 8]
call esi
and dword [ebp - 8], 0
push 0x402b48
push 0
push ebx
call edi
test eax, eax
je 0x4143a5
push eax
call esi
push 0x3e8
call dword [0x4012a4]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1e
jl 0x414380
cmp dword [ebp - 8], 0x1e
jne 0x4143af
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41789a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff88
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x4178c4
push 0
push esi
call dword [fcn.0040154c]
xor eax, eax
pop esi
ret 8