joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddc0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub rsp, 0x28
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
mov rsi, rcx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov rcx, r8
mov rdi, rsi
mov qword [rsp + 0x20], r12
repne scasw ax, word [rdi]
mov eax, 2
not rcx
movsxd rdx, ecx
lea r12, [rcx - 1]
mul rdx
cmovo rax, r8
mov rcx, rax
call fcn.0040e3d0
mov rbx, rax
sub rax, rsi
movzx ecx, word [rsi]
add rsi, 2
test cx, cx
mov word [rax + rsi - 2], cx
jne 0x40de11
movsxd rsi, r12d
mov qword [rsp + 0x38], rbp
mov r12, qword [rsp + 0x20]
xor edi, edi
test rsi, rsi
mov bpl, 1
js 0x40de7d
nop
nop
cmp word [rbx + rdi*2], 0x5c
jne 0x40de6f
mov rcx, rbx
mov word [rbx + rdi*2], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40de69
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40de7a
mov word [rbx + rdi*2], 0x5c
add rdi, 1
cmp rdi, rsi
jle 0x40de40
jmp 0x40de7d
xor bpl, bpl
mov rcx, rbx
call fcn.0040fc10
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
movzx eax, bpl
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x40deb0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.0040e3f0
xor eax, eax
lea rdx, [0x00421b28]
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.0040e620
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40df6a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x8c0
pop rbx
ret
Function at 0x40df90
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.0040e3f0
xor eax, eax
lea rdx, [0x00421b28]
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.0040e620
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e06a
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x8c0
pop rbx
ret

Function at 0x40e090
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0x98
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rdi, rdx
xor edx, edx
mov rbx, rcx
lea rcx, [rax - 0x74]
lea r8d, [rdx + 0x6c]
mov dword [rax - 0x78], 0x70
call fcn.0040e3f0
lea r11, str.runas
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x200
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov rdi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
jne 0x40e109
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
add rsp, 0x98
ret

Function at 0x40e120
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov rbx, rcx
mov qword [rsp + 0x58], rdi
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x58]
not rcx
cmp rcx, 1
je 0x40e17d
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40e17d
mov rcx, rbx
call fcn.0040deb0
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x40e190
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r8, rdx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov rax, rbx
setne dl
mov dword [rbx + 8], edx
add rsp, 0x20
pop rbx
ret

Function at 0x40fc20
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40fc49
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fc49
mov ecx, eax
call fcn.004125a0
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x4112a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0042a560]
jne 0x40e5ea
rol rcx, 0x10
test cx, 0xffff
jne 0x40e5e6
repz ret
ror rcx, 0x10
jmp 0x411200
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0042bc90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0042bd88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x411285
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0042bc90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x4112a7
mov rax, qword [rsp + 0x88]
mov qword [0x0042bd88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0042bd28], rax
mov rax, qword [0x0042bd88]
mov qword [0x0042bc00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0042bd10], rax
mov dword [0x0042bbf0], 0xc0000409
mov dword [0x0042bbf4], 1
mov rax, qword [0x0042a560]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0042a568]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0042bc88], eax
mov ecx, 1
call fcn.00412be0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00422d88]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0042bc88], 0
jne 0x41132e
mov ecx, 1
call fcn.00412be0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x41db40
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00412c60
xor ebx, ebx
cmp qword [0x0042cb60], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x41dc71
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x41dba3
xor eax, eax
jmp 0x41dd51
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41db9c
mov rcx, rax
call fcn.00412bf0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0042cb60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00412bf0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0042cb68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00412bf0
lea rcx, [rsp + 0x30]
mov qword [0x0042cb70], rax
call fcn.004184b0
test eax, eax
je 0x41dc27
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0040eb40
cmp dword [rsp + 0x30], 2
jne 0x41dc71
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00412bf0
test rax, rax
mov qword [0x0042cb80], rax
je 0x41dc71
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00412bf0
mov qword [0x0042cb78], rax
mov rcx, qword [0x0042cb78]
cmp rcx, rsi
je 0x41dd03
cmp qword [0x0042cb80], rsi
je 0x41dd03
call fcn.00412cc0
call rax
test rax, rax
mov rbp, rax
je 0x41dcce
mov rcx, qword [0x0042cb80]
call fcn.00412cc0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x41dcce
test byte [rsp + 0x48], 1
jne 0x41dd03
lea rcx, [rsp + 0x34]
call fcn.00418500
test eax, eax
je 0x41dcf0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0040eb40
cmp dword [rsp + 0x34], 4
jb 0x41dcfd
bts edi, 0x15
jmp 0x41dd37
bts edi, 0x12
jmp 0x41dd37
mov rcx, qword [0x0042cb68]
cmp rcx, rsi
je 0x41dd37
call fcn.00412cc0
call rax
test rax, rax
mov rbx, rax
je 0x41dd37
mov rcx, qword [0x0042cb70]
cmp rcx, rsi
je 0x41dd37
call fcn.00412cc0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0042cb60]
call fcn.00412cc0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x141825058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1418251df
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 0x141825089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14182506f
add dl, dl
jne 0x141825096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418250f6
xor eax, eax
add dl, dl
jne 0x1418250a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418251ad
add dl, dl
jne 0x1418250b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418250c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418250d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418250dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418250ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14182507e
mov eax, 1
add dl, dl
jne 0x141825106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141825113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418250fb
sub eax, ebx
mov ebx, 1
jne 0x14182514c
mov ecx, 1
add dl, dl
jne 0x14182512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14182513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141825123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141825168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141825175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14182515d
cmp eax, 0x7d00
jae 0x14182519b
cmp eax, 0x500
jb 0x141825196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182507e
cmp eax, 0x7f
ja 0x14182519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418251d2
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 0x14182507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004510
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov qword [rbp - 0x11], rcx
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea r8d, [r13 + 3]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
xor edx, edx
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
or r12, 0xffffffffffffffff
cmp rax, r12
jne 0x140004596
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
jmp 0x1400046dd
lea rax, [0x140004710]
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1b], r13
mov dword [rbp + 0x17], r13d
mov qword [rbp - 0x11], r13
mov dword [rbp - 0x19], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp + 0x17]
mov edx, 0x2d1400
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000460a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
jmp 0x1400046ce
mov edi, dword [rbp - 0xd]
mov ecx, edi
call fcn.14008a95c
mov r15, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 1], r15
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r15
mov r9d, 0xc
lea r8, [rbp + 0x17]
mov edx, 0x2d1400
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xorps xmm0, xmm0
test eax, eax
jne 0x14000467b
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
mov rcx, r15
call fcn.14008a600
nop
jmp 0x1400046ce
cmp dword [r15 + 0x18], r13d
jne 0x14000469e
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
mov rcx, r15
call fcn.14008a600
nop
jmp 0x1400046ce
mov edx, dword [r15 + 0x18]
add rdx, r15
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
inc r12
cmp byte [rdx + r12], r13b
jne 0x1400046b0
mov r8, r12
mov rcx, rsi
call fcn.14000ca88
nop
mov rcx, r15
call fcn.14008a600
nop
test r14, r14
je 0x1400046dd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14008a5e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140007c10
call 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]
jmp 0x140007c88
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140007c27
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007c29
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007c82
test ecx, ecx
jle 0x140007c62
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 0x140007c82
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007c82
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140007ca4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140007cd2
xor eax, eax
jmp 0x140007dbb
cmp qword [rcx + 0x68], 0
je 0x140007ce4
call 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]
jmp 0x140007dbb
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007cfb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007cfd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007d2f
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007db5
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007d66
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007d90
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007db5
cmp rsi, rbx
ja 0x140007d6d
test rsi, rsi
je 0x140007db5
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400081a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400081d9
xor eax, eax
jmp 0x1400082f9
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140008213
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140008213
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400082f9
cmp qword [rbx + 0x80], 0
je 0x1400082f7
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000824e
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 0x14000826f
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x1400082f4
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x1400082bd
sub eax, 1
je 0x1400082bd
cmp eax, 2
jne 0x1400082f7
movsx ecx, byte [rbp - 0x40]
jmp 0x14000825b
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1400082e8
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x1400082f7
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14008a5e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140009e1c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009e8b
cmp byte [rcx + 0x71], 0
je 0x140009e8b
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140009ee0
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 0x140009ea5
sub eax, 1
je 0x140009ea9
cmp eax, 2
jne 0x140009ee0
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008a5e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009ed7
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 0x140009ee0
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140009e8d
xor al, al
jmp 0x140009e8d
Function at 0x140015bb8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140015c1c
lea r8, [r9 + 8]
mov r11d, 0x7fffffff
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r11d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140015bdc
mov ecx, dword [r9]
jmp 0x140015cf9
cmp ecx, 0x4e0
jb 0x140015cf9
lea r10, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [r10]
mov r11d, 0x7fffffff
mov eax, edi
mov r8, r10
add r10, 4
mov edi, dword [r10]
mov edx, edi
xor edx, eax
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x140015c3d
lea r10, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [r10]
mov eax, edi
mov r8, r10
mov edx, eax
add r10, 4
mov edi, dword [r10]
xor edx, edi
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x140015c87
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rsi, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret