joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024cebf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov ebx, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call fcn.10081b30
push 0x102ace74
lea ecx, [esp + 0x34]
call fcn.1007f360
mov esi, eax
cmp esi, 0xffffffff
jne 0x100208c7
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], 4
jge 0x1002087f
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.1007d7b0
mov dword [esp + 0xc], ebx
jmp 0x100209e2
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.1007d7b0
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.10020a10
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.1007d7b0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.1007e1e0
jmp 0x100209e2
test esi, esi
je 0x100209ce
mov eax, dword [esp + 0x30]
cmp byte [esi + eax - 1], 0x5c
je 0x10020975
mov edx, dword [0x1025e6e0]
mov dword [esp + 0x10], edx
mov eax, dword [eax - 8]
mov byte [esp + 0x24], 3
sub eax, esi
lea ecx, [esp + 0x30]
cmp eax, 4
jle 0x10020948
call fcn.1001fcc0
mov ecx, 0xfffffffc
sub ecx, esi
push ecx
add eax, ecx
mov edx, esp
mov dword [esp + 0x1c], esp
inc esi
push eax
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.100803d0
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.10020a10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.1007e360
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.1007e1e0
jmp 0x10020952
push ecx
lea ecx, [esp + 0x14]
call fcn.1007e360
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.1007d7b0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.1007e1e0
jmp 0x100209e2
cmp dword [eax - 8], 4
jge 0x10020989
push 0
lea ecx, [esp + 0x34]
call fcn.1007ee70
push eax
jmp 0x100209d3
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.1007d7b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.10020a10
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.1007d7b0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x24], bl
call fcn.1007e1e0
jmp 0x100209e2
push 0x102e2698
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.1007d8b0
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.1007e1e0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x10021d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024d007
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
push eax
add ecx, 0x1f0
mov dword [esp + 0x10], 0
call fcn.10011710
mov ecx, dword [0x1025e6e4]
mov dword [esp + 0x18], 1
mov dword [esp + 4], ecx
mov edx, dword [esp + 8]
push str.CacheMailFile.dat
push edx
lea eax, [esp + 0xc]
push 0x102a8c4c
push eax
mov byte [esp + 0x28], 2
call fcn.100864e0
mov esi, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.10083560
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.10083560
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x10021e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024d047
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
push eax
add ecx, 0x1f0
mov dword [esp + 0x10], 0
call fcn.10011710
mov ecx, dword [0x1025e6e4]
mov dword [esp + 0x18], 1
mov dword [esp + 4], ecx
mov edx, dword [esp + 8]
push str.ReMailFile.dat
push edx
lea eax, [esp + 0xc]
push 0x102a8c4c
push eax
mov byte [esp + 0x28], 2
call fcn.100864e0
mov esi, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.10083560
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.10083560
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x100228a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024d168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
lea edx, [edi + 0x168]
xor ebx, ebx
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.10023490
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 0x1b0]
push eax
lea ecx, [esi + 0x3c]
call fcn.100838c0
mov dword [esi + 0x20], 1
mov eax, dword [edi + 0x1b4]
push eax
lea ecx, [esi + 0x40]
call fcn.100838c0
mov eax, dword [edi + 0x5c]
lea ecx, [esp + 0x20]
mov eax, dword [eax + 0x30]
push eax
push ecx
call fcn.1001f000
add esp, 8
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.100836f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.10083560
lea edx, [edi + 0x1b8]
lea ecx, [esi + 0x24]
push edx
call fcn.100836f0
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.10021ed0
push eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 2
call fcn.100836f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.10083560
mov eax, dword [edi + 0x1ac]
lea ecx, [esi + 0x38]
push eax
call fcn.100838c0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
call fcn.100836f0
lea edx, [edi + 0x164]
mov ecx, esi
push edx
call fcn.100836f0
mov eax, dword [edi + 0x1a8]
lea ecx, [esi + 0x34]
push eax
call fcn.100838c0
mov eax, dword [edi + 0x5c]
lea ecx, [edi + 0x150]
push ecx
lea ecx, [esi + 0x14]
mov ax, word [eax + 0x34]
mov word [esi + 0x44], bx
mov word [esi + 0x30], ax
call fcn.100836f0
lea edx, [edi + 0x154]
push edx
lea ecx, [esi + 0x10]
call fcn.100836f0
lea eax, [edi + 0x15c]
lea ecx, [esi + 0xc]
push eax
call fcn.100836f0
lea ecx, [edi + 0x158]
push ecx
lea ecx, [esi + 8]
call fcn.100836f0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [edi + 0x64]
push esi
mov dword [esi + 0x54], edx
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x1dc]
mov dword [esi + 0x58], eax
call fcn.1000fba0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100266a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x102e5280
jmp 0x100266d0
push 0xffffffffffffffff
push 0x1024d6d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10094b30
mov eax, dword [0x1025e6e4]
lea ebx, [esi + 0x28]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [ebx], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 1
call fcn.100912d0
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x11
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0xa
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.100912d0
mov dword [esi + 0x8c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], edi
push 0x102e269c
mov ecx, ebx
mov byte [esp + 0x1c], 5
mov dword [esi], 0x1025bc48
mov dword [esi + 0x2c], edi
call fcn.100837e0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10027da0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x102e5738
jmp 0x10027dd0
push 0xffffffffffffffff
push 0x1024d8ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10094b30
mov eax, dword [0x1025e6e4]
lea edi, [esi + 0x28]
mov dword [esp + 0x14], 0
mov dword [edi], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.10090dd0
push 0x102e269c
mov ecx, edi
mov byte [esp + 0x18], 2
mov dword [esi], 0x1025bc58
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0
call fcn.100837e0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x44], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10027f00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10027f1d
mov eax, 1
pop esi
add esp, 0x190
ret
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10027f5d
mov eax, dword [0x102f7658]
test eax, eax
je 0x10027f53
push str.CTaskDispatch::Initilize:_TMGateway:_WSAStartup_failed_
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x190
ret
mov ecx, esi
call fcn.10028980
call fcn.1000b780
mov eax, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x44], eax
pop esi
add esp, 0x190
ret
Function at 0x10028090
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
je 0x100280af
push eax
call ebx
mov dword [esi + 0x30], 0xffffffff
xor eax, eax
push 6
mov dword [esp + 0xe], eax
push 1
mov dword [esp + 0x16], eax
push 2
mov dword [esp + 0x1e], eax
mov word [esp + 0x14], 0
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
jne 0x1002810e
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028106
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_Create_socket_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push edi
mov ecx, esi
mov word [esp + 0xc], 2
call fcn.10027fb0
mov di, ax
push 0
and edi, 0xffff
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [esi + 0x30]
xor ecx, ecx
lea edx, [esp + 0xc]
push 0x10
mov dword [esp + 0x18], ecx
push edx
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x10028196
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028188
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_bind_socket_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov ecx, dword [esi + 0x30]
push ecx
call ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 0x30]
push bind
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100281e1
mov eax, dword [0x102f7658]
test eax, eax
je 0x100281d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::StartListen:_listen_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov eax, dword [esi + 0x30]
push eax
call ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x100281f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
mov dword [esp + 0x14], ebx
mov ebp, 0x28
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push 0
push ecx
push 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
je 0x100282aa
test esi, esi
je 0x100282e6
jle 0x10028293
lea edx, [esp + 0x18]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10028291
mov eax, dword [esp + 0x124]
push 0
push ebp
lea ecx, [ebx + eax]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x10028317
test esi, esi
je 0x1002834f
add ebx, esi
sub ebp, esi
cmp ebx, 0x28
jl 0x10028225
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 8
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028372
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::RecvHookInfo:_Recv_HookInfo_failed._select___called_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028308
push str.CTaskDispatch::RecvHookInfo:_TMGateway:_Recv_HookInfo_timeout.
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028372
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTaskDispatch::RecvHookInfo:_Recv_HookInfo_failed__errno:__d__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov eax, dword [0x102f7658]
test eax, eax
je 0x10028372
push edi
push str.CTaskDispatch::RecvHookInfo:_The_connection_SOCKET:_d__has_been_closed__r_n
push str.CTaskDispatch
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8
Function at 0x1002a490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024dac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10094b30
xor edi, edi
lea ecx, [esi + 0x4c]
mov dword [esp + 0x14], edi
call fcn.100912d0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dx, word [esp + 0x24]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov word [esi + 0x34], dx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x7c], edi
mov dword [esi], 0x1025bd08
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x40], edx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x1002a530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024dae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10094b30
xor edi, edi
lea ecx, [esi + 0x4c]
mov dword [esp + 0x14], edi
call fcn.100912d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push edi
push edi
push edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
push edi
mov dword [esi], 0x1025bd08
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edi
mov word [esi + 0x34], di
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], eax
mov dword [esi + 0x7c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x1002a6b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024db38
push eax
mov dword fs:[0], esp
mov ecx, dword [ecx + 0x28]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [esi]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esi], eax
jne 0x1002a71c
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002a707
push str.CTransfer::RecvFromClient:_The_connection_has_been_closed_by_the_client__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
jge 0x1002a75c
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002a747
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTransfer::RecvFromClient:_Receive_data_from_client_failed__errno:__d__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov ecx, dword [0x102f7658]
cmp eax, 0x64
jge 0x1002a7ad
test ecx, ecx
je 0x1002a7cb
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.10083010
mov edx, dword [eax]
mov dword [esp + 0x10], 0
push edx
push str.CTransfer::RecvFromClient:_C__T:__s__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.10083560
jmp 0x1002a7cb
test ecx, ecx
je 0x1002a7cb
push eax
push str.CTransfer::RecvFromClient:_C__T:_Len:_d__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov ecx, dword [esp + 8]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x1002a7f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x1024db58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
mov ecx, dword [esp + 0x20]
push 0
mov eax, dword [edi]
mov edx, dword [esi + 0x2c]
push eax
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esp + 8], eax
jne 0x1002a86b
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002a856
push str.CTransfer::RecvFromServer:_The_connection_has_been_closed_by_the_server__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
cmp eax, 0xffffffff
jne 0x1002a8ae
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002a899
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTransfer::RecvFromServer:_Receive_data_from_server_failed__errno:__d__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0
call fcn.10004810
add esp, 0x14
test eax, eax
jne 0x1002a8ea
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov byte [ecx + edx], 0
mov eax, dword [esp + 8]
mov ecx, dword [0x102f7658]
cmp eax, 0x64
jge 0x1002a94d
test ecx, ecx
je 0x1002a96f
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.10083010
mov ecx, dword [eax]
mov dword [esp + 0x18], 0
push ecx
push str.CTransfer::RecvFromServer:_S__T:__s__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
jmp 0x1002a96b
test ecx, ecx
je 0x1002a96f
push eax
push str.CTransfer::RecvFromServer:_C__T:_Len:_d__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x1002a990
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx + 0x44]
push esi
or esi, 0xffffffff
push edi
test eax, eax
jne 0x1002a9b8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
ret 0xc
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edi
push eax
push ecx
mov ecx, 0x102f4478
call fcn.10057cc0
test eax, eax
mov eax, edi
jne 0x1002a9d9
mov eax, esi
pop edi
pop esi
ret 0xc
Function at 0x1002aee0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
mov eax, dword [0x102f7658]
sub esp, 0x10
test eax, eax
push esi
mov esi, ecx
je 0x1002af08
push str.CTransfer::ConnectServer
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
mov eax, dword [esi + 0x30]
mov word [esp + 4], 2
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov cx, word [esi + 0x34]
mov dword [esp + 8], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor edx, edx
push 6
mov dword [esp + 0x10], edx
push 1
push 2
mov word [esp + 0x12], ax
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 4]
push 0x10
push ecx
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1002af9e
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002af97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 6]
push eax
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
push eax
mov eax, dword [esi + 0x30]
push eax
push str.CTransfer::ConnectServer:_Connect_to_server__d___d__failed__errno__d__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x1c
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push edx
mov ecx, 0x102e1bc8
call fcn.10001d90
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002afd2
push str.CTransfer::ConnectServer:_Connect_to_the__server_successfully__r_n
push str.CTransfer
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x1002bd00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1002bd4f
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x114]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8