joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14035f790
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140334f30
lea rcx, [rsp + 0x48]
call fcn.140334f30
call fcn.14033e1e0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140334e20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14035f7ff
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140334fc0
lea rcx, [rsp + 0x78]
call fcn.140334fc0
mov eax, dword [rsp + 0x24]
jmp 0x14035f890
call fcn.14033e1e0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140334e20
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14035f846
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140334fc0
lea rcx, [rsp + 0x78]
call fcn.140334fc0
mov eax, dword [rsp + 0x2c]
jmp 0x14035f890
lea rcx, [rsp + 0x48]
call fcn.1403352e0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1403352e0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140334fc0
lea rcx, [rsp + 0x78]
call fcn.140334fc0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140001300
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x87828196
mov dword [rsp + 0x34], 0x8d8083d8
mov word [rsp + 0x38], 0x100
mov ecx, edi
nop dword [rax]
lea eax, [rcx - 0xe]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 8
jb 0x140001360
mov byte [rsp + 0x39], dil
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002da0
nop
cmp qword [rsp + 0xe0], 0
je 0x1400013c7
lea rcx, [rsp + 0x50]
call fcn.140003390
lea rcx, [rsp + 0x60]
call fcn.1400031c0
test rax, rax
jne 0x1400013c7
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov rbp, qword [0x1400090c8]
lea r14, [0x1400090b8]
cmp qword [0x1400090d0], 0xf
cmova r14, qword [0x1400090b8]
movabs rsi, 0x7fffffffffffffff
cmp rbp, rsi
ja 0x1400014e4
mov qword [rbx + 0x18], 0xf
cmp rbp, 0xf
ja 0x140001424
mov qword [rbx + 0x10], rbp
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
jmp 0x1400014af
mov rax, rbp
or rax, 0xf
cmp rax, rsi
jbe 0x140001459
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003b70
test rax, rax
je 0x140001480
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001494
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140001487
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400014ea
jmp 0x14000143e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001494
call fcn.140003b70
mov rdi, rax
mov qword [rbx], rdi
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rsi
lea r8, [rbp + 1]
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
nop
lea rcx, [rsp + 0x50]
call fcn.140001520
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400011c0
nop
call fcn.140001120
int3

Function at 0x1400014f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
je 0x140001513
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 8
jb 0x140001500
mov byte [rcx + 9], 0
mov rax, rcx
ret
Function at 0x140001ee0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x14], 0
je 0x140001f03
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x13
jb 0x140001ef0
mov byte [rcx + 0x14], 0
mov rax, rcx
ret

Function at 0x140001f10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x39], 0
je 0x140001f33
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x38
jb 0x140001f20
mov byte [rcx + 0x39], 0
mov rax, rcx
ret

Function at 0x140001f40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x38], 0
je 0x140001f63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x37
jb 0x140001f50
mov byte [rcx + 0x38], 0
mov rax, rcx
ret

Function at 0x140001f70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3a], 0
je 0x140001f93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x39
jb 0x140001f80
mov byte [rcx + 0x3a], 0
mov rax, rcx
ret

Function at 0x140001fc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1f], 0
je 0x140001fe3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1e
jb 0x140001fd0
mov byte [rcx + 0x1f], 0
mov rax, rcx
ret

Function at 0x140001ff0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140002013
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140002000
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140002020
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1e], 0
je 0x140002043
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1d
jb 0x140002030
mov byte [rcx + 0x1e], 0
mov rax, rcx
ret

Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x4d], 0
je 0x140002073
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x4c
jb 0x140002060
mov byte [rcx + 0x4d], 0
mov rax, rcx
ret

Function at 0x140002080
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3c], 0
je 0x1400020a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x3b
jb 0x140002090
mov byte [rcx + 0x3c], 0
mov rax, rcx
ret

Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x30], 0
je 0x1400020d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2f
jb 0x1400020c0
mov byte [rcx + 0x30], 0
mov rax, rcx
ret

Function at 0x1400020e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2b], 0
je 0x140002103
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2a
jb 0x1400020f0
mov byte [rcx + 0x2b], 0
mov rax, rcx
ret
Function at 0x140002110
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xd], 0
je 0x140002133
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xe]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xc
jb 0x140002120
mov byte [rcx + 0xd], 0
mov rax, rcx
ret

Function at 0x1400024d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400024f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000251e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002520
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002579
test ecx, ecx
jle 0x140002559
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002579
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002579
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400025a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400025c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400025d1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400025f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400025f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002632
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400026ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000266d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400026ae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400026ce
cmp rbx, rax
ja 0x140002680
test rbx, rbx
je 0x1400026ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b5d
xor eax, eax
jmp 0x140002cc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002cc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002cbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002bda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002c05
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c74
sub eax, 1
je 0x140002c74
cmp eax, 2
jne 0x140002cbc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002ca2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002cbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003b50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400030d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400031a3
cmp byte [rcx + 0x71], 0
je 0x1400031a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000319f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003164
sub eax, 1
je 0x140003168
cmp eax, 2
jne 0x14000319f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003b50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003196
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000319f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000314c
xor al, al
jmp 0x14000314c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003b50
add rsp, 0x60
pop rbx
ret

Function at 0x140004578
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [fcn.0040ec60]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x401bb4
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x0041005c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x40ebc8
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.00401ac5
jmp 0x401b75

Function at 0x401ea7
Capabilities:
Write file on windows

Disassembly:
push r12
push rdi
sub rsp, 0x28
xor r8d, r8d
mov r12, rcx
mov r10, rdx
test rdx, rdx
je 0x401ece
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r10
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop rdi
pop r12
jmp 0x40ebc8
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x40daa0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.0040ec60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040ec60
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x40db10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0041a874]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40dcb8
mov rax, qword [0x0041a878]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40db5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40dbe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40db40
mov rcx, r12
call fcn.0040e870
mov rbp, rax
test rax, rax
je 0x40dcf2
mov rax, qword [0x0041a878]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040e9a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041a878]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40dd01
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40dbe0
sub eax, 4
and eax, 0xfffffffb
jne 0x40dc70
add dword [0x0041a874], 1
cmp ebx, 8
jae 0x40dc18
test bl, 4
jne 0x40dcc0
test ebx, ebx
je 0x40dc09
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40dce0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40dc09
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40dc4a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0041a878]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40dbe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040daa0
nop dword [rax]
xor edi, edi
jmp 0x40db67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40dc09
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40dc09
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040daa0
mov rax, qword [0x0041a878]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040daa0
nop
nop dword [rax]
Function at 0x40e4e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041ab60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041ab40]
test rbx, rbx
je 0x40e534
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40e52b
test r12, r12
je 0x40e52b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40e510
lea rcx, [0x0041ab60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40e870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00413d00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40e8e9
mov rcx, r10
call fcn.0040e740
test eax, eax
je 0x40e8e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40e8e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40e8dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40e8e9
add r8, 0x28
cmp r8, r9
jne 0x40e8c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret