joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14026f804
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, [0x1403a6700]
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 0x14026f85b
cmp word [rdx], r13w
jne 0x14026f85b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14026f860
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14026f985
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14026f9a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14026f899
mov rdx, r9
mov word [rbx], cx
jmp 0x14026f8c0
cmp r9, r8
jae 0x14026f8d0
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 0x14026f87a
jmp 0x14026f985
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 0x14026f97a
cmp dword [rsp + 0x80], esi
je 0x14026f97a
lea r8, [0x1403a6700]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14026f952
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14026f922
mov word [rbx], r13w
jmp 0x14026f982
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14026f92f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14026f982
cmp word [rsp + 0x70], r13w
jne 0x14026f95f
cmp rbx, r14
je 0x14026f91c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140265d48
cmp word [rsp + 0x70], r13w
je 0x14026f985
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403a6700]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14026f97f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14026f985
Function at 0x140272ed0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140382e20]
mov rbp, rcx
call fcn.140289a3c
xor edi, edi
test rax, rax
je 0x140272fb6
mov ebx, edi
call fcn.14026da28
mov r14d, dword [rax]
call fcn.14026da28
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140289988
mov rsi, rax
test rax, rax
je 0x140272f47
call fcn.14026da28
mov dword [rax], r14d
jmp 0x140272f71
call fcn.14026da28
cmp dword [rax], 0x22
jne 0x140272fae
call fcn.14026da28
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140289988
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140272fae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140272f75
cmp rax, 3
je 0x140272f90
mov rcx, rsi
call fcn.140272e2c
test al, al
je 0x140272fa1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140272fa1
mov dil, 1
mov rcx, rbx
call fcn.140262a24
mov al, dil
jmp 0x140272fb8
mov rcx, rbx
call fcn.140262a24
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140259980
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1402796ec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14027970c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14026d99c
or eax, 0xffffffff
jmp 0x14027970e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140279adc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140279b13
call fcn.14026da28
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14026ded8
xor eax, eax
jmp 0x140279ba1
mov rdx, r9
mov rcx, r8
call fcn.140279a78
mov rbx, rax
test rax, rax
je 0x140279b9e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402799a4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140279b8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14026d99c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140279b72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140279b81
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14028469c
jmp 0x140279b9e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140279b9b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14027fddc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14027fbd8
Function at 0x1402865cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402865e2
mov al, 1
jmp 0x140286642
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402865f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140286640
mov ecx, dword [rcx + 0x18]
nop
call fcn.140279090
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140286640
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140286640
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140286640
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140286642
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140286c24
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140265d48
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140265d48
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140286d74
cmp rax, 0xffffffffffffffff
je 0x140286d74
xor edi, edi
test rbp, rbp
jle 0x140286d1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140285568
mov rbx, rax
test rax, rax
jne 0x140286cac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140286d15
mov edx, 0x8000
mov ecx, r14d
call fcn.140279308
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140271240
cmp eax, 0xffffffff
je 0x140286cf5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140286cbc
mov edx, r15d
mov ecx, r14d
call fcn.140279308
jmp 0x140286d15
cmp byte [rsi + 0x38], dil
je 0x140286d0c
cmp dword [rsi + 0x34], 5
jne 0x140286d0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140286d15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14028469c
jmp 0x140286d88
jns 0x140286d88
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140265d48
cmp rax, 0xffffffffffffffff
jne 0x140286d40
cmp byte [rsi + 0x30], dil
je 0x140286d88
mov edi, dword [rsi + 0x2c]
jmp 0x140286d88
mov ecx, r14d
call fcn.140279090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140286d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140286d88
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140286d81
mov eax, dword [rsi + 0x2c]
jmp 0x140286d86
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140265d48
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14028c40c
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 0x14028c43c
xor eax, eax
jmp 0x14028c4ff
mov rbp, rbx
cmp word [rax], si
je 0x14028c461
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14028c448
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14028c444
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.1402868c8
movsxd r14, eax
test eax, eax
jne 0x14028c49f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14028c435
mov rcx, r14
call fcn.140286868
mov rdi, rax
test rax, rax
jne 0x14028c4b8
xor ecx, ecx
call fcn.14028469c
jmp 0x14028c494
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.1402868c8
test eax, eax
jne 0x14028c4e9
mov rcx, rdi
call fcn.14028469c
jmp 0x14028c4f3
xor ecx, ecx
call fcn.14028469c
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 0x14028c51c
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 0x14028c5a3
mov rsi, rbx
cmp word [rax], bp
je 0x14028c562
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14028c54c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14028c548
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140286868
mov rdi, rax
test rax, rax
je 0x14028c590
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14025caa0
mov rbp, rdi
xor ecx, ecx
call fcn.14028469c
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 0x14028f68c
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.140284ef4
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 0x14028f72d
cmp ebx, dword [rsp + 0x30]
je 0x14028f726
test esi, esi
je 0x14028f726
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14028f701
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14028f70e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14028f6eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14028f712
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14028f72f
mov eax, 1
jmp 0x14028f72f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140292978
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402929c2
call fcn.14026da08
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14026da28
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14026ded8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140259980
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402929cd
lea eax, [rbx + 1]
jmp 0x1402929af
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 0x1402929ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402929af
Function at 0x1402932cc
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.140264f6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140293356
cmp byte [rbp - 0x21], r15b
je 0x140293351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14029338c
call fcn.140285900
test eax, eax
jne 0x140293378
cmp byte [rbp - 0x21], r15b
je 0x140293370
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14029338c
cmp byte [rbp - 0x21], r15b
je 0x140293389
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.140264c68
test eax, eax
jne 0x14029342c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140264f6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402933cb
cmp byte [rbp - 0x21], r15b
je 0x140293400
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140293400
call fcn.140285900
test eax, eax
jne 0x1402933ec
cmp byte [rbp - 0x21], r15b
je 0x1402933e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140293400
cmp byte [rbp - 0x21], r15b
je 0x1402933fd
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.140264c68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029342c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029342f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029343d
mov rcx, rdi
call fcn.14028469c
cmp byte [rbp + 0x3f], r15b
je 0x14029344c
mov rcx, qword [rbp + 0x27]
call fcn.14028469c
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 0x140021370
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4c8
movdqa xmmword [rsp + 0x4b0], xmm6
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x1a8], r9
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0xa8]
test rcx, rcx
je 0x1400213c1
mov rdx, qword [rax + 0xa0]
cmp rcx, 4
jae 0x1400213c8
xor ebp, ebp
xor r11d, r11d
jmp 0x140021452
xor ebp, ebp
jmp 0x140021476
mov r11, rcx
and r11, 0xfffffffffffffffc
lea r9, [rdx + 0x60]
pxor xmm0, xmm0
movdqa xmm2, xmmword [0x14006e0a0]
movdqa xmm3, xmmword [0x14006e0b0]
mov r10, r11
pxor xmm1, xmm1
nop
movd xmm4, dword [r9 - 0x40]
movd xmm5, dword [r9 - 0x60]
punpckldq xmm5, xmm4
movd xmm4, dword [r9]
movd xmm6, dword [r9 - 0x20]
punpckldq xmm6, xmm4
pshufd xmm4, xmm5, 0xd4
pcmpeqd xmm4, xmm2
pand xmm4, xmm3
paddq xmm0, xmm4
pshufd xmm4, xmm6, 0xd4
pcmpeqd xmm4, xmm2
pand xmm4, xmm3
paddq xmm1, xmm4
sub r9, 0xffffffffffffff80
add r10, 0xfffffffffffffffc
jne 0x1400213f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rbp, xmm0
cmp rcx, r11
je 0x140021476
sub rcx, r11
shl r11, 5
add rdx, r11
nop dword [rax]
xor r9d, r9d
cmp dword [rdx], 2
sete r9b
add rbp, r9
add rdx, 0x20
dec rcx
jne 0x140021460
mov rcx, qword [rax + 0x88]
imul rax, qword [rax + 0x90], 0x228
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x1400214af
test byte [rcx + 0x221], 1
lea rcx, [rcx + 0x228]
lea rax, [rdx - 0x228]
je 0x140021490
mov qword [rsp + 0x370], rdx
mov rax, qword [r8 + 8]
mov qword [rsp + 0x2c8], rax
mov qword [rsp + 0x2c0], r8
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x250], rax
lea rax, [r12 + 0x10]
mov qword [rsp + 0x2e8], rax
mov edi, 1
xor eax, eax
mov qword [rsp + 0x1a0], rax
mov r13, qword [sym.imp.kernel32.dll_HeapFree]
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x120], rax
xor esi, esi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x68], r14
Function at 0x140042270
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov qword [rsp + 0x28], 3
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm3
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rdx + 0x50]
movups xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rsp + 0x90], xmm0
mov rax, qword [rdx + 0x70]
mov qword [rsp + 0xa0], rax
movzx ebp, byte [rsp + 0x38]
mov r14d, 1
mov r15d, 1
cmp bpl, 7
je 0x14004237a
lea rbx, [rsi + 0x20]
movzx r13d, byte [rsp + 0x30]
mov r12, qword [rsi + 0x30]
cmp r12, qword [rsi + 0x20]
jne 0x140042316
mov rcx, rbx
call fcn.140036590
lea rdi, [rsi + 0x38]
lea r15, [rsp + 0x39]
mov rax, qword [rsi + 0x28]
mov byte [rax + r12], r13b
inc r12
mov qword [rsi + 0x30], r12
mov r12, qword [rsi + 0x48]
cmp r12, qword [rsi + 0x38]
jne 0x140042340
mov rcx, rdi
call fcn.140036850
mov rax, qword [rsi + 0x40]
mov rcx, r12
shl rcx, 5
mov byte [rax + rcx], bpl
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0xf]
movups xmmword [rax + rcx + 1], xmm0
movups xmmword [rax + rcx + 0x10], xmm1
inc r12
mov qword [rsi + 0x48], r12
movzx ebp, byte [rsp + 0x60]
mov r15d, 2
cmp bpl, 7
jne 0x1400423b0
mov qword [rsp + 0x20], r15
lea rax, [r15 + r15*4]
lea rdi, [rsp + rax*8]
add rdi, 0x38
nop dword [rax + rax]
mov rcx, rdi
call fcn.14004f480
mov rax, r15
xor rax, r14
add rdi, 0x28
inc r14
cmp rax, 3
jne 0x140042390
jmp 0x140042499
movzx r12d, byte [rsp + 0x58]
mov r15, qword [rsi + 0x30]
cmp r15, qword [rsi + 0x20]
jne 0x1400423c8
mov rcx, rbx
call fcn.140036590
lea r14, [rsp + 0x61]
mov rax, qword [rsi + 0x28]
mov byte [rax + r15], r12b
inc r15
mov qword [rsi + 0x30], r15
mov r15, qword [rsi + 0x48]
cmp r15, qword [rsi + 0x38]
jne 0x1400423ee
mov rcx, rdi
call fcn.140036850
mov rax, qword [rsi + 0x40]
mov rcx, r15
shl rcx, 5
mov byte [rax + rcx], bpl
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0xf]
movups xmmword [rax + rcx + 1], xmm0
movups xmmword [rax + rcx + 0x10], xmm1
inc r15
mov qword [rsi + 0x48], r15
movzx ebp, byte [rsp + 0x88]
cmp bpl, 7
je 0x140042490
movzx r15d, byte [rsp + 0x80]
mov r14, qword [rsi + 0x30]
cmp r14, qword [rsi + 0x20]
jne 0x140042440
mov rcx, rbx
call fcn.140036590
lea rbx, [rsp + 0x89]
mov rax, qword [rsi + 0x28]
mov byte [rax + r14], r15b
inc r14
mov qword [rsi + 0x30], r14
mov r14, qword [rsi + 0x48]
cmp r14, qword [rsi + 0x38]
jne 0x140042469
mov rcx, rdi
call fcn.140036850
mov rax, qword [rsi + 0x40]
mov rcx, r14
shl rcx, 5
mov byte [rax + rcx], bpl
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0xf]
movups xmmword [rax + rcx + 1], xmm0
movups xmmword [rax + rcx + 0x10], xmm1
inc r14
mov qword [rsi + 0x48], r14
mov qword [rsp + 0x20], 3
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140050c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
add rdx, rcx
xor r8d, r8d
xor eax, eax
mov r9d, r8d
nop dword [rax]
cmp rcx, rdx
je 0x140050e70
mov r8d, r9d
movzx r10d, byte [rcx]
test r10b, r10b
js 0x140050cd0
inc rcx
mov r9b, 1
cmp r10d, 0x20
jae 0x140050d70
jmp 0x140050ca0
mov r9d, r10d
and r9d, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp r10b, 0xe0
jb 0x140050d33
movzx r11d, byte [rcx + 2]
shl esi, 6
and r11d, 0x3f
or r11d, esi
cmp r10b, 0xf0
jb 0x140050d4f
movzx r10d, byte [rcx + 3]
and r9d, 7
shl r9d, 0x12
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
or r10d, r9d
cmp r10d, 0x110000
je 0x140050e70
add rcx, 4
mov r9b, 1
cmp r10d, 0x20
jae 0x140050d70
jmp 0x140050ca0
add rcx, 2
shl r9d, 6
or r9d, esi
mov r10d, r9d
mov r9b, 1
cmp r10d, 0x20
jae 0x140050d70
jmp 0x140050ca0
add rcx, 3
shl r9d, 0xc
or r11d, r9d
mov r10d, r11d
mov r9b, 1
cmp r10d, 0x20
jb 0x140050ca0
nop word [rax + rax]
cmp r10d, 0x7f
je 0x140050ca0
mov r11d, r8d
and r11b, 1
je 0x140050e60
cmp r10d, 0x6d
jne 0x140050e60
cmp rcx, rdx
je 0x140050e70
movzx r8d, byte [rcx]
test r8b, r8b
js 0x140050db5
inc rcx
cmp r8d, 0x20
jae 0x140050e50
jmp 0x140050ca0
mov r10d, r8d
and r10d, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp r8b, 0xdf
jbe 0x140050e11
movzx r11d, byte [rcx + 2]
shl esi, 6
and r11d, 0x3f
or r11d, esi
cmp r8b, 0xf0
jb 0x140050e2a
movzx r8d, byte [rcx + 3]
and r10d, 7
shl r10d, 0x12
shl r11d, 6
and r8d, 0x3f
or r8d, r11d
or r8d, r10d
cmp r8d, 0x110000
je 0x140050e70
add rcx, 4
cmp r8d, 0x20
jae 0x140050e50
jmp 0x140050ca0
add rcx, 2
shl r10d, 6
or r10d, esi
mov r8d, r10d
cmp r8d, 0x20
jae 0x140050e50
jmp 0x140050ca0
add rcx, 3
shl r10d, 0xc
or r11d, r10d
mov r8d, r11d
cmp r8d, 0x20
jb 0x140050ca0
nop word cs:[rax + rax]
cmp r8d, 0x7f
je 0x140050ca0
xor r11d, r11d
xor r8d, r8d
xor r11b, 1
movzx r9d, r11b
add rax, r9
jmp 0x140050c99
pop rsi
ret