joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402119d0
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, [0x14032cbe0]
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 0x140211a27
cmp word [rdx], r13w
jne 0x140211a27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140211a2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140211b51
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140211b72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140211a65
mov rdx, r9
mov word [rbx], cx
jmp 0x140211a8c
cmp r9, r8
jae 0x140211a9c
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 0x140211a46
jmp 0x140211b51
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 0x140211b46
cmp dword [rsp + 0x80], esi
je 0x140211b46
lea r8, [0x14032cbe0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140211b1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140211aee
mov word [rbx], r13w
jmp 0x140211b4e
mov ecx, SafeArrayGetDim
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 0x140211afb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140211b4e
cmp word [rsp + 0x70], r13w
jne 0x140211b2b
cmp rbx, r14
je 0x140211ae8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140210c6c
cmp word [rsp + 0x70], r13w
je 0x140211b51
mov ecx, SafeArrayGetDim
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, [0x14032cbe0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140211b4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140211b51

Function at 0x140217cc4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140217d0e
call fcn.14020f108
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14020f0e8
mov dword [rax], SafeArrayGetDim
call fcn.140224414
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140217d19
lea eax, [rbx + 1]
jmp 0x140217cfb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140217cf9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140217cfb
Function at 0x14021e450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14021e478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14021e478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140224c24
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 0x140224c54
xor eax, eax
jmp 0x140224d17
mov rbp, rbx
cmp word [rax], si
je 0x140224c79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140224c60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140224c5c
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.140224b44
movsxd r14, eax
test eax, eax
jne 0x140224cb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140224c4d
mov rcx, r14
call fcn.140071f60
mov rdi, rax
test rax, rax
jne 0x140224cd0
xor ecx, ecx
call fcn.140071eb0
jmp 0x140224cac
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.140224b44
test eax, eax
jne 0x140224d01
mov rcx, rdi
call fcn.140071eb0
jmp 0x140224d0b
xor ecx, ecx
call fcn.140071eb0
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 0x140224d34
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 0x140224dbb
mov rsi, rbx
cmp word [rax], bp
je 0x140224d7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140224d64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140224d60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140071f60
mov rdi, rax
test rax, rax
je 0x140224da8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402357f0
mov rbp, rdi
xor ecx, ecx
call fcn.140071eb0
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 0x1402290f8
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.140222074
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 0x140229199
cmp ebx, dword [rsp + 0x30]
je 0x140229192
test esi, esi
je 0x140229192
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14022916d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14022917a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140229157
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14022917e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14022919b
mov eax, 1
jmp 0x14022919b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14022bd04
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.1402024f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14022bd8e
cmp byte [rbp - 0x21], r15b
je 0x14022bd89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14022bdc4
call fcn.140222844
test eax, eax
jne 0x14022bdb0
cmp byte [rbp - 0x21], r15b
je 0x14022bda8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14022bdc4
cmp byte [rbp - 0x21], r15b
je 0x14022bdc1
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.14020b4cc
test eax, eax
jne 0x14022be64
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402024f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14022be03
cmp byte [rbp - 0x21], r15b
je 0x14022be38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14022be38
call fcn.140222844
test eax, eax
jne 0x14022be24
cmp byte [rbp - 0x21], r15b
je 0x14022be1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14022be38
cmp byte [rbp - 0x21], r15b
je 0x14022be35
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.14020b4cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14022be64
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14022be67
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14022be75
mov rcx, rdi
call fcn.140071eb0
cmp byte [rbp + 0x3f], r15b
je 0x14022be84
mov rcx, qword [rbp + 0x27]
call fcn.140071eb0
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 0x14022cce8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x14022cd49
test byte [rbx + 6], 0xf
jne 0x14022cd3c
xor edi, edi
cmp word [rbx + 4], di
jne 0x14022cd3c
cmp word [rbx + 2], di
jne 0x14022cd3c
cmp word [rbx], di
jne 0x14022cd3c
lea esi, [rdi + 1]
jmp 0x14022cd41
mov esi, 2
movzx eax, si
jmp 0x14022cf41
xor edi, edi
test cx, cx
jne 0x14022cd64
mov rcx, rbx
call fcn.14023140c
movzx ecx, ax
cmp di, ax
jl 0x14022cf3e
movsx edx, cx
test esi, esi
jle 0x14022cd94
sub ebp, edx
cmp ebp, esi
jg 0x14022cd94
movsd xmm0, qword [0x14027c230]
cmp word [rbx + 6], di
jge 0x14022cd86
xorps xmm0, xmmword [0x1402792b0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x14022cf41
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x14022cdc1
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x14022cf41
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, reloc.OLEAUT32.dll_SafeArrayGetDim
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x14022cf33
test ebp, ebp
jns 0x14022cf33
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x14022ce56
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x14022ce28
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x14022ced5
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14022ceeb
jne 0x14022cf0a
test byte [rbx], sil
je 0x14022cf0a
add word [rbx], si
jne 0x14022cf0a
add word [rbx + 2], si
jne 0x14022cf0a
add word [rbx + 4], si
jne 0x14022cf0a
add r11w, si
mov word [rbx + 6], r11w
jmp 0x14022cdb9
cmp r11w, r15w
jne 0x14022cdb9
cmp word [rbx + 4], di
jne 0x14022cdb9
cmp word [rbx + 2], di
jne 0x14022cdb9
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x14022cf41
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14022d3d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14022d3ee
mov al, 1
jmp 0x14022d44e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14022d3ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14022d44c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14021013c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14022d44c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14022d44c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14022d44c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14022d44e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140238ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x140239030
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 1
je 0x140239097
cmp byte [rsi + 0x61], 1
jne 0x1402390c9
mov rcx, qword [rsi + 0x40]
call fcn.14021af64
cmp eax, 0xffffffff
je 0x140239090
test bl, bl
jne 0x140239088
mov rdx, qword [rsi + 0x40]
movzx edi, al
mov ecx, edi
call fcn.14021d3d8
cmp eax, 0xffffffff
cmove edi, eax
jmp 0x1402390a9
movzx edi, al
mov dword [rsi + 0x5c], edi
jmp 0x1402390a9
mov edi, 0xffffffff
jmp 0x1402390a9
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1402390a9
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401f08b0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.14021af64
cmp eax, 0xffffffff
je 0x140239090
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x1402390eb
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x14030c820]
cmp eax, 1
jne 0x1402391b3
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15d, 8
je 0x1402390a9
mov rcx, qword [rsi + 0x40]
call fcn.14021af64
cmp eax, 0xffffffff
je 0x1402390a9
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x140239125
cmp eax, 2
je 0x1402390a9
cmp eax, 3
jne 0x1402391c9
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1402391e1
movzx edi, byte [rsp + 0x57]
jmp 0x14023908b
movzx edi, byte [rsp + 0x57]
jmp 0x1402390a9
test r15, r15
jle 0x1402391d7
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + r15 + 0x57]
dec r15
call fcn.14021d3d8
cmp eax, 0xffffffff
jne 0x1402391e1
jmp 0x1402390a9

Function at 0x140239ae0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140239b17
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140239af1
ret

Function at 0x140239b90
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140239bc8
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140239ba1
ret
Function at 0x1402401b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14024021d
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [0x14030c820]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x1402401ff
call fcn.1401ef41c
jmp 0x1402401ff
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.1401a7b20
lea rdx, [0x14032e638]
mov rcx, rbx
call fcn.1401abd80
mov r14, rax
mov rcx, qword [rbp - 0x20]
lea rax, [0x14032e450]
cmp rcx, rax
je 0x140240269
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x140240269
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14030c820]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402825c0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x14030c820]
movsx rax, byte [rbx + 0x17]
test rax, rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x14024020f
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x14024030b
xor edi, edi
jmp 0x1402402e9
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1402402de
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x14024020f
test rdi, rdi
je 0x1402402c7
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
jne 0x1402402cb
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x14030c820]
jmp 0x1402402d6
Function at 0x14024ea20
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x14024ea49
mov rcx, qword [rsi]
jmp 0x14024ea52
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14024ea9b
mov dil, 1
test bl, bl
je 0x14024ea84
cmp byte [rsi + 8], 1
je 0x14024ea70
mov rcx, qword [rsi]
jmp 0x14024ea79
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x14024eab2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14024eab5
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14024eac8
xor edi, edi
jmp 0x14024ea84
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x14024eae1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14024eae4
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14024ea84
Function at 0x1402572d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140263e10
Function at 0x14025a520
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret

Function at 0x14025c170
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14025c1b6
mov r15, rbx
test r15, r15
je 0x14025c291
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14025c212
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14025c201
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1402357f0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14025c192
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14025c2ad
lea rcx, [r13*8]
call fcn.1401ef3e0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14025c273
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14025c291
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14025c258
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14025c293
add rbx, 0xfffffffffffffff8
jne 0x14025c286
ud2
test r12, r12
je 0x14025c192
mov rcx, r12
call fcn.1401ef41c
mov r15, qword [rsi + 0x10]
jmp 0x14025c192
call fcn.140236a70
int3
Function at 0x1402685e0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x1402846e0]
mov qword [rcx], rax
mov byte [rcx + 8], 0
lea rcx, str.qwave.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140268694
mov rdi, rax
lea rdx, str.QOSCreateHandle
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbx
mov qword [rsi + 0x10], rax
lea rdx, str.QOSCloseHandle
mov rcx, rdi
call rbx
mov qword [rsi + 0x18], rax
lea rdx, str.QOSAddSocketToFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x20], rax
lea rdx, str.QOSRemoveSocketFromFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x28], rax
lea rdx, str.QOSSetFlow
mov rcx, rdi
call rbx
mov qword [rsi + 0x30], rax
cmp qword [rsi + 0x10], 0
je 0x140268694
cmp qword [rsi + 0x18], 0
je 0x140268694
cmp qword [rsi + 0x20], 0
je 0x140268694
cmp qword [rsi + 0x28], 0
sete cl
test rax, rax
sete al
or al, cl
jne 0x140268694
mov al, 1
xchg byte [rsi + 8], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret