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

Disassembly:
sub rsp, 0x318
lea rdx, [rsp + 0x30]
mov ecx, 5
lea rax, [0x14004d620]
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x14002bae0
movzx ecx, word [rax + 0x20]
xor r8d, r8d
cmp dword [0x14005e018], 2
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov word [rdx + 0x20], cx
movzx ecx, byte [rax + 0x22]
mov byte [rdx + 0x22], cl
jl 0x14002bce4
movdqa xmm0, xmmword [0x140057970]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400578d0]
mov eax, 4
movdqa xmm4, xmmword [0x1400579b0]
movaps xmmword [rsp + 0x300], xmm6
movaps xmmword [rsp + 0x2f0], xmm7
movdqa xmm7, xmmword [0x1400578f0]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
movaps xmmword [rsp + 0x2e0], xmm8
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140057940]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140057940]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x2a0
jl 0x14002bbc0
movaps xmm8, xmmword [rsp + 0x2e0]
movaps xmm7, xmmword [rsp + 0x2f0]
movaps xmm6, xmmword [rsp + 0x300]
cmp r8d, 0x2a3
jge 0x14002bd26
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x34
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0x2a3
jl 0x14002bcf0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x30]
call fcn.140041160
add rsp, 0x318
ret
Function at 0x140041fc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14005e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140047df0
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140042230]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140042036
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140047dd0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140044010
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.140049590
sub rsp, rax
mov rax, qword [0x14005e010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x14004405c
mov rdx, rbp
jmp 0x140044170
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140042e10
test al, al
je 0x140044054
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x1400440a0
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140044145
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004410e
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140044100
cmp rdi, rax
je 0x14004411e
inc esi
cmp esi, r14d
jae 0x140044145
lea rdx, str.PAGE
jmp 0x1400440e0
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140044145
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140044145
test ecx, ecx
je 0x140044145
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140044148
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140043f00
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140047dd0
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x140047b90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14005e010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140047c1e
test rbx, rbx
je 0x140047be6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140047bd0
test eax, eax
jns 0x140047c3f
test rbx, rbx
je 0x140047c44
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140047d42
test rbx, rbx
jne 0x140047c4b
xor eax, eax
jmp 0x140047d42
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140047d22
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x140047ca0
lea rcx, [rsp + 0x28]
call fcn.140028dd0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x140047cc0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140047d58
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140047d18
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047d13
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047da1
call fcn.140048090
inc edi
cmp edi, dword [rbx]
jb 0x140047c64
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140047dd0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140047dad
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047da8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048090
mov rax, rdi
jmp 0x140047d35
Function at 0x140048a64
Capabilities:
Parse pe header

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

Function at 0x140048cf8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140048d7c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004b8b0]
cmp byte [rcx + rax], 0
je 0x140048d7c
dec r8
sub rdx, 1
jne 0x140048d62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800018ac
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword gs:[0x60]
xor r15d, r15d
mov esi, dword [rcx + 0x10]
xorps xmm0, xmm0
mov rbx, rcx
mov dword [rbp - 0x30], 9
mov dword [rbp - 0x2c], 0x1000000
movzx r8d, word [rdi + 0x120]
lea r14d, [r15 + 0x30]
mov edx, dword [rdi + 0x11c]
mov eax, dword [rdi + 0x118]
mov r9d, dword [rdi + 0x124]
mov dword [rbp - 0x20], r8d
mov r8d, r14d
mov dword [rbp - 0x24], edx
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x28], eax
mov dword [rbp - 0x1c], r9d
mov qword [rbp - 0x18], r15
movdqu xmmword [rbp - 0x10], xmm0
call fcn.1800011b0
test eax, eax
je 0x18000198d
mov rax, qword [rbx + 8]
lea r8d, [r15 + 4]
lea rdx, [rbp + 0x20]
mov rcx, rbx
mov dword [rax + 0x24], r14d
mov rax, qword [rbx + 8]
mov dword [rax + 0x28], esi
movzx eax, word [rdi + 0x2e8]
mov r14d, dword [rbx + 0x10]
mov dword [rbp + 0x20], eax
call fcn.1800011b0
test eax, eax
je 0x18000198d
movzx r8d, word [rdi + 0x2e8]
mov rcx, rbx
mov rdx, qword [rdi + 0x2f0]
call fcn.1800011b0
test eax, eax
je 0x18000198d
mov rcx, qword [rbx + 8]
lea edx, [rsi + 0x18]
lea eax, [r15 + 1]
mov dword [rdx + rcx], r14d
jmp 0x18000198f
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1800034c0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x1337c0de
cmp byte [rcx], r9b
je 0x1800034ea
movzx ecx, word [rcx]
mov edx, eax
ror edx, 8
inc r9d
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x1800034d0
ret
Function at 0x1800034ec
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
cmp dword [0x1800097c0], edi
jne 0x1800036b2
mov rax, qword gs:[0x60]
mov edx, edi
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x1800036d4
mov r9d, 0x20202020
mov rbp, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rbp + 0x88]
test ecx, ecx
je 0x180003570
lea rdx, [rcx + rbp]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + rbp]
or eax, r9d
cmp eax, 0x6c64746e
jne 0x180003570
mov eax, dword [rcx + rbp + 4]
or eax, r9d
cmp eax, 0x6c642e6c
je 0x18000357c
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x18000353c
test rdx, rdx
je 0x1800036d4
mov r12d, dword [rdx + 0x1c]
mov esi, edi
mov r15d, dword [rdx + 0x20]
add r12, rbp
mov r13d, dword [rdx + 0x24]
add r15, rbp
mov r14d, dword [rdx + 0x18]
add r13, rbp
lea eax, [r14 - 1]
mov ecx, dword [r15 + rax*4]
mov r14d, eax
add rcx, rbp
mov qword [rsp + 0x50], rax
mov eax, 0x775a
cmp word [rcx], ax
jne 0x1800035ef
mov ebx, esi
add rbx, rbx
call fcn.1800034c0
lea rdx, [0x1800097c0]
inc esi
mov dword [rdx + rbx*8 + 8], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [r13 + rax*2]
mov eax, dword [r12 + rax*4]
mov dword [rdx + rbx*8 + 0xc], eax
cmp esi, 0x1f4
je 0x1800035f4
test r14d, r14d
jne 0x1800035a0
lea eax, [rsi - 1]
mov dword [0x1800097c0], esi
mov edx, edi
test eax, eax
je 0x18000366f
mov eax, esi
mov ecx, edi
sub eax, edx
cmp eax, 1
je 0x180003666
lea r14, [0x1800097c0]
lea r10d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r10d
add r8, r8
mov ebx, dword [r14 + r9*8 + 0xc]
mov r11d, dword [r14 + r8*8 + 0xc]
cmp ebx, r11d
jbe 0x180003658
mov ecx, dword [r14 + r9*8 + 8]
mov eax, dword [r14 + r8*8 + 8]
mov dword [r14 + r9*8 + 8], eax
mov dword [r14 + r8*8 + 8], ecx
mov dword [r14 + r9*8 + 0xc], r11d
mov dword [r14 + r8*8 + 0xc], ebx
mov esi, dword [0x1800097c0]
mov eax, esi
mov ecx, r10d
sub eax, edx
dec eax
cmp r10d, eax
jb 0x180003615
inc edx
lea eax, [rsi - 1]
cmp edx, eax
jb 0x180003603
mov r14d, dword [0x1800097dc]
lea eax, [rsi - 1]
sub r14d, dword [0x1800097cc]
test eax, eax
je 0x1800036b2
lea rsi, [0x1800097c0]
mov ebx, edi
mov edx, r14d
add rbx, rbx
mov ecx, dword [rsi + rbx*8 + 0xc]
add rcx, rbp
call fcn.1800033c4
mov qword [rsi + rbx*8 + 0x10], rax
inc edi
mov eax, dword [0x1800097c0]
dec eax
cmp edi, eax
jb 0x18000368b
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x1800036b7
Function at 0x140005720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140094080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000574d
xor eax, eax
jmp 0x1400058aa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005778
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005778
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400058aa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000589d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400057bb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400057e6
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 0x1400058a2
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 0x140005855
sub eax, 1
je 0x140005855
cmp eax, 2
jne 0x14000589d
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 0x1400058a2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005883
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 0x14000589d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400058a2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140069d00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005f40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140094080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006013
cmp byte [rcx + 0x71], 0
je 0x140006013
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000600f
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 0x140005fd4
sub eax, 1
je 0x140005fd8
cmp eax, 2
jne 0x14000600f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069d00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006006
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 0x14000600f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005fbc
xor al, al
jmp 0x140005fbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069d00
add rsp, 0x60
pop rbx
ret
Function at 0x1400091c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x140009363
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009363
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140009363
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x140009363
mov qword [rbx], rcx
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rsp + 0x40], rdi
mov qword [rbx + 8], rcx
xor edi, edi
mov qword [rsp + 0x48], r14
lea rax, [rcx + 4]
mov qword [rbx + 0x10], rax
lea r14, [rcx + 0x18]
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
lea rax, [rcx + 0x88]
mov qword [rbx + 0x20], rax
lea rax, [rcx + 0x90]
mov qword [rbx + 0x28], rax
lea rax, [rcx + 0x98]
mov qword [rbx + 0x30], rax
lea rax, [rcx + 0xa0]
mov qword [rbx + 0x38], rax
lea rax, [rcx + 0xa8]
mov qword [rbx + 0x40], rax
lea rax, [rcx + 0xb0]
mov qword [rbx + 0x48], rax
lea rax, [rcx + 0xb8]
mov qword [rbx + 0x50], rax
lea rax, [rcx + 0xc0]
mov qword [rbx + 0x58], rax
lea rax, [rcx + 0xc8]
mov qword [rbx + 0x60], rax
lea rax, [rcx + 0xd0]
mov qword [rbx + 0x68], rax
lea rax, [rcx + 0xd8]
mov qword [rbx + 0x70], rax
lea rax, [rcx + 0xe0]
mov qword [rbx + 0x78], rax
lea rax, [rcx + 0xe8]
mov qword [rbx + 0x80], rax
lea rax, [rcx + 0xf0]
mov qword [rbx + 0x88], rax
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x90], rax
lea rax, [rcx + 0x100]
mov qword [rbx + 0x98], rax
movzx eax, word [rcx + 0x14]
add r14, rax
cmp di, word [rcx + 6]
jae 0x140009351
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x14000932d
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x14000933e
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.140009370
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 2]
cmp edi, ecx
jl 0x140009300
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov al, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140009c00
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140094080]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
lea rdx, [rsp + 0x60]
call fcn.1400091c0
mov r15, qword [rbp]
test al, al
je 0x140009db0
mov dword [rsp + 0x20], 0x110d1348
mov word [rsp + 0x24], reloc.WLDAP32.dll_Ordinal_30
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax + rax]
lea eax, [rcx + 0x66]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140009c70
mov byte [rsp + 0x26], 0
mov rbx, r15
mov rdi, qword [rbp + 8]
cmp r15, rdi
je 0x140009cb5
mov r12, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140009cb8
add rbx, 8
cmp rbx, rdi
jne 0x140009c91
xor r12d, r12d
mov dword [rsp + 0x28], 0x80c1548
mov dword [rsp + 0x2c], 0x1000a1e
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx + 0x66]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x140009cd0
mov byte [rsp + 0x2f], 0
mov rbx, r15
cmp r15, rdi
je 0x140009d14
nop dword [rax]
mov r14, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140009d17
add rbx, 8
cmp rbx, rdi
jne 0x140009cf0
xor r14d, r14d
mov dword [rsp + 0x20], 0x1d090348
mov word [rsp + 0x24], listen
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax]
lea eax, [rcx + 0x66]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140009d30
mov byte [rsp + 0x26], 0
mov rbx, r15
cmp r15, rdi
je 0x140009d74
nop dword [rax]
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140009d76
add rbx, 8
cmp rbx, rdi
jne 0x140009d50
xor esi, esi
test r12, r12
je 0x140009db0
cmp r12, r14
jae 0x140009db0
cmp r14, rsi
jae 0x140009db0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [r14 + 0xc]
mov rcx, qword [rsp + 0x58]
div ecx
test edx, edx
jne 0x140009db0
xor edx, edx
mov eax, dword [rsi + 0xc]
div ecx
test edx, edx
jne 0x140009db0
mov bl, 1
jmp 0x140009db2
xor bl, bl
test r15, r15
je 0x140009df2
mov rdx, qword [rbp + 0x10]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x140009dea
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009dea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140069fac
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140069d00
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret