joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d2bb0
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 [0x140342fc0]
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.1400c41e0
nop
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400c41e0
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 0x1400d2d25
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 0x1400d2d25
mov ebx, dword [rbp - 0x35]
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
cmp rbx, rcx
jae 0x1400d2c83
lea rax, [rdx + rbx]
jmp 0x1400d2cb6
jbe 0x1400d2cba
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbx, rax
jbe 0x1400d2ca2
lea r8, [rbp - 0x39]
mov rdx, rbx
mov rcx, rdi
call fcn.140099ec0
jmp 0x1400d2cba
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14029f290
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 0x1400d2d25
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 0x1400d2d25
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 0x1400d2d33
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400d2d44
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400d2d7b
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2d76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d2de6
call fcn.14025e770
movdqa xmm0, xmmword [0x1402f99d0]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x1400d2dc3
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d2dbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d2de0
call fcn.14025e770
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14025e750
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14027aed0
nop
call fcn.14027aed0
int3
Function at 0x1400e35f0
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 0x1400e3682
mov qword [rdi], r8
mov rax, rbx
lea rsi, [rbx + 0x18]
cmp qword [rbx + 0x18], 7
jbe 0x1400e367b
mov rax, qword [rbx]
mov word [rax + r8*2], r15w
jmp 0x1400e36dc
mov rdx, r8
sub rdx, rcx
mov r10, qword [rbx + 0x18]
mov rax, r10
sub rax, rcx
cmp rdx, rax
ja 0x1400e36c4
mov qword [rdi], r8
mov r9, rbx
cmp r10, 7
jbe 0x1400e36a6
mov r9, qword [rbx]
lea rdi, [r9 + rcx*2]
test rdx, rdx
je 0x1400e36b9
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r9 + r8*2], r15w
lea rdi, [rbx + 0x10]
jmp 0x1400e36d8
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
mov rcx, rbx
call fcn.140064420
lea rsi, [rbx + 0x18]
mov r9, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400e36e9
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 0x1400e381b
cmp qword [rsi], 7
jbe 0x1400e3725
mov rdx, qword [rbx]
mov rax, rdx
jmp 0x1400e372b
mov rax, rbx
mov rdx, rbx
lea rax, [rax + rcx*2]
cmp word [rdx], 0
jne 0x1400e3791
add rdx, 2
cmp rdx, rax
je 0x1400e374f
nop
cmp word [rdx], 0
jne 0x1400e3770
add rdx, 2
cmp rdx, rax
jne 0x1400e3740
mov qword [rbx + 0x10], r15
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400e3760
mov rax, qword [rbx]
mov word [rax], r15w
jmp 0x1400e381b
sub rax, 2
cmp word [rax], 0
je 0x1400e3770
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.140046990
jmp 0x1400e381b
sub rax, 2
cmp word [rax], 0
jne 0x1400e381b
nop
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400e37a0
mov rsi, qword [rbx + 0x10]
mov rdi, rcx
lea rdx, [rsi + rsi]
mov rax, rsi
sub rdx, rcx
cmp qword [rbx + 0x18], 7
jbe 0x1400e37e0
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 0x1400e37f9
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.14029ebf0
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 0x1400e3830
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 [0x140342fc0]
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 0x1400e38a4
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], si
jmp 0x1400e38d6
cmp rdx, 7
ja 0x1400e38c2
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 0x1400e38d6
mov word [rsp + 0x20], si
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140064420
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.14027bf54
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.14026f788
mov esi, eax
cmp rdi, qword [rbp - 0x38]
je 0x1400e39a0
cmp dword [rbx], 0x22
je 0x1400e39ad
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x1400e3975
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e3970
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e399a
call fcn.14025e770
movzx eax, si
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14025e750
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.14027aed0
nop
lea rcx, str.invalid_stoi_argument
call fcn.140241d7c
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.140241dc4
int3
Function at 0x1400fd2a0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400fd2d7
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 0x1400fd2c0
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 0x1400fd3c8
sub rcx, r10
cmp r9, 8
jb 0x1400fd3a9
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 0x1400fd330
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 0x1400fd3c8
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 0x1400fd3b0
test r8d, r8d
sete al
ret
Function at 0x1400fd3d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1400fd566
cmp r9, 4
jb 0x1400fd40a
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 0x1400fd3f1
xor r11d, r11d
test r9, r9
je 0x1400fd566
cmp r9, 8
jb 0x1400fd53d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1400fd43c
cmp r10, r8
jae 0x1400fd53d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1400fd451
cmp r10, rdx
jae 0x1400fd53d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400fd4f7
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 0x1400fd490
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1400fd52f
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 0x1400fd510
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1400fd566
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 0x1400fd550
add rsp, 8
ret
Function at 0x140102420
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqu xmm5, xmmword [rcx]
xor ecx, ecx
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x1402bd250]
pshufb xmm5, xmmword [0x1402bd240]
movdqa xmm4, xmm5
add r8d, 0xffffffe0
je 0x14010255d
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 0x140102450
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 0x14010d880
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14010d962
call fcn.1401267d0
test al, al
jne 0x14010d962
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14010d8b2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140130170
test rax, rax
je 0x14010d8f7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140130170
mov rsi, rax
test rax, rax
je 0x14010d8f7
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 0x14010d92b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1401235e0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14010d910
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 0x1401153b0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140342fc0]
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 0x1401153f7
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140115405
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x764]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x1401155db
mov r9, qword [rbx]
test r9, r9
je 0x14011544b
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 0x140115443
inc rax
test ecx, ecx
jne 0x140115430
test edx, edx
je 0x1401155db
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x14011545a
call qword [fcn.14027c570]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14027c570]
mov rcx, qword [rbx]
call qword [fcn.14027c570]
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.0x14010ef7b.2]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x1401154ce
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401154a2
call qword [fcn.14027c570]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14027c570]
mov rcx, qword [rbx]
call qword [fcn.14027c570]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
jmp 0x1401155e1
test rsi, rsi
je 0x140115512
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x1401154f3
inc rdi
test eax, eax
jne 0x1401154e0
test edx, edx
je 0x140115512
mov rcx, rsi
call qword [case.0x14010ef7b.2]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140115516
cmp qword [rbx], r15
je 0x1401154a2
xor ecx, ecx
jmp 0x14011549c
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x14011556a
cmp byte [rdi], r15b
je 0x14011556a
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14011554a
mov dword [rbx + 0x18], 1
jmp 0x1401155db
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 0x14011556a
mov dword [rbx + 0x18], 2
jmp 0x1401155db
mov rax, qword [rbx]
mov dword [rbx + 0x18], r15d
cmp byte [rax], r15b
je 0x1401155db
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140115580
test rdi, rdi
je 0x140115598
cmp byte [rax + rdi - 1], 0x2e
jne 0x140115598
dec rdi
cmp rdi, 0xffff
jae 0x1401155db
lea rdx, [rdi + 1]
mov ecx, 1
call qword [fcn.14026e68c]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1401155c5
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x14011549a
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.140123630
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.14025e750
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14011fb70
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 0x14011fb9a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1402c3558]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402c3568]
mov rcx, rbx
mov r14, rax
call fcn.140283278
test rax, rax
je 0x14011fbf9
mov rcx, rbx
test r14, r14
je 0x14011fbe6
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 0x14011fc30
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14011fc30
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 0x14011fcfa
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14011fc60
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.14027d4f0]
mov rsi, rax
test rax, rax
je 0x14011fcec
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14011fcec
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14011fc93
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x14011fca5
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 0x14011fcc0
mov rcx, rsi
test r14, r14
je 0x14011fce3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14011fce9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14027c570]
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 0x1401275e0
Capabilities:
Convert ip address from string

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

Function at 0x140127920
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140342fc0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xaaf], dil
je 0x140127b3f
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x140127b37
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140127b37
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140127b37
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.14011bab0
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14010dec0
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14010dec0
test rbx, rbx
je 0x140127aa4
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140127a11
cmp ecx, 2
jne 0x140127a97
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 0x140127a3e
cmp ecx, 0x17
jne 0x140127a59
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140127a46
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.140015c00
test rax, rax
je 0x140127a7d
mov r8d, 2
lea rdx, [0x1402c2d54]
mov rcx, rsi
call fcn.14010de80
mov edi, eax
test edi, edi
jne 0x140127abf
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14010de20
mov edi, eax
test eax, eax
jne 0x140127abf
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140127a00
lea rcx, [rsp + 0x50]
call fcn.140015c00
test rax, rax
je 0x140127ad0
lea rcx, [rsp + 0x50]
call fcn.140052ee0
jmp 0x140127ad3
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.14011bab0
jmp 0x140127b13
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.14011bab0
lea rcx, [rsp + 0x30]
call fcn.140015c00
test rax, rax
je 0x140127b01
lea rcx, [rsp + 0x30]
call fcn.140052ee0
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.14011bab0
lea rcx, [rsp + 0x30]
call fcn.14010de90
lea rcx, [rsp + 0x50]
call fcn.14010de90
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.14025e750
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret