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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.213785230
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.213785230
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x21377c370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2137a7614]
test esi, esi
mov rbx, rcx
jle 0x21377c4a0
mov rax, qword [0x2137a7618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x21377c3bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x21377c445
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x21377c3a0
mov rcx, rbx
call fcn.21377cbd0
test rax, rax
mov rdi, rax
je 0x21377c4c2
mov rax, qword [0x2137a7618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.21377cd10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2137a7618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x21377c4a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x21377c43e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x21377c450
add dword [0x2137a7614], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2137a7618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x21377c43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.21377c300
nop dword [rax]
xor esi, esi
jmp 0x21377c3c8
mov rax, qword [0x2137a7618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.21377c300
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.21377c300
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x21377c840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2137a7640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2137a7620]
test rbx, rbx
je 0x21377c89c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x21377c893
test rsi, rsi
je 0x21377c893
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x21377c878
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x21377cbd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x21379c860]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x21377cbf0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x21377cbf8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x21377cbf0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x21377cc4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x21377cc44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x21377cbf0
add rax, 0x28
cmp rax, r9
jne 0x21377cc30
xor eax, eax
ret

Function at 0x21377cc50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x21379c860]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x21377cc6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x21377cc78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x21377cc6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x21377cd10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x21379c860]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x21377cd2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x21377cd38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x213797440
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2137981e0]
jmp 0x21377d8a0
Function at 0x140003bd0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x118
mov byte [rsp + 0x5f], 0
mov qword [rsp + 0x60], 1
mov byte [rsp + 0x6f], 0
mov qword [rsp + 0x70], 1
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0xa8]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0xa8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x78]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0xd8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x50]
add rsp, 0x118
ret
Function at 0x1400065a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140006640
jmp 0x14000662f
jae 0x140006700
cmp r8, 0x201
jae 0x140006640
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140006698
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000666f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001bb20
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400066c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006768
mov r8d, r14d
cmp r15, r8
jne 0x140006620
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006795
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000662f
jmp 0x140006640
cmp rsi, r8
jb 0x1400067af
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007d10
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140006751
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400022a0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140006739
jmp 0x140006751
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001c410
jmp 0x1400067c4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001c860
ud2
Function at 0x14000bfb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001f360]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000bff4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c05a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c091
test eax, eax
js 0x14000c06b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c084
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140007ae0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov ecx, 7
int 0x29
ud2
Function at 0x140019e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140019efa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140019ef0
cmp r11, r10
ja 0x140019f91
cmp r10, rdx
ja 0x140019fa3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019ef2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140019ed0
jmp 0x140019f67
ja 0x140019efa
mov r11, r10
cmp rax, r8
jne 0x140019ea2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140019f6b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019f40
mov r8, r10
sub ecx, r9d
jns 0x140019f5e
jmp 0x140019f6d
cmp r10, rdx
je 0x140019f79
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140019f6d
xor al, 1
cmp r8, rdx
jne 0x140019f20
jmp 0x140019f6d
xor eax, eax
jmp 0x140019f6d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002189b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001c410
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c8e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c860
int3

Function at 0x14001b58c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b5d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b5d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b5d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b5d6
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b5d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001b5d8
xor al, al
add rsp, 0x28
ret
Function at 0x1400028f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002911
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000293e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002940
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002999
test ecx, ecx
jle 0x140002979
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002999
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002999
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
sub eax, 0x2d2f3126
in al, dx
xor dword [rdi], ebp
sub eax, 0x2d2f31ff
push qword [rcx]
invalid
Function at 0x1400029c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400029e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400029f1
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002a16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002a52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002aee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002a8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002ace
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002aee
cmp rbx, rax
ja 0x140002aa0
test rbx, rbx
je 0x140002aee
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub eax, 0x2d3032ff
call qword [rax - 0x1500b47e]
shr byte [rax - 1], cl
invalid
Function at 0x140002f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002f7d
xor eax, eax
jmp 0x1400030e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002fb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002fb7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400030e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400030dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002ffa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003025
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140003094
sub eax, 1
je 0x140003094
cmp eax, 2
jne 0x1400030dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400030c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400030dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004350
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003420
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400034f3
cmp byte [rcx + 0x71], 0
je 0x1400034f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400034ef
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 0x1400034b4
sub eax, 1
je 0x1400034b8
cmp eax, 2
jne 0x1400034ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004350
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400034e6
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 0x1400034ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000349c
xor al, al
jmp 0x14000349c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004350
add rsp, 0x60
pop rbx
ret

Function at 0x140004d0c
Capabilities:
Parse pe header

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

Disassembly:
not r9b
rol r9b, 1
sub r9b, 0x88
mul cl
mov qword [rsp + rax - 0xaf9], rax
and r8b, 0x95
xor dil, r9b
call fcn.14001f149
mov rbp, qword [rbx]
mov r8d, 0x551df334
sar r8b, 0xc1
mov rax, qword [rbx + r8 - 0x551df312]
lea rbx, [rbx + r8 - 0x551df312]
lea rdx, [r8 + r8 - 0x4a614e65]
sar edx, 0xf7
mov ecx, edx
not rbp
not rax
movzx esi, cx
mov r9d, ecx
or rbp, rax
and r9b, cl
jne 0x140045e6b
sal sil, 0xc2
movzx ebp, r8b
ror edx, 2
btr cx, si
call fcn.14002188c
mov edx, 0x9e1ed324
mov edx, dword [r11 + riz]
mov ecx, 0x35b45a38
lea r11, [r11 + rcx*2 - 0x6b68b46c]
movsx eax, cx
jmp 0x140049ca8
inc cx
mov qword [rbx + r8 - 0x551df31a], rbp
xchg r9b, r8b
xor esi, 0x56bc8c97
and sil, r9b
mov edx, dword [r11 + r8 - 0x551df3bf]
neg r8b
lea r11, [r8 + r11 - 0x551df33d]
imul r8d, r9d
lea rax, [rsi*4 + 0x71875186]
inc esi
xor edx, edi
jmp 0x140033801
dec cx
xor edx, edi
push rcx
neg edx
ror edx, 1
neg edx
push rax
rol edx, 2
xadd dword [rsp + rax - 0x5a2d], ecx
inc byte [rsp + rcx*8 - 0x1a5]
movsx r8d, cl
mov qword [rsp + rcx - 0x2d], rdi
mov r9d, ecx
xadd word [rsp + rcx - 0x31], ax
xor dword [rsp + rcx - 0x2d], edx
and qword [rsp + rcx*2 - 0x6a], 0xffffffff828c509c
cbw
mov rdi, qword [rsp + rcx*2 - 0x62]
bt eax, 0x8c
movsxd rdx, edx
and dword [rsp + rcx - 0x34], ecx
or cl, r8b
adc r10, rdx
mov qword [rsp + rcx - 0x2d], rax
mov rbp, qword [rbx + rcx*2 - 0x6a]
call fcn.14002a855
mov esi, 0xba3af9d
mov esi, dword [rsi + r11 - 0xba3af9d]
add r11, 4
mov edx, 0xc904b124
xor esi, edi
lea esi, [rsi + rdx - 0x7b715308]
movzx ecx, dl
mov eax, edx
cwd
ror esi, 1
dec dx
push rdx
neg dword [rsp + rcx*8 - 0x11c]
lea esi, [rsi + rdx - 0x3e51a3e8]
movsx r8d, cx
movsx r9d, byte [rsp + rcx*8 - 0x120]
or r9d, eax
bswap esi
not esi
dec word [rsp + rcx - 0x23]
sbb esi, 0xc5b1abac
mov qword [rsp + rcx - 0x24], rdi
Function at 0x14002f91c
Capabilities:
Authenticate hmac

Disassembly:
mov rdi, qword [rsp + rdx - 0x44976f10]
pop rdx
movsxd rcx, ecx
movzx r9d, si
sub r8w, bp
mov qword [rsp + r8 - 0x2de7], r8
add r10, rcx
mov eax, dword [r11 + r8*4 - 0xb794]
lea r11, [r11 + r8*2 - 0x5bc2]
xor byte [rsp + r8 - 0x2de7], r8b
xor eax, edi
xor eax, 0xc63b0aba
pop rbp
neg eax
dec eax
or r8w, 0xa232
movzx edx, r9w
not eax
sbb ebp, edx
rol bp, 0xa9
lea eax, [rbp + rax + 0x3e04eae1]
bts rdx, 0x30
push rdi
xor dword [rsp + rbp*2 - 0xb4], eax
pop rdi
lea rcx, [r9 + r9*2 - 0x104167de]
neg rdx
neg r9w
mov dword [rbp + rbx - 0x62], eax
xadd r9, rcx
lea rbx, [rbx + rbp - 0x62]
jp fcn.140043dcd
movzx dx, byte [rsi + r9 - 0x767bdc73]
add rbp, rcx
jb 0x14003dd94
lea rbx, [rbx + r9 - 0x767bdc75]
add r9, rax
sub ecx, r9d
and r8d, r9d
mov word [rcx + rbx - 0x313af5c2], dx
push rbp
mul qword [rsp + r9 + 0x74076f8f]
mov r8d, dword [r11 + r9 + 0x74076f8f]
lea r11, [r11 + rcx - 0x313af5be]
movsx esi, al
xor r8d, edi
sub dl, 0x10
and rbp, 0x66bd8d90
bswap r8d
bts r9w, 0xbe
ror rbp, cl
shl sil, 0x25
lea r8d, [r8 + rbp - 0x62ad8827]
neg r8d
and dword [rsp + rcx - 0x313af5c0], 0xcb3f2627
shl si, 0x2d
lea r8d, [r8 + r9*2 + 0x386be916]
sal word [rsp + rcx - 0x313af5bf], 0xe6
lea rcx, [rsi - 0x29c3f44d]
mov qword [rsp + rcx + 0x29c3f44d], rdi
mul r9w
xor dword [rsp + rcx + 0x29c3f44d], r8d
btr ecx, ecx
ror sil, 2
pop rdi
sub ebp, eax
shl r9b, 0x87
btr r9w, si
movsxd r8, r8d
bts r9, r9
ror rax, 0x16
sub rcx, rdx
add r10, r8
rol si, 0xe6
call fcn.14003e7c8
add bp, 0x7b08
xor bp, 0xa01
movzx edx, si
or dword [rsp + rsi - 0x39aa80b3], 0xec84c7b1
sbb bp, 0xec0f
not bp
lea rcx, [rdx + r8*2 + 0x9ae1526]
sub r8w, cx
xor di, bp
add rsi, 0xffffffffe59b0e86
mov r9d, 0x3f11772d
lea rbp, [rsp + rbp + 8]
mov dword [rbp + rsi - 0x1f458f3a], eax
mov edx, dword [r11 + r8 - 0x5016ea26]
movsx ebp, r8w
and esi, 0xfbb4e230
btr r9d, 0x84
lea r11, [r11 + r8 - 0x5016ea22]
sub word [rsp + r8 - 0x5016ea22], 0x7099
bt bp, r9w
jb 0x1400240ea