joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400db510
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400db52c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400db580
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400db6a5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400db6a5
test rax, rax
je 0x1400db6a5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400db6a5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400db61a
lea rax, [0x1400db700]
jmp 0x1400db673
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400db6a5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400db693
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400db640
lea rax, [0x1400db6d0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400db6ba
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400dcc90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400dcc9b
xor eax, eax
ret
lea r11, [0x140104190]
not ecx
cmp r8d, 8
jb 0x1400dcd71
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400dccc0
test r8d, r8d
je 0x1400dcd9d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400dcd80
not ecx
mov eax, ecx
ret
Function at 0x1400e09ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e09e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e09eb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e0a34
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401048e0]
cmp byte [rcx + rax], 0
je 0x1400e0a34
dec r8
sub rdx, 1
jne 0x1400e0a1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400e1e60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e1eaa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e1eaa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e1eaa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e1eaa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e1eaa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e1eac
xor al, al
add rsp, 0x28
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 [0x18006c418]
mov rcx, qword [0x18006c428]
test rax, rax
jne 0x180001de7
test rcx, rcx
je 0x180001dfe
mov rax, rcx
mov qword [0x18006c418], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180001dfe
cmp rdx, rbx
jb 0x180001dfe
cmp rdx, rdi
jbe 0x180001eb8
mov qword [0x18006c418], 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 [0x18006c418], 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 [0x18006c418], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006c428]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006c428], 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 [0x180061e70]
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 [0x18006c410], 0
jne 0x180002084
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006c410], ecx
jne 0x180002084
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x18006c428]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x18006c438], rdi
mov qword [0x18006c430], rdi
mov qword [0x18006c420], 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 [0x18006c3cc], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800546f0
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800546f0
add rsp, 0x38
ret
Function at 0x180002630
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18006c3cc]
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.180054710
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.18005474c
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x18006c3cc], ebx
mov qword [0x18006c420], 0
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x18006c430]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], rbx
mov qword [0x18006c430], 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 [0x18006c410], eax
je 0x180002a84
mov eax, 0x10dd
jmp 0x180002b99
mov eax, dword [0x18006c3cc]
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 [0x18006c3cc], 6
mov qword [0x18006c420], rsi
mov eax, 6
jmp 0x180002b99
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.180054710
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 [0x18006c438]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18006c438], rbx
jmp 0x180002b8f
cmp dword [0x18006be20], 0
mov edi, 9
jne 0x180002b79
mov dword [0x18006c3cc], edi
mov edx, 0x30
mov rcx, rbx
call fcn.18005474c
mov eax, edi
mov qword [0x18006c420], rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800546f0
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x180004d40
Capabilities:
Parse pe header

Disassembly:
cmp byte [rcx + 0x3a], 0
je 0x180004e31
xor byte [rcx], 0x43
xor byte [rcx + 1], 0x44
xor byte [rcx + 2], 0x45
xor byte [rcx + 3], 0x46
xor byte [rcx + 4], 0x47
xor byte [rcx + 5], 0x48
xor byte [rcx + 6], 0x49
xor byte [rcx + 7], 0x4a
xor byte [rcx + 8], 0x4b
xor byte [rcx + 9], 0x4c
xor byte [rcx + 0xa], 0x4d
xor byte [rcx + 0xb], 0x4e
xor byte [rcx + 0xc], 0x4f
xor byte [rcx + 0xd], 0x50
xor byte [rcx + 0xe], 0x51
xor byte [rcx + 0xf], 0x52
xor byte [rcx + 0x10], 0x53
xor byte [rcx + 0x11], 0x54
xor byte [rcx + 0x12], 0x55
xor byte [rcx + 0x13], 0x56
xor byte [rcx + 0x14], 0x57
xor byte [rcx + 0x15], 0x58
xor byte [rcx + 0x16], 0x59
xor byte [rcx + 0x17], 0x5a
xor byte [rcx + 0x18], 0x5b
xor byte [rcx + 0x19], 0x5c
xor byte [rcx + 0x1a], 0x5d
xor byte [rcx + 0x1b], 0x5e
xor byte [rcx + 0x1c], 0x5f
xor byte [rcx + 0x1d], 0x60
xor byte [rcx + 0x1e], 0x61
xor byte [rcx + 0x1f], 0x62
xor byte [rcx + 0x20], 0x63
xor byte [rcx + 0x21], 0x64
xor byte [rcx + 0x22], 0x65
xor byte [rcx + 0x23], 0x66
xor byte [rcx + 0x24], 0x67
xor byte [rcx + 0x25], 0x68
xor byte [rcx + 0x26], 0x69
xor byte [rcx + 0x27], 0x6a
xor byte [rcx + 0x28], 0x6b
xor byte [rcx + 0x29], 0x6c
xor byte [rcx + 0x2a], 0x6d
xor byte [rcx + 0x2b], 0x6e
xor byte [rcx + 0x2c], 0x6f
xor byte [rcx + 0x2d], 0x70
xor byte [rcx + 0x2e], 0x71
xor byte [rcx + 0x2f], 0x72
xor byte [rcx + 0x30], 0x73
xor byte [rcx + 0x31], 0x74
xor byte [rcx + 0x32], 0x75
xor byte [rcx + 0x33], 0x76
xor byte [rcx + 0x34], 0x77
xor byte [rcx + 0x35], 0x78
xor byte [rcx + 0x36], 0x79
xor byte [rcx + 0x37], 0x7a
xor byte [rcx + 0x38], 0x7b
mov byte [rcx + 0x3a], 0
ret
Function at 0x180009760
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 0x1800097bd
lea rbx, [0x180059dc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800097a4
cmp r10, 2
jb 0x1800097a4
cmp byte [r9], r8b
jne 0x1800097a4
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 0x180009780
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800097ff
lea rbx, [0x180059dc0]
cmp r8b, 0x23
jne 0x1800097e3
cmp byte [r9], r8b
jne 0x1800097e3
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 0x1800097d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180009940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000995a
mov qword [r8], 0
lea rdx, [0x18005ff14]
call fcn.180009810
mov rbx, rax
test rax, rax
jne 0x18000997a
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 0x180009a53
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 0x180009a53
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180009a53
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 0x180009a53
cmp rdi, 0xffffffffffffffff
je 0x180009a53
mov rax, qword [0x18006c068]
test rax, rax
je 0x1800099f0
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 0x180009a53
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 0x180009a40
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18006c068]
test rax, rax
je 0x180009a35
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180009a5c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180009a4e
mov qword [r14], rdi
mov rax, rsi
jmp 0x180009a5e
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 0x18000bf70
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x180059dc0]
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 [0x18006c068]
not ebx
cmp dword [rcx + 0x3f0c], ebx
jne 0x18000c005
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18001dd20
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180010ef0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180010f40
lea r11, [0x180059dc0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180010f23
cmp byte [r8], r9b
jne 0x180010f23
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 0x180010f10
mov rcx, qword [0x18006c068]
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 0x180010fa1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180010f99
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180010f9c
mov rdx, r8
test rdx, rdx
jne 0x180010f70
cmp r9, r10
je 0x180010fb0
cmp dword [r9], eax
jne 0x180010fb0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x18001c720
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 0x18001c7c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c77a
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.180006640
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180009e60
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, [0x18006be2f]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c7cf
mov rcx, rbx
call fcn.180009e60
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001cd40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006c068]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001cda3
mov qword [rsp], rbx
lea rbx, [0x180059dc0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001cd83
cmp byte [r8], r9b
jne 0x18001cd83
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 0x18001cd70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x53c0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001cdd7
mov r10, qword [r10 + 0x53c8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001cdde
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001cdc4
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 0x180042e90
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x18006c1c4], 0
je 0x180042f6e
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call fcn.18004e6c0
mov rcx, qword [0x18006be60]
lea rdx, str.com_craftrise_client_S
mov rdi, rax
mov r8, qword [rcx]
call qword [r8 + 0x30]
mov rcx, qword [0x18006be60]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800604bc]
mov qword [0x18006c328], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004e6c0
mov rcx, qword [0x18006be60]
mov r8, rbx
mov rdx, rax
call fcn.180040480
mov rbx, qword [rsp + 0x40]
test rdi, rdi
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
je 0x180042f6e
cmp byte [0x18006c1bb], 0
je 0x180042f59
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8001
test cx, ax
je 0x180042f59
movss xmm1, dword [0x18006b4e8]
jmp 0x180042f61
movss xmm1, dword [0x18006b4dc]
cvtps2pd xmm1, xmm1
lea rcx, [rsp + 0x20]
call fcn.18004e150
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800546f0
add rsp, 0x38
ret
Function at 0x180051ad0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1800518c0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180051ba7
mov dword [rsp + 0x20], 0
jmp 0x180051b44
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180051ba7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180051ba5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800516a0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180051b3a
add rsp, 0x30
pop rdi
ret

Function at 0x180051bc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180051c64
mov dword [rsp + 0x20], 0
jmp 0x180051bfd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180051c4d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180051c4b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180051bf3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18006b7f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret