joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f3d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401729c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140175948]
mov edi, ecx
cmp byte [rbx + 0x4af9], 0
jne 0x14002f431
cmp byte [rbx + 0x4afa], 0
jne 0x14002f431
movsx r9d, word [rbx + 0x5c2c]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14001e440
test dil, 2
je 0x14002f55f
jmp 0x14002f4bc
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5c2c]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140157058]
mov edx, reloc.WS2_32.dll_recv
mulss xmm1, dword [0x140157044]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47e0], rax
mov dword [rbx + 0x47cc], 1
movss dword [rbx + 0x47d8], xmm0
movss dword [rbx + 0x47dc], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x140156f9c]
or dword [rbx + 0x47c8], 0x41
movss dword [rbx + 0x4828], xmm0
call fcn.14001e440
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002f510
lea r11, [0x140150650]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002f4f3
cmp byte [r8], r9b
jne 0x14002f4f3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002f4e0
not ecx
call fcn.1400262c0
test rax, rax
je 0x14002f55f
cmp byte [rax + 0xb6], 0
je 0x14002f55f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5c2c]
movsx r9d, word [rbx + 0x5c2c]
call fcn.14001e440
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140028b20
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d7de0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140035410
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140175948]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140035473
mov qword [rsp], rbx
lea rbx, [0x140150650]
nop dword [rax]
cmp r9b, 0x23
jne 0x140035453
cmp byte [r8], r9b
jne 0x140035453
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140035440
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5cf0]
not eax
mov r8, qword [r10 + 0x5cf8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14003549f
cmp dword [r8 + 8], eax
je 0x1400354a6
add r8, 0x48
cmp r8, rcx
jne 0x140035490
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14004a820
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1401729c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140175948]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004aa3e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004aa3e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call fcn.1400e8600
mov r8, qword [0x140175948]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14004a8f3
movsx rdx, word [r8 + 0x5e38]
lea rax, [r8 + 0x5e3c]
mov r9d, dword [r8 + 0x3e38]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14004a8e8
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5e38], cx
movsx rax, cx
lea rax, [rax*8 + 0x5e3c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5e30]
test rdi, rdi
je 0x14004a910
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14004a913
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1401552b8]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14004a956
mov rsi, qword [r8 + 0x90]
jmp 0x14004a959
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14004a984
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140175948]
mov rcx, qword [rax + 0x48d8]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004a9fe
inc rbx
cmp rbx, 5
jl 0x14004a9e0
jmp 0x14004aa2a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14004aa40
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d7de0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x1400639c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400639e4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140063a72
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140063a40
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140063a40
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1401096e0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140063a5d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140063a65
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140063a01
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140063b50
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140063a89
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140063a8b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140063abd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1401096e0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140063b4d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140063af8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140063b2e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400e30a4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140063b4d
cmp rsi, rax
ja 0x140063b01
test rsi, rsi
je 0x140063b4d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400e30a4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14007a050
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14007a132
call fcn.140096110
test al, al
jne 0x14007a132
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14007a082
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400a1530
test rax, rax
je 0x14007a0c7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400a1530
mov rsi, rax
test rax, rax
je 0x14007a0c7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14007a0fb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14008ff80
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14007a0e0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140082730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov rdi, rdx
mov r15, r8
mov r10, rcx
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x14008276e
add r12, 0x348
jmp 0x140082775
add r12, 0x2d8
cmp edx, 0xa
mov eax, 0x5f8
mov ecx, 0x540
mov esi, 0
cmovne eax, ecx
mov qword [r9], rsi
mov bl, 1
add rax, rdi
je 0x140082920
cmp byte [rax + 0x6c], sil
je 0x140082920
cmp qword [rdi + 0xca0], rsi
je 0x140082920
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x1400827d0
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x1400827d7
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x1400828cf
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x1400828a9
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.1400900b0
test eax, eax
je 0x1400828a9
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x140082830
test rdx, rdx
je 0x140082845
jmp 0x1400828a9
test rdx, rdx
je 0x1400828a9
mov rcx, qword [rcx + 0x98]
call fcn.1400900b0
test eax, eax
je 0x1400828a9
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x14008285c
cmp eax, 0xffffffff
je 0x140082869
jmp 0x1400828a9
cmp eax, 0xffffffff
je 0x1400828a9
cmp dword [rcx + 0x7d0], eax
jne 0x1400828a9
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x1400828a9
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x1400828a9
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.1400900b0
test eax, eax
je 0x1400828a9
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.1400835c0
test al, al
jne 0x140082930
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x1400827f0
mov bl, 1
mov r10, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rax, qword [r10 + 0x18]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rdx, qword [rax + 0x3e0]
lea rax, [0x140154d80]
mov qword [rsp + 0x28], rcx
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.140089740
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14008295e
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x1400828c2
Function at 0x140082ae0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1401729c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov ecx, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and ecx, 0xa
cmp cl, 0xa
jne 0x140082b35
mov rbx, qword [rax + 0xf0]
mov rsi, qword [rax + 0xf8]
mov ecx, dword [rax + 0x100]
jmp 0x140082b43
mov rbx, qword [rax + 0x68]
mov rsi, qword [rax + 0x70]
mov ecx, dword [rax + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], ecx
test rbx, rbx
je 0x140082c74
cmp byte [rbx], r14b
je 0x140082c74
mov rcx, rbx
call qword [case.0x140083d8c.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x140082c79
test rsi, rsi
je 0x140082bae
mov r8, rsi
sub r8, rbx
nop
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x140082b93
inc rbx
test eax, eax
jne 0x140082b80
test edx, edx
je 0x140082bae
mov rcx, rsi
call qword [case.0x140083d8c.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140082bb2
jmp 0x140082c79
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x140082c0b
cmp byte [rbx], r14b
je 0x140082c0b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140082be5
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x140082cac
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140082c0b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x140082cac
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140082c20
test rbx, rbx
je 0x140082c38
cmp byte [rax + rbx - 1], 0x2e
jne 0x140082c38
dec rbx
cmp rbx, 0xffff
jae 0x140082c6f
lea rdx, [rbx + 1]
mov ecx, 1
call qword [fcn.1400de1c0]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140082c79
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.14008ffd0
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x140082cac
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x140082c88
call qword [fcn.1400de220]
mov rcx, qword [rdi + 0x10]
call qword [fcn.1400de220]
mov rcx, qword [rdi]
call qword [fcn.1400de220]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d7de0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14008db90
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14008dbba
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140111660]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140155b8c]
mov rcx, rbx
mov r14, rax
call fcn.1400eb43c
test rax, rax
je 0x14008dc1b
mov rcx, rbx
test r14, r14
je 0x14008dc08
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x14008dc52
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008dc52
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14008dd1c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14008dc80
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14008dd0e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14008dd0e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14008dcb3
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x14008dcc5
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14008dce0
mov rcx, rsi
test r14, r14
je 0x14008dd05
xor edx, edx
mov r8d, 8
call r14
jmp 0x14008dd0b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1400de220]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14008dd90
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401729c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14008ddf6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008ddd9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14008ddd3
shr ax, 8
cmp al, 2
je 0x14008ddf6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400d7de0
add rsp, 0x1e8
ret
call fcn.1400c6ac0
test eax, eax
jne 0x14008e00b
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14008de36
mov qword [0x140174288], rsi
jmp 0x14008dfc6
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x140111660]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x140155b8c]
call fcn.1400eb43c
test rax, rax
je 0x14008de9c
mov rcx, rbx
test rbp, rbp
je 0x14008de8e
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x14008df8e
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14008df8e
test rbp, rbp
je 0x14008decb
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008decb
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14008df8e
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14008df86
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14008df7d
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14008df7d
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14008df20
mov dword [rdi + rax*2], 0x5c
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14008df32
add rcx, rcx
sub rcx, rbx
add rcx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14008df50
mov rcx, rdi
test rbp, rbp
je 0x14008df74
xor edx, edx
mov r8d, 8
call rbp
jmp 0x14008df7a
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400de220]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x140174288], rsi
test rsi, rsi
je 0x14008dfc6
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008dfc6
mov qword [0x140174280], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400c6670
test al, al
lea rcx, [0x140175c78]
setne byte [0x140175c70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400d7de0
add rsp, 0x1e8
ret
Function at 0x140091820
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140174290]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140091888
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400c6670
test al, al
je 0x14009187c
mov dword [0x140174290], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140174290], 1
jmp 0x14009188d
cmp eax, 2
je 0x1400918df
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400918be
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400918df
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140092540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401729c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14009268e
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x3e0]
test dword [rcx + 0x8c], 0x800
jne 0x14009268e
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14009261e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400a05c0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140089600
mov eax, 2
jmp 0x140092690
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x100]
lea r8, [rbx + 0xce]
lea rcx, [rsp + 0x30]
call fcn.14008c100
test al, al
jne 0x14009268e
mov qword [rsp + 0x1e0], rdi
call fcn.1400ea5ec
mov ebx, dword [rax]
call fcn.1400ea5ec
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400a05c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140089600
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x140092690
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400d7de0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret

Function at 0x140096f20
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140096f35
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140096940