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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140024783
cmp byte [rcx + 0x71], 0
je 0x140024783
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002477f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140024744
sub eax, 1
je 0x140024748
cmp eax, 2
jne 0x14002477f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002aa20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140024776
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14002477f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002472c
xor al, al
jmp 0x14002472c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002aa20
add rsp, 0x60
pop rbx
ret
Function at 0x140024af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140024b1d
xor eax, eax
jmp 0x140024c86
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140024b5d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140024b5d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140024c7e
cmp qword [rdi + 0x80], 0
je 0x140024c79
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140024b97
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140024bc2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140024c7e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140024c31
sub eax, 1
je 0x140024c31
cmp eax, 2
jne 0x140024c79
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140024c7e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140024c5f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140024c79
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140024c7e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002aa20
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400253b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400253e1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400253f8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140025449
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x1400254c1
mov rcx, rbp
call fcn.1400247c0
cmp rbx, 0xfff
jbe 0x1400254a1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400254e2
cmp rbx, rax
ja 0x140025470
test rdi, rdi
je 0x1400254c1
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x1400254c4
invalid
Function at 0x1400254f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140025511
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14002558c
test rax, rax
jle 0x14002556c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14002558c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002558c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140025a50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140025bf4
cmp r9, 4
jb 0x140025a9a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140025a80
xor r11d, r11d
test r9, r9
je 0x140025bf4
cmp r9, 8
jb 0x140025bcd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x140025acc
cmp rdx, r8
jae 0x140025bcd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140025ae1
cmp rdx, r10
jae 0x140025bcd
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140025b87
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140025b20
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x140025bbf
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x140025ba0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140025bf4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140025be0
add rsp, 8
ret

Function at 0x14002b648
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b692
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b692
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b692
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b692
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b692
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002b694
xor al, al
add rsp, 0x28
ret
Function at 0x1800013c0
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 0x18000143b
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 0x180001433
mov rax, r11
sub rdx, r11
test cl, cl
je 0x180001454
movzx ecx, byte [rdx + rax + 1]
inc rax
cmp cl, byte [rax]
je 0x180001423
inc r8d
cmp r8d, ebx
jb 0x180001401
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 0x18000143d

Function at 0x180001470
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 0x180001510
movabs rbp, 0x6c00640074006e
nop
cmp rdi, 1
jbe 0x1800014f1
mov rax, qword [0x18016d4b8]
test rax, rax
jne 0x1800014e0
lea ecx, [rax + 1]
call fcn.180001470
mov rcx, rax
lea rdx, str._wcsicmp
call fcn.1800013c0
mov qword [0x18016d4b8], rax
mov rdx, qword [rbx + 0x50]
mov rcx, rdi
call rax
test eax, eax
je 0x180001527
cmp rdi, 1
jne 0x180001503
cmp word [rbx + 0x48], 0x12
jne 0x180001508
mov rax, qword [rbx + 0x50]
cmp qword [rax], rbp
jmp 0x180001506
test rdi, rdi
je 0x180001527
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x1800014b0
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 0x180001512
Function at 0x1800113e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180011475
cmp edx, 1
jne 0x1800114a0
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdi, [0x18016d0e0]
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 0x180011425
test rax, rax
je 0x180011446
cmp byte [rax + rdi], 0x5c
je 0x180011441
sub rax, 1
jne 0x180011433
jmp 0x180011446
mov byte [rax + rdi + 1], 0
xor eax, eax
lea r8, [0x180011130]
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]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
call fcn.180041380
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800418b0
lea rdx, [0x180010c60]
lea rcx, [0x18016d0a0]
call fcn.180040fe0
call fcn.180041400
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180013510
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 0x180013571
lea rbx, [0x180046980]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180013554
cmp r10, 2
jb 0x180013554
cmp byte [r9], r8b
jne 0x180013554
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
mov ecx, eax
xor rdx, r8
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r10, r10
jne 0x180013530
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800135b7
lea rbx, [0x180046980]
cmp r8b, 0x23
jne 0x180013597
cmp byte [r9], r8b
jne 0x180013597
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
mov ecx, eax
inc r9
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r8b, r8b
jne 0x180013584
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800136f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001370a
mov qword [r8], 0
lea rdx, [0x180046640]
call fcn.1800135c0
mov rbx, rax
test rax, rax
jne 0x18001372a
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 0x180013801
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 0x180013801
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180013801
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 0x180013801
cmp rdi, 0xffffffffffffffff
je 0x180013801
mov rax, qword [0x18016d238]
test rax, rax
je 0x18001379e
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 0x180013801
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 0x1800137ee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18016d238]
test rax, rax
je 0x1800137e3
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001380a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800137fc
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001380c
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 0x180017d20
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
lea r8, [0x18004ada5]
mov dword [rsp + 0x2c], eax
lea r11, [0x180046980]
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 word [rax + rax]
cmp r9b, 0x23
jne 0x180017d73
cmp byte [r8], r9b
jne 0x180017d73
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
mov eax, edx
inc r8
shr eax, 8
mov edx, dword [r11 + rcx*4]
xor edx, eax
test r9b, r9b
jne 0x180017d60
mov r8d, dword [rbx + 0x2fec]
lea rax, [0x1800232e0]
mov ecx, dword [rbx + 0x2fe8]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x180023390]
mov qword [rsp + 0x38], rax
lea rax, [0x180023460]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], edx
cmp ecx, r8d
jne 0x180017e90
mov qword [rsp + 0x68], rdi
lea edi, [rcx + 1]
test r8d, r8d
je 0x180017dee
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180017df3
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, r8d
jle 0x180017e8b
mov rax, qword [0x18016d238]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x180017e18
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 0x180017e73
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 0x180017e6d
mov rax, qword [0x18016d238]
test rax, rax
je 0x180017e6d
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbx + 0x2fe8]
mov qword [rbx + 0x2ff0], rsi
mov rsi, qword [rsp + 0x60]
mov dword [rbx + 0x2fec], edi
mov rdi, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x20]
movsxd rax, ecx
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
add rsp, 0x50
pop rbx
ret
Function at 0x180019050
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800190a4
lea r11, [0x180046980]
nop dword [rax]
cmp r9b, 0x23
jne 0x180019083
cmp byte [r8], r9b
jne 0x180019083
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [r11 + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x180019070
mov r11, qword [0x18016d238]
not eax
movsxd rcx, dword [r11 + 0x1ad8]
mov r9, qword [r11 + 0x1ae0]
mov r10, rcx
mov rdx, rcx
mov r8, r9
test ecx, ecx
je 0x180019108
nop dword [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800190f9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800190fc
mov rdx, r8
test rdx, rdx
jne 0x1800190d0
mov r8, qword [r11 + 0x1ae0]
shl r10, 4
add r10, r8
cmp r9, r10
je 0x18001911e
cmp dword [r9], eax
jne 0x18001911e
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180022ba0
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 [0x18016d238]
cmp byte [rbx + 0x3008], 0
je 0x180022c8c
cmp qword [rbx + 0x3010], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3018]
je 0x180022c74
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x180022c1b
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.180024030
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180014410
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, [0x18016d224]
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.180014410
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180022f30
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x18016d238]
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 0x180022f6e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x180022f65
test r13, r13
je 0x180022f7a
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 0x180023151
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x180023195
cmp al, 0xd
je 0x180023195
mov rbx, rcx
cmp rcx, r12
jae 0x180022ff3
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x180022ff3
cmp al, 0xd
je 0x180022ff3
inc rbx
cmp rbx, r12
jb 0x180022fe0
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x180023135
cmp al, 0x5b
jne 0x18002311c
cmp rbx, rcx
jbe 0x18002311c
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x18002311c
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 0x180023135
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 0x180023135
mov r10, qword [0x18016d238]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x1800230ca
lea r10, [0x180046980]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800230a2
cmp byte [r8], r9b
jne 0x1800230a2
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
mov eax, ecx
inc r8
shr eax, 8
mov ecx, dword [r10 + rdx*4]
xor ecx, eax
test r9b, r9b
jne 0x180023090
mov r10, qword [0x18016d238]
mov r8d, dword [r10 + 0x2fe8]
xor eax, eax
not ecx
test r8d, r8d
jle 0x1800230f4
mov r9, qword [r10 + 0x2ff0]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x1800230fa
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x1800230e5
xor edi, edi
xor ebp, ebp
jmp 0x180023135
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x1800230f6
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x180023135
test rdi, rdi
je 0x180023135
test rbp, rbp
je 0x180023135
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x180022fc0
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 0x18002317c
mov rax, qword [0x18016d238]
test rax, rax
je 0x18002317c
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 0x180022fc0