joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180066590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov r8, rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1800665be
mov rdx, qword [rcx]
movabs rbx, 0xcbf29ce484222325
mov r9, rbx
xor esi, esi
mov ecx, esi
movabs r14, 0x100000001b3
test r10, r10
je 0x1800665f3
nop
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r14
inc rcx
cmp rcx, r10
jb 0x1800665e0
lea rdx, [rsp + 0x28]
call fcn.1800694f0
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1800666c7
mov r8, qword [rdi + 0x10]
mov rcx, rdi
mov r9, qword [rdi + 0x18]
cmp r9, 0x10
jb 0x18006661f
mov rcx, qword [rdi]
test r8, r8
je 0x180066643
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsi + rcx]
xor rbx, rax
imul rbx, r14
inc rsi
cmp rsi, r8
jb 0x180066630
mov rcx, qword [rdx + 0xa0]
and rcx, rbx
add rcx, rcx
mov rax, qword [rdx + 0x88]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [rdx + 0x78]
je 0x1800666ba
mov rsi, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180066682
mov rdx, qword [rdx]
mov rcx, rdi
cmp r9, 0x10
jb 0x18006668e
mov rcx, qword [rdi]
cmp r8, rax
jne 0x1800666af
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1800666a7
test rbx, rbx
je 0x1800666ba
mov rax, qword [rbx + 0x30]
jmp 0x1800666d7
mov r8, qword [rdi + 0x10]
mov r9, qword [rdi + 0x18]
cmp rbx, rsi
je 0x1800666ba
mov rbx, qword [rbx + 8]
jmp 0x180066670
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
sub rsp, 0x38
cmp qword [rdx + 0x18], 0x10
mov r10, rdx
mov r11, qword [rdx + 0x10]
jb 0x180066c85
mov r10, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x180066cc9
mov qword [rsp + 0x30], rbx
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rbx
cmp r8, r11
jb 0x180066cb0
mov rbx, qword [rsp + 0x30]
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.180068b10
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x180066ce9
add rax, 0x30
add rsp, 0x38
ret
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
Function at 0x18006bea0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18006bed1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1800bf0e8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1800bf0f8]
lea rdx, [rdi + rdi]
call fcn.180067f40
mov rax, qword [0x1800bf0e8]
lea r9, [rdi - 1]
mov qword [0x1800bf110], r9
mov qword [0x1800bf118], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18006c072
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1800bf0f8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18006bfbc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18006c033
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18006bff9
mov r10, qword [rdx]
cmp r10, rax
je 0x18006bff3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18006c033
cmp r9, rdx
je 0x18006c00f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18006c047
cmp r9, rdx
jne 0x18006c000
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18006c06d
mov r9, qword [0x1800bf110]
jmp 0x18006bf41
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18006c033
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800789b0
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 0x180078a11
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 0x1800789d0
mov ecx, dword [r9]
jmp 0x180078af8
cmp ecx, 0x4e0
jb 0x180078af8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180078a30
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180078a80
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 0x180078e40
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1800be010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edx, dword [0x1800bedfc]
mov rdi, rcx
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov eax, dword [rcx + rax]
cmp dword [0x1800c0978], eax
jle 0x180078ebf
lea rcx, [0x1800c0978]
call fcn.18007d0cc
cmp dword [0x1800c0978], 0xffffffff
jne 0x180078ebf
mov eax, 0x3e8
lea rcx, [0x1800c0980]
cdq
idiv dword [rdi + 0x10]
mov qword [0x1800c0980], 0
movsxd rdx, eax
call fcn.18007b9a0
lea rcx, [0x1800c0978]
call fcn.18007d060
cmp byte [rdi + 8], 0
je 0x180079045
cmp byte [0x1800bf190], 0
jne 0x180079045
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180079045
mov qword [rsp + 0x50], rbx
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x180078f0d
imul rcx, rax, 0x64
jmp 0x180078f2e
cqo
idiv rbx
mov r8, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rcx, rax
imul rax, r8, 0x3b9aca00
add rcx, rax
mov rdx, rcx
movabs rax, 0x431bde82d7b634db
sub rdx, qword [0x1800c0980]
imul rdx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, qword [0x1800c0988]
je 0x180078f62
jl 0x180079040
mov qword [0x1800c0980], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetCursorPos]
movzx r9d, word [rsp + 0x24]
mov edx, 0x201
movzx eax, word [rsp + 0x20]
mov r8d, 1
mov rcx, qword [0x1800bf198]
shl r9d, 0x10
or r9, rax
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rsp + 0x24]
mov edx, 0x202
movzx ecx, word [rsp + 0x20]
mov r8d, 1
shl r9d, 0x10
or r9, rcx
mov rcx, qword [0x1800bf198]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [rdi + 0x10]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rdi + 0x14]
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
call fcn.180078790
mov ecx, eax
mov eax, 0x3e8
cdq
idiv ecx
movsxd rbx, eax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x180079014
imul rax, rax, 0x64
jmp 0x180079032
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov qword [0x1800c0980], rax
mov qword [0x1800c0988], rbx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18007d040
add rsp, 0x40
pop rdi
ret
Function at 0x18007b510
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800be010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
mov byte [0x1800bf121], 1
call fcn.180079320
mov rbx, qword [0x1800bf548]
test rbx, rbx
je 0x18007b55b
mov rcx, rbx
call fcn.180060bf0
lea edx, [rsi + 0x68]
mov rcx, rbx
call fcn.18007d710
cmp qword [0x1800bf178], rsi
je 0x18007b581
lea r8, [0x1800bf178]
lea rdx, [rsp + 0x30]
call fcn.180069180
mov rcx, qword [rax]
add rcx, 0x18
call fcn.180066d00
mov rbx, qword [0x1800bf1b0]
test rbx, rbx
je 0x18007b5a2
mov rcx, rbx
call fcn.1800675f0
mov edx, 0x10
mov rcx, rbx
call fcn.18007d710
mov rdi, qword [0x1800bf178]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 2
lea rdx, [0x1800ad584]
lea rcx, [rsp + 0x30]
call fcn.18005f080
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x1800bf228]
call fcn.180066590
mov rbx, rax
mov rdx, qword [0x1800bf178]
lea rcx, [0x1800bf228]
call fcn.180066390
mov r8, rbx
mov rdx, qword [rax]
mov rcx, rdi
call fcn.18005f480
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x18007b649
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007b644
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18007b644
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007d710
mov rcx, qword [0x1800bf1a8]
test rcx, rcx
je 0x18007b661
mov rax, qword [rcx]
mov rdx, qword [rax + 0x3f0]
call rdx
mov ecx, 1
call fcn.18007d788
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18007b970]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18007b6e8
cmp dword [rsp + 0x58], 0
je 0x18007b6dc
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18007b6dc
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18007d040
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18007bdb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18007be14
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18007be02
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18007bdfb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18007bdcf
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800bf030]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007be24
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1800c09d0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18007be5a
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18007be90
mov eax, 0xa
jmp 0x18007bf1f
test esi, esi
je 0x18007beb2
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18007bed3
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18007bed3
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18007becd
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18007bed3
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18007c36c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18007c383
cmp r8b, 0x90
je 0x18007c383
cmp r8b, 0xcc
jne 0x18007c3a5
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18007c3a1
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18007c3a5
add edx, r10d
cmp edx, r9d
jb 0x18007c391
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18007c70c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18007c756
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800c09c8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x18007c794
cmp rbx, r14
jb 0x18007c78f
cmp rbx, r12
jae 0x18007c78f
cmp qword [rbx + 8], rsi
jne 0x18007c8eb
mov rbx, qword [rbx]
jmp 0x18007c776
mov r15, rdi
cmp rdi, r14
jb 0x18007c818
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x18007c80f
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18007c80f
cmp dword [rbp - 0x10], 0x10000
je 0x18007c7df
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18007c80f
jmp 0x18007c7ab
test r15, r15
je 0x18007c80f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18007c8b0
cmp r15, r14
jae 0x18007c79c
test rbx, rbx
jne 0x18007c8b0
cmp rdi, r12
ja 0x18007c8eb
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18007c8eb
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18007c8eb
cmp dword [rbp - 0x10], 0x10000
je 0x18007c886
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x18007c83f
test rdi, rdi
je 0x18007c8eb
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18007c812
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18007c8bc
mov rax, qword [0x1800c09c8]
mov qword [rbx], rax
mov qword [0x1800c09c8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004940
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004940
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002f10
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002eb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e10
mov rcx, rbx
call fcn.140003830
mov rdi, rax
test rax, rax
je 0x140002f32
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003970
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002eae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ec0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d70
nop dword [rax]
xor esi, esi
jmp 0x140002e38
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400034fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400034f3
test rsi, rsi
je 0x1400034f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003850
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003858
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003850
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400038ad
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 0x1400038a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003850
add rax, 0x28
cmp rax, r9
jne 0x140003890
xor eax, eax
ret

Function at 0x1400038b0
Capabilities:
Parse pe header

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

Function at 0x140003970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000398f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003998
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret