joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073b98
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140068d04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140068d04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140073ce5
cmp rax, 0xffffffffffffffff
je 0x140073ce5
xor edi, edi
test rbp, rbp
jle 0x140073c93
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140062150
mov rbx, rax
test rax, rax
jne 0x140073c20
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140073c89
mov edx, 0x8000
mov ecx, r14d
call fcn.14005453c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14006bc9c
cmp eax, 0xffffffff
je 0x140073c69
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140073c30
mov edx, r15d
mov ecx, r14d
call fcn.14005453c
jmp 0x140073c89
cmp byte [rsi + 0x38], dil
je 0x140073c80
cmp dword [rsi + 0x34], 5
jne 0x140073c80
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140073c89
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005fdc0
jmp 0x140073cf7
jns 0x140073cf7
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140068d04
cmp rax, 0xffffffffffffffff
jne 0x140073cb1
cmp byte [rsi + 0x30], dil
je 0x140073cf7
jmp 0x140073ced
mov ecx, r14d
call fcn.14006aaa8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140073cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140073cf7
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140073cf2
mov edi, dword [rsi + 0x2c]
jmp 0x140073cf7
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140068d04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001cc0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x38]
test rax, rax
jne 0x140001cd9
lea rax, [rsp + 0x20]
call rax
xor eax, eax
call rax
lea rcx, [0x1400048b4]
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
Function at 0x140003844
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000388e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000388e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000388e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000388e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000388e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003890
xor al, al
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, rax
mov qword [rsp + 0x40], rax
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r15, qword [rsp + 0x48]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
lea rcx, str.c:windows_system32_ntdll.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
movsxd r14, dword [r15 + 0x3c]
add r14, r15
movzx ebp, si
cmp si, word [r14 + 6]
jae 0x1400011bb
lea r8, str..text
xor r13d, r13d
nop
movzx eax, bp
lea rdx, [rax + rax*4]
movzx ecx, word [r14 + 0x14]
add rcx, r14
lea rsi, [rcx + rdx*8]
mov rax, r13
nop word [rax + rax]
movzx ecx, byte [rsi + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400011a8
cmp rax, 6
jne 0x140001140
mov dword [rsp + 0x60], r13d
mov edx, dword [rsi + 0x20]
mov ecx, dword [rsi + 0x24]
add rcx, r15
lea r9, [rsp + 0x60]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsi + 0x24]
mov r8d, dword [rsi + 0x20]
lea rdx, [rax + r12]
lea rcx, [rax + r15]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rsi + 0x20]
mov ecx, dword [rsi + 0x24]
add rcx, r15
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc bp
cmp bp, word [r14 + 6]
jb 0x140001120
mov r13, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp rdi, 0xffffffffffffffff
je 0x1400011d5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp rbx, 0xffffffffffffffff
je 0x1400011e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001250
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140001b18
Capabilities:
Parse pe header

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

Disassembly:
xor edx, edx
lea rax, [0x1400040a1]
xor r10d, r10d
lea r11, str.mysupersecretkey
nop dword [rax]
nop word [rax + rax]
xor r8d, r8d
cmp edx, 0x10
cmovne r8d, edx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax - 1], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax + 1], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax + 2], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax + 3], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax + 4], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax + 5], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax + 6], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax + 7], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax + 8], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax + 9], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor r8d, r8d
xor byte [rax + 0xa], cl
lea rax, [rax + 0x11]
cmp edx, 0xf
lea ecx, [rdx + 1]
cmovne r8d, ecx
xor edx, edx
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax - 6], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne edx, ecx
xor r8d, r8d
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax - 5], cl
lea ecx, [rdx + 1]
cmp edx, 0xf
cmovne r8d, ecx
xor r9d, r9d
movsxd rcx, r8d
movzx ecx, byte [rcx + r11]
xor byte [rax - 4], cl
lea ecx, [r8 + 1]
cmp r8d, 0xf
cmovne r9d, ecx
xor edx, edx
movsxd rcx, r9d
movzx ecx, byte [rcx + r11]
xor byte [rax - 3], cl
lea ecx, [r9 + 1]
cmp r9d, 0xf
cmovne edx, ecx
add r10d, 0x11
movsxd rcx, edx
movzx ecx, byte [rcx + r11]
xor byte [rax - 2], cl
inc edx
cmp r10d, 0x55
jb 0x140001020
ret
Function at 0x1400011d0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, 0x55
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
call fcn.140001000
mov r8d, 0x55
lea rdx, [0x1400040a0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x55
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000126f
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012a0
add rsp, 0x40
pop rbx
ret

Function at 0x140001b68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bb4
xor al, al
add rsp, 0x28
ret
Function at 0x140001dc0
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 case.default.0x140001de1
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 0x140001e0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001e10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001e69
test ecx, ecx
jle 0x140001e49
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 0x140001e69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001e69
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 0x140001e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001ec1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001ed8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001efb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001efd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001f39
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001fce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001f74
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 0x140001fae
nop dword [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 0x140001fce
cmp rbx, rax
ja 0x140001f80
test rbx, rbx
je 0x140001fce
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140002430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000245d
xor eax, eax
jmp 0x1400025c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002497
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002497
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 0x1400025c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400025bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400024da
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 0x140002505
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 0x1400025c1
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140002574
sub eax, 1
je 0x140002574
cmp eax, 2
jne 0x1400025bc
movsx ecx, byte [rsp + 0x40]
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 0x1400025c1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400025a2
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 0x1400025bc
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400025c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002eb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002890
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002963
cmp byte [rcx + 0x71], 0
je 0x140002963
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000295f
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 0x140002924
sub eax, 1
je 0x140002928
cmp eax, 2
jne 0x14000295f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002eb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002956
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 0x14000295f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000290c
xor al, al
jmp 0x14000290c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002eb0
add rsp, 0x60
pop rbx
ret

Function at 0x140003830
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000387a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000387a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000387a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000387a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000387a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000387c
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov edi, 0x2711
mov ebx, edi
nop word [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rbx, 1
jne 0x140001090
lea rbp, [0x1400030f0]
mov edx, 0x110
mov rcx, rbp
lea r9, [rsp + 0x30]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400010ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualProtect_failed:__d_n
call fcn.140001010
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rsi
mov ebx, 0x1389
nop word [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rbx, 1
jne 0x140001100
mov rsi, rdi
nop word [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rsi, 1
jne 0x140001120
mov rsi, rdi
nop word [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rsi, 1
jne 0x140001140
mov rsi, rdi
nop word [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rsi, 1
jne 0x140001160
xor r9d, r9d
lea rsi, [0x1400030a0]
lea r10, [0x1400030ff]
movabs r11, 0xcccccccccccccccd
nop dword [rax]
movzx edx, byte [r9 + rbp]
mov r8, rbx
shl r8, 4
xor eax, eax
add r8, rsi
lea rcx, [r8 + 0xf]
cmp rbp, rcx
ja 0x1400011c3
cmp r10, r8
jb 0x1400011c3
nop
xor dl, byte [r8 + rax]
inc rax
cmp rax, 0x10
jb 0x1400011b0
mov byte [r9 + rbp], dl
jmp 0x140001202
movdqu xmm1, xmmword [r8]
movdqa xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
xorps xmm1, xmm0
movd eax, xmm1
xor al, dl
mov byte [r9 + rbp], al
inc rbx
mov rax, r11
mul rbx
inc r9
shr rdx, 2
lea rax, [rdx + rdx*4]
sub rbx, rax
cmp r9, 0x110
jb 0x140001190
mov rsi, qword [rsp + 0x38]
nop dword [rax + rax]
lea rcx, str.1231231
call fcn.140001010
sub rdi, 1
jne 0x140001230
call rbp
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14000197c
Capabilities:
Parse pe header

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

Function at 0x14014cf74
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov edi, r11d
lea rdi, [0x14014efb0]
lea rsp, [rsp + 8]
mov r11d, 0xf613210c
ror r11, 0xee
movzx r11d, byte [rcx]
push 0xffffffffdba13ea0
xor r11d, edx
and r11d, 0xff
mov r11d, dword [rdi + r11*4]
push 0xfffffffffe16078f
shr edx, 8
xor edx, r11d
inc rcx
inc qword [rsp + 1]
xor edx, 0xed9a540a
shr qword [rsp + 2], 0xbe
dec r8
push 0x6b36a5a2
lea rsp, [rsp + 0x18]
jne 0x14014cf88
jmp 0x140174f68
mov edi, 0x86a5642d
pop rdi
Function at 0x416440
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4165cb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c970]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4164a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4164b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4164d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4164e3
cmp rbx, 0x1000
jae 0x4164ab
jmp 0x41654d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4164f5
xor edx, edx
jmp 0x416544
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c970]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4164d9
jmp 0x4164c8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061c970]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004d9bb3]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004da1ed]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004dcabb]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS