joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f680
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 0x14002f6b1
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 0x14002f6cf
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 0x14002f6eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002f6ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002f729
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 0x14002f7be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14002f764
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 0x14002f79e
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 0x14002f7be
cmp rbx, rax
ja 0x14002f770
test rbx, rbx
je 0x14002f7be
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 0x14002fbf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002fc14
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002fc4b
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x14002fc4b
mov rcx, rbx
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
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14002fd7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002fc8e
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 0x14002fcb9
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 0x14002fd81
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14002fd2e
sub eax, 1
je 0x14002fd2e
cmp eax, 2
jne 0x14002fd7c
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 0x14002fd81
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14002fd5f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14002fd7c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14002fd81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140030440
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140030509
cmp byte [rcx + 0x71], 0
je 0x140030509
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400304fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x1400304b8
sub eax, 1
je 0x1400304bc
cmp eax, 2
jne 0x1400304fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400304ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400304fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140033270
Capabilities:
Create process on windows
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
jb 0x140033292
mov r9, qword [rdx]
cmp qword [rcx + 0x18], 8
mov r8, rdi
jb 0x14003329f
mov r8, qword [rcx]
mov ecx, 0x72
xor edx, edx
call fcn.140001240
lea ecx, [rdx + 0x75]
mov word [rsp + 0x30], ax
lea edx, [rcx - 0x74]
call fcn.140001240
lea ecx, [rdx + 0x6d]
mov word [rsp + 0x32], ax
lea edx, [rcx - 0x6c]
call fcn.140001240
lea ecx, [rdx + 0x5f]
mov word [rsp + 0x34], ax
lea edx, [rcx - 0x5e]
call fcn.140001240
lea ecx, [rdx + 0x70]
mov word [rsp + 0x36], ax
lea edx, [rcx - 0x6f]
call fcn.140001240
xor ecx, ecx
mov word [rsp + 0x38], ax
lea edx, [rcx + 5]
call fcn.140001240
lea edx, [rcx + 6]
mov word [rsp + 0x3a], ax
movzx ecx, word [0x140049c0c]
call fcn.140001240
movzx ecx, word [0x140049c0e]
mov edx, 7
mov word [rsp + 0x3c], ax
call fcn.140001240
movzx ecx, word [0x140049c10]
mov edx, 8
mov word [rsp + 0x3e], ax
call fcn.140001240
movzx ecx, word [0x140049c12]
mov edx, 9
mov word [rsp + 0x40], ax
call fcn.140001240
movzx ecx, word [0x140049c14]
mov edx, 0xa
mov word [rsp + 0x42], ax
call fcn.140001240
mov word [rsp + 0x44], ax
mov r10d, 0x133
xor eax, eax
mov word [rsp + 0x46], ax
xor esi, esi
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rcx*2]
lea ecx, [r10 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0xb
jb 0x140033380
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x46], si
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400333f0
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400333eb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140033459
mov rcx, r8
call fcn.14003de0c
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14003343a
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140033435
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140033459
mov rcx, r8
call fcn.14003de0c
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140033460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x140033482
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140033516
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400334f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400334f0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400335bf
mov rcx, r8
call fcn.14003de0c
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x14003355b
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140033557
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140033552
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400335bf
mov rcx, r8
call fcn.14003de0c
xor al, al
jmp 0x1400334f7
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x140056470]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x1400335a8
cmp rax, 8
jb 0x140033557
lea rdx, [rax*2 + 2]
jmp 0x14003352e
cmp rax, 8
jb 0x1400334f5
lea rdx, [rax*2 + 2]
jmp 0x1400334c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400335d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x1400335f2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140033686
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140033665
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140033660
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003372f
mov rcx, r8
call fcn.14003de0c
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400336cb
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400336c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400336c2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003372f
mov rcx, r8
call fcn.14003de0c
xor al, al
jmp 0x140033667
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x140054070]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x140033718
cmp rax, 8
jb 0x1400336c7
lea rdx, [rax*2 + 2]
jmp 0x14003369e
cmp rax, 8
jb 0x140033665
lea rdx, [rax*2 + 2]
jmp 0x140033638
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140034660
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push rsi
mov rbp, rcx
mov rsi, r8
sub rbp, qword [r8 + 0x30]
je 0x1400347e7
test byte [r8 + 0x5e], 0x40
jne 0x14003467f
xor eax, eax
pop rsi
pop rbp
ret
movzx eax, word [rsi + 0x14]
lea rdx, [rsi + 0x18]
mov r8d, dword [r8 + 0xb0]
add rdx, rax
movzx eax, word [rsi + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400347e7
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400346b8
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400346c9
add rdx, 0x28
cmp rdx, r9
jb 0x1400346a6
mov eax, 1
pop rsi
pop rbp
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r14
mov r14d, dword [rsi + 0xb4]
add rbx, r8
mov qword [rsp + 0x30], r15
lea r15, [0x140097730]
add rbx, r15
add r14, rbx
test rbx, rbx
je 0x1400347d8
cmp rbx, r14
jae 0x1400347d8
mov qword [rsp + 0x20], rdi
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
je 0x1400347d3
add eax, 0xfffffff8
shr eax, 1
je 0x1400347c4
lea r11, [rbx + 8]
mov edi, eax
nop dword [rax]
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140034752
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14003475e
cmp ax, 0xa
jne 0x1400347b6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x1400347ab
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140034792
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14003479d
add rax, 0x28
cmp rax, r10
jb 0x140034780
jmp 0x1400347ab
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, r15
jne 0x1400347ae
mov rcx, r15
movzx eax, r8w
add qword [rax + rcx], rbp
add r11, 2
sub rdi, 1
jne 0x140034730
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r14
jb 0x140034710
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x30]
mov eax, 1
pop rsi
pop rbp
ret
Function at 0x14003e370
Capabilities:
Parse pe header

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

Function at 0x14003e7a8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1401b5540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1401b556d
xor al, al
jmp 0x1401b56cf
mov rax, qword [0x1401d56c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401d56c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401d56d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401d56d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401d56e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401d56e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401d56f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401d56f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1401d5700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401b56c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1401b5619
mov r11d, 2
jmp 0x1401b563d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1401b5633
mov r11d, 1
jmp 0x1401b563d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1401b56e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1401b5682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1401b569a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401b56aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401b56b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1401b5600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401b56ca
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401b6d10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401b6d20]
mov dword [rax], 1
mov rax, qword [0x1401b6d30]
mov dword [rax], 1
mov rax, qword [0x1401b6c70]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401b6d00]
mov dword [0x1401de00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401b6e00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401b6de0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401b60f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001e20
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
mov ecx, 0x100
mov rsi, r8
mov rbx, rdx
call sym.operator_new_unsigned_long_long_
movdqu xmm0, xmmword [0x1401b05e0]
lea rdi, [rax + 0x18]
mov r9, rax
and rdi, 0xfffffffffffffff8
sub eax, edi
lea ecx, [rax + 0x100]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
movups xmmword [r9], xmm0
movdqu xmm0, xmmword [0x1401b05f0]
xor edi, edi
movups xmmword [r9 + 0x10], xmm0
movdqu xmm0, xmmword [str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
movups xmmword [r9 + 0x20], xmm0
movdqu xmm0, xmmword [0x1401b0610]
movups xmmword [r9 + 0x30], xmm0
movdqu xmm0, xmmword [0x1401b0620]
movups xmmword [r9 + 0x40], xmm0
movdqu xmm0, xmmword [0x1401b0630]
movups xmmword [r9 + 0x50], xmm0
movdqu xmm0, xmmword [0x1401b0640]
movups xmmword [r9 + 0x60], xmm0
movdqu xmm0, xmmword [0x1401b0650]
movups xmmword [r9 + 0x70], xmm0
movdqu xmm0, xmmword [0x1401b0660]
movups xmmword [r9 + 0x80], xmm0
movdqu xmm0, xmmword [0x1401b0670]
movups xmmword [r9 + 0x90], xmm0
movdqu xmm0, xmmword [0x1401b0680]
movups xmmword [r9 + 0xa0], xmm0
movdqu xmm0, xmmword [0x1401b0690]
movups xmmword [r9 + 0xb0], xmm0
movdqu xmm0, xmmword [0x1401b06a0]
movups xmmword [r9 + 0xc0], xmm0
movdqu xmm0, xmmword [0x1401b06b0]
movups xmmword [r9 + 0xd0], xmm0
movdqu xmm0, xmmword [0x1401b06c0]
movups xmmword [r9 + 0xe0], xmm0
movdqu xmm0, xmmword [0x1401b06d0]
movups xmmword [r9 + 0xf0], xmm0
mov r11, qword [rbp]
mov r8, qword [rbp + 8]
sub r8, r11
nop word [rax + rax]
mov rax, rcx
xor edx, edx
movzx r10d, byte [r9 + rcx]
div r8
movzx eax, byte [r11 + rdx]
movzx edx, r10b
add edx, edi
add eax, edx
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
mov edi, eax
cdqe
add rax, r9
movzx edx, byte [rax]
mov byte [r9 + rcx], dl
add rcx, 1
mov byte [rax], r10b
cmp rcx, 0x100
jne 0x140001f50
test rsi, rsi
je 0x140001ff9
add rsi, rbx
xor r10d, r10d
xor eax, eax
add eax, 1
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
movsxd r8, eax
add r8, r9
movzx edx, byte [r8]
mov ecx, edx
add edx, r10d
mov r11d, edx
sar r11d, 0x1f
shr r11d, 0x18
add edx, r11d
movzx edx, dl
sub edx, r11d
mov r10d, edx
movsxd rdx, edx
add rdx, r9
movzx r11d, byte [rdx]
mov byte [r8], r11b
mov byte [rdx], cl
add cl, byte [r8]
movzx ecx, cl
movzx edx, byte [r9 + rcx]
xor byte [rbx], dl
add rbx, 1
cmp rsi, rbx
jne 0x140001fa0
mov edx, 0x100
mov rcx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.operator_delete_void__unsigned_long_long_
Function at 0x14001ad00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14001ad70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401de164]
mov rbx, rcx
test esi, esi
jle 0x14001aea0
mov rax, qword [0x1401de168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001adbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001ae45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001ada0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001aec2
mov rax, qword [0x1401de168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401de168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001aea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001ae3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001ae50
add dword [0x1401de164], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401de168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001ae3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14001adc8
mov rax, qword [0x1401de168]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001b450
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401de1c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401de1a0]
test rbx, rbx
je 0x14001b4ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14001b4a3
test eax, eax
jne 0x14001b4a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b488
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]