joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429fcc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x429fee
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x429fee
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x429fee
ret
cmp word [ebx + 4], 0x14c
jne 0x429fee
test word [ebx + 0x16], 2
je 0x429fee
test word [ebx + 0x16], 0x100
je 0x429fee
cmp word [ebx + 0x18], 0x10b
jne 0x429fee
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x429fee
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x42a07a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x42a00e
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00410f59
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x429fee
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x42a07a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x429fee
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x429fee
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x429fee
ret
cmp word [ebx + 4], 0x14c
jne 0x429fee
test word [ebx + 0x16], 2
je 0x429fee
test word [ebx + 0x16], 0x100
je 0x429fee
cmp word [ebx + 0x18], 0x10b
jne 0x429fee
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x429fee
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x42a07a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x42a00e
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00410f59
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x429fee
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x42a131
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x42a18a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x42a131
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x42a140
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x82fde3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x42a191
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.00411007
cmp eax, dword [ebp + 0xc]
pop eax
je 0x42a230
add edi, 4
add eax, 2
dec ecx
jne 0x42a176
call 0x42a1dd
loope 0x42a1d3
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x42a22d
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x42a23e
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x42a1f1
cmp eax, ecx
ja 0x42a1f1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x42a27b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x42a271
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004114e6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x42a140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x42a18a
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x42a131
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x42a140
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x82fde3
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x42a191
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.00411007
cmp eax, dword [ebp + 0xc]
pop eax
je 0x42a230
add edi, 4
add eax, 2
dec ecx
jne 0x42a176
call 0x42a1dd
loope 0x42a1d3
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x42a22d
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x42a23e
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x42a1f1
cmp eax, ecx
ja 0x42a1f1
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x42a27b
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x42a271
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004114e6
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1000d420
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0xc]
mov byte [esi + 4], 1
push eax
push 0
push esi
push 0x1000d340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret

Function at 0x1000f5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov cl, byte [esi]
test cl, cl
je 0x1000f623
push edi
mov edi, 0x100
movsx edx, cl
lea esi, [esi + 1]
or edx, edi
add edi, 0x100
mov ecx, edx
shr ecx, 2
xor ecx, edx
imul edx, edx
and ecx, 0xf
rol eax, cl
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x1000f5f6
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
pop edi
pop esi
pop ebp
ret
Function at 0x100113a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10157aa0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, word [eax]
mov edi, ecx
mov ecx, 2
movdqu xmmword [ebp - 0x14], xmm0
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret 8

Function at 0x10011410
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10157aa0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, word [eax]
mov edi, ecx
mov ecx, 2
movdqu xmmword [ebp - 0x14], xmm0
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_bind]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret 8
Function at 0x10013470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx edx, word [eax]
movzx esi, dx
movzx eax, si
movzx ecx, word [edi]
add ecx, 8
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
cmp eax, ecx
jb 0x1001356e
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, 0x8000
mov edx, ebx
test ebx, ebx
jne 0x100134b2
or word [edi + 2], ax
mov edx, edi
jmp 0x100134c6
or ax, word [edi + 2]
mov word [ebx + 2], ax
mov ax, word [edi]
mov word [ebx], ax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
movzx ecx, word [edi]
xor esi, esi
mov eax, dword [edi + 4]
add edx, 8
not eax
mov dword [ebp + 8], 0
lea ebx, [ecx + 1]
shr cx, 2
and ebx, eax
movzx ecx, cx
lea eax, [edi + 8]
not ebx
cmp si, cx
jae 0x10013511
mov esi, ecx
lea ecx, [esi*4]
movzx ecx, cx
mov dword [ebp + 8], ecx
nop
mov ecx, dword [eax]
add eax, 4
xor ecx, ebx
mov dword [edx], ecx
mov ebx, ecx
add edx, 4
dec esi
jne 0x10013500
mov cx, word [edi]
sub cx, word [ebp + 8]
movzx esi, cx
test si, si
je 0x10013538
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
xor cl, bl
add esi, 0xffff
mov byte [edx + eax - 1], cl
test si, si
jne 0x10013522
mov ax, word [edi]
mov esi, dword [ebp - 4]
add ax, 8
mov ebx, dword [ebp + 0x14]
movzx eax, ax
add edi, eax
sub esi, eax
add ebx, eax
movzx ecx, si
mov dword [ebp - 4], esi
mov eax, 0x8000
mov dword [ebp + 0x14], ebx
movzx edx, word [edi]
add edx, 8
cmp ecx, edx
jae 0x100134a4
mov edx, dword [ebp - 8]
pop ebx
mov ecx, dword [ebp + 0x10]
sub edx, esi
pop edi
mov ax, si
pop esi
mov word [ecx], dx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10013820
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WSOCK32.dll_socket]
push 4
lea ecx, [ebp - 4]
mov dword [edi + 4], eax
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 1
push 6
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10013910
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x10157aa0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x8004667e
push dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movdqa xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
movzx eax, word [esi]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
push edi
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov esi, dword [esp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x100139eb
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0x1f4
push ecx
mov eax, dword [eax + 0x34]
mov ecx, esi
mov dword [esp + 0x14], 0
call eax
test eax, eax
jle 0x10013a26
lea eax, [esp + 8]
mov dword [esp + 0xc], 0xffffffff
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 4
push eax
push 0x1007
push 0xffff
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_getsockopt]
cmp dword [esp + 0xc], 0
jne 0x10013a26
mov ecx, esi
call fcn.10013a80
test al, al
je 0x10013a26
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x8004667e
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret 8
Function at 0x10013a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2c
mov eax, dword [0x10157aa0]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x10
push eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
xorps xmm0, xmm0
movdqa xmmword [esp + 0x18], xmm0
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x10013b55
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
lea edx, [esi + 8]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10013ad2
push dword [esp + 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
xorps xmm0, xmm0
mov dword [esi + 0x28], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x10
push eax
push dword [esi + 4]
movdqa xmmword [esp + 0x1c], xmm0
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
jne 0x10013b55
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
lea edx, [esi + 0x2c]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10013b26
push dword [esp + 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
mov dword [esi + 0x4c], eax
mov al, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
xor al, al
pop esi
xor ecx, esp
call fcn.100bb5b4
mov esp, ebp
pop ebp
ret
Function at 0x100a4920
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100cdcb4
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x10157aa0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], vtable.ToraBase::Handler.0
mov byte [edi + 0xd], 0
mov byte [edi + 0xc], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0x10]
mov dword [esp + 0x38], 0
mov dword [edi], vtable.FensApiSession.0
call fcn.1000d280
push 0
lea ecx, [edi + 0x14]
mov byte [esp + 0x3c], 1
call fcn.1000d480
lea ecx, [edi + 0x51c8]
mov byte [esp + 0x38], 2
call fcn.1000d280
mov eax, dword [esp + 0x4c]
lea edx, [edi + 0xd8]
mov dword [edi + 0x5128], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x512c], eax
mov eax, dword [esp + 0x40]
sub edx, eax
mov byte [esp + 0x38], 3
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x100a49c1
mov eax, dword [esp + 0x44]
lea esi, [edi + 0x120]
push 0x5000
push 0
mov dword [edi + 0x118], eax
push esi
mov dword [edi + 0x11c], 0
mov dword [edi + 0x5120], 0
call fcn.100bc130
mov dword [edi + 0x5124], esi
lea eax, [edi + 0x5130]
xorps xmm0, xmm0
lea esi, [edi + 0x5140]
movq qword [eax], xmm0
xor ecx, ecx
mov byte [eax + 8], 0
mov dword [edi + 0x513c], eax
mov word [eax], cx
mov eax, dword [edi + 0x513c]
push 0x80
push ecx
push esi
mov word [eax + 2], cx
mov eax, dword [edi + 0x513c]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x60]
mov dword [edi + 0x51cc], eax
call fcn.100bc130
add esp, 0x18
mov dword [esi], 0x11000
lea eax, [esp + 0xf]
mov dword [esi + 4], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xf], 0
push eax
call fcn.1000e4b0
push dword [esp + 0x54]
lea eax, [esi + 8]
mov byte [esp + 0x3c], 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call fcn.1000e4e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x16
push ecx
push 0x100ea9c0
mov ecx, eax
call fcn.1000e420
mov edx, dword [edi + 0x51cc]
movdqu xmm0, xmmword [edx]
movdqu xmmword [eax], xmm0
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov cx, word [edx + 0x14]
mov word [eax + 0x14], cx
lea ecx, [esp + 0x18]
call fcn.1000e570
lea ecx, [esp + 0x18]
mov dword [edi + 0x51c0], eax
mov dword [edi + 0xd4], 0
mov byte [edi + 0x51c4], 0
mov byte [esp + 0x38], 3
call fcn.1000cac0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 0x18
Function at 0x100a4c60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x12c
mov eax, dword [0x10157aa0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x13c]
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
mov ebx, eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 4
push 0xffff
push ebx
call esi
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 1
push 6
push ebx
call esi
mov esi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x18], 1
call esi
push dword [esp + 0x140]
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x24], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WSOCK32.dll_htons]
push edi
mov word [esp + 0x26], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x100a4d95
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 0x7a120
push eax
push 0
lea eax, [ebx + 1]
mov dword [esp + 0x44], ebx
push eax
mov dword [esp + 0x44], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jle 0x100a4d89
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0xffffffff
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
push 0x1007
push 0xffff
push ebx
call dword [sym.imp.WSOCK32.dll_getsockopt]
cmp dword [esp + 0xc], 0
je 0x100a4d95
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100a4dac
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x8004667e
push ebx
call esi
mov eax, ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bb5b4
add esp, 0x12c
ret 8
Function at 0x100a4dd0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x100cdd2b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x10157aa0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157aa0]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x11c], 0
jg 0x100a4e1d
xor al, al
jmp 0x100a501e
xor ebp, ebp
nop
mov eax, dword [esi + 0x11c]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
push ecx
inc eax
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x100a501c
mov ecx, dword [esi + 0x5120]
mov eax, 0x5000
sub eax, ecx
push 0
push eax
lea eax, [esi + 0x120]
add eax, ecx
push eax
mov eax, dword [esi + 0x11c]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x100a5000
add dword [esi + 0x5120], eax
cmp dword [esi + 0x5120], 0
jle 0x100a4ff4
mov edi, dword [esi + 0x5120]
cmp edi, 8
jb 0x100a4ff4
mov ecx, dword [esi + 0x5124]
movzx edx, word [ecx]
lea ebx, [edx + 8]
cmp edi, ebx
jb 0x100a4ff4
test dx, dx
jne 0x100a4f05
movzx eax, word [ecx + 2]
test ax, ax
jne 0x100a4ee3
cmp dword [ecx + 4], 0
je 0x100a4fb5
push 0xfffffffffffffff8
jmp 0x100a4fed
mov ecx, esi
cmp eax, 1
jne 0x100a4fe3
push dword [esi + 0x51c0]
mov edx, dword [esi]
lea eax, [esi + 0x5140]
push eax
call dword [edx + 0x10]
jmp 0x100a4fb5
cmp dx, word [0x100f7ac4]
ja 0x100a4feb
cmp dword [ecx + 4], 1
jne 0x100a4fe7
lea eax, [ecx + 8]
push eax
call fcn.1000e290
add esp, 4
mov dword [esp + 0x20], 0
mov edi, eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.1000d2d0
push dword [esi + 0x512c]
mov ecx, dword [esi + 0x5128]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x148], 0
push eax
mov dword [esp + 0x28], 0x283c
call fcn.1000da70
lea ecx, [esp + 0x14]
call fcn.1000d2b0
push dword [esi + 0x512c]
mov ecx, dword [esi + 0x5128]
lea eax, [esp + 0x20]
push 0
push 0
push eax
mov byte [esi + 0x51c4], 1
mov dword [esp + 0x2c], 0x283d
call fcn.1000da70
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.1000d2a0
mov ecx, dword [esi + 0x5124]
sub dword [esi + 0x5120], ebx
push dword [esi + 0x5120]
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.100baf70
add esp, 0xc
cmp dword [esi + 0x5120], 0
jg 0x100a4ea1
jmp 0x100a4ff4
push 0xfffffffffffffff6
jmp 0x100a4fef
push 0xfffffffffffffff9
jmp 0x100a4fed
push 0xfffffffffffffff7
mov ecx, esi
call fcn.100a4bb0
inc ebp
cmp ebp, 8
jl 0x100a4e20
jmp 0x100a501c
jns 0x100a5013
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100a501c
push 0xfffffffffffffffc
jmp 0x100a5015
push 0xfffffffffffffffd
mov ecx, esi
call fcn.100a4bb0
mov al, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.100bb5b4
add esp, 0x12c
ret