joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460d3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
test dl, dl
je 0x460d51
add esp, 0xfffffff0
call fcn.00403f4c
mov word [ebp - 8], cx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x3c], 0
mov eax, dword [ebp - 4]
mov word [eax + 0x3e], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x2000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004087ac
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x460db8
mov ecx, 0x460ed8
mov dl, 1
mov eax, dword [0x407b58]
call fcn.0040c938
call fcn.004043b4
cmp dword [ebp - 0x9c], 2
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x460df6
mov eax, 8
call fcn.004026f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, 8
call fcn.004026f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
jmp 0x460e9a
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0x460ef8
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x460e2f
mov ecx, 0x460f14
mov dl, 1
mov eax, dword [0x407b58]
call fcn.0040c938
call fcn.004043b4
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x460f3c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
add eax, 0x38
push eax
push 0x20019
push 0
push 0x460f4c
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x460e9a
mov ecx, 0x460f68
mov dl, 1
mov eax, dword [0x407b58]
call fcn.0040c938
call fcn.004043b4
mov eax, dword [ebp - 4]
call fcn.00460a8c
mov dx, word [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046088c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x460ec6
call fcn.00403fa4
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4644d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x54]
mov edx, dword [ebp - 4]
imul word [edx + 0x70]
mov word [ebp - 6], ax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x20]
or eax, 0xcc0020
push eax
movzx eax, word [ebp - 6]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xb5]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb1]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x70]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb9]
push eax
movzx eax, word [ebp - 6]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.0045efcc
call fcn.0045cd24
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
inc word [eax + 0x54]
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x54]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x6e]
jbe 0x464678
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x10], 0
je 0x4645eb
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0xd5]
cmp eax, edx
ja 0x4645eb
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x46459e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 4], 0
jne 0x46459e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 5], 0
je 0x46459e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x54], 0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5a]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x5a], al
push 0x48fe98
call sub.kernel32.dll_QueryPerformanceCounter_1
push 0x48fe80
call sub.kernel32.dll_QueryPerformanceFrequency
mov eax, dword [0x48fe98]
mov edx, dword [0x48fe9c]
sub eax, dword [0x48fe88]
sbb edx, dword [0x48fe8c]
mov dword [0x48fe90], eax
mov dword [0x48fe94], edx
fild qword [0x48fe90]
fild qword [0x48fe80]
fdivp st(1)
fdivr dword [0x46467c]
fstp qword [0x48fea0]
wait
mov eax, dword [0x48fe98]
mov dword [0x48fe88], eax
mov eax, dword [0x48fe9c]
mov dword [0x48fe8c], eax
mov esp, ebp
pop ebp
ret
Function at 0x46484c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jb 0x464891
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x46486e
mov esp, ebp
pop ebp
ret
Function at 0x468b54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468f19
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x468ed7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x468ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468ee1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x468b14]
call fcn.00405df8
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.0040764c
cmp dword [ebp + 8], 0
jbe 0x468be4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
add eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040764c
xor eax, eax
push ebp
push 0x468c7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.0041d5c8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xd4], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jbe 0x468c5f
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x468c5f
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
movsx eax, word [eax + edx*2]
cdq
xor eax, edx
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd4]
call fcn.00419948
mov edx, dword [ebp - 4]
mov dword [edx + 0xd4], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x34]
jne 0x468c2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468c82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.0041d5d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468f20
lea eax, [ebp - 0x24]
mov edx, dword [0x468b34]
call fcn.00405e04
lea eax, [ebp - 0x20]
mov edx, dword [0x468b14]
call fcn.00405e04
lea eax, [ebp - 0x18]
mov edx, dword [0x468af4]
call fcn.00405e04
ret
Function at 0x46d1f4
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x110]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x104
push 0
push ecx
call fcn.0046b838
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ebx, eax
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0046b838
add esp, 0xc
test ebx, ebx
je 0x46d270
lea edx, [ebp - 0x110]
push edx
push 0x48bc63
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.0046d858
add esp, 0x10
test eax, eax
jge 0x46d274
xor eax, eax
jmp 0x46d279
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x46d3f5
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x214]
push ecx
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
push ebx
call fcn.0046b884
mov esi, eax
test esi, esi
jne 0x46d2bd
jmp 0x46d2af
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d405
test esi, esi
je 0x46d2d5
push esi
push ebx
push 0
lea edx, [ebp - 0x214]
push edx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x46d2d9
xor ecx, ecx
jmp 0x46d2de
mov ecx, 1
mov ebx, ecx
test ebx, ebx
je 0x46d3eb
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push edx
push 0x48bc73
push esi
call sub.version.dll_VerQueryValueA
mov ebx, eax
xor edx, edx
xor eax, eax
mov ecx, dword [ebp + 8]
dec ecx
je 0x46d312
dec ecx
je 0x46d31b
dec ecx
je 0x46d327
dec ecx
je 0x46d330
jmp 0x46d33c
mov edx, 5
xor eax, eax
jmp 0x46d33e
mov edx, 5
mov eax, 1
jmp 0x46d33e
mov edx, 6
xor eax, eax
jmp 0x46d33e
mov edx, 6
mov eax, 1
jmp 0x46d33e
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x46d3a3
test ebx, ebx
je 0x46d35d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jbe 0x46d361
xor ecx, ecx
jmp 0x46d366
mov ecx, 1
mov ebx, ecx
cmp eax, 0xffffffff
je 0x46d3eb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jne 0x46d3eb
test ebx, ebx
je 0x46d396
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 8]
and edx, 0xffff
cmp eax, edx
jbe 0x46d39a
xor eax, eax
jmp 0x46d39f
mov eax, 1
mov ebx, eax
jmp 0x46d3eb
test ebx, ebx
je 0x46d3bc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
je 0x46d3c0
xor edx, edx
jmp 0x46d3c5
mov edx, 1
mov ebx, edx
cmp eax, 0xffffffff
je 0x46d3eb
test ebx, ebx
je 0x46d3e0
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
and ecx, 0xffff
cmp eax, ecx
je 0x46d3e4
xor eax, eax
jmp 0x46d3e9
mov eax, 1
mov ebx, eax
test esi, esi
je 0x46d3f5
push esi
call fcn.0046b898
test ebx, ebx
jne 0x46d403
push 0x47e
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d4c4
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
test edi, edi
jne 0x46d4e7
xor eax, eax
jmp 0x46d610
cmp dword [ebp + 0xc], 0
jne 0x46d507
lea edx, [ebp - 4]
push edx
push 1
push 0x20008
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x46d526
lea ecx, [ebp - 4]
push ecx
push 0x20008
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x46d526
xor eax, eax
jmp 0x46d610
lea edx, [ebp - 8]
push edx
push 0
push 0
push 3
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x46d557
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x46d557
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
jmp 0x46d610
mov edx, dword [ebp - 8]
push edx
call fcn.0046b884
mov ebx, eax
test ebx, ebx
jne 0x46d58f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jne 0x46d58f
jmp 0x46d581
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d610
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 8]
push ecx
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x46d5ba
mov edx, dword [ebp - 4]
push edx
call sub.kernel32.dll_CloseHandle_1
push ebx
call fcn.0046b898
xor eax, eax
jmp 0x46d610
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x46d5ff
xor edi, edi
jmp 0x46d5f7
mov edx, edi
lea eax, [ebp - 0x10]
shl edx, 2
push 8
push eax
lea edx, [edx + edx*2]
add edx, ebx
add edx, 4
push edx
call fcn.0046b864
add esp, 0xc
test eax, eax
sete cl
and ecx, 1
inc edi
mov esi, ecx
test esi, esi
jne 0x46d5ff
cmp edi, dword [ebx]
jb 0x46d5d0
push ebx
call fcn.0046b898
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d618
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 2
cmp ebx, 0xffffffff
je 0x46d65b
cmp dword [0x48a284], 0
je 0x46d64b
call dword [0x48a284]
jmp 0x46d64d
xor eax, eax
cmp ebx, eax
je 0x46d65b
mov eax, 1
jmp 0x46d851
test edi, edi
jne 0x46d668
xor eax, eax
jmp 0x46d851
mov esi, edi
mov esi, dword [esi]
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 4]
push eax
push 0x10103
push 0
push 0x48a2d2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x46d6af
lea eax, [ebp - 4]
push eax
push 0x103
push 0
push 0x48a2d2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
cmp ebx, 5
jne 0x46d6c2
push 5
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d851
test ebx, ebx
jne 0x46d83e
xor edx, edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
push ecx
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x48a2bc
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
cmp ebx, 2
jne 0x46d707
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x46d738
test ebx, ebx
je 0x46d738
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x48bd30
call fcn.0046d1ec
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d851
cmp esi, 0xffffffff
je 0x46d7d4
cmp esi, 1
je 0x46d7d4
cmp dword [ebp - 0xc], 1
jne 0x46d7d4
xor ebx, ebx
test esi, esi
jne 0x46d781
push 0x48a2bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x46d781
call sub.kernel32.dll_GetLastError_1
push eax
push 0x48bd61
call fcn.0046d1ec
add esp, 8
test ebx, ebx
je 0x46d833
push 4
push edi
push 4
push 0
push 0x48a2bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x46d833
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x48bd91
call fcn.0046d1ec
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d851
cmp esi, 0xffffffff
jne 0x46d833
cmp dword [ebp - 0xc], 1
je 0x46d833
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov dword [ebp - 0x14], 1
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push 0x48a2bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x46d833
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x48bdc1
call fcn.0046d1ec
add esp, 8
push 0x18000065
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d851
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x46d84c
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x46d851
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e34c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
test dl, dl
je 0x46e35e
add esp, 0xfffffff0
call fcn.00403f4c
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404ea8
xor eax, eax
push ebp
push 0x46e424
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004190d0
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, dword [ebp - 0xc]
call fcn.00404a4c
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
call fcn.0042caec
cmp al, 6
jb 0x46e40e
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0xc
call fcn.004031cc
push 1
lea eax, [ebp - 0x2c]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [ebp - 0x18], 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0xff
push 4
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00404eb8
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e42b
lea eax, [ebp - 0xc]
call fcn.004049f8
ret

Function at 0x46f518
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 1], 1
mov eax, dword [0x48be94]
cmp byte [eax + 0x24], 0
je 0x46f5fd
mov eax, dword [0x48c23c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x46f558
mov eax, 0x46f60c
call fcn.0046edb0
mov byte [ebp - 1], 0
jmp 0x46f5fd
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [0x48c084]
mov dword [edx], eax
mov eax, dword [0x48c084]
cmp dword [eax], 0xffffffff
jne 0x46f585
mov eax, 0x46f624
call fcn.0046edb0
mov byte [ebp - 1], 0
jmp 0x46f5fd
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.004031cc
mov word [ebp - 0x14], 2
mov eax, dword [0x48be94]
mov ax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x48c084]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x46f5d9
mov eax, 0x46f644
call fcn.0046edb0
mov byte [ebp - 1], 0
jmp 0x46f5fd
push pe_nt_image_headers32
mov eax, dword [0x48c084]
mov eax, dword [eax]
push eax
call sub.wsock32.dll_listen
test eax, eax
je 0x46f5fd
mov eax, 0x46f664
call fcn.0046edb0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4711e8
Capabilities:
Create process on windows
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
xor eax, eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x471528
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov byte [ebp - 0x25], 0
push 0x104
lea eax, [ebp - 0x15d]
push eax
mov eax, dword [0x48d668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
mov dword [ebp - 8], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47125b
cmp dword [ebp - 8], 0
jge 0x471266
mov al, 1
call fcn.00471060
mov byte [ebp - 1], 0
mov eax, dword [0x48bf58]
cmp byte [eax], 0
je 0x47127f
lea eax, [ebp - 0x18]
mov edx, 0x471540
call fcn.00404a90
jmp 0x47128c
lea eax, [ebp - 0x18]
mov edx, 0x471560
call fcn.00404a90
mov eax, dword [ebp - 0x18]
call fcn.00404cb8
dec eax
test eax, eax
jl 0x4712c2
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x15d], al
inc dword [ebp - 0xc]
dec dword [ebp - 0x30]
jne 0x4712a4
lea edx, [ebp - 0x174]
mov eax, dword [0x48c1d0]
mov eax, dword [eax]
call fcn.00409014
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x1c]
mov ecx, 0x471574
call fcn.00404d04
Function at 0x471644
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x471856
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov byte [ebp - 0x1d], 0
xor eax, eax
push ebp
push 0x471805
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x14a]
push eax
mov eax, dword [0x48d668]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
mov dword [ebp - 8], eax
call fcn.0043f0fc
test al, al
jne 0x4716c3
push 0x424
call sub.kernel32.dll_SetLastError
xor eax, eax
call fcn.00471060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471830
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4716e0
cmp dword [ebp - 8], 0
jge 0x4716f8
xor eax, eax
call fcn.00471060
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471830
lea edx, [ebp - 0x16c]
mov eax, dword [0x48c1d0]
mov eax, dword [eax]
call fcn.00409014
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x18]
mov ecx, 0x471870
call fcn.00404d04
push 0xf01ff
lea eax, [ebp - 0x18]
call fcn.00404f10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47175e
xor eax, eax
call fcn.00471060
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471830
xor eax, eax
push ebp
push 0x471788
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471792
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x14], 0
jne 0x4717c1
xor eax, eax
call fcn.00471060
mov byte [ebp - 1], 0
cmp byte [ebp - 0x1d], 0
jne 0x4717fb
mov eax, dword [0x48bf58]
cmp byte [eax], 0
jne 0x4717fb
cmp dword [ebp - 0x14], 0
jle 0x4717fb
lea edx, [ebp - 0x1c]
mov eax, 0x47187c
call fcn.0043c278
test al, al
jne 0x4717fb
push 0x40
mov ecx, 0x47188c
mov dl, 1
mov eax, dword [0x440d64]
call fcn.00440de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47180f
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, dword [0x48bf58]
cmp byte [eax], 0
jne 0x471830
cmp byte [ebp - 0x1d], 0
jne 0x471830
xor eax, eax
call fcn.0043c370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47185d
lea eax, [ebp - 0x16c]
call fcn.004049f8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a1c
ret