joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ce8cc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401ce8fc
xor eax, eax
jmp 0x1401ce9bf
mov rbp, rbx
cmp word [rax], si
je 0x1401ce921
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ce908
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ce904
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401ce7ec
movsxd r14, eax
test eax, eax
jne 0x1401ce95f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ce8f5
mov rcx, r14
call fcn.140099e60
mov rdi, rax
test rax, rax
jne 0x1401ce978
xor ecx, ecx
call fcn.140099ec0
jmp 0x1401ce954
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401ce7ec
test eax, eax
jne 0x1401ce9a9
mov rcx, rdi
call fcn.140099ec0
jmp 0x1401ce9b3
xor ecx, ecx
call fcn.140099ec0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401ce9dc
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 0x1401cea63
mov rsi, rbx
cmp word [rax], bp
je 0x1401cea22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401cea0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401cea08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140099e60
mov rdi, rax
test rax, rax
je 0x1401cea50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401a0610
mov rbp, rdi
xor ecx, ecx
call fcn.140099ec0
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 0x1401d1014
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401ab9a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401d109e
cmp byte [rbp - 0x21], r15b
je 0x1401d1099
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401d10d4
call fcn.1401c7cf4
test eax, eax
jne 0x1401d10c0
cmp byte [rbp - 0x21], r15b
je 0x1401d10b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401d10d4
cmp byte [rbp - 0x21], r15b
je 0x1401d10d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401b0fbc
test eax, eax
jne 0x1401d1174
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401ab9a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401d1113
cmp byte [rbp - 0x21], r15b
je 0x1401d1148
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401d1148
call fcn.1401c7cf4
test eax, eax
jne 0x1401d1134
cmp byte [rbp - 0x21], r15b
je 0x1401d112d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401d1148
cmp byte [rbp - 0x21], r15b
je 0x1401d1145
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401b0fbc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401d1174
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401d1177
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401d1185
mov rcx, rdi
call fcn.140099ec0
cmp byte [rbp + 0x3f], r15b
je 0x1401d1194
mov rcx, qword [rbp + 0x27]
call fcn.140099ec0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1401d1338
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401d1382
call fcn.1401b46f0
mov dword [rax], 0xf
call fcn.1401b46d0
mov dword [rax], ntohl
call fcn.1401b626c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14019eb90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401d138d
lea eax, [rbx + 1]
jmp 0x1401d136f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401d136d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401d136f
Function at 0x1401d2bc4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401d2bda
mov al, 1
jmp 0x1401d2c3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401d2beb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401d2c38
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401b558c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401d2c38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401d2c38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401d2c38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401d2c3a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180001070
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x1800010b2
cmp edx, 1
jne 0x1800010dc
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180001010]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x180080b88], 0
je 0x1800010dc
call fcn.18003c000
mov rcx, qword [0x180080b80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x180080b80], rax
mov dword [0x180080b88], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180001690
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004b040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ebx, r8d
lea r9, [rsp + 0x20]
mov rdi, rdx
mov r8d, 0x40
mov edx, ebx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003c4b0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x180001700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18004b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x25ff
mov ecx, 0xe
mov word [rsp + 0x24], 0
mov qword [rsp + 0x26], rdx
call fcn.18003c88c
movsd xmm0, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xe
mov rbx, rax
movsd qword [rax], xmm0
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
lea r8d, [rdx + 0x32]
movzx ecx, word [rdi + 0xc]
mov word [rax + 0xc], cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsp + 0x28]
lea r9, [rsp + 0x30]
movsd xmm0, qword [rsp + 0x20]
mov edx, 0xe
mov r8d, dword [rsp + 0x30]
mov rcx, rdi
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
movzx eax, word [rsp + 0x2c]
mov word [rdi + 0xc], ax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18003c4b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001890
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18004b040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x48], r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov dword [rbp - 0x40], ecx
mov qword [rbp - 0x20], 0x25ff
mov dword [rbp - 0x18], ecx
mov word [rbp - 0x14], cx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0x40], 1
lea r14, [r9 - 0xd]
add r14, r8
mov rbx, r8
mov rcx, qword [rbp - 0x30]
cmp r8, r14
jae 0x180001977
movzx r15d, word [rbp - 0x14]
mov r12d, dword [rbp - 0x18]
mov r13, qword [rbp - 0x20]
nop dword [rax]
mov rdx, r13
sub rdx, qword [rbx]
jne 0x18000192d
mov rdx, r12
mov eax, dword [rbx + 8]
sub rdx, rax
jne 0x18000192d
mov rdx, r15
movzx eax, word [rbx + 0xc]
sub rdx, rax
test rdx, rdx
jne 0x180001967
mov rax, rbx
sub rax, rdi
mov qword [rbp - 0x20], rax
cmp rcx, qword [rbp - 0x28]
je 0x180001953
mov qword [rcx], rax
mov rcx, qword [rbp - 0x30]
add rcx, 8
mov qword [rbp - 0x30], rcx
jmp 0x180001967
lea r8, [rbp - 0x20]
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.180004740
mov rcx, qword [rbp - 0x30]
inc rbx
cmp rbx, r14
jb 0x180001910
mov r15, qword [rbp - 0x50]
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
cmp r8, rcx
je 0x180001991
mov rax, qword [r8]
mov qword [rdi + rax + 6], rsi
add r8, 8
cmp r8, rcx
jne 0x180001980
mov ebx, r9d
lea r9, [rbp - 0x40]
mov r8d, 0x40
mov edx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbp - 0x40]
mov r8d, dword [rbp - 0x40]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x180001a0c
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001a07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001a07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003c848
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18003c4b0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006ce0
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 0x180006d3d
lea rbx, [0x18003f830]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180006d24
cmp r10, 2
jb 0x180006d24
cmp byte [r9], r8b
jne 0x180006d24
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 0x180006d00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180006d7f
lea rbx, [0x18003f830]
cmp r8b, 0x23
jne 0x180006d63
cmp byte [r9], r8b
jne 0x180006d63
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 0x180006d50
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180006ec0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180006eda
mov qword [r8], 0
lea rdx, [0x18003f3a0]
call fcn.180006d90
mov rbx, rax
test rax, rax
jne 0x180006efa
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 0x180006fd1
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 0x180006fd1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180006fd1
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 0x180006fd1
cmp rdi, 0xffffffffffffffff
je 0x180006fd1
mov rax, qword [0x180080b40]
test rax, rax
je 0x180006f6e
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 0x180006fd1
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 0x180006fbe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180080b40]
test rax, rax
je 0x180006fb3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180006fda
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180006fcc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180006fdc
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 0x180009930
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x18003f830]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x1800099c6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.18001c6a0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000d440
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000d490
lea r11, [0x18003f830]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000d473
cmp byte [r8], r9b
jne 0x18000d473
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 0x18000d460
mov rcx, qword [0x180080b40]
not eax
movsxd rdx, dword [rcx + 0x3eb0]
mov r9, qword [rcx + 0x3eb8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000d4f1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000d4e9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000d4ec
mov rdx, r8
test rdx, rdx
jne 0x18000d4c0
cmp r9, r10
je 0x18000d500
cmp dword [r9], eax
jne 0x18000d500
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18001adc0
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 + 0x5c60], 0
lea rbx, [rcx + 0x5c68]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001ae67
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001ae1a
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.18001d830
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180007330
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c60]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c70]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180080b29]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001ae6f
mov rcx, rbx
call fcn.180007330
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001b2f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180080b40]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001b353
mov qword [rsp], rbx
lea rbx, [0x18003f830]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001b333
cmp byte [r8], r9b
jne 0x18001b333
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 0x18001b320
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001b387
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001b38e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001b374
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 0x18003ab20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18004b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18003ab6f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180080bd0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003abad
cmp rsi, r14
jb 0x18003aba5
cmp rsi, r15
jae 0x18003aba5
cmp qword [rsi + 8], 0
jne 0x18003ad77
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003ab90
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18003ac42
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003ac39
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ac39
cmp dword [rsp + 0x40], 0x10000
je 0x18003acbb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003ac39
sub rbx, rbp
cmp rbx, r14
jae 0x18003ac00
test rsi, rsi
jne 0x18003ad20
cmp rdi, r15
ja 0x18003ad5f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003ad5f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ad5f
cmp dword [rsp + 0x40], 0x10000
je 0x18003acf1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003ac72
jmp 0x18003ad5f
test rbx, rbx
je 0x18003ac39
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003ad20
cmp rbx, r14
jae 0x18003abe0
jmp 0x18003ac42
test rdi, rdi
je 0x18003ad5f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003ad20
cmp rdi, r15
jbe 0x18003ac50
jmp 0x18003ad5f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18003ad30
mov rax, qword [0x180080bd0]
mov qword [rsi], rax
mov qword [0x180080bd0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003c4b0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18003b6f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18004b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003b81b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003b812
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003b7f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003b7f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003b7f4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003b7b2
mov rcx, qword [0x180080b58]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003b812
jmp 0x18003b7e7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003b7e7
mov rcx, qword [0x180080b58]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003b812
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003b760
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18003b873
cmp dword [rbx + 0xc], esi
jbe 0x18003b873
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003b86c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18003b540
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18003b830
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003c4b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret