joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d46a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x5d46d9
mov eax, dword [esp]
cmp al, 2
jne 0x5d46d3
shr eax, 8
cmp al, 2
jne 0x5d46d3
call fcn.005e2170
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret

Function at 0x5dd6e0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x4c4]
push 0x4000
push ebp
call fcn.005ecfc0
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x5dd731
cmp byte [ebx + 0x84ec], 0
jne 0x5dd731
push ebp
push 0x6b8fc4
push 0x100
push eax
call fcn.005eced0
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x5dd7a8
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5dd740
sub edi, ecx
cmp edi, 0x3fff
jae 0x5dd761
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x5dd77f
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x6b8fac
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x5dd7b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x5dd85d
cmp byte [ebx + 0x284], 0
je 0x5dd85d
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.005ecfc0
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x5dd800
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x5dd830
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x6b8fac
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5dd9c1
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret
Function at 0x5dda50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebp + eax*4 + 0x144]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x5ddacb
push esi
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5ddaa1
pop esi
pop edi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push esi
push ebp
call fcn.005f2040
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.005dd6e0
mov eax, dword [ebp]
add esp, 0x14
mov dword [eax + 0x84f0], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x5ddbd0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x164]
test eax, eax
je 0x5ddbf9
push dword [edi + 0xf8]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x5ddc34
push dword [edi + 0xf4]
lea eax, [eax + eax*2]
push 1
add eax, 0x6b8fac
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [edi + 0xf4]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x5e0810
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0xb2df24]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x5e0897
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x5e088b
mov dword [0xb2df24], 2
add esp, 0xa8
ret
mov dword [0xb2df24], 1
jmp 0x5e089c
cmp eax, 2
je 0x5e08e8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x5e08ca
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x5e08e8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x5e0a90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x5e0c53
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x5e0c07
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x5e0b0b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f2040
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.005dd6e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x5e0b66
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f2040
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.005dd6e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.005e1140
add esp, 0xc
test al, al
jne 0x5e0bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f2040
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.005dd6e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.005e1140
add esp, 0xc
test al, al
jne 0x5e0c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f2040
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.005dd6e0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x5e14b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x5e14fa
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005dd7b0
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.005ec1b0
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.005ec1b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x5e1571
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.005dd7b0
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5e1580
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x5e15cb
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.005f2040
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005dd7b0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.005dd7b0
add esp, 8
pop edi
pop esi
ret
Function at 0x5e83b0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x5e8461
mov cl, byte [edi]
test cl, cl
je 0x5e8461
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x5e83da
jmp dword [eax*4 + 0x5e8488]
mov bl, 0x41
jmp case.default.0x5e83da
mov bl, 0x42
jmp case.default.0x5e83da
mov bl, 0x43
jmp case.default.0x5e83da
mov bl, 0x44
jmp case.default.0x5e83da
mov bl, 0x45
jmp case.default.0x5e83da
mov bl, 0x46
jmp case.default.0x5e83da
mov bl, 0x47
jmp case.default.0x5e83da
mov bl, 0x48
jmp case.default.0x5e83da
mov bl, 0x49
jmp case.default.0x5e83da
mov bl, 0x4a
jmp case.default.0x5e83da
mov bl, 0x4b
jmp case.default.0x5e83da
mov bl, 0x4c
jmp case.default.0x5e83da
mov bl, 0x4d
jmp case.default.0x5e83da
mov bl, 0x4e
jmp case.default.0x5e83da
mov bl, 0x4f
jmp case.default.0x5e83da
mov bl, 0x50
jmp case.default.0x5e83da
mov bl, 0x51
jmp case.default.0x5e83da
mov bl, 0x52
jmp case.default.0x5e83da
mov bl, 0x53
jmp case.default.0x5e83da
mov bl, 0x54
jmp case.default.0x5e83da
mov bl, 0x55
jmp case.default.0x5e83da
mov bl, 0x56
jmp case.default.0x5e83da
mov bl, 0x57
jmp case.default.0x5e83da
mov bl, 0x58
jmp case.default.0x5e83da
mov bl, 0x59
jmp case.default.0x5e83da
mov bl, 0x5a
push ecx
call fcn.005e8660
add esp, 4
cmp bl, al
jne 0x5e8461
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x5e83c5
movzx eax, byte [esi]
push eax
call fcn.005e8660
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.005e8660
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x5e84f0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x5e85b6
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x5e85b6
test esi, esi
je 0x5e85ba
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x5e852e
jmp dword [eax*4 + 0x5e85ec]
mov bl, 0x41
jmp case.default.0x5e852e
mov bl, 0x42
jmp case.default.0x5e852e
mov bl, 0x43
jmp case.default.0x5e852e
mov bl, 0x44
jmp case.default.0x5e852e
mov bl, 0x45
jmp case.default.0x5e852e
mov bl, 0x46
jmp case.default.0x5e852e
mov bl, 0x47
jmp case.default.0x5e852e
mov bl, 0x48
jmp case.default.0x5e852e
mov bl, 0x49
jmp case.default.0x5e852e
mov bl, 0x4a
jmp case.default.0x5e852e
mov bl, 0x4b
jmp case.default.0x5e852e
mov bl, 0x4c
jmp case.default.0x5e852e
mov bl, 0x4d
jmp case.default.0x5e852e
mov bl, 0x4e
jmp case.default.0x5e852e
mov bl, 0x4f
jmp case.default.0x5e852e
mov bl, 0x50
jmp case.default.0x5e852e
mov bl, 0x51
jmp case.default.0x5e852e
mov bl, 0x52
jmp case.default.0x5e852e
mov bl, 0x53
jmp case.default.0x5e852e
mov bl, 0x54
jmp case.default.0x5e852e
mov bl, 0x55
jmp case.default.0x5e852e
mov bl, 0x56
jmp case.default.0x5e852e
mov bl, 0x57
jmp case.default.0x5e852e
mov bl, 0x58
jmp case.default.0x5e852e
mov bl, 0x59
jmp case.default.0x5e852e
mov bl, 0x5a
push ecx
call fcn.005e8660
add esp, 4
cmp bl, al
jne 0x5e85b6
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x5e8510
test esi, esi
jne 0x5e85c4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.005e8660
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.005e8660
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x5e8660
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x5e866f
jmp dword [eax*4 + 0x5e86c8]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x5e8730
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x5e87dc
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x5e875d
jmp dword [eax*4 + 0x5e87e0]
mov cl, 0x41
jmp case.default.0x5e875d
mov cl, 0x42
jmp case.default.0x5e875d
mov cl, 0x43
jmp case.default.0x5e875d
mov cl, 0x44
jmp case.default.0x5e875d
mov cl, 0x45
jmp case.default.0x5e875d
mov cl, 0x46
jmp case.default.0x5e875d
mov cl, 0x47
jmp case.default.0x5e875d
mov cl, 0x48
jmp case.default.0x5e875d
mov cl, 0x49
jmp case.default.0x5e875d
mov cl, 0x4a
jmp case.default.0x5e875d
mov cl, 0x4b
jmp case.default.0x5e875d
mov cl, 0x4c
jmp case.default.0x5e875d
mov cl, 0x4d
jmp case.default.0x5e875d
mov cl, 0x4e
jmp case.default.0x5e875d
mov cl, 0x4f
jmp case.default.0x5e875d
mov cl, 0x50
jmp case.default.0x5e875d
mov cl, 0x51
jmp case.default.0x5e875d
mov cl, 0x52
jmp case.default.0x5e875d
mov cl, 0x53
jmp case.default.0x5e875d
mov cl, 0x54
jmp case.default.0x5e875d
mov cl, 0x55
jmp case.default.0x5e875d
mov cl, 0x56
jmp case.default.0x5e875d
mov cl, 0x57
jmp case.default.0x5e875d
mov cl, 0x58
jmp case.default.0x5e875d
mov cl, 0x59
jmp case.default.0x5e875d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x5e87db
dec esi
jne 0x5e8750
pop edi
pop esi
ret
Function at 0x5ee240
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x5ee289
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x5ee289
lea eax, [esp]
push eax
call dword [0xb264c4]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x5f30d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5f3263
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x5f324d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x5f311f
lea ebx, [eax + 0xe]
jmp 0x5f312b
cmp eax, 0x17
jne 0x5f31da
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x5f31da
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5f31da
cmp eax, ebx
jb 0x5f31da
push 0x20
call dword [0xb264b8]
mov esi, eax
add esp, 4
test esi, esi
je 0x5f3242
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0xb264b8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x5f3231
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x5f31c5
push eax
call dword [0xb264c4]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x5f3217
test ebp, ebp
jne 0x5f31cb
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5f31d6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5f3112
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x5f31f9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x5f3249
push ebp
call fcn.005f3090
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0xb264bc]
push esi
call dword [0xb264bc]
add esp, 8
jmp 0x5f31e9
push esi
mov ebx, 8
call dword [0xb264bc]
add esp, 4
jmp 0x5f31e9
mov ebx, 8
jmp 0x5f31e9
test ebp, ebp
jne 0x5f3259
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x5f36b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.005f3660
mov al, 1
ret
Function at 0x60e8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
cmp al, 1
je 0x60e8f3
cmp al, 3
jb 0x60e8d0
push esi
call fcn.0060ef90
add esp, 4
test eax, eax
jne 0x60e9e5
cmp byte [esi], 0
jne 0x60e8dc
mov eax, 0x65
pop esi
ret
mov eax, dword [esi + 0x40]
test eax, eax
je 0x60e8f3
mov byte [esi], 1
mov dword [esi + 0x40], 0
jle 0x60e8f3
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x74]
inc word [esi + 0x46]
mov ax, word [esi + 0x46]
cmp ax, word [edx + 0x16]
jb 0x60e9f9
cmp byte [edx + 8], 0
jne 0x60e938
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
call fcn.00631650
add esp, 8
test eax, eax
jne 0x60e9e5
push esi
call fcn.006316d0
add esp, 4
pop esi
ret
push ebx
push edi
lea ebx, [ebx]
mov cl, byte [esi + 0x44]
test cl, cl
je 0x60e9ed
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x2a], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x60e9b8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00519690
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x60e9c1
push edx
call fcn.0065ec30
add esp, 4
mov edx, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edx + 0x16]
jae 0x60e940
cmp byte [edx + 2], 0
je 0x60e9e7
push 0
push esi
call fcn.00643a90
add esp, 8
pop edi
pop ebx
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret
pop edi
pop ebx
mov byte [esi], 0
mov eax, 0x65
pop esi
ret
cmp byte [edx + 8], 0
je 0x60e92d
xor eax, eax
pop esi
ret
Function at 0x60ed30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
cmp al, 1
je 0x60ed73
cmp al, 3
jb 0x60ed50
push esi
call fcn.0060ef90
add esp, 4
test eax, eax
jne 0x60ee96
cmp byte [esi], 0
jne 0x60ed5c
mov eax, 0x65
pop esi
ret
mov eax, dword [esi + 0x40]
test eax, eax
je 0x60ed73
mov byte [esi], 1
mov dword [esi + 0x40], 0
jns 0x60ed73
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x74]
push ebx
push edi
cmp byte [edx + 8], 0
jne 0x60edbd
movzx ecx, word [esi + 0x46]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.00631650
add esp, 8
test eax, eax
jne 0x60ee94
push esi
call fcn.006317c0
add esp, 4
pop edi
pop ebx
pop esi
ret
cmp word [esi + 0x46], 0
jne 0x60ee5f
jmp 0x60edd0
mov dl, byte [esi + 0x44]
test dl, dl
je 0x60ee86
and byte [esi + 1], 0xf9
xor eax, eax
mov ecx, dword [esi + 0x74]
mov word [esi + 0x2a], ax
movsx eax, dl
dec dl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, dl
mov byte [esi + 0x44], dl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [ecx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x60ee4b
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00519690
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x60ee54
push edx
call fcn.0065ec30
add esp, 4
cmp word [esi + 0x46], 0
je 0x60edd0
mov eax, 0xffff
add word [esi + 0x46], ax
mov eax, dword [esi + 0x74]
cmp byte [eax + 2], 0
je 0x60ee92
cmp byte [eax + 8], 0
jne 0x60ee92
push 0
push esi
call fcn.006442b0
add esp, 8
pop edi
pop ebx
pop esi
ret
pop edi
pop ebx
mov byte [esi], 0
mov eax, 0x65
pop esi
ret
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x60eea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov al, byte [ebp + 0x44]
test al, al
js 0x60ef8a
push ebx
push esi
xor ebx, ebx
push edi
test al, al
jle 0x60ef28
add ebp, 0x78
lea esp, [esp]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x60ef0b
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00519690
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x60ef14
push ecx
call fcn.0065ec30
add esp, 4
mov eax, dword [esp + 0x14]
inc ebx
add ebp, 4
movsx eax, byte [eax + 0x44]
cmp ebx, eax
jl 0x60eec0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x60ef7a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00519690
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret
push edx
call fcn.0065ec30
add esp, 4
mov byte [ebp + 0x44], 0xff
pop edi
pop esi
pop ebx
pop ebp
ret