joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001eea0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.18000fb10
nop
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.180021250
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret

Function at 0x18001f1e0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor edx, edx
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
div dword [rcx + 0x10]
mov eax, edx
mov ecx, dword [rsp + 0x68]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x68]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov edx, 6
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 0x20
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180021340
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
add rsp, 0x58
ret

Function at 0x180023430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x278
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x180052020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rcx, qword [rsp + 0x288]
call fcn.180024ef0
mov r9d, 1
mov r8d, dword [rsp + 0x280]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180023495
mov eax, 1
jmp 0x1800234d2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.18000fa50
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x288]
call fcn.180010260
nop
lea rcx, [rsp + 0x38]
call fcn.1800100b0
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180026740
add rsp, 0x278
ret
Function at 0x180023730
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x860
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x180052020]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov dword [rsp + 0x30], 0
movzx eax, word [0x180041290]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x878]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x50]
lea r8, [0x180041290]
mov rdx, qword [rsp + 0x888]
mov rcx, qword [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.18000fa50
nop
lea r8, [0x1800420c4]
lea rdx, [0x180044888]
lea rcx, [rsp + 0x38]
call fcn.180025440
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x870]
call fcn.18000f950
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x38]
call fcn.1800100b0
mov rax, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180026740
add rsp, 0x860
pop rdi
ret

Function at 0x180023ee0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x60]
call fcn.18000fb10
nop
mov rcx, qword [rsp + 0x88]
call fcn.1800105d0
xor edx, edx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180024021
mov rcx, qword [rsp + 0x88]
call fcn.1800105d0
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180024021
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
lea rdx, [0x1800412b4]
mov rcx, qword [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x10]
shr rax, 0x10
and rax, 0xffff
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x10]
and rax, 0xffff
mov word [rsp + 0x38], ax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
shr rax, 0x10
and rax, 0xffff
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
and rax, 0xffff
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x34]
movzx edx, word [rsp + 0x38]
movzx r8d, word [rsp + 0x3c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea rdx, str._u._u._u._u
lea rcx, [rsp + 0x60]
call fcn.1800112b0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
call fcn.18000f950
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x60]
call fcn.1800100b0
nop
mov rcx, qword [rsp + 0x88]
call fcn.1800100b0
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x180024080
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x60], 0xfffffffffffffffe
lea rcx, [rsp + 0x28]
call fcn.18000fb10
nop
xor r8d, r8d
mov dx, 0x3a
mov rcx, qword [rsp + 0x80]
call fcn.180024f40
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x1800240c7
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
mov dx, 0x5c
mov rcx, qword [rsp + 0x80]
call fcn.180024f40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x180024104
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.180010260
jmp 0x180024144
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.1800120e0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.180010260
nop
lea rcx, [rsp + 0x58]
call fcn.1800100b0
lea rcx, [rsp + 0x28]
call fcn.1800105d0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18002419a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18002419a
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x28]
call fcn.1800100b0
nop
mov rcx, qword [rsp + 0x80]
call fcn.1800100b0
mov eax, dword [rsp + 0x34]
jmp 0x18002421e
lea rcx, [rsp + 0x28]
call fcn.1800105d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 0x10
test eax, eax
jne 0x1800241e2
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x28]
call fcn.1800100b0
nop
mov rcx, qword [rsp + 0x80]
call fcn.1800100b0
mov eax, dword [rsp + 0x3c]
jmp 0x18002421e
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1800241eb
jmp 0x1800241fa
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1800240cf
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x28]
call fcn.1800100b0
nop
mov rcx, qword [rsp + 0x80]
call fcn.1800100b0
mov eax, dword [rsp + 0x40]
add rsp, 0x78
ret
Function at 0x180025130
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x78], 0
je 0x18002515a
mov dword [rsp + 0x34], 1
jmp 0x180025162
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x18002516a
cmp dword [rsp + 0x40], 0
jne 0x180025181
mov ecx, 0x80004005
call fcn.180010e80
xor eax, eax
test eax, eax
jne 0x180025148
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x18002533b
cmp qword [rsp + 0x68], 0
je 0x18002533b
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jbe 0x180025327
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jbe 0x18002530a
cmp dword [rsp + 0x30], 2
jbe 0x18002520d
cmp dword [rsp + 0x30], 7
je 0x180025268
jmp 0x18002530a
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x180025245
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
je 0x180025263
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax], cx
mov eax, 0xd
jmp 0x18002533f
jmp 0x180025325
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x1800252ed
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
cmp rax, 1
jb 0x1800252ed
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
jne 0x1800252ed
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
cmp rax, 1
jbe 0x180025308
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2 - 4]
test eax, eax
je 0x180025308
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax], cx
mov eax, 0xd
jmp 0x18002533f
jmp 0x180025325
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax], cx
mov eax, 0xd
jmp 0x18002533f
jmp 0x18002533b
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax], cx
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
ret
Function at 0x140007110
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 0x140007138
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 0x14000715e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007160
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400071b9
test ecx, ecx
jle 0x140007199
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 0x1400071b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400071b9
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

Function at 0x1400071e0
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 0x140007202
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007218
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 0x140007234
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007236
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007272
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 0x14000730e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400072ad
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 0x1400072ee
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 0x14000730e
cmp rbx, rax
ja 0x1400072c0
test rbx, rbx
je 0x14000730e
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
Function at 0x140007780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400930c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400077ad
xor eax, eax
jmp 0x140007919
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400077e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400077e7
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 0x140007919
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000790c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000782a
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 0x140007855
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 0x140007911
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 0x1400078c4
sub eax, 1
je 0x1400078c4
cmp eax, 2
jne 0x14000790c
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 0x140007911
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400078f2
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 0x14000790c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007911
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140072350
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008a70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400930c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008b43
cmp byte [rcx + 0x71], 0
je 0x140008b43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140008b3f
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 0x140008b04
sub eax, 1
je 0x140008b08
cmp eax, 2
jne 0x140008b3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072350
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008b36
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 0x140008b3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140008aec
xor al, al
jmp 0x140008aec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072350
add rsp, 0x60
pop rbx
ret
Function at 0x14000a730
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400930c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, r8
mov rbx, rdx
mov r15, rcx
mov rdx, qword [rcx]
mov r14, rbx
sub r14, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x14000a97e
lea r8, [rax + 1]
mov qword [rsp + 0x48], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
ja 0x14000a978
lea rax, [rdx + rcx]
mov rsi, r8
cmp rax, r8
cmovae rsi, rax
cmp rsi, r9
ja 0x14000a978
mov rcx, rsi
shl rcx, 4
mov qword [rsp + 0x38], rsi
cmp rcx, 0x1000
jb 0x14000a80a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000a978
mov rcx, rax
call fcn.140072370
test rax, rax
je 0x14000a803
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000a82a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000a823
call fcn.140072370
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
jmp 0x14000a82f
xor edi, edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
and r14, 0xfffffffffffffff0
lea r13, [r14 + rdi]
lea r14, [r13 + 0x10]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x30], r14
mov ecx, reloc.WS2_32.dll_recv
call fcn.140072370
mov r9, rax
mov rax, qword [r12]
mov qword [r9], rax
mov rax, qword [r12 + 8]
mov qword [r9 + 8], rax
mov qword [rsp + 0x58], r9
lea r12, [r13 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
lea r8, [0x14000b9c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x14000a964
mov qword [rsp + 0x30], r13
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
cmp rbx, rdx
jne 0x14000a8ca
cmp rax, rdx
je 0x14000a927
mov rcx, rdi
sub rcx, rax
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rdx
jne 0x14000a8b2
jmp 0x14000a927
cmp rax, rbx
je 0x14000a8f6
mov rcx, rdi
sub rcx, rax
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rbx
jne 0x14000a8e0
mov qword [rsp + 0x30], rdi
mov rax, qword [r15 + 8]
cmp rbx, rax
je 0x14000a927
sub r14, rbx
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [r14 + rbx], xmm1
add rbx, 0x10
cmp rbx, rax
jne 0x14000a910
mov r9, rsi
mov r8, qword [rsp + 0x48]
mov rdx, rdi
mov rcx, r15
call fcn.14000b230
mov rax, r13
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140072350
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [r12], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140001a10
int3
call fcn.140008a50
int3
Function at 0x14000a990
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400930c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov r15, rcx
mov rdx, qword [rcx]
mov r14, rbx
sub r14, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x14000abce
lea r8, [rax + 1]
mov qword [rsp + 0x48], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
ja 0x14000abc8
lea rax, [rdx + rcx]
mov rsi, r8
cmp rax, r8
cmovae rsi, rax
cmp rsi, r9
ja 0x14000abc8
mov rcx, rsi
shl rcx, 4
mov qword [rsp + 0x38], rsi
cmp rcx, 0x1000
jb 0x14000aa67
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000abc8
mov rcx, rax
call fcn.140072370
test rax, rax
je 0x14000aa60
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000aa87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000aa80
call fcn.140072370
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
jmp 0x14000aa8c
xor edi, edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
and r14, 0xfffffffffffffff0
lea r13, [r14 + rdi]
lea r14, [r13 + 0x10]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x30], r14
mov ecx, 8
call fcn.140072370
lea rcx, [0x140004f70]
mov qword [rax], rcx
mov qword [rsp + 0x58], rax
lea r12, [r13 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000b9f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x14000abb4
mov qword [rsp + 0x30], r13
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
cmp rbx, rdx
jne 0x14000ab28
cmp rax, rdx
je 0x14000ab77
mov rcx, rdi
sub rcx, rax
nop dword [rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rdx
jne 0x14000ab10
jmp 0x14000ab77
cmp rax, rbx
je 0x14000ab49
mov rcx, rdi
sub rcx, rax
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rbx
jne 0x14000ab33
mov qword [rsp + 0x30], rdi
mov rax, qword [r15 + 8]
cmp rbx, rax
je 0x14000ab77
sub r14, rbx
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [r14 + rbx], xmm1
add rbx, 0x10
cmp rbx, rax
jne 0x14000ab60
mov r9, rsi
mov r8, qword [rsp + 0x48]
mov rdx, rdi
mov rcx, r15
call fcn.14000b230
mov rax, r13
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140072350
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [r12], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140001a10
int3
call fcn.140008a50
int3