joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800196a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x88
cmp byte [0x1801ca3d5], 0
je 0x180019903
mov ecx, dword [0x1801ca424]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180019903
mov rcx, qword [0x1801ca1e0]
test rcx, rcx
je 0x180019903
mov qword [rsp + 0x90], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0xa0], rdi
mov r8d, 0x2f
mov qword [rsp + 0x80], r14
movaps xmmword [rsp + 0x70], xmm6
call fcn.18000cd30
call fcn.18000d340
mov rcx, rax
call fcn.18000b200
mov edi, dword [0x1801ca090]
mov rbx, rax
mov r14d, 4
test rax, rax
jne 0x180019744
xorps xmm0, xmm0
xorps xmm1, xmm1
xorps xmm2, xmm2
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
movss dword [rsp + 0x28], xmm2
jmp 0x1800197b2
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rdi*8]
mov eax, dword [r14 + rcx]
cmp dword [0x1801f0728], eax
jle 0x180019792
lea rcx, [0x1801f0728]
call fcn.180100388
cmp dword [0x1801f0728], 0xffffffff
jne 0x180019792
mov ecx, 0x56e64b7d
call fcn.180005e40
lea rcx, [0x1801f0728]
mov rdx, qword [rax]
mov qword [0x1801f05d8], rdx
call fcn.18010031c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x1801f05d8]
movss xmm2, dword [rsp + 0x28]
movss xmm1, dword [rsp + 0x24]
movss xmm0, dword [rsp + 0x20]
subss xmm0, dword [rsp + 0x30]
movss xmm6, dword [rsp + 0x34]
subss xmm2, dword [rsp + 0x38]
subss xmm1, xmm6
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, dword [0x1801560c4]
ja 0x1800198e6
movss xmm0, dword [0x1801f0154]
addss xmm0, dword [0x180155e5c]
mov qword [rsp + 0x98], rsi
mov rsi, qword gs:[0x58]
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
movaps xmm1, xmm0
movss dword [0x1801f0154], xmm0
movaps xmm0, xmm1
call fcn.1801020e0
addss xmm6, dword [0x180155e64]
movaps xmm8, xmm0
movaps xmm7, xmm0
mulss xmm7, dword [0x180155fd8]
shufps xmm8, xmm0, 1
mulss xmm8, dword [0x180155fd8]
addss xmm7, dword [rsp + 0x38]
addss xmm8, dword [rsp + 0x30]
call fcn.18000d340
mov rbx, rax
test rax, rax
jne 0x18001986b
xor ecx, ecx
jmp 0x1800198b8
mov rax, qword [rsi + rdi*8]
mov ecx, dword [r14 + rax]
cmp dword [0x1801f0474], ecx
jle 0x1800198ad
lea rcx, [0x1801f0474]
call fcn.180100388
cmp dword [0x1801f0474], 0xffffffff
jne 0x1800198ad
mov ecx, 0x42722fff
call fcn.180007500
lea rcx, [0x1801f0474]
mov qword [0x1801f09a8], rax
call fcn.18010031c
mov rax, qword [0x1801f09a8]
mov rcx, qword [rbx + rax]
unpcklps xmm8, xmm6
lea rdx, [rsp + 0x40]
movsd qword [rsp + 0x40], xmm8
movss dword [rsp + 0x48], xmm7
call fcn.18000c0c0
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
mov rsi, qword [rsp + 0x98]
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x18001c650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001c6c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18001c6c8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18001c6b5
nop
cmp rbx, rcx
jae 0x18001c6c8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18001c6a0
cmp rbx, rcx
jae 0x18001c6c8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001c6ca
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180034160
Capabilities:
Delete file

Disassembly:
sub rsp, 0xa8
movdqa xmm1, xmmword [0x1801563e0]
xorps xmm0, xmm0
mov r8, qword [0x1801c84b0]
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x40], 0
movdqu xmmword [rsp + 0x50], xmm1
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180034190
movabs rax, 0x7fffffffffffffff
sub rax, r8
cmp rax, rcx
jb 0x18003435b
cmp qword [0x1801c84b8], 0xf
lea r9, [0x1801c84a0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
cmova r9, qword [0x1801c84a0]
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0x28], rdx
movaps xmmword [rsp + 0x80], xmm7
mov qword [rsp + 0x20], r8
call fcn.180054a60
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x180034230
lea rax, [rcx + 4]
cmp rdx, 0xf
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
cmova rax, qword [rsp + 0x60]
mov dword [rax + rcx], 0x766e692e
mov byte [rax + rcx + 4], 0
lea rax, [rsp + 0x60]
jmp 0x18003424f
lea r9, str..inv
mov qword [rsp + 0x20], 4
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.180053290
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1800342a2
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003429d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800342e0
call fcn.1801007ac
mov rdx, qword [rsp + 0x78]
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
cmp rdx, 0xf
jbe 0x1800342ec
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800342e7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800342e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801007ac
cmp qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180034343
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003433e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003433e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801007ac
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0x80]
add rsp, 0xa8
ret
call fcn.180004060
int3
Function at 0x180041390
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.180100ea0
sub rsp, rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x1800413c0
mov dword [rsp + 0x20], 0x270
mov ebx, 0x258
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.180057400
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x319
ja 0x18004142a
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.180057400
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x31a
jb 0x180041410
shr rax, 0x20
lea rcx, [rsp + 0x20]
add eax, 0x80000000
xor eax, 0x80000000
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180057400
mov ecx, eax
imul rax, rcx, 0x7bd
cmp eax, 0x32f
ja 0x18004147a
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.180057400
mov ecx, eax
imul rax, rcx, 0x7bd
cmp eax, 0x330
jb 0x180041460
mov rdx, qword [0x1801eb678]
shr rax, 0x20
add eax, 0x80000000
movss dword [rsp + 0x13cc], xmm1
xor eax, 0x80000000
cmp rdx, qword [0x1801eb680]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x13c8], xmm0
je 0x1800414c8
movsd xmm0, qword [rsp + 0x13c8]
movsd qword [rdx], xmm0
add qword [0x1801eb678], 8
jmp 0x1800414dc
lea r8, [rsp + 0x13c8]
lea rcx, [0x1801eb670]
call fcn.180054d90
lea rcx, [rsp + 0x20]
call fcn.180057400
sar eax, 0x1f
lea rcx, [rsp + 0x20]
and eax, 2
dec eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180057400
mov rdx, qword [0x1801eb690]
sar eax, 0x1f
and eax, 2
dec eax
movss dword [rsp + 0x13d4], xmm1
cmp rdx, qword [0x1801eb698]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x13d0], xmm0
je 0x180041547
movsd xmm0, qword [rsp + 0x13d0]
movsd qword [rdx], xmm0
add qword [0x1801eb690], 8
jmp 0x18004155b
lea r8, [rsp + 0x13d0]
lea rcx, [0x1801eb688]
call fcn.180054d90
mov rdx, qword [0x1801eb7a8]
cmp rdx, qword [0x1801eb7b0]
mov dword [rsp + 0x13c0], 3
je 0x180041586
mov dword [rdx], 3
add qword [0x1801eb7a8], 4
jmp 0x180041593
lea r8, [rsp + 0x13c0]
call fcn.180054f40
sub rbx, 1
jne 0x1800413f0
add rsp, 0x13b0
pop rbx
ret

Function at 0x18004e420
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x18004e430
xor al, al
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x18004e1e0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18004e45d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret
Function at 0x180056c10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180056c48
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180050410
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180056d86
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180056d00
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180056d75
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180056d3d
mov r10, qword [rdx]
cmp r10, rax
je 0x180056d37
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180056d75
cmp r9, rdx
je 0x180056d51
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180056d9b
cmp r9, rdx
jne 0x180056d42
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180056cb0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180056d75
Function at 0x180056dd0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x180056e01
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rdi
mov rdi, qword [0x1801f0cc8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
inc ecx
shl rbx, cl
lea rcx, [0x1801f0cd8]
lea rdx, [rbx + rbx]
call fcn.180050410
mov rcx, qword [0x1801f0cc8]
lea r9, [rbx - 1]
mov qword [0x1801f0cf0], r9
mov qword [0x1801f0cf8], rbx
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x180056f74
mov qword [rsp + 0x30], rsi
mov rax, rcx
movabs rsi, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, r9
shl r11, 4
add r11, qword [0x1801f0cd8]
mov r9, qword [r11]
cmp r9, rdi
jne 0x180056ec0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180056f35
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180056efd
mov r10, qword [rdx]
cmp r10, rax
je 0x180056ef7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180056f35
cmp r9, rdx
je 0x180056f11
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180056f49
cmp r9, rdx
jne 0x180056f02
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
je 0x180056f6f
mov r9, qword [0x1801f0cf0]
jmp 0x180056e71
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180056f35
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180057400
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180057461
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180057420
mov ecx, dword [r9]
jmp 0x18005754b
cmp ecx, 0x4e0
jb 0x18005754b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180057480
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800574d0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x180058fb0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18005900d
lea rbx, [0x18013cf60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180058ff4
cmp r10, 2
jb 0x180058ff4
cmp byte [r9], r8b
jne 0x180058ff4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180058fd0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18005904f
lea rbx, [0x18013cf60]
cmp r8b, 0x23
jne 0x180059033
cmp byte [r9], r8b
jne 0x180059033
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180059020
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180059190
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800591aa
mov qword [r8], 0
call fcn.180059060
mov rbx, rax
test rax, rax
jne 0x1800591c3
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18005929c
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18005929c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18005929c
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18005929c
cmp rdi, 0xffffffffffffffff
je 0x18005929c
mov rax, qword [0x1801ca550]
test rax, rax
je 0x180059239
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18005929c
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180059289
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801ca550]
test rax, rax
je 0x18005927e
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800592a5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180059297
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800592a7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180059470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x180059699
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x1800594d2
cmp r8, rbp
jae 0x180059676
movzx edx, byte [r8]
test dl, dl
je 0x180059676
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x155370]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x180059508
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x180059521
movzx r13d, byte [rax]
jmp 0x180059524
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x180059533
movzx r12d, byte [rax]
jmp 0x180059536
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x180059545
movzx r15d, byte [rax]
jmp 0x180059548
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x1553a8]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x155358]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x155340]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x155390]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x180059653
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x18005965d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x180059676
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x1800594c0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x1800596af
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800596c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push r13
push r14
push r15
mov qword [rsp + 0x28], rbp
xor r10d, r10d
mov qword [rsp + 0x30], rsi
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov rax, rcx
mov qword [rsp + 0x40], r12
mov r14d, r10d
lea r15, [0x180000000]
mov r13, rax
test rbx, rbx
je 0x180059700
cmp rax, rbx
jae 0x1800598ac
movzx r8d, byte [rax]
test r8b, r8b
je 0x1800598ac
mov r11d, r10d
mov ecx, r8d
shr rcx, 3
mov rdx, rbx
movsx r9, byte [rcx + r15 + 0x155370]
test r9d, r9d
sete r11b
add r11d, r9d
test rbx, rbx
jne 0x180059738
movsxd rdx, r11d
add rdx, rax
cmp rax, rdx
lea rcx, [rax + 1]
mov edi, r8d
cmovae edi, r10d
cmp rcx, rdx
jae 0x180059751
movzx r12d, byte [rcx]
jmp 0x180059754
xor r12b, r12b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x180059762
movzx ebp, byte [rcx]
jmp 0x180059765
xor bpl, bpl
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x180059773
movzx esi, byte [rcx]
jmp 0x180059776
xor sil, sil
lea r9, [r9*4]
movzx ecx, dil
mov r15d, dword [r9 + r15 + 0x1553a8]
and r15d, ecx
movzx r8d, r12b
shl r15d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, bpl
or r15d, ecx
movzx r10d, sil
shl r15d, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or r15d, ecx
and r8d, 0xc0
mov ecx, r10d
shl r15d, 6
and ecx, 0x3f
shr r10d, 2
or r10d, edx
or r15d, ecx
shr r10d, 2
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x155358]
or r10d, r8d
shr r15d, cl
lea rcx, [0x180000000]
shr r10d, 2
mov edx, r15d
cmp r15d, dword [r9 + rcx + 0x155340]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r10d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r10d, r8d
mov ecx, 0x100
cmp r15d, 0xffff
cmova edx, ecx
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x155390]
or r10d, edx
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x180059896
xor r10d, r10d
test dil, dil
mov eax, r10d
mov ecx, r10d
setne cl
test sil, sil
setne al
add ecx, eax
mov eax, r10d
test bpl, bpl
setne al
add ecx, eax
mov eax, r10d
test r12b, r12b
setne al
add ecx, eax
cmp r11d, ecx
cmovl ecx, r11d
movsxd rax, ecx
add rax, r13
inc r14d
jmp 0x1800596e8
movsxd rcx, r11d
add rax, rcx
test r15d, r15d
je 0x1800598ac
xor r10d, r10d
inc r14d
jmp 0x1800596e8
mov r12, qword [rsp + 0x40]
mov eax, r14d
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
pop r15
pop r14
pop r13
pop rbx
ret