joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4959f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00468a90
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00468b10
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00468b10
lea ecx, [esi + 0xc]
call fcn.00484ca0
lea ecx, [esi + 0x10]
call fcn.00484ca0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046b340
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046b340
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046b340
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00484d15
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00484d15
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x469b88
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x495c18
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x469b98
call fcn.0046a0b0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x469c7b
cmp byte [edi], 0
je 0x469c7b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x469bbd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004688b0
test eax, eax
jne 0x469bdd
push 0x7c40b4
lea ecx, [esi + 0x38]
call fcn.00484e52
jmp 0x469c7b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00468900
test eax, eax
jne 0x469c0c
mov ecx, esi
call fcn.00468a00
push edi
add esi, 0x38
push 0x7c4090
push esi
call fcn.004820a9
add esp, 0xc
jmp 0x469c7b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0046a930
test eax, eax
je 0x469c74
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00469d50
test eax, eax
jne 0x469c90
push edi
lea eax, [esi + 0x38]
push 0x7c406c
push eax
call fcn.004820a9
add esp, 0xc
mov ecx, esi
call fcn.0046a0b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x469d38
mov ecx, dword [0x7c47d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004820a9
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004689b0
test eax, eax
jne 0x469cfa
push 0x7c4050
lea ecx, [esi + 0x38]
call fcn.00484e52
jmp 0x469d0a
push 0xfa
mov ecx, esi
call fcn.0046a930
test eax, eax
jne 0x469d27
mov ecx, esi
call fcn.0046a0b0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00484d15
jmp 0x469c7b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00484d15
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46be70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46bf13
test eax, eax
jbe 0x46bf13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46bf13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46bebe
xor esi, esi
jmp 0x46bec4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46beef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00463ef0
add esi, eax
push esi
mov ebx, esi
call fcn.00463ef0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46bed0
pop ebp
test edi, edi
pop edi
jne 0x46bf13
test ebx, ebx
je 0x46bf13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004746d0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46c055
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46c16d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46c16d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00486728
mov esi, eax
test esi, esi
je 0x46c16d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46c16d
mov ecx, esi
call fcn.0046bfc0
cmp edi, eax
jge 0x46c16d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46c0f3
mov dword [esp + 0x34], 1
jmp 0x46c14e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46c16d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046b590
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46f5f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46f63a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x46f669
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x46f6ab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4870cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x487103
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00485170
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00485148
jmp 0x48710f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4888ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48890c
call fcn.0048edbc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48890c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488903
xor eax, eax
jmp 0x488914
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048891a
pop edi
pop esi
pop ebx
ret 4

Function at 0x48f2ec
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48f31a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f338
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048f252
jmp 0x48f338
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48f338
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048f252
test edi, edi
mov eax, edi
jne 0x48f322
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401449
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
dec eax
test edx, edx
je 0x40148c
mov edx, dword [ecx + 0xc]
inc eax
push ebx
push edi
mov dword [ebp + 8], eax
mov eax, dword [ecx + 4]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
inc esi
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
dec dword [ebp + 8]
mov dword [ecx + 4], eax
jne 0x401469
pop edi
pop ebx
mov eax, dword [ecx + 4]
pop esi
pop ebp
ret 0xc

Function at 0x401e0a
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401f75
push 4
call fcn.004042b3
test eax, eax
pop ecx
je 0x401ee4
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
push dword [0x4a9d44]
call esi
test eax, eax
je 0x401e5d
push 1
pop eax
jmp 0x401ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401edd
cmp dword [ebp - 4], ebx
je 0x401edd
push dword [ebp - 4]
call fcn.0045c500
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x401e84
call fcn.004682ad
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4a9d44]
call esi
push eax
mov ecx, edi
call fcn.0040425a
mov esi, eax
cmp esi, ebx
je 0x401ed0
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.00401f9b
mov dword [edi + 0x38], ebx
push dword [edi + 0x14]
lea ecx, [edi + 0xc]
call fcn.0046b336
push dword [ebp - 0xc]
call fcn.0045c4b8
pop ecx
mov eax, esi
jmp 0x401ee6
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4029ef
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x477d90
call fcn.0045c348
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x10]
push edi
xor ebx, ebx
push eax
mov dword [esi + 0x28], ebx
call fcn.0040273b
mov eax, dword [eax]
xor ecx, ecx
cmp dword [eax - 8], ebx
sete cl
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0046b249
cmp edi, ebx
je 0x402ad3
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00402717
cmp dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
jne 0x402a63
mov ecx, esi
call fcn.00403b0c
test eax, eax
jne 0x402a63
cmp dword [esi + 0x28], ebx
lea ecx, [ebp - 0x10]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046b249
mov eax, esi
jmp 0x402b60
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x402a98
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x10]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0046879f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0046b336
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0046b249
mov ecx, esi
call fcn.00403bf8
push dword [ebp - 0x10]
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
and eax, 0xffff
or eax, 0x80070000
mov ecx, esi
neg edi
sbb edi, edi
and edi, eax
call fcn.00402b6f
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x28], edi
lea ecx, [ebp - 0x10]
jmp 0x402b53
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040273b
push 2
pop edi
push dword [0x485860]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
jne 0x402b00
lea ecx, [ebp - 0x14]
call fcn.0046b1d4
cmp dword [esi + 0x24], ebx
jne 0x402b2b
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
jne 0x402b2b
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
je 0x402b4c
push dword [ebp - 0x14]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046b249
xor eax, eax
cmp dword [esi + 0x28], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402def
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x477de8
call fcn.0045c348
sub esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 0xc]
mov dword [esi + 0x28], ebx
call fcn.0046b2b7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x402e3e
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040273b
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0046b336
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0046b249
push dword [0x485860]
push dword [ebp + 0xc]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
jne 0x402e5a
lea ecx, [ebp + 0xc]
call fcn.0046b1d4
cmp dword [esi + 0x24], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
jne 0x402e94
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
jne 0x402e94
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
je 0x402f4e
lea eax, [ebp - 0x10]
lea ecx, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push ebx
call fcn.0046b62d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [esi + 0x24]
call edi
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
push 0xffffffffffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
lea ecx, [ebp + 0xc]
call fcn.0046b67c
cmp dword [esi + 0x28], ebx
jl 0x402f4e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x402eea
cmp eax, dword [ebp - 0x18]
je 0x402eea
mov dword [esi + 0x28], 0x8007000d
cmp dword [esi + 0x28], ebx
jl 0x402f4e
cmp dword [ebp + 8], ebx
je 0x402f5a
cmp dword [ebp - 0x10], ebx
jbe 0x402f4e
push dword [ebp - 0x10]
call fcn.0046a42d
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
lea ecx, [ebp + 0xc]
push eax
push ebx
push ebx
call fcn.0046b62d
push eax
push dword [esi + 0x24]
call edi
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
push 0xffffffffffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
lea ecx, [ebp + 0xc]
call fcn.0046b67c
cmp dword [esi + 0x28], ebx
jge 0x402f4e
push dword [ebp - 0x14]
call fcn.0046a456
pop ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x402f5a
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
pop edi
cmp eax, ebx
je 0x402f67
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x402f73
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
cmp dword [esi + 0x28], ebx
lea ecx, [ebp + 0xc]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x402f9b
Capabilities:
Set registry value

Disassembly:
mov eax, 0x477e04
call fcn.0045c348
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [esi + 0x28], ebx
call fcn.0046b2b7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x402fe8
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040273b
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0046b336
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046b249
push dword [0x485860]
push dword [ebp + 8]
call fcn.0045c985
pop ecx
test eax, eax
pop ecx
jne 0x403004
lea ecx, [ebp + 8]
call fcn.0046b1d4
cmp dword [esi + 0x24], ebx
jne 0x403032
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push 1
mov ecx, esi
call fcn.004028ae
test eax, eax
jne 0x403032
push ebx
push ebx
push ebx
push ebx
push 2
push 1
mov ecx, esi
call fcn.004028ae
test eax, eax
je 0x40305d
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
xor eax, eax
cmp dword [esi + 0x28], ebx
lea ecx, [ebp + 8]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x403256
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x477e43
call fcn.0045c348
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x4a84c4]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x4032ac
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.004028ae
test eax, eax
jne 0x4032ac
push ebx
push ebx
push ebx
push ebx
push 8
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
je 0x40334b
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046b62d
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x403338
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046b67c
mov ecx, esi
call fcn.004031c6
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046b62d
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
jl 0x403342
push 0xffffffffffffffff
jmp 0x403343
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046b67c
cmp dword [esi + 0x28], ebx
jl 0x403365
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046afbe
mov dword [ebp - 0x18], 1
jmp 0x403379
mov ecx, dword [ebp + 8]
push 0x4a9d28
call fcn.0046b2b7
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403397
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x477e6f
call fcn.0045c348
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x4a84c4]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x4033ed
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.004028ae
test eax, eax
jne 0x4033ed
push ebx
push ebx
push ebx
push ebx
push 9
push ebx
mov ecx, esi
call fcn.004028ae
test eax, eax
je 0x4034aa
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046b62d
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x403479
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046b67c
mov ecx, esi
call fcn.00403226
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046b62d
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
jl 0x4034a1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b67c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x4034aa
push dword [0x485860]
lea ecx, [ebp - 0x10]
call fcn.0046b386
jmp 0x4034aa
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046b67c
cmp dword [esi + 0x28], ebx
jl 0x4034c4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0046afbe
mov dword [ebp - 0x18], 1
jmp 0x4034d8
mov ecx, dword [ebp + 8]
push 0x4a9d28
call fcn.0046b2b7
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x403e65
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x403e7b
call fcn.00403ef5
test eax, eax
je 0x403eed
cmp dword [ebp + 0x10], 0
lea edi, [esi + 0xc]
je 0x403e89
push dword [ebp + 0x10]
jmp 0x403e8c
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0046b386
push 0xf003f
call fcn.004042b3
test eax, eax
pop ecx
je 0x403eed
push dword [ebp + 0x34]
mov edi, dword [edi]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push dword [0x4a9d44]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
push ecx
mov ecx, esi
call fcn.0040425a
test eax, eax
je 0x403eed
push 1
pop eax
jmp 0x403eef
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x30
Function at 0x403f4e
Capabilities:
Start service

Disassembly:
push esi
mov esi, ecx
push 0x10
call fcn.00404276
test eax, eax
je 0x403f7e
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push eax
mov ecx, esi
call fcn.0040425a
test eax, eax
je 0x403f7e
push 1
pop eax
jmp 0x403f80
xor eax, eax
pop esi
ret 8

Function at 0x403f84
Capabilities:
Pause service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.00404276
test eax, eax
je 0x403fb6
lea eax, [esp + 4]
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040425a
test eax, eax
je 0x403fb6
push 1
pop eax
jmp 0x403fb8
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x403fbd
Capabilities:
Continue service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.00404276
test eax, eax
je 0x403fef
lea eax, [esp + 4]
push eax
push 3
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040425a
test eax, eax
je 0x403fef
push 1
pop eax
jmp 0x403ff1
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x403ff6
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x20
call fcn.00404276
test eax, eax
je 0x404028
lea eax, [esp + 4]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040425a
test eax, eax
je 0x404028
push 1
pop eax
jmp 0x40402a
xor eax, eax
pop esi
add esp, 0x1c
ret