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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140025020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
test rcx, rcx
jne 0x140003802
mov r14d, r12d
jmp 0x14000380f
mov edx, 0x104
call fcn.140008c5c
mov r14, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
movsxd r15, eax
test eax, eax
jne 0x14000384d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140003970
mov rdx, r15
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
cmp r15, 7
ja 0x140003881
mov qword [rbp - 0x18], rdx
movzx eax, r12w
lea rdi, [rbp - 0x28]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbp + r15*2 - 0x28], r12w
jmp 0x140003892
xor r9d, r9d
mov r8b, byte [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.140002628
nop
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x14000393a
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
movsxd rdi, eax
test eax, eax
je 0x14000393a
lea rdx, [rdi - 1]
cmp rdx, qword [rbx + 0x10]
ja 0x140003903
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400038f8
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r12w
jmp 0x140003912
xor r8d, r8d
sub rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.140003aa8
cmp qword [rbx + 0x18], 8
jb 0x14000391c
mov rbx, qword [rbx]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140003950
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140003953
mov edi, r12d
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000396e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.1400015b8
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140004200
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x14000c1d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c000
Function at 0x1400034c0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400411a0
sub rsp, rax
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140016962
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001690d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140016900
cmp rcx, 1
jb 0x1400169ba
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140016930
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140034778
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400168f0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140016993
lea rcx, [rsp + 0x80]
call fcn.140035f4c
jmp 0x140016995
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400256f0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140029ce0
int3

Function at 0x1400169c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140016a1d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140016a10
cmp rcx, 1
jb 0x140016a97
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140016a33
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140034778
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140016a00
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400256f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140029ce0
int3
Function at 0x1400260c4
Capabilities:
Parse pe header

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

Function at 0x14002a040
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140029eab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029eab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029eab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029eab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029eab
cmp dword [rcx + 0x84], 0xe
jbe 0x140029eab
cmp dword [rcx + 0xf8], 0
je 0x140029eab
mov ecx, ebx
call fcn.140029f5c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140029d38
nop
cmp dword [rbp + 0x20], 0
je 0x140029ef9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029f04
int3
xor r8d, r8d
xor edx, edx
jmp 0x140029e3c
Function at 0x14003ac74
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 0x14003acfb
mov rsi, rbx
cmp word [rax], bp
je 0x14003acba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003aca4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003aca0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400384fc
mov rdi, rax
test rax, rax
je 0x14003ace8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140041800
mov rbp, rdi
xor ecx, ecx
call fcn.1400368cc
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 0x14003e870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003e886
mov al, 1
jmp 0x14003e8e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003e897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003e8e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003b418
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003e8e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003e8e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003e8e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003e8e6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400410b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400410d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400410d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003cd0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdi, [0x180056b10]
mov eax, ebx
mov rcx, rdi
cmp qword [rcx], rbx
je 0x180003cfa
inc eax
add rcx, 8
cmp eax, 0x50
jb 0x180003ce8
jmp 0x180003d07
cdqe
lea rcx, [0x180043c90]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056f30]
lea rdx, [0x180043cd0]
call fcn.180004e30
mov rcx, qword [0x180056f60]
lea rdx, [0x180004b20]
call fcn.180004e30
mov rcx, qword [0x180057008]
lea rdx, [0x180042df0]
call fcn.180004e30
mov rcx, qword [0x180056fa8]
lea rdx, [0x180042e60]
call fcn.180004e30
mov rcx, qword [0x180056ea8]
lea rdx, [0x180043870]
call fcn.180004e30
mov rcx, qword [0x180056ff0]
lea rdx, [0x1800439a0]
call fcn.180004e30
mov rcx, qword [0x180056f08]
lea rdx, [0x180043aa0]
call fcn.180004e30
mov rcx, qword [0x180057020]
lea rdx, [0x180043bb0]
call fcn.180004e30
mov eax, ebx
mov rcx, rdi
cmp qword [rcx], rbx
je 0x180003db6
inc eax
add rcx, 8
cmp eax, 0x50
jb 0x180003da4
jmp 0x180003dc3
cdqe
lea rcx, [0x180042060]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056e98]
lea rdx, [0x180002680]
call fcn.180004e30
mov rcx, qword [0x180056ed8]
lea rdx, [0x180002660]
call fcn.180004e30
mov rcx, qword [0x180056e70]
lea rdx, [0x180002660]
call fcn.180004e30
mov rcx, qword [0x180056f50]
lea rdx, [0x180002670]
call fcn.180004e30
mov rcx, qword [0x180057028]
lea rdx, [0x180041da0]
call fcn.180004e30
mov rax, rdi
cmp qword [rax], 0
je 0x180003e38
inc ebx
add rax, 8
cmp ebx, 0x50
jb 0x180003e25
jmp 0x180003e46
movsxd rax, ebx
lea rcx, [0x180041ec0]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056ec8]
lea rdx, [0x180041f90]
call fcn.180004e30
mov rcx, qword [0x180056fd0]
lea rdx, [0x180041f50]
call fcn.180004e30
mov rcx, qword [0x180056e88]
lea rdx, [0x180042fe0]
call fcn.180004e30
mov rcx, qword [0x180056f80]
lea rdx, [0x1800430a0]
call fcn.180004e30
mov rcx, qword [0x180056ef0]
lea rdx, [0x180004a70]
call fcn.180004e30
mov rcx, qword [0x180056f70]
lea rdx, [0x180002820]
call fcn.180004e30
mov rcx, qword [0x180056ff8]
lea rdx, [0x1800028c0]
call fcn.180004e30
mov rcx, qword [0x180056f78]
lea rdx, [0x180002990]
call fcn.180004e30
mov rcx, qword [0x180056fc8]
lea rdx, [0x180002a50]
call fcn.180004e30
mov rcx, qword [0x180056f58]
lea rdx, [0x180002b10]
call fcn.180004e30
mov rcx, qword [0x180056f88]
lea rdx, [0x180002760]
call fcn.180004e30
mov rcx, qword [0x180056e78]
lea rdx, [0x180042ea0]
call fcn.180004e30
mov rcx, qword [0x180056ed0]
lea rdx, [0x180004890]
call fcn.180004e30
mov rcx, qword [0x180056f40]
lea rdx, [0x180042cb0]
call fcn.180004e30
mov rcx, qword [sym.imp.KERNEL32.dll_FatalExit]
lea rdx, [0x1800043e0]
call fcn.180004e30
call fcn.180004030
mov rcx, qword [0x180056fb0]
lea rdx, [0x180004940]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180004e30
Function at 0x180003f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HI3.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180004010
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x378
lea rdx, [0x1800560b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180046710
add rsp, 0x50
pop rbx
ret
Function at 0x180004e30
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
call fcn.180045850
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180045f10
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180045210
test eax, eax
je 0x180004ea3
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_attach_hook.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.180045910
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180004ed0
mov qword [rax], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180046710
add rsp, 0x40
pop rbx
ret

Function at 0x180007540
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 0x18000759d
lea rbx, [0x180049e10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180007584
cmp r10, 2
jb 0x180007584
cmp byte [r9], r8b
jne 0x180007584
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 0x180007560
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800075df
lea rbx, [0x180049e10]
cmp r8b, 0x23
jne 0x1800075c3
cmp byte [r9], r8b
jne 0x1800075c3
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 0x1800075b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800076e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x1800076fe
mov qword [r8], r14
lea rdx, [0x180049940]
call fcn.1800075f0
mov rbx, rax
test rax, rax
jne 0x180007723
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18000784d
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 0x18000784d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000784d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000784d
cmp rdi, 0xffffffffffffffff
je 0x18000784d
mov rcx, rdi
call fcn.18000ae50
mov rbp, rax
test rax, rax
je 0x18000784d
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 0x18000783a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x180056db0]
test r8, r8
je 0x18000782f
movsx rdx, word [r8 + 0x60a8]
lea rcx, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180007824
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ac]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60a4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180007856
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180007848
mov qword [rsi], rdi
mov rax, rbp
jmp 0x180007858
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000a490
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x180049e10]
mov rax, qword [rcx + 0x108]
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 + 0x4054], ebx
jne 0x18000a526
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.18001e730
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18000a530
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x108]
lea r9, [0x180049e10]
movss xmm2, dword [rcx + 0x120]
movss xmm3, dword [rcx + 0x124]
movsxd rcx, dword [rcx + 0x100]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x18000e570
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000e5c0
lea r11, [0x180049e10]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000e5a3
cmp byte [r8], r9b
jne 0x18000e5a3
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 0x18000e590
mov rcx, qword [0x180056db0]
not eax
movsxd rdx, dword [rcx + 0x3fe8]
mov r9, qword [rcx + 0x3ff0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000e621
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000e619
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000e61c
mov rdx, r8
test rdx, rdx
jne 0x18000e5f0
cmp r9, r10
je 0x18000e630
cmp dword [r9], eax
jne 0x18000e630
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18001d090
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 + 0x5fd0], 0
lea rbx, [rcx + 0x5fd8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001d137
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001d0ea
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.18001f670
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180007e20
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fd0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fe0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180056da8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001d13f
mov rcx, rbx
call fcn.180007e20
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001d3a0
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
mov rbx, qword [0x180056db0]
xor ebp, ebp
cmp byte [rbx + 0x5f28], bpl
jne 0x18001d47f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001d478
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1800076e0
mov rsi, rax
test rax, rax
je 0x18001d478
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x18001d404
mov rcx, rax
call fcn.18001d5d0
mov r8, qword [0x180056db0]
test r8, r8
je 0x18001d46f
movsx rdx, word [r8 + 0x60a8]
lea rcx, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x18001d464
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ac]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60a4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f28], 1
movss xmm0, dword [rbx + 0x5f2c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18001d50e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f2c], xmm0
jb 0x18001d50e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18001d501
mov rax, qword [0x180056db0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f2c], ebp
call fcn.18001d830
lea rdx, [0x180049944]
mov rcx, rdi
mov rsi, rax
call fcn.1800075f0
mov rdi, rax
test rax, rax
je 0x18001d508
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18001d508
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f2c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret