joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00406cb0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402810
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004026d0
test eax, eax
je 0x402808
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40286d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402864
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402808
add rdx, 0x28
cmp rdx, r9
jne 0x402850
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4030b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov rdx, qword [0x00405060]
mov rax, qword [0x00405068]
cmp rdx, rax
jne 0x4030d0
add rsp, 0x28
jmp 0x4030f0
lea rcx, [0x00405060]
call fcn.00403560
movzx eax, al
add rsp, 0x28
ret
push rbx
sub rsp, 0x450
mov rcx, qword [rcx + 0x38]
xor r9d, r9d
mov r8d, 0x400
lea rax, [rsp + 0x3c]
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x40317e
lea r10d, [rax - 1]
lea r9, [0x00405060]
xor r8d, r8d
inc rbx
cmp r8, r10
je 0x40317e
mov rcx, r9
call fcn.00403510
test al, al
je 0x403163
lea rcx, str.FIFO_full_
call sub.msvcrt.dll_puts
jmp 0x40317e
movzx edx, byte [rbx + r8]
test dl, dl
jne 0x403171
mov edx, 0x40
mov rcx, r9
call fcn.00403580
inc r8
jmp 0x403144
mov rcx, qword [0x00405060]
mov rdx, qword [0x00405068]
or eax, 0xffffffff
cmp rcx, rdx
je 0x4031a3
lea rcx, [0x00405060]
call fcn.00403560
movzx eax, al
add rsp, 0x450
pop rbx
ret

Function at 0x4030f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov rdx, qword [0x00405060]
mov rax, qword [0x00405068]
cmp rdx, rax
jne 0x4030d0
add rsp, 0x28
jmp 0x4030f0
lea rcx, [0x00405060]
call fcn.00403560
movzx eax, al
add rsp, 0x28
ret
push rbx
sub rsp, 0x450
mov rcx, qword [rcx + 0x38]
xor r9d, r9d
mov r8d, 0x400
lea rax, [rsp + 0x3c]
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x40317e
lea r10d, [rax - 1]
lea r9, [0x00405060]
xor r8d, r8d
inc rbx
cmp r8, r10
je 0x40317e
mov rcx, r9
call fcn.00403510
test al, al
je 0x403163
lea rcx, str.FIFO_full_
call sub.msvcrt.dll_puts
jmp 0x40317e
movzx edx, byte [rbx + r8]
test dl, dl
jne 0x403171
mov edx, 0x40
mov rcx, r9
call fcn.00403580
inc r8
jmp 0x403144
mov rcx, qword [0x00405060]
mov rdx, qword [0x00405068]
or eax, 0xffffffff
cmp rcx, rdx
je 0x4031a3
lea rcx, [0x00405060]
call fcn.00403560
movzx eax, al
add rsp, 0x450
pop rbx
ret
Function at 0x403480
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov rax, rcx
mov ebx, r8d
mov rcx, qword [rcx + 0x38]
add rax, 0x40
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4034b2
cmp ebx, eax
je 0x4034c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str._nError_sending_request__Error_code___d_n
mov edx, eax
call sub.msvcrt.dll_printf
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret

Function at 0x403990
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov r8d, 1
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x3b]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
or edx, 0xffffffff
test eax, eax
je 0x4039d6
cmp dword [rsp + 0x3c], 1
jne 0x4039d6
cmp byte [rsp + 0x3b], 0
jne 0x4039d1
mov byte [rsp + 0x3b], 0x40
movsx edx, byte [rsp + 0x3b]
mov eax, edx
add rsp, 0x48
ret

Function at 0x4039e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x38]
mov ebx, r8d
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403a12
cmp dword [rsp + 0x3c], ebx
je 0x403a21
lea rcx, str.Error_in_writing_on_serial_port
or ebx, 0xffffffff
call sub.msvcrt.dll_puts
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a4f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a4ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a4a0
cmp rcx, 1
jb 0x14000a526
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a4c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000dcac
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a490
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b940
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000d9b0
int3
Function at 0x14000a5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5f5
xor al, al
jmp 0x14000a642
cmp word [rbx], 0
je 0x14000a60d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a600
cmp word [rsp + 0x30], 0
je 0x14000a63b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a663
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a620
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b940
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000d9b0
int3
Function at 0x14000adf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001c1f0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd30]
lea rsi, [0x14002fd70]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae69
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a670
test al, al
je 0x14000af4f
lea rcx, [rsp + 0x20]
call fcn.1400112dc
movsxd r11, dword [0x14002dd30]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd30], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000aea4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae94
add rax, 2
test ecx, ecx
jne 0x14000ae80
test edx, edx
je 0x14000aec7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae74
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aeb0
cmp rax, 2
jne 0x14000aecb
cmp word [rdi + 2], 0x3a
jne 0x14000aecb
mov al, 1
jmp 0x14000af2e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000aef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aef8
mov bl, 1
jmp 0x14000aefc
test bl, bl
je 0x14000af23
cmp dword [0x14002dd30], 0x400
jge 0x14000af23
mov rcx, rdi
call fcn.1400112dc
movsxd rdx, dword [0x14002dd30]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd30], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b940
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac90
int3
Function at 0x14000b070
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd38]
test rcx, rcx
je 0x14000b0ab
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b09e
mov rcx, qword [0x14002dd38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031d88], 0
je 0x14000b19e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025918]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002dd70]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b17f
test al, 0x10
je 0x14000b17f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b125
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000d9a4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d837
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d837
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d837
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d837
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d837
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d837
cmp dword [rcx + 0xf8], 0
je 0x14000d837
mov ecx, ebx
call fcn.14000d8d8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d6c8
cmp dword [rbp + 0x20], 0
je 0x14000d884
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d88c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d7d0
Function at 0x14002bf20
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002bf67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002bf81
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002bf5f
mov qword [rsi], rdi
call fcn.140077d70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002bf97
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140077d70
mov rcx, qword [rsi]
call fcn.140071e10
mov qword [rsi], 0
jmp 0x14002bf4d
int3

Function at 0x14002bfd0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14002bffa
call fcn.140077d70
cmp qword [rsi], r14
je 0x14002c029
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c064
cmp r15, 2
jb 0x14002c021
mov qword [rsi], r14
call fcn.140077d70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002c04e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140077d70
mov rcx, qword [rdi]
call fcn.140071e10
mov qword [rdi], 0
jmp 0x14002c03f
call fcn.140077d70
mov rcx, qword [rsi]
call fcn.140071e10
mov qword [rsi], 0
jmp 0x14002c013
Function at 0x14002c320
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14002c366
mov r14, r12
test r14, r14
je 0x14002c468
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x14002c3c8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14002c3b4
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400aa170
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x14002c342
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14002c48e
lea rcx, [r13*8]
call fcn.1400a721c
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x14002c42e
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x14002c468
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x14002c416
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x14002c44e
add r12, 0xfffffffffffffff8
jne 0x14002c441
jmp 0x14002c47b
test r15, r15
je 0x14002c342
mov rcx, r15
call fcn.1400a7258
mov r14, qword [rsi + 0x10]
jmp 0x14002c342
lea rcx, [0x14014d4c6]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400dbfa0
lea rcx, [0x14014d4c6]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400dbfa0
call fcn.1400dabd0
int3
Function at 0x14002cec0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14014d410]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140077d50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007d050
test esi, esi
js 0x14002cfc6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14007e350
test al, al
jne 0x14002cfcd
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.14007e6b0
lea rcx, [rsp + 0x50]
call fcn.14007d0d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a86d0
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14002cf9b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400fb2a0
jmp 0x14002cf60

Function at 0x14002cff0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14014d410]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xac
call fcn.140077d50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14007d050
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.14007e350
test al, al
jne 0x14002d0cc
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14007e6b0
lea rcx, [rsp + 0x50]
call fcn.14007d0d0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a86d0
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400fb2a0
jmp 0x14002d079
Function at 0x14002d0f0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14014d410]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb9
call fcn.140077d50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007d050
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.14007e350
test al, al
jne 0x14002d218
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002d1df
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002d1df
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14002d214
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.14007e6b0
lea rcx, [rsp + 0x50]
call fcn.14007d0d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a86d0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14002d1df
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1400fb2a0
jmp 0x14002d182
Function at 0x14002d350
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14014d410]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140077d50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007d050
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14002d5bc
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x14002d591
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14002d4b3
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14002d50d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002d5a3
mov rax, r14
inc rax
cmp rax, 2
jb 0x14002d502
mov qword [rsi], r14
call fcn.140077d70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14002d564
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14002d576
test bl, 0xa
je 0x14002d533
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14002d587
lea rcx, [rsp + 0x60]
call fcn.14007d0d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a86d0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002d240
mov dword [rsi + 0x24], eax
jmp 0x14002d539
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14002d533
mov rcx, rdi
call fcn.14002e630
jmp 0x14002d539
bt ebx, 0x15
jb 0x14002d5d8
or r8d, 0x20000000
jmp 0x14002d431
call fcn.140077d70
mov rcx, qword [rsi]
call fcn.140071e10
mov qword [rsi], 0
jmp 0x14002d4ee
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400fab60
jmp 0x14002d539
int3