joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d2ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d30b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4138d4]
call fcn.00403d28
mov dword [0x4a6524], eax
push 0
push 0x45d0f4
call sub.user32.dll_EnumWindows
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov edx, ebx
mov eax, dword [0x4a6524]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d312
mov eax, dword [0x4a6524]
call fcn.00403d58
ret
Function at 0x45dbcc
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
mov eax, dword [ebp - 8]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x45de2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.00409c24
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.00404dc8
mov eax, dword [ebp - 4]
call fcn.004028d0
call fcn.00402894
lea eax, [ebp - 0x250]
push eax
push 0x45de3c
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45ddb8
mov eax, dword [ebp - 8]
call fcn.00409678
test al, al
jne 0x45dc84
mov eax, dword [ebp - 8]
call fcn.0040969c
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00404d9c
mov eax, dword [ebp - 0x10]
mov edx, 0x45de48
call fcn.00404f38
je 0x45dd9b
mov eax, dword [ebp - 0x10]
mov edx, 0x45de54
call fcn.00404f38
je 0x45dd9b
cmp dword [ebp - 0x250], 0x10
jne 0x45dd6a
push dword [ebp - 8]
push 0x45de60
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404eac
mov eax, dword [ebp - 0xc]
call fcn.00409678
test al, al
jne 0x45dcf6
mov eax, dword [ebp - 0xc]
call fcn.0040969c
mov eax, dword [ebp - 4]
call fcn.00404dec
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x45dd33
push dword [ebp - 4]
push 0x45de60
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00404eac
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0xc]
call fcn.0045dbcc
jmp 0x45dd9b
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404e38
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404e38
mov eax, dword [ebp - 0x260]
pop edx
call fcn.0045dbcc
jmp 0x45dd9b
push dword [ebp - 8]
push 0x45de60
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404eac
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fec
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45dc84
jmp 0x45dddd
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00404d90
mov eax, dword [ebp - 0x264]
call fcn.004028d0
call fcn.00402894
xor ebx, ebx
jmp 0x45de00
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00404d90
mov eax, dword [ebp - 0x268]
call fcn.004028d0
call fcn.00402894
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de32
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404b50
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b50
ret
Function at 0x45f3f4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45f47d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a6530
push 0x101
call sub.wsock32.dll_WSAStartup_1
mov ebx, eax
test ebx, ebx
je 0x45f467
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c520
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x45f494
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a06b0]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce44
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f484
lea eax, [ebp - 0x1c]
call fcn.00404b2c
ret

Function at 0x45fb48
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045fa6c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f54
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45fbac
call fcn.0045f33c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45fb9e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f54
pop esi
pop ebx
ret

Function at 0x45fbd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x45fc4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b2c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45fc09
call fcn.00404590
jmp 0x45fc56
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45fc39
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc56
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45fc5c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x45fcd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b2c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45fc98
call fcn.00404590
jmp 0x45fcdc
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname_1
test eax, eax
jne 0x45fcbf
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fcdc
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fce4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x45fd5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x45fd1a
call fcn.00404590
jmp 0x45fd66
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x45fd49
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fd66
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x45fea0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404fec
push eax
call sub.wsock32.dll_gethostbyname_1
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004032b8
test ebx, ebx
je 0x45feeb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x45ffc8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45fff9
mov ecx, dword [0x4a0810]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce08
call fcn.004044e4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x460026
mov ecx, dword [0x4a04bc]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce08
call fcn.004044e4
xor eax, eax
push ebp
push 0x4600a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f54
cmp byte [ebp + 8], 0
je 0x460081
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ff30
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045fac8
jmp 0x46009d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045f628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4600c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4600d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x460101
mov ecx, dword [0x4a0554]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce08
call fcn.004044e4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x46012e
mov ecx, dword [0x4a04bc]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce08
call fcn.004044e4
xor eax, eax
push ebp
push 0x4601aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f54
cmp byte [ebp + 8], 0
je 0x460186
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ff30
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045fb48
jmp 0x4601a0
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045f628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4601c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4603a8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x460519
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x460503
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4603f3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4603fd
call fcn.00404590
jmp 0x460520
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e10
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4604f8
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4604ab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x460498
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00460360
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x46052c]
cmp dl, byte [eax + 0x28]
je 0x4604ff
call fcn.0040cd2c
jmp 0x4604ff
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e30
jmp 0x4604ff
cmp ecx, ebx
jge 0x4604c7
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e30
jmp 0x4603fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e10
cmp edx, dword [esp + 4]
jne 0x4604e7
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4603fd
push ebp
call fcn.00460360
pop ecx
jmp 0x4604ff
push ebp
call fcn.00460360
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460520
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460652
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x460635
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x460580
call fcn.00404590
jmp 0x46063c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46061f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46061f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46061f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c520
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46066c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a06b0]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce44
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46063c
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460659
lea eax, [ebp - 0x28]
call fcn.00404b2c
ret
Function at 0x4606b8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460802
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f8f0
xor eax, eax
push ebp
push 0x4607e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x46071d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46071d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4607cf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x460730
call fcn.00404590
jmp 0x4607ec
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4607cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4607cf
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4607cf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c520
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46081c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a06b0]
mov dl, 1
mov eax, dword [0x45e420]
call fcn.0040ce44
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4607ec
mov eax, dword [ebp - 4]
call fcn.0045f8fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460809
lea eax, [ebp - 0x28]
call fcn.00404b2c
ret
Function at 0x4634e0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4634fc
add esp, 0xfffffff0
call fcn.0040407c
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x46363b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041c128
mov byte [ebx + 0x10210], 0
mov eax, 0x400
call fcn.0040272c
mov dword [ebx + 0x10068], eax
push ebx
push 0x463d88
call fcn.0044b7ac
mov dword [ebx + 0x10060], eax
mov dword [ebx + 0x10208], 1
mov byte [ebx + 0x1006c], 0
push 0x463664
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x10248], eax
lea eax, [ebp - 8]
call fcn.00463158
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.00463d08
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup_1
test eax, eax
jne 0x46360b
xor eax, eax
push ebp
push 0x4635f5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x4635c2
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00463b94
push 4
lea eax, [ebp - 0x10]
call fcn.00463130
mov eax, dword [ebp - 0x10]
call fcn.00404fec
push eax
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x463619
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.00463b94
mov byte [ebx + 0x10210], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463642
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404b50
ret

Function at 0x4636b4
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463788
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1024c]
test eax, eax
je 0x4636e3
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup_1
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup_1
test eax, eax
jne 0x46374f
xor eax, eax
push ebp
push 0x463739
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x46372f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00463b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46375d
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00463b94
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1003c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46378f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b50
ret
Function at 0x4639e4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x463a09
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x463a02
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463b7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x463ac4
test esi, esi
jle 0x463a4f
lea eax, [ebp - 0x10]
call fcn.0046345c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x408088]
call fcn.0040cd4c
call fcn.004044e4
jmp 0x463aba
cmp word [ebx + 0x10242], 0
jne 0x463a77
lea eax, [ebp - 0x14]
call fcn.0046345c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x408088]
call fcn.0040cd4c
call fcn.004044e4
jmp 0x463aba
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 0x463ab9
lea eax, [ebp - 0x18]
call fcn.0046345c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x408088]
call fcn.0040cd4c
call fcn.004044e4
jmp 0x463aba
inc esi
cmp dword [ebp + 8], 0
je 0x463a2d
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.00463824
cmp dword [ebx + 0x10044], 0
jne 0x463af7
lea eax, [ebp - 0x1c]
call fcn.004633f4
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x462d30]
call fcn.0040cd4c
call fcn.004044e4
lea eax, [ebp - 0x20]
call fcn.00463230
mov ecx, dword [ebp - 0x20]
mov dl, 2
mov eax, ebx
call fcn.00463d08
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 0x463b63
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463b85
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404b50
ret