joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080210
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je case.default.0x14008023f
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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 [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140080293
test rsi, rsi
jle 0x140080293
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x140080293
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x14008029b
jmp 0x1400802bb
mov r14, rsi
test r14, r14
jle 0x1400802bb
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400802bb
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
invalid

Function at 0x140080650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov al, 1
cmp qword [rcx + 0x68], 0
je 0x1400806e9
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1400806e9
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400806e7
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x1400806f1
cmp eax, 1
je 0x1400806b7
test eax, eax
jne 0x1400806e7
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1400806de
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400806e7
cmp byte [rsi + 0x71], 0
sete al
jmp 0x1400806e9
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x1400806e9

Function at 0x140080ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x14008993c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x3a0
mov rax, qword [0x140237040]
xor rax, rsp
mov qword [rsp + 0x390], rax
cmp qword [rcx + 0x18], 0xf
mov rsi, rdx
mov r14, rcx
jbe 0x140226d15
mov r14, qword [rcx]
cmp qword [rdx + 0x18], 0xf
jbe 0x140226d1f
mov rsi, qword [rdx]
xor r15d, r15d
lea rbx, [r15 - 1]
nop word [rax + rax]
xor edx, edx
mov ebp, r15d
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, rbx
je 0x140226dc5
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140226dc5
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x6c]
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140226dad
mov rdx, rsi
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140226dc1
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140226d60
jmp 0x140226dc5
mov ebp, dword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x140226d30
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140226eb8
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x140226eaf
nop dword [rax]
cmp byte [r14 + rbx + 1], r15b
lea rbx, [rbx + 1]
jne 0x140226e30
lea r9, [rbx + 1]
mov qword [rsp + 0x20], r15
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140226e9a
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140226e9a
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14022fac0
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14022a580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], rax
lea rsi, [0x140237cf0]
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x30], 0x3a43
mov byte [rbp - 0x2e], 0x5c
xorps xmm0, xmm0
movdqa xmmword [0x140237cf0], xmm0
xor edi, edi
mov qword [0x140237d00], rdi
lea ecx, [rdi + 3]
call fcn.14022fae0
mov qword [0x140237cf0], rax
mov qword [0x140237cf8], rax
lea rbx, [rax + 3]
mov qword [0x140237d00], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237cf8], rbx
mov dword [rbp - 0x2c], 0x646e6957
mov word [rbp - 0x28], 0x776f
mov byte [rbp - 0x26], 0x73
mov qword [0x140237d08], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140237d10], xmm0
lea ecx, [rdi + 7]
call fcn.14022fae0
mov qword [0x140237d08], rax
mov qword [0x140237d10], rax
lea rbx, [rax + 7]
mov qword [0x140237d18], rbx
lea r8d, [rdi + 7]
lea rdx, [rbp - 0x2c]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237d10], rbx
mov dword [rbp - 0x20], 0x7361455c
mov dword [rbp - 0x1c], 0x746e4179
mov dword [rbp - 0x18], 0x65684369
mov word [rbp - 0x14], 0x7461
mov byte [rbp - 0x12], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x140237d20], xmm0
mov qword [0x140237d30], rdi
lea ecx, [rdi + 0xf]
call fcn.14022fae0
mov qword [0x140237d20], rax
mov qword [0x140237d28], rax
lea rbx, [rax + 0xf]
mov qword [0x140237d30], rbx
lea r8d, [rdi + 0xf]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237d28], rbx
mov word [rbp - 0x30], 0x7865
mov byte [rbp - 0x2e], 0x65
mov qword [0x140237d38], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140237d40], xmm0
lea ecx, [rdi + 3]
call fcn.14022fae0
mov qword [0x140237d38], rax
mov qword [0x140237d40], rax
lea rbx, [rax + 3]
mov qword [0x140237d48], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237d40], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x14022ade0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rsi, [0x140237c00]
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x24], 0x7468
xorps xmm0, xmm0
movdqa xmmword [0x140237c00], xmm0
xor edi, edi
mov qword [0x140237c10], rdi
lea ecx, [rdi + 2]
call fcn.14022fae0
mov qword [0x140237c00], rax
lea rdx, [rax + 2]
mov qword [0x140237c10], rdx
movzx ecx, word [rsp + 0x24]
mov word [rax], cx
mov qword [0x140237c08], rdx
mov word [rsp + 0x20], 0x7074
mov byte [rsp + 0x22], 0x73
mov qword [0x140237c18], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140237c20], xmm0
lea ecx, [rdi + 3]
call fcn.14022fae0
mov qword [0x140237c18], rax
mov qword [0x140237c20], rax
lea rbx, [rax + 3]
mov qword [0x140237c28], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237c20], rbx
mov dword [rsp + 0x24], 0x6d2f2f3a
mov byte [rsp + 0x28], 0x79
xorps xmm0, xmm0
movdqa xmmword [0x140237c30], xmm0
mov qword [0x140237c40], rdi
lea ecx, [rdi + 5]
call fcn.14022fae0
mov qword [0x140237c30], rax
mov qword [0x140237c38], rax
lea rbx, [rax + 5]
mov qword [0x140237c40], rbx
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237c38], rbx
mov dword [rsp + 0x30], 0x65747865
mov dword [rsp + 0x34], 0x6c616e72
mov qword [0x140237c48], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140237c50], xmm0
lea ecx, [rdi + 8]
call fcn.14022fae0
mov qword [0x140237c48], rax
lea rdx, [rax + 8]
mov qword [0x140237c58], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [0x140237c50], rdx
mov word [rsp + 0x20], 0x7069
mov byte [rsp + 0x22], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x140237c60], xmm0
mov qword [0x140237c70], rdi
lea ecx, [rdi + 3]
call fcn.14022fae0
mov qword [0x140237c60], rax
mov qword [0x140237c68], rax
lea rbx, [rax + 3]
mov qword [0x140237c70], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237c68], rbx
mov word [rsp + 0x24], 0x6f63
mov byte [rsp + 0x26], 0x6d
mov qword [0x140237c78], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140237c80], xmm0
lea ecx, [rdi + 3]
call fcn.14022fae0
mov qword [0x140237c78], rax
mov qword [0x140237c80], rax
lea rbx, [rax + 3]
mov qword [0x140237c88], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140237c80], rbx
mov dword [rsp + 0x20], 0x7761722f
xorps xmm0, xmm0
movdqa xmmword [0x140237c90], xmm0
mov qword [0x140237ca0], rdi
lea ecx, [rdi + 4]
call fcn.14022fae0
mov qword [0x140237c90], rax
lea rdx, [rax + 4]
mov qword [0x140237ca0], rdx
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov qword [0x140237c98], rdx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14022d300
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 0x14022d328
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 0x14022d34e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14022d350
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14022d3a9
test ecx, ecx
jle 0x14022d389
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 0x14022d3a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14022d3a9
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 0x14022d3d0
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 0x14022d3f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14022d408
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 0x14022d424
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14022d426
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14022d462
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 0x14022d4fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14022d49d
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 0x14022d4de
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 0x14022d4fe
cmp rbx, rax
ja 0x14022d4b0
test rbx, rbx
je 0x14022d4fe
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 0x14022d960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140237040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14022d98d
xor eax, eax
jmp 0x14022daf9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14022d9c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14022d9c7
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 0x14022daf9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14022daec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14022da0a
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 0x14022da35
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 0x14022daf1
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 0x14022daa4
sub eax, 1
je 0x14022daa4
cmp eax, 2
jne 0x14022daec
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 0x14022daf1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14022dad2
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 0x14022daec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14022daf1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14022fac0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14022e280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140237040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14022e353
cmp byte [rcx + 0x71], 0
je 0x14022e353
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14022e34f
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 0x14022e314
sub eax, 1
je 0x14022e318
cmp eax, 2
jne 0x14022e34f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022fac0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14022e346
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 0x14022e34f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14022e2fc
xor al, al
jmp 0x14022e2fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022fac0
add rsp, 0x60
pop rbx
ret

Function at 0x1402305b0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
movsxd rbp, dword [rcx + 0x3c]
mov r14, rcx
add rbp, rcx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x3000
mov edx, dword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000190a
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov qword [rsp + 0x30], rbx
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
xor edi, edi
add rbx, 0x2c
cmp word [rbp + 6], di
je 0x14000195e
add rbx, rbp
mov eax, dword [rbx - 4]
test eax, eax
je 0x140001950
mov edx, dword [rbx]
mov r8d, eax
mov ecx, dword [rbx - 8]
add rdx, r14
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rbp + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140001936
movsxd rax, dword [rsi + 0x3c]
mov r11, rsi
sub r11, qword [rax + rsi + 0x30]
je 0x1400019e6
mov ecx, dword [rax + rsi + 0xb4]
test ecx, ecx
je 0x1400019e6
mov r9d, dword [rax + rsi + 0xb0]
add r9, rsi
lea rbx, [r9 + rcx]
cmp r9, rbx
jae 0x1400019e6
mov edi, 0xf000
mov ebp, 0xa000
mov eax, dword [r9 + 4]
test eax, eax
je 0x1400019e6
sub rax, 8
lea r8, [r9 + 8]
shr rax, 1
test eax, eax
je 0x1400019da
mov r10d, eax
nop
movzx edx, word [r8]
movzx eax, dx
and ax, di
cmp ax, bp
jne 0x1400019d0
mov ecx, dword [r9]
and edx, 0xfff
lea rax, [rsi + rdx]
add qword [rcx + rax], r11
add r8, 2
sub r10, 1
jne 0x1400019b0
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rbx
jb 0x140001995
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi + 0x94], 0
je 0x140001a7e
mov r14d, dword [rax + rsi + 0x90]
add r14, rsi
cmp dword [r14 + 0xc], 0
je 0x140001a7e
nop word [rax + rax]
mov ecx, dword [r14 + 0xc]
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8d, dword [r14]
mov rbp, rax
mov edx, dword [r14 + 0x10]
lea rcx, [r8 + rsi]
test rcx, rcx
lea rdi, [rdx + rsi]
cmovne edx, r8d
mov rcx, qword [rdx + rsi]
lea rbx, [rdx + rsi]
test rcx, rcx
je 0x140001a73
mov rax, rcx
mov rcx, rbp
jns 0x140001a50
movzx edx, ax
jmp 0x140001a57
lea rdx, [rsi + 2]
add rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rbx, 8
add rdi, 8
mov rcx, qword [rbx]
mov rax, rcx
test rcx, rcx
jne 0x140001a46
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x140001a10
movsxd rax, dword [rsi + 0x3c]
xor r8d, r8d
mov edx, 1
mov rcx, rsi
mov r9d, dword [rax + rsi + 0x28]
add r9, rsi
call r9
mov rdi, qword [rsp + 0x38]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140008a4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008a98
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008a90
cmp dword [rcx + 0x3c], edx
jl 0x140008a90
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008a90
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 0x140008a98
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1418d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1418d81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1418d8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418d806f
add dl, dl
jne 0x1418d8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418d80f6
xor eax, eax
add dl, dl
jne 0x1418d80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418d81ad
add dl, dl
jne 0x1418d80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418d80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418d80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418d80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418d80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1418d807e
mov eax, 1
add dl, dl
jne 0x1418d8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418d8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418d80fb
sub eax, ebx
mov ebx, 1
jne 0x1418d814c
mov ecx, 1
add dl, dl
jne 0x1418d812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418d813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418d8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418d807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1418d8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418d8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418d815d
cmp eax, 0x7d00
jae 0x1418d819b
cmp eax, 0x500
jb 0x1418d8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418d807e
cmp eax, 0x7f
ja 0x1418d819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418d807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418d81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1418d807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20