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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
xor r14d, r14d
mov dword [rsp + 0x30], r14d
test rdx, rdx
je 0x14004ee41
mov edx, 0xc0000000
lea r9d, [r14 + 2]
call fcn.14004e260
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x34]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004eecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.1400222d0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001bf20
mov rbx, rax
lea rcx, [rbp + 0x10]
call fcn.14001bbf0
nop
mov rcx, rax
call fcn.14004f490
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.1400479d0
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.1400243e0
mov rcx, rax
mov rdx, rbx
call fcn.14002f180
mov rcx, rax
lea rdx, str.Last_error:
call fcn.1400243e0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140031710
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x70], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x70], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140022690
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x70], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x58], r14b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140022690
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1400a3730]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], r14b
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x50]
call fcn.140022560
nop
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea rax, vtable.BaseException.0
mov qword [rbp - 0x30], rax
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r14
mov byte [rbp - 0x18], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.140022690
nop
lea rax, vtable.AssertException.0
mov qword [rbp - 0x30], rax
lea rdx, [0x1400a35b8]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140052210
add rsp, 0x180
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140051620
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400a8020]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x14008f5f4]
lea rcx, [rsp + 0x20]
call fcn.14003dcd0
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140051673
mov rdx, qword [rsp + 0x20]
inc r8
call fcn.140022ac0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052210
add rsp, 0x58
ret

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14005246d
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14005246d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005246d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140052451
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14005244b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140052453
add rdx, 0x28
jmp 0x140052430
xor edx, edx
test rdx, rdx
jne 0x14005245c
xor al, al
jmp 0x140052473
test dword [rdx + 0x24], 0x80000000
je 0x140052469
xor al, al
jmp 0x140052473
mov al, 1
jmp 0x140052473
xor al, al
jmp 0x140052473
add rsp, 0x18
ret
Function at 0x140001070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
xor r10d, r10d
movsxd rdi, r8d
mov eax, r10d
lea rdx, [rsp]
mov rbx, rcx
mov r9d, 0x100
nop dword [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, r9d
jl 0x1400010a0
mov edx, r10d
lea rsi, [0x140005490]
mov r8, r10
nop word [rax + rax]
movzx r11d, byte [rsp + r8]
mov rax, r8
and eax, 0xf
movzx eax, byte [rax + rsi]
add edx, eax
add edx, r11d
and edx, 0x800000ff
jge 0x1400010e6
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8], al
inc r8
mov byte [rcx], r11b
sub r9, 1
jne 0x1400010c0
mov eax, r10d
mov r11, rdi
test edi, edi
jle 0x140001172
nop dword [rax]
inc eax
and eax, 0x800000ff
jge 0x140001122
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp]
add r8, rcx
movzx r9d, byte [r8]
lea ecx, [r10 + r9]
and ecx, 0x800000ff
jge 0x140001146
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
lea rdx, [rsp]
movzx ecx, byte [rdx + r10]
mov byte [r8], cl
mov byte [rdx + r10], r9b
movzx edx, byte [r8]
add rdx, r9
movzx ecx, dl
movzx edx, byte [rsp + rcx]
xor byte [rbx], dl
inc rbx
sub r11, 1
jne 0x140001110
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180001460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov r11, rdx
mov r9, rcx
mov r10d, dword [rax + rcx + 0x88]
add r10, rcx
mov ebx, dword [r10 + 0x18]
test ebx, ebx
je 0x1800014db
mov esi, dword [r10 + 0x24]
mov r14d, dword [r10 + 0x20]
movzx ebp, byte [rdx]
lea rax, [rsi + r8*2]
movzx edi, word [rax + r9]
lea rax, [r14 + r8*4]
mov edx, dword [rax + r9]
add rdx, r9
movzx ecx, byte [rdx]
cmp cl, bpl
jne 0x1800014d3
mov rax, r11
sub rdx, r11
test cl, cl
je 0x1800014f4
movzx ecx, byte [rdx + rax + 1]
inc rax
cmp cl, byte [rax]
je 0x1800014c3
inc r8d
cmp r8d, ebx
jb 0x1800014a1
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdi*4]
add rax, r9
jmp 0x1800014dd

Function at 0x180001510
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x60]
mov rsi, qword [rdx + 0x18]
add rsi, 0x20
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1800015ac
movabs rbp, 0x6c00640074006e
nop
cmp rdi, 1
jbe 0x18000158d
mov rax, qword [0x180082b98]
test rax, rax
jne 0x180001580
lea ecx, [rax + 1]
call fcn.180001510
mov rcx, rax
lea rdx, str._wcsicmp
call fcn.180001460
mov qword [0x180082b98], rax
mov rdx, qword [rbx + 0x50]
mov rcx, rdi
call rax
test eax, eax
jmp 0x1800015a2
jne 0x18000159f
cmp word [rbx + 0x48], 0x12
jne 0x1800015a4
mov rax, qword [rbx + 0x50]
cmp qword [rax], rbp
jmp 0x1800015a2
test rdi, rdi
je 0x1800015c3
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x180001550
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1800015ae
Function at 0x180012fc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x18001305f
cmp edx, 1
jne 0x18001308a
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdi, [0x180080940]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x180013005
test rax, rax
je 0x180013026
cmp byte [rax + rdi], 0x5c
je 0x180013021
sub rax, 1
jne 0x180013013
jmp 0x180013026
mov byte [rax + rdi + 1], 0
xor eax, eax
lea r8, [0x180012d40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.180002de0
call fcn.1800016b0
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
call fcn.18004bb10
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.18004c040
lea rdx, [0x1800128f0]
lea rcx, [0x1800808e0]
call fcn.18004b770
call fcn.18004bb90
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180014b90
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 0x180014bed
lea rbx, [0x180072830]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180014bd4
cmp r10, 2
jb 0x180014bd4
cmp byte [r9], r8b
jne 0x180014bd4
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 0x180014bb0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180014c2f
lea rbx, [0x180072830]
cmp r8b, 0x23
jne 0x180014c13
cmp byte [r9], r8b
jne 0x180014c13
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 0x180014c00
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180014db0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180014dca
mov qword [r8], 0
lea rdx, [0x180076948]
call fcn.180014c40
mov rbx, rax
test rax, rax
jne 0x180014dea
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 0x180014ec1
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 0x180014ec1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180014ec1
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 0x180014ec1
cmp rdi, 0xffffffffffffffff
je 0x180014ec1
mov rax, qword [0x180080a88]
test rax, rax
je 0x180014e5e
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 0x180014ec1
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 0x180014eae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180080a88]
test rax, rax
je 0x180014ea3
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180014eca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180014ebc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180014ecc
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 0x1800194e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
lea r8, [0x180076875]
mov dword [rsp + 0x2c], eax
lea r11, [0x180072830]
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 0x180019533
cmp byte [r8], r9b
jne 0x180019533
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 0x180019520
mov ecx, dword [rbx + 0x2fec]
lea rax, [0x180025520]
mov edi, dword [rbx + 0x2fe8]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x1800255d0]
mov qword [rsp + 0x38], rax
lea rax, [0x1800256a0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x180019635
inc edi
test ecx, ecx
je 0x18001959f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1800195a4
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x180019635
mov rax, qword [0x180080a88]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x1800195c8
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 + 0x2ff0]
mov rsi, rax
test rdx, rdx
je 0x180019623
movsxd rcx, dword [rbx + 0x2fe8]
lea r8, [rcx + rcx*2]
mov rcx, rax
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x2ff0]
test rcx, rcx
je 0x18001961d
mov rax, qword [0x180080a88]
test rax, rax
je 0x18001961d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2ff0], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2fec], edi
movsxd rax, dword [rbx + 0x2fe8]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x2ff0]
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 + 0x2fe8]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18001a700
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18001a750
lea r11, [0x180072830]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001a733
cmp byte [r8], r9b
jne 0x18001a733
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 0x18001a720
mov rcx, qword [0x180080a88]
not eax
movsxd rdx, dword [rcx + 0x1ad8]
mov r9, qword [rcx + 0x1ae0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18001a7b1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18001a7a9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18001a7ac
mov rdx, r8
test rdx, rdx
jne 0x18001a780
cmp r9, r10
je 0x18001a7c0
cmp dword [r9], eax
jne 0x18001a7c0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18001fb40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x180080a88]
lea rdx, [0x180072830]
mov r8d, ecx
mov rbx, qword [rax + 0x1af0]
add rbx, 0xc0
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x18001fbf7
lea ecx, [r9 + 1]
test r8d, r8d
je 0x18001fbe3
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18001fbe8
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.180026630
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180024e10
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x180080a88]
cmp byte [rbx + 0x3008], 0
je 0x180024efc
cmp qword [rbx + 0x3010], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3018]
je 0x180024ee4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x180024e8b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800263d0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180015a30
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3020]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18008088f]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180015a30
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180025180
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x180080a88]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x1800251be
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800251b5
test r13, r13
je 0x1800251ca
inc dword [r13 + 0x3bc]
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x180025393
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x1800253d7
cmp al, 0xd
je 0x1800253d7
mov rbx, rcx
cmp rcx, r12
jae 0x180025243
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x180025243
cmp al, 0xd
je 0x180025243
inc rbx
cmp rbx, r12
jb 0x180025230
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x180025377
cmp al, 0x5b
jne 0x18002535e
cmp rbx, rcx
jbe 0x18002535e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x18002535e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x180025377
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x180025377
mov r10, qword [0x180080a88]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x18002530a
cmp r9b, 0x23
jne 0x1800252e7
cmp byte [r8], r9b
jne 0x1800252e7
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x180072830]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x1800252d5
mov r8d, dword [r10 + 0x2fe8]
xor eax, eax
not ecx
test r8d, r8d
jle 0x180025334
mov r9, qword [r10 + 0x2ff0]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x18002533a
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x180025325
xor edi, edi
xor ebp, ebp
jmp 0x180025377
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x180025336
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x180025377
test rdi, rdi
je 0x180025377
test rbp, rbp
je 0x180025377
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x180025210
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x1800253be
mov rax, qword [0x180080a88]
test rax, rax
je 0x1800253be
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 0x2fd0], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x180025210
Function at 0x1800253e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x180080a88]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2fd4], r15d
test rcx, rcx
je 0x18002550b
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2fd8]
mov dword [rbx + 0x2fd4], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x180025444
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.1800263d0
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x18002545a
mov edx, 8
mov rcx, rdi
call fcn.1800263d0
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2fe8], r15d
jle 0x1800254a5
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2ff0]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2fe8]
jl 0x180025480
mov eax, dword [rdi]
lea rdx, [0x18007694c]
test eax, eax
lea rdi, [0x18008088f]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2fe0]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.180014c40
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x180025501
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x18002f510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18002f6a1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x18002f580
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18002eed0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18002e620
mov dword [rbx + 0x80], 0
jmp 0x18002f68d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18002d670
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret