joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056750
Capabilities:
Parse pe header

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

Function at 0x1400b4f0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140001fe6
sub rsp, rax
mov rax, qword [0x140175898]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000678a
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b4f5b
mov rax, rbp
jmp 0x1400b5063
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x186f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140002e3c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x186f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b505f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b505f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140002e3c
test rax, rax
js 0x1400b505f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b505f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b5051
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b5051
cmp byte [rcx], 0xd
jne 0x1400b5037
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b5046
cmp byte [rcx + 1], 0xa
jne 0x1400b5046
inc rcx
jmp 0x1400b5046
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x175e10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b5019
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b5063
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400039d1
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140116ce0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140186f50]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140116d3e
cmp word [rdx], r12w
jne 0x140116d3e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140116d44
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140116e9f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140116e7a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140116d7d
mov rcx, r9
jmp 0x140116da0
cmp r9, rdx
jae 0x140116db7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140116d61
jmp 0x140116e9f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140116e74
cmp dword [rsp + 0x80], edi
je 0x140116e74
mov rdx, r14
lea r11, [0x140186f50]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140116e4d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140116e20
mov word [rbx], r12w
jmp 0x140116e9b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140116e29
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140116e9b
cmp word [rsp + 0x70], r12w
jne 0x140116e5a
cmp rbx, rsi
je 0x140116e1a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140001e74
cmp word [rsp + 0x70], r12w
je 0x140116e9f
mov word [rbx], r13w
jmp 0x140116e9b
lea r11, [0x140186f50]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140116e97
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140116e9f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800010c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rax, vtable.DefaultErrStreamBuf.0
mov rsi, rcx
mov qword [rcx], rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
cmp rax, rbx
je 0x18000115f
mov rcx, rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov ecx, 2
sub rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char____ptr64__char____ptr64____ptr64]
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rcx, rax
call fcn.180004edc
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
Function at 0x180001360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
cmp rax, rbx
je 0x1800013f5
mov rcx, rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov ecx, 2
sub rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char____ptr64__char____ptr64____ptr64]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x180003ff0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 4
call fcn.180005530
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004016
mov rcx, rax
call fcn.180004e90
nop
mov qword [rbx], rax
xor edx, edx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.180004ed0
Function at 0x180004860
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov edx, dword [0x18000c400]
mov rax, qword gs:[0x58]
mov esi, 4
mov rbx, qword [rax + rdx*8]
mov eax, dword [rbx + rsi]
cmp dword [0x18000c350], eax
jg 0x180004960
mov eax, dword [rbx + rsi]
cmp dword [0x18000c358], eax
jg 0x1800049b3
cmp byte [0x18000c354], 0
je 0x1800048e4
mov eax, dword [rbx + rsi]
cmp dword [0x18000c368], eax
jg 0x180004921
lea rdx, [0x18000c360]
lea rcx, [rsp + 0x38]
call sym.sfml_system_2.dll_public:_void___cdecl_sf::Lock::constructor_class_sf::Mutex____ptr64____ptr64
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
call sym.sfml_system_2.dll_public:_void___cdecl_sf::Lock::destructor_void____ptr64
jmp 0x1800048ef
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [0x18000c348]
cvttsd2si rdx, xmm0
mov rcx, rdi
call sym.sfml_system_2.dll_private:_void___cdecl_sf::Time::constructor_long_long___int64_____ptr64
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x18000c368]
call fcn.1800053f4
cmp dword [0x18000c368], 0xffffffff
jne 0x1800048bc
lea rcx, [0x18000c360]
call sym.sfml_system_2.dll_public:_void___cdecl_sf::Mutex::constructor_void____ptr64
lea rcx, [0x180006670]
call fcn.180005254
nop
lea rcx, [0x18000c368]
call fcn.180005394
jmp 0x1800048bc
lea rcx, [0x18000c350]
call fcn.1800053f4
cmp dword [0x18000c350], 0xffffffff
jne 0x180004899
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x38]
movsd xmm1, qword [0x180007618]
divsd xmm1, xmm0
movsd qword [0x18000c348], xmm1
lea rcx, [0x18000c350]
call fcn.180005394
jmp 0x180004899
lea rcx, [0x18000c358]
call fcn.1800053f4
cmp dword [0x18000c358], 0xffffffff
jne 0x1800048a8
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb byte [0x18000c354]
lea rcx, [0x18000c358]
call fcn.180005394
jmp 0x1800048a8

Function at 0x180004d30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 8]
mov rbx, rcx
mov r9, rdx
mov qword [rsp + 0x28], rax
lea r8, [0x180004e30]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x180004d8a
call sym.sfml_system_2.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_sf::err_void_
mov rcx, rax
lea rdx, str.Failed_to_create_thread
call fcn.180004a90
mov rcx, rax
lea rdx, [0x180004cf0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x180004e50
Capabilities:
Terminate thread

Disassembly:
mov rcx, qword [rcx]
test rcx, rcx
je 0x180004e61
xor edx, edx
jmp qword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x1410d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410d81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410d8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410d806f
add dl, dl
jne 0x1410d8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410d80f6
xor eax, eax
add dl, dl
jne 0x1410d80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410d81ad
add dl, dl
jne 0x1410d80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410d80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410d80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410d80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410d80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410d807e
mov eax, 1
add dl, dl
jne 0x1410d8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410d8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410d80fb
sub eax, ebx
mov ebx, 1
jne 0x1410d814c
mov ecx, 1
add dl, dl
jne 0x1410d812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410d813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410d8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410d807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410d8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410d8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410d815d
cmp eax, 0x7d00
jae 0x1410d819b
cmp eax, 0x500
jb 0x1410d8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410d807e
cmp eax, 0x7f
ja 0x1410d819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410d807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410d81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410d807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002b70
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.140004780
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.140004780
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 0x140002be0
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 0x140002d10
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002cb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002c10
mov rcx, rbx
call fcn.140003630
mov rdi, rax
test rax, rax
je 0x140002d32
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.140003770
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 0x140002d17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002cae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002cc0
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 0x140002cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b70
nop dword [rax]
xor esi, esi
jmp 0x140002c38
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.140002b70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400032a0
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 0x1400032fc
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 0x1400032f3
test rsi, rsi
je 0x1400032f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400032d8
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 0x140003630
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400036b0
Capabilities:
Parse pe header

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

Function at 0x140003770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000378f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003798
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140024eb0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140024f30
jmp 0x140024f1f
jae 0x140024fd4
cmp r8, 0x201
jae 0x140024f30
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140024f77
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140024f57
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14000ff80
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x140024f9b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140025032
mov r8d, ebx
cmp rbp, r8
jne 0x140024f10
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140025052
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140024f1f
jmp 0x140024f30
cmp r12, r8
jb 0x14002506c
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1400329d0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x14002501b
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.140001940
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140025005
jmp 0x14002501b
lea rcx, str.internal_error:_entered_unreachable_code8
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140098a10
jmp 0x140025081
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14009f0d0
ud2
Function at 0x14003b740
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.1400bbb30
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x14004a130]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14003b8d5
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003b7d3
cmp dword [rsp + 0x38], 0
jne 0x14003b8da
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x14003b8da
cmp r15d, 0x1000
ja 0x14003b91a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x14003b906
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14003b8d5
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003b870
cmp dword [rsp + 0x38], 0
jne 0x14003b8da
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x14003b820
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x14003b7d3
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call fcn.1400bbeb4
mov rcx, rsi
call fcn.1400bbeb4
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14009f150
jmp 0x14003b92e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14009f0d0
ud2