joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d940
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42dbe6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42dbda
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x005c2d92], 0
jne 0x42d9a2
xor edx, edx
xor ebx, ebx
nop
jmp 0x42d9ea
xor edx, edx
jmp 0x42d9cd
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.0041d2e0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42d9a6
add rax, 0x1260
call fcn.0042d800
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42db74
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax + rax]
cmp rsi, 0x1000
jb 0x42d9e7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.00412380
test rax, rax
jne 0x42da42
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d9e7
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
nop
mov r8, rcx
shr rcx, 3
movzx r9d, byte [rsi + rcx]
and r8d, 7
mov rdx, rcx
mov rcx, r8
mov r10d, 1
shl r10d, cl
add rsi, rdx
test r10b, r9b
je 0x42da89
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d9e7
nop
lock or byte [rsi], r10b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42dbcd
lea r10, [0x005951d0]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x11440]
lea r11, [rcx + 0x11440]
add r9, r11
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42db0e
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42db45
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1248]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1248], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d9e7
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42dbc5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1270], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42d9e7
cmp rbx, 0x200
ja 0x42dbb8
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00423400
mov rax, qword [rsp + 0x48]
add rax, 0x1260
call fcn.0042d800
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
call fcn.0045f640
mov rax, r8
call fcn.0045f5c0
mov rax, r8
mov ecx, 0x40
call fcn.0045f5e0
mov edx, 0x200
nop
call fcn.0045f620
nop
mov qword [rsp + 8], rax
call fcn.004619a0
mov rax, qword [rsp + 8]
jmp fcn.0042d940
Function at 0x442880
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4429ea
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x442898
cmp edx, ecx
jne 0x4429d8
nop dword [rax]
test rsi, rsi
jne 0x4429d8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4428f4
nop
call fcn.00460f60
xorps xmm15, xmm15
mov r14, qword [0x005c2f88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00442780
mov rcx, qword [0x0056ffa8]
mov rdx, qword [0x0056ffa0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x4429d3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x4429c8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00570a90]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00570a90], rbx
nop
mov edx, 1
lea rsi, [0x00570a98]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x4429b7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004c561c]
mov ebx, 0x28
call fcn.004340c0
mov rcx, rax
mov rax, rsi
call fcn.0045f5c0
call fcn.004326e0
lea rax, [0x004c49d8]
mov ebx, 0x23
call fcn.004340c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00442880
Function at 0x44d8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44da38
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44d8fc
test r8b, r8b
jne 0x44d8fc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44d90f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44d9f8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44d9e6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44d9dc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44d963
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44d9a6
mov eax, 1
cmp rax, rbx
ja 0x44d995
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045f680
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44d9d4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44d99d
mov r8d, eax
mov eax, r10d
jmp 0x44d968
mov rcx, rbx
call fcn.0045f5c0
xor eax, eax
mov rcx, rax
call fcn.0045f5c0
mov eax, r8d
mov rcx, rbx
call fcn.0045f680
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44da2e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44d9f1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44d915
mov eax, edx
mov rcx, rbx
call fcn.0045f5c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045f5c0
nop
int3
Function at 0x455100
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4551b9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00455200]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045ce20
xorps xmm15, xmm15
mov r14, qword [0x005c2f88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045cf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455100
Function at 0x45f000
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4028af
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409140
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cf60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402880
cmp byte [0x005c2d91], 0
je 0x45f015
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45c060
jmp 0x402880

Function at 0x45f020
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c3080]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005c2d91], 0
je 0x45f055
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005c33c0]
aesenc xmm0, xmmword [0x005c33d0]
aesenc xmm0, xmmword [0x005c33e0]
movq rax, xmm0
ret
jmp 0x409340

Function at 0x45f060
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c3080]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005c2d91], 0
je 0x45f096
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005c33c0]
aesenc xmm0, xmmword [0x005c33d0]
aesenc xmm0, xmmword [0x005c33e0]
movq rax, xmm0
ret
jmp 0x4093a0

Function at 0x460a80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005c3340]
mov qword [rsp + 8], rdx
lea r8d, [0x005c2da8]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045ef40
add rsp, 0x30
ret

Function at 0x460fc0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460fec
call fcn.0045ef40
shl rcx, 3
add rcx, 0x1480
mov qword [0x005c2f88], rcx
ret
Function at 0x4796e0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x47971f
jb 0x479734
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4797a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x479870
jb 0x4798cf
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00479680
aeskeygenassist xmm1, xmm0, 1
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 2
call fcn.00479680
aeskeygenassist xmm1, xmm0, 2
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 4
call fcn.00479680
aeskeygenassist xmm1, xmm0, 4
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 8
call fcn.00479680
aeskeygenassist xmm1, xmm0, 8
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00479680
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00479680
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004796a0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00479680
jmp 0x47993d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004795e0
aeskeygenassist xmm1, xmm2, 2
call fcn.00479640
aeskeygenassist xmm1, xmm2, 4
call fcn.004795e0
aeskeygenassist xmm1, xmm2, 8
call fcn.00479640
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004795e0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00479640
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004795e0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00479640
jmp 0x47993d
aeskeygenassist xmm1, xmm0, 1
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 2
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 4
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 8
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004795a0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004795a0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x47994a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140120c60]
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 [0x140120c70]
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 [0x140120bd0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14006b730
mov rcx, qword [0x140120cf0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140120c50]
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.14006b540
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.14006b340
mov rax, qword [0x140120be0]
mov r8, qword [0x140128018]
mov ecx, dword [0x140128028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140128020]
call fcn.14006e680
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 [0x140120c70]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14006e260
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140120c90]
mov rcx, qword [0x140120c80]
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 [0x140120cb0]
mov dword [rsi], 1
mov rcx, qword [0x140120ca0]
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 0x140057070
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rcx, qword [0x140120ec0]
lea rdx, [0x1400ec62b]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rsi, qword [0x1401214c0]
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 [0x140121120]
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 [0x140121280]
xor edx, edx
mov word [rax], dx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400588d0
Capabilities:
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbx, qword [0x140121580]
cmp byte [rbx + 0x201], 0
je 0x1400588f8
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.140056750
lea r8, [0x1400ec905]
mov rdx, rdi
mov rcx, rsi
call fcn.140058800
cmp byte [rbx + 0x201], 0
jne 0x14005892f
call fcn.140056ce0
movabs rdi, 0x736575676f72622e
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [0x140120ec0]
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 [0x140120ec0]
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 0x140058990
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 [0x140121580]
cmp byte [rdi + 0x201], 0
je 0x1400589c8
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.140056750
mov rdx, rsi
mov rcx, rbx
lea r8, [0x1400ec905]
call fcn.140058800
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.14004cbb0
test al, al
je 0x1400589b1
mov r9, rbx
mov r8, r13
mov edx, 0x104
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call fcn.14006e020
mov rcx, rsi
call fcn.140059900
test al, al
je 0x140058a83
mov edx, 1
mov rcx, r14
call fcn.14004d530
test al, al
je 0x140058a1d
mov rcx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
cmp byte [rdi + 0x201], 0
jne 0x140058a99
call fcn.140056ce0
mov rbx, qword [0x140120ec0]
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.14004a980
mov byte [rdi + 8], 1
mov dword [rdi + 0x15b8], 0
jmp 0x1400589b1

Function at 0x140058af0
Capabilities:
Delete file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x130
mov rsi, qword [0x140121580]
cmp byte [rsi + 0x201], 0
mov rbx, rcx
jne 0x140058b6e
lea rdi, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.140056750
lea r8, [0x1400ec8d8]
mov rdx, rdi
mov rcx, rbx
call fcn.140058800
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 [0x140120ec0]
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 0x140058b80
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 [0x140121580]
cmp byte [rbp + 0x201], 0
mov rbx, rcx
je 0x140058bc0
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.140056750
mov rdx, rsi
mov rcx, rbx
lea r8, [0x1400ec8d8]
call fcn.140058800
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.14004cbb0
mov qword [rsp + 0x20], rdi
test al, al
je 0x140058c98
mov r9, rbx
mov r8, r13
mov edx, 0x104
mov rcx, rsi
call fcn.14006e020
mov rcx, rsi
call fcn.140059900
test al, al
je 0x140058c6f
mov edx, 1
mov rcx, r14
call fcn.14004d530
test al, al
je 0x140058c0d
mov rcx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120ec0]
mov rdx, rsi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov byte [rbp + 0x200], 0
jmp 0x140058ba4
lea r9, str.LastRecording
mov edx, 0x104
mov rcx, rsi
lea r8, str._s_s
call fcn.14006e020
mov rcx, rsi
call fcn.140059900
test al, al
je 0x140058c77
jmp 0x140058c6f
Function at 0x140058cd0
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.140058800
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 [0x140121580]
mov word [rax + 0x200], dx
xor edx, edx
mov byte [rax + 0x223], 0
mov byte [rax + 0x225], 0
mov rax, qword [0x140121280]
mov word [rax], dx
mov rax, qword [0x140121540]
mov edi, dword [rax]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120ec0]
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 0x140058dd5
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 0x140058d98
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 [0x140120ec0]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov rcx, qword [0x140120ec0]
mov rdx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
call fcn.140042be0
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0xffffffff
call fcn.140049520
call fcn.1400455b0
call fcn.140041fd0
nop
add rsp, 0x528
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret