joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x418928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x64
mov dword [esp + 0x10], esi
call fcn.00415b90
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push edi
push edi
mov dword [esi], 0x435c78
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x6c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x414680
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4189c3
push eax
mov eax, 0x10030
mov dword fs:[0], esp
call fcn.00416850
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x10044], 0
push eax
call fcn.00415fd0
push 0x10
lea ecx, [esp + 0x44]
push 0x43ad50
push ecx
call fcn.00415f10
lea esi, [esp + eax + 0x4c]
push 0x24
push 0x43ad70
push esi
call fcn.00415f10
add esi, eax
push 0
push str.NSPlayer_9.0.0.2980
push esi
call fcn.00415f50
add esi, eax
push 0
push 0x43af44
push esi
call fcn.00415f50
lea edx, [esp + 0x48]
add esi, eax
push 0
push edx
push esi
call fcn.00415f50
add esp, 0x40
add esi, eax
push 0
push 0x43af44
push esi
call fcn.00415f50
add esi, eax
push 0
push str.Host:
push esi
call fcn.00415f50
add esi, eax
mov eax, dword [esp + 0x10064]
push 0
push eax
push esi
call fcn.00415f50
add esi, eax
push 1
push 0x43b3b8
push esi
call fcn.00415f50
add esi, eax
lea ecx, [esp + 0x6c]
sub esi, ecx
add esp, 0x30
mov ebp, esi
mov eax, ebp
and eax, 7
je 0x414767
mov edx, 8
sub edx, eax
add ebp, edx
lea eax, [ebp - 0x10]
lea ecx, [esp + 0x44]
add esi, 0xfffffff6
push eax
push ecx
shr esi, 3
call fcn.00416090
lea edx, [esp + 0x54]
push esi
push edx
call fcn.004160e0
add esi, 0xfffffffe
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.004160e0
mov eax, dword [edi + 0x34]
lea edx, [esp + 0x68]
push eax
push edx
lea ecx, [eax + 1]
mov dword [edi + 0x34], ecx
call fcn.00416090
mov ecx, dword [edi + 0x30]
add esp, 0x20
lea eax, [esp + 0x3c]
push 0
push ebp
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [edi + 0x60]
mov dl, byte [esp + 0x60]
test eax, eax
mov byte [esp + 0x10], dl
je 0x414833
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x1004c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
and edx, 0xff
push str.NSPlayer_9.0.0.2980
push edx
lea eax, [esp + 0x1c]
push str.send_request_init__cmd:0x_02x__player:_s_guid:_s_host:_s_r_n
push eax
mov byte [esp + 0x1005c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [edi + 0x64]
push eax
call dword [edi + 0x60]
lea ecx, [esp + 0xc]
mov byte [esp + 0x10044], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1004c]
mov dword [esp + 0x10044], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1003c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1003c
ret 4
Function at 0x414870
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4189db
push eax
mov eax, 0x10008
mov dword fs:[0], esp
call fcn.00416850
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x14]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x43ad50
push eax
call fcn.00415f10
lea edi, [esp + eax + 0x20]
push 0x20
push 0x43ad94
push edi
call fcn.00415f10
add edi, eax
lea ecx, [esp + 0x2c]
sub edi, ecx
add esp, 0x18
mov ebx, edi
mov eax, ebx
and eax, 7
je 0x4148e3
mov edx, 8
sub edx, eax
add ebx, edx
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x1c]
add edi, 0xfffffff6
push eax
push ecx
shr edi, 3
call fcn.00416090
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.004160e0
add edi, 0xfffffffe
lea eax, [esp + 0x44]
push edi
push eax
call fcn.004160e0
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
call fcn.00416090
mov ecx, dword [esi + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push 0
push ebx
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [esi + 0x60]
mov dl, byte [esp + 0x38]
test eax, eax
mov byte [esp + 0x10], dl
je 0x4149a2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
mov dword [esp + 0x1001c], 0
push eax
push str.send_timing_data__cmd:0x_02x_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1001c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10014
ret
Function at 0x4149c0
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4189fb
push eax
mov eax, 0x10024
mov dword fs:[0], esp
call fcn.00416850
push ebx
mov ebx, ecx
push esi
lea eax, [esp + 0x10]
mov edx, dword [ebx + 0x30]
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_getsockname
mov eax, dword [esp + 0x22]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
lea ecx, [esp + 0x18]
push eax
push 0x43a2c8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x3c]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x40]
push 0x43ad50
push edx
stosb byte es:[edi], al
call fcn.00415f10
lea esi, [esp + eax + 0x48]
push 0x2c
push 0x43adb4
push esi
call fcn.00415f10
add esi, eax
push 0
push 0x43afa8
push esi
call fcn.00415f50
add esp, 0x30
add esi, eax
mov eax, dword [esp + 0x24]
push 0
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push esi
call fcn.00415f50
add esi, eax
push 0
push str.TCP_
push esi
call fcn.00415f50
lea ecx, [esp + 0x30]
add esi, eax
push 0
push ecx
push esi
call fcn.00415f50
add esi, eax
push 1
push 0x43b3b8
push esi
call fcn.00415f50
add esi, eax
lea edx, [esp + 0x60]
sub esi, edx
add esp, 0x30
mov edi, esi
mov eax, edi
and eax, 7
je 0x414ac2
mov ecx, 8
sub ecx, eax
add edi, ecx
lea edx, [edi - 0x10]
lea eax, [esp + 0x38]
add esi, 0xfffffff6
push edx
push eax
shr esi, 3
call fcn.00416090
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.004160e0
add esi, 0xfffffffe
lea edx, [esp + 0x60]
push esi
push edx
call fcn.004160e0
mov eax, dword [ebx + 0x34]
lea edx, [esp + 0x5c]
push eax
push edx
lea ecx, [eax + 1]
mov dword [ebx + 0x34], ecx
call fcn.00416090
mov ecx, dword [ebx + 0x30]
add esp, 0x20
lea eax, [esp + 0x30]
push 0
push edi
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [ebx + 0x60]
mov dl, byte [esp + 0x54]
test eax, eax
mov byte [esp + 0x10], dl
je 0x414b81
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
mov dword [esp + 0x10038], 0
push eax
push str.send_transport_info__cmd:0x_02x_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [ebx + 0x64]
push eax
call dword [ebx + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x10038], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10030]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10030
ret
Function at 0x414ba0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418a1b
push eax
mov eax, 0x10008
mov dword fs:[0], esp
call fcn.00416850
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x14]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x43ad50
push eax
call fcn.00415f10
lea esi, [esp + eax + 0x20]
push 0x28
push 0x43ade0
push esi
call fcn.00415f10
add esi, eax
mov eax, dword [ebx + 4]
push 0
push eax
push esi
call fcn.00415f50
add esi, eax
push 1
push 0x43b3b8
push esi
call fcn.00415f50
add esi, eax
lea ecx, [esp + 0x44]
sub esi, ecx
add esp, 0x30
mov edi, esi
mov eax, edi
and eax, 7
je 0x414c30
mov edx, 8
sub edx, eax
add edi, edx
lea eax, [edi - 0x10]
lea ecx, [esp + 0x1c]
add esi, 0xfffffff6
push eax
push ecx
shr esi, 3
call fcn.00416090
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.004160e0
add esi, 0xfffffffe
lea eax, [esp + 0x44]
push esi
push eax
call fcn.004160e0
mov eax, dword [ebx + 0x34]
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [eax + 1]
mov dword [ebx + 0x34], ecx
call fcn.00416090
mov ecx, dword [ebx + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push 0
push edi
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [ebx + 0x60]
mov dl, byte [esp + 0x38]
test eax, eax
mov byte [esp + 0x10], dl
je 0x414cef
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
mov dword [esp + 0x1001c], 0
push eax
push str.send_request_file__cmd:0x_02x_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [ebx + 0x64]
push eax
call dword [ebx + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1001c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10014
ret
Function at 0x414d10
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418a3b
push eax
mov eax, 0x10008
mov dword fs:[0], esp
call fcn.00416850
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x14]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x43ad50
push eax
call fcn.00415f10
lea edi, [esp + eax + 0x20]
push 0x48
push 0x43ae08
push edi
call fcn.00415f10
add edi, eax
lea ecx, [esp + 0x2c]
sub edi, ecx
add esp, 0x18
mov ebx, edi
mov eax, ebx
and eax, 7
je 0x414d83
mov edx, 8
sub edx, eax
add ebx, edx
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x1c]
add edi, 0xfffffff6
push eax
push ecx
shr edi, 3
call fcn.00416090
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.004160e0
add edi, 0xfffffffe
lea eax, [esp + 0x44]
push edi
push eax
call fcn.004160e0
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
call fcn.00416090
mov ecx, dword [esi + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push 0
push ebx
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [esi + 0x60]
mov dl, byte [esp + 0x38]
test eax, eax
mov byte [esp + 0x10], dl
je 0x414e42
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
mov dword [esp + 0x1001c], 0
push eax
push str.send_request_header__cmd:0x_02x_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1001c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10014
ret
Function at 0x414e60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418a5b
push eax
mov eax, 0x10008
mov dword fs:[0], esp
call fcn.00416850
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x18]
cmp ecx, eax
jae 0x414e97
mov dword [esi + 0xc], 0
jmp 0x414eae
mov edi, dword [esi + 0x1c]
sub ecx, eax
mov eax, ecx
xor edx, edx
div edi
xor edx, edx
mov dword [esi + 0xc], eax
mov eax, ecx
div edi
mov dword [esi + 0x10], edx
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x14]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x43ad50
push eax
call fcn.00415f10
lea edi, [esp + eax + 0x20]
push 0x38
push 0x43ae50
push edi
call fcn.00415f10
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x68]
push ecx
push edx
add edi, eax
call fcn.00416090
lea eax, [esp + 0x34]
add esp, 0x20
sub edi, eax
mov ebx, edi
mov eax, ebx
and eax, 7
je 0x414f0b
mov ecx, 8
sub ecx, eax
add ebx, ecx
lea edx, [ebx - 0x10]
lea eax, [esp + 0x1c]
add edi, 0xfffffff6
push edx
push eax
shr edi, 3
call fcn.00416090
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.004160e0
add edi, 0xfffffffe
lea edx, [esp + 0x44]
push edi
push edx
call fcn.004160e0
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
call fcn.00416090
mov ecx, dword [esi + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push 0
push ebx
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [esi + 0x60]
mov dl, byte [esp + 0x38]
test eax, eax
mov byte [esp + 0x10], dl
je 0x414fcf
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x14]
push str.send_request_data__cmd:0x_02x_packet:_d_r_n
push edx
mov dword [esp + 0x1002c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0041643a
mov ecx, dword [esi + 0x64]
push ecx
call dword [esi + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1001c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10014
ret
Function at 0x414ff0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418a7b
push eax
mov eax, 0x10008
mov dword fs:[0], esp
call fcn.00416850
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x14]
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x43ad50
push eax
call fcn.00415f10
lea edi, [esp + eax + 0x20]
push 0x20
push 0x43ae88
push edi
call fcn.00415f10
add edi, eax
lea ecx, [esp + 0x2c]
sub edi, ecx
add esp, 0x18
mov ebx, edi
mov eax, ebx
and eax, 7
je 0x415063
mov edx, 8
sub edx, eax
add ebx, edx
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x1c]
add edi, 0xfffffff6
push eax
push ecx
shr edi, 3
call fcn.00416090
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.004160e0
add edi, 0xfffffffe
lea eax, [esp + 0x44]
push edi
push eax
call fcn.004160e0
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [eax + 1]
mov dword [esi + 0x34], ecx
call fcn.00416090
mov ecx, dword [esi + 0x30]
add esp, 0x20
lea eax, [esp + 0x14]
push 0
push ebx
push eax
push ecx
call sub.WSOCK32.dll_send
mov eax, dword [esi + 0x60]
mov dl, byte [esp + 0x38]
test eax, eax
mov byte [esp + 0x10], dl
je 0x415122
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
and eax, 0xff
mov dword [esp + 0x1001c], 0
push eax
push str.send_timer_test__cmd:0x_02x_r_n
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x60]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1001c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10014]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10014
ret
Function at 0x4153f0
Capabilities:
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418af8
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
push eax
lea ecx, [edi + 0x28]
push ecx
call fcn.00416040
lea eax, [esi + 0x1c]
lea edx, [edi + 0x5c]
push eax
push edx
call fcn.00416040
lea ebx, [esi + 0x20]
lea eax, [edi + 0x60]
push ebx
push eax
call fcn.00416040
lea ecx, [esp + 0x30]
lea edx, [edi + 0x68]
push ecx
push edx
call fcn.00416040
lea ebp, [esi + 0x18]
lea eax, [edi + 0x6c]
push ebp
push eax
call fcn.00416040
mov ecx, dword [ebx]
add esp, 0x28
test ecx, ecx
je 0x41546e
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41546e
imul eax, ecx
add eax, dword [ebp]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
mov cl, byte [edi + 0x24]
test eax, eax
mov byte [esp + 0x10], cl
je 0x4154e0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x18]
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x40]
push str.recv_quest_file__cmd:0x_02x_header_size:_d_packet_num:_d_packet_size:_d_file_size:_d_r_n
push ecx
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041643a
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x60]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4154f1
mov ecx, esi
call fcn.00414d10
jmp 0x4154fc
mov ecx, dword [esi + 0x64]
push 0
push 4
push ecx
call dword [esi + 0x5c]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4

Function at 0x415be0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x415c40
push 0
push 0
mov dword [0x43b228], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43b3bc], eax
mov eax, 1
ret
Function at 0x416b10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_htons]
mov dword [esp + 0x18], eax
push esi
push edi
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov word [esp + 0x20], 2
call ebx
mov edx, dword [esp + 0x30]
push 0
push 1
push 2
mov word [esp + 0x2a], ax
mov dword [esp + 0x2c], edx
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
test esi, esi
jl 0x416bf7
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [esp + 0x34]
push 4
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x48], 1
call edi
test eax, eax
jge 0x416b89
push str.SO_REUSEADDR_failed
jmp 0x416be7
lea ecx, [esp + 0x34]
push 4
push ecx
push 1
push 6
push esi
call edi
test eax, eax
jge 0x416ba2
push str.TCP_NODELAY_failed
jmp 0x416be7
mov eax, dword [esp + 0x38]
test ax, ax
je 0x416c01
xor edx, edx
push eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
call ebx
mov word [esp + 0xe], ax
lea eax, [esp + 0xc]
push 0x10
push eax
push esi
mov word [esp + 0x18], 2
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jge 0x416c01
push str.bind_error
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x1c]
push 0x10
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x416c24
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x416c30
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x418bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push esi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, esi
jne 0x416c85
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
push edi
mov dword [esp + 8], esi
mov esi, dword [eax]
lea edi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.00416b10
add esp, 0xc
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret