joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662060c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r14
sub rsp, 0x60
mov r14d, r9d
mov rbp, r8
mov rbx, rcx
lea rax, [r14 + rdx]
cmp qword [rcx + 0x1a8], rax
jge 0x662060fe
mov eax, 0xc000007b
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rcx + 0x1a0]
test rax, rax
je 0x6620612b
add rdx, rax
mov r8, r14
mov rcx, rbp
call fcn.6620e7b0
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x1b0], 0
jne 0x6620614b
mov eax, 0xc0000008
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
cmp byte [rcx + 0x1e4], 0
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x80], 0
je 0x662061af
mov rdi, qword [rsp + 0xa0]
test rdi, rdi
jne 0x6620619d
lea rcx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100002
mov byte [rsp + 0x20], dil
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov rdi, qword [rsp + 0x80]
jmp 0x662061a6
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x662061b1
jmp 0x66206241
xor edi, edi
mov rcx, qword [rbx + 0x1b0]
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
cmp eax, 0x103
jne 0x6620621b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
je 0x66206217
js 0x6620622c
mov ebx, 0xc0000001
jmp 0x6620622c
mov ebx, dword [rsp + 0x50]
test ebx, ebx
js 0x6620622c
cmp qword [rsp + 0x58], r14
mov eax, 0xc000007b
cmovne ebx, eax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x6620623f
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
Function at 0x662073e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
xor eax, eax
cmp byte [rcx + 2], al
setne al
ret
Function at 0x66208030
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x6620809a
test rdx, rdx
je 0x6620809a
xor edx, edx
mov rcx, rbx
call fcn.662041f0
xor eax, eax
or r9, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov r8d, 0x7ffe0030
mov dl, 1
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.66203710
lea rdx, str.System32
mov rcx, rbx
call fcn.6620bee0
mov rdx, rdi
mov rcx, rbx
call fcn.6620bee0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x6620a9a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, r9
movzx r12d, r8b
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x6620ab18
mov eax, 0xffffffff
cmp rdx, rax
je 0x6620ab18
cmp rdx, 0xffffffffffffffff
je 0x6620ab18
mov rdi, qword [rsp + 0x78]
cmp rdi, 0x40
jae 0x6620a9fc
mov eax, 0xc000007b
jmp 0x6620ab1d
lea r8, [rsp + 0x58]
call fcn.6620a310
test eax, eax
js 0x6620ab1d
mov eax, 0x5a4d
cmp word [rsp + 0x58], ax
je 0x6620aa24
mov eax, 0xc000007b
jmp 0x6620ab1d
lea rdx, [rbx + 0x3c]
lea r8, [rsp + 0x20]
mov rcx, r14
call fcn.6620a250
test eax, eax
js 0x6620ab1d
mov ecx, dword [rsp + 0x20]
mov edx, ecx
cmp rcx, rdi
jae 0x6620ab0a
lea eax, [rcx + 0x18]
cmp eax, ecx
jb 0x6620ab0a
cmp rax, rdi
jae 0x6620ab0a
cmp ecx, 0x10000000
jae 0x6620ab0a
add rdx, rbx
lea r8, [rsp + 0x24]
mov rcx, r14
call fcn.6620a250
test eax, eax
js 0x6620ab1d
cmp dword [rsp + 0x24], 0x4550
je 0x6620aa98
mov eax, 0xc000007b
jmp 0x6620ab1d
mov esi, dword [rsp + 0x20]
add rsi, rbx
test r15, r15
je 0x6620aaa7
mov qword [r15], rsi
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x6620ab06
mov qword [rdi + 0x108], rsi
mov qword [rdi + 0x110], rbx
mov byte [rdi + 0x118], r12b
mov r9d, 0x18
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.66209eb0
test eax, eax
js 0x6620ab1d
movzx ecx, word [rdi + 0x14]
mov eax, 0xf0
cmp ax, cx
jb 0x6620aaef
movzx eax, cx
mov r9d, eax
lea r8, [rdi + 0x18]
lea rdx, [rsi + 0x18]
mov rcx, r14
call fcn.66209eb0
test eax, eax
js 0x6620ab1d
xor eax, eax
jmp 0x6620ab1d
mov eax, 0xc000007b
jmp 0x6620ab1d
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x6620ab40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rdx + 0x108]
movzx r10d, word [rdx + 0x14]
xor edi, edi
add rbx, 0x18
mov r15, r9
mov ebp, r8d
add rbx, r10
mov r14, rdx
mov rsi, rcx
cmp di, word [rdx + 6]
jae 0x6620ac31
cmp byte [rsi + 0x70], 0
je 0x6620ab9e
lea rcx, [rsp + 0x30]
mov r8d, 0x28
mov rdx, rbx
call fcn.6620e7b0
jmp 0x6620ac0e
call fcn.66209ab0
test rax, rax
je 0x6620abda
cmp byte [rax + 0x3c], 0
je 0x6620abda
mov rdx, qword [rsi + 0x58]
lea rcx, [rsp + 0x88]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov r8, rbx
mov rcx, rax
mov qword [rsp + 0x20], 0x28
call fcn.66209f70
jmp 0x6620abff
mov rcx, qword [rsi + 0x58]
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x30]
mov r9d, 0x28
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x6620ac36
cmp qword [rsp + 0x88], 0x28
jne 0x6620ac85
mov ecx, dword [rsp + 0x3c]
cmp ecx, ebp
ja 0x6620ac1e
add ecx, dword [rsp + 0x40]
cmp ebp, ecx
jb 0x6620ac50
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jb 0x6620ab83
mov eax, 0xc000007a
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
test r15, r15
je 0x6620ac58
mov qword [r15], rbx
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x6620ac81
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
movsd xmm0, qword [rsp + 0x50]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
xor eax, eax
jmp 0x6620ac36
mov eax, 0xc0000004
jmp 0x6620ac36

Function at 0x6620cc60
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [rcx]
mov r10, r8
movsxd r8, r9d
add al, 0x29
cmp al, 1
ja 0x6620c667
mov rdx, r10
jmp 0x6620cc60
lea rdx, [rcx + 1]
mov rcx, r10
jmp fcn.6620e7b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx esi, byte [rcx]
inc rcx
mov rbx, r8
lea eax, [rsi + 0x29]
mov rdi, rdx
cmp al, 1
jbe 0x6620ccb0
test rbx, rbx
je 0x6620cd2c
sub rcx, rdx
nop
movzx eax, byte [rcx + rdi]
lea rdi, [rdi + 1]
mov byte [rdi - 1], al
dec rbx
jne 0x6620cc90
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.6620cf10
cmp sil, 0xd8
jne 0x6620cd2c
xor ecx, ecx
test rbx, rbx
je 0x6620cd2c
cmp rbx, 0x20
jb 0x6620cd09
movdqa xmm2, xmmword [0x66220070]
mov rax, rbx
mov rdx, rbx
and eax, 0x1f
sub rdx, rax
lea rax, [rdi + 0x10]
movdqu xmm0, xmmword [rax - 0x10]
add rcx, 0x20
lea rax, [rax + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp rcx, rdx
jb 0x6620cce0
cmp rcx, rbx
jae 0x6620cd2c
lea rax, [rcx + rdi]
sub rbx, rcx
nop word [rax + rax]
xor byte [rax], 0xf0
lea rax, [rax + 1]
dec rbx
jne 0x6620cd20
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140029d90
Capabilities:
Encode data using xor
Hash data using fnv

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400f4fc8], 0
jne 0x140039000
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400ba2e8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400ba2f8]
call sub.mscoree.dll_CLRCreateInstance
lea rdi, [0x1400f4fc8]
test eax, eax
js 0x140038fc4
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400ba308]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140038fb5
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400ba338]
mov r9, rdi
lea rdx, [0x1400ba328]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140038faa
mov rcx, qword [0x1400f4fc8]
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 0x140039000
cmp qword [0x1400f4fc8], 0
jne 0x140039000
lea r9, [0x1400ba338]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400ba328]
xor edx, edx
lea rcx, str.v2.0.50727
call sub.mscoree.dll_CorBindToRuntime
test eax, eax
js 0x14003900d
mov rcx, qword [0x1400f4fc8]
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, [0x1400ba410]
lea rdx, [0x1400ba430]
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 0x14003dfb0
Capabilities:
Create thread
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 rdi, rcx
add rcx, 0x10
call fcn.140055e90
mov ecx, dword [rdi + 0x340]
test al, al
je 0x14003e147
cmp ecx, 1
je 0x14003e12f
mov dword [rdi + 0x340], 1
lea rcx, [0x1400f4a80]
call fcn.140043660
test al, al
je 0x14003e1a9
cmp byte [rdi + 0x598], 0
jne 0x14003e1b1
mov byte [rdi + 0x598], 1
cmp qword [0x1400f46b8], 0
je 0x14003e04c
lea rcx, [rdi + 0x80]
call fcn.140060c10
lea rcx, [rdi + 0x80]
call fcn.140060a70
mov rcx, qword [0x1400f46b8]
test rcx, rcx
je 0x14003e1b7
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edx, edx
mov rcx, rdi
call fcn.140042690
mov rcx, rdi
call fcn.140040c20
lea rcx, [rdi + 0x10]
call fcn.140055da0
test al, al
je 0x14003e1a9
lea rcx, [rdi + 0x10]
call fcn.1400564e0
lea rbx, [rdi + 0x630]
cmp byte [rbx + 8], 0
jne 0x14003e116
cmp qword [rbx + 0x18], 0
je 0x14003e116
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.140087c10
xor esi, esi
test rax, rax
je 0x14003e0b7
mov qword [rax], rbx
jmp 0x14003e0ba
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, [0x140039b60]
xor edx, edx
xor ecx, ecx
call fcn.14009791c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003e1d0
cmp dword [rsp + 0x38], 0
je 0x14003e1bd
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140086a68
test eax, eax
jne 0x14003e1c8
mov dl, 1
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.140042690
lea rcx, [rdi + 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.140002770
test ecx, ecx
je 0x14003e199
cmp ecx, 1
jne 0x14003e159
lea rcx, [rdi + 0x10]
call fcn.140002770
xor esi, esi
mov dword [rdi + 0x340], esi
mov rcx, rdi
call fcn.140040c20
mov byte [rdi + 0x638], sil
mov ebx, 0x1388
cmp byte [rdi + 0x639], sil
je 0x14003e199
nop
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0x32
js 0x14003e199
cmp byte [rdi + 0x639], sil
jne 0x14003e180
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.140097f98
int3
call fcn.140042590
int3
call fcn.1400854a0
nop
mov ecx, 1
call fcn.14008594c
int3
mov ecx, eax
call fcn.140085910
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.14008594c
int3
Function at 0x140040a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rsp + 0x88], rax
movzx edi, r8b
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x58]
call fcn.140007c50
mov byte [rsp + 0x78], dil
mov qword [rsp + 0x80], rsi
mov ecx, 0x30
call fcn.140087c10
test rax, rax
je 0x140040ad5
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rax + 0x10], xmm1
movdqa xmm0, xmmword [0x1400b6ec0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rsi
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140039a00]
xor edx, edx
xor ecx, ecx
call fcn.14009791c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140040bef
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140040b4a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040b45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040c02
call fcn.140087c4c
cmp dword [rsp + 0x38], 0
je 0x140040c08
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140086a68
test eax, eax
jne 0x140040c13
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140040bb1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140040bac
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040be9
mov rcx, r8
call fcn.140087c4c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140088250
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14008e46c
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14008594c
nop
call fcn.14008e46c
int3
mov ecx, 1
call fcn.14008594c
int3
mov ecx, eax
call fcn.140085910
int3

Function at 0x140040c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1400f5060]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.1400857fc
test eax, eax
jne 0x140040c90
lea edx, [rax + 2]
mov rcx, rbx
call fcn.14004a2f0
mov eax, dword [rbx + 0xe0]
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.140085804
mov ecx, eax
call fcn.140085910
int3
Function at 0x140040fd0
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, [0x1400f5060]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call fcn.1400857fc
test eax, eax
jne 0x140041047
lea edx, [rax + 7]
mov rcx, rbx
call fcn.14004a2f0
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.140085804
mov ecx, eax
call fcn.140085910
int3
Function at 0x140042470
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, [0x1400f5060]
mov qword [rsp + 0x50], r14
mov rcx, r14
call fcn.1400857fc
test eax, eax
jne 0x14004257a
lea edx, [rbp + 8]
mov rcx, rdi
call fcn.14004a2f0
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140007c50
mov rdx, rax
mov rcx, rdi
call fcn.140045ca0
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]
mov qword [rbx], rbp
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
mov rax, qword [rbx + 0x18]
cmp rsi, 0xf
jbe 0x14004253d
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
call fcn.1400055e0
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx + 0x18]
mov rdx, rbx
cmp rax, 0x10
jb 0x140042549
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.140085804
mov rax, rbx
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, eax
call fcn.140085910
int3

Function at 0x140042590
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.140040540
mov rcx, rax
call fcn.140059a20
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.14008a730
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm1, xmm1
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
movups xmmword [rsp + 0xb4], xmm1
movups xmmword [rsp + 0xc4], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140042687
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140097f98
int3
Function at 0x140042690
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, [0x1400f5060]
mov qword [rsp + 0x80], rsi
mov rcx, rsi
call fcn.1400857fc
test eax, eax
jne 0x140042784
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.14004a2f0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayDestroy
lea r8d, [rbp + 0x12]
lea rdx, str.TRAINER_INITIALIZE
lea rcx, [rsp + 0x30]
call fcn.1400294c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140045ca0
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 0x140042770
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.140085804
mov ecx, eax
call fcn.140085910
int3
Function at 0x140045ca0
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 0x140045cf1
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 0x140045d3f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140045d3a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045d5e
mov rcx, r8
call fcn.140087c4c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.14008e46c
int3

Function at 0x140045d70
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 0x140045dcd
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.140028d70
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140049750
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 0x140049794
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140049780
ret

Function at 0x140049cd0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, r9
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov r15, rcx
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0xe0]
call fcn.14004f040
test al, al
jne 0x140049d48
xor r12d, r12d
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
lea r8d, [r12 + 0x19]
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rsi
call fcn.140029620
jmp 0x140049e75
mov ecx, 0x208
call fcn.1400882d8
mov rbp, rax
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
lea rdi, [r12 - 1]
mov r14d, 0x104
mov rsi, qword [rsp + 0x30]
lea r12d, [rdi + 2]
mov rax, r15
cmp qword [r15 + 0x18], 8
jb 0x140049d92
mov rax, qword [r15]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140049d9f
mov r8, qword [rbx]
mov rdx, r13
cmp qword [r13 + 0x18], 8
jb 0x140049dad
mov rdx, qword [r13]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140049dba
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r14 - 1]
cmp eax, ecx
jb 0x140049e39
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140049de2
mov r8, qword [rbx]
mov rax, rbp
sub r8, rbp
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140049e04
add rax, 2
test ecx, ecx
jne 0x140049df0
test edx, edx
je 0x140049e39
mov rcx, rbp
call fcn.140087c4c
inc r12d
imul r14d, r12d, 0x104
mov ecx, r14d
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400882d8
mov rbp, rax
jmp 0x140049d85
mov rsi, qword [rsp + 0x38]
xor r12d, r12d
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x140049e41
mov r8, rdi
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.140029620
mov rcx, rbp
call fcn.140087c4c
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140088250
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret