joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov eax, 1
cpuid
bt ecx, 0x1f
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x2c], edx
jb 0x140001746
xor eax, eax
mov qword [rsp + 0x50], rsi
lea rsi, [0x140005820]
mov qword [rsp + 0x58], rdi
lea rdi, [0x140005898]
mov rbx, rsi
mov qword [0x140005820], rax
mov qword [0x140005828], rax
mov qword [0x140005830], rax
mov qword [0x140005838], rax
mov qword [0x140005840], rax
mov qword [0x140005848], rax
mov qword [0x140005850], rax
mov dword [0x140005858], eax
nop word [rax + rax]
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
add rbx, 8
cmp rbx, rdi
mov qword [rbx - 8], rax
jl 0x140001620
call fcn.140001170
call fcn.140001340
test eax, eax
jne 0x140001680
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1400058c0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001680
call fcn.140001340
test eax, eax
je 0x140001650
movsxd r10, dword [0x1400058b4]
lea r11, [0x1400051b8]
mov r9d, 8
mov rdi, qword [rsi + r10*8]
inc r10d
lea rsi, [0x14000505e]
mov rdx, rdi
sub r11, rdi
nop dword [rax + rax]
movzx eax, byte [r11 + rdx]
mov rbx, rsi
mov r8d, 4
mov byte [rdx], al
movzx eax, byte [rbx + 1]
sub rbx, 4
xor byte [rdx], al
movzx eax, byte [rdx]
xor al, byte [rbx + 4]
mov byte [rdx], al
movzx ecx, byte [rbx + 3]
xor cl, al
mov byte [rdx], cl
movzx eax, byte [rbx + 2]
xor al, cl
sub r8, 1
mov byte [rdx], al
jne 0x1400016c0
inc rdx
sub r9, 1
jne 0x1400016b0
xor ecx, ecx
mov byte [rdi + 8], r9b
cmp r10d, 0xf
cmovge r10d, ecx
lea rax, [0x140001750]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [0x1400058b4], r10d
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
test eax, eax
jne 0x140001746
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140002087
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140005020]
jne 0x140001c8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001c86
repz ret
ror rcx, 0x10
jmp 0x140001fe0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140005310]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140005408]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002065
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140005310]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002087
mov rax, qword [rsp + 0x88]
mov qword [0x140005408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400053a8], rax
mov rax, qword [0x140005408]
mov qword [0x140005280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140005390], rax
mov dword [0x140005270], 0xc0000409
mov dword [0x140005274], 1
mov rax, qword [0x140005020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140005028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140005308], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003258]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140005308], 0
jne 0x14000210e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x135e8b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x135e8bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x135e8cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x135e8b5
lea eax, [rcx + 1]
jmp 0x135e8db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x135e8ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x135e8d4
sub eax, 3
jb 0x135e90e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x135e95d
sar eax, 1
movsxd rbp, eax
jb 0x135e944
jmp 0x135e91c
add ebx, ebx
jne 0x135e91a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x135e944
inc ecx
add ebx, ebx
jne 0x135e92a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x135e944
call r11
adc ecx, ecx
add ebx, ebx
jne 0x135e93d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x135e92c
add ecx, 2
jmp 0x135e949
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0135e872
jmp 0x135e8bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf49000]
mov eax, dword [rdi]
or eax, eax
je 0x135e9b9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf5e000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x135e969
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x135e9b3
mov qword [rbx], rax
add rbx, 8
jmp 0x135e989
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x135e9fd
cmp al, 0xef
ja 0x135e9e5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x135e9c5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x135e9d4
mov eax, dword [rdi]
add rdi, 4
jmp 0x135e9d4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x135ea51
sub rsp, 0xffffffffffffff80
jmp 0x45d040
Function at 0x1800091b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1800091e4
cmp ecx, r10d
jge 0x1800091d2
mov rcx, rbx
call fcn.180008980
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x18000921e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x180009200
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x18000924d
mov edx, dword [0x1801e5294]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x18000927f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x180009269
xor dl, dl
jmp 0x180009272
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180009260
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180009222
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1800092f4
mov edx, dword [0x1801e5294]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18000930e
mov rcx, rbx
call fcn.180008ad0
test eax, eax
je 0x1800092e7
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180022be0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc70
mov rax, qword [0x180159870]
xor rax, rsp
mov qword [rsp + 0xc60], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
lea rax, [rsp + 0x460]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x180022ccc
mov r8d, 0x3ff
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x180022c65
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180022aa0
nop
mov r8d, 6
lea rdx, [0x1801059ec]
lea rcx, [rsp + 0x38]
call fcn.180022a00
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x38]
call fcn.1800014f0
jmp 0x180022cec
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x18010aedc]
mov rcx, rbx
call fcn.180022aa0
mov rax, rbx
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.1800daf30
mov rbx, qword [rsp + 0xc88]
add rsp, 0xc70
pop rdi
ret
Function at 0x1800231d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x180159870]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180023365
lea rdx, [0x18010b1c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180023365
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x180023365
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180023365
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x1800232a0
lea rdx, [0x18002332a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800232cb
lea rdx, [0x18002332a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1800232ff
lea rdx, [0x18002332a]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x180023321
mov byte [rsp + 0x30], 1
lea rdx, [0x18002334e]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x18002334e
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x180023285
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002335e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x180023367
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.1800daf30
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180023390
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
call fcn.1800231d0
test al, al
je 0x18002340d
movdqa xmm0, xmmword [0x180129ad0]
xor eax, eax
movdqa xmm1, xmmword [str.7____8._m:5q]
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x40], 0x3d137b3c
movdqu xmmword [rsp + 0x30], xmm1
mov dword [rsp + 0x44], 0x3b3c2f3b
mov dword [rsp + 0x48], 0x1002c38
nop dword [rax]
nop word [rax + rax]
lea edx, [rax + 0x35]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x2a
jb 0x1800233e0
mov rcx, qword [0x180173c20]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x4b], 0
call fcn.180069640
mov ecx, 0x1a4
int 0x29
add rsp, 0x58
ret
Function at 0x1800235a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180023700
mov rdi, rax
movabs r8, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov rcx, rbx
shr rcx, 8
movzx edx, cl
movzx ecx, bl
xor rcx, rax
mov rax, rbx
shr rax, 0x10
imul rcx, r8
xor rdx, rcx
movzx ecx, al
imul rdx, r8
mov rax, rbx
xor rdx, rcx
shr rax, 0x18
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x20
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x28
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x30
imul rdx, r8
movzx ecx, al
mov rax, rbx
xor rdx, rcx
shr rax, 0x38
mov rcx, qword [rdi + 0x480]
imul rdx, r8
xor rdx, rax
imul rdx, r8
and rcx, rdx
mov rdx, qword [rdi + 0x458]
shl rcx, 4
add rcx, qword [rdi + 0x468]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x180023686
mov rcx, qword [rcx]
cmp rbx, qword [rax + 0x10]
je 0x180023688
cmp rax, rcx
je 0x180023686
mov rax, qword [rax + 8]
cmp rbx, qword [rax + 0x10]
jne 0x180023675
jmp 0x180023688
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1800236d4
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1800236cb
mov r8, qword [0x1801e52c8]
mov rcx, rdi
mov r8, qword [r8 + 0x40]
call fcn.1800cfbc0
mov rax, qword [0x1801e52c8]
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0xf0]
lea rdx, str.Failed_to_find_handler_for_native__p
jmp 0x1800236db
lea rdx, str.Failed_to_find_current_hash_for_native__p
mov rcx, qword [0x180173c20]
mov r8, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180069640
Function at 0x180037e00
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 0x180037e5d
lea rbx, [0x180106800]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180037e44
cmp r10, 2
jb 0x180037e44
cmp byte [r9], r8b
jne 0x180037e44
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 0x180037e20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180037e9f
lea rbx, [0x180106800]
cmp r8b, 0x23
jne 0x180037e83
cmp byte [r9], r8b
jne 0x180037e83
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 0x180037e70
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180037fe0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180037ffa
mov qword [r8], 0
lea rdx, [0x18010259c]
call fcn.180037eb0
mov rbx, rax
test rax, rax
jne 0x18003801a
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 0x1800380f1
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 0x1800380f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800380f1
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 0x1800380f1
cmp rdi, 0xffffffffffffffff
je 0x1800380f1
mov rax, qword [0x1801e5308]
test rax, rax
je 0x18003808e
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 0x1800380f1
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 0x1800380de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801e5308]
test rax, rax
je 0x1800380d3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800380fa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800380ec
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800380fc
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 0x18003a910
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x180106800]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1801e5308]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ed4], ebx
jne 0x18003a9a6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18004d310
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18003fdc0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18003fe10
lea r11, [0x180106800]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003fdf3
cmp byte [r8], r9b
jne 0x18003fdf3
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 0x18003fde0
mov rcx, qword [0x1801e5308]
not eax
movsxd rdx, dword [rcx + 0x3e80]
mov r9, qword [rcx + 0x3e88]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18003fe71
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18003fe69
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18003fe6c
mov rdx, r8
test rdx, rdx
jne 0x18003fe40
cmp r9, r10
je 0x18003fe80
cmp dword [r9], eax
jne 0x18003fe80
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18004bd20
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 + 0x5bf0], 0
lea rbx, [rcx + 0x5bf8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18004bdc7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18004bd7a
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.18004edd0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180038500
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5bf0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c00]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1801e52f3]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18004bdcf
mov rcx, rbx
call fcn.180038500
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18004c340
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801e5308]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18004c3a3
mov qword [rsp], rbx
lea rbx, [0x180106800]
nop dword [rax]
cmp r9b, 0x23
jne 0x18004c383
cmp byte [r8], r9b
jne 0x18004c383
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 0x18004c370
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b68]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18004c3d7
mov r10, qword [r10 + 0x5b70]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18004c3de
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18004c3c4
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 0x180068fc0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180068ff5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180001c30
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180069164
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800690dc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180069153
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180069119
mov r10, qword [rdx]
cmp r10, rax
je 0x180069113
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180069153
cmp r9, rdx
je 0x18006912f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180069175
cmp r9, rdx
jne 0x180069120
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180069060
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180069153