joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400fbbc0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140044f07
cmp word [rdx], r13w
jne 0x140044f07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140044f0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140045031
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140045052
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140044f45
mov rdx, r9
mov word [rbx], cx
jmp 0x140044f6c
cmp r9, r8
jae 0x140044f7c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140044f26
jmp 0x140045031
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140045026
cmp dword [rsp + 0x80], esi
je 0x140045026
lea r8, [0x1400fbbc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140044ffe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140044fce
mov word [rbx], r13w
jmp 0x14004502e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140044fdb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004502e
cmp word [rsp + 0x70], r13w
jne 0x14004500b
cmp rbx, r14
je 0x140044fc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140045b18
cmp word [rsp + 0x70], r13w
je 0x140045031
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400fbbc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004502b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140045031
Function at 0x14004ac84
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004acb4
xor eax, eax
jmp 0x14004ad77
mov rbp, rbx
cmp word [rax], si
je 0x14004acd9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004acc0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004acbc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140044c7c
movsxd r14, eax
test eax, eax
jne 0x14004ad17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004acad
mov rcx, r14
call fcn.1400421e8
mov rdi, rax
test rax, rax
jne 0x14004ad30
xor ecx, ecx
call fcn.140040fb8
jmp 0x14004ad0c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140044c7c
test eax, eax
jne 0x14004ad61
mov rcx, rdi
call fcn.140040fb8
jmp 0x14004ad6b
xor ecx, ecx
call fcn.140040fb8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004ad94
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004ae1b
mov rsi, rbx
cmp word [rax], bp
je 0x14004adda
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004adc4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004adc0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400421e8
mov rdi, rax
test rax, rax
je 0x14004ae08
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bfb00
mov rbp, rdi
xor ecx, ecx
call fcn.140040fb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e3e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003f924
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004e485
cmp ebx, dword [rsp + 0x30]
je 0x14004e47e
test esi, esi
je 0x14004e47e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004e459
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004e466
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004e443
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004e46a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004e487
mov eax, 1
jmp 0x14004e487
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140052dec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002f8a8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140052e76
cmp byte [rbp - 0x21], r15b
je 0x140052e71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140052eac
call fcn.1400417f4
test eax, eax
jne 0x140052e98
cmp byte [rbp - 0x21], r15b
je 0x140052e90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140052eac
cmp byte [rbp - 0x21], r15b
je 0x140052ea9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003a240
test eax, eax
jne 0x140052f4c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002f8a8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140052eeb
cmp byte [rbp - 0x21], r15b
je 0x140052f20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140052f20
call fcn.1400417f4
test eax, eax
jne 0x140052f0c
cmp byte [rbp - 0x21], r15b
je 0x140052f05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140052f20
cmp byte [rbp - 0x21], r15b
je 0x140052f1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003a240
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140052f4c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140052f4f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140052f5d
mov rcx, rdi
call fcn.140040fb8
cmp byte [rbp + 0x3f], r15b
je 0x140052f6c
mov rcx, qword [rbp + 0x27]
call fcn.140040fb8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400541a0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140045b18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140045b18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400542f0
cmp rax, 0xffffffffffffffff
je 0x1400542f0
xor edi, edi
test rbp, rbp
jle 0x14005429b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003fef8
mov rbx, rax
test rax, rax
jne 0x140054228
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140054291
mov edx, 0x8000
mov ecx, r14d
call fcn.14003d4bc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140040a50
cmp eax, 0xffffffff
je 0x140054271
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140054238
mov edx, r15d
mov ecx, r14d
call fcn.14003d4bc
jmp 0x140054291
cmp byte [rsi + 0x38], dil
je 0x140054288
cmp dword [rsi + 0x34], 5
jne 0x140054288
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140054291
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140040fb8
jmp 0x140054304
jns 0x140054304
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140045b18
cmp rax, 0xffffffffffffffff
jne 0x1400542bc
cmp byte [rsi + 0x30], dil
je 0x140054304
mov edi, dword [rsi + 0x2c]
jmp 0x140054304
mov ecx, r14d
call fcn.14004be90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140054304
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140054304
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400542fd
mov eax, dword [rsi + 0x2c]
jmp 0x140054302
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140045b18
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005f630
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005f712
call fcn.14007d860
test al, al
jne 0x14005f712
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14005f662
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140087810
test rax, rax
je 0x14005f6a7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140087810
mov rsi, rax
test rax, rax
je 0x14005f6a7
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 0x14005f6db
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400776d0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14005f6c0
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 0x140067d80
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 0x140067dbe
add r12, 0x348
jmp 0x140067dc5
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 0x140067f70
cmp byte [rax + 0x6c], sil
je 0x140067f70
cmp qword [rdi + 0xca0], rsi
je 0x140067f70
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x140067e20
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x140067e27
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x140067f1f
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 0x140067ef9
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140077800
test eax, eax
je 0x140067ef9
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x140067e80
test rdx, rdx
je 0x140067e95
jmp 0x140067ef9
test rdx, rdx
je 0x140067ef9
mov rcx, qword [rcx + 0x98]
call fcn.140077800
test eax, eax
je 0x140067ef9
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x140067eac
cmp eax, 0xffffffff
je 0x140067eb9
jmp 0x140067ef9
cmp eax, 0xffffffff
je 0x140067ef9
cmp dword [rcx + 0x7d0], eax
jne 0x140067ef9
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x140067ef9
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x140067ef9
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.140077800
test eax, eax
je 0x140067ef9
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.140068c10
test al, al
jne 0x140067f80
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x140067e40
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, [0x1400d3348]
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.14006f9b0
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 0x140067fae
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x140067f12
Function at 0x140068130
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 [0x1400f8100]
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 0x140068185
mov rbx, qword [rax + 0xf0]
mov rsi, qword [rax + 0xf8]
mov ecx, dword [rax + 0x100]
jmp 0x140068193
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 0x1400682c4
cmp byte [rbx], r14b
je 0x1400682c4
mov rcx, rbx
call qword [case.0x1400693dc.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x1400682c9
test rsi, rsi
je 0x1400681fe
mov r8, rsi
sub r8, rbx
nop
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x1400681e3
inc rbx
test eax, eax
jne 0x1400681d0
test edx, edx
je 0x1400681fe
mov rcx, rsi
call qword [case.0x1400693dc.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140068202
jmp 0x1400682c9
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x14006825b
cmp byte [rbx], r14b
je 0x14006825b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140068235
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x1400682fc
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 0x14006825b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x1400682fc
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140068270
test rbx, rbx
je 0x140068288
cmp byte [rax + rbx - 1], 0x2e
jne 0x140068288
dec rbx
cmp rbx, 0xffff
jae 0x1400682bf
lea rdx, [rbx + 1]
mov ecx, 1
call qword [fcn.14002e798]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400682c9
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.140077720
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x1400682fc
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x1400682d8
call qword [fcn.140036eec]
mov rcx, qword [rdi + 0x10]
call qword [fcn.140036eec]
mov rcx, qword [rdi]
call qword [fcn.140036eec]
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.140028980
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140073c70
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 0x140073c9a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400d4c40]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400c95f8]
mov rcx, rbx
mov r14, rax
call fcn.14004cef0
test rax, rax
je 0x140073cfb
mov rcx, rbx
test r14, r14
je 0x140073ce8
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 0x140073d32
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140073d32
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 0x140073dfc
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140073d60
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.1400382e0]
mov rsi, rax
test rax, rax
je 0x140073dee
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140073dee
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140073d93
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140073da5
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 0x140073dc0
mov rcx, rsi
test r14, r14
je 0x140073de5
xor edx, edx
mov r8d, 8
call r14
jmp 0x140073deb
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.140036eec]
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 0x140073e20
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400f8100]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140073e86
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140073e69
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140073e63
shr ax, 8
cmp al, 2
je 0x140073e86
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140028980
add rsp, 0x1e8
ret
call fcn.1400ab760
test eax, eax
jne 0x14007409b
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 0x140073ec6
mov qword [0x1400fc3f8], rsi
jmp 0x140074056
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1400d4c40]
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, [0x1400c95f8]
call fcn.14004cef0
test rax, rax
je 0x140073f2c
mov rcx, rbx
test rbp, rbp
je 0x140073f1e
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x14007401e
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14007401e
test rbp, rbp
je 0x140073f5b
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140073f5b
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14007401e
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 0x140074016
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1400382e0]
mov rdi, rax
test rax, rax
je 0x14007400d
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14007400d
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140073fb0
mov dword [rdi + rax*2], 0x5c
inc rcx
cmp word [rdi + rcx*2], si
jne 0x140073fc2
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 0x140073fe0
mov rcx, rdi
test rbp, rbp
je 0x140074004
xor edx, edx
mov r8d, 8
call rbp
jmp 0x14007400a
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140036eec]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400fc3f8], rsi
test rsi, rsi
je 0x140074056
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140074056
mov qword [0x1400fc3f0], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400ab310
test al, al
lea rcx, [0x1400fc478]
setne byte [0x1400fc470]
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.140028980
add rsp, 0x1e8
ret
Function at 0x140078f70
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400fc400]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140078fd8
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400ab310
test al, al
je 0x140078fcc
mov dword [0x1400fc400], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400fc400], 1
jmp 0x140078fdd
cmp eax, 2
je 0x14007902f
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 0x14007900e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14007902f
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