joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10132fb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x14], ecx
lea eax, [ecx + 0x32350]
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x14], eax
nop dword [eax + eax]
xor ebx, ebx
mov edi, ebp
lea eax, [ebx + 1]
lea ebp, [ebx + 4]
nop word [eax + eax]
movzx edx, word [ecx + eax*2 + 0x329f4]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x18]
add ebx, dword [ecx + edx*4 + 0x30ca0]
sub ebp, 1
jne 0x10132fe0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x10132fd0
pop edi
pop esi
pop ebp
mov dword [ecx + 0x32390], 0
pop ebx
add esp, 0xc
ret
Function at 0x10133040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebx, ecx
mov ebp, 4
push esi
push edi
lea eax, [ebx + 0x30ca0]
nop word [eax + eax]
movzx edi, byte [ebx + ebp + 0x304a0]
mov edx, edi
mov esi, edi
shr edx, 1
and esi, 1
dec edx
or esi, 2
mov ecx, edx
shl esi, cl
lea ecx, [ebx + 0x3290e]
push eax
mov eax, ebp
sub eax, esi
sub esi, edi
push eax
lea ecx, [ecx + esi*2]
call fcn.10131150
mov dword [esp + ebp*4 + 0x2c], eax
add esp, 8
inc ebp
lea eax, [ebx + 0x30ca0]
cmp ebp, 0x80
jb 0x10133060
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 4
sub ecx, ebx
lea ebp, [ebx + 0x31750]
lea esi, [ebx + 0x32710]
mov dword [esp + 0x18], ebp
lea edx, [ebx + 0x31b58]
mov dword [esp + 0x10], esi
sub ecx, 0x31b50
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x32394]
xor edi, edi
test eax, eax
je 0x10133142
nop dword [eax]
mov ebp, dword [esp + 0x10]
mov eax, edi
xor esi, esi
or eax, 0x40
nop dword [eax + eax]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [ebx + ecx*4 + 0x30ca0]
cmp eax, 1
jne 0x10133100
mov ebp, dword [esp + 0x18]
mov dword [ebp + edi*4], esi
inc edi
mov eax, dword [ebx + 0x32394]
cmp edi, eax
jb 0x101330f0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xe
cmp eax, ecx
jbe 0x10133167
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [ebx + 0x32394]
jb 0x10133150
mov eax, dword [ebp]
mov ecx, 4
mov edi, dword [esp + 0x1c]
mov dword [edx - 8], eax
mov eax, dword [ebp + 4]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
add edx, 8
nop word [eax + eax]
movzx eax, byte [ebx + ecx + 0x304a0]
lea edx, [edx + 4]
inc ecx
mov eax, dword [ebp + eax*4]
add eax, dword [edx + edi - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x10133190
mov edx, dword [esp + 0x14]
sub esi, 0xffffff80
add ebp, 0x100
mov dword [esp + 0x10], esi
add edx, 0x200
mov dword [esp + 0x18], ebp
sub edi, 0x200
mov dword [esp + 0x14], edx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], edi
jne 0x101330e0
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3baf8], 0
pop ebx
add esp, 0x214
ret
Function at 0x10133200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x44
push ebx
mov ebx, ecx
xor edx, edx
push ebp
push esi
push edi
mov dword [ebx + 0x3bad4], 0
lea esi, [ebx + 0x8c]
mov dword [ebx + 0x3bad0], 0
mov dword [esp + 0x1c], ebx
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0x20
mov dword [ebx + 0x70], 1
mov dword [ebx + 0x64], 4
mov dword [ebx + 0x74], 0
nop word [eax + eax]
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x10133260
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 5
mov ecx, ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x48], 0
call fcn.10130c60
lea edx, [ebx + 0x304a0]
mov eax, 2
mov word [edx], 0x100
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
nop
mov ecx, ebx
mov ebp, 1
sar ecx, 1
dec ecx
shl ebp, cl
test ebp, ebp
je 0x101333bc
lea edi, [eax + edx]
mov ecx, ebp
mov al, bl
mov edx, dword [esp + 0x18]
movzx eax, al
mov esi, ecx
imul eax, eax, 0x1010101
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x14], eax
inc ebx
cmp ebx, 0x16
jl 0x10133380
mov ebx, dword [esp + 0x1c]
mov edi, 8
nop dword [eax + eax]
xor edx, edx
mov eax, edi
lea esi, [edx + 4]
nop word [eax + eax]
imul eax, eax
add edx, edx
cmp eax, 0x10000
jb 0x101333fa
nop dword [eax]
shr eax, 1
inc edx
cmp eax, 0x10000
jae 0x101333f0
sub esi, 1
jne 0x101333e0
mov eax, edi
mov ecx, 0xa1
shr eax, 4
sub ecx, edx
add edi, 0x10
mov dword [ebx + eax*4 + 0x30ca0], ecx
cmp edi, 0x800
jb 0x101333d0
pop edi
mov dword [ebx + 0x323ac], esi
mov dword [ebx + 0x3bb14], esi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x101343e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
mov ebp, ecx
xor edi, edi
mov eax, dword [eax]
and eax, 7
mov dword [esp + 0x10], ebp
cmp edx, 5
jae 0x10134403
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ebp
push esi
mov dword [esp + 0x10], edx
lea esi, [edi + ebp]
cmp esi, edx
jae 0x10134427
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10134427
inc esi
cmp esi, edx
jb 0x10134418
mov edi, esi
sub edi, ebp
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10134542
cmp ecx, 3
jbe 0x10134465
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [esp + 0x14], ebx
test cl, cl
je 0x101344a1
cmp cl, 0xff
je 0x101344a1
mov edx, dword [esp + 0x10]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
jmp 0x10134411
dec ecx
shl eax, cl
and eax, 7
je 0x1013443e
cmp byte [eax + 0x101b0a48], 0
je 0x10134491
movzx ecx, byte [eax + 0x101b0a40]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x1013448d
cmp cl, 0xff
jne 0x1013443e
mov edx, dword [esp + 0x10]
and eax, 3
mov ebx, edi
add eax, eax
or eax, 1
inc edi
jmp 0x10134411
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
nop
cmp dword [esp + 0x28], 0
je 0x101344ce
lea ebx, [edi + 5]
add ebx, edx
jmp 0x101344d5
mov ebx, edx
sub ebx, edi
sub ebx, 5
test eax, eax
je 0x1013450a
movzx ebp, byte [eax + 0x101b0a40]
mov ecx, 0x18
shl ebp, 3
mov edx, ebx
sub ecx, ebp
shr edx, cl
test dl, dl
je 0x101344f7
cmp dl, 0xff
jne 0x1013450a
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor edx, ebx
jmp 0x101344c0
mov ebp, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 0x10]
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
neg cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
jmp 0x10134411
pop esi
pop ebx
cmp ecx, 3
jbe 0x10134559
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x1013c9e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d1d8
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x10], 0
je 0x1013ca7f
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], 4
movups xmmword [ebp - 0x38], xmm0
jb 0x1013ca1f
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1013ca7f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.1013c2a0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.1013c240
lea ecx, [ebp - 0x28]
call fcn.1013c300
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.1013c2d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1013d820
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x2c]
movups xmmword [esp + 4], xmm0
mov dword [esp + 4], eax
mov eax, esi
movups xmmword [esp + 0x14], xmm0
cmp dword [esi + 0x14], 0x10
jb 0x1013d847
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1013d87e
push dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
call fcn.1013d480
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x28]
pop esi
add esp, 0x20
ret
push esi
push eax
call fcn.1013d730
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0xb0
cmp eax, 0xffffffff
je 0x1013dfc4
push esi
lea ecx, [esp + 4]
mov dword [esp + 4], 0x80
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1013dfa2
push dword [esp + 4]
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x38]
push eax
call fcn.1013b2b0
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
call fcn.1013ebd0
mov ecx, dword [esp + 0xb8]
call fcn.1013b390
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
push 0
lea ecx, [esp + 8]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013e200
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1013e236
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x1013e236
jne 0x1013e22d
cmp dword [esp + 8], 2
jb 0x1013e236
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret
Function at 0x1013e260
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018cba8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 8], 0xffffffff
jne 0x1013e29b
mov esi, dword [ebx]
mov ecx, edi
call fcn.1013b5e0
push eax
mov ecx, ebx
call dword [esi + 0x90]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
call fcn.1013b950
push eax
mov ecx, edi
call fcn.1013b570
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1013e31d
call esi
cmp eax, 0x2714
je 0x1013e2a1
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.1013bab0
push eax
push esi
mov dword [ebp - 4], 0
call fcn.1013e600
mov edx, dword [ebp - 0x10]
add esp, 8
cmp edx, 0x10
jb 0x1013e31d
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1013e313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013e313
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10161214
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1013e330
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
jne 0x1013e371
mov esi, dword [edi]
mov ecx, ebx
call fcn.1013b5e0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.1013b950
mov ecx, ebx
mov esi, eax
call fcn.1013b570
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1013e406
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x1013e3e0
cmp esi, 0x2733
je 0x1013e3e0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.1013bab0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.1013e600
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10005f00
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013e442
mov ecx, edi
call fcn.1013f730
test eax, eax
je 0x1013e406
push eax
call fcn.1013e570
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x84]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.connect_timed_out
lea ecx, [ebp - 0x44]
call fcn.10011b80
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.1013bab0
push 0
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.10141310
push 0x101f9340
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013e490
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018cba8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x1013e4cb
mov esi, dword [edi]
mov ecx, ebx
call fcn.1013b5e0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
call fcn.1013b950
push eax
mov ecx, ebx
call fcn.1013b570
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1013e530
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x1013e530
cmp esi, 0x2733
je 0x1013e530
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.1013bab0
push eax
push esi
mov dword [ebp - 4], 0
call fcn.1013e600
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.10005f00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1013ef30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d540
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
cmp esi, 0xffffffff
je 0x1013f0e2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x164], 0
test al, 1
je 0x1013ef92
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x36c], 1
test al, 2
je 0x1013efa6
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], 1
test al, 4
je 0x1013efba
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.101465b0
lea eax, [esi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], eax
nop dword [eax]
push dword [0x1019455c]
mov esi, dword [ebp - 0x10]
push dword [0x10194558]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.10161c30
push 0
push 0xf4240
push esi
push edi
mov dword [ebp - 0x34], eax
call fcn.10161c30
imul eax, eax, 0xf4240
lea ecx, [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 0x30], edi
call fcn.101465d0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x1013f0a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
jne 0x1013f0a2
lea ecx, [ebp - 0x24]
call fcn.101465d0
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.100fc620
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jg 0x1013f08e
jl 0x1013f080
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x1013f08e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.101533c0
jmp 0x1013f09a
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.100fc620
lea ecx, [ebp - 0x24]
call fcn.100365f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100365f0
test esi, esi
jns 0x1013f0cc
cmp ebx, 0x2714
je 0x1013efd0
push ebx
call fcn.1013e570
add esp, 4
test esi, esi
mov ecx, dword [ebp - 0xc]
setg al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x60]
call fcn.1013a190
push 0x101f8a10
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013f100
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x1013f12b
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x1013f12b
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f1bc
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f1a2
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f165
test edi, edi
jns 0x1013f196
call ebx
cmp eax, 0x2714
je 0x1013f138
test edi, edi
jns 0x1013f196
call ebx
cmp eax, 0x2733
jne 0x1013f17a
cmp byte [esi + 0x20], 0
jne 0x1013f1d6
jmp 0x1013f196
cmp eax, 0x274c
je 0x1013f1d6
push eax
call fcn.1013e570
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [esp + 8]
call fcn.10141340
push 0x101f9340
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
lea ecx, [esp + 0x14]
call fcn.10141340
push 0x101f9340
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013f1f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d558
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x21], 0
je 0x1013f238
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x1013f238
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f30a
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], 0x80
nop word [eax + eax]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f2f2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f28c
test edi, edi
jns 0x1013f290
call ebx
cmp eax, 0x2714
je 0x1013f250
test edi, edi
js 0x1013f2bc
push dword [ebp - 0x10]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp + 0x14]
call fcn.1013b2b0
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.1013b450
lea ecx, [ebp + 0x14]
call fcn.10009230
jmp 0x1013f2dd
call ebx
cmp eax, 0x2733
jne 0x1013f2cd
cmp byte [esi + 0x20], 0
jne 0x1013f322
jmp 0x1013f2dd
cmp eax, 0x274c
je 0x1013f322
push eax
call fcn.1013e570
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0
lea ecx, [ebp - 0x3c]
call fcn.1013a190
push 0x101f8a10
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [ebp - 0x3c]
call fcn.10141340
push 0x101f9340
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
lea ecx, [ebp - 0x68]
call fcn.10141340
push 0x101f9340
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x1013f367
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
or eax, dword [ecx + 4]
je 0x1013f367
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f3d0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f3b6
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f3a1
test edi, edi
jns 0x1013f3aa
call ebx
cmp eax, 0x2714
je 0x1013f374
test edi, edi
jns 0x1013f3aa
call fcn.1013ebd0
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8a10
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [esp + 8]
call fcn.10141340
push 0x101f9340
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3