joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ceee0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov rsi, r8
mov rbp, rcx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x40], rcx
mov rdi, rsi
mov r12, rdx
mov rbx, r9
mov qword [rsp + 0x48], rcx
mov rcx, r9
xor edx, edx
rep stosb byte [rdi], al
mov dword [rsp + 0x34], r8d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x3c], r9d
mov r9d, 0x18
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400cefef
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x1400cefcd
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x1400cefcd
xor edx, edx
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
mov rbp, qword [sym.imp.advapi32.dll_CryptGetHashParam]
mov dword [rsp + 0x20], edx
lea r8, [rsp + 0x34]
mov edx, 4
call rbp
test eax, eax
je 0x1400cefcd
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
cmp rbx, rax
jb 0x1400cefcd
xor eax, eax
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], eax
call rbp
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400cefdd
call qword [sym.imp.advapi32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cefef
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400cf3d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
mov r9, qword [rcx + 0x98]
mov rsi, rcx
mov rbx, rdx
cmp r9, 0xffffffffffffffff
je 0x1400cf4c1
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x3c0]
mov eax, dword [rax + 0x8c]
and eax, 0x800
jne 0x1400cf4c1
lea rbp, [rsp + 0x40]
mov ecx, 0x20
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], pe_nt_image_headers64
mov rdi, rbp
mov rdx, rbp
rep stosd dword [rdi], eax
mov rcx, r9
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400cf466
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, eax
mov esi, eax
call fcn.14008da50
mov r8d, esi
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
jmp 0x1400cf4b8
mov edx, dword [rsp + 0x3c]
lea r9, [rsi + 0x100]
lea r8, [rsi + 0xce]
mov rcx, rbp
call fcn.14006f500
test al, al
jne 0x1400cf4c1
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, dword [rax]
call fcn.14008da50
mov qword [rsp + 0x28], rax
call rsi
mov r9, qword [rsp + 0x28]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, dword [rax]
mov rcx, rbx
call fcn.14007ceb0
nop
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400d2680
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x140
mov r8d, 1
mov rbx, rcx
mov dword [rsp + 0x3c], 1
mov rcx, rdx
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
test rbx, rbx
je 0x1400d2703
test eax, eax
jns 0x1400d2703
test byte [rbx + 0x98e], 0x20
je 0x1400d2703
mov rax, qword [rbx + 0x1188]
test rax, rax
je 0x1400d26d8
cmp dword [rax + 8], 0
jle 0x1400d2703
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov ecx, eax
call fcn.14008da50
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
mov r8, rax
call fcn.140083620
nop
add rsp, 0x140
pop rbx
ret
Function at 0x140006780
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140171d40]
mov esi, edx
mov edi, ecx
cmp byte [rbx + 0x1f75], 0
jne 0x1400067e7
cmp byte [rbx + 0x1f76], 0
jne 0x1400067e7
mov r9d, dword [rbx + 0x3050]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000ecd0
test sil, 1
je 0x140006916
jmp 0x14000687f
movss xmm1, dword [rbx + 0x160c]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1400fd218]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x1400fd20c]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
or dword [rbx + 0x1cf0], 1
mov qword [rbx + 0x1d08], rax
movss dword [rbx + 0x1d00], xmm0
mov dword [rbx + 0x1cf4], 1
movss dword [rbx + 0x1d04], xmm1
movss xmm0, dword [rbx + 0x1668]
mov rax, qword [0x140171d40]
mulss xmm0, dword [0x1400fd1bc]
or dword [rax + 0x1cf0], 0x40
movss dword [rax + 0x1d50], xmm0
mov r9d, dword [rbx + 0x3050]
call fcn.14000ecd0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400068d0
lea r11, [0x1400fb0e0]
nop
cmp r9b, 0x23
jne 0x1400068b3
cmp byte [r8], r9b
jne 0x1400068b3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400068a0
not ecx
call fcn.14000c920
test rax, rax
je 0x140006916
cmp byte [rax + 0x8e], 0
je 0x140006916
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3050]
mov edx, 0x10
mov r9d, dword [rbx + 0x3050]
call fcn.14000ecd0
or edi, 0x20c0347
lea rcx, [rsp + 0x20]
mov r8d, edi
xor edx, edx
call fcn.140003460
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f2dc0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14005b8a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x14005b906
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x14005b8d6
cmp byte [rax], cl
jne 0x14005b902
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x14005b8c7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x90
pop rbx
ret
movzx ecx, byte [r8]
cmp cl, 0x25
jne 0x14005b8e6
cmp byte [r8 + 1], cl
je 0x14005b8e6
lea r11, [rsp + 0x20]
mov r9, r8
movzx edx, cl
nop dword [rax]
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14005b93d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14005b965
sub dl, 0x61
cmp dl, 0x19
ja 0x14005b957
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14005b965
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14005b920
jmp 0x14005b968
inc r9
cmp r8, r9
jae 0x14005b99f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14005b994
bt rdx, rax
jb 0x14005b99a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14005b980
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.14000ecd0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14005b9d8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x14005b9d0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14005ba5b
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14005b9fa
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x14005ba08
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x14005ba46
movss xmm2, dword [0x1400fd210]
nop
cmp al, 0x39
ja 0x14005ba46
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x14005ba20
cmp r9b, 0x2d
jne 0x14005ba68
xorps xmm1, xmmword [0x1400fd2c0]
movaps xmm0, xmm1
jmp 0x14005b8e9
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14005b8e9
Function at 0x14005ba70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x14005bad6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x14005baa6
cmp byte [rax], cl
jne 0x14005bad2
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x14005ba97
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x90
pop rbx
ret
movzx ecx, byte [r8]
cmp cl, 0x25
jne 0x14005bab6
cmp byte [r8 + 1], cl
je 0x14005bab6
lea r11, [rsp + 0x20]
mov r9, r8
movzx edx, cl
nop dword [rax]
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14005bb0d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14005bb35
sub dl, 0x61
cmp dl, 0x19
ja 0x14005bb27
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14005bb35
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14005baf0
jmp 0x14005bb38
inc r9
cmp r8, r9
jae 0x14005bb6f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14005bb64
bt rdx, rax
jb 0x14005bb6a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14005bb50
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14000ecd0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14005bba8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14005bba0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14005bc29
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14005bbca
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x14005bbd8
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x14005bc14
movsd xmm2, qword [0x14010fd00]
nop
cmp al, 0x39
ja 0x14005bc14
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14005bbf0
cmp r9b, 0x2d
jne 0x14005bc32
xorps xmm1, xmmword [0x14010fd90]
movaps xmm0, xmm1
jmp 0x14005bab9
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14005bab9
Function at 0x140081dc0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x58]
mov ecx, dword [0x14017fb00]
mov r8d, 0x14
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x140175f98], eax
jg 0x140081e91
lea rcx, [0x140175f80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [0x140175f80]
cvtsi2sd xmm0, qword [0x1401772b0]
mulsd xmm1, qword [0x140111a58]
divsd xmm1, xmm0
subsd xmm1, qword [0x140175f90]
divsd xmm1, qword [0x140111a50]
cvtpd2ps xmm0, xmm1
add rsp, 0x28
ret
lea rcx, [0x140175f80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm1, xmm1
lea rcx, [0x140175f98]
cvtsi2sd xmm1, qword [0x140175f80]
xorps xmm0, xmm0
mulsd xmm1, qword [0x140111a58]
cvtsi2sd xmm0, qword [0x1401772b0]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
unpcklpd xmm1, xmm1
movups xmmword [0x140175f88], xmm1
call fcn.1400f3158
jmp 0x140081ded
lea rcx, [0x140175f98]
call fcn.1400f31b8
cmp dword [0x140175f98], 0xffffffff
jne 0x140081ded
cmp qword [0x1401772b0], 0
jne 0x140081e37
lea rcx, [0x1401772b0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x140081e37

Function at 0x14008a7f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14008a8c3
cmp byte [rcx + 0x71], 0
je 0x14008a8c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14008a8bf
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 0x14008a884
sub eax, 1
je 0x14008a888
cmp eax, 2
jne 0x14008a8bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14008a8b6
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 0x14008a8bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14008a86c
xor al, al
jmp 0x14008a86c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x60
pop rbx
ret
Function at 0x14008c540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14008c56d
xor eax, eax
jmp 0x14008c6c2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14008c598
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14008c598
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], dil
mov eax, edi
jmp 0x14008c6c2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14008c6b5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14008c5db
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14008c606
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 0x14008c6ba
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x14008c675
sub eax, 1
je 0x14008c675
cmp eax, 2
jne 0x14008c6b5
movsx ecx, byte [rsp + 0x40]
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 0x14008c6ba
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14008c6a3
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 0x14008c6b5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14008c6ba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f2dc0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400a4150
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx esi, r8b
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
cmp edx, 1
jne 0x1400a418a
test r8b, r8b
je 0x1400a41c9
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x28], 0x706c6568
mov byte [rsp + 0x2c], bl
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x28]
call fcn.1400a5030
test al, al
jne 0x1400a41c9
xor dil, dil
jmp 0x1400a41cc
mov dil, 1
test bl, 1
je 0x1400a4211
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400a4211
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a420c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a420c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2d28
test dil, dil
je 0x1400a4247
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1400aa6a0
nop
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140081ed0
nop
lea rcx, [rsp + 0x28]
call fcn.14007cb10
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test sil, sil
jne 0x1400a42b6
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.1400aa6a0
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1400a4ef0
nop
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140081ed0
mov rcx, rax
lea rdx, [0x140091710]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
call fcn.140081ed0
nop
lea rcx, [rsp + 0x28]
call fcn.14007cb10
nop
lea rcx, [rsp + 0x48]
call fcn.14007cb10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f2dc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400a5110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rdx, [rsp + 0x20]
call fcn.14008f160
cmp qword [rax + 0x18], 8
jb 0x1400a513c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne bl
cmp rdx, 8
jb 0x1400a5190
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a518b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a518b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2d28
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x50
pop rbx
ret
Function at 0x1400b20d0
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400b35f0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rbx, rdx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi + 0x88]
nop
mov rcx, qword [rsp + 0x20]
mov rax, rcx
sub rax, r8
cmp rax, 0x3c
jl 0x1400b37d7
xchg qword [rdi + 0x88], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rbp + 0x30], eax
lea r9, [rbp + 0x10]
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x64
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
lea rax, [rbp + 0x260]
mov qword [rbp - 0x20], rax
lea rdx, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x1400b36c5
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x18]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b36de
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], 0xbba
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, str.__LOG_ERROR__________n
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x21
xor ecx, ecx
mov qword [rbp + 0x50], rcx
lea rbx, vtable.fmt::v5::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp + 0x40], rbx
lea rax, [rbp + 0x60]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x58], 0x1f4
movaps xmm2, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x80], xmm2
mov dword [rbp - 0x70], ecx
lea rax, [rbp + 0x40]
mov qword [rbp - 0x68], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x40], ecx
mov dword [rbp - 0x38], ecx
mov dword [rbp - 0x28], ecx
movdqa xmmword [rsp + 0x30], xmm2
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140086330
nop
mov rcx, qword [rbp - 0x48]
call fcn.1400f2d28
mov r9, rsi
mov r8, qword [rbp + 0x50]
mov edx, 1
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop
mov qword [rbp + 0x40], rbx
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x1400b37d7
mov rdx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b37d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b37d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f2d28
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400f2dc0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret