joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001f51
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x18088a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18088a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18088a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18088a06f
add dl, dl
jne 0x18088a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18088a0f6
xor eax, eax
add dl, dl
jne 0x18088a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18088a1ad
add dl, dl
jne 0x18088a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18088a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18088a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18088a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18088a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18088a07e
mov eax, 1
add dl, dl
jne 0x18088a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18088a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18088a0fb
sub eax, ebx
mov ebx, 1
jne 0x18088a14c
mov ecx, 1
add dl, dl
jne 0x18088a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18088a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18088a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18088a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18088a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18088a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18088a15d
cmp eax, 0x7d00
jae 0x18088a19b
cmp eax, 0x500
jb 0x18088a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18088a07e
cmp eax, 0x7f
ja 0x18088a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18088a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18088a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18088a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001cfc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140048c60
sub rsp, rax
mov rax, qword [0x140060040]
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 0x14001d082
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001d02d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001d020
cmp rcx, 1
jb 0x14001d0da
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 0x14001d050
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003cac0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001d010
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001d0b3
lea rcx, [rsp + 0x80]
call fcn.14003e160
jmp 0x14001d0b5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002d9d0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140031ff0
int3

Function at 0x14001d0e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140060040]
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 0x14001d13d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001d130
cmp rcx, 1
jb 0x14001d1b7
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 0x14001d153
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003cac0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001d120
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002d9d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140031ff0
int3
Function at 0x14002e3d8
Capabilities:
Parse pe header

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

Function at 0x140032350
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 0x1400321bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400321bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400321bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400321bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400321bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400321bb
cmp dword [rcx + 0xf8], 0
je 0x1400321bb
mov ecx, ebx
call fcn.14003226c
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.140032048
nop
cmp dword [rbp + 0x20], 0
je 0x140032209
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140032214
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003214c
Function at 0x140042d9c
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 0x140042e23
mov rsi, rbx
cmp word [rax], bp
je 0x140042de2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140042dcc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140042dc8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140040624
mov rdi, rax
test rax, rax
je 0x140042e10
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049240
mov rbp, rdi
xor ecx, ecx
call fcn.14003eae0
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 0x14004653c
Capabilities:
Get file size

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

Function at 0x140048b70
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
int 9
nop
cmpsd dword [rsi], dword [rdi]
insb byte [rdi], dx
cmc
invalid
pop rdi
rol eax, 1
sal byte [rbp + rsi*2 + 0x40], 0xc0
invalid
and edi, dword [rdi + 0x7526b887]
fdivr dword [rdx]
movsd dword [rdi], dword [rsi]
in al, 0xa5
jrcxz 0x140023252
jns 0x140023221
mov ah, 0xf3
adc dword [rdx + 0x3e4920e5], esp
lock xchg dword [rdx], edx
shl byte [rcx - 0x54187ec8], cl
invalid
Function at 0x140006450
Capabilities:
Terminate process

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x40
mov eax, edx
mov r12, rcx
mov ecx, eax
lea rdx, [rsp + 0x20]
call fcn.140006880
mov rcx, qword [r12]
mov r15, rax
lea rax, [rsp + 0x20]
mov rdx, qword [rcx + 0x10]
sub rdx, rax
add rdx, r15
call fcn.1400066e0
lea rax, [rsp + 0x20]
lea rdi, [rsp + 0x20]
cmp rax, r15
cmovno edx, dword [rdi + 0x41]
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
xor ecx, ecx
call rbx
mov rsi, rax
mov r14, rax
mov rcx, qword [0x140078b70]
call rbx
mov r15, rax
mov ebx, dword [0x140078b64]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov rdx, qword [str.GetModuleFileNameW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call rax
xor ecx, ecx
nop word cs:[rax + rax]
movzx eax, word [rbx + rdi*2]
cmp ax, 0x5c
cmove ecx, edi
inc rdi
test ax, ax
jne 0x140006504
mov r8, qword [0x140078b00]
mov edx, dword [r8]
test edx, edx
je 0x1400065a2
movsxd rcx, ecx
lea rcx, [rbx + rcx*2]
add rcx, 2
mov ebx, edx
shr ebx, 8
xor edi, edi
nop word cs:[rax + rax]
mov eax, edi
inc edi
cmp word [rcx + rax*2], 0
jne 0x140006544
invalid

Function at 0x140006494
Capabilities:
Terminate process

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x40
mov eax, edx
mov r12, rcx
mov ecx, eax
lea rdx, [rsp + 0x20]
call fcn.140006880
mov rcx, qword [r12]
mov r15, rax
lea rax, [rsp + 0x20]
mov rdx, qword [rcx + 0x10]
sub rdx, rax
add rdx, r15
call fcn.1400066e0
lea rax, [rsp + 0x20]
lea rdi, [rsp + 0x20]
cmp rax, r15
cmovno edx, dword [rdi + 0x41]
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edi, edi
xor ecx, ecx
call rbx
mov rsi, rax
mov r14, rax
mov rcx, qword [0x140078b70]
call rbx
mov r15, rax
mov ebx, dword [0x140078b64]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov rdx, qword [str.GetModuleFileNameW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call rax
xor ecx, ecx
nop word cs:[rax + rax]
movzx eax, word [rbx + rdi*2]
cmp ax, 0x5c
cmove ecx, edi
inc rdi
test ax, ax
jne 0x140006504
mov r8, qword [0x140078b00]
mov edx, dword [r8]
test edx, edx
je 0x1400065a2
movsxd rcx, ecx
lea rcx, [rbx + rcx*2]
add rcx, 2
mov ebx, edx
shr ebx, 8
xor edi, edi
nop word cs:[rax + rax]
mov eax, edi
inc edi
cmp word [rcx + rax*2], 0
jne 0x140006544
invalid
Function at 0x140007cd0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
sub rsp, 0x60
xor r13d, r13d
mov byte [rcx], 0
mov qword [rcx + 2], r13
mov rbp, rdx
mov qword [rcx + 0xa], r13
mov rdi, rcx
test rdx, rdx
je 0x140007e1f
cmp word [rdx], r13w
je 0x140007e1f
lea rdx, [rax + 8]
mov qword [rax - 0x38], r14
mov rcx, rbp
mov dword [rax + 8], r13d
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x140007e1a
mov r8d, dword [0x140057140]
lea rax, str.C:_buildslaveunity_buildPlatformDependent_Win_FileInformation.cpp
mov qword [rsp + 0x58], rbx
lea edx, [r13 + 0x10]
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov qword [rsp + 0x48], r12
mov ecx, r14d
mov dword [rsp + 0x28], 0x25
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x20], rax
call fcn.140001ec0
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140038450
xor edx, edx
lea rcx, [rdi + 0x12]
mov r8d, 0x410
call fcn.140038450
xor edx, edx
lea rcx, [rdi + 0x422]
mov r8d, 0x410
call fcn.140038450
xor edx, edx
lea rcx, [rdi + 0x832]
mov r8d, 0x410
call fcn.140038450
mov edx, dword [rsp + 0x80]
mov r9, rsi
mov r8d, r14d
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rsi
test eax, eax
je 0x140007ea1
lea r9, [rsp + 0x88]
mov qword [rsp + 0x98], r13
lea r8, [rsp + 0x98]
mov dword [rsp + 0x88], r13d
lea rdx, [0x1400571c4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140007e2b
mov edx, dword [0x140057140]
mov rcx, rsi
call fcn.140001eb0
mov rbx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x60
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rsp + 0x98]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
lea rdx, [0x1400571c8]
movzx eax, word [rcx + 0xa]
mov word [rdi + 2], ax
movzx eax, word [rcx + 8]
mov word [rdi + 4], ax
movzx eax, word [rcx + 0xe]
mov word [rdi + 6], ax
movzx eax, word [rcx + 0xc]
mov word [rdi + 8], ax
movzx eax, word [rcx + 0x12]
mov word [rdi + 0xa], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 0xc], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 0xe], ax
movzx eax, word [rcx + 0x14]
mov rcx, rsi
mov word [rdi + 0x10], ax
mov qword [rsp + 0x90], r13
call sub.VERSION.dll_VerQueryValueW
mov rcx, rsi
test eax, eax
jne 0x140007eac
mov edx, dword [0x140057140]
jmp 0x140007e01
mov rdx, qword [rsp + 0x90]
lea r9, [rdi + 0x12]
lea r8, [0x140057200]
call fcn.140009180
mov rdx, qword [rsp + 0x90]
lea r9, [rdi + 0x422]
lea r8, [0x140057210]
mov rcx, rsi
call fcn.140009180
mov rdx, qword [rsp + 0x90]
lea r9, [rdi + 0x832]
lea r8, [0x140057220]
mov rcx, rsi
call fcn.140009180
mov edx, dword [0x140057140]
mov rcx, rsi
call fcn.140001eb0
mov byte [rdi], 1
jmp 0x140007e06
Function at 0x140008290
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x40], 0xffffffffffffffff
mov rbx, rcx
je 0x14000832f
movzx edx, byte [rcx + 0x4c]
mov qword [rsp + 0x30], rdi
test dl, dl
je 0x1400082f3
cmp byte [rcx + 0x4d], 0
je 0x1400082f3
mov rdi, qword [rcx]
mov rax, qword [rcx + 0x10]
lea rcx, [rdi + rax*8]
cmp rdi, rcx
je 0x1400082f0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
sete dl
add rdi, 8
or dl, byte [rbx + 0x4c]
mov byte [rbx + 0x4c], dl
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
cmp rdi, rcx
jne 0x1400082c7
mov byte [rbx + 0x4d], dl
mov rdi, qword [rbx]
mov rax, qword [rbx + 0x10]
lea rcx, [rdi + rax*8]
cmp rdi, rcx
je 0x140008320
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
add rdi, 8
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
cmp rdi, rcx
jne 0x140008303
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x20]
lea rax, [0x1400570c0]
cmp rcx, rax
je 0x140008347
mov edx, dword [rbx + 0x38]
call fcn.140001eb0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140008365
cmp qword [rbx + 0x18], 0
jl 0x140008365
mov edx, dword [rbx + 8]
call fcn.140001eb0
mov qword [rbx], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400086a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov r9b, 1
jmp 0x1400086b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rsi, r8
movzx ebx, r9b
mov r14, rdx
mov r15, rcx
xor ebx, 1
xor edx, edx
mov rcx, rsi
lea edi, [rbx*4 + 0x10]
mov r8d, edi
mov ebp, edi
call fcn.140038450
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140008799
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x8003]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000878c
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140008786
lea r9, [rsp + 0x98]
mov dword [rsp + 0x98], edi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000879d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400087c7
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140037930
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400086b0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov r9b, 1
jmp 0x1400086b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rsi, r8
movzx ebx, r9b
mov r14, rdx
mov r15, rcx
xor ebx, 1
xor edx, edx
mov rcx, rsi
lea edi, [rbx*4 + 0x10]
mov r8d, edi
mov ebp, edi
call fcn.140038450
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140008799
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x8003]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000878c
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140008786
lea r9, [rsp + 0x98]
mov dword [rsp + 0x98], edi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14000879d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400087c7
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140037930
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000c970
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
jb 0x14000c9b2
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
mov qword [rsp + 0x20], rcx
xor edx, edx
movabs r10, 0x100000001b3
mov qword [rsp + 0x28], rdx
cmp rdx, r9
jae 0x14000c9f2
movzx eax, byte [rdx + r8]
xor rcx, rax
mov qword [rsp + 0x20], rcx
imul rcx, r10
mov qword [rsp + 0x20], rcx
inc rdx
jmp 0x14000c9cd
mov r12, qword [r15 + 0x30]
and r12, rcx
mov qword [rsp + 0x48], r12
mov rdi, qword [r15 + 8]
mov r9, r12
shl r9, 4
mov qword [rsp + 0x38], r9
mov r13, qword [r15 + 0x18]
add r13, r9
cmp qword [r13], rdi
je 0x14000ca27
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x30], rdi
nop dword [rax]
cmp rdi, qword [r13]
je 0x14000cac8
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x30], rdi
lea rdx, [rdi + 0x10]
cmp qword [rdi + 0x28], 0x10
jb 0x14000ca52
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000ca5f
mov rcx, qword [rsi]
mov r8, qword [rsi + 0x10]
cmp r8, qword [rdi + 0x20]
jne 0x14000cac3
call fcn.140038610
test eax, eax
jne 0x14000cac3
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
dec qword [r15 + 0x10]
lea rcx, [rbx + 0x30]
call fcn.140007870
lea rcx, [rbx + 0x10]
call fcn.140007870
mov qword [rsp + 0x58], 0x50
mov edx, 0x50
mov rcx, rbx
call fcn.14003068c
mov qword [r14], rdi
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14000cb6c
jmp 0x14000ca30
mov rax, qword [rbx]
cmp rdi, rax
je 0x14000cafd
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rax, qword [r15 + 8]
mov r8, qword [r15 + 0x18]
mov rdx, r12
add rdx, rdx
add r12, r12
mov r9, qword [rsp + 0x38]
cmp qword [r9 + r8], rax
jne 0x14000cb28
mov qword [r8 + r12*8], rbx
mov rax, qword [r15 + 0x18]
mov qword [rax + rdx*8 + 8], rbx
jmp 0x14000cb58
cmp qword [r8 + r12*8], rdi
jne 0x14000cb34
mov qword [r8 + rdx*8], rbx
jmp 0x14000cb58
mov rax, qword [r8 + rdx*8 + 8]
mov rcx, qword [rax]
mov qword [r8 + rdx*8 + 8], rcx
cmp rcx, rbx
je 0x14000cb58
mov rdx, qword [r15 + 0x18]
mov rax, qword [rdx + r9 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r9 + 8], rcx
mov rcx, r15
call fcn.14001ef60
nop
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rax, r14
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret