joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407060
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x407162
lea rsi, [rsp + 0x30]
mov r9, rdi
mov edx, 0x1000
mov dword [rsp + 0x20], 0x5c
lea r8, str._s_c
mov rcx, rsi
mov ebp, 0x1000
call fcn.00407040
mov edx, 0x5c
mov rcx, rbx
movsxd rdi, eax
call sub.msvcrt.dll_strchr
sub rbp, rdi
add rdi, rsi
test rax, rax
mov r15, rax
je 0x407170
lea r12, [0x00411e05]
lea r13, [rsp + 0x1030]
jmp 0x407118
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
test rax, rax
mov r15, rax
je 0x407170
mov r9d, r15d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rbx
sub r9d, ebx
mov rcx, rdi
call fcn.00407040
mov rcx, rsi
call fcn.00403cf0
test eax, eax
jne 0x407102
mov r8d, 0x1000
mov rdx, r13
mov rcx, rsi
call fcn.00408600
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407102
mov eax, 0xffffffff
jmp 0x407172
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x407190
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
mov rsi, rdx
lea rdx, [0x00411e0a]
call fcn.00403d30
test rax, rax
mov rbx, rax
je 0x40727b
lea rdx, [0x00411e0d]
mov rcx, rsi
call fcn.00403d30
test rax, rax
mov rsi, rax
je 0x407282
lea rdi, [rsp + 0x20]
jmp 0x40721f
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
test rax, rax
mov r8, rax
je 0x407260
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x407250
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x407250
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
je 0x4071e0
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
mov edi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x40722d
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x40722b
mov rcx, rbx
mov edi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x40722d
mov edi, 0xffffffff
jmp 0x40723d
mov rcx, rbx
mov edi, 0xffffffff
call sub.msvcrt.dll_fclose
jmp 0x40723d
Function at 0x4072a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rsi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4073a2
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.0040e6a0
test eax, eax
js 0x4073a2
mov rcx, r12
call fcn.0040eb90
movsxd rdi, eax
cmp rdi, rsi
jb 0x4073a2
lea rax, [rsi - 1]
mov qword [rsp + 0x28], rax
cmp rdi, 0x2000
mov r14d, 0x2000
cmovae r14, rdi
lea r13, [r14 - 0x2000]
sub rdi, r13
cmp rsi, rdi
ja 0x4073a2
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.0040e6a0
test eax, eax
js 0x4073a2
mov r9, r12
mov r8, rdi
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
cmp rax, rdi
jne 0x4073a2
sub rax, rsi
add rax, 1
mov rdi, rax
jne 0x407368
jmp 0x407390
test r15, r15
mov rdi, r15
je 0x407390
lea r15, [rdi - 1]
mov r8, rsi
mov rdx, rbp
lea rcx, [rbx + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x407360
lea rsi, [r14 + rdi - 0x2001]
jmp 0x4073a4
mov rax, qword [rsp + 0x28]
test r13, r13
lea rdi, [rax + r13]
jne 0x407304
xor esi, esi
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x4073c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
mov r14, qword [sym.imp.msvcrt.dll__snwprintf]
lea r13, [rsp + 0x280]
mov r9, rcx
mov r15, rcx
mov rcx, r13
call r14
cmp eax, 0xfff
jg 0x407528
lea rdi, [rsp + 0x30]
mov r12d, 0x1000
mov rcx, r13
lea ebx, [rax - 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub r12d, ebx
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x407528
movsxd rax, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rax, [r13 + rax*2]
mov qword [rsp + 0x20], rax
lea rbx, [rdi + 0x2c]
movsxd rax, r12d
mov qword [rsp + 0x28], rax
lea rdx, [0x00411e2a]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4074c0
lea rdx, [0x00411e2e]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4074c0
lea r8, [0x00411e34]
mov r9, rbx
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call r14
cmp eax, r12d
jge 0x4074c0
mov eax, dword [rsp + 0x30]
mov rcx, r13
test al, 0x10
je 0x407500
test ah, 4
je 0x4074b1
cmp dword [rsp + 0x54], 0xa000000c
je 0x407520
call fcn.004073c0
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rsi
call rbp
test eax, eax
jne 0x407455
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rdi
mov rcx, rsi
call rbp
test eax, eax
jne 0x407455
jmp 0x4074cc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4074c0
mov eax, 0xffffffff
jmp 0x4074e9
Function at 0x407830
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.0040ddf0
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.00408600
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x4078a5
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x4078a5
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.00408510
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x408360
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x4083ae
mov edi, dword [rsp + 0x3c]
test edi, edi
jne 0x4083c2
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, edi
mov edx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbp, rax
je 0x4083ae
mov r9, rbx
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x408410
mov rcx, rbp
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
lea r14, [rsp + 0x2040]
mov r8d, 0x1000
lea rcx, [r12 + 0x2022]
mov rdx, r14
call fcn.00408600
test rax, rax
je 0x4083eb
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
test eax, eax
je 0x4083eb
sub eax, 1
mov rbx, rbp
mov r15, rbp
lea r12, [rbp + rax*8 + 8]
xor r13d, r13d
lea rdi, [rsp + 0x40]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rdi
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x40849d
mov r8, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x40849d
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rbp + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x408461
test r13d, r13d
je 0x4083eb
lea eax, [r13 - 1]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r14, [rbp + rax*8 + 8]
jmp 0x4084ce
add rbx, 8
cmp rbx, r14
je 0x4083eb
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rdi
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x4084c1
xor r12d, r12d
jmp 0x4084f4
test eax, eax
je 0x4084c1
add r12d, 1
mov rcx, qword [rbx]
call r13
cmp r12d, 0x20
jne 0x4084f0
jmp 0x4084c1
Function at 0x408cd0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov eax, 0x80000000
test ecx, ecx
je 0x408d45
lea rsi, [0x00412440]
mov ebx, 3
jmp 0x408cf7
add ebx, 1
sar ecx, 1
je 0x408d45
test cl, 1
je 0x408cf0
mov edx, ebx
mov r8d, 0x80000000
and edx, 0x1f
mov r11d, dword [rsi + rdx*4]
mov edx, eax
xor eax, eax
jmp 0x408d2e
mov r10d, edx
shr edx, 1
mov r9d, edx
and r10d, 1
shr r8d, 1
xor r9d, 0xedb88320
test r10d, r10d
cmovne edx, r9d
test r11d, r8d
je 0x408d11
lea r9d, [r8 - 1]
xor eax, edx
test r9d, r11d
jne 0x408d11
add ebx, 1
sar ecx, 1
jne 0x408cf7
pop rbx
pop rsi
ret
Function at 0x40ce90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0041c924]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40d018
mov rax, qword [0x0041c928]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40cedc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40cf65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40cec0
mov rcx, rbx
call fcn.0040db30
test rax, rax
mov r12, rax
je 0x40d04d
mov rax, qword [0x0041c928]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040dc60
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041c928]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d030
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40cf5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40cfc0
add dword [0x0041c924], 1
cmp edi, 8
jae 0x40cf93
test dil, 4
jne 0x40d004
test edi, edi
je 0x40cf88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40d01f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40cf88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40cfac
jmp 0x40cf88
add rsi, qword [0x0041c928]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40cf5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ef00
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40cf88
xor esi, esi
jmp 0x40cee7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40cf88
mov rax, qword [0x0041c928]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040ef00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040ef00
nop
nop dword [rax]

Function at 0x40d7a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041cc00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041cbe0]
test rbx, rbx
je 0x40d7f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40d7eb
test rsi, rsi
je 0x40d7eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d7d0
lea rcx, [0x0041cc00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40db30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00415ee0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40db9d
mov rcx, r8
call fcn.0040da10
test eax, eax
je 0x40db9d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40db9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40db94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40db9f
add rax, 0x28
cmp rax, r9
jne 0x40db80
xor eax, eax
add rsp, 0x28
ret

Function at 0x40ef00
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401560]
jmp 0x401530
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0040ee10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040ee10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401550
Function at 0x140d2618b
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
jmp 0x140dbc9a9
movabs rdx, 0
sub r10, rdx
shl r11b, 0x80
cmovo r8d, r9d
mov r11, rsi
lea r8, [0x140cdc180]
setne r11b
mov r11d, dword [rdi]
add rdi, 4
cmp r13b, spl
cmc
xor r11d, r10d
xor r11d, 0x238418c
dec r11d
rol r11d, 1
jmp 0x140d83ed3
jmp r8
push r12
jmp 0x140ca0d7e
add r11d, 0x504f1868
cmp rsp, rdi
push r10
rol r10w, 0xd
xor dword [rsp], r11d
cmp r15w, 0x2cf1
pop r10
test r11b, 0xf
stc
test r13b, dil
movsxd r11, r11d
test r14d, 0x11b8632b
test r8w, r9w
add r8, r11
jmp 0x140d0aace
push r9
xchg r9w, r9w
push rbx
movsxd r9, ebp
movzx r9d, bp
push rdi
movzx r9d, r14w
not r9b
push r10
xchg r10b, dil
not di
sete dil
push r11
seta dil
push rax
not r11
push rcx
xchg r11w, r9w
cwde
push r15
cdqe
push r13
xchg r10b, r11b
cdqe
push rbp
not r10w
mov r11w, 0x7d5d
push rdx
movsxd rax, edx
not di
pushfq
lahf
cdq
cmovb eax, edx
push r14
rdtsc
push r8
cwde
movabs rbp, 0
cwd
push rbp
movzx r10d, r9w
cbw
mov rdi, qword [rsp + 0x90]
dec r10b
inc edi
rdtsc
ror edi, 3
bsf dx, si
add r10, rdx
bswap edi
add r11w, r13w
cmp rdx, 0x4846429d
neg edi
rol edi, 2
sal r11b, 0x8a
lea rdi, [rdi + rbp]
movsxd r9, ecx
movabs rax, 0x100000000
or r11d, 0xff8597e
dec r8b
rcr rdx, 0x88
add rdi, rax
sbb r11b, spl
mov r9, rsp
sub rsp, 0x180
btr r10d, 0x15
adc r8w, dx
and rsp, 0xfffffffffffffff0
mov r10, rdi
shl r11b, 0xa
jmp 0x140cdc168
Function at 0x140003de0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, rcx
mov ebx, edx
mov ecx, 0x200010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140003e28
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rdi
lea r9, [0x14000b2e4]
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
lea r14, str.VBoxAutostartSvc
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rsi, rax
test rax, rax
je 0x140003f2a
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x50], r14
movzx edx, bp
mov qword [rsp + 0x58], rdi
lea r14d, [rbp + 2]
sub ebx, 1
je 0x140003ed2
sub ebx, 1
je 0x140003eb1
sub ebx, 1
je 0x140003e91
cmp ebx, 1
jne 0x140003eef
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, [0x14000b2e4]
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
lea edx, [rbp + 4]
jmp 0x140003eef
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, str.Warning:__s
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
movzx edx, r14w
jmp 0x140003eef
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdErr]
lea rdx, str.Error:__s
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
mov edx, 1
jmp 0x140003eef
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, [0x14000b2e4]
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
movzx edx, bp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor r9d, r9d
mov word [rsp + 0x28], r14w
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140012f20
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 case.default.0x140012f41
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 0x140012f6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012f70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012fc9
test ecx, ecx
jle 0x140012fa9
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 0x140012fc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012fc9
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
xor edi, dword [rax + rcx*4]
or dword [rbx], esi
cmp al, 0x51
push rcx
xor byte [rcx + rdx*2], bh
push rcx
xor byte [rax + riz], bh
cmc
sub eax, 0x2df5203c
cmp al, 0x85
jrcxz 0x14017219e
cmp al, 0x85
jrcxz 0x1401721a2
cmp al, 0xe8
adc byte [rcx], ch
cmp al, 0xe8
adc byte [rcx], ch
cmp al, 0xe1
invalid
sbb eax, 0x19c8b83c
cmp al, 0xb8
sbb dword [rax + rdi*4], edi
enter 0x3c19, 0xffffffffffffffe6
xchg esp, eax
invalid
Function at 0x140012ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140013021
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140013038
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001305b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001305d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140013099
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001312e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400130d4
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 0x14001310e
nop dword [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 0x14001312e
cmp rbx, rax
ja 0x1400130e0
test rbx, rbx
je 0x14001312e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
cmp al, 0x3c
call 0x115535d22
cmp al, 0x3c
invalid
mov edi, 0xbfd53c3c
cmp al, 0x3c
sbb ch, byte [rsi]
cmp eax, 0x3d2e1a3c
cmp al, 2
xchg byte [0x17d9d2363], bh
cmp al, 6
sar dword [rsp + rdi], cl
invalid
Function at 0x140013590
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ca040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400135bd
xor eax, eax
jmp 0x140013729
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400135f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400135f7
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 0x140013729
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001371c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001363a
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 0x140013665
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 0x140013721
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400136d4
sub eax, 1
je 0x1400136d4
cmp eax, 2
jne 0x14001371c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140013721
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140013702
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 0x14001371c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140013721
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a2ee0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret