joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400323a0
Capabilities:
Check if file exists
Get file attributes
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 [0x1400da080]
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 r14, rcx
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0xe0]
cmp qword [rcx + 0x18], 8
jb 0x1400323ea
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140032424
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.140005030
jmp 0x140032549
mov ecx, 0x208
call fcn.1400748d0
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 r15d, 0x104
mov rsi, qword [rsp + 0x30]
lea r12d, [rdi + 2]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14003246e
mov rax, qword [r14]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003247b
mov r8, qword [rbx]
mov rdx, r13
cmp qword [r13 + 0x18], 8
jb 0x140032489
mov rdx, qword [r13]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140032496
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14003250d
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400324be
mov r8, qword [rbx]
mov rax, rbp
sub r8, rbp
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400324d8
add rax, 2
test ecx, ecx
jne 0x1400324c4
test edx, edx
je 0x14003250d
mov rcx, rbp
call fcn.1400742a0
inc r12d
imul r15d, r12d, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400748d0
mov rbp, rax
jmp 0x140032461
mov rsi, qword [rsp + 0x38]
xor r12d, r12d
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x140032515
mov r8, rdi
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.140005030
mov rcx, rbp
call fcn.1400742a0
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.140074280
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140032a30
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.140051a70
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.140076d60
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 0x140032b1f
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.140084634
int3
Function at 0x140037280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x1400de5b0]
call fcn.140073074
test eax, eax
jne 0x14003730a
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xe0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1400de5b0]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.14007307c
mov ecx, eax
call fcn.1400719a4
int3

Function at 0x140037940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
movzx edi, dl
lea rcx, [0x1400de5b0]
call fcn.140073074
test eax, eax
jne 0x1400379d0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
lea r8d, [rax + 4]
xor esi, esi
mov dword [rsp + 0x58], 7
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
lea r8d, [rsi + 4]
mov dword [rsp + 0x58], edi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1400de5b0]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14007307c
mov ecx, eax
call fcn.1400719a4
int3

Function at 0x1400379e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
movzx edi, dl
mov rbx, rcx
lea rsi, [0x1400de5b0]
mov qword [rsp + 0x30], rsi
mov rcx, rsi
call fcn.140073074
test eax, eax
jne 0x140037afe
mov dword [rsp + 0x98], 0xa
xor ebp, ebp
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x90]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x98]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
lea r8d, [rbp + 0x12]
lea rdx, str.TRAINER_INITIALIZE
lea rcx, [rsp + 0x38]
call fcn.140015a60
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002fe90
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0x98], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x98]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x90]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x90], 1
jne 0x140037ae7
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x90]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x98]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.14007307c
mov ecx, eax
call fcn.1400719a4
int3
Function at 0x140038f40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rdi, qword [0x1400ddfa0]
lea r14, [0x1400de5b0]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.140073074
test eax, eax
jne 0x140039077
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140015bc0
mov rdx, rax
mov rcx, rdi
call fcn.14002fe90
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x40], 2
mov rdx, rsi
mov rax, qword [rbx + 0x18]
cmp rsi, 0xf
jbe 0x140039030
mov rcx, rbx
call fcn.140020ee0
mov qword [rbx + 0x10], rbp
mov rax, qword [rbx + 0x18]
mov rdx, rbx
cmp rax, 0x10
jb 0x14003903c
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.14007307c
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.1400719a4
int3

Function at 0x14003acf0
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 0x14003ad34
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14003ad20
ret
Function at 0x140040c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, ecx
mov rbx, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, di
mov r8, rsi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140040d6c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rdi, rdi
je 0x140040d6c
test eax, eax
je 0x140040d6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140040d6c
mov rcx, qword [rbx]
mov qword [rbx + 8], rcx
mov rax, qword [rbx + 0x10]
sub rax, rcx
mov dword [rbp - 0x28], 0x29bbedc4
mov dword [rbp - 0x24], 0x9fe41c27
mov dword [rbp - 0x20], 0x1b790770
mov dword [rbp - 0x1c], 0x1a12968b
mov dword [rbp - 0x18], 0x6989bdc2
mov dword [rbp - 0x14], 0x1e122f40
mov dword [rbp - 0x10], 0x887be402
mov dword [rbp - 0xc], 0x757c40de
cmp rsi, rax
jbe 0x140040d22
mov edx, esi
mov rcx, rbx
call fcn.140040d90
xor edi, edi
test rsi, rsi
je 0x140040d68
nop dword [rax]
mov rdx, qword [rbx + 8]
mov rax, rdi
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rdi + r14]
mov byte [rbp - 0x30], cl
cmp rdx, qword [rbx + 0x10]
je 0x140040d54
mov byte [rdx], cl
inc qword [rbx + 8]
jmp 0x140040d60
lea r8, [rbp - 0x30]
mov rcx, rbx
call fcn.140020cc0
inc rdi
cmp rdi, rsi
jb 0x140040d30
mov al, 1
jmp 0x140040d6e
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140074280
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140041fa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140042090
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.14001d720
nop
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.14001d720
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.1400742d4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001d720
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.14001d720
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140049000]
xor edx, edx
xor ecx, ecx
call fcn.14008406c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400420d3
lea rcx, [rsp + 0x60]
call fcn.140042100
cmp dword [rsp + 0x38], edi
je 0x1400420e2
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400731c4
test eax, eax
jne 0x1400420ed
jmp 0x1400420b2
cmp qword [rdx + 0x18], 8
jb 0x14004209a
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400420a4
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140074280
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], edi
mov ecx, 6
call fcn.1400719e0
nop
mov ecx, 1
call fcn.1400719e0
int3
mov ecx, eax
call fcn.1400719a4
int3

Function at 0x1400421c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140042230
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140005030
mov dword [rsp + 0x34], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x140042294
lea rsi, [rcx + 0xd]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x140042278
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1a
lea rdx, [0x1400c7330]
call fcn.1400766b0
mov word [rdi + rsi*2], bp
jmp 0x1400422b7
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, [0x1400c7330]
movzx r8d, byte [rsp + 0x30]
mov edx, SafeArrayDestroy
mov rcx, rbx
call fcn.14002b4e0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140074280
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004ff80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
lea rcx, [rsp + 0x60]
call fcn.140015bc0
mov rsi, rax
mov qword [rsp + 0x40], rax
mov rbx, qword [0x1400ddfa0]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140015bc0
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
mov ecx, 0x30
call fcn.1400742d4
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
xor ebp, ebp
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x14003c360]
xor edx, edx
xor ecx, ecx
call fcn.14008406c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140050105
cmp dword [rsp + 0x38], ebp
je 0x140050114
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400731c4
test eax, eax
jne 0x14005011f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400500c7
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400500c2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400500ff
mov rcx, r8
call fcn.1400742a0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140074280
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14007abbc
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.1400719e0
nop
mov ecx, 1
call fcn.1400719e0
int3
mov ecx, eax
call fcn.1400719a4
int3
Function at 0x140051a70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov rcx, qword [0x1400ddfa0]
test rcx, rcx
je 0x140051b5f
mov dword [rsp + 0x68], 0xa
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x40], SafeArrayDestroy
movsd xmm0, qword [str.SAVE_SETTINGS]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400c7940]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400c7944]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], bl
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1400ddfa0]
call fcn.14002fe90
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x68]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x1400ddfa0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], 1
jne 0x140051b5f
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x78]
mov rcx, qword [0x1400ddfa0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
add rsp, 0x50
pop rbx
ret
Function at 0x140055120
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x1400ddec8]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0xa0]
call rax
mov rbx, rax
test rax, rax
jne 0x1400552aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140055bc0
nop
lea r8, [0x1400de360]
cmp qword [0x1400de378], 8
cmovae r8, qword [0x1400de360]
mov r9, qword [0x1400de370]
mov rcx, rax
call fcn.14002f820
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400de140]
cmp qword [0x1400de158], 8
cmovae r8, qword [0x1400de140]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140055255
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400552f3
call fcn.1400742a0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400552a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400552a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400552ed
call fcn.1400742a0
xor al, al
jmp 0x1400552cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140074280
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14007abbc
nop
call fcn.14007abbc
nop
int3
Function at 0x14005ee50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x14005eeb4
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x14005eea8
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14005ee90
test rdi, rdi
jne 0x14005eee2
xor eax, eax
jmp 0x14005ef69
mov rdx, r8
test rdi, rdi
je 0x14005eead
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14005eedc
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x14005eec0
jmp 0x14005eea8
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14005ef61
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14005ef4e
cmp dword [rbx + 0x14], ebp
jne 0x14005ef4e
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14005ef3f
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.1400765b0
test eax, eax
je 0x14005ef58
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005ef26
jmp 0x14005ef61
test rbx, rbx
je 0x14005ef61
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400678f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400da080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x1400679e2
xor ebp, ebp
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, rbp
test rbx, rbx
je 0x140067977
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, ebp
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x140067950
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400671a0
mov dword [r14], eax
test eax, eax
jne 0x140067a08
mov rax, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rax + 0x48]
call fcn.14006cd20
mov dword [r14], eax
test eax, eax
jne 0x140067a08
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140067670
test eax, eax
je 0x1400679e2
mov ecx, dword [rsi]
test eax, ecx
jne 0x140067a01
or ecx, eax
xor r8d, r8d
mov dword [rsi], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.14006cdb0
cmp al, 2
jne 0x1400679e2
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x140067930
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140074280
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x1400679e7
lea rcx, [r15 + 8]
xor r8d, r8d
mov rdx, rdi
call fcn.14006cdb0
cmp al, 2
jne 0x140067a81
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x140067a81
mov r11, qword [rdi + 8]
mov r10, rbp
test rdx, rdx
je 0x140067a69
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, ebp
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x140067a40
lea rcx, [rsp + 0x20]
call fcn.140067670
cmp eax, 0x10
jne 0x140067a81
or dword [rsi], eax
xor eax, eax
jmp 0x1400679e7
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x1400679e7
Function at 0x140084634
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400844c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400844c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400844c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400844c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400844c7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400844c7
cmp dword [rcx + 0xf8], 0
je 0x1400844c7
mov ecx, ebx
call fcn.140084568
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140084358
cmp dword [rbp + 0x20], 0
je 0x140084514
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008451c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140084460