joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404543
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.0040a540
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404520
cmp byte [0x006e734c], 0
je 0x46b275
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x4684a0
jmp 0x404520

Function at 0x46b280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x006e76e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006e734c], 0
je 0x46b2b5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x006e7a00]
aesenc xmm0, xmmword [0x006e7a10]
aesenc xmm0, xmmword [0x006e7a20]
movq rax, xmm0
ret
jmp 0x40a760

Function at 0x46b2c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x006e76e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x006e734c], 0
je 0x46b2f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x006e7a00]
aesenc xmm0, xmmword [0x006e7a10]
aesenc xmm0, xmmword [0x006e7a20]
movq rax, xmm0
ret
jmp 0x40a7c0

Function at 0x46d0c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46d0f4
mov rcx, 0x28
jmp 0x46d0ff
shl rcx, 3
add rcx, 0x1480
mov qword [0x006e7570], rcx
pop rbp
ret
Function at 0x483980
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x483bbb
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x483a1a
mov qword [rsp + 0x88], rax
lea rbx, [0x00550ae0]
mov rcx, rax
lea rax, [0x006623e0]
call fcn.00472bc0
test cl, cl
jne 0x483a03
mov rax, qword [rsp + 0x88]
call fcn.00482cc0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x28]
lea rbx, [0x0058a650]
call fcn.00452ea0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
call fcn.00484d40
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x483a37
lea rdx, [0x0054cbc0]
cmp rax, rdx
jne 0x483a25
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.00466ce0
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x0052ed20]
call fcn.0040b5c0
inc rdx
cmp rbx, rdx
jle 0x483a81
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x483a34
lea rax, [0x006623e0]
lea rbx, [0x00550ae0]
lea rdi, [0x0054cbc0]
nop dword [rax + rax]
call fcn.00472d80
lea rdx, [0x0054cbc0]
cmp rax, rdx
jne 0x483bab
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x00526100]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x58], rcx
lea rax, [0x00535b40]
call fcn.0040e860
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x006e7620], 0
nop
je 0x483adb
mov rbx, rax
lea rax, [0x00535b40]
call fcn.00414720
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.00401480
call fcn.00466da0
mov rsi, qword [rsp + 0x70]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x483b42
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x483b34
mov dword [rsi + 0x10], edx
cmp dword [0x006e7620], 0
je 0x483b63
call fcn.0046b3a0
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x006623e0]
lea rbx, [0x00550ae0]
lea rdi, [0x0054cbc0]
nop dword [rax]
call fcn.00472d80
lea rdx, [0x0054cbc0]
cmp rax, rdx
jne 0x483b9c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x0052ed20]
call fcn.0040b5c0
mov rbx, rdx
lea rcx, [0x0052ed20]
call fcn.0040b5c0
nop
mov qword [rsp + 8], rax
call fcn.00469460
mov rax, qword [rsp + 8]
jmp fcn.00483980
Function at 0x496fa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49706a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403a20
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x49704f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00529960]
xor ebx, ebx
mov rcx, rdx
call fcn.0044f0e0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00498900
inc rbx
cmp rcx, rbx
jae 0x49703e
mov edi, 1
lea rsi, [0x00529960]
call fcn.0044f1c0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0058c360]
lea rsi, [0x0058b418]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00496fa0

Function at 0x4e4380
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4e4abf
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4e43ad
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4e4631
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4e465d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0058e8c0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x00529860]
lea rbx, [0x0058bf70]
call fcn.00438420
inc rax
cmp rax, r8
jge 0x4e4682
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4e46b7
lea rdi, [0x005298e0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4e43a3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4e469b
jmp 0x4e4670
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004e4380

Function at 0x4e4c60
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4e4c77
inc rax
cmp rax, 4
jge 0x4e4c8f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4e4c74
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4e4ca0
inc rax
cmp rax, 4
jge 0x4e4cae
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4e4cd7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4e4cbb
jmp 0x4e4c9d
Function at 0x4f4ae0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4f4c2e
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x00659110]
call fcn.004e4ee0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [0x004f4c40]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call fcn.00403a20
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4f4bf2
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x4f4c28
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4f4c1d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call fcn.0046b800
call fcn.0046b780
nop
call fcn.00469460
jmp fcn.004f4ae0
Function at 0x14001a7f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [0x1400558d0]
mov rbx, rcx
test rdx, rdx
jne 0x14001a885
test rsi, rsi
jne 0x14001a882
call fcn.14001a910
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14001a8e0
mov rcx, rax
call qword [sym.imp.Qt5Core_conda.dll_public:_char____ptr64___cdecl_QByteArray::data_void____ptr64]
mov rcx, rbx
mov rsi, rax
call fcn.14001a910
lea rcx, [rbx + 0x18]
mov edi, dword [rax]
call fcn.14001a930
mov rcx, rax
call qword [sym.imp.Qt5Core_conda.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea rdx, str._s__d_:_Parse_error_at___s__n
mov r8, rbx
call fcn.14001aaf0
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
jmp 0x14001a8ca
test rdx, rdx
cmovne rsi, rdx
call fcn.14001a910
lea rcx, [rbx + 0x18]
mov edi, dword [rax]
call fcn.14001a930
mov rcx, rax
call qword [sym.imp.Qt5Core_conda.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea rdx, str._s__d_:_Error:__s_n
mov r8, rbx
call fcn.14001aaf0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140031e80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov edx, dword [rax]
cmp edx, 1
jbe 0x140031ecb
mov rax, qword [rcx]
mov edx, dword [rax + 8]
and edx, 0x7fffffff
jne 0x140031ebe
lea r9d, [rdx + 2]
xor r8d, r8d
lea edx, [r9 + 6]
lea ecx, [rdx + 0x68]
call qword [sym.imp.Qt5Core_conda.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
add rsp, 0x20
pop rbx
jmp fcn.1400119b0
add rsp, 0x20
pop rbx
ret
Function at 0x401ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x401cff
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413fe0]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413fe0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x404080
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x4040f1
cmp qword [rcx + 8], 0
js 0x404100
call fcn.00403e90
test rax, rax
je 0x4040f1
mov r10, qword [rax]
test r10, r10
jle 0x4040eb
mov r9, rax
add r10, rbx
sub r9, rbx
nop
mov r8, rbx
mov rdx, rbx
sar r8, 8
sar rdx, 0x10
xor r8d, ebx
and edx, 0xffffffee
and r8d, 0xffffffee
xor r8b, byte [r9 + rbx + 0x10]
xor r8d, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor r8d, edx
mov byte [r9 + rbx + 0x10], r8b
add rbx, 1
cmp rbx, r10
jne 0x4040b0
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x40409e
Function at 0x404780
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, rcx
mov rcx, qword [0x00438250]
mov ebp, edx
mov edx, 0x431af304
lea rbx, [r14 + 2]
call fcn.00404080
mov edx, 0x39dcf28c
mov rcx, rax
call fcn.004042d0
mov rdi, qword [0x00438260]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rsi, [rax + 0x20]
nop dword [rax]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x404810
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x404990
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x4047f0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x4049b2
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x4049c0
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x404830
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x4048c5
test r12w, r12w
je 0x4049e0
mov r10, rbx
mov eax, r15d
sub r10, rcx
jmp 0x404886
cmp word [rcx], 0
je 0x4048c5
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x4049e0
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x404880
mov edx, 0x2f2bcf84
mov rcx, rdi
call fcn.00404080
mov edx, 0x3689380c
mov rcx, rax
call fcn.004042d0
cmp r15w, r12w
je 0x404a03
mov r13, qword [r13]
cmp rsi, r13
jne 0x4047e0
test ebp, ebp
je 0x404a18
mov rcx, qword [0x00438280]
lea rbx, [rsp + 0x30]
mov edx, 0x70e50524
call fcn.00404080
mov edx, 0x7b15b4ec
mov rcx, rax
call fcn.004042d0
mov rax, qword [0x004380f0]
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x004380e0]
mov r8, rbx
xor edx, edx
lea r9, [rsp + 0x28]
xor ecx, ecx
call qword [rax]
mov rcx, qword [0x00438290]
mov edx, 0x5c8717ac
mov ebx, eax
call fcn.00404080
mov edx, 0x2f2bcf84
mov rcx, rax
call fcn.004042d0
test ebx, ebx
jne 0x404a36
mov rax, qword [rsp + 0x28]
jmp 0x404a07
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x4047f0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x404822
movzx r15d, word [r14]
jmp 0x4048c5
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x404830
jmp 0x404856
mov rcx, qword [0x00438260]
mov edx, 0x2f2bcf84
call fcn.00404080
mov edx, 0x3689380c
mov rcx, rax
call fcn.004042d0
jmp 0x4048e9
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x00438270]
mov edx, 0x45f7accc
call fcn.00404080
mov edx, 0x66033ae4
mov rcx, rax
call fcn.004042d0
xor eax, eax
jmp 0x404a07
Function at 0x40ac30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
movzx eax, byte [rsp + 0x2f]
mov rbx, rcx
mov qword [rsp + 0x168], rdx
test al, al
jne 0x40ac60
add rsp, 0x148
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.00413fe0]
mov rdx, qword [rsp + 0x168]
mov rcx, rbx
mov rsi, rax
mov r9, rax
mov r8, rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_fflush
jmp 0x40ac52

Function at 0x40f8f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00413fe0]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x40f9d0
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [0x00435b18]
lea rdx, [0x00435b19]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00435b19]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x40f96a
cmp byte [rsi + rax + 0x10], 0
jne 0x40f9b0
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f96a
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x40f94a
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x00435b1c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f96a
add ebx, eax
jmp 0x40f942
lea r8, [0x00435b18]
mov rcx, rax
lea rdx, [0x00435b19]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00435b19]
mov ebx, eax
nop
test ebx, ebx
jns 0x40f96a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x40fa29
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f96a
add ebx, 1
test ebx, ebx
jns 0x40f96a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x40fa02
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f96a
add ebx, eax
jmp 0x40f9f0
Function at 0x411710
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x004372a0]
mov edx, 0x431af304
mov r13, rcx
lea rcx, [0x00437060]
call fcn.00404080
lea rdi, [r13 + 2]
mov edx, 0x39dcf28c
mov rcx, rax
call fcn.004042d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x411790
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x411910
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x411770
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x411931
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x411940
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x4117b0
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x411845
test bx, bx
je 0x411960
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x411806
cmp word [rcx], 0
je 0x411845
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x411960
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x411800
mov edx, 0x2f2bcf84
mov rcx, rsi
call fcn.00404080
mov edx, 0x3689380c
mov rcx, rax
call fcn.004042d0
cmp r14w, bx
je 0x41197f
mov r12, qword [r12]
cmp rbp, r12
jne 0x411760
lea rcx, [0x004371c0]
mov edx, 0x70e50524
call fcn.00404080
lea rbx, [rsp + 0x30]
mov edx, 0x7b15b4ec
mov rcx, rax
call fcn.004042d0
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x0043b5f0]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x0043b5e8]
mov edx, 0x5c8717ac
lea rcx, [0x00437180]
mov ebx, eax
call fcn.00404080
mov edx, 0x2f2bcf84
mov rcx, rax
call fcn.004042d0
xor eax, eax
test ebx, ebx
jne 0x411984
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x411770
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x4117a1
movzx r14d, word [r13]
jmp 0x411845
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x4117b0
jmp 0x4117d0
mov rcx, rsi
mov edx, 0x2f2bcf84
call fcn.00404080
mov edx, 0x3689380c
mov rcx, rax
call fcn.004042d0
jmp 0x411869
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x412f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004505c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4130e8
mov rax, qword [0x004505c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x412fac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x413035
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x412f90
mov rcx, rbx
call fcn.00413c00
test rax, rax
mov r12, rax
je 0x41311d
mov rax, qword [0x004505c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00413d30
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004505c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x413100
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41302e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x413090
add dword [0x004505c4], 1
cmp edi, 8
jae 0x413063
test dil, 4
jne 0x4130d4
test edi, edi
je 0x413058
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4130ef
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 0x413058
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 0x41307c
jmp 0x413058
add rsi, qword [0x004505c8]
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 0x41302e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00418040
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x413058
xor esi, esi
jmp 0x412fb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x413058
mov rax, qword [0x004505c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00418040
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00418040
nop
nop dword [rax]

Function at 0x413870
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004508a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00450880]
test rbx, rbx
je 0x4138c4
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 0x4138bb
test rsi, rsi
je 0x4138bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4138a0
lea rcx, [0x004508a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]