joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062768
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, [0x14009d260]
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 0x1400627bf
cmp word [rdx], r13w
jne 0x1400627bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400627c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400628e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006290a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400627fd
mov rdx, r9
mov word [rbx], cx
jmp 0x140062824
cmp r9, r8
jae 0x140062834
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 0x1400627de
jmp 0x1400628e9
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 0x1400628de
cmp dword [rsp + 0x80], esi
je 0x1400628de
lea r8, [0x14009d260]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400628b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140062886
mov word [rbx], r13w
jmp 0x1400628e6
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 0x140062893
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400628e6
cmp word [rsp + 0x70], r13w
jne 0x1400628c3
cmp rbx, r14
je 0x140062880
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400633d0
cmp word [rsp + 0x70], r13w
je 0x1400628e9
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, [0x14009d260]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400628e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400628e9
Function at 0x140064160
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140064180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004d244
or eax, 0xffffffff
jmp 0x140064182
xor eax, eax
add rsp, 0x28
ret
Function at 0x140067fdc
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 0x140068063
mov rsi, rbx
cmp word [rax], bp
je 0x140068022
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006800c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140068008
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140060e3c
mov rdi, rax
test rax, rax
je 0x140068050
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400431a0
mov rbp, rdi
xor ecx, ecx
call fcn.14005f8d0
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 0x14006b16c
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.14005e2b4
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 0x14006b20d
cmp ebx, dword [rsp + 0x30]
je 0x14006b206
test esi, esi
je 0x14006b206
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006b1e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006b1ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006b1cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006b1f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006b20f
mov eax, 1
jmp 0x14006b20f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006fc04
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.1400633d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400633d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006fd54
cmp rax, 0xffffffffffffffff
je 0x14006fd54
xor edi, edi
test rbp, rbp
jle 0x14006fcff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005febc
mov rbx, rax
test rax, rax
jne 0x14006fc8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006fcf5
mov edx, 0x8000
mov ecx, r14d
call fcn.14005bfac
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.14005f368
cmp eax, 0xffffffff
je 0x14006fcd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006fc9c
mov edx, r15d
mov ecx, r14d
call fcn.14005bfac
jmp 0x14006fcf5
cmp byte [rsi + 0x38], dil
je 0x14006fcec
cmp dword [rsi + 0x34], 5
jne 0x14006fcec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006fcf5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005f8d0
jmp 0x14006fd68
jns 0x14006fd68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400633d0
cmp rax, 0xffffffffffffffff
jne 0x14006fd20
cmp byte [rsi + 0x30], dil
je 0x14006fd68
mov edi, dword [rsi + 0x2c]
jmp 0x14006fd68
mov ecx, r14d
call fcn.140068c18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006fd68
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 0x14006fd68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006fd61
mov eax, dword [rsi + 0x2c]
jmp 0x14006fd66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400633d0
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 0x1400d6c97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140112e90]
jne 0x1400d193a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d1936
repz ret
ror rcx, 0x10
jmp 0x1400d6bf0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140117b90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140117c88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400d6c75
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140117b90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400d6c97
mov rax, qword [rsp + 0x88]
mov qword [0x140117c88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140117c28], rax
mov rax, qword [0x140117c88]
mov qword [0x140117b00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140117c10], rax
mov dword [0x140117af0], 0xc0000409
mov dword [0x140117af4], 1
mov rax, qword [0x140112e90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140112e98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140117b88], eax
mov ecx, 1
call fcn.1400d473c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e33c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140117b88], 0
jne 0x1400d6d1e
mov ecx, 1
call fcn.1400d473c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140724564
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14072456e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140724597
pop rbp
sub rbp, 0x33
sub rbp, 0x724564
sub rsp, 0x20
jmp 0x1407245b6
mov rax, 0x724564
add rax, rbp
add rax, 0x84
mov rcx, 0x60e
mov rdx, 0xffffffffe950c19f
xor byte [rax], dl
inc rax
dec rcx
jne 0x1407245d5
jmp 0x1407245ec
xlatb
invalid
Function at 0x140001460
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0xc8
movaps xmmword [r11 - 0x28], xmm7
movaps xmmword [r11 - 0x38], xmm8
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [r11 + 0x18], rbx
mov ebp, 1
mov ebx, dword [rcx + 0x20]
mov rsi, rcx
mov qword [r11 - 0x18], rdi
cmp ebx, ebp
mov rdi, rdx
cmove ebx, ebp
call fcn.14003f8a0
mov r9d, ebx
lea rdx, [rsp + 0x20]
mov r8, rdi
call fcn.14003f940
call fcn.14003f8a0
movsd xmm0, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov eax, dword [rsp + 0x28]
lea rdx, [rsp + 0x20]
movsd qword [rsp + 0x30], xmm0
mov dword [rsp + 0x38], eax
call fcn.14003fa80
movss xmm8, dword [rsp + 0x20]
xorps xmm0, xmm0
ucomiss xmm8, xmm0
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xf0]
movss xmm7, dword [rsp + 0x24]
jp 0x140001510
jne 0x140001510
ucomiss xmm7, xmm0
jp 0x140001510
je 0x14000169d
movaps xmmword [rsp + 0x90], xmm9
xor ecx, ecx
movaps xmmword [rsp + 0x80], xmm10
movaps xmmword [rsp + 0x70], xmm11
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xorps xmm10, xmm10
mov ecx, ebp
cvtsi2ss xmm10, eax
mulss xmm10, dword [0x140048924]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xorps xmm9, xmm9
cvtps2pd xmm0, xmm7
cvtsi2ss xmm9, eax
mulss xmm9, dword [0x140048924]
cvtps2pd xmm1, xmm9
subsd xmm0, xmm1
movsd xmm1, qword [0x140048998]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [0x140048998]
movaps xmm11, xmm0
cvtps2pd xmm0, xmm8
cvtps2pd xmm2, xmm10
subsd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm11, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm11
ja 0x1400015aa
xorps xmm2, xmm2
sqrtsd xmm2, xmm11
jmp 0x1400015b6
movaps xmm0, xmm11
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm2, xmm0
movaps xmm11, xmmword [rsp + 0x70]
subss xmm8, xmm10
xorps xmm1, xmm1
subss xmm7, xmm9
cvtsi2ss xmm1, dword [rsi + 4]
movaps xmm0, xmm10
maxss xmm1, dword [0x14004896c]
divss xmm8, xmm1
divss xmm7, xmm1
movss xmm1, dword [0x140048da0]
xorps xmm0, xmm1
comiss xmm0, xmm8
jbe 0x1400015fa
movaps xmm8, xmm0
jmp 0x140001604
comiss xmm8, xmm10
jbe 0x140001604
movaps xmm8, xmm10
movaps xmm10, xmmword [rsp + 0x80]
movaps xmm0, xmm9
xorps xmm0, xmm1
comiss xmm0, xmm7
jbe 0x14000161e
movaps xmm7, xmm0
jmp 0x140001628
comiss xmm7, xmm9
jbe 0x140001628
movaps xmm7, xmm9
movd xmm0, dword [rsi]
movaps xmm9, xmmword [rsp + 0x90]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm2
jbe 0x14000169d
mov ecx, dword [0x140139cf4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000169d
mulss xmm8, dword [0x1400489a4]
lea rdx, [rsp + 0x40]
xor eax, eax
mov r8d, 0x28
mulss xmm7, dword [0x1400489a4]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
mov ecx, ebp
mov dword [rsp + 0x50], eax
cvttss2si eax, xmm8
mov dword [rsp + 0x54], ebp
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x48], eax
cvttss2si eax, xmm7
mov dword [rsp + 0x4c], eax
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003fd00
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0xa0]
add rsp, 0xc8
pop rsi
pop rbp
ret
Function at 0x140001b10
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [rcx]
test edx, edx
jne 0x140001b38
mov dword [rcx + 4], 2
lea rax, [rcx + 4]
cmp edx, 3
jne 0x140001b61
mov dword [rax], 4
cmp edx, 0x22
jne 0x140001b6c
mov dword [rax], 0x4a
ret
cmp edx, 1
jne 0x140001b42
mov dword [rcx + 4], edx
jmp 0x140001b1d
cmp edx, 2
jne 0x140001b1d
lea rax, [rcx + 4]
mov dword [rax], 3
cmp edx, 0x17
jne 0x140001d04
mov dword [rax], 0x38
ret
cmp edx, 4
jne 0x140001b78
mov dword [rax], 5
cmp edx, 0x23
jne 0x140001b83
mov dword [rax], 0x4b
ret
cmp edx, 5
jne 0x140001b8f
mov dword [rax], 6
cmp edx, 0x24
jne 0x140001b9a
mov dword [rax], 0x4c
ret
cmp edx, 6
jne 0x140001ba6
mov dword [rax], 8
cmp edx, 0x25
jne 0x140001bb1
mov dword [rax], 0x4d
ret
cmp edx, 7
jne 0x140001bbd
mov dword [rax], 9
cmp edx, 0x26
jne 0x140001bc8
mov dword [rax], 0x4e
ret
cmp edx, 8
jne 0x140001bd4
mov dword [rax], 0xc
cmp edx, 0x27
jne 0x140001bdf
mov dword [rax], 0x4f
ret
cmp edx, 9
jne 0x140001beb
mov dword [rax], 0xd
cmp edx, 0x28
jne 0x140001bf6
mov dword [rax], 0x50
ret
cmp edx, 0xa
jne 0x140001c02
mov dword [rax], 0x10
cmp edx, 0x29
jne 0x140001c0d
mov dword [rax], 0x51
ret
cmp edx, 0xb
jne 0x140001c19
mov dword [rax], 0x11
cmp edx, 0x2a
jne 0x140001c24
mov dword [rax], 0x52
ret
cmp edx, 0xc
jne 0x140001c30
mov dword [rax], 0x12
cmp edx, 0x2b
jne 0x140001c3b
mov dword [rax], 0x53
ret
cmp edx, 0xd
jne 0x140001c47
mov dword [rax], 0x13
cmp edx, 0x2c
jne 0x140001c52
mov dword [rax], 0x54
ret
cmp edx, 0xe
jne 0x140001c5e
mov dword [rax], 0x14
cmp edx, 0x2d
jne 0x140001c69
mov dword [rax], 0x55
ret
cmp edx, 0xf
jne 0x140001c75
mov dword [rax], 0x30
cmp edx, 0x2e
jne 0x140001c80
mov dword [rax], 0x56
ret
cmp edx, 0x10
jne 0x140001c8c
mov dword [rax], 0x31
cmp edx, 0x2f
jne 0x140001c97
mov dword [rax], 0x57
ret
cmp edx, 0x11
jne 0x140001ca3
mov dword [rax], 0x32
cmp edx, 0x30
jne 0x140001cae
mov dword [rax], 0x58
ret
cmp edx, 0x12
jne 0x140001cba
mov dword [rax], 0x33
cmp edx, 0x31
jne 0x140001cc5
mov dword [rax], 0x59
ret
cmp edx, 0x13
jne 0x140001cd1
mov dword [rax], 0x34
cmp edx, 0x32
jne 0x140001cdc
mov dword [rax], 0x5a
ret
cmp edx, 0x14
jne 0x140001ce8
mov dword [rax], 0x35
cmp edx, 0x33
jne 0x140001ce7
mov dword [rax], 0x18
ret
cmp edx, 0x15
jne 0x140001cf4
mov dword [rax], 0x36
ret
cmp edx, 0x16
jne 0x140001b51
mov dword [rax], 0x37
ret
cmp edx, 0x18
jne 0x140001d10
mov dword [rax], 0x39
ret
cmp edx, 0x19
jne 0x140001d1c
mov dword [rax], 0x41
ret
cmp edx, 0x1a
jne 0x140001d28
mov dword [rax], 0x42
ret
cmp edx, 0x1b
jne 0x140001d34
mov dword [rax], 0x43
ret
cmp edx, 0x1c
jne 0x140001d40
mov dword [rax], 0x44
ret
cmp edx, 0x1d
jne 0x140001d4c
mov dword [rax], 0x45
ret
cmp edx, 0x1e
jne 0x140001d58
mov dword [rax], 0x46
ret
cmp edx, 0x1f
jne 0x140001d64
mov dword [rax], 0x47
ret
cmp edx, 0x20
jne 0x140001d70
mov dword [rax], 0x48
ret
cmp edx, 0x21
jne 0x140001b2c
mov dword [rax], 0x49
ret
Function at 0x140005bf0
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 0x140005c4d
lea rbx, [0x140043bc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140005c34
cmp r10, 2
jb 0x140005c34
cmp byte [r9], r8b
jne 0x140005c34
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 0x140005c10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140005c8f
lea rbx, [0x140043bc0]
cmp r8b, 0x23
jne 0x140005c73
cmp byte [r9], r8b
jne 0x140005c73
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 0x140005c60
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140005dd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140005dea
mov qword [r8], 0
lea rdx, [0x14004375c]
call fcn.140005ca0
mov rbx, rax
test rax, rax
jne 0x140005e0a
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 0x140005ee1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005ee1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140005ee1
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 0x140005ee1
cmp rdi, 0xffffffffffffffff
je 0x140005ee1
mov rax, qword [0x140139d18]
test rax, rax
je 0x140005e7e
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 0x140005ee1
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 0x140005ece
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140139d18]
test rax, rax
je 0x140005ec3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140005eea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140005edc
mov qword [r14], rdi
mov rax, rsi
jmp 0x140005eec
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 0x1400060c0
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 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x1400062d7
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
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
nop
test rsi, rsi
je 0x14000611e
cmp r8, rsi
jae 0x1400062b4
movzx edx, byte [r8]
test dl, dl
je 0x1400062b4
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x43920]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x140006152
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x14000616b
movzx r13d, byte [rax]
jmp 0x14000616e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14000617d
movzx r12d, byte [rax]
jmp 0x140006180
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14000618f
movzx r15d, byte [rax]
jmp 0x140006192
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x483a0]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x43908]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x438f0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x48388]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140006296
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x140006110
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 rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x1400062ed
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140006300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x140006340
cmp rax, rdi
jae 0x1400064b8
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400064b8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x43920]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x140006376
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14000638e
movzx r15d, byte [rcx]
jmp 0x140006391
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1400063a0
movzx r14d, byte [rcx]
jmp 0x1400063a3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1400063b1
movzx ebp, byte [rcx]
jmp 0x1400063b4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x483a0]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x43908]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x438f0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x48388]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400064aa
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x140006332
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x1400095c0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140043bc0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x140139d18]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x140009656
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14001bf00
mov eax, ebx
add rsp, 0x20
pop rbx
ret