joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4609b4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x4609cc
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4609c5
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x460a67
test esi, esi
jle 0x4609fe
mov ecx, 0x460b10
mov dl, 1
mov eax, dword [0x4080c4]
call fcn.0040cc90
call fcn.00404468
jmp 0x460a5d
cmp word [ebx + 0x10242], 0
jne 0x460a20
mov ecx, 0x460b10
mov dl, 1
mov eax, dword [0x4080c4]
call fcn.0040cc90
call fcn.00404468
jmp 0x460a5d
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0x10244]
call dword [ebx + 0x10240]
cmp byte [ebp - 9], 0
jne 0x460a5c
mov ecx, 0x460b10
mov dl, 1
mov eax, dword [0x4080c4]
call fcn.0040cc90
call fcn.00404468
jmp 0x460a5d
inc esi
cmp dword [ebp + 8], 0
je 0x4609e2
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.00460850
cmp dword [ebx + 0x10044], 0
jne 0x460a94
mov ecx, 0x460b28
mov dl, 1
mov eax, dword [0x4600d0]
call fcn.0040cc90
call fcn.00404468
mov ecx, 0x460b40
mov dl, 2
mov eax, ebx
call fcn.00460d04
mov word [ebx + 0x10040], 2
mov ax, word [ebx + 0x10038]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x10042], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x10040]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x1022a], 0
je 0x460afa
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x460df8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460ecc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x10030], eax
cmp word [ebx + 0x10222], 0
je 0x460eb6
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x460ee0
call fcn.0040a2e8
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x10030]
mov edx, ebx
mov eax, dword [ebx + 0x10224]
call dword [ebx + 0x10220]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460ed3
lea eax, [ebp - 8]
call fcn.00404acc
ret
Function at 0x4610cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404f7c
xor eax, eax
push ebp
push 0x4611f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10034]
mov edx, dword [ebp - 4]
call fcn.00404b20
mov dword [ebx + 0x10224], esi
mov dword [ebx + 0x10220], 0x46103c
mov edx, 0xfa0
mov eax, ebx
call fcn.004606e0
mov eax, dword [ebx + 0x1003c]
mov dword [ebx + 0x10038], eax
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x1003c]
mov dword [eax], edx
push 4
lea edx, [ebp - 8]
mov ecx, 3
mov eax, ebx
call fcn.004609b4
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x461161
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457244
cmp dword [ebx + 0xc], 0
jne 0x4611dd
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 0x32
jb 0x461155
jmp 0x4611dd
mov edx, dword [edi]
mov eax, ebx
call fcn.004606e0
inc dword [edi]
cmp dword [edi], 0xffff
jne 0x46118e
mov dword [edi], 0xfa0
mov eax, dword [ebx + 0x1003c]
mov dword [ebx + 0x10038], eax
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x1003c]
mov dword [eax], edx
push 4
lea edx, [ebp - 8]
mov ecx, 3
mov eax, ebx
call fcn.004609b4
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x4611cb
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457244
cmp dword [ebx + 0xc], 0
jne 0x4611dd
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 0x32
jb 0x4611bf
cmp dword [ebx + 0xc], 0
je 0x461175
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461200
lea eax, [ebp - 4]
call fcn.00404acc
ret
Function at 0x472b50
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
mov ecx, 0x472cac
mov dl, 1
mov eax, dword [0x4724e0]
call fcn.00472648
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x472c8c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x18
call fcn.00403414
mov dword [ebp - 0x1c], 0x18
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 6
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
cmp eax, 0xc0000022
jne 0x472c05
lea eax, [ebp - 0x1c]
push eax
push 0x60000
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x472be6
mov eax, dword [0x4a7ac8]
call fcn.00472a48
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x1c]
push eax
push 6
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x472c6f
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xac], 5
jne 0x472c53
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x472c39
mov esi, 0x30000
jmp 0x472c53
cmp eax, 1
jne 0x472c45
mov esi, 0x39000
jmp 0x472c53
xor eax, eax
mov dword [0x4a7ac8], eax
call fcn.00404514
jmp 0x472c99
push 0x1000
push esi
push 0
push 6
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4a7acc], eax
jmp 0x472c76
xor eax, eax
mov dword [0x4a7ac8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472c93
mov eax, dword [ebp - 4]
call fcn.00403cdc
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472cc4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov ebx, edx
cmp ebx, 0x80000000
jb 0x472ce3
cmp ebx, 0xa0000000
jae 0x472ce3
sub ebx, 0x80000000
mov eax, ebx
pop esi
pop ebx
ret
mov edx, ebx
shr edx, 0x16
mov esi, dword [eax + edx*4]
test esi, 1
je 0x472d5f
mov eax, esi
and eax, 0x80
test eax, eax
je 0x472d10
and esi, 0xffc00000
and ebx, 0x3fffff
add esi, ebx
mov ebx, esi
jmp 0x472d64
push 0x1000
and esi, 0xfffff000
push esi
push 0
push 4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov edx, esi
mov eax, edx
mov ecx, ebx
and ecx, 0x3ff000
shr ecx, 0xc
mov eax, dword [eax + ecx*4]
test al, 1
je 0x472d5a
and eax, 0xfffff000
and ebx, 0xfff
add eax, ebx
mov ebx, eax
push edx
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x472d64
xor eax, eax
pop esi
pop ebx
ret
xor eax, eax
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x472d6c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x472ddf
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.00472cc4
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x472dc0
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472de9
and ebx, 0xfff
shr ebx, 2
mov ebx, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472de9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x472df4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor edx, edx
push ebp
push 0x472e6d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.00472cc4
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 6
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x472e4a
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e77
and ebx, 0xfff
shr ebx, 2
mov dword [eax + ebx*4], esi
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e77
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x472e80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x472f81
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x84], 2
jne 0x472f77
call fcn.00472b50
test eax, eax
jne 0x472ed3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472f8b
mov eax, 0xffdff124
call fcn.00472d6c
add eax, 0x44
call fcn.00472d6c
mov ebx, eax
test ebx, ebx
je 0x472f77
cmp dword [ebp - 0x90], 5
jne 0x472f1f
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x472f0e
mov esi, 0xa0
mov edi, 0xa4
jmp 0x472f29
cmp eax, 1
jne 0x472f29
mov esi, 0x88
mov edi, 0x8c
jmp 0x472f29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472f8b
lea eax, [esi + ebx]
call fcn.00472d6c
mov esi, eax
test esi, esi
jne 0x472f41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472f8b
lea eax, [edi + ebx]
call fcn.00472d6c
mov ebx, eax
test ebx, ebx
jne 0x472f59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472f8b
lea eax, [esi + 4]
mov edx, ebx
call fcn.00472df4
mov edx, esi
mov eax, ebx
call fcn.00472df4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472f8b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47303c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x473068
mov eax, dword [ebp - 4]
call fcn.00404f8c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x47306d
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x473158
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4731cf
cmp dword [ebp - 8], 0
je 0x4731c8
cmp dword [ebp - 0xc], 0
jbe 0x4731c8
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4731bf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x4731b6
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4731d6
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x4731d6
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4731d6
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4731d6
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x475f40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 1
jne 0x475f6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x475f6d
mov eax, dword [ebp - 4]
mov dword [eax + 4], 2
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 2
sete al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x476244
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 1
jb 0x476266
je 0x476371
jmp 0x476381
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00475e84
test eax, eax
je 0x476381
xor eax, eax
push ebp
push 0x47636a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
je 0x476354
mov eax, dword [ebp - 4]
mov dword [eax + 4], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
xor edx, edx
call fcn.004750c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.004750c0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
xor edx, edx
call fcn.004750c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor edx, edx
call fcn.004750c0
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x475f88
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
or edx, 0xffffffff
call fcn.004750c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x476354
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
call fcn.004750f0
test eax, eax
jne 0x476354
xor ecx, ecx
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.004763c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476381
mov eax, dword [ebp - 4]
call fcn.00475f28
ret
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
call fcn.00475f40
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
setne al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4763a5
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x48079c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f7c
xor eax, eax
push ebp
push 0x48081a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404f8c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4807e5
mov eax, dword [ebx + 4]
call fcn.00404f8c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480821
lea eax, [ebp - 4]
call fcn.00404acc
ret
Function at 0x4817ec
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481989
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402ccc
cmp word [ebx + 0xa2], 0
je 0x481835
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x481849
lea esi, [ebp - 8]
jmp 0x48184b
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x481858
xor edi, edi
jmp 0x481865
mov eax, dword [ebx + 0x80]
call fcn.00404f8c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404f8c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00480f54
mov eax, dword [ebp - 0x14]
call fcn.00404f8c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404f8c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404f8c
push eax
mov eax, ebx
call fcn.00481088
push eax
mov eax, ebx
call fcn.0048105c
push eax
mov eax, ebx
call fcn.00481010
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00480e20
mov eax, dword [ebp - 0x18]
call fcn.00404f8c
push eax
mov eax, dword [ebx + 8]
call fcn.00404f8c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x4818ee
call fcn.0040e398
xor edx, edx
push ebp
push 0x481967
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x48192c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x481922
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48196e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x481998
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4819c4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404f8c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4819e9
call fcn.0040e398
xor eax, eax
push ebp
push 0x481a20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x481a09
call fcn.0040e398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481a27
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4858c4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4858f2
mov eax, ebx
call fcn.00486378
cmp dword [ebx + 0x40], 0
je 0x4858eb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x485963
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x485955
cmp dword [ebx + 8], 0
je 0x485914
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x485926
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x485955
cmp dword [ebx + 8], 0
je 0x485907
cmp eax, 3
je 0x485939
dec eax
jne 0x485907
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x485907
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x485907
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x485981
cmp dword [ebx + 0x14], 0xcc
je 0x485981
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048598c
pop ebx
ret
Function at 0x4975bc
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x49774a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x497728
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 4]
push eax
push edx
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
je 0x497609
call fcn.00404514
jmp 0x49772f
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
call fcn.00402894
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x49766d
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.004028b4
mov eax, dword [ebp - 0xc]
call fcn.00402894
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4976e7
test eax, eax
je 0x49767d
call fcn.0040cc70
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], 0
jbe 0x49761b
cmp dword [ebx + 8], 3
jne 0x4976cd
cmp dword [ebx + 4], 1
jne 0x4976cd
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4976cd
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00409df8
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x40]
call fcn.00404b20
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x18]
mov edx, 0x497760
call fcn.00404dd8
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4a5860]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, ebx
mov eax, esi
call fcn.004975bc
add ebx, 0x20
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
ja 0x497686
jmp 0x49761b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49772f
xor eax, eax
push ebp
push 0x49771d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
mov eax, dword [ebp - 0x10]
call fcn.004028b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497727
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497751
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404af0
ret