joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e93dc
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x6a50f2
call fcn.006454eb
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.00405235
lea eax, [ebp - 0x2c]
push eax
call fcn.006269d9
add esp, 0x20
xor ecx, ecx
cmp dword [edi + 0x18], 8
mov dword [ebp - 4], ecx
jb 0x5e9418
mov eax, dword [edi + 4]
jmp 0x5e941b
lea eax, [edi + 4]
push ecx
push 0x60000000
push 3
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x5e9444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x5e944b
jmp 0x5e94b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0x10]
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x44]
call fcn.004075b2
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x34]
call fcn.004075b2
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
call fcn.004075b2
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call fcn.005d94b7
add esp, 0x18
mov ecx, eax
call fcn.004091d1
test al, al
je 0x5e94b0
push edi
mov ecx, ebx
call fcn.004ebdc9
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004ebdc9
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040544c
call fcn.0064556e
ret 8

Function at 0x5eceef
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x82cf00
call fcn.00408019
mov edi, eax
mov al, byte [esi + 4]
cmp al, byte [esi + 7]
jae 0x5ecf5a
xor ebx, ebx
jmp 0x5ecf44
cmp byte [esi + 6], 8
jae 0x5ecf3e
movzx ecx, byte [esi + 6]
mov eax, dword [edi]
push ebx
push ecx
movzx ecx, byte [esi + 5]
push ecx
movzx ecx, byte [esi + 4]
push ecx
mov ecx, edi
call dword [eax + 0x14]
cmp ax, 0xffff
jne 0x5ecf62
mov al, byte [esi + 6]
cmp al, bl
je 0x5ecf3e
inc al
cmp al, 8
mov byte [esi + 6], al
jb 0x5ecf11
inc byte [esi + 5]
mov byte [esi + 6], bl
mov al, byte [esi + 5]
cmp al, byte [esi + 8]
jb 0x5ecf0b
inc byte [esi + 4]
mov byte [esi + 5], bl
mov al, byte [esi + 4]
cmp al, byte [esi + 7]
jb 0x5ecf44
xor al, al
pop edi
pop esi
pop ebx
ret 0xc
mov al, byte [esi + 4]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov al, byte [esi + 5]
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
mov al, byte [esi + 6]
mov ecx, dword [esp + 0x18]
mov byte [ecx], al
mov al, byte [esi + 6]
cmp al, bl
jne 0x5ecfa9
movzx ecx, byte [esi + 5]
mov eax, dword [edi]
push 0xe
push ebx
push ecx
movzx ecx, byte [esi + 4]
push ecx
mov ecx, edi
call dword [eax + 0x10]
test al, al
js 0x5ecfa4
inc byte [esi + 5]
mov byte [esi + 6], bl
jmp 0x5ecfae
inc byte [esi + 6]
jmp 0x5ecfae
inc al
mov byte [esi + 6], al
mov al, 1
jmp 0x5ecf5c
Function at 0x612849
Capabilities:
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xd8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xdc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xe0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xe4]
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xec]
push 0x10
mov dword [ebp - 0x7c], eax
xor ebx, ebx
lea eax, [ebp + 0xb8]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x70], edi
mov esi, edx
call fcn.006455e0
add esp, 0xc
cmp esi, ebx
mov word [ebp + 0xb8], 2
mov dword [ebp + 0xbc], ebx
mov word [ebp + 0xba], bx
je 0x6128df
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp + 0xbc], eax
push 0x10
lea eax, [ebp + 0xb8]
push eax
push dword [ebp + 0xe8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x612939
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push str.gh_bind
push str...RMLCUtil.cpp:391
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x18
xor al, al
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00644f58
add ebp, 0xcc
leave
ret
cmp dword [ebp + 0xbc], ebx
je 0x61297f
cmp dword [0x82943c], ebx
jne 0x61297f
push 4
lea eax, [ebp + 0xbc]
push eax
push 9
push ebx
push dword [ebp + 0xe8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x61297f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push str.gh_setsockopt
push str...RMLCUtil.cpp:404
jmp 0x612910
push 0x100
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.006467e0
add esp, 0xc
cmp dword [0x82943c], ebx
mov byte [ebp + 0x9f], bl
jne 0x6129d3
push dword [ebp + 0xf0]
push dword [ebp + 0xe8]
call fcn.00618075
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x6129d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push str.ws2SetMulticastTTL
push str...RMLCUtil.cpp:419
jmp 0x612910
push dword [ebp + 0xf0]
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp + 0xf4], ebx
mov dword [ebp + 0xa0], eax
mov dword [ebp - 0x64], ebx
jle 0x61291f
push 0x829440
push dword [0x82943c]
lea esi, [ebp - 0x60]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
push dword [ebp - 0x78]
sub esp, 0x118
push 0x45
pop ecx
mov edi, esp
push dword [ebp + 0xe8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.006122a2
add esp, 0x140
test al, al
jne 0x612a82
cmp dword [ebp - 0x64], 3
jl 0x612a6b
push dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x70]
push dword [ebp + 0xe8]
lea eax, [ebp - 0x60]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push eax
call fcn.0061267a
add esp, 0x20
test al, al
jne 0x612a82
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp + 0xf4]
jl 0x6129f4
jmp 0x61291f
mov al, 1
jmp 0x612921
Function at 0x612bc2
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x7c0650]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x8293d8], 0
push esi
jne 0x612c7b
push str.Initialising_RML_n
push 0x14
call fcn.005a6bee
pop ecx
pop ecx
lea eax, [esp + 4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x612c29
push esi
call fcn.005a6cc1
push eax
push str.WSAStartup
push str...RMLStAll.cpp:68
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x18
mov eax, esi
jmp 0x612c83
push 0
call fcn.00613bfc
pop ecx
mov ecx, dword [0x70f720]
test ecx, ecx
jbe 0x612c4b
mov eax, 0x829540
mov byte [eax], 0
add eax, 0x9c0
dec ecx
jne 0x612c40
mov dword [0x8293e4], 0xfffffffe
mov byte [0x829428], 1
call fcn.00613c0c
cmp eax, 0xffffffff
jne 0x612c6d
call fcn.00613c06
jmp 0x612c83
push str.RML_Initialised_n
push 0x14
call fcn.005a6bee
pop ecx
pop ecx
inc dword [0x8293d8]
xor eax, eax
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.00644f58
add esp, 0x194
ret
Function at 0x61345d
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.0061513a
mov esi, eax
test esi, esi
pop ecx
jne 0x61349e
push 0x2736
call fcn.00613bfc
mov dword [esp], str.argument_is_not_an_RML_socket
push str.RML_bind
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
or eax, 0xffffffff
jmp 0x61352b
push dword [ebp + 0x10]
mov eax, dword [esi + 4]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x6134e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00613bfc
push esi
call fcn.005a6cc1
push eax
push str.gh_bind
push str...RMLStAll.cpp:918
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
jmp 0x613496
lea ecx, [ebp - 4]
push ecx
lea ecx, [esi + 0x764]
mov dword [ebp - 4], 0x10
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x613525
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00613bfc
push esi
call fcn.005a6cc1
push eax
push str.gh_getsockname
push str...RMLStAll.cpp:931
jmp 0x6134d2
mov byte [esi + 0x14], 1
xor eax, eax
pop esi
leave
ret
Function at 0x6137b2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.0061513a
mov esi, eax
test esi, esi
pop ecx
jne 0x6137f3
push 0x2736
call fcn.00613bfc
mov dword [esp], str.argument_is_not_a_socket
push str.RML_recv
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
or eax, 0xffffffff
jmp 0x613921
cmp dword [esi + 0x18], 1
jne 0x613805
push esi
call fcn.00616f97
cmp eax, 0xffffffff
pop ecx
je 0x6137eb
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [esi + 0x6a8], edi
mov dword [esi + 0x6ac], eax
call fcn.006152d9
mov eax, dword [esi + 0x6a8]
sub eax, edi
pop ecx
jne 0x6138d9
cmp byte [esi + 0x74b], al
je 0x613848
mov eax, dword [esi + 0x618]
cmp eax, dword [esi + 0x74c]
je 0x6138d9
cmp byte [esi + 0x1c], 0
jne 0x613873
and dword [esi + 0x6a8], 0
and dword [esi + 0x700], 0xfffffffe
or dword [esi + 0x708], 1
push 0x2733
call fcn.00613bfc
pop ecx
jmp 0x61390e
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
mov eax, edi
jmp 0x6138d1
cmp byte [esi + 0x74b], 0
je 0x613899
mov eax, dword [esi + 0x618]
cmp eax, dword [esi + 0x74c]
je 0x6138d9
xor edi, edi
call ebx
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp dword [ebp + 0x18], ecx
jb 0x6138af
mov edi, dword [ebp - 4]
sub edi, eax
add edi, dword [ebp + 0x18]
cmp dword [ebp + 0x18], 0xffffffff
je 0x6138bd
test edi, edi
jne 0x6138c0
xor eax, eax
jmp 0x61391f
or edi, 0xffffffff
push edi
push esi
call fcn.00617633
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x613907
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x6a8], eax
je 0x613882
mov edi, dword [esi + 0x6a8]
mov eax, dword [esi + 0x618]
sub edi, dword [ebp + 0xc]
and dword [esi + 0x6a8], 0
or dword [esi + 0x708], 1
cmp eax, dword [esi + 0x620]
jne 0x613913
and dword [esi + 0x700], 0xfffffffe
jmp 0x61391d
and dword [esi + 0x6a8], 0
or eax, 0xffffffff
jmp 0x61391f
push 1
push esi
call fcn.00613fff
pop ecx
pop ecx
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x613a31
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
xor edi, edi
push edi
push ebx
call fcn.00614708
test eax, eax
pop ecx
pop ecx
je 0x613a4d
xor eax, eax
jmp 0x613bdc
push esi
push ebx
call fcn.0061513a
mov esi, eax
cmp esi, edi
pop ecx
jne 0x613a88
push 0x2736
call fcn.00613bfc
mov dword [esp], str.argument_is_not_an_RML_socket
push str.RML_closesocket
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
or eax, 0xffffffff
jmp 0x613bdb
cmp dword [esi + 0x6cc], edi
push ebp
je 0x613b75
cmp dword [esi + 0x20], 2
jne 0x613aa4
push edi
push esi
call fcn.006143c4
pop ecx
pop ecx
cmp dword [esi + 0x18], 1
jne 0x613ad0
mov eax, dword [esi + 0x774]
cmp dword [eax + 0x10], edi
jne 0x613ac0
push edi
push esi
call fcn.006149d4
pop ecx
pop ecx
jmp 0x613ad0
push esi
call fcn.00616f97
cmp eax, 0xffffffff
pop ecx
je 0x613b86
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x613af9
cmp eax, 0xb
je 0x613af9
cmp eax, 0xc
je 0x613af9
cmp eax, 0xd
je 0x613af9
push 2
push ebx
call fcn.0061334a
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x613b86
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esi + 0x6e4], eax
mov byte [esi + 0x751], 1
call ebx
cmp dword [esi + 0x18], edi
mov ebp, eax
je 0x613bc3
jmp 0x613b1f
xor edi, edi
mov eax, dword [esi + 0x18]
cmp eax, 0xb
je 0x613bc3
cmp eax, 0xc
je 0x613bc3
cmp eax, 0xd
je 0x613bc3
call ebx
mov ecx, dword [esp + 0x18]
mov edx, eax
sub edx, ebp
cmp ecx, edx
jb 0x613b51
mov edi, ebp
sub edi, eax
add edi, ecx
cmp ecx, 0xffffffff
je 0x613b5c
test edi, edi
je 0x613bd8
jmp 0x613b5f
or edi, 0xffffffff
push edi
push esi
call fcn.00617633
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x613b86
cmp dword [esi + 0x18], 0
jne 0x613b1d
jmp 0x613bc3
cmp dword [esi + 0x20], 2
jne 0x613b8b
push esi
call fcn.00616f44
test eax, eax
pop ecx
je 0x613bc3
or eax, 0xffffffff
jmp 0x613bda
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x613bc3
cmp eax, 0xb
je 0x613bc3
cmp eax, 0xc
je 0x613bc3
cmp eax, 0xd
je 0x613bc3
cmp eax, 2
je 0x613bc3
lea eax, [esi + 0x754]
push eax
push edi
push dword [esi + 0x620]
push dword [esi + 0x658]
push esi
call fcn.006150b7
add esp, 0x14
push esi
call fcn.00613eac
push esi
call fcn.0061598a
push esi
call fcn.0061618d
add esp, 0xc
xor eax, eax
pop ebp
pop esi
pop edi
pop ebx
ret
Function at 0x613c0c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x613c6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push str.gethostname
push str...RMLStack.cpp:216
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
or eax, 0xffffffff
jmp 0x613d50
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x613cb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push str.gethostbyname
push str...RMLStack.cpp:226
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
jmp 0x613d48
cmp word [edi + 0xa], 4
je 0x613ccd
push 0x2afb
call fcn.00613bfc
mov dword [esp], str.Local_address_not_recognized
jmp 0x613d34
push esi
push str.rml_get_local_interfaces_found_these_IP_addresses:_n
push 0x14
call fcn.005a6bee
pop ecx
pop ecx
xor esi, esi
mov eax, dword [edi + 0xc]
lea eax, [eax + esi*4]
cmp dword [eax], 0
je 0x613d18
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.____s_n
push 0x14
call fcn.005a6bee
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
add esp, 0xc
mov dword [esi*4 + 0x8293e8], eax
inc esi
cmp esi, 0x10
jb 0x613cde
mov dword [0x82942c], esi
test esi, esi
pop esi
jne 0x613d4d
push 0x2afb
call fcn.00613bfc
mov dword [esp], str.No_IP_address_configured
push str.rml_get_local_interfaces
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
or eax, 0xffffffff
jmp 0x613d4f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00644f58
leave
ret
Function at 0x614c6b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
or esi, 0xffffffff
cmp eax, esi
jne 0x614cc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLStack.cpp:1958
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
mov eax, esi
jmp 0x614e38
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
mov dword [ebp + 8], ebx
call fcn.006180b5
cmp eax, esi
pop ecx
pop ecx
jne 0x614cf6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push str.ioctlsocket
push str...RMLStack.cpp:1970
jmp 0x614caa
push dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
push dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
call esi
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x18]
mov byte [ebp - 8], al
lea eax, [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x20]
inc esi
cmp eax, ebx
mov dword [ebp - 0x2c], 0xd
je 0x614d4c
cmp dword [ebp + 0x24], ebx
jbe 0x614d4c
mov dword [ebp - 0x20], eax
mov eax, 0x597
cmp dword [ebp + 0x24], eax
jae 0x614d46
mov eax, dword [ebp + 0x24]
push 2
mov dword [ebp - 0x24], eax
pop esi
cmp byte [edi + 0x15], bl
push ebx
lea eax, [ebp - 4]
push ebx
je 0x614d68
push ebx
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
jmp 0x614d7d
push 0x10
push dword [ebp + 0x1c]
push ebx
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x614ddf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub eax, 0x2714
je 0x614dca
sub eax, 0x1f
je 0x614dc1
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x70fb18
push str...RMLStack.cpp:2018
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
or eax, 0xffffffff
jmp 0x614e38
push str.Send_would_block_n
push 0xa
jmp 0x614dd1
push str.Send_interrupted_n
push 0x1e
call fcn.005a6bee
pop ecx
pop ecx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x1c]
dec esi
dec esi
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x53
call fcn.00613d5c
add esp, 0x10
push 3
push dword [edi + 0x6d0]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x614e36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLStack.cpp:2033
jmp 0x614dad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6153ee
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push dword [esi + 0x658]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
push dword [esi + 0x620]
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 0x624]
mov dword [ebp - 0xc], eax
call edi
push 0
push 0xd
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push ecx
push eax
mov byte [ebp - 4], 0x82
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop edi
jne 0x6154a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub eax, 0x2714
je 0x61548c
sub eax, 0x1f
je 0x615477
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push str.gh_send
push str...RMLStack.cpp:2648
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
or eax, 0xffffffff
leave
ret
push str.Send_would_block_n
push 0xa
call fcn.005a6bee
mov byte [esi + 0x6d5], 0
jmp 0x615498
push str.Send_interrupted_n
push 0x1e
call fcn.005a6bee
pop ecx
pop ecx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x6154ca
lea eax, [esi + 0x754]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x53
call fcn.00613d5c
mov eax, dword [esi + 0x778]
mov ecx, dword [esi + 0x620]
add esp, 0x10
mov dword [eax + 0xc], ecx
xor eax, eax
leave
ret
Function at 0x615733
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x6d4], 0
push edi
jne 0x615918
cmp byte [esi + 0x6d5], 0
je 0x615771
push 0
call fcn.006142b5
test eax, eax
pop ecx
ja 0x615918
cmp byte [esi + 0x6c5], 0
jne 0x615918
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.00614537
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x615799
push ebx
push str._nWait__ld_
push 0xa
call fcn.005a6bee
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp ebx, eax
je 0x6157ad
mov eax, ebx
push 0
push eax
push 0
lea ebx, [esi + 0x6d0]
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x6157ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x6bb4c4
push str...RMLStack.cpp:2926
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
or eax, 0xffffffff
jmp 0x61591a
call edi
mov edi, eax
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x6158a8
lea eax, [ebp - 0x38]
push eax
push dword [ebx]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x615843
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.00613bfc
push ecx
call fcn.005a6cc1
push eax
push 0x6bb498
push str...RMLStack.cpp:2940
jmp 0x6157e8
test byte [ebp - 0x38], 1
je 0x615850
mov byte [esi + 0x6d4], 1
test byte [ebp - 0x38], 2
je 0x61585d
mov byte [esi + 0x6d5], 1
cmp dword [ebp - 8], 0
jne 0x615874
push 0
push str._nWait__ld_
push 0xa
call fcn.005a6bee
add esp, 0xc
test byte [ebp - 0x38], 2
mov eax, 0x717104
mov ecx, 0x70fc24
jne 0x615886
mov ecx, eax
test byte [ebp - 0x38], 1
je 0x615891
mov eax, 0x70fc20
sub edi, dword [ebp - 4]
push edi
push ecx
push eax
push str.returned___s_s__after__ld_ticks_n
push 0xa
call fcn.005a6bee
add esp, 0x14
jmp 0x615913
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 9
jne 0x6158de
cmp dword [ebp - 8], eax
jne 0x6158c5
push eax
push str._nWait__ld_
push 0xa
call fcn.005a6bee
add esp, 0xc
sub edi, dword [ebp - 4]
push edi
push str.throttle_off_after__ld_ticks_n
push 0xa
call fcn.005a6bee
add esp, 0xc
and dword [ebp - 0xc], 0
jmp 0x615913
cmp dword [ebp - 8], eax
jne 0x615900
mov esi, edi
sub esi, dword [ebp - 4]
je 0x6158fc
push eax
push str._nWait__ld_
push 0xa
call fcn.005a6bee
add esp, 0xc
xor eax, eax
cmp esi, eax
je 0x615913
sub edi, dword [ebp - 4]
push edi
push str.timed_out_after__ld_ticks_n
push 0xa
call fcn.005a6bee
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x61591a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret