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

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fae0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd94]
lea rsi, [0x140034dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae39
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a640
test al, al
je 0x14000af1f
lea rcx, [rsp + 0x20]
call fcn.140014030
movsxd r11, dword [0x14002fd94]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd94], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae74
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 0x14000ae64
add rax, 2
test ecx, ecx
jne 0x14000ae50
test edx, edx
je 0x14000ae97
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae44
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae80
cmp rax, 2
jne 0x14000ae9b
cmp word [rdi + 2], 0x3a
jne 0x14000ae9b
mov al, 1
jmp 0x14000aefe
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 0x14000aec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aec8
mov bl, 1
jmp 0x14000aecc
test bl, bl
je 0x14000aef3
cmp dword [0x14002fd94], 0x400
jge 0x14000aef3
mov rcx, rdi
call fcn.140014030
movsxd rdx, dword [0x14002fd94]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd94], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b870
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac60
int3
Function at 0x14000b040
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd98]
test rcx, rcx
je 0x14000b07b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b06e
mov rcx, qword [0x14002fd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140038dd2], 0
je 0x14000b16e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400298b8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325d0]
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 0x14000b14f
test al, 0x10
je 0x14000b14f
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 0x14000b0f5
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 0x14000c144
Capabilities:
Parse pe header

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

Function at 0x14000f928
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f793
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f793
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f793
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f793
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f793
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f793
cmp dword [rcx + 0xf8], 0
je 0x14000f793
mov ecx, ebx
call fcn.14000f844
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f620
nop
cmp dword [rbp + 0x20], 0
je 0x14000f7e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f7ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f724
Function at 0x140018f14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018f9b
mov rsi, rbx
cmp word [rax], bp
je 0x140018f5a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018f44
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018f40
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016744
mov rdi, rax
test rax, rax
je 0x140018f88
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d710
mov rbp, rdi
xor ecx, ecx
call fcn.140015768
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b564
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b57a
mov al, 1
jmp 0x14001b5da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b58b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b5d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400196b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b5d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b5d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b5d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b5da
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f9f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fa18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fa18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1409e4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409e41df
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 0x1409e4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e406f
add dl, dl
jne 0x1409e4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e40f6
xor eax, eax
add dl, dl
jne 0x1409e40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e41ad
add dl, dl
jne 0x1409e40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409e40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409e407e
mov eax, 1
add dl, dl
jne 0x1409e4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e40fb
sub eax, ebx
mov ebx, 1
jne 0x1409e414c
mov ecx, 1
add dl, dl
jne 0x1409e412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409e413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409e4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409e4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e415d
cmp eax, 0x7d00
jae 0x1409e419b
cmp eax, 0x500
jb 0x1409e4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e407e
cmp eax, 0x7f
ja 0x1409e419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409e41d2
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 0x1409e407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140120c20]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140120c30]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140128008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140120b90]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14006b710
mov rcx, qword [0x140120cb0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140120c10]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14006b520
mov ebx, dword [0x140128028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test ebx, ebx
mov rbp, qword [0x140128020]
mov r12, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [rbp + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [r12 + rbx], rax
mov rdx, qword [rbp + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, r12
mov qword [rdi], 0
mov qword [0x140128020], r12
call fcn.14006b320
mov rax, qword [0x140120ba0]
mov r8, qword [0x140128018]
mov ecx, dword [0x140128028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140128020]
call fcn.14006e660
mov ecx, dword [0x14012800c]
mov dword [0x140128010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140128008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140120c30]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14006e240
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140120c50]
mov rcx, qword [0x140120c40]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140128010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140120c70]
mov dword [rsi], 1
mov rcx, qword [0x140120c60]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140057060
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rcx, qword [0x140120e80]
lea rdx, [0x1400ec62b]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rsi, qword [0x140121480]
xor r8d, r8d
mov rcx, rax
mov rbx, rax
mov edx, dword [rsi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rcx, qword [0x1401210e0]
mov r9, rbx
mov r8d, 0x3e8
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov rcx, rbx
mov dword [rsi], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, qword [0x140121240]
xor edx, edx
mov word [rax], dx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400588b0
Capabilities:
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbx, qword [0x140121540]
cmp byte [rbx + 0x201], 0
je 0x1400588d8
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x130]
xor edx, edx
lea rsi, [rsp + 0x20]
mov rcx, rdi
call fcn.140056740
lea r8, [0x1400ec905]
mov rdx, rdi
mov rcx, rsi
call fcn.1400587e0
cmp byte [rbx + 0x201], 0
jne 0x14005890f
call fcn.140056cd0
movabs rdi, 0x736575676f72622e
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [0x140120e80]
mov rdx, rsi
add rax, rsi
mov qword [rax], rdi
mov dword [rax + 8], 0x657661
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov rcx, qword [0x140120e80]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov byte [rbx + 8], 1
mov dword [rbx + 0x15b8], 0
mov byte [rbx + 0x200], 0
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret

Function at 0x140058970
Capabilities:
Delete file
Move file

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x360
mov rdi, qword [0x140121540]
cmp byte [rdi + 0x201], 0
je 0x1400589a8
add rsp, 0x360
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rsi, [rsp + 0x250]
xor edx, edx
lea rbx, [rsp + 0x40]
mov rcx, rsi
call fcn.140056740
mov rdx, rsi
mov rcx, rbx
lea r8, [0x1400ec905]
call fcn.1400587e0
lea rbp, [0x1400ec905]
mov byte [rsp + 0x140], 0
lea r12, str.Save_game_as___esc__to_cancel_:
lea rsi, [rsp + 0x140]
lea r13, str._s_s
lea r14, str.File_of_that_name_already_exists._Overwrite_
mov qword [rsp + 0x20], rbp
mov r9, rbx
mov rdx, r12
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov r8d, 0x58
mov dword [rsp + 0x28], 1
call fcn.14004cba0
test al, al
je 0x140058991
mov r9, rbx
mov r8, r13
mov edx, 0x104
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call fcn.14006e000
mov rcx, rsi
call fcn.1400598e0
test al, al
je 0x140058a63
mov edx, 1
mov rcx, r14
call fcn.14004d520
test al, al
je 0x1400589fd
mov rcx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
cmp byte [rdi + 0x201], 0
jne 0x140058a79
call fcn.140056cd0
mov rbx, qword [0x140120e80]
mov rdx, rsi
mov rcx, rbx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov rdx, rsi
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov edx, 1
mov byte [rdi + 0x200], 0
lea rcx, str.Saved.
call fcn.14004a970
mov byte [rdi + 8], 1
mov dword [rdi + 0x15b8], 0
jmp 0x140058991

Function at 0x140058ad0
Capabilities:
Delete file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x130
mov rsi, qword [0x140121540]
cmp byte [rsi + 0x201], 0
mov rbx, rcx
jne 0x140058b4e
lea rdi, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.140056740
lea r8, [0x1400ec8d8]
mov rdx, rdi
mov rcx, rbx
call fcn.1400587e0
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
movabs rdx, 0x726575676f72622e
add rax, rbx
mov qword [rax], rdx
mov dword [rax + 7], 0x636572
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120e80]
mov rdx, rbx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov byte [rsi + 0x200], 0
add rsp, 0x130
pop rbx
pop rsi
pop rdi
ret
Function at 0x140058b60
Capabilities:
Delete file
Move file

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov rbp, qword [0x140121540]
cmp byte [rbp + 0x201], 0
mov rbx, rcx
je 0x140058ba0
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rsi, [rsp + 0x150]
mov edx, 1
lea rdi, [0x1400ec8d8]
mov rcx, rsi
call fcn.140056740
mov rdx, rsi
mov rcx, rbx
lea r8, [0x1400ec8d8]
call fcn.1400587e0
lea r12, str.Save_recording_as___esc__to_cancel_:
mov byte [rsp + 0x40], 0
lea rsi, [rsp + 0x40]
lea r13, str._s_s
lea r14, str.File_of_that_name_already_exists._Overwrite_
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov rdx, r12
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov r8d, 0x58
mov dword [rsp + 0x28], 1
call fcn.14004cba0
mov qword [rsp + 0x20], rdi
test al, al
je 0x140058c78
mov r9, rbx
mov r8, r13
mov edx, 0x104
mov rcx, rsi
call fcn.14006e000
mov rcx, rsi
call fcn.1400598e0
test al, al
je 0x140058c4f
mov edx, 1
mov rcx, r14
call fcn.14004d520
test al, al
je 0x140058bed
mov rcx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120e80]
mov rdx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov byte [rbp + 0x200], 0
jmp 0x140058b84
lea r9, str.LastRecording
mov edx, 0x104
mov rcx, rsi
lea r8, str._s_s
call fcn.14006e000
mov rcx, rsi
call fcn.1400598e0
test al, al
je 0x140058c57
jmp 0x140058c4f
Function at 0x140058cb0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x528
lea r8, [0x1400ec905]
movabs rdi, 0x736575676f72622e
lea rdx, str.LastGame
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.1400587e0
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
movzx edx, word [0x1400ecf68]
mov rcx, r14
add rax, r14
mov qword [rax], rdi
mov dword [rax + 8], 0x657661
mov rax, qword [0x140121540]
mov word [rax + 0x200], dx
xor edx, edx
mov byte [rax + 0x223], 0
mov byte [rax + 0x225], 0
mov rax, qword [0x140121240]
mov word [rax], dx
mov rax, qword [0x140121500]
mov edi, dword [rax]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120e80]
lea rdx, [0x1400ec62b]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
lea rdx, [0x1400ec621]
mov rcx, r14
mov r13, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
test edi, edi
mov r12, rax
je 0x140058db5
lea rbp, [rsp + 0x130]
xor esi, esi
nop dword [rax + rax]
mov ebx, edi
mov eax, 0x3e8
mov r9, r13
sub ebx, esi
mov edx, 1
mov rcx, rbp
cmp ebx, eax
cmova ebx, eax
mov r15d, ebx
add esi, ebx
mov r8, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r9, r12
mov r8, r15
mov edx, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp esi, edi
jb 0x140058d78
mov rcx, r13
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, qword [0x140120e80]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120e80]
mov rdx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
call fcn.140042bd0
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0xffffffff
call fcn.140049510
call fcn.1400455a0
call fcn.140041fc0
nop
add rsp, 0x528
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140064870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov ecx, 0x73
call fcn.140056f20
mov rbx, qword [0x140121410]
movzx eax, word [rbx + 0x1a4]
test ax, ax
jle 0x1400648d8
add eax, 1
cmp ax, 4
mov word [rbx + 0x1a4], ax
jle 0x1400648f0
lea rcx, str.you_finish_your_detailed_search_of_the_area.
xor edx, edx
call fcn.14004a970
xor eax, eax
mov word [rbx + 0x1a4], ax
mov rbx, qword [0x140121540]
mov eax, 0xa0
movsx ecx, word [rbx + 0x15d8]
jmp 0x140064909
mov edx, 5
mov ecx, 1
mov word [rbx + 0x1da], dx
mov word [rbx + 0x1a4], cx
mov rbx, qword [0x140121540]
movsx eax, word [rbx + 0x15d8]
mov ecx, eax
sar eax, 0x1f
and eax, 0xffffffe2
add eax, 0x3c
add ecx, 0x1e
cmp ecx, eax
cmovl ecx, eax
movsx ecx, cx
call fcn.140004ce0
mov byte [rbx + 0xe], 1
add rsp, 0x20
pop rbx
jmp fcn.1400627b0

Function at 0x140064c50
Capabilities:
Encode data using xor

Disassembly:
cmp edx, ecx
jle 0x140064c60
jmp fcn.1400649e0
mov eax, ecx
ret

Function at 0x140064d10
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov r11, rcx
je 0x140064df8
mov rdx, r11
mov r8d, r11d
mov r10d, r11d
shr rdx, 0x20
mov r9d, r11d
mov ebx, 0x14
xor edx, r11d
mov eax, 0xf1ea5eed
mov ecx, edx
nop word [rax + rax]
mov edi, r9d
ror edi, 5
sub eax, edi
mov esi, eax
mov eax, ecx
ror eax, 0xf
xor eax, r9d
sub ebx, 1
lea r9d, [r10 + rcx]
lea ecx, [r10 + rsi]
lea r10d, [rsi + rax]
jne 0x140064d48
movd xmm1, ecx
movd xmm0, eax
movd xmm3, r9d
movd xmm2, r10d
punpckldq xmm0, xmm3
mov ecx, r8d
mov r9d, 0x14
punpckldq xmm1, xmm2
mov eax, 0xf1ea5eed
punpcklqdq xmm0, xmm1
movaps xmmword [0x1401d6ac0], xmm0
nop
mov ebx, r8d
ror ebx, 5
sub eax, ebx
mov r10d, eax
mov eax, edx
ror eax, 0xf
xor eax, r8d
sub r9d, 1
lea r8d, [rcx + rdx]
lea edx, [rcx + r10]
lea ecx, [r10 + rax]
jne 0x140064da0
movd xmm1, edx
movd xmm4, ecx
movd xmm0, eax
movd xmm5, r8d
mov rax, r11
punpckldq xmm1, xmm4
punpckldq xmm0, xmm5
punpcklqdq xmm0, xmm1
movaps xmmword [0x1401d6ad0], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea r11, [rax - 0x50a09060]
jmp 0x140064d23
Function at 0x140069ac0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_image_error___s:_d_:__s_n
call fcn.14006e0d0
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140069b10
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_error___s:_d_:__s_n
call fcn.14006e0d0
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop