joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64ef30
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x64f070
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.0064c270
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x64f040
mov ecx, 0x20
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x64f040
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x64f0a0
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x64f080
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x0064ec50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x64f0f0
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.0064cee0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x64f057
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.0064abc0
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x64ef5c
mov rcx, rdi
call fcn.0064edf0
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x64efc6
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x0064ec50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x64f025
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.0064abc0
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 0xb
jmp 0x64f057

Function at 0x655b30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x655b63
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
xor ebx, ebx
jmp 0x655b59
Function at 0x655b70
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x0070b750]
call fcn.00655b30
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x655ba8
mov ecx, 1
call sub.msvcrt.dll_exit
test byte [rsi + 0x194], 1
jne 0x655c22
mov rbx, qword [0x0070b748]
test rbx, rbx
je 0x655c17
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x655bff
mov r8, qword [rbx]
test r8, r8
je 0x655be3
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x0070b748]
call fcn.0064e850
mov rbx, qword [0x0070b748]
test rbx, rbx
je 0x655c17
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x655bd4
lea rcx, [rsi + 0x70]
mov edx, edi
call sub.msvcrt.dll_longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x655c39
cmp dword [0x0070b758], 0
jne 0x655c3e
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x655c2a
mov dword [rsp + 0x2c], ecx
call fcn.0064b640
mov ecx, dword [rsp + 0x2c]
jmp 0x655c33
Function at 0x65c190
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, 1
test edx, edx
mov rbx, rcx
cmovg esi, edx
cmp edx, 0x3ffffff
jg 0x65c208
movsxd rdx, dword [rcx]
movsxd r8, esi
shl r8, 3
test edx, edx
je 0x65c1e8
mov rax, qword [0x006e35e0]
shl rdx, 3
mov rcx, qword [rcx + 8]
call qword [rax]
mov edx, dword [rbx + 4]
mov ecx, dword [rbx + 4]
sar edx, 0x1f
xor ecx, edx
sub ecx, edx
cmp ecx, esi
jg 0x65c238
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x006e35a0]
mov rcx, r8
call qword [rax]
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.0067f620]
lea rcx, str.gmp:_overflow_in_mpz_type_n
mov r9, rax
mov r8d, 0x1a
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop word [rax + rax]
mov dword [rbx + 4], 0
jmp 0x65c1db

Function at 0x677860
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0067f620
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0067f620
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x6778d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0070bd74]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x677a78
mov rax, qword [0x0070bd78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x67791c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6779a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x677900
mov rcx, r12
call fcn.00678630
mov rbp, rax
test rax, rax
je 0x677ab2
mov rax, qword [0x0070bd78]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00678760
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0070bd78]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x677ac1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6779a0
sub eax, 4
and eax, 0xfffffffb
jne 0x677a30
add dword [0x0070bd74], 1
cmp ebx, 8
jae 0x6779d8
test bl, 4
jne 0x677a80
test ebx, ebx
je 0x6779c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x677aa0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6779c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x677a0a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0070bd78]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6779a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00677860
nop dword [rax]
xor edi, edi
jmp 0x677927
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6779c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6779c9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00677860
mov rax, qword [0x0070bd78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00677860
nop
nop dword [rax]
Function at 0x6782a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0070c060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0070c040]
test rbx, rbx
je 0x6782f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6782eb
test r12, r12
je 0x6782eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6782d0
lea rcx, [0x0070c060]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x678630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x006e3610]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6786a9
mov rcx, r10
call fcn.00678500
test eax, eax
je 0x6786a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6786a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x67869d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6786a9
add r8, 0x28
cmp r8, r9
jne 0x678688
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r15
sub rsp, 0x2f0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
je 0x1400010e7
jmp 0x140001034
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001047
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
xor edi, edi
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0x88]
cmp dword [rsi + rax + 0x18], edi
jbe 0x1400010c4
mov r15d, dword [rsi + rax + 0x20]
lea rax, [r15 + rdi*4]
mov edx, dword [rax + rbx]
add rdx, rbx
lea rcx, [0x1400042c8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001093
inc edi
cmp edi, dword [rsi + rbx + 0x18]
jb 0x14000106f
jmp 0x1400010c4
mov ecx, dword [rsi + rbx + 0x24]
add rcx, rbx
movzx edx, word [rcx + rdi*2]
mov ecx, dword [rsi + rbx + 0x1c]
add rcx, rbx
mov r10d, dword [rcx + rdx*4]
add r10, rbx
je 0x1400010c4
xor r9d, r9d
lea r8, str.aaaaa..
lea rdx, str.Meow_dasmeow_
xor ecx, ecx
call r10
mov eax, 1
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
mov ecx, 0x27395000
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, str.das..das
lea rdx, str.Meow_mdasdaseow_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
and qword [rsp + 0x20], 0
lea rdx, [0x140007ae8]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140001a50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a9c
xor al, al
add rsp, 0x28
ret
Function at 0x6d869830
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d88a5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8699b8
mov rax, qword [0x6d88a5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d86987c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d869905
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d869860
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8699ed
mov rax, qword [0x6d88a5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d88a5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8699d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8698fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d869960
add dword [0x6d88a5e4], 1
cmp edi, 8
jae 0x6d869933
test dil, 4
jne 0x6d8699a4
test edi, edi
je 0x6d869928
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8699bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d869928
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d86994c
jmp 0x6d869928
add rsi, qword [0x6d88a5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8698fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d869928
xor esi, esi
jmp 0x6d869887
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d869928
mov rax, qword [0x6d88a5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d86a140
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d88a8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d88a8a0]
test rbx, rbx
je 0x6d86a194
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d86a18b
test rsi, rsi
je 0x6d86a18b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d86a170
lea rcx, [0x6d88a8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d86a3d0
Capabilities:
Parse pe header

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

Function at 0x6d86a3f0
Capabilities:
Enumerate pe sections

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

Function at 0x6d86a4d0
Capabilities:
Enumerate pe sections

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

Function at 0x6d86a640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8871f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d86a660
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d86a658
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d86a6bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d86a6b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d86a6c4
add rax, 0x28
cmp rax, r9
jne 0x6d86a6a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d86a6e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8871f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d86a74e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d86a74e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d86a74e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d86a74e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d86a745
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d86a755
add rcx, 0x28
cmp rcx, rax
jne 0x6d86a730
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d86a768
jmp 0x6d86a74e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d86a776
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d86a74e
test r9d, r9d
jg 0x6d86a760
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d86aae0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x100075150
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100080558], rdi
je 0x1000751b0
cmp rax, rdi
jne 0x1000751a3
mov r12d, 1
jmp 0x1000751b0
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x100075189
mov eax, dword [0x100080550]
cmp eax, 1
jne 0x1000751c5
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10007522c
mov eax, dword [0x100080550]
cmp eax, ebx
jne 0x100075222
mov dword [0x100080550], 1
lea r13, [0x100001b48]
lea rdi, [0x100001b30]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x100075214
cmp eax, ebx
jne 0x100075214
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100075209
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000751f2
cmp eax, ebx
je 0x10007522c
mov eax, 0xff
jmp 0x100075374
mov dword [0x10007f924], 1
mov eax, dword [0x100080550]
cmp eax, 1
jne 0x100075254
lea rdx, [0x100001b28]
lea rcx, [0x100001ab8]
call sub.msvcrt.dll__initterm
mov dword [0x100080550], 2
cmp r12d, ebx
jne 0x100075263
mov rax, rbx
xchg qword [0x100080558], rax
cmp qword [0x100080570], rbx
je 0x10007528b
lea rcx, [0x100080570]
call fcn.1000756ac
cmp eax, ebx
je 0x10007528b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100080570]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1000752a1
mov eax, 0xff
jmp 0x100075374
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x100075326
cmp word [rcx], bx
je 0x1000752bc
cmp edx, ebx
jne 0x100075326
cmp word [rcx], bx
je 0x1000752d2
cmp word [rcx], 0x20
ja 0x1000752d2
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000752bc
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.1000337b8
mov dword [0x10007f920], eax
cmp dword [0x10007f904], ebx
jne 0x100075310
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10007f924], ebx
jne 0x100075324
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10007f920]
jmp 0x100075374
cmp word [rcx], 0x22
jne 0x100075339
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000752ad
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100197000
add rsp, 0x28
jmp 0x100075150
Function at 0x180001010
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [0x180021a58], 0
mov rdi, r8
mov r15, rdx
mov rbx, rcx
jne 0x180001069
mov ecx, 0x100
call fcn.180007240
mov qword [0x180021a58], rax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
xor r9d, r9d
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
xor rcx, 3
mov byte [rcx + rax], r9b
inc r9d
cmp r9d, 0x40
jl 0x180001050
mov qword [rsp + 0x50], r12
test r15b, 3
jne 0x1800011d7
mov rax, r15
shr rax, 2
lea rcx, [rax + rax*2]
mov qword [rdi], rcx
cmp byte [rbx + r15 - 1], 0x3e
jne 0x180001094
dec rcx
mov qword [rdi], rcx
cmp byte [rbx + r15 - 2], 0x3e
jne 0x1800010a2
dec rcx
mov qword [rdi], rcx
add rcx, 0xa
mov rax, 0xffffffffffffffff
cmovb rcx, rax
call fcn.180007240
mov r12, rax
test rax, rax
je 0x1800011d7
xor r9d, r9d
xor edx, edx
test r15, r15
je 0x1800011c6
mov qword [rsp + 0x40], rbp
mov rcx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], r14
mov r14, qword [rdi]
mov rdi, qword [0x180021a58]
nop dword [rax]
movsxd rax, r9d
lea r10d, [r9 + 1]
movsx r8, byte [rax + rbx]
cmp r8b, 0x3e
jne 0x180001107
xor r8d, r8d
jmp 0x18000110c
movsx r8d, byte [r8 + rdi]
movsxd rax, r10d
inc r10d
movsx r9, byte [rax + rbx]
cmp r9b, 0x3e
jne 0x180001121
xor ebp, ebp
jmp 0x180001126
movsx ebp, byte [r9 + rdi]
movsxd rax, r10d
lea r11d, [r10 + 1]
movsx r9, byte [rax + rbx]
cmp r9b, 0x3e
jne 0x18000113c
xor esi, esi
jmp 0x180001141
movsx esi, byte [r9 + rdi]
movsxd rax, r11d
lea r9d, [r11 + 1]
movsx r10, byte [rax + rbx]
cmp r10b, 0x3e
jne 0x180001157
xor eax, eax
jmp 0x18000115c
movsx eax, byte [r10 + rdi]
shl r8d, 6
add r8d, ebp
shl r8d, 6
add r8d, esi
shl r8d, 6
add r8d, eax
movsxd rax, edx
cmp rax, r14
jae 0x180001186
mov eax, r8d
inc edx
shr eax, 0x10
mov byte [rcx], al
inc rcx
movsxd rax, edx
cmp rax, r14
jae 0x18000119b
mov eax, r8d
inc edx
shr eax, 8
mov byte [rcx], al
inc rcx
movsxd rax, edx
cmp rax, r14
jae 0x1800011ab
inc edx
mov byte [rcx], r8b
inc rcx
movsxd rax, r9d
cmp rax, r15
jb 0x1800010f0
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rax, r12
mov r12, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
mov r12, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret