joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400056e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140013020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400057b3
cmp byte [rcx + 0x71], 0
je 0x1400057b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400057af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005774
sub eax, 1
je 0x140005778
cmp eax, 2
jne 0x1400057af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400057a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400057af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000575c
xor al, al
jmp 0x14000575c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x60
pop rbx
ret
Function at 0x14000a640
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 0x14000a70c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000a70c
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 0x14000a725
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 0x14000a6fc
cmp byte [rax], 0x5c
jne 0x14000a6f6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000a6f6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000a6e2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000a6f3
test r8b, 0x10
jne 0x14000a6f6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000a6f6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140006ed0
test edi, edi
jne 0x14000a660
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140006ec0
int3

Function at 0x14000d5ec
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400adf40]
mov dword [rax], 1
mov rax, qword [0x1400adf50]
mov dword [rax], 1
mov rax, qword [0x1400adf60]
mov dword [rax], 1
mov rax, qword [0x1400adee0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140020780
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008af10
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140020829
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400207ee
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400207e0
test rax, rax
je 0x14009be20
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400207c8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140020858
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140020870
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140020911
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1400208d6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400208c8
test rax, rax
je 0x14009be26
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1400208b0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140080a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bf2c9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140080af8
lea rdx, [0x1400a9e52]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140080b60
mov rbx, qword [0x1400bf180]
jmp 0x140080ab5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140080ab0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006f090
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400bf180], rax
mov ebx, dword [rax]
mov qword [0x1400bf180], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400bf180], rdx
call fcn.14007fba0
cmp eax, ebx
jne 0x140080bc8
mov byte [0x1400bf2c9], 1
jmp 0x140080a8c
cmp byte [0x1400bf2c8], 0
jne 0x140080aa3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400bfc28], rax
call rbx
mov qword [0x1400bfc20], rax
call rbx
mov qword [0x1400bfc18], rax
call rbx
mov qword [0x1400bfc10], rax
call rbx
mov qword [0x1400bfc08], rax
call rbx
mov qword [0x1400bfc00], rax
call rbx
mov qword [0x1400bfbf8], rax
call rbx
mov byte [0x1400bf2c8], 1
mov qword [0x1400bfbf0], rax
jmp 0x140080aa3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140089bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009b370
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009b370
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008a8c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c00e8]
test eax, eax
je 0x14008a95a
lea rax, [0x1400c00c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c00f0]
mov qword [rbp - 8], rax
jmp 0x14008a93e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008a932
cmp qword [rbp - 0x10], 0
je 0x14008a932
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008a8f8
lea rax, [0x1400c00c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008a95b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008aa60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008aa88
mov eax, 0
jmp 0x14008aad6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008aab1
mov eax, 0
jmp 0x14008aad6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008aad1
mov eax, 0
jmp 0x14008aad6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008aadc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008ab5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008ab51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008ab51
mov rax, qword [rbp - 8]
jmp 0x14008ab6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008ab24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140023970
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 0x140023a3c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140023a3c
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 0x140023a55
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 0x140023a2c
cmp byte [rax], 0x5c
jne 0x140023a26
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140023a26
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140023a12
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140023a23
test r8b, 0x10
jne 0x140023a26
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140023a26
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140026f90
test edi, edi
jne 0x140023990
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.140024b20
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140027d14
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140027d00
ret
Function at 0x1400329f0
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 0x140032a21
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 0x140032a9b
mov rdi, r14
mov rcx, rbx
call fcn.140025520
test rax, rax
jle 0x140032a73
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.140085350
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 0x140032a8b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140032a93
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140032a35
sub r14, rdi
jmp 0x140032b7f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140032ab2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140032ab4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140032ae6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140085350
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 0x140032b7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140032b21
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 0x140032b5d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140094890
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140032b7c
cmp rbp, rax
ja 0x140032b30
test rbp, rbp
je 0x140032b7c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140094890
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 0x140035df0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400e7be0], 0
jne 0x140035ee0
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400b4fd8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400b4fe8]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x1400e7be0]
test eax, eax
js 0x140035ea4
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400b4ff8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140035e95
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400b4fc8]
mov r9, rdi
lea rdx, [0x1400b4fb8]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140035e8a
mov rcx, qword [0x1400e7be0]
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 0x140035ee0
cmp qword [0x1400e7be0], 0
jne 0x140035ee0
lea r9, [0x1400b4fc8]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400b4fb8]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x140035eed
mov rcx, qword [0x1400e7be0]
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, [0x1400b50e0]
lea rdx, [0x1400b5100]
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 0x14003aa30
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.140051490
mov ecx, dword [rbx + 0x318]
test al, al
je 0x14003ab74
cmp ecx, 1
je 0x14003ab5c
mov dword [rbx + 0x318], 1
xor edx, edx
mov rcx, rbx
call fcn.14003e160
mov rcx, rbx
call fcn.14003d970
lea rcx, [0x1400e7690]
call fcn.14003f190
test al, al
je 0x14003abc9
lea rcx, [rbx + 0x10]
call fcn.140051390
test al, al
je 0x14003abc9
lea rcx, [rbx + 0x10]
call fcn.140051a70
lea rdi, [rbx + 0x608]
cmp byte [rdi + 8], sil
jne 0x14003ab43
cmp qword [rdi + 0x18], rsi
je 0x14003ab43
mov word [rdi + 8], 0x101
mov dword [rdi + 0x20], 0x32
lea ecx, [rsi + 8]
call fcn.14008300c
test rax, rax
je 0x14003aae4
mov qword [rax], rdi
jmp 0x14003aae7
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, [0x140036b20]
xor edx, edx
xor ecx, ecx
call fcn.1400957b0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003abdc
cmp dword [rsp + 0x38], 0
je 0x14003abd1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140082208
test eax, eax
jne 0x14003abd1
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.14003e160
lea rcx, [rbx + 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.140001e50
test ecx, ecx
je 0x14003abb9
mov dword [rbx + 0x318], esi
mov rcx, rbx
call fcn.14003d970
mov byte [rbx + 0x610], sil
mov edi, 0x1388
cmp byte [rbx + 0x611], sil
je 0x14003abb9
nop dword [rax + rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x14003abb9
cmp byte [rbx + 0x611], sil
jne 0x14003aba0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.140095e64
nop
mov ecx, 1
call fcn.1400815e4
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.1400815e4
int3
Function at 0x14003d970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1400e7c70]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.14008148c
test eax, eax
jne 0x14003da01
cmp dword [0x1400e7cbc], 0x7fffffff
je 0x14003d9ec
lea edx, [rax + 2]
mov rcx, rbx
call fcn.1400462b0
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.140081494
mov dword [0x1400e7cbc], 0x7ffffffe
mov ecx, 6
call fcn.1400815e4
int3
mov ecx, 5
call fcn.1400815e4
int3
Function at 0x14003de60
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, [0x1400e7c70]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call fcn.14008148c
test eax, eax
jne 0x14003def8
cmp dword [0x1400e7cbc], 0x7fffffff
je 0x14003dee3
lea edx, [rax + 7]
mov rcx, rbx
call fcn.1400462b0
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.140081494
mov dword [0x1400e7cbc], 0x7ffffffe
mov ecx, 6
call fcn.1400815e4
int3
mov ecx, 5
call fcn.1400815e4
int3

Function at 0x14003e020
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, [0x1400e7c70]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.14008148c
test eax, eax
jne 0x14003e14a
cmp dword [0x1400e7cbc], 0x7fffffff
je 0x14003e135
lea edx, [rbp + 8]
mov rcx, rdi
call fcn.1400462b0
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140006700
mov rdx, rax
mov rcx, rdi
call fcn.140041960
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 0x14003e0f7
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
call fcn.140037520
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14003e104
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.140081494
mov rax, rbx
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [0x1400e7cbc], 0x7ffffffe
mov ecx, 6
call fcn.1400815e4
int3
mov ecx, 5
call fcn.1400815e4
int3
Function at 0x14003e160
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, [0x1400e7c70]
mov qword [rsp + 0x80], rsi
mov rcx, rsi
call fcn.14008148c
test eax, eax
jne 0x14003e2a4
cmp dword [0x1400e7cbc], 0x7fffffff
je 0x14003e28f
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.1400462b0
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.1400273f0
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 [0x1400b5db8]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], bpl
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140041960
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 0x14003e27b
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.140081494
mov dword [0x1400e7cbc], 0x7ffffffe
mov ecx, 6
call fcn.1400815e4
int3
mov ecx, 5
call fcn.1400815e4
int3