joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027ce0
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.14001b684
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b684
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e30
cmp rax, 0xffffffffffffffff
je 0x140027e30
xor edi, edi
test rbp, rbp
jle 0x140027ddb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dc70
mov rbx, rax
test rax, rax
jne 0x140027d68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027dd1
mov edx, 0x8000
mov ecx, r14d
call fcn.140015828
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.14001c360
cmp eax, 0xffffffff
je 0x140027db1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d78
mov edx, r15d
mov ecx, r14d
call fcn.140015828
jmp 0x140027dd1
cmp byte [rsi + 0x38], dil
je 0x140027dc8
cmp dword [rsi + 0x34], 5
jne 0x140027dc8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027dd1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019d48
jmp 0x140027e44
jns 0x140027e44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b684
cmp rax, 0xffffffffffffffff
jne 0x140027dfc
cmp byte [rsi + 0x30], dil
je 0x140027e44
mov edi, dword [rsi + 0x2c]
jmp 0x140027e44
mov ecx, r14d
call fcn.140016e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e44
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 0x140027e44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e3d
mov eax, dword [rsi + 0x2c]
jmp 0x140027e42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b684
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 0x140002e80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002eca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002eca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002eca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002eca
cmp dword [rcx + 0x84], 0xe
jbe 0x140002eca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002ecc
xor al, al
add rsp, 0x28
ret
Function at 0x1408a7230
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1408a723d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408a724d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408a7235
lea eax, [rcx + 1]
jmp 0x1408a725b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408a726e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408a7254
sub eax, 3
jb 0x1408a728e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408a72dd
sar eax, 1
movsxd rbp, eax
jb 0x1408a72c4
jmp 0x1408a729c
add ebx, ebx
jne 0x1408a729a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408a72c4
inc ecx
add ebx, ebx
jne 0x1408a72aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408a72c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408a72bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408a72ac
add ecx, 2
jmp 0x1408a72c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1408a71f2
jmp 0x1408a723d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x89f000]
mov eax, dword [rdi]
or eax, eax
je 0x1408a733d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8a7000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408a72ed
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1408a7337
mov qword [rbx], rax
add rbx, 8
jmp 0x1408a730d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408a7381
cmp al, 0xef
ja 0x1408a7369
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408a7349
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1408a7358
mov eax, dword [rdi]
add rdi, 4
jmp 0x1408a7358
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1408a7400], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1408a7400
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408a73f0
sub rsp, 0xffffffffffffff80
jmp 0x140001350
Function at 0x180001730
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000176d
xor al, al
jmp 0x1800017bc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000177e
xor al, al
jmp 0x1800017bc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800017a5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800017a5
mov al, 1
jmp 0x1800017bc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054570
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054570
add rsp, 0x60
pop rbx
ret

Function at 0x180001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001a61
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001b1a
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001a8b
add rbx, 0x8000000
jmp 0x180001b11
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001b1a
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001af6
cmp rcx, 0x10000
jb 0x180001af6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001b1c
add rbx, 0x10000
jmp 0x180001b11
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180001b11
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001a70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054570
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180001c28
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001b9b
sub rbx, 0x8000000
jmp 0x180001c1f
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001c28
cmp dword [rsp + 0x40], 0x10000
jne 0x180001c03
cmp qword [rsp + 0x38], 0x10000
jb 0x180001c03
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001c2a
sub rbx, 0x10000
jmp 0x180001c1f
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001b80
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054570
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180001d30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x180001d4e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x180001d6a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001d81
cmp byte [rcx + 1], 0x25
jne 0x180001dc5
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180001d8d
cmp al, 0xe9
jne 0x180001dc5
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180001db0
cmp rcx, 0xffffffff80000000
jae 0x180001da7
lea rdi, [rcx + 0x7ff80000]
jmp 0x180001dc5
mov rdi, 0xfffffffffff80000
jmp 0x180001dc5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180001dc5
mov ebx, 0x80000
mov rax, qword [0x18006c428]
mov rcx, qword [0x18006c438]
test rax, rax
jne 0x180001de7
test rcx, rcx
je 0x180001dfe
mov rax, rcx
mov qword [0x18006c428], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180001dfe
cmp rdx, rbx
jb 0x180001dfe
cmp rdx, rdi
jbe 0x180001eb8
mov qword [0x18006c428], rcx
mov rax, rcx
test rcx, rcx
je 0x180001e42
mov rdx, rcx
test rcx, rcx
je 0x180001e2c
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180001e2c
cmp rcx, rbx
jb 0x180001e2c
cmp rcx, rdi
jbe 0x180001eb8
mov rax, qword [rax + 8]
mov qword [0x18006c428], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x180001e10
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180001c50
test rax, rax
je 0x180001efb
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006c428], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006c438]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006c438], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180001ea0
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x180001efb
cmp rdx, rdi
ja 0x180001efb
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x180061d30]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180001fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x18006c420], 0
jne 0x180002084
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006c420], ecx
jne 0x180002084
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x18006c438]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x18006c448], rdi
mov qword [0x18006c440], rdi
mov qword [0x18006c430], rdi
test rbx, rbx
je 0x180002060
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002058
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002030
jmp 0x180002060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x18006c3dc], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054570
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054570
add rsp, 0x38
ret
Function at 0x180002630
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18006c3dc]
mov rbx, rcx
test eax, eax
jne 0x1800026c9
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x18000265a
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
call fcn.180054590
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800026ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x10
mov rcx, rdi
call fcn.1800545cc
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x18006c3dc], ebx
mov qword [0x18006c430], 0
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x18006c440]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], rbx
mov qword [0x18006c440], rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180002a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006c420], eax
je 0x180002a84
mov eax, 0x10dd
jmp 0x180002b99
mov eax, dword [0x18006c3dc]
test eax, eax
jne 0x180002b99
test rbp, rbp
jne 0x180002aa1
mov eax, 0x57
jmp 0x180002b99
test rsi, rsi
je 0x180002abd
cmp qword [rsi], 0
jne 0x180002ac7
mov dword [0x18006c3dc], 6
mov qword [0x18006c430], rsi
mov eax, 6
jmp 0x180002b99
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.180054590
mov rcx, qword [rsi]
mov rbx, rax
call fcn.180001f10
mov rcx, rbp
mov rdi, rax
call fcn.180001f10
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
test dl, dl
je 0x180002b65
cmp rdx, 0x1e
ja 0x180002b65
cmp qword [rdi + 0x50], rax
jne 0x180002b65
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002b36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002b73
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18006c448]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18006c448], rbx
jmp 0x180002b8f
cmp dword [0x18006be30], 0
mov edi, 9
jne 0x180002b79
mov dword [0x18006c3dc], edi
mov edx, 0x30
mov rcx, rbx
call fcn.1800545cc
mov eax, edi
mov qword [0x18006c430], rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054570
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x180009730
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 0x18000978d
lea rbx, [0x180059d90]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180009774
cmp r10, 2
jb 0x180009774
cmp byte [r9], r8b
jne 0x180009774
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 0x180009750
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800097cf
lea rbx, [0x180059d90]
cmp r8b, 0x23
jne 0x1800097b3
cmp byte [r9], r8b
jne 0x1800097b3
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 0x1800097a0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180009910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000992a
mov qword [r8], 0
lea rdx, [0x18005fe44]
call fcn.1800097e0
mov rbx, rax
test rax, rax
jne 0x18000994a
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 0x180009a23
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 0x180009a23
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180009a23
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 0x180009a23
cmp rdi, 0xffffffffffffffff
je 0x180009a23
mov rax, qword [0x18006c078]
test rax, rax
je 0x1800099c0
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180009a23
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 0x180009a10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18006c078]
test rax, rax
je 0x180009a05
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180009a2c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180009a1e
mov qword [r14], rdi
mov rax, rsi
jmp 0x180009a2e
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 0x18000bf40
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x180059d90]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x18006c078]
not ebx
cmp dword [rcx + 0x3f0c], ebx
jne 0x18000bfd5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18001dba0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180010ec0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180010f10
lea r11, [0x180059d90]
nop dword [rax]
cmp r9b, 0x23
jne 0x180010ef3
cmp byte [r8], r9b
jne 0x180010ef3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180010ee0
mov rcx, qword [0x18006c078]
not eax
movsxd rdx, dword [rcx + 0x3eb8]
mov r9, qword [rcx + 0x3ec0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180010f71
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180010f69
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180010f6c
mov rdx, r8
test rdx, rdx
jne 0x180010f40
cmp r9, r10
je 0x180010f80
cmp dword [r9], eax
jne 0x180010f80
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x18001c5a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5410], 0
lea rbx, [rcx + 0x5418]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001c647
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c5fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180006610
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180009e30
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5410]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5420]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006be55]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c64f
mov rcx, rbx
call fcn.180009e30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001cbc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006c078]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001cc23
mov qword [rsp], rbx
lea rbx, [0x180059d90]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001cc03
cmp byte [r8], r9b
jne 0x18001cc03
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001cbf0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x53c0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001cc57
mov r10, qword [r10 + 0x53c8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001cc5e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001cc44
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180042d10
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x18006c1d6], 0
je 0x180042dee
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call fcn.18004e540
mov rcx, qword [0x18006be70]
lea rdx, str.com_craftrise_client_S
mov rdi, rax
mov r8, qword [rcx]
call qword [r8 + 0x30]
mov rcx, qword [0x18006be70]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x18006037c]
mov qword [0x18006c338], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004e540
mov rcx, qword [0x18006be70]
mov r8, rbx
mov rdx, rax
call fcn.180040300
mov rbx, qword [rsp + 0x40]
test rdi, rdi
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
je 0x180042dee
cmp byte [0x18006c1cd], 0
je 0x180042dd9
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8001
test cx, ax
je 0x180042dd9
movss xmm1, dword [0x18006b4f4]
jmp 0x180042de1
movss xmm1, dword [0x18006b4e8]
cvtps2pd xmm1, xmm1
lea rcx, [rsp + 0x20]
call fcn.18004dfc0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054570
add rsp, 0x38
ret