joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180077680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18006f460
sub rsp, rax
mov rax, qword [0x1805905c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008d308
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800776cf
mov rax, rbp
jmp 0x1800777d7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x593760]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008f184
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x593760]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800777d3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800777d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008f184
test rax, rax
js 0x1800777d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800777d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800777c5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800777c5
cmp byte [rcx], 0xd
jne 0x1800777ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800777ba
cmp byte [rcx + 1], 0xa
jne 0x1800777ba
inc rcx
jmp 0x1800777ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5909e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007778d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800777d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006f8a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180085894
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180085747
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180085747
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180085747
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180085747
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180085747
cmp dword [rcx + 0x84], 0xe
jbe 0x180085747
cmp dword [rcx + 0xf8], 0
je 0x180085747
mov ecx, ebx
call fcn.1800857f8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800855d4
nop
cmp dword [rbp + 0x20], 0
je 0x180085795
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800857a0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800856d8
Function at 0x180087568
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 [0x1805905c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1800e6a20]
mov rbp, rcx
call fcn.180092270
xor edi, edi
test rax, rax
je 0x18008764e
mov ebx, edi
call fcn.1800854a8
mov r14d, dword [rax]
call fcn.1800854a8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1800921bc
mov rsi, rax
test rax, rax
je 0x1800875df
call fcn.1800854a8
mov dword [rax], r14d
jmp 0x180087609
call fcn.1800854a8
cmp dword [rax], 0x22
jne 0x180087646
call fcn.1800854a8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1800921bc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x180087646
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x18008760d
cmp rax, 3
je 0x180087628
mov rcx, rsi
call fcn.1800874c4
test al, al
je 0x180087639
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180087639
mov dil, 1
mov rcx, rbx
call fcn.180080600
mov al, dil
jmp 0x180087650
mov rcx, rbx
call fcn.180080600
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18006f8a0
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 0x18008e3bc
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, [0x180593760]
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 0x18008e413
cmp word [rdx], r13w
jne 0x18008e413
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008e418
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008e53d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008e55e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008e451
mov rdx, r9
mov word [rbx], cx
jmp 0x18008e478
cmp r9, r8
jae 0x18008e488
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 0x18008e432
jmp 0x18008e53d
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 0x18008e532
cmp dword [rsp + 0x80], esi
je 0x18008e532
lea r8, [0x180593760]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008e50a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008e4da
mov word [rbx], r13w
jmp 0x18008e53a
mov ecx, 0xd
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 0x18008e4e7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008e53a
cmp word [rsp + 0x70], r13w
jne 0x18008e517
cmp rbx, r14
je 0x18008e4d4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008f18c
cmp word [rsp + 0x70], r13w
je 0x18008e53d
mov ecx, 0xd
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, [0x180593760]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008e537
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008e53d
Function at 0x18008f328
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008f33e
mov al, 1
jmp 0x18008f39e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008f34f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008f39c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18009299c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008f39c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008f39c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008f39c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008f39e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180096508
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 0x180096538
xor eax, eax
jmp 0x1800965fb
mov rbp, rbx
cmp word [rax], si
je 0x18009655d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180096544
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180096540
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.180094178
movsxd r14, eax
test eax, eax
jne 0x18009659b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180096531
mov rcx, r14
call fcn.18008f5c4
mov rdi, rax
test rax, rax
jne 0x1800965b4
xor ecx, ecx
call fcn.18008bcb4
jmp 0x180096590
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.180094178
test eax, eax
jne 0x1800965e5
mov rcx, rdi
call fcn.18008bcb4
jmp 0x1800965ef
xor ecx, ecx
call fcn.18008bcb4
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 0x180096618
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 0x18009669f
mov rsi, rbx
cmp word [rax], bp
je 0x18009665e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180096648
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180096644
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18008f5c4
mov rdi, rax
test rax, rax
je 0x18009668c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18009eae0
mov rbp, rdi
xor ecx, ecx
call fcn.18008bcb4
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 0x180099310
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.18008a05c
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 0x1800993b1
cmp ebx, dword [rsp + 0x30]
je 0x1800993aa
test esi, esi
je 0x1800993aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180099385
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180099392
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009936f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180099396
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800993b3
mov eax, 1
jmp 0x1800993b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18009c43c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1805905c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18009c486
call fcn.180085488
mov dword [rax], 0xf
call fcn.1800854a8
mov dword [rax], 0xd
call fcn.18007614c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18006f8a0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18009c491
lea eax, [rbx + 1]
jmp 0x18009c473
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 0x18009c471
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18009c473
Function at 0x18009d3ac
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.18008f18c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008f18c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009d4fc
cmp rax, 0xffffffffffffffff
je 0x18009d4fc
xor edi, edi
test rbp, rbp
jle 0x18009d4a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18008bc3c
mov rbx, rax
test rax, rax
jne 0x18009d434
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009d49d
mov edx, 0x8000
mov ecx, r14d
call fcn.18009d230
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.18008e0b4
cmp eax, 0xffffffff
je 0x18009d47d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009d444
mov edx, r15d
mov ecx, r14d
call fcn.18009d230
jmp 0x18009d49d
cmp byte [rsi + 0x38], dil
je 0x18009d494
cmp dword [rsi + 0x34], 5
jne 0x18009d494
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18009d49d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18008bcb4
jmp 0x18009d510
jns 0x18009d510
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008f18c
cmp rax, 0xffffffffffffffff
jne 0x18009d4c8
cmp byte [rsi + 0x30], dil
je 0x18009d510
mov edi, dword [rsi + 0x2c]
jmp 0x18009d510
mov ecx, r14d
call fcn.18009299c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009d510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18009d510
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009d509
mov eax, dword [rsi + 0x2c]
jmp 0x18009d50e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008f18c
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 0x18009e5c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18009e5e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18009e5e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000e870
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000e895
cmp rax, rcx
je 0x14000e89b
cmp rdx, 4
jae 0x14000e89f
xor eax, eax
xor r8d, r8d
jmp 0x14000e930
pop rbp
jmp fcn.140006ab0
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140031500]
movdqa xmm3, xmmword [0x1400314e0]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000e8c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000e947
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000e930
pop rbp
ret
Function at 0x1400190d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x14001913c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 8], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x1400191e0
nop dword [rax + rax]
cmp rdx, r12
je 0x1400192a7
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x14001920a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x140019200
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x140019228
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x14001920a
jmp 0x140019238
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x140019216
jmp 0x140019270
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x140019270
xor r13b, 1
mov r14d, esi
test si, si
je 0x140019150
jmp 0x1400191e0
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x14001920a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x140019216
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x140019287
test r13b, 1
je 0x1400192a3
mov r13b, 1
mov r14w, 0x3b
cmp rdi, qword [rbp - 0x18]
jne 0x140019130
lea rcx, [rbp - 0x18]
call fcn.140017b00
mov rax, qword [rbp - 0x10]
jmp 0x140019130
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x1400192ed
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.140016530
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp - 0x18], 0
jne 0x140019305
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
cmp qword [rbp - 0x18], 0
invalid
je 0x1400192dc
mov r8, qword [rbp - 0x10]
Function at 0x140019380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x1400193f1
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1400193f1
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1400193f1
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1400194cc
cmp byte [rdx], 0xed
jne 0x1400194d5
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1400194d5
cmp rbx, 3
jb 0x140019431
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x1400195bf
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x140031590]
cmp rcx, 3
jbe 0x1400195f1
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x140019563
test rdi, rdi
je 0x140019560
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1400194f8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x140019560
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1400194f0
cmp r10b, 0xe0
jb 0x1400194de
cmp r10b, 0xed
jne 0x14001952f
cmp r8, rax
je 0x140019560
lea r8, [r9 + 2]
cmp r8, rax
je 0x140019560
cmp byte [r9 + 1], 0x9f
ja 0x14001955c
add r9, 3
mov r8, r9
invalid
jmp 0x1400194f0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
enter 0xffffffffffff8041, 0xfffffffffffffffa
invalid
jb 0x1400194f0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1400194f0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x140019592
add rcx, rbx
mov r8, rdi
mov eax, edi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.14002fd60
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001956b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.14002fd60
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x140019450
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.14002fd60
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x1400194ae

Function at 0x140019a40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov esi, ecx
Function at 0x14001a600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsp
Function at 0x1400253e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.1400184e0
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x14002542d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x14002545e
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.1400252f0
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x1400254e5
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400254ca
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x14002548e
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x1400254b7
cmp qword [rax + 0x10], 0x11
jb 0x1400254a8
mov r8, qword [r8 - 8]
mov rcx, qword [0x14008c1d8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14008c1d8]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025504
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1400254d7
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x1400254d7
mov rcx, qword [0x14008c1d8]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]