joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013e30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c4790]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140013e50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140013e58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140013e50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140013ead
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140013ea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140013e50
add rax, 0x28
cmp rax, r9
jne 0x140013e90
xor eax, eax
ret

Function at 0x140013eb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c4790]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140013ecf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140013ed8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140013ecf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140013f70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c4790]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140013f8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140013f98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007f380
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007f3c8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007f39a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400971d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, rdx
shr rax, 0x3a
jne 0x1400971ed
shl rdx, 5
mov rcx, rdx
add rsp, 0x28
jmp fcn.1400b77e0
shr rdx, 0x3b
je 0x1400971f8
call fcn.1400b9270
call fcn.1400b9230
int3

Function at 0x1400a4a20
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rcx, 0x3fffffffffffffff
mov rax, qword [rdx]
cmp rcx, rax
jb 0x1400a4a7b
lea r9, [rax + 1]
cmp r8, rax
jae 0x1400a4a59
add r8, r8
cmp rax, r8
jae 0x1400a4a59
cmp rcx, r8
jae 0x1400a4a68
movabs r9, 0x4000000000000000
mov qword [rdx], rcx
mov rcx, r9
add rsp, 0x28
jmp fcn.1400b77e0
lea r9, [r8 + 1]
mov qword [rdx], r8
mov rcx, r9
add rsp, 0x28
jmp fcn.1400b77e0
lea rcx, [0x1400bf8a0]
call fcn.1400b9420
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rcx + 8], rdx
ret

Function at 0x1400a86d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rax, 0x1fffffffffffffff
mov rcx, qword [rdx]
cmp rax, rcx
jb 0x1400a8731
cmp r8, rcx
jb 0x1400a8700
add rcx, 1
add rcx, rcx
add rsp, 0x28
jmp fcn.1400b77e0
add r8, r8
cmp rcx, r8
jae 0x1400a86eb
cmp rax, r8
jae 0x1400a8728
movabs rcx, 0x4000000000000000
mov qword [rdx], rax
add rsp, 0x28
jmp fcn.1400b77e0
mov qword [rdx], r8
lea rcx, [r8 + 1]
jmp 0x1400a86ef
lea rcx, str.basic_string::_M_create
call fcn.1400b9420
nop
nop
nop
mov qword [rcx + 8], rdx
ret

Function at 0x1400b77e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 1
test rcx, rcx
cmovne rax, rcx
mov rbx, rax
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
je 0x1400b7807
add rsp, 0x20
pop rbx
ret
call fcn.1400b2460
test rax, rax
je 0x1400b8190
call rax
jmp 0x1400b77f4
mov ecx, 8
call fcn.1400b78a0
lea r8, [fcn.1400afd50]
lea rdx, [0x1400ca510]
mov rcx, rax
mov rax, qword [str.p_a_r_]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400b7e20
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400b823c
call fcn.1400b7910
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400b7a40
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.14001db18
call fcn.1400b7dd0
call fcn.1400b7910
call fcn.1400b7a40
jmp 0x1400b822a
Function at 0x1400b8190
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 1
test rcx, rcx
cmovne rax, rcx
mov rbx, rax
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
je 0x1400b7807
add rsp, 0x20
pop rbx
ret
call fcn.1400b2460
test rax, rax
je 0x1400b8190
call rax
jmp 0x1400b77f4
mov ecx, 8
call fcn.1400b78a0
lea r8, [fcn.1400afd50]
lea rdx, [0x1400ca510]
mov rcx, rax
mov rax, qword [str.p_a_r_]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400b7e20
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400b823c
call fcn.1400b7910
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400b7a40
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.14001db18
call fcn.1400b7dd0
call fcn.1400b7910
call fcn.1400b7a40
jmp 0x1400b822a

Function at 0x1400b81c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 1
test rcx, rcx
cmovne rax, rcx
mov rbx, rax
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
je 0x1400b7807
add rsp, 0x20
pop rbx
ret
call fcn.1400b2460
test rax, rax
je 0x1400b8190
call rax
jmp 0x1400b77f4
mov ecx, 8
call fcn.1400b78a0
lea r8, [fcn.1400afd50]
lea rdx, [0x1400ca510]
mov rcx, rax
mov rax, qword [str.p_a_r_]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400b7e20
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400b823c
call fcn.1400b7910
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400b7a40
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.14001db18
call fcn.1400b7dd0
call fcn.1400b7910
call fcn.1400b7a40
jmp 0x1400b822a
Function at 0x14000f430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000f491
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000f450
mov ecx, dword [r9]
jmp 0x14000f57b
cmp ecx, 0x4e0
jb 0x14000f57b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000f4b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000f500
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400100f4
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140019760], eax
call fcn.140010b30
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140019760], 0
jne case.default.0x1400101de
mov ecx, 1
call fcn.140010b30
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
adc al, 0x30
mov ah, 0x5d
fmul dword [rsi + 0x54]
push rbx
xchg esp, eax
mov edi, 0x8a9d367f
lahf
cmp dword [0xce0878ce], ebp
sbb ah, bh
xchg edx, eax
invalid
Function at 0x140009590
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1400095dc
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 0x14000962a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140009625
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009649
mov rcx, r8
call fcn.14002e8b4
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.14004fe44
int3

Function at 0x140009650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov rax, qword [rbx + 0x10]
jb 0x1400096a2
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400096f5
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400096f0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009714
mov rcx, r8
call fcn.14002e8b4
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.14004fe44
int3
Function at 0x14000b6f0
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 qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14009f088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov r15, rdx
mov qword [rsp + 0x30], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0xe0]
cmp qword [rcx + 0x18], 8
jb 0x14000b741
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000b776
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], 7
mov word [r15], ax
lea r8d, [rax + 0x19]
lea rdx, [0x140089928]
mov rcx, r15
call fcn.1400020e0
jmp 0x14000b895
mov ecx, 0x208
mov r15d, 1
call fcn.14002ebd8
mov rsi, rax
movdqa xmm0, xmmword [0x14008c810]
movdqu xmmword [rsp + 0x58], xmm0
xor eax, eax
mov word [rsp + 0x48], ax
mov ebp, 0x104
lea rdi, [rax - 1]
nop word [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14000b7bd
mov rax, qword [r14]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000b7ca
mov r8, qword [rbx]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x14000b7d9
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x14000b7e7
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rbp - 1]
cmp eax, ecx
jb 0x14000b85b
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000b80d
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b827
add rax, 2
test ecx, ecx
jne 0x14000b813
test edx, edx
je 0x14000b85b
mov rcx, rsi
call fcn.14002e8b4
inc r15d
imul ebp, r15d, 0x104
mov ecx, ebp
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14002ebd8
mov rsi, rax
jmp 0x14000b7b0
mov r15, qword [rsp + 0x30]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14000b860
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400020e0
mov rcx, rsi
call fcn.14002e8b4
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r15 + 0x10], xmm1
mov rax, r15
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002e890
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000dc30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f088]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rdi, [0x1400a4950]
mov qword [rbp - 1], rdi
mov rcx, rdi
call fcn.14002d46c
test eax, eax
je 0x14000dc83
mov ecx, eax
call fcn.14002cf28
nop
mov dword [rbp - 0x39], 1
xor esi, esi
mov dword [rbp - 0x31], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x31]
lea r8d, [rsi + 4]
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbx + 0x358]
lea rcx, [rbp + 7]
call fcn.1400102e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea rdx, [rbx + 0x378]
lea rcx, [rbp + 7]
call fcn.1400102e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea rdx, [rbx + 0x398]
lea rcx, [rbp + 7]
call fcn.1400102e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea rdx, [rbx + 0x3b8]
lea rcx, [rbp + 7]
call fcn.1400102e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea rdx, [rbx + 0x2d8]
lea rcx, [rbp + 7]
call fcn.1400102e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea r8, [rbx + 0x4b0]
cmp qword [r8 + 0x10], rsi
jne 0x14000de4a
movdqa xmm0, xmmword [0x14008c820]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], sil
lea r8d, [rsi + 0xb]
lea rdx, [0x140089ac0]
lea rcx, [rbp + 0x27]
call fcn.140002290
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140013bf0
nop
lea r9d, [rsi + 6]
lea r8, [0x140089ad0]
mov rcx, rax
call fcn.140005910
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140009650
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14000ddfc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ddf7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000decd
call fcn.14002e8b4
movdqa xmm0, xmmword [0x14008c810]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x14000de65
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000de43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dec7
call fcn.14002e8b4
jmp 0x14000de65
lea rdx, [0x140089ad0]
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rdx, rax
mov rcx, rbx
call fcn.140009650
lea rdx, [rbp + 7]
call fcn.14000e1c0
mov rdx, rax
mov rcx, rbx
call fcn.140009590
lea rdx, [rbp + 7]
call fcn.14000e530
mov rdx, rax
mov rcx, rbx
call fcn.140009590
nop
mov rcx, rdi
call fcn.14002d490
test eax, eax
je 0x14000dea2
mov ecx, eax
call fcn.14002cf28
nop
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002e890
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14004fe44
nop
call fcn.14004fe44
int3
Function at 0x14000dee0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rcx
lea rcx, [0x1400a4950]
call fcn.14002d46c
test eax, eax
je 0x14000df0e
mov ecx, eax
call fcn.14002cf28
mov dword [rsp + 0x58], 2
xor edi, edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xb0]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a4950]
call fcn.14002d490
test eax, eax
je 0x14000df7d
mov ecx, eax
call fcn.14002cf28
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000fbb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rsi, r8
mov rbx, rdx
mov qword [rax - 0x50], rdx
xor ebp, ebp
mov dword [rax - 0x68], ebp
mov rdi, qword [0x1400a4408]
lea r14, [0x1400a4950]
mov qword [rax - 0x48], r14
mov rcx, r14
call fcn.14002d46c
test eax, eax
je 0x14000fc03
mov ecx, eax
call fcn.14002cf28
nop
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140002000
mov rdx, rax
mov rcx, rdi
call fcn.140009590
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]
mov r8d, 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 + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x40], 2
mov rdx, rsi
mov rcx, rbx
call fcn.140004610
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000fca6
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.14002d490
test eax, eax
je 0x14000fcd2
mov ecx, eax
call fcn.14002cf28
nop
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140010fc0
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 [0x14009f088]
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 0x1400110ec
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 0x1400110ec
test eax, eax
je 0x1400110ec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400110ec
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
mov dword [rbp - 0x28], 0x2d291a9b
mov dword [rbp - 0x24], 0x2b8852c4
mov dword [rbp - 0x20], 0xd6548255
mov dword [rbp - 0x1c], 0x958ff7c9
mov dword [rbp - 0x18], 0x51e34834
mov dword [rbp - 0x14], 0x409b5505
mov dword [rbp - 0x10], 0xf7918624
mov dword [rbp - 0xc], 0x32f6411
cmp rsi, rax
jbe 0x1400110a2
mov edx, esi
mov rcx, rbx
call fcn.140011130
xor edi, edi
test rsi, rsi
je 0x1400110e8
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 qword [rbx + 0x10], rdx
je 0x1400110d4
mov byte [rdx], cl
inc qword [rbx + 8]
jmp 0x1400110e0
lea r8, [rbp - 0x30]
mov rcx, rbx
call fcn.140011270
inc rdi
cmp rdi, rsi
jb 0x1400110b0
mov al, 1
jmp 0x1400110ee
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002e890
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140012e30
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009f088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x50]
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 + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bp
jne 0x140012ea6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400020e0
mov dword [rsp + 0x30], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x140012f09
lea rsi, [rcx + 0xd]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x140012eed
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1a
lea rdx, [0x14008ac00]
call fcn.14004cf20
mov word [rdi + rsi*2], bp
jmp 0x140012f26
mov qword [rsp + 0x20], 0xd
lea r9, [0x14008ac00]
mov edx, 0xd
mov rcx, rbx
call fcn.140002fb0
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002e890
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret