joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008f4a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x1008f669
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10106354]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10106390]
cmp eax, dword [ecx + 4]
jle 0x1008f514
push 0x10106390
call fcn.100d8ed3
add esp, 4
cmp dword [0x10106390], 0xffffffff
jne 0x1008f514
push str.client.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0x151a0
push 0x10106390
mov dword [0x10106394], eax
call fcn.100d8e89
add esp, 4
mov eax, dword [0x10106394]
mov ecx, esi
call eax
push str.Huge_Claws
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.10007b20
lea edx, [esi + 0x56]
mov ecx, eax
call fcn.10007000
mov ecx, dword [ebp - 0x10]
mov bl, al
cmp ecx, 0x10
jb 0x1008f56e
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f564
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008f564
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d8ffc
add esp, 8
test bl, bl
je 0x1008f669
mov eax, dword [0x10107740]
mov ebx, dword [0x1010554c]
push ebx
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
push ebx
test eax, eax
jne 0x1008f672
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1008f698
mov bl, byte [0x10105cc4]
add edi, 0x24
test bl, bl
je 0x1008f5c2
or dword [edi], 0x808
xor bl, bl
mov byte [0x10105cc4], bl
mov ecx, dword [ebp - 8]
mov eax, dword [0x100edbd0]
mov ecx, dword [ecx]
cmp dword [eax + ecx], 0x32
jne 0x1008f637
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [0x100ff520]
call fcn.100d97f0
mov dword [esi], eax
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x48]
mov eax, dword [esi + 0x4a44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [0x100ff520]
call fcn.100d97f0
mov dword [esi + 0x4a44], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [0x100edbd0]
cmp dword [eax + ecx], 0x32
jne 0x1008f64c
test byte [edi], 4
je 0x1008f669
test bl, bl
jne 0x1008f669
mov eax, dword [0x10107740]
mov byte [0x10105cc4], 1
mov eax, dword [eax + 0x48]
mov dword [eax + 0x4a44], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x60]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x80]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x2c]
mov ecx, esi
call edx
test al, al
jne 0x1008f5a7
mov bl, byte [0x10105cc4]
add edi, 0x24
jmp 0x1008f637
Function at 0x1008f6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1008f838
mov eax, dword fs:[0x2c]
mov edx, dword [0x10106354]
mov edx, dword [eax + edx*4]
mov eax, dword [0x10106390]
cmp eax, dword [edx + 4]
jle 0x1008f71a
push 0x10106390
call fcn.100d8ed3
add esp, 4
cmp dword [0x10106390], 0xffffffff
jne 0x1008f71a
push str.client.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0x151a0
push 0x10106390
mov dword [0x10106394], eax
call fcn.100d8e89
add esp, 4
mov eax, dword [0x10106394]
mov ecx, esi
call eax
push str.weapon_charger_claw
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10007b20
lea edx, [esi + 6]
mov ecx, eax
call fcn.10007000
mov ecx, dword [ebp - 4]
mov bl, al
cmp ecx, 0x10
jb 0x1008f774
mov edx, dword [ebp - 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f76a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008f76a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d8ffc
add esp, 8
test bl, bl
je 0x1008f838
mov ecx, dword [edi]
mov eax, dword [0x100edbd0]
cmp dword [eax + ecx], 5
jne 0x1008f7e6
cmp byte [0x10105cc3], 0
je 0x1008f838
mov eax, dword [0x10107740]
xor edx, edx
movaps xmm0, xmmword [0x10100750]
mov ecx, dword [eax + 4]
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 4], 0x64
mov byte [ebp - 2], 0
mov al, byte [ebp - 0x14]
xor byte [ebp + edx - 0x13], al
inc edx
cmp edx, 0x10
jb 0x1008f7b5
mov word [ebp - 3], 0x100
lea edx, [ebp - 0x13]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x19c]
call eax
mov byte [0x10105cc3], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x10105cc3], 0
jne 0x1008f838
mov eax, dword [0x10107740]
xor edx, edx
movaps xmm0, xmmword [0x100fff70]
mov ecx, dword [eax + 4]
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 4], 0x2c
mov byte [ebp - 2], 0
nop
mov al, byte [ebp - 0x14]
xor byte [ebp + edx - 0x13], al
inc edx
cmp edx, 0x10
jb 0x1008f810
mov word [ebp - 3], 0x100
lea edx, [ebp - 0x13]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x19c]
call eax
mov byte [0x10105cc3], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1008f850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push edi
test esi, esi
je 0x1008fa21
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10106354]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10106390]
cmp eax, dword [ecx + 4]
jle 0x1008f8c1
push 0x10106390
call fcn.100d8ed3
add esp, 4
cmp dword [0x10106390], 0xffffffff
jne 0x1008f8c1
push str.client.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0x151a0
push 0x10106390
mov dword [0x10106394], eax
call fcn.100d8e89
add esp, 4
mov eax, dword [0x10106394]
mov ecx, esi
call eax
push str.First_Aid_Kit
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.10007b20
lea edx, [esi + 0x56]
mov ecx, eax
call fcn.10007000
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 5], al
cmp ecx, 0x10
jb 0x1008f91f
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f912
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008f912
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d8ffc
mov al, byte [ebp - 5]
add esp, 8
test al, al
je 0x1008fa21
mov eax, dword [0x10107740]
mov edi, dword [0x10105544]
push edi
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
push edi
test eax, eax
jne 0x1008f950
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x1008f970
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x60]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x80]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x2c]
mov ecx, esi
call edx
test al, al
je 0x1008f9ff
or dword [ebx + 0x24], 0x808
cmp byte [0x10107802], 0
jne 0x1008fa21
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [0x10105824]
call fcn.100d97f0
mov dword [esi], eax
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x48]
mov eax, dword [esi + 0x4a44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [0x10105824]
call fcn.100d97f0
mov dword [esi + 0x4a44], eax
mov byte [0x10107802], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [0x10107802], 0
je 0x1008fa21
mov eax, dword [0x10107740]
mov byte [0x10107802], 0
mov eax, dword [eax + 0x48]
mov dword [eax + 0x4a44], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10090210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101055e4]
push esi
push edi
cmp eax, 1
jne 0x1009027e
mov eax, dword [0x10107740]
mov edi, dword [0x10105538]
push edi
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
push edi
test eax, eax
jne 0x10090248
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x10090268
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x60]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x80]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x2c]
mov ecx, esi
call edx
test al, al
je 0x100903d3
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 8], 0xffffff
pop ebp
ret 8
cmp eax, 2
jne 0x100902e2
mov eax, dword [0x10107740]
mov edi, dword [0x10105538]
push edi
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
push edi
test eax, eax
jne 0x100902ac
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x100902cc
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x60]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x80]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x2c]
mov ecx, esi
call edx
test al, al
je 0x100903d3
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax + 4], 0
pop ebp
ret 8
cmp eax, 4
jne 0x100903d3
mov eax, dword [0x10107740]
mov edi, dword [0x10105538]
push edi
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
call eax
push edi
test eax, eax
jne 0x10090314
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jmp 0x10090334
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x60]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x80]
call eax
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x2c]
mov ecx, esi
call edx
test al, al
je 0x100903b1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100ff0d0]
call fcn.100d97f0
mov dword [esi], eax
mov eax, dword [0x10107740]
mov esi, dword [eax + 0x48]
mov eax, dword [esi + 0x4a44]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101003a0]
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100ff0d0]
call fcn.100d97f0
cmp byte [0x101077fb], 0
mov dword [esi + 0x4a44], eax
jne 0x100903d3
pop edi
mov byte [0x101077fb], 1
pop esi
pop ebp
ret 8
cmp byte [0x101077fb], 0
je 0x100903d3
mov eax, dword [0x10107740]
mov byte [0x101077fb], 0
mov eax, dword [eax + 0x48]
mov dword [eax + 0x4a44], 0
pop edi
pop esi
pop ebp
ret 8
Function at 0x1009dd40
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x1009dd76
mov al, byte [esi]
push eax
call fcn.100aaba0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x1009dd58
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x100a6710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6e5], 0
je 0x100a679c
cmp dword [edi + 0x1a8], 0
je 0x100a6757
push 1
push edi
call fcn.100997f0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
call fcn.100997f0
add esp, 0x24
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x100a676b
sub eax, 1
je 0x100a676b
sub eax, 1
jne 0x100a679c
push dword [edi + 0x148]
lea eax, [ecx*2 + 0x100dfb94]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x130]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.100a6fc0
add esp, 0xc
test eax, eax
je 0x100a6b3b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x100a6bb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x100a6b80
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.100b8dd0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.100a67a0
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x938], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
Function at 0x100a6fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x158]
add esi, eax
mov eax, dword [ecx + 0x270]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x100a7080
cmp dword [ecx + edx*4 + 0x148], 0x100a69e0
jne 0x100a7080
cmp dword [esi], 0
je 0x100a7009
test edi, edi
je 0x100a7080
mov ebx, dword [ecx + edx*4 + 0x130]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.100b5190
add esp, 0x14
cmp eax, 0xffffffff
je 0x100a7080
test al, 1
je 0x100a7080
mov ecx, dword [esi]
test ecx, ecx
jne 0x100a7069
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4bc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x100a7058
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100a7080
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x180], 0
jne 0x100a7240
mov eax, dword [eax + 0x130]
cmp eax, 0xffffffff
je 0x100a7240
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100a74ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.100b8dd0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x100a7530
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.100a7090
add esp, 0x10
test al, al
jne 0x100a7539
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push edi
call fcn.100b8dd0
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100a67a0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
Function at 0x100a7d10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10105fbc]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x100a7d62
push 3
push 2
push eax
push eax
push 6
call fcn.100d0060
add esp, 0x14
test al, al
je 0x100a7d56
mov dword [0x10105fbc], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10105fbc], 1
jmp 0x100a7d67
cmp eax, 2
je 0x100a7da7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100a7d8e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x100a7da7
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x100a8c20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6f1], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100a8c7d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.100a6860
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
push dword [esi + 0x690]
mov dword [ebp - 0x10], 1
call fcn.100a8e90
push dword [esi + 0x694]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.100a8e90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100a8ced
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.100a6860
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100d8a78
mov esp, ebp
pop ebp
ret

Function at 0x100a8d00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100a8d62
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100b8dd0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.100a6860
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d8a78
mov esp, ebp
pop ebp
ret

Function at 0x100a8e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.100a8ea0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
Function at 0x100a9110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a9130
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100e0024
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x100a917d
test ebx, ebx
je 0x100a916d
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100a91a6
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100a91a6
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x100a9268
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a91c2
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100a925e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100a925e
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a9200
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a9220
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x100a9235
mov eax, dword [ebp - 8]
test eax, eax
je 0x100a9255
push 8
push 0
push ebx
call eax
jmp 0x100a925c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x10105004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100a92c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x100a9319
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100a9306
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100a9300
shr eax, 8
cmp al, 2
je 0x100a9319
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.100a9110
add esp, 4
mov dword [0x10105fc4], eax
test eax, eax
je 0x100a934c
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x10105fc0]
test eax, eax
cmovne ecx, eax
mov dword [0x10105fc0], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.100d0060
add esp, 0x14
test al, al
setne byte [0x11376250]
push 0x11376258
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret

Function at 0x100abc10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100abc38
cmp dword [esi + 0x78], 0
je 0x100abc38
push 2
push 3
push esi
call fcn.100ab1f0
push dword [ebp + 0xc]
call fcn.100ab680
add esp, 0x10
jmp 0x100abc47
push dword [ebp + 0xc]
call fcn.100ab680
add esp, 4
test esi, esi
je 0x100abc58
cmp dword [esi + 0x78], 0
je 0x100abc58
push 3
push esi
call fcn.100ab230
add esp, 8
pop esi
pop ebp
ret

Function at 0x100abd00
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100abd15
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100abd2a
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret