joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fdac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x28]
mov rax, qword [rcx + 0x58]
mov rbx, rcx
mov rsi, rdx
cmp rdi, rdx
jae 0x1401fdcac
mov rcx, qword [rcx + 0x30]
cmp rcx, rdx
jbe 0x1401fdc73
lea r11, [rdi + 1]
mov r10, r11
shl r10, 4
jmp 0x1401fdb08
mov rax, qword [rbx + 0x58]
add r11, 1
lea rdx, [rax + r10]
lea rax, [rax + r10 - 0x10]
movzx r9d, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
movzx ecx, byte [rax]
lea ebp, [r8 + r8]
lea edi, [r9 + r9]
sar r9d, 7
sar r8d, 7
or r9d, ebp
sar cl, 7
mov byte [rdx + 0xe], r9b
movzx r9d, byte [rax + 0xd]
and ecx, 0xffffff87
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xd], r8b
movzx r8d, byte [rax + 0xc]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xc], r9b
movzx r9d, byte [rax + 0xb]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xb], r8b
movzx r8d, byte [rax + 0xa]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xa], r9b
movzx r9d, byte [rax + 9]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 9], r8b
movzx r8d, byte [rax + 8]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 8], r9b
movzx r9d, byte [rax + 7]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 7], r8b
movzx r8d, byte [rax + 6]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 6], r9b
movzx r9d, byte [rax + 5]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 5], r8b
movzx r8d, byte [rax + 4]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 4], r9b
movzx r9d, byte [rax + 3]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 3], r8b
movzx r8d, byte [rax + 2]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 2], r9b
movzx r9d, byte [rax + 1]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 1], r8b
movzx eax, byte [rax]
add eax, eax
or eax, r9d
xor ecx, edi
add r10, 0x10
mov byte [rdx], al
mov byte [rdx + 0xf], cl
cmp r11, rsi
jne 0x1401fdb00
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x28], r11
shl r11, 4
add rax, r11
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rdx + 4]
mov r9d, 0x71
lea r8, str.crypto_modes_ocb128.c
sub rdx, rcx
and rdx, 0xfffffffffffffffc
add rdx, rcx
mov rcx, rax
mov qword [rbx + 0x30], rdx
shl rdx, 4
call fcn.14000ea70
test rax, rax
je 0x1401fdc6a
mov qword [rbx + 0x58], rax
jmp 0x1401fdaec
shl rsi, 4
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140225460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, [0x140225640]
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x140225500
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x1402254c6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.140225100
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x1402254b9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
Function at 0x140244a20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movdqu xmm0, xmmword [rcx + 8]
movdqu xmm1, xmmword [rcx + 0x18]
mov eax, dword [rcx + 0x28]
add qword [rcx], r8
movhlps xmm2, xmm0
movhlps xmm3, xmm1
movq rdi, xmm0
movq rsi, xmm2
movq r14, xmm3
movq r13, xmm1
mov rbx, rcx
mov r12, rdx
mov rbp, r8
test eax, eax
je 0x140244b04
mov r15d, 8
lea rcx, [rcx + rax + 0x38]
sub r15d, eax
cmp r8, r15
jb 0x140244bed
mov r8, r15
sub rbp, r15
add r12, r15
call sub.msvcrt.dll_memcpy
mov r8, qword [rbx + 0x38]
mov r9d, dword [rbx + 0x30]
mov rax, r14
xor rax, r8
test r9d, r9d
je 0x140244ae5
xor ecx, ecx
nop dword [rax]
add rdi, rsi
rol rsi, 0xd
lea rdx, [r13 + rax]
add ecx, 1
xor rsi, rdi
rol rax, 0x10
xor rax, rdx
rol rdi, 0x20
add rdx, rsi
rol rsi, 0x11
add rdi, rax
rol rax, 0x15
xor rsi, rdx
rol rdx, 0x20
xor rax, rdi
mov r13, rdx
cmp ecx, r9d
jne 0x140244aa8
xor r8, rdi
movq xmm1, r13
movq xmm2, rax
movq xmm0, r8
movq xmm3, rsi
punpcklqdq xmm1, xmm2
punpcklqdq xmm0, xmm3
movhlps xmm4, xmm1
movhlps xmm5, xmm0
movq rdi, xmm1
mov r11d, ebp
and rbp, 0xfffffffffffffff8
movq rax, xmm4
movq rdx, xmm5
and r11d, 7
lea r10, [r12 + rbp]
movq rsi, xmm0
cmp r12, r10
je 0x140244bb0
mov r8d, dword [rbx + 0x30]
nop word cs:[rax + rax]
mov r9, qword [r12]
xor rax, r9
test r8d, r8d
je 0x140244b88
xor ecx, ecx
nop
add rsi, rdx
add rdi, rax
rol rdx, 0xd
add ecx, 1
rol rax, 0x10
xor rdx, rsi
rol rsi, 0x20
xor rax, rdi
add rdi, rdx
rol rdx, 0x11
add rsi, rax
rol rax, 0x15
xor rdx, rdi
xor rax, rsi
rol rdi, 0x20
cmp r8d, ecx
jne 0x140244b50
add r12, 8
xor rsi, r9
cmp r10, r12
jne 0x140244b40
movq xmm0, rsi
movq xmm4, rdx
movq xmm1, rdi
movq xmm5, rax
punpcklqdq xmm0, xmm4
punpcklqdq xmm1, xmm5
test r11d, r11d
jne 0x140244bd2
mov dword [rbx + 0x28], r11d
movups xmmword [rbx + 8], xmm0
movups xmmword [rbx + 0x18], xmm1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rbx + 0x38]
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r10 + rdx]
mov byte [r8 + rdx], cl
cmp eax, r11d
jb 0x140244bd8
jmp 0x140244bb5
call sub.msvcrt.dll_memcpy
add dword [rbx + 0x28], ebp
jmp 0x140244bc1
Function at 0x140278bd0
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x140418bf4]
jmp fcn.140018850
Function at 0x140280930
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r13, rcx
mov r12, rdx
mov rcx, r8
mov edx, 4
mov rbx, r8
mov rsi, r9
call fcn.1400bb640
test eax, eax
jne 0x14028097a
mov edx, 4
mov rcx, r12
call fcn.1400bb640
test eax, eax
je 0x1402809b0
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14027fac0
mov edx, 4
mov rcx, rsi
call fcn.1400bb640
test eax, eax
jne 0x14028097a
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14027ee50
Function at 0x140282fb0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
movsxd r14, dword [r9 + 8]
mov rsi, r14
mov rdi, rdx
mov edx, r14d
mov qword [rsp + 0x28], r14
mov rbx, r8
mov qword [rsp + 0x120], rcx
mov rbp, r9
call fcn.1400bb680
test rax, rax
je 0x1402831e0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r12, rax
cmp r14, 0x10
ja 0x140283178
mov rax, qword [rbp]
mov r10, qword [rdi]
mov r11, qword [rbx]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x120]
test r10, r10
cmove r10, r12
test r11, r11
mov rax, qword [rax]
cmove r11, r12
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1402831f0
movsxd r9, dword [rdi + 8]
movsxd rax, dword [rdi + 0xc]
xor r8d, r8d
movsxd rdi, dword [rbx + 0xc]
movsxd r15, dword [rbx + 8]
xor ebx, ebx
sub rcx, r9
mov rdx, r9
lea r13, [r12 + r9*8]
mov rbp, r9
mov qword [rsp + 0x48], rdi
lea rdi, [r9 + 1]
mov r14, rcx
neg rdx
sub r9, qword [rsp + 0x48]
xor ecx, ecx
sub rbp, r15
sub rdi, rax
add r9, 1
nop dword [rax]
mov r15, rdx
lea rax, [rbp + rdx]
sar r15, 0x3f
and r15, qword [r10 + rcx*8]
add r15, rbx
setb bl
sar rax, 0x3f
and rax, qword [r11 + r8*8]
add rax, r15
movzx ebx, bl
mov qword [r13 + rdx*8], rax
lea rax, [rdi + rdx]
adc rbx, 0
shr rax, 0x3f
add rcx, rax
lea rax, [r9 + rdx]
add rdx, 1
shr rax, 0x3f
add r8, rax
cmp r14, rdx
jne 0x140283088
mov rdi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rdx, r12
mov rcx, rdi
call fcn.14027c9e0
mov rdx, r12
mov rcx, rdi
sub rbx, rax
mov rax, qword [rsp + 0x28]
lea r9, [r12 + rax*8]
nop
mov r8, qword [rcx]
mov rax, qword [rdx]
add rdx, 8
add rcx, 8
xor rax, r8
and rax, rbx
xor rax, r8
mov qword [rcx - 8], rax
mov qword [rdx - 8], 0
cmp r9, rdx
jne 0x140283100
mov rax, qword [rsp + 0x120]
mov r13d, 1
mov dword [rax + 8], esi
mov dword [rax + 0x10], 0
cmp r12, qword [rsp + 0x30]
je 0x14028315c
mov r8d, 0x5e
lea rdx, str.crypto_bn_bn_mod.c
mov rcx, r12
call fcn.14000ea40
mov eax, r13d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x28]
lea r13, str.crypto_bn_bn_mod.c
mov r8d, 0x3c
mov rdx, r13
lea rcx, [rax*8]
call fcn.14000e980
mov r12, rax
test rax, rax
jne 0x140283008
call fcn.1401106f0
mov rcx, r13
mov edx, 0x3e
xor r13d, r13d
lea r8, str.bn_mod_add_fixed_top
call fcn.140110820
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 3
call fcn.140110910
jmp 0x14028315c
xor r13d, r13d
jmp 0x14028315c
mov r8, qword [rsp + 0x38]
mov rcx, rax
xor r9d, r9d
mov rdx, r12
call fcn.14027c9e0
jmp 0x140283128
Function at 0x1402d34f0
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rdx
mov rdx, qword [rcx + 0x78]
test rax, rax
je 0x1402d364b
movzx ecx, byte [rax + 1]
movzx r9d, byte [rax + 2]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax]
or ecx, r9d
movzx r9d, byte [rax + 3]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx], ecx
movzx ecx, byte [rax + 5]
movzx r9d, byte [rax + 6]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 4]
or ecx, r9d
movzx r9d, byte [rax + 7]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 4], ecx
movzx ecx, byte [rax + 9]
movzx r9d, byte [rax + 0xa]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 8]
or ecx, r9d
movzx r9d, byte [rax + 0xb]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 8], ecx
movzx ecx, byte [rax + 0xd]
movzx r9d, byte [rax + 0xe]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0xc]
or ecx, r9d
movzx r9d, byte [rax + 0xf]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0xc], ecx
movzx ecx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x12]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x10]
or ecx, r9d
movzx r9d, byte [rax + 0x13]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x10], ecx
movzx ecx, byte [rax + 0x15]
movzx r9d, byte [rax + 0x16]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x14]
or ecx, r9d
movzx r9d, byte [rax + 0x17]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x14], ecx
movzx ecx, byte [rax + 0x19]
movzx r9d, byte [rax + 0x1a]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x18]
or ecx, r9d
movzx r9d, byte [rax + 0x1b]
shl r9d, 0x18
or ecx, r9d
mov dword [rdx + 0x18], ecx
movzx ecx, byte [rax + 0x1d]
movzx r9d, byte [rax + 0x1e]
shl ecx, 8
shl r9d, 0x10
or ecx, r9d
movzx r9d, byte [rax + 0x1c]
movzx eax, byte [rax + 0x1f]
or ecx, r9d
shl eax, 0x18
or eax, ecx
mov dword [rdx + 0x1c], eax
test r8, r8
je 0x1402d36eb
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 1]
shl eax, 0x10
shl ecx, 8
or eax, ecx
movzx ecx, byte [r8]
or eax, ecx
movzx ecx, byte [r8 + 3]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x20], eax
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 5]
shl eax, 0x10
shl ecx, 8
or eax, ecx
movzx ecx, byte [r8 + 4]
or eax, ecx
movzx ecx, byte [r8 + 7]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x24], eax
movzx eax, byte [r8 + 0xa]
movzx ecx, byte [r8 + 9]
shl eax, 0x10
shl ecx, 8
or eax, ecx
movzx ecx, byte [r8 + 8]
or eax, ecx
movzx ecx, byte [r8 + 0xb]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x28], eax
movzx eax, byte [r8 + 0xd]
movzx ecx, byte [r8 + 0xe]
shl eax, 8
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [r8 + 0xc]
or eax, ecx
movzx ecx, byte [r8 + 0xf]
shl ecx, 0x18
or eax, ecx
mov dword [rdx + 0x2c], eax
mov eax, 1
mov dword [rdx + 0x70], 0
ret
Function at 0x1402d7ac0
Capabilities:
Encode data using base64

Disassembly:
push r12
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r10, rdx
test rcx, rcx
je 0x1402d7ae0
test byte [rcx + 0x5c], 2
lea rax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne r11, rax
xor r12d, r12d
test r9d, r9d
jg 0x1402d7b45
jmp 0x1402d7b85
movzx eax, byte [r8 + 1]
add r8, 3
shl eax, 8
or eax, edx
movzx edx, byte [r8 - 1]
mov ecx, eax
shr ecx, 0x12
or edx, eax
shr eax, 0xc
movzx ecx, byte [r11 + rcx]
and eax, 0x3f
mov byte [r10 - 4], cl
movzx eax, byte [r11 + rax]
mov byte [r10 - 3], al
mov eax, edx
and edx, 0x3f
shr eax, 6
and eax, 0x3f
movzx eax, byte [r11 + rax]
mov byte [r10 - 2], al
movzx eax, byte [r11 + rdx]
mov byte [r10 - 1], al
sub r9d, 3
je 0x1402d7b85
movzx edx, byte [r8]
mov rcx, r10
add r12d, 4
add r10, 4
shl edx, 0x10
cmp r9d, 2
jg 0x1402d7af0
je 0x1402d7b90
mov eax, edx
shr edx, 0xc
shr eax, 0x12
and edx, 0x30
movzx eax, byte [r11 + rax]
mov byte [rcx], al
movzx eax, byte [r11 + rdx]
mov byte [rcx + 1], al
mov eax, 0x3d
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
mov eax, r12d
mov byte [r10], 0
pop r12
ret
movzx eax, byte [r8 + 1]
shl eax, 8
or eax, edx
shr edx, 0x12
movzx edx, byte [r11 + rdx]
mov byte [rcx], dl
mov edx, eax
shr eax, 6
shr edx, 0xc
and eax, 0x3c
and edx, 0x3f
movzx edx, byte [r11 + rdx]
mov byte [rcx + 1], dl
movzx eax, byte [r11 + rax]
jmp 0x1402d7b7e

Function at 0x1402d8070
Capabilities:
Encode data using base64

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp fcn.1402d7ac0
Function at 0x1402dfca0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
test rcx, rcx
je 0x1402dfd68
cmp byte [rdi], 0
je 0x1402dfd56
test rsi, rsi
je 0x1402dfd56
cmp byte [rsi], 0
je 0x1402dfe08
mov rdx, rsi
xor eax, eax
jmp 0x1402dfceb
cmp eax, 0x80000000
je 0x1402dfe08
add rdx, 1
add eax, 1
cmp byte [rdx], 0
jne 0x1402dfce0
mov ebp, eax
and ebp, 0x7fffffff
test rbx, rbx
je 0x1402dfda0
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x1402dfd43
jmp 0x1402dfdd0
movzx edx, byte [rax - 1]
cmp dl, 0x20
je 0x1402dfd48
cmp dl, 0x2c
je 0x1402dfd48
lea rcx, [rax + 1]
mov rdx, rsi
call sub.msvcrt.dll_strstr
test rax, rax
je 0x1402dfdd0
cmp rax, rbx
jne 0x1402dfd20
movzx edx, byte [rax + rbp]
test dl, 0xdf
je 0x1402dfd56
cmp dl, 0x2c
jne 0x1402dfd2e
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
test r9d, r9d
jne 0x1402dfde0
lea rcx, str.http_proxy
call sub.msvcrt.dll_getenv
mov rdi, rax
test rax, rax
jne 0x1402dfcba
lea rcx, str.HTTPS_PROXY
call sub.msvcrt.dll_getenv
mov rdi, rax
test rax, rax
jne 0x1402dfcba
jmp 0x1402dfd56
lea rcx, str.no_proxy
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
jne 0x1402dfd08
lea rcx, str.NO_PROXY
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
jne 0x1402dfd08
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.https_proxy
call sub.msvcrt.dll_getenv
mov rdi, rax
test rax, rax
jne 0x1402dfcba
lea rcx, str.HTTP_PROXY
jmp 0x1402dfd8c
xor ebp, ebp
jmp 0x1402dfcff
Function at 0x1402e4030
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x148], rdx
mov qword [rsp + 0x150], r8
test r8, r8
je 0x1402e429b
movzx eax, byte [rcx + 0xc]
lea rbx, [rcx + 0xc]
lea rsi, [rcx + 0x14]
xor ebp, ebp
lea rdi, [rsp + 0x70]
mov byte [rsp + 0x3e], al
movzx eax, byte [rcx + 0x14]
mov byte [rsp + 0x3f], al
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
nop word [rax + rax]
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
movq xmm0, qword [rax + rbp]
movzx eax, byte [rsp + 0x3e]
and eax, 0xffffff9f
movd r13d, xmm0
pshufd xmm1, xmm0, 0xe5
movq qword [rsp + 0x68], xmm0
or eax, 0x40
movd r12d, xmm1
movq qword [rsp + 0x60], xmm0
mov byte [rcx + 0xc], al
movzx eax, byte [rsp + 0x3f]
and eax, 0xffffff9f
or eax, 0x20
mov byte [rcx + 0x14], al
mov rcx, rbx
call fcn.1400d0a40
mov rdx, rdi
mov rcx, rbx
call fcn.1400d0c60
mov rcx, qword [rsp + 0x50]
mov r8d, 1
mov rdx, rdi
call fcn.1400cd2b0
mov rcx, rsi
call fcn.1400d0a40
mov rdx, rdi
mov rcx, rsi
call fcn.1400d0c60
mov rcx, qword [rsp + 0x58]
mov r8d, 1
mov rdx, rdi
call fcn.1400cd2b0
mov r10d, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
xor r10d, r12d
xor ecx, r13d
mov edx, r10d
mov r15d, r10d
mov eax, ecx
xor r9d, r13d
shr edx, 0x18
shr r15d, 0x10
mov r14d, r10d
mov r11d, r9d
movzx edx, dl
shr eax, 8
movzx r15d, r15b
xor r8d, r12d
shl rdx, 8
mov dword [rsp + 0x20], eax
shr r14d, 8
mov eax, r9d
or rdx, r15
shr r11d, 8
movzx r14d, r14b
mov r13d, ecx
shr eax, 0x10
shl rdx, 8
mov dword [rsp + 0x40], r11d
mov r11d, r9d
mov dword [rsp + 0x44], eax
or rdx, r14
mov eax, r8d
shr r11d, 0x18
shr eax, 8
movzx r10d, r10b
shl rdx, 8
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], eax
mov r12d, ecx
shr r13d, 0x18
mov r11d, r8d
mov eax, r8d
or rdx, r10
shr r12d, 0x10
movzx r13d, r13b
shr r11d, 0x10
shr eax, 0x18
movzx r12d, r12b
movzx r8d, r8b
shl rdx, 8
movzx eax, al
movzx r11d, r11b
mov byte [rsp + 0x3e], cl
or rdx, r13
movzx r10d, byte [rsp + 0x20]
shl rax, 8
movzx ecx, cl
shl rdx, 8
or rax, r11
mov byte [rsp + 0x3f], r9b
movzx r9d, r9b
or rdx, r12
shl rax, 8
add rbp, 8
shl rdx, 8
or rdx, r10
movzx r10d, byte [rsp + 0x4c]
shl rdx, 8
or rax, r10
or rdx, rcx
shl rax, 8
mov qword [rsp + 0x20], rdx
or rax, r8
movzx r8d, byte [rsp + 0x48]
shl rax, 8
or rax, r8
movzx r8d, byte [rsp + 0x44]
shl rax, 8
or rax, r8
movzx r8d, byte [rsp + 0x40]
shl rax, 8
or rax, r8
shl rax, 8
or rax, r9
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x140]
movdqa xmm2, xmmword [rsp + 0x20]
movups xmmword [rax + 0xc], xmm2
cmp qword [rsp + 0x150], rbp
ja 0x1402e40a0
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402e9c40
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1402e9c75
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1402e9c50
and r10, 0xf
je 0x1402e9ca6
mov r9, 0x10
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x1402e9c81
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x1402e9c9a
mov rax, r8
repz ret

Function at 0x1402e9cb0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1402e9ced
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1402e9cc0
pxor xmm1, xmm1
and r10, 0xf
je 0x1402e9d24
mov r9, 0x10
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x1402e9cfc
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x1402e9d18
mov rax, r8
repz ret
Function at 0x1402eefb0
Capabilities:
Encode data using xor

Disassembly:
mov r10d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
test r10d, r10d
je 0x1402eefd0
mov r10, qword [0x1403dc400]
mov qword [rsp + 0x30], r10
jmp fcn.1401f53c0
mov r10, qword [0x1403dc3f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r10
jmp fcn.1401f57a0
Function at 0x140304790
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x1403cfe80]
lea rsi, [0x1403cfe80]
mov qword [rcx], rax
mov rax, qword [0x1403d0ec0]
lea rdi, [rcx + 8]
mov rbp, rcx
and rdi, 0xfffffffffffffff8
lea rbx, [rbp + 0x48]
mov r9, rbp
mov qword [rcx + 0x1040], rax
mov rax, rcx
sub rax, rdi
sub rsi, rax
add eax, 0x1048
shr eax, 3
mov ecx, eax
mov eax, 0x48
rep movsq qword [rdi], qword [rsi]
cmp edx, eax
cmovle eax, edx
movsxd r10, eax
mov rax, r8
add r10, r8
nop word [rax + rax]
lea rcx, [rax + 1]
movzx r11d, byte [rax]
cmp r10, rcx
cmovbe rcx, r8
shl r11d, 8
movzx eax, byte [rcx]
lea rdx, [rcx + 1]
or eax, r11d
cmp r10, rdx
cmovbe rdx, r8
shl eax, 8
lea rcx, [rdx + 1]
movzx edx, byte [rdx]
or edx, eax
cmp r10, rcx
cmovbe rcx, r8
shl edx, 8
lea rax, [rcx + 1]
movzx ecx, byte [rcx]
or edx, ecx
cmp r10, rax
cmovbe rax, r8
xor dword [r9], edx
add r9, 4
cmp rbx, r9
jne 0x1403047f8
mov qword [rsp + 0x28], 0
mov rdi, rbp
lea rsi, [rsp + 0x28]
nop
mov rdx, rbp
mov rcx, rsi
add rdi, 8
call fcn.140303620
mov rax, qword [rsp + 0x28]
mov qword [rdi - 8], rax
cmp rbx, rdi
jne 0x140304860
lea rdi, [rbp + 0x1048]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.140303620
mov rax, qword [rsp + 0x28]
mov qword [rbx - 8], rax
cmp rdi, rbx
jne 0x140304888
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140306860
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rbx, rdx
mov edx, dword [rdx + 8]
mov r12, rcx
mov rsi, r8
cmp edx, eax
jge 0x140306887
mov edx, eax
mov rax, rbx
mov rbx, r8
mov rsi, rax
mov rcx, r12
call fcn.1400bb680
test rax, rax
je 0x1403069c8
mov eax, dword [rsi + 8]
test eax, eax
jle 0x140306a00
mov rcx, qword [rbx]
mov r8, qword [r12]
mov r9, qword [rsi]
lea rdx, [rcx + 8]
cmp r8, rdx
lea rdx, [r9 + 8]
setne r10b
cmp r8, rdx
setne dl
test r10b, dl
je 0x1403069d8
lea edx, [rax - 1]
cmp edx, 1
jbe 0x1403069d8
mov r10d, eax
xor edx, edx
shr r10d, 1
shl r10, 4
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx + rdx]
movdqu xmm1, xmmword [r9 + rdx]
pxor xmm0, xmm1
movups xmmword [r8 + rdx], xmm0
add rdx, 0x10
cmp rdx, r10
jne 0x1403068e8
mov edx, eax
and edx, 0xfffffffe
test al, 1
je 0x14030691a
mov rcx, qword [rcx + rdx*8]
xor rcx, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rcx
mov r10d, dword [rbx + 8]
cmp eax, r10d
jge 0x140306990
mov rcx, qword [rbx]
mov r11, qword [r12]
movsxd rdx, eax
mov esi, r10d
lea r8, [rdx*8]
sub esi, eax
lea rbx, [r11 + r8]
lea r9, [rcx + r8 + 8]
cmp rbx, r9
je 0x1403069b0
lea r9d, [rsi - 1]
cmp r9d, 2
jbe 0x1403069b0
mov r9d, esi
add r8, rcx
xor edx, edx
shr r9d, 1
shl r9, 4
nop dword [rax]
movdqu xmm2, xmmword [r8 + rdx]
movups xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp rdx, r9
jne 0x140306968
mov edx, esi
and edx, 0xfffffffe
add eax, edx
cmp esi, edx
je 0x140306990
cdqe
mov rdx, qword [rcx + rax*8]
mov qword [r11 + rax*8], rdx
mov dword [r12 + 8], r10d
mov rcx, r12
call fcn.1400bb840
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rax, qword [rcx + rdx*8]
mov qword [r11 + rdx*8], rax
add rdx, 1
cmp r10d, edx
jg 0x1403069b0
jmp 0x140306990
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov r11d, eax
xor edx, edx
nop dword [rax]
mov r10, qword [rcx + rdx*8]
xor r10, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], r10
add rdx, 1
cmp r11, rdx
jne 0x1403069e0
jmp 0x14030691a
xor eax, eax
jmp 0x14030691a
Function at 0x1403109c0
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x48
movq xmm0, rdx
movq xmm1, r8
mov rbx, rcx
mov r13, rdx
mov r12, r8
punpcklqdq xmm0, xmm1
test r8, r8
je 0x140310a65
test rcx, rcx
je 0x140310a90
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140310a65
lea r14, [rsp + 0x20]
test rdx, rdx
je 0x140310a47
lea r14, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov rdx, r14
call fcn.14013a650
test rax, rax
je 0x140310a30
mov rax, qword [rax + 0x10]
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
lea rdx, [0x1403d58b7]
mov rcx, r13
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140310a78
mov rcx, qword [rbx + 0x10]
lea rax, [0x1403d58bb]
mov rdx, r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14013a650
test rax, rax
jne 0x140310a1a
xor eax, eax
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r12
call fcn.14013f2e0
test rax, rax
jne 0x140310a1e
jmp 0x140310a43
mov rcx, r8
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
jmp fcn.14013f2e0