joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bbdc
Capabilities:
Get file size

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

Function at 0x1400201d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400201f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400201f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1407f1790
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407f1917
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 0x1407f17c1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f17a7
add dl, dl
jne 0x1407f17ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f182e
xor eax, eax
add dl, dl
jne 0x1407f17dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f18e5
add dl, dl
jne 0x1407f17ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f17fb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f1808
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f1815
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f1822
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f17b6
mov eax, 1
add dl, dl
jne 0x1407f183e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f184b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f1833
sub eax, ebx
mov ebx, 1
jne 0x1407f1884
mov ecx, 1
add dl, dl
jne 0x1407f1866
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f1873
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f185b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f17b6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f18a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f18ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f1895
cmp eax, 0x7d00
jae 0x1407f18d3
cmp eax, 0x500
jb 0x1407f18ce
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f17b6
cmp eax, 0x7f
ja 0x1407f18d6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f17b6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f190a
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 0x1407f17b6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6daf4ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db165e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6daf5178
mov rax, qword [0x6db165e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6daf503c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6daf50c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6daf5020
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6daf51ad
mov rax, qword [0x6db165e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db165e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6daf5190
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6daf50be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6daf5120
add dword [0x6db165e4], 1
cmp edi, 8
jae 0x6daf50f3
test dil, 4
jne 0x6daf5164
test edi, edi
je 0x6daf50e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6daf517f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6daf50e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6daf510c
jmp 0x6daf50e8
add rsi, qword [0x6db165e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6daf50be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6daf50e8
xor esi, esi
jmp 0x6daf5047
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6daf50e8
mov rax, qword [0x6db165e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6daf5900
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db168c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db168a0]
test rbx, rbx
je 0x6daf5954
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6daf594b
test rsi, rsi
je 0x6daf594b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6daf5930
lea rcx, [0x6db168c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6daf5b90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6daf5ba0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6daf5bb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6daf5bf1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6daf5be8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6daf5bf3
add rax, 0x28
cmp rax, r9
jne 0x6daf5bd4
xor eax, eax
ret

Function at 0x6daf5c90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db131f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6daf5cfd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daf5cfd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daf5cfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daf5cf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daf5cff
add rax, 0x28
cmp rax, r9
jne 0x6daf5ce0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6daf5e00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db131f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6daf5e20
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daf5e18
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daf5e7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daf5e74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daf5e84
add rax, 0x28
cmp rax, r9
jne 0x6daf5e60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6daf5ea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db131f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6daf5f0e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daf5f0e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6daf5f0e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6daf5f0e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6daf5f05
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6daf5f15
add rcx, 0x28
cmp rcx, rax
jne 0x6daf5ef0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6daf5f28
jmp 0x6daf5f0e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6daf5f36
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6daf5f0e
test r9d, r9d
jg 0x6daf5f20
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6daf6270
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140022860
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 0x14002292c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002292c
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 0x140022945
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 0x14002291c
cmp byte [rax], 0x5c
jne 0x140022916
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140022916
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140022902
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140022913
test r8b, 0x10
jne 0x140022916
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140022916
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140025c50
test edi, edi
jne 0x140022880
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.140023a20
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140026994
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140026980
ret
Function at 0x140032f40
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400e2a00], 0
jne 0x140033030
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400aec38]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400aec48]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x1400e2a00]
test eax, eax
js 0x140032ff4
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400aec58]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140032fe5
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400aec28]
mov r9, rdi
lea rdx, [0x1400aec18]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140032fda
mov rcx, qword [0x1400e2a00]
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 0x140033030
cmp qword [0x1400e2a00], 0
jne 0x140033030
lea r9, [0x1400aec28]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400aec18]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x14003303d
mov rcx, qword [0x1400e2a00]
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, [0x1400aed40]
lea rdx, [0x1400aed60]
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 0x1400377e0
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.14004e760
mov ecx, dword [rbx + 0x318]
test al, al
je 0x140037924
cmp ecx, 1
je 0x14003790c
mov dword [rbx + 0x318], 1
xor edx, edx
mov rcx, rbx
call fcn.14003aee0
mov rcx, rbx
call fcn.14003a720
lea rcx, [0x1400e24b0]
call fcn.14003bf10
test al, al
je 0x140037979
lea rcx, [rbx + 0x10]
call fcn.14004e660
test al, al
je 0x140037979
lea rcx, [rbx + 0x10]
call fcn.14004ec70
lea rdi, [rbx + 0x608]
cmp byte [rdi + 8], sil
jne 0x1400378f3
cmp qword [rdi + 0x18], rsi
je 0x1400378f3
mov word [rdi + 8], 0x101
mov dword [rdi + 0x20], 0x32
lea ecx, [rsi + 8]
call fcn.140080488
test rax, rax
je 0x140037894
mov qword [rax], rdi
jmp 0x140037897
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, [0x140033c70]
xor edx, edx
xor ecx, ecx
call fcn.1400918d8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003798c
cmp dword [rsp + 0x38], 0
je 0x140037981
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14007f3c8
test eax, eax
jne 0x140037981
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.14003aee0
lea rcx, [rbx + 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.140024a80
test ecx, ecx
je 0x140037969
mov dword [rbx + 0x318], esi
mov rcx, rbx
call fcn.14003a720
mov byte [rbx + 0x610], sil
mov edi, 0x1388
cmp byte [rbx + 0x611], sil
je 0x140037969
nop dword [rax + rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x140037969
cmp byte [rbx + 0x611], sil
jne 0x140037950
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.140091f84
nop
mov ecx, 1
call fcn.14007e754
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.14007e754
int3
Function at 0x14003a720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1400e2aa0]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.14007e5fc
test eax, eax
jne 0x14003a7b1
cmp dword [0x1400e2aec], 0x7fffffff
je 0x14003a79c
lea edx, [rax + 2]
mov rcx, rbx
call fcn.140043240
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.14007e604
mov dword [0x1400e2aec], 0x7ffffffe
mov ecx, 6
call fcn.14007e754
int3
mov ecx, 5
call fcn.14007e754
int3
Function at 0x14003ac10
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, [0x1400e2aa0]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call fcn.14007e5fc
test eax, eax
jne 0x14003aca8
cmp dword [0x1400e2aec], 0x7fffffff
je 0x14003ac93
lea edx, [rax + 7]
mov rcx, rbx
call fcn.140043240
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.14007e604
mov dword [0x1400e2aec], 0x7ffffffe
mov ecx, 6
call fcn.14007e754
int3
mov ecx, 5
call fcn.14007e754
int3

Function at 0x14003ada0
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, [0x1400e2aa0]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.14007e5fc
test eax, eax
jne 0x14003aeca
cmp dword [0x1400e2aec], 0x7fffffff
je 0x14003aeb5
lea edx, [rbp + 8]
mov rcx, rdi
call fcn.140043240
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1400059a0
mov rdx, rax
mov rcx, rdi
call fcn.14003e260
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 0x14003ae77
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
call fcn.140034670
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003ae84
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.14007e604
mov rax, rbx
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [0x1400e2aec], 0x7ffffffe
mov ecx, 6
call fcn.14007e754
int3
mov ecx, 5
call fcn.14007e754
int3
Function at 0x14003aee0
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, [0x1400e2aa0]
mov qword [rsp + 0x80], rsi
mov rcx, rsi
call fcn.14007e5fc
test eax, eax
jne 0x14003b024
cmp dword [0x1400e2aec], 0x7fffffff
je 0x14003b00f
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.140043240
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.1400260b0
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 [0x1400afa68]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], bpl
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14003e260
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 0x14003affb
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.14007e604
mov dword [0x1400e2aec], 0x7ffffffe
mov ecx, 6
call fcn.14007e754
int3
mov ecx, 5
call fcn.14007e754
int3
Function at 0x14003e260
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 0x14003e2b1
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 0x14003e2ff
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14003e2fa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003e31e
mov rcx, r8
call fcn.1400804c4
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.140087044
int3

Function at 0x14003e330
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 0x14003e38d
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.140025be0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140040160
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140040243
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140040243
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 0x140040261
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 0x140040233
cmp word [rax], 0x5c
jne 0x14004022c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14004022c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140040217
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140040229
test r8b, 0x10
jne 0x14004022c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14004022c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140042290
test edi, edi
jne 0x140040190
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140023a20
int3

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

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400426d4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400426c0
ret