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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [r8]
mov rbx, qword [r8 + 8]
test rbx, rbx
je 0x140005430
mov eax, ebx
and eax, 3
movabs rcx, 0x100000001b3
cmp rbx, 4
jae 0x14000543c
movabs r9, 0xcbf29ce484222325
xor r8d, r8d
jmp 0x14000548c
movabs r10, 0xcbf29ce484222325
jmp 0x1400054b7
mov r10, rbx
and r10, 0xfffffffffffffffc
movabs r9, 0xcbf29ce484222325
xor r8d, r8d
movzx r11d, byte [rdi + r8]
xor r11, r9
imul r11, rcx
movzx r9d, byte [rdi + r8 + 1]
xor r9, r11
imul r9, rcx
movzx r11d, byte [rdi + r8 + 2]
xor r11, r9
imul r11, rcx
movzx r9d, byte [rdi + r8 + 3]
xor r9, r11
imul r9, rcx
add r8, 4
cmp r10, r8
jne 0x140005450
mov r10, r9
test rax, rax
je 0x1400054b7
add r8, rdi
xor r11d, r11d
nop word [rax + rax]
movzx r10d, byte [r8 + r11]
xor r10, r9
imul r10, rcx
inc r11
mov r9, r10
cmp rax, r11
jne 0x1400054a0
and r10, qword [rdx + 0x30]
mov r15, qword [rdx + 8]
mov rax, qword [rdx + 0x18]
mov rcx, r10
shl rcx, 4
mov r14, qword [rax + rcx]
cmp r14, r15
je 0x140005513
add r10, r10
shl r10, 3
or r10, 8
mov r12, qword [rax + r10]
cmp qword [r14 + 0x18], rbx
jne 0x140005503
nop dword [rax + rax]
mov rcx, qword [r14 + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140005513
cmp r14, r12
je 0x14000556b
mov r14, qword [r14]
cmp qword [r14 + 0x18], rbx
je 0x1400054f0
jmp 0x140005503
cmp r14, r15
je 0x14000556b
cmp byte [r14 + 0x30], 0
je 0x14000556b
mov rbx, qword [r14 + 0x20]
mov rdi, qword [r14 + 0x28]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
test rdi, rdi
js 0x1400055fc
cmp rdi, 0xf
ja 0x140005571
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r14, [rsp + rdi]
add r14, 0x20
jmp 0x1400055d2
mov byte [rsi + 0x20], 0
jmp 0x1400055eb
mov rax, rdi
or rax, 0xf
cmp rax, 0x17
mov r15d, 0x16
cmovae r15, rax
cmp r15, 0xfff
jb 0x1400055a6
lea rcx, [r15 + 0x28]
call fcn.14001a950
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400055b2
lea rcx, [r15 + 1]
call fcn.14001a950
mov r14, rax
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], r15
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add r14, rdi
mov byte [r14], 0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov byte [rsi + 0x20], 1
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140003d30
int3
Function at 0x140005900
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
cmp byte [rcx + 0xf], 2
jne 0x140005b1f
movzx eax, byte [rcx + 0x12]
test al, 0x20
mov r8d, 0x808
mov edx, 0x91c
cmove edx, r8d
xor r8d, r8d
lea r9, [0x14001daf0]
xor ebx, ebx
nop word cs:[rax + rax]
movzx r10d, byte [rcx + r8 + 0x10]
xor r10b, bl
movzx r10d, r10b
shr ebx, 8
xor ebx, dword [r9 + r10*4]
movzx r10d, byte [rcx + r8 + 0x11]
xor r10b, bl
movzx r10d, r10b
mov r10d, dword [r9 + r10*4]
shr ebx, 8
xor ebx, r10d
add r8, 2
cmp edx, r8d
jne 0x140005940
mov r8d, ebx
shr r8d, 0x10
shr r10d, 0x18
mov byte [rcx + rdx + 0x10], bl
mov byte [rcx + rdx + 0x11], bh
mov byte [rcx + rdx + 0x12], r8b
mov byte [rcx + rdx + 0x13], r10b
test al, 0x20
jne 0x140005b1f
movzx eax, byte [rcx + 0xc]
movzx edx, byte [rcx + 0xd]
movzx r8d, byte [rcx + 0xe]
mov dword [rcx + 0xc], 0
xor r11d, r11d
lea r9, [0x14001e1f0]
lea r10, [0x14001e2f0]
mov rsi, rcx
nop word cs:[rax + rax]
mov edi, 0x62
xor ebx, ebx
nop word [rax + rax]
movzx r14d, byte [rsi + rdi - 0x56]
mov r15d, ebx
xor r15d, r14d
movzx r15d, r15b
and ebx, 0xffffff00
movzx ebp, byte [rsi + rdi]
movzx r15d, byte [r15 + r9]
xor r15b, bpl
movzx r15d, r15b
movzx r15d, byte [r15 + r9]
xor r14d, ebp
shl r14d, 8
xor r14d, ebx
lea ebx, [r14 + r15]
add rdi, 0xac
cmp rdi, 0x872
jne 0x1400059e0
movzx edi, r14w
shr edi, 8
movzx ebx, byte [r15 + r9]
xor ebx, edi
movzx ebx, byte [rbx + r10]
xor dil, bl
mov byte [rcx + r11 + 0x81c], bl
mov byte [rcx + r11 + 0x872], dil
inc r11
inc rsi
cmp r11, 0x56
jne 0x1400059d0
xor r11d, r11d
xor esi, esi
nop word cs:[rax + rax]
mov ebx, r11d
shr ebx, 1
imul ebp, ebx, 0x56
mov edi, r11d
and edi, 1
or edi, ebp
imul ebx, ebx, 0x2b
mov ebp, 0x2b
xor r14d, r14d
nop dword [rax + rax]
mov r15d, ebx
imul r15, r15, 0x753ce8a5
shr r15, 0x29
imul r15d, r15d, 0x8bc
mov r12d, edi
sub r12d, r15d
movzx r15d, byte [rcx + r12 + 0xc]
mov r12d, r14d
xor r12d, r15d
movzx r12d, r12b
movzx r12d, byte [r12 + r9]
and r14d, 0xffffff00
shl r15d, 8
xor r15d, r14d
lea r14d, [r15 + r12]
add edi, 0x58
add ebx, 0x2c
dec ebp
jne 0x140005a90
movzx edi, r15w
shr edi, 8
movzx ebx, byte [r12 + r9]
xor ebx, edi
movzx ebx, byte [rbx + r10]
xor dil, bl
mov byte [rcx + rsi + 0x8c8], bl
mov byte [rcx + rsi + 0x8fc], dil
inc rsi
inc r11d
cmp rsi, 0x34
jne 0x140005a70
mov byte [rcx + 0xc], al
mov byte [rcx + 0xd], dl
mov byte [rcx + 0xe], r8b
mov byte [rcx + 0xf], 2
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140007380
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jae 0x140007403
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rax]
mov qword [rbp - 0x18], 0
lea rax, [rbp - 0x38]
mov qword [rbp - 0x10], rax
lea rax, str.cannot_write_to_file
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 0x14
lea rcx, [rbp - 0x60]
lea r8, [rbp - 0x28]
lea r9, [rbp - 0x18]
call fcn.1400067a0
mov byte [rbp - 0x38], 1
movzx eax, byte [rbp - 0x38]
lea rcx, [rbp - 0x58]
test al, 1
jne 0x14000740e
lea rax, vtable.std::exception.0
mov qword [rbp - 0x60], rax
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
add rsp, 0x98
pop rsi
pop rbp
ret
lea rax, vtable.std::exception.0
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp], xmm0
lea rax, vtable.std::system_error.0
mov qword [rbp - 0x18], rax
lea rdx, [0x1400203b8]
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14001a310
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14001a376
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov ecx, eax
mov rax, 0xffffffffffffffff
test ecx, ecx
jne 0x14001a36e
mov edx, dword [rsi + 0x40]
mov rcx, qword [rsi + 0x38]
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
js 0x14001a384
mov r9, qword [rsi + 0x38]
mov edx, 1
mov rcx, rbx
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
js 0x14001a392
add qword [rsi + 0x40], rax
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rdx, str.Invalid_file
lea rsi, [rsp + 0x58]
jmp 0x14001a39e
lea rdx, str.Error_seeking_file...
lea rsi, [rsp + 0x40]
jmp 0x14001a39e
lea rdx, str.Error_reading_file...
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140004e80
lea rdx, [0x1400203d8]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14001a3c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14001a40f
mov rdi, r8
mov rbx, rdx
mov edx, dword [rsi + 0x48]
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
js 0x14001a41d
mov r9, qword [rsi + 0x38]
mov edx, 1
mov rcx, rbx
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test rax, rax
js 0x14001a42b
add qword [rsi + 0x48], rax
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rdx, str.Invalid_file
lea rsi, [rsp + 0x58]
jmp 0x14001a437
lea rdx, str.Error_seeking_file...
lea rsi, [rsp + 0x40]
jmp 0x14001a437
lea rdx, str.Error_writing_file...
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140004e80
lea rdx, [0x1400203d8]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001abc4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001ac48
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001d9f0]
cmp byte [rcx + rax], 0
je 0x14001ac48
dec r8
sub rdx, 1
jne 0x14001ac2e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001b308
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0xcba24d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xcba25d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xcba245
lea eax, [rcx + 1]
jmp 0xcba26b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xcba27e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xcba264
sub eax, 3
jb 0xcba29e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xcba2ed
sar eax, 1
movsxd rbp, eax
jb 0xcba2d4
jmp 0xcba2ac
add ebx, ebx
jne 0xcba2aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xcba2d4
inc ecx
add ebx, ebx
jne 0xcba2ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xcba2d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xcba2cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xcba2bc
add ecx, 2
jmp 0xcba2d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00cba202
jmp 0xcba24d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2bdc00
mov dl, 0x27
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xcba339
cmp rsi, rcx
jae 0xcba341
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xcba320
cmp al, 0x8f
ja 0xcba320
cmp byte [rsi - 2], 0xf
je 0xcba326
sub al, 0xe8
cmp al, 1
ja 0xcba30a
cmp rsi, rcx
jae 0xcba341
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xcba310
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xcba341
lodsb al, byte [rsi]
jmp 0xcba320
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8b2000]
mov eax, dword [rdi]
or eax, eax
je 0xcba39e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8ba000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xcba34e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xcba398
mov qword [rbx], rax
add rbx, 8
jmp 0xcba36e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xcba3e2
cmp al, 0xef
ja 0xcba3ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xcba3aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xcba3b9
mov eax, dword [rdi]
add rdi, 4
jmp 0xcba3b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xcba436
sub rsp, 0xffffffffffffff80
jmp 0x4667a0
Function at 0x140002db0
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.1400049c0
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.1400049c0
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 0x140002e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f50
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e50
mov rcx, rbx
call fcn.140003870
mov rdi, rax
test rax, rax
je 0x140002f72
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002eee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f00
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002db0
nop dword [rax]
xor esi, esi
jmp 0x140002e78
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002db0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002db0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000353c
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 0x140003533
test rsi, rsi
je 0x140003533
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003518
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 0x140003870
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400038f0
Capabilities:
Parse pe header

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

Function at 0x1400039b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x402910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc rax
mov edi, dword [r8 + rax*4]
add rdi, rdx
cmp byte [rdi], 0
je 0x402eea
mov ebx, r12d
add ebx, 8
lea esi, [rbx - 7]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 6]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 5]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 4]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 3]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 2]
cmp byte [rsi + rdi], 0
je 0x402957
lea esi, [rbx - 1]
cmp byte [rsi + rdi], 0
je 0x402957
mov esi, ebx
cmp byte [rbx + rdi], 0
jne 0x40290d
mov r11d, r12d
xor ebx, ebx
test esi, esi
jbe 0x402984
movsxd rsi, esi
movsx r13d, byte [rbx + rdi]
inc rbx
movzx r15d, r13w
mov r13d, dword [rsp + 0x98]
imul r13d, r11d
lea r11d, [r15 + r13]
cmp rbx, rsi
jb 0x402963
movzx ebx, word [r9 + rax*2]
mov r15d, dword [r10 + rbx*4]
add r15, rdx
cmp ecx, r11d
jne 0x4028f7
mov eax, 0x60
mov edx, dword [rsp + 0xb8]
mov rax, qword gs:[rax]
mov r9, qword [rax + 0x18]
xor esi, esi
add r9, 0x10
mov r9, qword [r9]
mov edi, esi
mov r8, qword [r9 + 0x60]
movzx eax, word [r8]
test eax, eax
je 0x402b12
mov ecx, esi
mov eax, 0xfffffff8
add eax, 8
add ecx, 8
movzx r13d, word [r8 + rax*2]
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
lea r10d, [rcx - 7]
cmovbe r13d, r12d
add edi, r13d
movzx r13d, word [r8 + r10*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 6]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 5]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 4]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 3]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 2]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
lea r13d, [rcx - 1]
movzx r13d, word [r8 + r13*2]
test r13d, r13d
je 0x402b12
lea r11d, [r13 - 0x41]
cmp r11d, 0x19
lea r10d, [r13 + 0x20]
movzx r12d, r10w
cmovbe r13d, r12d
add edi, r13d
movzx r13d, word [r8 + rcx*2]
test r13d, r13d
jne 0x4029cf
nop dword [rax + rax]
nop dword [rax]
cmp edx, edi
jne 0x4029b3
mov rcx, qword [r9 + 0x30]
xor edx, edx
mov r8d, dword [rsp + 0xac]
xor r12d, r12d
mov qword [rsp + 0x3a0], r14
movsxd r9, dword [rcx + 0x3c]
mov eax, dword [r9 + rcx + 0x88]
mov r9d, dword [rax + rcx + 0x20]
mov r10d, dword [rax + rcx + 0x1c]
add r9, rcx
mov r11d, dword [rax + rcx + 0x24]
add r10, rcx
mov r11d, r12d
jmp 0x402984
Function at 0x406050
Capabilities:
Read pipe
Write pipe

Disassembly:
mov r9d, edx
mov rdx, r8
mov r8, rcx
lea rcx, str.Assertion_failed:__s__file__s__line__d
jmp fcn.004015c0

Function at 0x4103d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004c2624]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4104e7
mov rax, qword [0x004c2628]
xor edx, edx
add rax, 8
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x41041d
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rcx, r8
cmp rbx, rcx
jb 0x4104cd
add edx, 1
add rax, 0x18
cmp edx, ebp
jne 0x410401
mov rcx, rbx
call fcn.00411020
test rax, rax
mov r12, rax
je 0x41051f
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004c2628]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00411190
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004c2628]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410502
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4104c6
sub eax, 4
and eax, 0xfffffffb
je 0x4104c6
mov r9, rbp
add r9, qword [0x004c2628]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4104ee
add dword [0x004c2624], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x410428
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00410360
mov rax, qword [0x004c2628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00410360
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00410360
nop
nop

Function at 0x410c80
Capabilities:
Get thread local storage value

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