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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [r8]
xor r8d, r8d
mov r9d, 0x1c
cmp word [rbp], 2
mov r13d, 8
mov r15, rdx
cmove r9d, r13d
mov rsi, rcx
mov eax, 0x811c9dc5
test r9, r9
jle 0x180178187
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rbp]
imul rax, rax, 0x1000193
inc r8
xor rax, rcx
cmp r8, r9
jl 0x180178170
mov rcx, qword [rsi + 0x28]
mov rdx, rcx
and rdx, rax
cmp qword [rsi + 0x30], rdx
ja 0x1801781a4
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [rsi + 0x10]
mov rsi, qword [rsi]
lea rax, [rdx + rdx]
mov r14, qword [rcx + rax*8]
mov rbx, rdx
mov qword [rsp + 0x50], rdi
add rbx, rbx
lea r12, [rcx + rax*8]
mov rbx, qword [rcx + rbx*8]
cmp r14, rsi
jne 0x1801781d0
mov rax, rsi
jmp 0x1801781d8
mov rax, qword [r12 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x18017824c
mov rcx, qword [rbx + 0x10]
mov r8d, 0x1c
mov rdx, rbp
cmp word [rcx], 2
cmove r8, r13
call fcn.18017e7c0
test eax, eax
je 0x180178200
mov rbx, qword [rbx]
jmp 0x1801781c6
mov rdi, rbx
cmp r14, rsi
jne 0x18017820d
mov rax, rsi
jmp 0x180178215
mov rax, qword [r12 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x18017823e
cmp word [rbp], 2
mov rdx, qword [rbx + 0x10]
mov r8d, 0x1c
cmove r8, r13
mov rcx, rbp
call fcn.18017e7c0
test eax, eax
jne 0x18017823e
mov rbx, qword [rbx]
jmp 0x180178203
cmp rdi, rbx
je 0x18017824c
mov qword [r15], rdi
mov qword [r15 + 8], rbx
jmp 0x180178253
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rax, r15
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x180178280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rbx, qword [r8 + 0x10]
mov r9, r8
xor r8d, r8d
cmp word [rbx], 2
mov r10, rcx
mov r11d, 0x1c
mov ecx, 8
mov rdi, rdx
mov eax, 0x811c9dc5
cmove r11d, ecx
test r11, r11
jle 0x1801782d7
nop dword [rax]
movzx ecx, byte [r8 + rbx]
imul rax, rax, 0x1000193
inc r8
xor rax, rcx
cmp r8, r11
jl 0x1801782c0
mov rcx, qword [r10 + 0x28]
mov rdx, rcx
and rdx, rax
cmp qword [r10 + 0x30], rdx
ja 0x1801782f4
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [r10 + 0x10]
shl rdx, 4
add rcx, rdx
cmp qword [rcx + 8], r9
jne 0x180178328
cmp qword [rcx], r9
jne 0x18017831e
mov rax, qword [r10]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x10]
mov rax, qword [r10]
mov qword [rdx + rcx + 8], rax
jmp 0x180178333
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x180178333
cmp qword [rcx], r9
jne 0x180178338
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [r9 + 8]
mov rbx, qword [r9]
mov rcx, r9
mov qword [rax], rbx
mov rdx, qword [r9]
mov rax, qword [r9 + 8]
mov qword [rdx + 8], rax
dec qword [r10 + 8]
call sym.HPSocket4C_U.dll_SYS_Free
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1801786c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, qword [r8]
xor r8d, r8d
mov rdi, r9
cmp word [rbp], 2
mov r12, rdx
mov edx, 0x1c
mov r10d, 8
mov r9d, edx
mov r14, rcx
cmove r9d, r10d
mov eax, 0x811c9dc5
test r9, r9
jle 0x180178727
nop word [rax + rax]
movzx ecx, byte [r8 + rbp]
imul rax, rax, 0x1000193
inc r8
xor rax, rcx
cmp r8, r9
jl 0x180178710
mov rcx, qword [r14 + 0x28]
mov rsi, rcx
and rsi, rax
cmp qword [r14 + 0x30], rsi
ja 0x180178744
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rsi, rax
mov rax, qword [r14 + 0x10]
mov rbx, qword [r14]
shl rsi, 4
mov r15, qword [rsi + rax]
cmp r15, rbx
je 0x180178760
mov rbx, qword [rsi + rax + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x50], r13
cmp rbx, r15
je 0x1801787f9
cmp word [rbp], 2
mov r13, rdx
cmove r13, r10
nop word [rax + rax]
mov rbx, qword [rbx + 8]
mov r8, r13
mov rcx, rbp
mov rdx, qword [rbx + 0x10]
call fcn.18017e7c0
test eax, eax
je 0x18017879e
cmp rbx, r15
jne 0x180178780
jmp 0x1801787f9
mov rcx, qword [rbx + 0x10]
mov eax, 8
mov r8d, 0x1c
cmp word [rcx], 2
mov rdx, rbp
cmove r8d, eax
call fcn.18017e7c0
test eax, eax
je 0x1801787c6
mov rbx, qword [rbx]
jmp 0x1801787f9
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r14 + 8]
mov rcx, rdi
call sym.HPSocket4C_U.dll_SYS_Free
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x18017888c
mov rax, qword [rdi]
cmp rbx, rax
je 0x18017882e
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rcx, qword [rax + 8]
mov rdx, qword [rbx + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14 + 0x10]
add rdx, rsi
mov rax, qword [rdx]
cmp rax, qword [r14]
jne 0x18017884b
mov qword [rdx], rdi
mov rax, qword [r14 + 0x10]
mov qword [rsi + rax + 8], rdi
jmp 0x180178877
cmp rax, rbx
jne 0x180178855
mov qword [rdx], rdi
jmp 0x180178877
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x180178877
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi + 8], rcx
mov rcx, r14
call fcn.1801788b0
mov qword [r12], rdi
mov byte [r12 + 8], 1
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140002210
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x14000225c
cmp rax, rbx
jne 0x14000224f
mov ebx, 1
mov esi, ebx
jmp 0x140002261
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002234
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002277
mov ecx, 0x1f
call fcn.140174000
jmp 0x1400022dc
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022d6
mov dword [0x140004658], ebx
lea r15, [0x1400033b8]
lea rdi, [0x1400033a0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400022c8
test eax, eax
jne 0x1400022cc
cmp qword [rdi], 0
je 0x1400022bd
mov rax, qword [rdi]
mov rcx, qword [0x140003380]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000229e
test eax, eax
je 0x1400022dc
mov eax, 0xff
jmp 0x1400023b8
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002303
lea rdx, [0x140003398]
lea rcx, [0x140003388]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002310
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002344
lea rcx, [0x140004660]
call fcn.1400025c0
test eax, eax
je 0x140002344
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003380]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001814
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002374
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002389
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x1400023b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140002654
add rsp, 0x28
jmp 0x140002210

Function at 0x1400024ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400024f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400024f0
cmp dword [rcx + 0x3c], edx
jl 0x1400024f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400024f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400024f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400032d0
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 0x1400032f8
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 0x14000331e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003320
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003379
test ecx, ecx
jle 0x140003359
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 0x140003379
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003379
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

Function at 0x1400033a0
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 0x1400033c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400033d8
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 0x1400033f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400033f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003432
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 0x1400034ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000346d
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 0x1400034ae
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 0x1400034ce
cmp rbx, rax
ja 0x140003480
test rbx, rbx
je 0x1400034ce
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
Function at 0x140003930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000395d
xor eax, eax
jmp 0x140003ac9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003997
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003997
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 0x140003ac9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003abc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400039da
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 0x140003a05
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 0x140003ac1
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 0x140003a74
sub eax, 1
je 0x140003a74
cmp eax, 2
jne 0x140003abc
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 0x140003ac1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003aa2
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 0x140003abc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ac1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005720
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003f80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004053
cmp byte [rcx + 0x71], 0
je 0x140004053
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000404f
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 0x140004014
sub eax, 1
je 0x140004018
cmp eax, 2
jne 0x14000404f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005720
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004046
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 0x14000404f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003ffc
xor al, al
jmp 0x140003ffc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005720
add rsp, 0x60
pop rbx
ret

Function at 0x1400060a0
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
mov rbp, rcx
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov ebx, edx
mov qword [rsp + 0x28], rcx
xor edx, edx
or rcx, 0xffffffffffffffff
mov r12, r8
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r8d, r8d
xor r9d, r9d
mov edx, 0xf003f
mov rdi, rax
mov qword [rsp + 0x20], r8
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, eax
jle 0x2fbac141e
mov rdx, rax
and edx, 7
mov dl, byte [r12 + rdx]
xor dl, byte [rbp + rax]
mov byte [rsi + rax], dl
inc rax
jmp 0x2fbac1404
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, 0x20
call fcn.2fbac1373
movsxd rdx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xor edx, edx
mov r9, rsi
mov dword [rsp + 0x20], edx
lea r8, [0x2fbac1370]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x2fbac14a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov rdi, rcx
xor ecx, ecx
mov ebx, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x30], rcx
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea rcx, [0x2fbacc040]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x2fbac1541
lea r12, [rsp + 0x4c]
xor edx, edx
mov ebp, 0x19000
mov dword [rsp + 0x4c], edx
test ebx, ebx
jle 0x2fbac1520
cmp ebp, ebx
mov r9, r12
mov rdx, rdi
cmovg ebp, ebx
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2fbac152b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2fbac1541
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rdi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x2fbac14fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x2fbac156a
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rdi, rcx
xor ecx, ecx
mov esi, edx
mov dword [rsp + 0x34], ecx
lea rbp, [rsp + 0x38]
mov rbx, r8
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], ecx
xor edx, edx
mov rcx, qword [0x2fbacc020]
mov r9, rbp
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x34]
xor edx, edx
call r12
test eax, eax
je 0x2fbac15e7
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x2fbac15e7
xor eax, eax
mov rcx, qword [0x2fbacc020]
add rdx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x2fbac1596
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x2fbac1661
Capabilities:
Create mailslot
Create thread

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rbx, [0x2fbacc040]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov r8d, 0x5c
mov rcx, rbx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call fcn.2fbac1470
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x2fbacc020], rax
inc rax
je 0x2fbac174c
xor eax, eax
xor edx, edx
xor r9d, r9d
mov dword [rsp + 0x20], edx
lea r8, [0x2fbac154c]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.2fbac15f9
mov rcx, qword [0x2fbacc020]
sub rsp, 0xffffffffffffff80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop rbx
ret

Function at 0x2fbac1777
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x2fbac17a7
xor edx, edx
xor eax, eax
mov qword [0x2fbacc080], rcx
xor r9d, r9d
mov dword [rsp + 0x20], edx
lea r8, [0x2fbac1760]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x2fbac1990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.2fbac73f0
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.2fbac73f0
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 0x2fbac1a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2fbacc0d4]
test esi, esi
mov rbx, rcx
jle 0x2fbac1b30
mov rax, qword [0x2fbacc0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2fbac1a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2fbac1ad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2fbac1a30
mov rcx, rbx
call fcn.2fbac2260
test rax, rax
mov rdi, rax
je 0x2fbac1b52
mov rax, qword [0x2fbacc0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2fbac23a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2fbacc0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2fbac1b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2fbac1ace
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2fbac1ae0
add dword [0x2fbacc0d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2fbacc0d8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2fbac1ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2fbac1990
nop dword [rax]
xor esi, esi
jmp 0x2fbac1a58
mov rax, qword [0x2fbacc0d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2fbac1990
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2fbac1990
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2fbac1ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2fbacc100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2fbacc0e0]
test rbx, rbx
je 0x2fbac1f2c
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 0x2fbac1f23
test rsi, rsi
je 0x2fbac1f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2fbac1f08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]