joyce8/EMBER2024-capa huggingface dataset:
Function at 0x912494
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl140.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x912502
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov edx, 0x40
mov eax, dword [ebp - 4]
call sub.rtl140.bpl__Sysutils_FileOpen_qqrx20System_UnicodeStringui
mov ebx, eax
test ebx, ebx
jle 0x9124ec
push 0
push ebx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, ebx
call sub.rtl140.bpl__Sysutils_FileClose_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x912509
lea eax, [ebp - 4]
call sub.rtl140.bpl__System__UStrClr_qqrpv
ret
Function at 0x93eecc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x93eee8
add esp, 0xfffffff0
call sub.rtl140.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x93f054
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.005ecd9c
xor eax, eax
mov dword [edi + 0x28], eax
lea eax, [edi + 0x2c]
call sub.rtl140.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
xor eax, eax
mov dword [edi + 0x58], eax
xor eax, eax
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x68], eax
xor eax, eax
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [edi + 0x48], eax
lea edx, [ebp - 8]
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call sub.rtl140.bpl__Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
lea eax, [edi + 0x30]
call sub.rtl140.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov dword [edi + 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov dl, 1
mov eax, dword [0x9231d0]
call fcn.009234f4
mov dword [edi + 0x38], eax
mov eax, edi
call fcn.009449a0
mov dl, 1
mov eax, dword [sym.imp.rtl140.bpl__Classes_TList_]
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov dword [edi + 0x20], eax
mov dl, 1
mov eax, dword [0x912be8]
call fcn.00912e24
mov dword [edi + 0x4c], eax
lea edx, [ebp - 0x10]
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_GetExeName_qqrv
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, dword [0x9f1178]
mov eax, dword [eax]
call fcn.00569430
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x34]
call sub.rtl140.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov dl, 1
mov eax, dword [sym.imp.rtl140.bpl__Contnrs_TObjectList_]
call sub.rtl140.bpl__Contnrs_TObjectList__bctr_qqrv
mov dword [edi + 0x3c], eax
mov dl, 1
mov eax, dword [sym.imp.rtl140.bpl__Classes_TStringList_]
call sub.rtl140.bpl__Classes_TStringList__bctr_qqrv
mov dword [edi + 0x5c], eax
mov dl, 1
mov eax, dword [sym.imp.rtl140.bpl__Classes_TStringList_]
call sub.rtl140.bpl__Classes_TStringList__bctr_qqrv
mov dword [edi + 0x60], eax
push 1
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x14]
mov ecx, 0x93f088
call sub.rtl140.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x911728]
call fcn.00912064
mov esi, eax
mov dword [edi + 0x44], esi
mov byte [esi + 0x79], 1
mov dword [esi + 0x68], 0x64
mov dl, 1
mov eax, dword [0x579f00]
call fcn.0057ab1c
mov dword [edi + 0x40], eax
mov eax, edi
call fcn.00943020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x93f05b
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl140.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x9bcc40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_ProcessMessages_qqrv
push 2
call sub.kernel32.dll_Sleep_1
sub ebx, esi
cmp edi, ebx
ja 0x9bcc4c
pop edi
pop esi
pop ebx
ret

Function at 0x55b970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc7000]
push edi
or ebp, 0xffffffff
jmp 0x55b992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55b999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55b988
mov eax, 1
add ebx, ebx
jne 0x55b9ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55b9a0
jne 0x55b9bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55b9a0
xor ecx, ecx
sub eax, 3
jb 0x55b9d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55ba42
mov ebp, eax
add ebx, ebx
jne 0x55b9db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x55b9e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x55ba0c
inc ecx
add ebx, ebx
jne 0x55b9f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55b9ed
jne 0x55ba09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55b9ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55ba2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55ba1d
jmp 0x55b98e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55ba2c
add edi, ecx
jmp 0x55b98e
pop esi
mov edi, esi
mov ecx, 0x2e0b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55ba4a
cmp byte [edi], 0x15
jne 0x55ba4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55ba4f
lea edi, [esi + 0x158000]
mov eax, dword [edi]
or eax, eax
je 0x55bac7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x162c98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x162de4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55ba7c
mov ecx, edi
jns 0x55baab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x162dec]
or eax, eax
je 0x55bac1
mov dword [ebx], eax
add ebx, 4
jmp 0x55ba99
call dword [esi + 0x162de8]
mov ebp, dword [esi + 0x162df0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55bafb
sub esp, 0xffffff80
jmp 0x493b33
Function at 0x10001680
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005120e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x100610a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
jmp fcn.10109e2f

Function at 0x10002410
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100512e7
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100610a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
jmp fcn.101198a3

Function at 0x10002a00
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050e78
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x100610a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], 0
jmp fcn.1011bb94

Function at 0x10002b90
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051326
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x100610a0]
xor eax, ebp
mov dword [ebp - 0x78], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10063e84], 0
jne 0x10002df4
mov dword [0x10063e84], 1
jmp fcn.1011fbed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.1003c184
mov esp, ebp
pop ebp
ret

Function at 0x10002e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002e5e
push 0
push 0
push 0
push 0x10002e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10013770
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100137a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x100138e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2e8], 0
push edi
je case.default.0x10013940
test eax, eax
je case.default.0x10013940
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x10013940
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x10013940
jmp dword [edx*4 + 0x10013a5c]
mov ecx, str.Header
mov edx, str.from
jmp 0x1001395d
mov ecx, str.Header
mov edx, 0x10052d2c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.10017d40
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013980
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x100139d5
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x10013a40
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10013a03
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x10013a40
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x10052d08
call fcn.1003cdec
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.1003cdec
add esp, 0x20
jmp case.default.0x10013940
test ebx, ebx
js 0x10013a3e
cmp ebx, 2
jg 0x10013a3e
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x10052d08]
push 2
push ecx
call fcn.1003cdec
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.1003cdec
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c184
add esp, 0xa4
ret
Function at 0x10013b00
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x5d4]
push 0x4000
push ebx
call fcn.10017ce0
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x10013b60
cmp dword [esi + 0x8600], 0
jne 0x10013b60
push ebx
push 0x10052d48
push 0x100
push eax
call fcn.10017d40
add esp, 0x10
mov dword [esi + 0x8600], 1
cmp dword [esi + 0x334], 0
je 0x10013be7
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013b70
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x10013b94
mov byte [esi + edi + 0x5d4], 0xa
inc edi
mov byte [esi + edi + 0x5d4], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10013bbe
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.1003c184
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x10052d08
call fcn.1003cdec
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call fcn.1003cdec
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.1003c184
pop ecx
ret
Function at 0x10013c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.100187f0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10013c5d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1003c184
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013c60
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x158]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x174]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x10013cc6
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x10013da9
cmp eax, 0x51
jne 0x10013da3
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x334], ecx
je 0x10013d5e
cmp dword [esi + 0x2e8], ecx
je 0x10013d3f
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x10013d3f
push eax
push 0x10052d2c
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.10017d40
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013d11
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10013d75
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x10013d5e
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10013d5e
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x10013db1
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x10013c70
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x10052d08
call fcn.1003cdec
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.1003cdec
add esp, 0x20
jmp 0x10013d3f
mov dword [esp + 0x14], eax
jmp 0x10013db1
mov dword [esp + 0x14], 0x37
push edi
call dword [0x10061004]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c184
add esp, 0xb8
ret
Function at 0x10013de0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x10013e5d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x10013e34
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.100192a0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.10013b00
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8604], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10015af0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x46c], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10015b44
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10013a70
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1003c184
add esp, 0x18
ret
mov edx, dword [esi + 0x470]
push edx
mov dword [esp + 0xc], 1
call fcn.1002d060
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x474]
push eax
call fcn.1002d060
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10015bbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10013a70
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1003c184
add esp, 0x18
ret
Function at 0x100161c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x10016335
cmp dword [ebp + 0x1d4], 0
push ebx
push esi
jne 0x1001632a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1001624c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100192a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10013b00
add esp, 0x18
jmp 0x10016333
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.1003da70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10016299
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.100192a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10013b00
add esp, 0x18
jmp 0x10016333
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.10016180
test eax, eax
jne 0x100162da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100192a0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.10013b00
add esp, 0x18
jmp 0x10016333
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.10016180
test eax, eax
jne 0x1001632a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.100192a0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10013b00
add esp, 0x18
jmp 0x10016333
push ebp
call fcn.10016120
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.1003c184
add esp, 0x10c
ret

Function at 0x10016350
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10016393
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100192a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10013a70
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10013a70
add esp, 8
pop esi
pop ecx
ret
Function at 0x100163b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x100610a0]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x100630d0]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10016453
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1003da70
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x1c], 0x9c
mov dword [esp + 0x20], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x10016447
mov dword [0x100630d0], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1003c184
add esp, 0xac
ret
mov dword [0x100630d0], 1
jmp 0x10016458
cmp eax, 2
je 0x100164a2
push esi
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10016489
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x100164a1
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1003c184
add esp, 0xac
ret

Function at 0x100164e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5c8]
test esi, esi
je 0x1001652d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1001652d
push 0x100164c0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x34]
push ecx
push edx
call fcn.1002d830
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x10016536
mov dword [edi + 0x5c8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10016540
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x1001652d
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1001652d
mov eax, edi
pop edi
pop esi
add esp, 8
ret