joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010d0
Capabilities:
Create process on windows
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, qword [rsp + 0x4b0]
mov rdi, r8
mov rbx, rdx
mov byte [rsp + 0x40], r9b
mov rsi, rcx
xor r14d, r14d
xor edx, edx
mov word [rsp + 0x50], r14w
mov r8d, 0x1fe
lea rcx, [rsp + 0x52]
call sub.VCRUNTIME140.dll_memset
lea rax, str._it_
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x38], rax
lea r9, str.USB_Host_Mode_is_currently
lea rax, str.._Do_you_wish_to
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r8, str._ls_ls_ls_ls_ls
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.140001070
lea r9d, [r14 + 0x24]
xor ecx, ecx
lea r8, str.USB_Host_Mode_Control_V7.0___Native_
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x140001261
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea r9d, [r14 + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.RoleSwitchMode
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov word [rsp + 0x250], r14w
mov r8d, 0x1fe
mov dword [0x140005690], eax
lea rcx, [rsp + 0x252]
call sub.VCRUNTIME140.dll_memset
lea r9, str._restart_device
mov qword [rsp + 0x20], rbp
lea r8, str._ls_ls
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x250]
call fcn.140001070
lea r9, [rsp + 0x250]
mov dword [rsp + 0x28], r14d
lea r8, str.pnputil.exe
mov qword [rsp + 0x20], r14
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rax, [0x14000342c]
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea r9, str.USB_Host_Mode_sucessfully
lea r8, str._ls_ls_ls
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
call fcn.140001070
lea r9d, [r14 + 0x40]
xor ecx, ecx
lea r8, str.USB_Host_Mode_Control_V7.0___Native_
lea rdx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001760
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401fc600
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401fc60d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401fc61d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401fc605
lea eax, [rcx + 1]
jmp 0x1401fc62b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401fc63e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401fc624
sub eax, 3
jb 0x1401fc65e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401fc6ad
sar eax, 1
movsxd rbp, eax
jb 0x1401fc694
jmp 0x1401fc66c
add ebx, ebx
jne 0x1401fc66a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401fc694
inc ecx
add ebx, ebx
jne 0x1401fc67a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401fc694
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401fc68d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401fc67c
add ecx, 2
jmp 0x1401fc699
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401fc5c2
jmp 0x1401fc60d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xdce00
mov dl, 0x24
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401fc6f9
cmp rsi, rcx
jae 0x1401fc701
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401fc6e0
cmp al, 0x8f
ja 0x1401fc6e0
cmp byte [rsi - 2], 0xf
je 0x1401fc6e6
sub al, 0xe8
cmp al, 1
ja 0x1401fc6ca
cmp rsi, rcx
jae 0x1401fc701
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401fc6d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401fc701
lodsb al, byte [rsi]
jmp 0x1401fc6e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f9000]
mov eax, dword [rdi]
or eax, eax
je 0x1401fc76a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x208bd8]
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 0x1401fc70e
jns 0x1401fc743
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401fc74d
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 0x1401fc764
mov qword [rbx], rax
add rbx, 8
jmp 0x1401fc72e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x21f]
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 0x1401fc7c2
sub rsp, 0xffffffffffffff80
jmp 0x1400cc550
Function at 0x1400015f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
mov r9, rcx
mov rbx, rdx
test rcx, rcx
je 0x140001673
test rdx, rdx
je 0x140001673
mov qword [rcx], 0
xor eax, eax
nop word [rax + rax]
mov byte [r9 + rax + 8], al
add rax, 1
cmp rax, 0x100
jne 0x140001610
xor ecx, ecx
xor r10d, r10d
nop word cs:[rax + rax]
mov rax, rcx
xor edx, edx
movzx r11d, byte [r9 + rcx + 8]
div r8
movsx eax, byte [rbx + rdx]
movzx edx, r11b
add eax, edx
add r10d, eax
movzx eax, r10b
movzx edx, byte [r9 + rax + 8]
mov r10, rax
mov byte [r9 + rcx + 8], dl
add rcx, 1
mov byte [r9 + rax + 8], r11b
cmp rcx, 0x100
jne 0x140001630
xor eax, eax
pop rbx
ret
mov eax, 0x57
pop rbx
ret

Function at 0x140001680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rdi
push rsi
push rbx
mov r10d, dword [rcx]
mov rsi, rcx
mov rbx, rdx
mov ecx, dword [rcx + 4]
lea rdi, [rsi + 8]
test r9, r9
je 0x1400016ef
nop word [rax + rax]
add r10d, 1
movzx edx, r10b
mov r10, rdx
add rdx, rdi
movzx eax, byte [rdx]
add ecx, eax
movzx r11d, cl
mov rcx, r11
add r11, rdi
movzx r14d, byte [r11]
mov byte [rdx], r14b
mov byte [r11], al
test rbx, rbx
je 0x1400016e9
test r8, r8
je 0x1400016e9
add al, byte [rdx]
add rbx, 1
add r8, 1
movzx eax, al
movzx eax, byte [rdi + rax]
xor al, byte [rbx - 1]
mov byte [r8 - 1], al
sub r9, 1
jne 0x1400016a0
mov dword [rsi], r10d
mov dword [rsi + 4], ecx
pop rbx
pop rsi
pop rdi
pop r14
ret

Function at 0x1400017d0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rdx]
mov rsi, rcx
mov rcx, r8
mov edi, r9d
mov rbx, rdx
mov r8, qword [rsi]
lea r9, [rax + 1]
test r8, r8
je 0x140001820
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140001833
mov rdx, qword [rbx]
lea rcx, [rdx + 1]
mov qword [rbx], rcx
mov byte [rax + rdx], dil
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov r8, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi], rax
jmp 0x140001800
lea rcx, str.Allocation_error
call sub.msvcrt.dll_perror
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001aa0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov qword [rsp + 0x40], rdx
mov r13, rcx
mov r12, r9
mov edx, 1
mov qword [rsp + 0x48], r8
xor r9d, r9d
xor r8d, r8d
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:109.0__Gecko_20100101_Firefox_116.0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140001c9c
mov rdx, r13
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r13, rax
test rax, rax
je 0x140001c90
mov rbp, qword [sym.imp.WININET.dll_InternetReadFile]
xor ebx, ebx
xor esi, esi
lea rdi, [rsp + 0x60]
lea r14, [rsp + 0x5c]
jmp 0x140001b75
lea r9, [r8 + rbx]
xor edx, edx
mov r8, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r15, rax
test r15, r15
je 0x140001bac
mov r8d, dword [rsp + 0x5c]
lea rcx, [r15 + rbx]
mov rdx, rdi
mov rsi, r15
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x5c]
add rbx, rax
mov r9, r14
mov r8d, 0x3ff
mov rdx, rdi
mov rcx, r13
call rbp
test eax, eax
je 0x140001be0
mov r8d, dword [rsp + 0x5c]
test r8d, r8d
je 0x140001be0
test rsi, rsi
jne 0x140001b40
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test r15, r15
jne 0x140001b5a
test rsi, rsi
je 0x140001bbf
mov r8, rsi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call rbx
mov rcx, qword [rsp + 0x38]
call rbx
mov eax, 8
jmp 0x140001c78
lea r9, [rbx + 1]
mov r8, rsi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdi, rax
test rax, rax
je 0x140001bac
mov byte [rax + rbx], 0
mov rbp, qword [rsp + 0x40]
mov r14, rax
lea rsi, str._path_d_M
mov r15, qword [rsp + 0x48]
jmp 0x140001c40
mov byte [rbx], 0
mov rdx, rsi
mov rcx, r14
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140001c3c
mov r9, r12
mov r8, r15
mov rdx, rbp
mov rcx, r14
call fcn.140001850
lea r14, [rbx + 1]
mov edx, 0xa
mov rcx, r14
call sub.msvcrt.dll_strchr
mov rbx, rax
test rax, rax
jne 0x140001c18
mov r8, rdi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call rbx
mov rcx, qword [rsp + 0x38]
call rbx
xor eax, eax
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140001fb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.140007f80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007f80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140002020
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000d0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400021d0
mov rax, qword [0x14000d0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000206c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400020f7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140002050
mov rcx, r12
call fcn.140002ad0
mov rbp, rax
test rax, rax
je 0x14000222d
mov rax, qword [0x14000d0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002c00
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000d0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002212
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400020f0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002180
add dword [0x14000d0a4], 1
cmp ebx, 8
jae 0x140002128
test bl, 4
jne 0x1400021e0
test ebx, ebx
je 0x140002119
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002200
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002119
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000215a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000d0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400020f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001fb0
xor edi, edi
jmp 0x140002077
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002119
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002119
mov rax, qword [0x14000d0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001fb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001fb0
nop
nop dword [rax]
Function at 0x140002740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000d100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140002794
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000278b
test r12, r12
je 0x14000278b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002770
lea rcx, [0x14000d100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000a860]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002b49
mov rcx, r10
call fcn.1400029a0
test eax, eax
je 0x140002b49
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002b46
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140002b3d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002b49
add r8, 0x28
cmp r8, r9
jne 0x140002b28
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180029440
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 0x180029468
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 0x18002948e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180029490
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800294e9
test ecx, ecx
jle 0x1800294c9
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 0x1800294e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800294e9
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 0x180029510
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 0x180029532
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180029548
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 0x180029564
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180029566
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800295a2
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 0x18002963e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800295dd
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 0x18002961e
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 0x18002963e
cmp rbx, rax
ja 0x1800295f0
test rbx, rbx
je 0x18002963e
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 0x180029aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800b0280]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180029acd
xor eax, eax
jmp 0x180029c39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180029b07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180029b07
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 0x180029c39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180029c2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180029b4a
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 0x180029b75
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 0x180029c31
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 0x180029be4
sub eax, 1
je 0x180029be4
cmp eax, 2
jne 0x180029c2c
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 0x180029c31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180029c12
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 0x180029c2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180029c31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180080b80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18002abc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800b0280]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18002ac93
cmp byte [rcx + 0x71], 0
je 0x18002ac93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18002ac8f
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 0x18002ac54
sub eax, 1
je 0x18002ac58
cmp eax, 2
jne 0x18002ac8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180080b80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18002ac86
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 0x18002ac8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18002ac3c
xor al, al
jmp 0x18002ac3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180080b80
add rsp, 0x60
pop rbx
ret