joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d51b0
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r14d, r14d
mov dword [rbp - 0x21], r14d
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x31], r14
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rbp - 0x21], 1
mov dword [rbp - 0x35], r14d
mov dword [rbp - 0x1d], r14d
lea rcx, [rbp + 0xf]
call fcn.1400c67e0
nop
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400c67e0
nop
lea r9d, [r14 + 8]
xor r8d, r8d
lea rdx, str.SHA1
lea rcx, [rbp - 0x29]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x1400d5325
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
lea r8, [rbp - 0x35]
lea rdx, str.HashDigestLength
mov rcx, qword [rbp - 0x29]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1400d5325
mov ebx, dword [rbp - 0x35]
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
cmp rbx, rcx
jae 0x1400d5283
lea rax, [rdx + rbx]
jmp 0x1400d52b6
jbe 0x1400d52ba
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbx, rax
jbe 0x1400d52a2
lea r8, [rbp - 0x39]
mov rdx, rbx
mov rcx, rdi
call fcn.14009c4c0
jmp 0x1400d52ba
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1402a1980
lea rax, [rsi + rbx]
mov qword [rdi + 8], rax
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
mov dword [rsp + 0x30], r14d
mov eax, dword [rbp + 0x1f]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x31]
mov rcx, qword [rbp - 0x29]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x1400d5325
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rdx, qword [rbp - 0x11]
xor r9d, r9d
mov r8d, dword [rbp - 1]
mov rcx, qword [rbp - 0x31]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x1400d5325
xor r9d, r9d
mov r8d, dword [rbp - 0x35]
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x31]
call sub.bcrypt.dll_BCryptFinishHash
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400d5333
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400d5344
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400d537b
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d5376
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d53e6
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf50]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x1400d53c3
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d53be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d53e0
call fcn.140260e60
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140260e40
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14027d5c0
nop
call fcn.14027d5c0
int3
Function at 0x1400e5bf0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x38], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rdi, [rcx + 0x10]
mov qword [rdi], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x38], 1
mov dword [rax + 0x18], r15d
mov qword [rax - 0x40], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x14]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rdi]
cmp r8, rcx
ja 0x1400e5c82
mov qword [rdi], r8
mov rax, rbx
lea rsi, [rbx + 0x18]
cmp qword [rbx + 0x18], 7
jbe 0x1400e5c7b
mov rax, qword [rbx]
mov word [rax + r8*2], r15w
jmp 0x1400e5cdc
mov rdx, r8
sub rdx, rcx
mov r10, qword [rbx + 0x18]
mov rax, r10
sub rax, rcx
cmp rdx, rax
ja 0x1400e5cc4
mov qword [rdi], r8
mov r9, rbx
cmp r10, 7
jbe 0x1400e5ca6
mov r9, qword [rbx]
lea rdi, [r9 + rcx*2]
test rdx, rdx
je 0x1400e5cb9
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r9 + r8*2], r15w
lea rdi, [rbx + 0x10]
jmp 0x1400e5cd8
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
mov rcx, rbx
call fcn.140066940
lea rsi, [rbx + 0x18]
mov r9, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400e5ce9
mov r9, qword [rbx]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400e5e1b
cmp qword [rsi], 7
jbe 0x1400e5d25
mov rdx, qword [rbx]
mov rax, rdx
jmp 0x1400e5d2b
mov rax, rbx
mov rdx, rbx
lea rax, [rax + rcx*2]
cmp word [rdx], 0
jne 0x1400e5d91
add rdx, 2
cmp rdx, rax
je 0x1400e5d4f
nop
cmp word [rdx], 0
jne 0x1400e5d70
add rdx, 2
cmp rdx, rax
jne 0x1400e5d40
mov qword [rbx + 0x10], r15
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400e5d60
mov rax, qword [rbx]
mov word [rax], r15w
jmp 0x1400e5e1b
sub rax, 2
cmp word [rax], 0
je 0x1400e5d70
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.140048d80
jmp 0x1400e5e1b
sub rax, 2
cmp word [rax], 0
jne 0x1400e5e1b
nop
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400e5da0
mov rsi, qword [rbx + 0x10]
mov rdi, rcx
lea rdx, [rsi + rsi]
mov rax, rsi
sub rdx, rcx
cmp qword [rbx + 0x18], 7
jbe 0x1400e5de0
sub rdi, qword [rbx]
sar rdi, 1
add rdx, qword [rbx]
sar rdx, 1
sub rax, rdi
cmp rax, rdx
cmovb rdx, rax
mov rax, qword [rbx]
jmp 0x1400e5df9
sub rdi, rbx
sar rdi, 1
add rdx, rbx
sar rdx, 1
sub rax, rdi
cmp rax, rdx
cmovb rdx, rax
mov rax, rbx
lea rcx, [rax + rdi*2]
sub rsi, rdx
mov r8, rsi
sub r8, rdi
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call fcn.1402a12e0
mov qword [rbx + 0x10], rsi
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e5e30
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x40], esi
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x1400e5ea4
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], si
jmp 0x1400e5ed6
cmp rdx, 7
ja 0x1400e5ec2
mov qword [rbp - 0x20], rdx
movzx eax, si
lea rdi, [rbp - 0x30]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x30], si
jmp 0x1400e5ed6
mov word [rsp + 0x20], si
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140066940
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call fcn.14027e644
mov rbx, rax
lea rdi, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdi, qword [rbp - 0x30]
mov dword [rax], esi
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.140271e78
mov esi, eax
cmp rdi, qword [rbp - 0x38]
je 0x1400e5fa0
cmp dword [rbx], 0x22
je 0x1400e5fad
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x1400e5f75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5f70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5f9a
call fcn.140260e60
movzx eax, si
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14027d5c0
nop
lea rcx, str.invalid_stoi_argument
call fcn.14024446c
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.1402444b4
int3
Function at 0x1400ff8a0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400ff8d7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1400ff8c0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400ff9c8
sub rcx, r10
cmp r9, 8
jb 0x1400ff9a9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x1400ff930
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400ff9c8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400ff9b0
test r8d, r8d
sete al
ret
Function at 0x1400ff9d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1400ffb66
cmp r9, 4
jb 0x1400ffa0a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x1400ff9f1
xor r11d, r11d
test r9, r9
je 0x1400ffb66
cmp r9, 8
jb 0x1400ffb3d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1400ffa3c
cmp r10, r8
jae 0x1400ffb3d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1400ffa51
cmp r10, rdx
jae 0x1400ffb3d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400ffaf7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400ffa90
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1400ffb2f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x1400ffb10
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1400ffb66
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1400ffb50
add rsp, 8
ret
Function at 0x140104a20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqu xmm5, xmmword [rcx]
xor ecx, ecx
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x1402c0290]
pshufb xmm5, xmmword [0x1402c0280]
movdqa xmm4, xmm5
add r8d, 0xffffffe0
je 0x140104b5d
nop dword [rax]
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
movdqa xmm0, xmm4
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
pclmulqdq xmm3, xmm5, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm3, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psllq xmm2, 1
psrlq xmm3, 0x3f
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movdqa xmm2, xmm3
movq qword [rcx + rdx + 8], xmm3
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm5, 0x10
movdqa xmm0, xmm3
pslldq xmm1, 8
pclmulqdq xmm0, xmm5, 1
xorps xmm4, xmm0
add ecx, 0x20
movdqa xmm0, xmm2
psrldq xmm2, 8
xorps xmm4, xmm1
pclmulqdq xmm0, xmm6, 0x10
xorps xmm4, xmm0
xorps xmm2, xmm4
movdqa xmm0, xmm4
psllq xmm2, 1
psrldq xmm0, 8
pclmulqdq xmm2, xmm6, 0
pclmulqdq xmm3, xmm5, 0x11
xorps xmm2, xmm3
xorps xmm2, xmm0
punpcklqdq xmm4, xmm2
psrlq xmm4, 0x3f
psllq xmm2, 1
xorps xmm4, xmm2
cmp ecx, r8d
jb 0x140104a50
movq qword [rcx + rdx], xmm4
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm5, 0
movdqa xmm1, xmm2
movdqa xmm3, xmm4
pclmulqdq xmm3, xmm5, 0x10
pslldq xmm1, 8
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm5, 1
xorps xmm3, xmm0
movdqa xmm0, xmm2
xorps xmm3, xmm1
psrldq xmm2, 8
pclmulqdq xmm0, xmm6, 0x10
xorps xmm3, xmm0
movdqa xmm0, xmm4
xorps xmm2, xmm3
movdqa xmm1, xmm3
psllq xmm2, 1
pclmulqdq xmm2, xmm6, 0
movaps xmm6, xmmword [rsp]
pclmulqdq xmm0, xmm5, 0x11
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm2, xmm1
punpcklqdq xmm3, xmm2
psrlq xmm3, 0x3f
psllq xmm2, 1
xorps xmm3, xmm2
movdqu xmmword [rcx + rdx + 0x10], xmm3
movdqu xmmword [rcx + rdx + 8], xmm4
movq qword [rcx + rdx + 8], xmm3
add rsp, 0x18
ret
Function at 0x14010fe80
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14010ff62
call fcn.140128dd0
test al, al
jne 0x14010ff62
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14010feb2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140132770
test rax, rax
je 0x14010fef7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140132770
mov rsi, rax
test rax, rax
je 0x14010fef7
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 0x14010ff2b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140125be0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14010ff10
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 0x1401179b0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rdx + 0x10]
mov rbx, rcx
mov rax, qword [rdx + 0x18]
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
jne 0x1401179f7
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140117a05
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x764]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x140117bdb
mov r9, qword [rbx]
test r9, r9
je 0x140117a4b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140117a43
inc rax
test ecx, ecx
jne 0x140117a30
test edx, edx
je 0x140117bdb
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x140117a5a
call qword [fcn.14027ec60]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14027ec60]
mov rcx, qword [rbx]
call qword [fcn.14027ec60]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
call qword [case.0x14011157b.2]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140117ace
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140117aa2
call qword [fcn.14027ec60]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14027ec60]
mov rcx, qword [rbx]
call qword [fcn.14027ec60]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
jmp 0x140117be1
test rsi, rsi
je 0x140117b12
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x140117af3
inc rdi
test eax, eax
jne 0x140117ae0
test edx, edx
je 0x140117b12
mov rcx, rsi
call qword [case.0x14011157b.2]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140117b16
cmp qword [rbx], r15
je 0x140117aa2
xor ecx, ecx
jmp 0x140117a9c
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x140117b6a
cmp byte [rdi], r15b
je 0x140117b6a
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140117b4a
mov dword [rbx + 0x18], 1
jmp 0x140117bdb
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140117b6a
mov dword [rbx + 0x18], 2
jmp 0x140117bdb
mov rax, qword [rbx]
mov dword [rbx + 0x18], r15d
cmp byte [rax], r15b
je 0x140117bdb
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140117b80
test rdi, rdi
je 0x140117b98
cmp byte [rax + rdi - 1], 0x2e
jne 0x140117b98
dec rdi
cmp rdi, 0xffff
jae 0x140117bdb
lea rdx, [rdi + 1]
mov ecx, 1
call qword [fcn.140270d7c]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140117bc5
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x140117a9a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.140125c30
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [r14 + 0x50], ebp
xor eax, eax
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140260e40
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140122170
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1402c6580]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14012219a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1402c6598]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402c65a8]
mov rcx, rbx
mov r14, rax
call fcn.140285968
test rax, rax
je 0x1401221f9
mov rcx, rbx
test r14, r14
je 0x1401221e6
xor edx, edx
lea r8d, [rdx + 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 0x140122230
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140122230
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 0x1401222fa
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140122260
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.14027fbe0]
mov rsi, rax
test rax, rax
je 0x1401222ec
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1401222ec
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140122293
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x1401222a5
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 0x1401222c0
mov rcx, rsi
test r14, r14
je 0x1401222e3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1401222e9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14027ec60]
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 0x140129be0
Capabilities:
Convert ip address from string

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

Function at 0x140129f20
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xaaf], dil
je 0x14012a13f
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x14012a137
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14012a137
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14012a137
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.14011e0b0
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.1401104c0
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1401104c0
test rbx, rbx
je 0x14012a0a4
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x14012a011
cmp ecx, 2
jne 0x14012a097
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x14012a03e
cmp ecx, 0x17
jne 0x14012a059
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x14012a046
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, 0x2e
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.140015ff0
test rax, rax
je 0x14012a07d
mov r8d, 2
lea rdx, [0x1402c5d94]
mov rcx, rsi
call fcn.140110480
mov edi, eax
test edi, edi
jne 0x14012a0bf
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140110420
mov edi, eax
test eax, eax
jne 0x14012a0bf
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14012a000
lea rcx, [rsp + 0x50]
call fcn.140015ff0
test rax, rax
je 0x14012a0d0
lea rcx, [rsp + 0x50]
call fcn.140055290
jmp 0x14012a0d3
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.14011e0b0
jmp 0x14012a113
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.14011e0b0
lea rcx, [rsp + 0x30]
call fcn.140015ff0
test rax, rax
je 0x14012a101
lea rcx, [rsp + 0x30]
call fcn.140055290
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.14011e0b0
lea rcx, [rsp + 0x30]
call fcn.140110490
lea rcx, [rsp + 0x50]
call fcn.140110490
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140260e40
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret