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

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

Function at 0x1400aab40
Capabilities:
Parse pe header

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

Function at 0x1400aac00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b3f00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400aac1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400aac28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001c6f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140046110
sub rsp, rax
mov rax, qword [0x14005e040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov word [rsp + 0x30], bp
lea edi, [rbp + 0x28]
test al, al
je 0x14001c7a2
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140039f70
cmp rax, 1
jne 0x14001c7fe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001c77f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001c773
cmp rcx, 1
jb 0x14001c7fe
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001c740
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001c7d3
lea rcx, [rsp + 0x80]
call fcn.14003b610
jmp 0x14001c7d5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002ae80
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002f4a0
int3

Function at 0x14001c810
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005e040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x4e
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140039f70
cmp rax, 1
jne 0x14001c8e5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001c88c
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001c880
cmp rcx, 1
jb 0x14001c8e5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001c851
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002ae80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002f4a0
int3
Function at 0x14002b888
Capabilities:
Parse pe header

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

Function at 0x14002f800
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002f66b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002f66b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f66b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f66b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f66b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f66b
cmp dword [rcx + 0xf8], 0
je 0x14002f66b
mov ecx, ebx
call fcn.14002f71c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002f4f8
nop
cmp dword [rbp + 0x20], 0
je 0x14002f6b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002f6c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002f5fc
Function at 0x14004024c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400402d3
mov rsi, rbx
cmp word [rax], bp
je 0x140040292
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004027c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140040278
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003dad4
mov rdi, rax
test rax, rax
je 0x1400402c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400466f0
mov rbp, rdi
xor ecx, ecx
call fcn.14003bf90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400439ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140043a02
mov al, 1
jmp 0x140043a62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140043a13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140043a60
mov ecx, dword [rcx + 0x18]
nop
call fcn.140040594
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140043a60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140043a60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140043a60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140043a62
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140046020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140046048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140046048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002770
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x390
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov r15, rdx
mov qword [rsp + 0x28], rdx
mov edx, dword [rcx + 8]
mov r14, rcx
mov ecx, 8
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov esi, edi
cmp rax, 0xffffffffffffffff
je 0x140002827
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x14000281e
nop word [rax + rax]
lea rdx, str.client.dll
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140002819
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1400027f0
jmp 0x14000281e
mov rsi, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
lea r8, [rsp + 0x270]
mov r9d, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov qword [r15], rsi
lea rax, [rsp + 0x270]
xorps xmm0, xmm0
mov rbx, 0xffffffffffffffff
movups xmmword [r15 + 8], xmm0
mov qword [r15 + 0x18], rdi
mov qword [r15 + 0x20], rdi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140002863
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x14000296e
cmp rbx, 0xf
ja 0x1400028af
mov r8, rbx
mov qword [r15 + 0x18], rbx
lea rdx, [rsp + 0x270]
mov qword [r15 + 0x20], 0xf
lea rcx, [r15 + 8]
call sub.VCRUNTIME140.dll_memcpy
mov byte [r15 + rbx + 8], dil
jmp 0x140002942
mov rax, rbx
or rax, 0xf
cmp rax, rsi
jbe 0x1400028e4
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140005810
test rax, rax
je 0x140002910
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000291f
mov ecx, 0x16
mov rsi, rax
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
test rcx, rcx
je 0x14000291f
cmp rcx, 0x1000
jb 0x140002917
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002974
jmp 0x1400028c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005810
mov rdi, rax
mov r8, rbx
mov qword [r15 + 8], rdi
lea rdx, [rsp + 0x270]
mov qword [r15 + 0x18], rbx
mov rcx, rdi
mov qword [r15 + 0x20], rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
mov rax, r15
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1400056d0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400012c0
int3
call fcn.140001220
int3
Function at 0x140002ec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebx, edx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
xor ebp, ebp
mov r8d, edx
lea rdx, str.GameOverlay_InputEventStream__u___ls_IPCWrapper
call fcn.140004ac0
nop
lea rdi, [rsi + 0x38]
mov r8d, ebx
lea rdx, str.GameOverlayRender_PaintCmdStream__u___ls_IPCWrapper
mov rcx, rdi
call fcn.140004ac0
nop
mov dword [rsi + 0x70], 0x3e8
mov qword [rsi + 0x78], rbp
mov dword [rsi + 0x80], ebp
lea rbx, [rsi + 0x88]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov ecx, 0x28
call fcn.140005810
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rsi + 0x98], rdi
mov rax, qword [rdi + 0x28]
mov ecx, dword [rax + 8]
mov dword [rsi + 0xa0], ecx
call fcn.140005ac8
mov qword [rsi + 0xa8], rax
mov byte [rsi + 0xb0], 1
mov dword [rsi + 0xb4], ebp
lea rdx, [rsi + 0xb8]
mov r9d, 0x200
mov r8d, 0x400
mov rcx, rsi
call fcn.140003980
nop
lea rbx, [rsi + 0xe0]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov ecx, 0x68
call fcn.140005810
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov byte [rsi + 0xf0], bpl
xorps xmm0, xmm0
movups xmmword [rsi + 0x100], xmm0
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
test rax, rax
je 0x140003094
mov rcx, qword [rsi + 0x78]
mov qword [rsi + 0x78], rax
test rcx, rcx
je 0x140002fff
call qword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, 0x10
call fcn.140005810
mov qword [rax], rsi
lea rcx, [0x1400036b0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400047d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003084
cmp dword [rsi + 0x108], 0
jne 0x14000307d
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x100], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400056d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdx, str.Failed_to_create_a_new_memory_device_context.
lea rcx, [rsp + 0x30]
call fcn.140002dd0
lea rdx, [0x140008cb0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140003ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov ebx, edx
mov rdi, rcx
mov edx, dword [rcx + 0xb4]
mov ecx, dword [rcx + 0xa0]
mov eax, ecx
sub eax, edx
xor r12d, r12d
cmp edx, ecx
cmovae eax, r12d
mov ecx, eax
mov eax, r9d
add rax, 0x24
cmp rax, rcx
jbe 0x140003aff
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r14, [rdi + 0x88]
mov rbp, qword [r14]
mov rax, qword [rbp + 8]
mov rdx, rbp
movzx r8d, byte [rax + 0x19]
test r8b, r8b
jne 0x140003b37
mov rcx, rax
nop dword [rax]
cmp dword [rcx + 0x1c], ebx
jge 0x140003b2b
mov rcx, qword [rcx + 0x10]
jmp 0x140003b31
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], r12b
je 0x140003b20
cmp byte [rdx + 0x19], r12b
jne 0x140003b52
cmp ebx, dword [rdx + 0x1c]
jl 0x140003b52
cmp rdx, rbp
je 0x140003b52
inc dword [rdx + 0x20]
mov esi, dword [rdx + 0x20]
jmp 0x140003bfe
mov esi, 1
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], r12d
mov rcx, rbp
test r8b, r8b
jne 0x140003b96
mov qword [rsp + 0x20], rax
cmp dword [rax + 0x1c], ebx
jge 0x140003b86
mov dword [rsp + 0x28], r12d
mov rax, qword [rax + 0x10]
jmp 0x140003b90
mov dword [rsp + 0x28], esi
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x140003b71
cmp byte [rcx + 0x19], r12b
jne 0x140003ba1
cmp ebx, dword [rcx + 0x1c]
jge 0x140003bfe
movabs rax, 0x666666666666666
cmp qword [r14 + 8], rax
je 0x140003c9b
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r12
mov ecx, 0x28
call fcn.140005810
mov r8, rax
mov rax, qword [rsp + 0x48]
mov qword [r8 + 0x1c], rax
mov qword [r8], rbp
mov qword [r8 + 8], rbp
mov qword [r8 + 0x10], rbp
mov word [r8 + 0x18], 0
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140004550
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x30], r15d
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], r12d
mov edx, dword [rdi + 0xb4]
mov ecx, dword [rdi + 0xa0]
mov eax, ecx
sub eax, edx
cmp edx, ecx
cmovae eax, r12d
cmp eax, 0x24
jb 0x140003c77
mov rax, qword [rdi + 0xa8]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax + rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + rdx + 0x10], xmm1
mov dword [rax + rdx + 0x20], r12d
add dword [rdi + 0xb4], 0x24
mov byte [rdi + 0xf1], 1
mov dword [rdi + 0xf4], ebx
mov dword [rdi + 0xf8], esi
mov al, 1
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140002e80
int3
Function at 0x14000633c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov rcx, rdx
je 0x402ced
cmp byte [rcx], 0
lea rdx, [rdx + 1]
je 0x402ced
nop dword [rax]
lea rax, [rdx + r8]
add r8, 1
cmp byte [rax], 0
jne 0x402ce0
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.00417458
Function at 0x405e30
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
lea rsi, [0x00425140]
mov r13, rcx
mov r12d, edx
mov edx, 0x12009528
lea rcx, [0x00425880]
call fcn.00404d90
lea rdi, [r13 + 2]
mov edx, 0x33a22428
mov rcx, rax
call fcn.00405030
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r14, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
nop word cs:[rax + rax]
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x405ec0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x406040
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x405ea0
mov rax, qword [r14 + 0x50]
movzx ebx, word [rax]
test bx, bx
je 0x406060
mov rdx, rax
nop dword [rax]
nop word cs:[rax + rax]
lea ecx, [rbx - 0x41]
cmp cx, 0x19
ja 0x406070
add ebx, 0x20
add rdx, 2
mov word [rdx - 2], bx
movzx ebx, word [rdx]
test bx, bx
jne 0x405ee0
movzx r15d, word [r13]
movzx ebx, word [rax]
test r15w, r15w
je 0x405f75
test bx, bx
je 0x406090
mov r10, rdi
mov edx, r15d
sub r10, rax
jmp 0x405f36
cmp word [rax], 0
je 0x405f75
movzx ecx, word [rax]
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
lea r9d, [rcx - 0x41]
lea r8d, [rcx + 0x20]
cmp r9w, 0x1a
cmovb ecx, r8d
cmp dx, cx
jne 0x406090
mov rdx, rax
add rax, 2
movzx edx, word [r10 + rdx]
test dx, dx
jne 0x405f30
mov edx, 0x703eeae8
mov rcx, rsi
call fcn.00404d90
mov edx, 0x37f8d028
mov rcx, rax
call fcn.00405030
cmp r15w, bx
je 0x4060af
mov r14, qword [r14]
cmp rbp, r14
jne 0x405e90
test r12d, r12d
je 0x4060c4
lea rcx, [0x004250c0]
mov edx, 0x3b90cfe8
call fcn.00404d90
lea rbx, [rsp + 0x30]
mov edx, 0x8905728
mov rcx, rax
mov rdi, rbx
call fcn.00405030
xor eax, eax
mov ecx, 4
mov rdx, r13
rep stosd dword [rdi], eax
mov rcx, rbx
mov qword [rsp + 0x28], 0
call qword [0x0042f2d0]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x0042f2d8]
mov edx, 0x2cf74a28
lea rcx, [0x00425080]
mov ebx, eax
call fcn.00404d90
mov edx, 0x233933e8
mov rcx, rax
call fcn.00405030
test ebx, ebx
jne 0x4060e2
mov rax, qword [rsp + 0x28]
jmp 0x4060b3
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x405ea0
mov rax, qword [r14 + 0x50]
movzx ebx, word [rax]
test bx, bx
jne 0x405ed0
movzx r15d, word [r13]
jmp 0x405f75
add rdx, 2
movzx ebx, word [rdx]
test bx, bx
jne 0x405ee0
jmp 0x405f00
mov rcx, rsi
mov edx, 0x703eeae8
call fcn.00404d90
mov edx, 0x37f8d028
mov rcx, rax
call fcn.00405030
jmp 0x405f99
mov rax, qword [r14 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x00425040]
mov edx, 0x1b0bcb28
call fcn.00404d90
mov edx, 0x44afaee8
mov rcx, rax
call fcn.00405030
xor eax, eax
jmp 0x4060b3
Function at 0x40b390
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x0042f5e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rbx]
mov ecx, 1
mov rbp, qword [fcn.004174d0]
call rbp
mov rdi, rax
test rsi, rsi
je 0x40b480
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, section..rdata
lea rdx, [0x004230da]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x004230da]
movsxd rbx, eax
cmp rbx, qword [rsi]
jge 0x40b416
cmp byte [rsi + rbx + 0x10], 0
jne 0x40b460
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40b416
add rbx, 1
cmp rbx, qword [rsi]
jl 0x40b3f8
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0042308a]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.00417458
lea rcx, [0x0042f5e0]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r8, [rsi + rbx + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40b416
cdqe
add rbx, rax
jmp 0x40b3f3
lea r8, section..rdata
mov rcx, rax
lea rdx, [0x004230da]
call sub.msvcrt.dll_fprintf
movsxd rbx, eax
test rbx, rbx
jns 0x40b416
lea rsi, [0x004230da]
jmp 0x40b4cf
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40b416
add rbx, 1
test rbx, rbx
jns 0x40b416
cmp byte [rbx + 0x10], 0
je 0x40b4b0
lea r8, [rbx + 0x10]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40b416
cdqe
add rbx, rax
jmp 0x40b4c6
Function at 0x415ab0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x3f], 1
movzx eax, byte [rsp + 0x3f]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
test al, al
jne 0x415ae0
add rsp, 0x48
ret
mov ecx, 2
call qword [fcn.004174d0]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rax
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x28]
call fcn.00417458
nop
add rsp, 0x48
ret

Function at 0x416470
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0042fc44]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4165f8
mov rax, qword [0x0042fc48]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4164bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x416545
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4164a0
mov rcx, rbx
call fcn.00417110
test rax, rax
mov r12, rax
je 0x41662d
mov rax, qword [0x0042fc48]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00417240
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0042fc48]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x416610
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41653e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4165a0
add dword [0x0042fc44], 1
cmp edi, 8
jae 0x416573
test dil, 4
jne 0x4165e4
test edi, edi
je 0x416568
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4165ff
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 0x416568
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 0x41658c
jmp 0x416568
add rsi, qword [0x0042fc48]
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 0x41653e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004212d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x416568
xor esi, esi
jmp 0x4164c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x416568
mov rax, qword [0x0042fc48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004212d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004212d0
nop
nop dword [rax]