joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a7a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea95
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52610c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
mov dword [ebp - 0x10], 0x52e280
mov dword [0x52e280], 0x50b1f8
mov dword [0x52e294], 0
mov dword [0x52e298], 0
mov dword [0x52e29c], 0
mov dword [0x52e2a0], 0
mov dword [0x52e2a4], 0
call fcn.004a0565
add esp, 4
mov dword [0x52e294], eax
test eax, eax
je 0x47a830
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [0x52e294]
mov dword [eax], 0x52e294
push 0x52e2a8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push 8
mov dword [0x52e290], eax
call fcn.004a0565
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
push 0
mov byte [ebp - 4], 2
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047ace0
push 0
push 0
push 1
mov dword [esi], eax
mov byte [ebp - 4], 1
push 0
mov dword [0x52e28c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x52e288], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
xor esi, esi
mov dword [0x52e284], eax
cmp dword [0x52e290], esi
jbe 0x47a91a
nop dword [eax]
push 0
push 0
push 0x52e280
push 0x47ad10
push 0
push 0
call fcn.004cb690
mov edi, dword [0x52e28c]
add esp, 0x18
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov ebx, dword [edi]
push eax
push dword [ebx + 4]
push ebx
call fcn.0047afa0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x47a933
lea ecx, [eax + 1]
inc esi
mov dword [edi + 4], ecx
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp esi, dword [0x52e290]
jb 0x47a8c0
mov eax, 0x52e280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0049cf3e
int3

Function at 0x47ba40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x47ba59
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47ba96
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x47ba92
nop word [eax + eax]
cmp esi, edx
jae 0x47ba96
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x47ba80
cmp esi, edx
jb 0x47ba9d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47c250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eec50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x52610c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x14]
call fcn.0047c570
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0047d1d0
add esp, 4
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c2ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0047dca0
mov edi, eax
add esp, 4
test edi, edi
jne 0x47c2d3
xor esi, esi
jmp 0x47c3c7
push edi
mov edx, 0x47e0e0
lea ecx, [ebp - 0x24]
call fcn.0047cf30
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
movups xmm0, xmmword [edi + 0x38]
push esi
movups xmmword [ebp - 0x34], xmm0
call fcn.0047c570
push 0
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x47c337
lea ecx, [edx - 1]
test ecx, ecx
js 0x47c3fa
cmp ecx, edx
jg 0x47c3fa
cmp word [eax + ecx*2], 0x5c
je 0x47c337
push 0x507d60
lea ecx, [ebp - 0x10]
call fcn.0047c520
xor esi, esi
cmp dword [ebp - 0x30], esi
jb 0x47c39c
mov ebx, dword [ebp - 0x34]
ja 0x47c350
test ebx, ebx
je 0x47c399
nop word [eax + eax]
mov edx, dword [ebp - 0x10]
mov ecx, edi
call fcn.0047be50
test eax, eax
je 0x47c40c
mov ecx, dword [ebp - 0x30]
add ebx, 0xffffffff
mov eax, esi
adc ecx, 0xffffffff
cdq
cmp edx, ecx
ja 0x47c387
jb 0x47c378
cmp eax, ebx
jae 0x47c387
mov ecx, edi
call fcn.0047e6c0
test eax, eax
jne 0x47c40c
inc esi
mov eax, esi
cdq
cmp edx, dword [ebp - 0x30]
jb 0x47c404
ja 0x47c399
mov ebx, dword [ebp - 0x34]
cmp eax, ebx
jb 0x47c350
or ebx, 0xffffffff
mov esi, 1
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c3bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
call fcn.0047cfc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47c3e6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0047b950
mov ebx, dword [ebp - 0x34]
jmp 0x47c350
xor esi, esi
or ebx, 0xffffffff
jmp 0x47c3a1
Function at 0x47f220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x47f2af
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004b93c0
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x47f27f
sub eax, esi
jmp 0x47f281
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x47f270
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x47f2a0
sub eax, esi
jmp 0x47f2a2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x47f291
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x47f3e3
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x47f2dc
xor eax, eax
jmp 0x47f32f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x47f2f9
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00483240
jmp 0x47f311
cmp eax, 2
jne 0x47f317
mov edx, dword [ebx]
test edx, edx
jne 0x47f308
xor eax, eax
jmp 0x47f314
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047fe10
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004b93c0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x47f357
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x47f36b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x47f230
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x47f3e3
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x47f3b3
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.004b9940
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x47f3e3
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.004b9940
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d5bcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d5a4c

Function at 0x4daef4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dabb4
Function at 0x401b03
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x401b0b
mov eax, esi
pop esi
ret
Function at 0x4026dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403910
test esi, esi
jne 0x402712
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039d4
jmp 0x402730
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025f0
mov edi, eax
test esi, esi
je 0x402730
cmp dword [ebx], 0
je 0x402730
dec esi
jmp 0x402719
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ce8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4030b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x406014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40314c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40312c
xor eax, eax
push ebp
push 0x403125
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403168
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40312c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x406014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x406014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403794
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x4037f5
cmp word [0x407208], 0xd7b2
jne 0x4037bd
cmp dword [0x407210], 0
jbe 0x4037bd
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40381c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406020], 0
jne 0x403811
push 0
push 0x406078
push 0x406080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404164
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4041ca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4041b4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041d1
lea eax, [ebp - 0x10]
call fcn.00403910
ret
Function at 0x413ea0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x401100
call fcn.004140ac
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x413ef3
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x413ef3
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x413f0b
cmp ecx, 0x20b
je 0x413ef8
mov dword [ebp - 0x1c], ebx
jmp 0x413f1f
cmp dword [eax + 0x84], 0xe
jbe 0x413ef3
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x413f19
cmp dword [eax + 0x74], 0xe
jbe 0x413ef3
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x41bb88], edi
mov dword [0x41bb8c], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41bb84]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41bb80]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41bb90], eax
call fcn.004140a8
cmp dword [0x417770], ebx
jne 0x413f7c
push fcn.004140a8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00414096
push 0x4010f8
push 0x4010f4
call sub.msvcrt.dll__initterm
mov eax, dword [0x41bb7c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41bb78]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x4010f0
push 0x4010ec
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x414007
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x413fe7
cmp cl, 0x22
jne 0x413fd8
cmp byte [eax], 0x22
jne 0x413ff0
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x413ffb
cmp cl, 0x20
jbe 0x413fec
test byte [ebp - 0x54], 1
je 0x414012
movzx ecx, word [ebp - 0x50]
jmp 0x414015
cmp byte [eax], 0x20
jbe 0x413ff0
inc eax
mov dword [ebp - 0x20], eax
jmp 0x414007
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00413211
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x414033
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x41406f
mov eax, esi
jmp 0x414083
call fcn.004140e7
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001039
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10017d88]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x618], edi
jne 0x100010d2
cmp dword [esi + 0x61c], edi
jne 0x100010d2
push dword [ebp + 8]
lea ebx, [esi + 0x208]
push 0x104
push ebx
call fcn.10002f0d
add esp, 0xc
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100010da
push edi
push edi
push 0x10013c90
push edi
push edi
push ebx
push 1
push 3
push 0x110
push 0xf01ff
lea eax, [esi + 0x410]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x100010cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x100010cd
mov dword [ebp - 4], eax
jmp 0x100010d5
mov dword [ebp - 4], edi
jmp 0x100010da
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x100010f2
mov dword [esi + 0x618], 1
cmp dword [ebp - 0xc], edi
je 0x100010f2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], edi
pop edi
pop esi
pop ebx
je 0x10001103
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x1000110a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x61c], ebx
je 0x1000112d
xor edi, edi
jmp 0x100011b1
push 0x32
pop edi
push 0x400f003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1000114c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100011ab
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10001144
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10001175
call esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100011a9
mov eax, dword [ebp - 0x24]
dec eax
je 0x10001126
sub eax, 3
je 0x10001126
mov eax, edi
dec edi
test eax, eax
jbe 0x100011a2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001175
mov edi, 0x5b4
jmp 0x100011be
call esi
mov edi, eax
cmp edi, ebx
jne 0x100011be
mov eax, dword [ebp + 8]
mov dword [eax + 0x61c], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 4], ebx
je 0x100011ce
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x100011d8
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100011e1
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp dword [esi + 0x618], edi
je 0x100012b3
cmp dword [esi + 0x61c], edi
je 0x100012b3
push 0x400f003f
push edi
push edi
mov dword [ebp - 4], 0x32
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10001227
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100012a4
push ebx
push 0x24
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x100012a3
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10001251
call edi
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10001291
mov eax, dword [ebp - 0x24]
dec eax
je 0x10001286
sub eax, 3
je 0x1000128a
mov eax, dword [ebp - 4]
dec dword [ebp - 4]
test eax, eax
jbe 0x1000127f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001251
mov edi, 0x5b4
jmp 0x10001295
xor edi, edi
jmp 0x10001295
mov edi, 0x41c
jmp 0x10001295
call edi
mov edi, eax
and dword [esi + 0x61c], 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
cmp dword [ebp - 8], 0
je 0x100012b3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
leave
ret

Function at 0x100012b8
Capabilities:
Delete service

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x10017d88]
push edi
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esi + 0x61c], ebp
je 0x100012d5
call fcn.100011e1
cmp dword [esi + 0x618], ebp
je 0x10001327
push 2
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, ebp
je 0x1000131f
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebp
jne 0x10001314
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x424
jne 0x10001327
xor ebp, ebp
jmp 0x10001327
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10001327
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and dword [esi + 0x61c], 0
and dword [esi + 0x618], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10001342
push edi
call esi
test ebx, ebx
je 0x10001349
push ebx
call esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x10002e55
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
push ebx
push 0x57
pop ebx
cmp eax, 0xffffffff
je 0x10002ea7
push esi
push 0x2010
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10002ea6
mov eax, 0x574b4644
cmp dword [esi], eax
jne 0x10002ea6
mov ecx, dword [ebp + 8]
dec ecx
je 0x10002ef4
dec ecx
je 0x10002ed5
dec ecx
je 0x10002eae
dec ecx
jne 0x10002ea6
cmp dword [edi], 4
jne 0x10002ef9
mov eax, dword [esi + 0x200c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 0x2008]
cmp dword [edi], eax
jl 0x10002ef9
push eax
lea eax, [esi + 0x1008]
push eax
push dword [ebp + 0xc]
call fcn.100031d0
mov eax, dword [esi + 0x2008]
add esp, 0xc
mov dword [edi], eax
jmp 0x10002ea4
mov eax, dword [esi + 0x1004]
cmp dword [edi], eax
jl 0x10002ef9
push eax
lea eax, [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.100031d0
mov eax, dword [esi + 0x1004]
jmp 0x10002ece
cmp dword [edi], 4
je 0x10002e9f
push 0x7a
pop ebx
jmp 0x10002ea6

Function at 0x10002efe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016040]
jne 0x10002f08
repz ret
jmp fcn.10003d42