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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b1c
xor eax, eax
push ebp
push 0x473cd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x473cec
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00474bac
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41cf84]
call fcn.00422d34
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x473c64
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x473c1f
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x473ba3
call fcn.004037a4
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x473c1f
cmp eax, 0xffffffff
jle 0x473bf0
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x1008c], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x473bff
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100cc]
call dword [esi + 0x100c8]
jmp 0x473bff
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00474ae0
mov eax, dword [0x4fc81c]
mov eax, dword [eax]
call fcn.00470df4
test ebx, ebx
je 0x473c1f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x473b8f
mov eax, dword [ebp - 0xc]
call fcn.00422740
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.00422784
cmp edx, dword [esp + 4]
jne 0x473c3a
cmp eax, dword [esp]
pop edx
pop eax
je 0x473c4e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x473b66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473c6b
mov eax, dword [ebp - 0xc]
call fcn.0040386c
ret
Function at 0x473d14
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b1c
xor eax, eax
push ebp
push 0x473eea
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x473f00
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00474bac
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.0047443c
xor eax, eax
push ebp
push 0x473ec5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41cf84]
call fcn.00422d34
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473e5d
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x473e37
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x473dfb
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004229e4
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x473df3
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100c4]
call dword [esi + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.0047443c
cmp ebx, 0xffffffff
jne 0x473e27
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], esi
cmp esi, 0x2749
je 0x473e47
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00474ae0
test ebx, ebx
je 0x473e47
mov eax, dword [0x4fc81c]
mov eax, dword [eax]
call fcn.00470df4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x473d97
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473e64
mov eax, dword [ebp - 0xc]
call fcn.0040386c
ret
Function at 0x473f28
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4740fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x474114
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00474bac
mov eax, esi
call fcn.0040467c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.0047443c
xor eax, eax
push ebp
push 0x4740e0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x474059
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x47407f
cmp ebx, 1
jle 0x474023
mov eax, dword [esi]
call fcn.00404934
mov edi, eax
lea edx, [edi + ebx]
mov eax, esi
call fcn.00404cb8
mov eax, esi
call fcn.00404b84
inc edi
dec edi
test eax, eax
je 0x473fda
cmp edi, dword [eax - 4]
jb 0x473fdf
call fcn.004037a4
inc edi
lea edx, [eax + edi - 1]
mov eax, dword [ebp - 4]
add eax, 0x30
mov ecx, ebx
call fcn.004029f0
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x474019
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.0047443c
jmp 0x47404d
inc ebx
jne 0x47404d
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x47407f
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00474ae0
mov eax, dword [0x4fc81c]
mov eax, dword [eax]
call fcn.00470df4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x47407f
cmp dword [ebp - 8], 0xffffffff
je 0x473f88
mov eax, dword [esi]
call fcn.00404934
cmp eax, dword [ebp - 8]
jl 0x473f88
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x4740ca
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x47412c
mov dl, 1
mov eax, dword [0x472a88]
call fcn.0040d494
call fcn.00404038
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x4740ca
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4740e7
mov eax, dword [ebp - 4]
call fcn.00474494
ret
Function at 0x4749e8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x474ab4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x474ac8
mov dl, 4
mov eax, ebx
call fcn.00474bac
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x474a9e
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x474a90
test byte [ebx + 0x1c], 8
jne 0x474a4d
cmp word [ebx + 0x10052], 0
je 0x474a4d
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x474a9e
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x474a70
call fcn.004037a4
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x474a9e
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.00474ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474abb
lea eax, [ebp - 4]
call fcn.0040467c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x474c90
mov dl, 8
mov eax, ebx
call fcn.00474bac
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x474c82
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4c0798
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x41bd98]
call fcn.004050ac
xor eax, eax
push ebp
push 0x4c08eb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fb370], 0
jne 0x4c07ee
mov ecx, dword [0x4fc378]
mov dl, 1
mov eax, dword [0x407e7c]
call fcn.0040d56c
call fcn.00404038
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.0040311c
mov eax, dword [ebp - 4]
call fcn.00404efc
mov dword [ebp - 0x2c], eax
mov esi, 0x4c08fc
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.00406554
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.00404f0c
test eax, eax
jle 0x4c0889
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4c0880
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.004048fc
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x50]
mov ecx, 0x10
call fcn.004048e4
mov eax, dword [ebp - 0x58]
pop edx
call fcn.00408db0
test eax, eax
jne 0x4c0880
mov dword [ebp - 0x10], 0x15
jmp 0x4c0890
mov dword [ebp - 0x10], 0x10
jmp 0x4c0890
mov dword [ebp - 0x10], 0x15
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x4fb370]
call fcn.004c06c8
mov eax, dword [ebp - 0x18]
call fcn.004c06c8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.0040656c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c08f2
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004046a0
lea eax, [ebp - 0x20]
mov edx, dword [0x41bd98]
call fcn.0040517c
ret

Function at 0x4d1cdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d1d63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.00404cb8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b2c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404934
test eax, eax
jns 0x4d1d23
call fcn.004037a4
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jns 0x4d1d32
call fcn.004037a4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404cb8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004d1938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1d6a
lea eax, [ebp - 0xc]
call fcn.0040467c
ret
Function at 0x4e4dc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e4e31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004e4d9c
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004d0f74
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.004d0a84
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4e38
lea eax, [ebp - 0x14]
call fcn.0040467c
ret
Function at 0x4eada0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x4eadbf
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4eafb2
xor dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc], 8
jb 0x4eaf62
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eade7
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eae17
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eae47
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eae77
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eaea7
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eaed7
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eaf07
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eaf37
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp - 0xc], 8
jae 0x4eaf58
call fcn.004037ac
cmp dword [ebp - 0xc], 8
jae 0x4eadcd
cmp dword [ebp - 0xc], 0
je 0x4eafa9
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0xff
jbe 0x4eaf82
call fcn.004037a4
mov eax, dword [eax*4 + 0x4fbcc4]
mov edx, dword [ebp - 4]
shr edx, 8
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp - 0xc], 1
jae 0x4eafa3
call fcn.004037ac
cmp dword [ebp - 0xc], 0
jne 0x4eaf68
mov eax, dword [ebp - 4]
xor eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4f723c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f733f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x14]
mov eax, dword [0x4fc81c]
mov eax, dword [eax]
call fcn.00471698
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409b88
mov eax, 0x4f7358
call fcn.004f154c
mov edx, dword [ebp - 8]
mov eax, 0x4f736c
call fcn.00408cb0
test al, al
je 0x4f7324
mov byte [ebp - 9], 1
lea eax, [ebp - 0x18]
mov ecx, 0x4f7358
mov edx, dword [ebp - 0x10]
call fcn.00404980
mov edx, dword [ebp - 0x18]
mov eax, dword [0x50a5c8]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [0x50a5c8]
call fcn.0040386c
mov eax, dword [0x50a5cc]
call fcn.0040386c
mov eax, dword [0x50a5c4]
call fcn.0040386c
mov eax, dword [ebp - 4]
add eax, 0x364
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x360]
call fcn.004046d0
mov eax, dword [ebp - 4]
call fcn.004f7b28
push 1
push 0
push 0
push 0x4f737c
push 0x4f738c
mov eax, dword [ebp - 4]
call fcn.004526b0
push eax
call sub.shell32.dll_ShellExecuteA
call fcn.004044e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7346
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004046a0
ret
Function at 0x401515
Capabilities:
Start service

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
mov ebp, str.Main
push str.StartService___s_
push ebp
call fcn.00401b17
add esp, 0xc
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor eax, eax
test edi, edi
setne al
mov esi, eax
test esi, esi
je 0x401569
push edi
call fcn.004015e8
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x401580
push str.Service_Control_Manager_is_locked.
push ebp
call fcn.00401935
pop ecx
pop ecx
jmp 0x4015d4
push str.OpenSCManager
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.00401b2f
add esp, 0xc
jmp 0x4015d4
push 0x10
push dword [esp + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
mov esi, eax
test esi, esi
jne 0x4015a3
push str.OpenService
jmp 0x4015b9
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
test esi, esi
jne 0x4015c9
push str.StartService
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.00401b2f
add esp, 0xc
test ebx, ebx
je 0x4015d4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4015df
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40194d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e0
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push str._04d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x50]
push 0x40
push eax
call edi
xor ebx, ebx
add esp, 0x24
cmp dword [ebp + 0xc], ebx
sete al
dec eax
and al, 0xfc
add eax, 0x49
cmp dword [ebp + 0x14], ebx
mov byte [ebp + 0xf], al
jne 0x4019c4
push 0x400
lea eax, [ebp - 0x5e0]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4019df
push dword [ebp + 0x14]
lea eax, [ebp - 0x5e0]
push dword [ebp + 0x10]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
cmp dword [0x40663c], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x401a74
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 8]
movsx eax, byte [ebp + 0xf]
push dword [0x406640]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s_t_c_t_s_t_s_t_d_t_s_r_n
lea eax, [ebp - 0x9e0]
push 0x400
push eax
call edi
add esp, 0x24
push 0x64
push dword [0x406638]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
push ebx
push ebx
push dword [0x40663c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0x14]
push ebx
push eax
lea eax, [ebp - 0x9e0]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x9e0]
push eax
push dword [0x40663c]
call esi
push dword [0x406638]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x401b12
lea eax, [ebp - 0x5e0]
push eax
push dword [ebp + 8]
movsx eax, byte [ebp + 0xf]
push dword [0x406640]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__c__s___10s__s
lea eax, [ebp - 0x1e0]
push 0x190
push eax
call edi
inc dword [0x406648]
lea eax, [ebp - 0x1e0]
push eax
mov byte [ebp - 0x51], bl
call sub.MSVCRT.dll_strlen
add esp, 0x24
inc eax
mov dword [0x406654], eax
lea eax, [ebp + 0x10]
push ebx
push eax
push 0x10
push 0x406648
push dword [ebp + 0x14]
call esi
lea eax, [ebp + 0x10]
push ebx
push eax
lea eax, [ebp - 0x1e0]
push dword [0x406654]
push eax
push dword [ebp + 0x14]
call esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bf2
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [ebp + 0xc]
push str.MCAFEE_FRAMEWORK_LOG_MUTEX
push 0
push 0
mov dword [0x406640], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x406638], eax
je 0x401d41
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, str._LOGDIR
push esi
push eax
call ebx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x401c71
mov edi, 0x104
push edi
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
mov esi, 0x4071dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4066f8
push esi
call ebx
pop ecx
test eax, eax
pop ecx
je 0x401cba
and byte [eax], 0
jmp 0x401cba
lea eax, [ebp - 0x118]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x21c]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x21c]
push str.NAILogs
push eax
push str._s_s
mov esi, 0x4071dc
push edi
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x320]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x320]
push 0
push 0x80
push 4
push dword [ebp + 0x10]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x4071d8
mov dword [0x40663c], eax
push dword [ebp + 8]
call fcn.00401b17
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.START___s_
push dword [ebp + 8]
call fcn.00401b17
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401f74
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x401fa0
cmp esi, 0xb7
je 0x401fce
cmp esi, 5
je 0x401fce
push dword [esp + 0xc]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401b17
add esp, 0xc
test esi, esi
je 0x401fce
push 0x4071d8
push esi
push edi
call fcn.00401b2f
add esp, 0xc
xor eax, eax
jmp 0x401fd1
push 1
pop eax
pop edi
pop esi
ret