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

Disassembly:
mov rax, qword [0x180199bd0]
xor r8d, r8d
vmovss xmm0, dword [rsp + 0x28]
mov dword [0x180199bc8], r8d
mov dword [0x180199bd8], r8d
mov qword [rax], rcx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov qword [rax + rcx*8], rdx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm2
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm3
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm0
mov eax, dword [0x180199bc8]
vmovss xmm0, dword [rsp + 0x30]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm0
mov eax, dword [0x180199bc8]
vmovss xmm0, dword [rsp + 0x38]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm0
mov eax, dword [0x180199bc8]
mov ecx, dword [rsp + 0x40]
inc eax
mov dword [0x180199bc8], eax
mov edx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rdx*8], ecx
mov eax, dword [0x180199bc8]
mov ecx, dword [rsp + 0x48]
inc eax
mov dword [0x180199bc8], eax
mov edx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rdx*8], ecx
mov eax, dword [0x180199bc8]
mov ecx, dword [rsp + 0x50]
inc eax
mov dword [0x180199bc8], eax
mov edx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rdx*8], ecx
mov eax, dword [0x180199bc8]
mov ecx, dword [rsp + 0x58]
inc eax
mov dword [0x180199bc8], eax
mov edx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rdx*8], ecx
mov eax, dword [0x180199bc8]
mov ecx, dword [rsp + 0x60]
inc eax
mov dword [0x180199bc8], eax
mov edx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rdx*8], ecx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
movabs rdx, 0xe7ffae5ebf23d890
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], r8d
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x1800373f0
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov qword [rax], rcx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov qword [rax + rcx*8], rdx
movabs rdx, 0x873c9f3104101dd3
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037440
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
lea rcx, str.STRING
mov dword [0x180199bc8], eax
movabs rdx, 0x25fbb336df1804cb
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov qword [rax], rcx
inc dword [0x180199bc8]
jmp fcn.18001ad70
Function at 0x180037480
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [0x180199bd0]
xor edx, edx
mov dword [0x180199bc8], edx
mov dword [0x180199bd8], edx
vmovss dword [rax], xmm0
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm1
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], edx
movabs rdx, 0xcd015e5bb0d96a57
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037550
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
movabs rdx, 0x7c837f9a01c34c9
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
vmovss dword [rax], xmm0
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm1
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x1800375a0
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov dword [rax], ecx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], edx
movabs rdx, 0xbe6b23ffa53fb442
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], r8d
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], r9d
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037620
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
movabs rdx, 0xc02f4dbfb51d988b
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov dword [rax], 1
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037650
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
movabs rdx, 0x6b3c4650bc8bee47
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov dword [rax], 1
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037680
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [0x180199bd0]
xor ecx, ecx
mov dword [0x180199bc8], ecx
movabs rdx, 0x63145d9c883a1a70
mov dword [0x180199bd8], ecx
mov dword [rax], ecx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
vmovss dword [rax + rcx*8], xmm1
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x1800376d0
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
movabs rdx, 0x66e0276cc5f6b9da
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov dword [rax], ecx
inc dword [0x180199bc8]
jmp fcn.18001ad70

Function at 0x180037700
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
movabs rdx, 0x1ca3e9eac9d93e5e
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
jmp fcn.18001ad70
Function at 0x180037780
Capabilities:
Hash data using fnv

Disassembly:
xor eax, eax
mov dword [0x180199bc8], eax
mov dword [0x180199bd8], eax
mov rax, qword [0x180199bd0]
mov dword [rax], ecx
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], edx
movabs rdx, 0xfe99b66d079cf6bc
mov eax, dword [0x180199bc8]
inc eax
mov dword [0x180199bc8], eax
mov ecx, eax
mov rax, qword [0x180199bd0]
mov dword [rax + rcx*8], 1
inc dword [0x180199bc8]
jmp fcn.18001ad70
Function at 0x18003a3c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x180199a80]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbp, rcx
xor r14d, r14d
lea rbx, [rcx + 0xc8]
lea rdi, [0x18019b910]
mov rcx, rdi
call fcn.18010d5c0
test al, al
je 0x18003a49c
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x16
lea rax, [0x18013eefe]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, str.big::thread_pool::rescale_thread_pool
mov r8d, 0x17
lea rdx, str.E:Unfinished_modsGame_Hacks_in_the_worksPECA_ServicesPECA___Engine_V3BigBaseV2_threads_pool.cpp
lea rcx, [rsp + 0x60]
call fcn.18010d650
nop
lea rcx, [rax + 8]
lea rdx, str.Resizing_thread_pool_from
call fcn.180008970
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 4
mov rcx, rax
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str._to
call fcn.180008970
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
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___unsigned_long_long_unsigned___int64_____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.18010d820
mov rcx, qword [rbp + 0xe0]
mov qword [rsp + 0x40], rcx
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
sar rax, 4
cmp rcx, rax
jbe 0x18003a4d8
movabs rax, 0xfffffffffffffff
cmp rcx, rax
ja 0x18003a5ee
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18003b050
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 4
mov rax, qword [rbp + 0xe0]
cmp rcx, rax
jae 0x18003a5a9
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx]
sar rdi, 4
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jae 0x18003a5a9
lea r15, [0x18003a730]
mov ecx, 0x10
call fcn.180123a9c
mov qword [rax], rbp
mov qword [rax + 8], r15
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x18001f7d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18003a5dd
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x18003a581
vpxor xmm0, xmm0, xmm0
vmovups xmm1, xmmword [rsp + 0x50]
vmovdqa xmmword [rsp + 0x50], xmm0
vmovups xmmword [rdx], xmm1
add qword [rbx + 8], 0x10
jmp 0x18003a58f
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.18003b1e0
nop
cmp dword [rsp + 0x58], 0
jne 0x18003a5d6
inc rdi
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jb 0x18003a515
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180123a40
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.18000ac50
int3
Function at 0x18003b680
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, 0x35
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x180130480]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x18003b6b9
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x180180350]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x18003b7f3
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x18003b76c
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x18003b730
jmp 0x18003b77b
cmp eax, 0x270
jb 0x18003b77b
mov rcx, rbx
call fcn.18003ca40
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x18003b7cd
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x18003b715
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x18003ca40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x18003ca60
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x18003cab0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x18003d5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x180199a80]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x20
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18003d68f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x18003d757
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x18003d745
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x18003d745
shr ecx, 1
je 0x18003d703
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x18003d6f9
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x18003d6f0
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.18003d470
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.18003d0d0
jmp 0x18003d75f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.18003d780
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.180123a40
add rsp, 0xae0
pop rbx
ret
Function at 0x18003d860
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180199a80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x1801306d0]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x1801306d4]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x1801306b8]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x1801306c8]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18003d964
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18003d918
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x18003d987
inc ax
mov word [rsp + 0x6a], ax
jmp 0x18003d933
cmp eax, 0xe7
jne 0x18003d987
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18003d987
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18003d8f8
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180123a40
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x18003d969

Function at 0x18003d990
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18003d9b0
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x18003d9a6
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18003d9a6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18003da3b
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x18003da50
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x18003da24
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.18003d7d0
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x18003da60
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x18003da76
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x18003da83
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18003da7b
test rdx, rdx
je 0x18003da7b
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18003daba
cmp dword [rsp + 0x50], edi
jne 0x18003daba
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180043830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x180199a80]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [rsp + 0x20]
call fcn.180005c60
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.18005f020
nop
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x2a0]
mov edx, dword [rsp + 0x298]
lea rcx, [rsp + 0x50]
call qword [rsp + 0x28]
nop
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
call fcn.180069300
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.180064df0
mov qword [rsp + 0x40], rax
mov r9, qword [rsp + 0x30]
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test rax, rax
jbe 0x1800438fd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop
lea rcx, [rsp + 0x50]
call fcn.18005fc80
nop
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180123a40
add rsp, 0x288
ret
Function at 0x180063cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rcx, qword [rsp + 0x88]
call fcn.180067f20
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x80]
call fcn.180067f20
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x48]
call fcn.18004dbb0
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x90]
call fcn.180067f20
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x38]
inc eax
cmp eax, dword [rsp + 0x28]
jge 0x180063d32
mov eax, 0xffffffff
jmp 0x180063ea9
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x38], eax
jle 0x180063d46
mov eax, 1
jmp 0x180063ea9
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
add rax, 0xa8
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x88]
add rcx, 0xa8
mov rdx, qword [rsp + 0x80]
add rdx, 0xa8
mov qword [rsp + 0x58], rdx
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.18004dc20
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call fcn.18004dc20
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x24], eax
jmp 0x180063dcf
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x24], eax
jl 0x180063e8b
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.180062140
mov eax, eax
mov qword [rsp + 0x68], rax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x20]
call fcn.180062140
mov eax, eax
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x20]
call fcn.180062140
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
add rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jbe 0x180063e56
mov eax, 1
jmp 0x180063ea9
mov eax, dword [rsp + 0x3c]
add rax, qword [rsp + 0x30]
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 1
jbe 0x180063e78
mov eax, 0xffffffff
jmp 0x180063ea9
mov rax, qword [rsp + 0x30]
shl rax, 0x20
mov qword [rsp + 0x30], rax
jmp 0x180063dc5
cmp qword [rsp + 0x30], 0
je 0x180063e9d
mov dword [rsp + 0x40], 0xffffffff
jmp 0x180063ea5
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x70
pop rdi
ret
Function at 0x1800661a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov r9, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x28], rax
jae 0x180066289
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rdx, str.cannot_write_to_file
mov rcx, qword [rsp + 0x30]
call fcn.180043f70
lea rcx, [rsp + 0x48]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.180050670
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180047540
nop
lea rcx, [rsp + 0x80]
call fcn.180006a40
nop
add rsp, 0xb8
pop rdi
pop rsi
ret