joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140012d80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400032d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400032d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400032d0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140003320
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003317
test rcx, rcx
je 0x1400032d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003308
xor eax, eax
ret

Function at 0x140003330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012d80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000334f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140012d80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003390
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003398
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003390
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140003390
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400033e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400033f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400033d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003400
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140012d80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003422
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003430
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003422
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003422
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140003422
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140003485
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003498
add rdx, 0x28
cmp rdx, r10
jne 0x140003470
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400034a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400034b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000348e
test ecx, ecx
jg 0x1400034a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
test rbx, rbx
mov dword [rax], 0
je 0x140003650
cmp byte [rbx], 0
je 0x140003618
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003660
test al, 0x10
je 0x140003618
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sym._fullpath
mov rcx, rdi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sym.malloc
test rax, rax
mov rbx, rax
je 0x14000366f
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sym.memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x1400035c0
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x1400035c0
cmp al, 0x2f
jne 0x140003638
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym._errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x1400035c0
call sym._errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x140003625
call sym._errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x140003625
call sym._errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x140003625
Function at 0x180001850
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
lea rcx, [0x180036650]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180001a28
lea rdx, str.D3D11CreateDeviceAndSwapChain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001a28
mov dword [rsp + 0x48], edi
lea r9, [rsp + 0x48]
lea edx, [rdi + 0xb]
lea r8d, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx], 0x48c48b48
mov dword [rbx + 4], 0x48085889
mov word [rbx + 8], 0x7089
mov byte [rbx + 0xa], 0x10
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
lea edx, [rdi + 0xb]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov ecx, 3
call fcn.1800315d0
test eax, eax
je 0x1800019fd
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0xf
lea rdx, str.Couldnt_render
lea rcx, [rsp + 0x50]
call fcn.180001df0
nop
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180001c10
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.180001af0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180001989
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001984
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800019ef
call fcn.180034204
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
xor r9d, r9d
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1800018f0
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800019e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800019f6
call fcn.180034204
jmp 0x1800018f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp dword [0x180042bd8], 0
je 0x180001a28
mov rax, qword [0x180042bd0]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.180032ba0
test eax, eax
jne 0x180001a28
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180032f00
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800341a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x180002550
Capabilities:
Log keystrokes via polling

Disassembly:
push r12
sub rsp, 0x30
movss xmm1, dword [0x18003be10]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov rbp, r9
mov qword [rsp + 0x50], rsi
mov rsi, r8
mov qword [rsp + 0x58], rdi
mov rdi, rdx
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0xb
call fcn.180011820
mov rbx, qword [0x180042ae8]
xor edx, edx
mov rcx, r14
mov rax, qword [rbx + 0x1a18]
mov byte [rax + 0x80], 1
mov r8, qword [rbx + 0x1a18]
movsxd rax, dword [r8 + 0xc0]
mov r8, qword [r8 + 0xc8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180006f00
cmp dword [rbx + 0x1a60], eax
jne 0x1800025d4
mov dword [rbx + 0x1a64], eax
cmp dword [rbx + 0x1a9c], eax
jne 0x1800025e3
mov byte [rbx + 0x1aa0], 1
cmp byte [rdi], 0
lea r12, [0x180000000]
mov ecx, eax
jne 0x180002626
call fcn.180011a80
movsxd rcx, dword [rsi]
mov rdx, rbp
mov rcx, qword [r12 + rcx*8 + 0x36e40]
call fcn.1800296d0
test al, al
je 0x180002610
mov byte [rdi], 1
mov r9, qword [0x180042ae8]
mov rax, qword [r9 + 0x1a18]
dec dword [rax + 0xc0]
jmp 0x1800026a4
mov qword [rsp + 0x20], r15
call fcn.180011a80
mov rdx, rbp
lea rcx, [0x180036a64]
call fcn.1800296d0
mov rax, qword [0x180042ae8]
mov rcx, qword [rax + 0x1a18]
dec dword [rcx + 0xc0]
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x180036ba0]
lea r15, [0x180036e38]
nop dword [rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18000268f
mov eax, dword [rbx]
mov dword [rsi], eax
mov byte [rdi], 0
add rbx, 4
cmp rbx, r15
jne 0x180002670
mov r15, qword [rsp + 0x20]
mov r9, qword [0x180042ae8]
movss xmm1, dword [0x18003be70]
xorps xmm0, xmm0
call fcn.180011fc0
mov r8, qword [r9 + 0x1a18]
mov rcx, r14
movss xmm0, dword [rbp + 4]
mulss xmm0, dword [0x18003bd88]
movss xmm4, dword [r8 + 0xd4]
subss xmm4, dword [r8 + 0x14]
addss xmm4, dword [r8 + 0x58]
mov byte [r8 + 0x80], 1
mov rax, qword [r9 + 0x1a18]
addss xmm4, xmm0
movss xmm0, dword [rax + 0xec]
movss xmm1, dword [rax + 0x14]
subss xmm1, dword [rax + 0x58]
addss xmm1, xmm4
maxss xmm0, xmm1
movss dword [rax + 0xd4], xmm1
movss dword [rax + 0xec], xmm0
call fcn.180028e60
mov rcx, qword [0x180042ae8]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
movsxd rax, dword [rcx + 0x1b40]
mov r8, qword [rcx + 0x1b48]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + rax*2]
movsxd rax, dword [r8 + rdx*4 - 0xc]
lea rax, [rax + rax*2]
cmp dword [r12 + rax*4 + 0x37370], 8
mov r9d, dword [r12 + rax*4 + 0x37378]
jne 0x1800027b6
mov eax, dword [r12 + rax*4 + 0x37374]
cmp eax, 1
jne 0x180002797
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1558], eax
dec dword [rcx + 0x1b40]
add rsp, 0x30
pop r12
ret
cmp eax, 2
jne 0x1800027b6
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1558], eax
mov eax, dword [r8 + rdx*4 - 4]
mov dword [r9 + rcx + 0x155c], eax
dec dword [rcx + 0x1b40]
add rsp, 0x30
pop r12
ret
Function at 0x180005770
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800057a6
xor eax, eax
lea r8, [0x180005640]
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 0x1800057a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180006f00
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 0x180006f5d
lea rbx, [0x180037490]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180006f44
cmp r10, 2
jb 0x180006f44
cmp byte [r9], r8b
jne 0x180006f44
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 0x180006f20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180006f9f
lea rbx, [0x180037490]
cmp r8b, 0x23
jne 0x180006f83
cmp byte [r9], r8b
jne 0x180006f83
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 0x180006f70
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180007180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000719a
mov qword [r8], 0
lea rdx, [0x18003b530]
call fcn.180006fb0
mov rbx, rax
test rax, rax
jne 0x1800071ba
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 0x180007291
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 0x180007291
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180007291
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 0x180007291
cmp rdi, 0xffffffffffffffff
je 0x180007291
mov rax, qword [0x180042ae8]
test rax, rax
je 0x18000722e
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180007291
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 0x18000727e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180042ae8]
test rax, rax
je 0x180007273
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000729a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000728c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000729c
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 0x18000b560
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x18003b47d]
mov dword [rsp + 0x2c], eax
lea r11, [0x180037490]
mov qword [rsp + 0x48], rax
mov r10d, 0xffffffff
lea rax, str.Window
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov edx, r10d
mov r9b, 0x57
nop
cmp r9b, 0x23
jne 0x18000b5b3
cmp byte [r8], r9b
jne 0x18000b5b3
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x18000b5a0
mov ecx, dword [rbx + 0x2f14]
lea rax, [0x180016b50]
mov edi, dword [rbx + 0x2f10]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180016c00]
mov qword [rsp + 0x38], rax
lea rax, [0x180016ce0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x18000b6b5
inc edi
test ecx, ecx
je 0x18000b61f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18000b624
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x18000b6b5
mov rax, qword [0x180042ae8]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x18000b648
inc dword [rax + 0x3bc]
movsxd rax, edi
lea rcx, [rax + rax*2]
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x2f18]
mov rsi, rax
test rdx, rdx
je 0x18000b6a3
movsxd rcx, dword [rbx + 0x2f10]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2f18]
test rcx, rcx
je 0x18000b69d
mov rax, qword [0x180042ae8]
test rax, rax
je 0x18000b69d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2f18], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2f14], edi
movsxd rax, dword [rbx + 0x2f10]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2f18]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8 + 0x20], xmm0
inc dword [rbx + 0x2f10]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18000c930
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000c980
lea r11, [0x180037490]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000c963
cmp byte [r8], r9b
jne 0x18000c963
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 0x18000c950
mov rcx, qword [0x180042ae8]
not eax
movsxd rdx, dword [rcx + 0x1a00]
mov r9, qword [rcx + 0x1a08]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000c9e1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000c9d9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000c9dc
mov rdx, r8
test rdx, rdx
jne 0x18000c9b0
cmp r9, r10
je 0x18000c9f0
cmp dword [r9], eax
jne 0x18000c9f0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180011a80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x180042ae8]
lea rdx, [0x180037490]
mov r8d, ecx
mov rsi, qword [rax + 0x1a18]
lea rbx, [rsi + 0xc0]
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rsi + 0xc4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x180011b3f
lea ecx, [r9 + 1]
test r8d, r8d
je 0x180011b2b
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180011b30
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1800180a0
movsxd rcx, dword [rbx]
mov rax, qword [rsi + 0xc8]
mov rsi, qword [rsp + 0x40]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180016340
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x180042ae8]
cmp byte [rbx + 0x2f30], 0
je 0x18001642c
cmp qword [rbx + 0x2f38], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f40]
je 0x180016414
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x1800163bb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180017ee0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180007870
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f48]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x180042ac9]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180007870
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x1800167b0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x180042ae8]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x1800167ee
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800167e5
test r13, r13
je 0x1800167fa
inc dword [r13 + 0x3bc]
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x1800169c3
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x180016a07
cmp al, 0xd
je 0x180016a07
mov rbx, rcx
cmp rcx, r12
jae 0x180016873
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x180016873
cmp al, 0xd
je 0x180016873
inc rbx
cmp rbx, r12
jb 0x180016860
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1800169a7
cmp al, 0x5b
jne 0x18001698e
cmp rbx, rcx
jbe 0x18001698e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x18001698e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x1800169a7
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x1800169a7
mov r10, qword [0x180042ae8]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x18001693a
cmp r9b, 0x23
jne 0x180016917
cmp byte [r8], r9b
jne 0x180016917
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x180037490]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x180016905
mov r8d, dword [r10 + 0x2f10]
xor eax, eax
not ecx
test r8d, r8d
jle 0x180016964
mov r9, qword [r10 + 0x2f18]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x18001696a
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x180016955
xor edi, edi
xor ebp, ebp
jmp 0x1800169a7
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x180016966
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x1800169a7
test rdi, rdi
je 0x1800169a7
test rbp, rbp
je 0x1800169a7
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x180016840
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x1800169ee
mov rax, qword [0x180042ae8]
test rax, rax
je 0x1800169ee
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 0x2ef4], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x180016840
Function at 0x180016a10
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x180042ae8]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2ef8], r15d
test rcx, rcx
je 0x180016b3b
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2f00]
mov dword [rbx + 0x2ef8], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x180016a74
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.180017ee0
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x180016a8a
mov edx, 8
mov rcx, rdi
call fcn.180017ee0
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2f10], r15d
jle 0x180016ad5
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2f18]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2f10]
jl 0x180016ab0
mov eax, dword [rdi]
lea rdx, [0x18003b534]
test eax, eax
lea rdi, [0x180042ac9]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f08]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.180006fb0
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x180016b31
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret