joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bc50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001bcf7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001bcaa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002b5a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002ae10
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400e66f0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001bcff
mov rcx, rbx
call fcn.14002ae10
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140024af0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400e66e8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x31fc], ecx
test rbx, rbx
je 0x140024b5f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140024b70
lea rdx, [0x1400683fc]
mov rcx, rbx
mov rdi, rax
call fcn.140019650
mov rbx, rax
test rax, rax
je 0x140024b5a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140028890
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400e66e8]
cmp byte [rbx + 0x31f8], 0
jne 0x140028a08
cmp dword [rbx + 0x3220], 0
je 0x1400288cd
mov r8d, 0x2b0c
lea rdx, str.C:Users_vmmdllDesktopimpact_v13imguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140028a01
lea rdx, [0x1400683f8]
mov qword [rsp + 0x40], rdi
call fcn.140019650
mov rdi, rax
test rax, rax
je 0x1400289fc
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400289e9
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400289e9
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400289e9
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400289e9
mov rbp, rsi
cmp rsi, 0xffffffffffffffff
je 0x1400289e9
mov rax, qword [0x1400e66e8]
test rax, rax
je 0x140028978
inc dword [rax + 0x3b0]
mov rdx, qword [0x1400e66f8]
mov rcx, rbp
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400289e9
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rbp
je 0x1400289b4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400289c5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.14001b510
mov rax, qword [0x1400e66e8]
test rax, rax
je 0x1400289d7
dec dword [rax + 0x3b0]
mov rdx, qword [0x1400e66f8]
mov rcx, rsi
call qword [0x1400e6008]
jmp 0x1400289f2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x31f8], 1
movss xmm0, dword [rbx + 0x31fc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140028a59
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x31fc], xmm0
jb 0x140028a59
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140028a48
call fcn.140024af0
mov dword [rbx + 0x31fc], 0
add rsp, 0x20
pop rbx
ret
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x31fc], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14004b910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x1400e6580]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [0x1400e66e8]
lea rdx, [rsp + 0x30]
movss xmm1, dword [rcx + 0x2c]
mov rdi, rcx
movss xmm0, dword [rax + 0x1674]
mov r12, qword [rax + 0x1d18]
subss xmm1, xmm0
movaps xmm2, xmm0
movss xmm0, dword [rcx + 0x30]
addss xmm2, dword [rax + 0x1a80]
movss xmm6, dword [r12 + 0x118]
movss xmm7, dword [r12 + 0x11c]
movss dword [r12 + 0x11c], xmm0
movss dword [r12 + 0x118], xmm1
addss xmm2, dword [rcx + 0x2c]
movss dword [rcx + 0x2c], xmm2
xor ecx, ecx
movups xmm0, xmmword [rax + 0x16fc]
movups xmmword [rsp + 0x30], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [0x14006a404]
movss dword [rsp + 0x3c], xmm0
call fcn.140021410
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov ecx, 0x15
movups xmmword [rsp + 0x20], xmm0
call fcn.140021410
xor edx, edx
lea rcx, [0x14006a528]
mov r8d, 0x50
call fcn.140043400
mov ecx, 2
movzx ebx, al
call fcn.140020d60
xor ebp, ebp
test bl, bl
je 0x14004bafa
mov eax, dword [rdi]
mov qword [rsp + 0xa8], rsi
mov esi, ebp
test eax, eax
jle 0x14004baed
mov qword [rsp + 0xb0], r14
mov r14d, ebp
mov qword [rsp + 0x70], r15
mov r15d, ebp
nop word [rax + rax]
test r14, r14
js 0x14004ba39
cmp esi, eax
jl 0x14004ba53
mov r8d, 0x6c7
lea rdx, str.C:Users_vmmdllDesktopimpact_v13imguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [rdi + 8]
add rbx, r15
test dword [rbx + 4], 0x200000
jne 0x14004bacd
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004ba71
mov rcx, qword [rcx]
jmp 0x14004baa9
movsx eax, word [rbx + 0x24]
cmp ax, 0xffff
je 0x14004ba83
cmp eax, dword [rdi + 0x88]
jl 0x14004ba9d
mov r8d, 0x89d
lea rdx, str.C:Users_vmmdllDesktopimpact_v13imguiimgui_internal.h
lea rcx, str.tab__NameOffset____1___int_tab__NameOffset___TabsNames.Buf.Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsx rcx, word [rbx + 0x24]
add rcx, qword [rdi + 0x90]
mov eax, dword [rbx]
lea r9, [rsp + 0x20]
cmp dword [rdi + 0x18], eax
mov qword [rsp + 0x20], 0
sete dl
xor r8d, r8d
call fcn.1400495a0
test al, al
cmovne rbp, rbx
mov eax, dword [rdi]
inc esi
inc r14
add r15, 0x30
cmp esi, eax
jl 0x14004ba30
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xb0]
call fcn.1400162c0
mov rsi, qword [rsp + 0xa8]
movss dword [r12 + 0x118], xmm6
mov rax, rbp
movss dword [r12 + 0x11c], xmm7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140060bb0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x78
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140050f50
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 0x140050fb1
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 0x140050f70
mov ecx, dword [r9]
jmp 0x14005109b
cmp ecx, 0x4e0
jb 0x14005109b
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 0x140050fd0
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 0x140051020
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 0x140051130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov ecx, dword [0x1400e6d00]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov r15d, 0x1398
mov eax, dword [r15 + rsi]
mov r13d, 0x10
test al, 1
jne 0x1400511d8
or eax, 1
mov dword [r15 + rsi], eax
mov ebx, r13d
add rbx, rsi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
mov ecx, 1
lea r8, [rbx + 8]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x1400511b0
mov dword [rbx], 0x270
mov eax, dword [r15 + rsi]
mov ebx, 0x13a0
test al, 2
jne 0x1400511f9
or eax, 2
mov dword [r15 + rsi], eax
mov qword [rsi + rbx], rbp
mov qword [rsi + rbx + 8], 0xf
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
mov rdx, r14
mov rcx, rdi
call fcn.140060170
test r14, r14
je 0x1400512dc
lea r12, [rsi + rbx]
mov ebx, r13d
add rbx, rsi
nop dword [rax]
nop dword [rax + rax]
dec r14
mov r15, qword [str.0123456789ABCDEF]
mov qword [rsp + 0x28], rbx
mov rbp, qword [r12]
mov rdx, qword [r12 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x14005127e
mov rcx, rbx
call fcn.140050f50
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.140050f50
mov eax, eax
or rsi, rax
jmp 0x14005128e
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140050d60
mov rsi, rax
lea rax, [r15 + rsi]
movzx r9d, byte [rax + rbp]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400512c3
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400512b8
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400512d3
xor r8d, r8d
mov edx, 1
mov rcx, rdi
call fcn.14004fa50
test r14, r14
jne 0x140051240
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400619f0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1409ec1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409ec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ec06f
add dl, dl
jne 0x1409ec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ec0f6
xor eax, eax
add dl, dl
jne 0x1409ec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ec1ad
add dl, dl
jne 0x1409ec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409ec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409ec07e
mov eax, 1
add dl, dl
jne 0x1409ec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ec0fb
sub eax, ebx
mov ebx, 1
jne 0x1409ec14c
mov ecx, 1
add dl, dl
jne 0x1409ec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409ec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ec15d
cmp eax, 0x7d00
jae 0x1409ec19b
cmp eax, 0x500
jb 0x1409ec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ec07e
cmp eax, 0x7f
ja 0x1409ec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409ec1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409ec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2c59b1560
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.2c59b2170
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.2c59b2170
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 0x2c59b15d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c59ed064]
mov rbx, rcx
test esi, esi
jle 0x2c59b1700
mov rax, qword [0x2c59ed068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c59b161b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c59b16a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c59b1600
mov rcx, rbx
call fcn.2c59b1e30
mov rdi, rax
test rax, rax
je 0x2c59b1722
mov rax, qword [0x2c59ed068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2c59b1f70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2c59ed068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c59b1707
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2c59b169e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2c59b16b0
add dword [0x2c59ed064], 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 [0x2c59ed068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c59b169e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c59b1560
nop dword [rax]
xor esi, esi
jmp 0x2c59b1628
mov rax, qword [0x2c59ed068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2c59b1560
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2c59b1560
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2c59b1aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c59ed0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c59ed080]
test rbx, rbx
je 0x2c59b1afc
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 rsi, rsi
je 0x2c59b1af3
test eax, eax
jne 0x2c59b1af3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c59b1ad8
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 0x2c59b1e30
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2c59b1eb0
Capabilities:
Parse pe header

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

Function at 0x2c59b1f70
Capabilities:
Parse pe header

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

Function at 0x2c59b2370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
xor r9d, r9d
movsxd rax, dword [rdx + 0x3c]
mov r10d, dword [rax + rdx + 0x88]
add r10, rdx
mov rbx, rcx
mov r8, rdx
mov r11d, dword [r10 + 0x20]
mov esi, dword [r10 + 0x18]
add r11, rdx
cmp esi, r9d
jbe 0x2c59b23dc
mov ecx, dword [r11 + r9*4]
add rcx, r8
call fcn.2c59b24d0
mov r12d, eax
lea rax, [r9 + 1]
cmp r12d, ebx
jne 0x2c59b23d7
mov edx, dword [r10 + 0x24]
add r9, r9
mov eax, dword [r10 + 0x1c]
add r9, r8
movzx edx, word [r9 + rdx]
lea rdx, [r8 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r8
jmp 0x2c59b23de
mov r9, rax
jmp 0x2c59b239b
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x2c59b23f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x2c59b241e
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x2c59b241e
cmp dword [rax + rdx], 0x4550
je 0x2c59b2423
dec rax
jmp 0x2c59b23fd
ret

Function at 0x2c59b2460
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x2c59b24be
test r8d, r8d
jne 0x2c59b246f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x2c59b2482
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x2c59b2489
inc edx
xor r8d, r8d
jmp fcn.2c59b2460
xor eax, eax
cmp r9b, 0x4c
jne 0x2c59b24c0
cmp byte [rcx + 1], 0x8b
jne 0x2c59b24c0
cmp byte [rcx + 2], 0xd1
jne 0x2c59b24be
cmp r8b, 0xb8
jne 0x2c59b24be
cmp byte [rcx + 6], 0
jne 0x2c59b24c0
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x2c59b24c0
xor eax, eax
ret
Function at 0x2c59b24d0
Capabilities:
Resolve function by brute ratel badger hash

Disassembly:
xor eax, eax
movsx edx, byte [rcx]
test dl, dl
je 0x2c59b24eb
imul eax, eax, 0x801
inc rcx
or eax, 0x2800000
add eax, edx
jmp 0x2c59b24d2
ret
Function at 0x140006880
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
movzx ebp, r8b
mov rbx, rcx
cmp edx, 0x10
jae 0x140006912
test rcx, rcx
je 0x140006912
mov edx, 0x40
call fcn.140007640
test al, al
jne 0x140006912
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006912
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006912
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140007640
test al, al
jne 0x140006912
cmp dword [rdi], 0x4550
jne 0x140006912
test rdi, rdi
je 0x140006912
mov rcx, rbx
call fcn.140006f60
movzx ecx, al
lea rax, [rsi + 0xf]
lea rax, [rax + rcx*2]
lea rax, [rdi + rax*8]
test bpl, bpl
jne 0x140006914
xor ecx, ecx
cmp dword [rax], ecx
cmove rax, rcx
jmp 0x140006914
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006930
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000699d
mov edx, 0x40
call fcn.140007640
test al, al
jne 0x14000699d
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14000699d
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14000699d
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140007640
test al, al
jne 0x14000699d
cmp dword [rdi], 0x4550
jne 0x14000699d
test rdi, rdi
je 0x14000699d
mov rcx, rbx
call fcn.140006f60
mov eax, dword [rdi + 0x28]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400069b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0x5a4d
test rcx, rcx
je 0x140006a27
mov edx, 0x40
call fcn.140007640
test al, al
jne 0x140006a27
cmp word [rbx], di
jne 0x140006a27
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006a27
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.140007640
test al, al
jne 0x140006a27
cmp dword [rsi], 0x4550
jne 0x140006a27
test rsi, rsi
je 0x140006a27
mov edx, 0xf8
mov rcx, rsi
call fcn.140007640
test al, al
je 0x140006a21
xor esi, esi
jmp 0x140006a2e
movzx esi, word [rsi + 0x18]
jmp 0x140006a2e
xor esi, esi
test rbx, rbx
je 0x140006aa2
mov edx, 0x40
mov rcx, rbx
call fcn.140007640
test al, al
jne 0x140006aa2
cmp word [rbx], di
jne 0x140006aa2
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006aa2
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140007640
test al, al
jne 0x140006aa2
cmp dword [rdi], 0x4550
jne 0x140006aa2
test rdi, rdi
je 0x140006aa2
mov eax, 0x20b
cmp si, ax
jne 0x140006a8f
mov rax, qword [rdi + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdi + 0x34]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret