joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400265b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140069ab0
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
mov ecx, 0x105
call fcn.140025884
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140069aef
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
jmp 0x140069b91
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140069b10
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x140069b27
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x34]
jmp 0x140069b91
mov eax, dword [rsp + 0x24]
and eax, 0x400
test eax, eax
je 0x140069b7c
mov r9d, 0x2000000
mov r8d, 0x80
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400259dd
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400252f3
nop
cmp dword [rsp + 0x28], 0
je 0x140069b7c
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0x3c]
jmp 0x140069b91
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x44]
add rsp, 0x68
ret

Function at 0x14006b460
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400264fa
movzx eax, al
test eax, eax
jne 0x14006b480
mov ecx, 7
call fcn.1400260f4
nop
mov byte [rsp + 0x20], 0
call fcn.140026162
mov byte [rsp + 0x21], al
cmp dword [0x1400859c8], 1
jne 0x14006b4a4
mov ecx, 7
call fcn.1400260f4
nop
jmp 0x14006b4fc
cmp dword [0x1400859c8], 0
jne 0x14006b4f7
mov dword [0x1400859c8], 1
lea rdx, [0x140076770]
lea rcx, [0x140076440]
call fcn.140025974
test eax, eax
je 0x14006b4d8
mov eax, 0xff
jmp 0x14006b601
lea rdx, [0x140076330]
lea rcx, [section..rdata]
call fcn.140026144
mov dword [0x1400859c8], 2
jmp 0x14006b4fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400260b3
call fcn.140025e7e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14006b559
mov rcx, qword [rsp + 0x30]
call fcn.1400257a8
movzx eax, al
test eax, eax
je 0x14006b559
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140092020]
nop
call fcn.140025f7d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14006b58d
mov rcx, qword [rsp + 0x38]
call fcn.1400257a8
movzx eax, al
test eax, eax
je 0x14006b58d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400263ab
nop
call fcn.14006b6b0
mov dword [rsp + 0x28], eax
call fcn.140025de8
movzx eax, al
test eax, eax
jne 0x14006b5ac
mov ecx, dword [rsp + 0x28]
call fcn.140025190
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14006b5bb
call fcn.1400263dd
nop
xor edx, edx
mov cl, 1
call fcn.140025735
mov eax, dword [rsp + 0x28]
jmp 0x14006b601
add rsp, 0x68
ret
Function at 0x1801b4fb0
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 0x1801b4fd8
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 0x1801b4ffe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1801b5000
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1801b5059
test ecx, ecx
jle 0x1801b5039
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 0x1801b5059
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1801b5059
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 0x1801b5080
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 0x1801b50b1
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 0x1801b50cf
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 0x1801b50eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1801b50ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1801b5129
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 0x1801b51be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1801b5164
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 0x1801b519e
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 0x1801b51be
cmp rbx, rax
ja 0x1801b5170
test rbx, rbx
je 0x1801b51be
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 0x1801b55f0
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 0x1801b5614
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 0x1801b564b
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x1801b564b
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 0x1801b577c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1801b568e
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 0x1801b56b9
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 0x1801b5781
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 0x1801b572e
sub eax, 1
je 0x1801b572e
cmp eax, 2
jne 0x1801b577c
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 0x1801b5781
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1801b575f
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 0x1801b577c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1801b5781
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1801b5940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1801b5a09
cmp byte [rcx + 0x71], 0
je 0x1801b5a09
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1801b59fc
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 0x1801b59b8
sub eax, 1
je 0x1801b59bc
cmp eax, 2
jne 0x1801b59fc
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 0x1801b59ea
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 0x1801b59fc
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 0x1801b7360
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2f0
mov ebx, 0x104
lea r9, str.rundll32
lea rax, [rsp + 0xe0]
mov r8d, ebx
sub r9, rax
lea rdx, [rsp + 0xe0]
nop
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1801b73b3
movzx eax, word [r9 + rdx]
test ax, ax
je 0x1801b73b3
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x1801b7390
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
xor edi, edi
mov word [rax], di
test r8, r8
je 0x1801b7542
mov r8, rcx
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.1801b4b60
test eax, eax
js 0x1801b7542
mov rcx, rbx
lea rax, [rsp + 0xe0]
cmp word [rax], di
je 0x1801b7401
add rax, 2
sub rcx, 1
jne 0x1801b73f2
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rdi
je 0x1801b7542
lea rcx, [rsp + 0xe0]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x1801b7453
lea r8, str.___dopt
mov eax, 0x7ffffffe
sub r8, rcx
test rax, rax
je 0x1801b7453
movzx edx, word [r8 + rcx]
test dx, dx
je 0x1801b7453
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x1801b7434
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
je 0x1801b7542
xorps xmm1, xmm1
lea rdx, [rsp + 0xe0]
xor eax, eax
movaps xmmword [rsp + 0xa0], xmm1
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rax
xor r9d, r9d
movups xmmword [rsp + 0x70], xmm1
xor r8d, r8d
xor ecx, ecx
movups xmmword [rsp + 0xb0], xmm1
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x80], xmm1
mov word [rsp + 0xb0], di
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xc0], xmm1
psrldq xmm1, 0xc
movd eax, xmm1
movups xmmword [rsp + 0x50], xmm0
or eax, 1
mov dword [rsp + 0xac], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1801b752f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x300]
add rsp, 0x2f0
pop rdi
ret
mov rbx, qword [rsp + 0x300]
xor al, al
add rsp, 0x2f0
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140082cb0]
mov dword [rax], 1
mov rax, qword [0x140082cc0]
mov dword [rax], 1
mov rax, qword [0x140082cd0]
mov dword [rax], 1
mov rax, qword [0x140082c60]
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 0x140042ad0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140065210
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14005e820
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140042b29
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140063ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140075670
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140075670
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140064bc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14008c588]
test eax, eax
je 0x140064c5a
lea rax, [0x14008c560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14008c590]
mov qword [rbp - 8], rax
jmp 0x140064c3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140064c32
cmp qword [rbp - 0x10], 0
je 0x140064c32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140064bf8
lea rax, [0x14008c560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140064c5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140064d60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140064d88
mov eax, 0
jmp 0x140064dd6
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 0x140064db1
mov eax, 0
jmp 0x140064dd6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140064dd1
mov eax, 0
jmp 0x140064dd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140064ddc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140064e5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140064e51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140064e51
mov rax, qword [rbp - 8]
jmp 0x140064e6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140064e24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x33a711380
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov esi, r9d
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 0x40
xor r14d, r14d
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, r15
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x33a711456
mov rbx, rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov rdx, rbx
mov r8, r12
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x33a711453
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea r9, [0x33a711370]
xor r14d, r14d
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rdi], rax
test rax, rax
je 0x33a711456
test esi, esi
je 0x33a71144e
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14, rbx
jmp 0x33a711456
xor r14d, r14d
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x33a711740
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 fcn.33a712350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.33a712350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x33a7117b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x33a754074]
mov rbx, rcx
test esi, esi
jle 0x33a7118e0
mov rax, qword [0x33a754078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x33a7117fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x33a711885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x33a7117e0
mov rcx, rbx
call fcn.33a712010
mov rdi, rax
test rax, rax
je 0x33a711902
mov rax, qword [0x33a754078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.33a712150
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x33a754078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x33a7118e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x33a71187e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x33a711890
add dword [0x33a754074], 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 [0x33a754078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x33a71187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.33a711740
nop dword [rax]
xor esi, esi
jmp 0x33a711808
mov rax, qword [0x33a754078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.33a711740
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.33a711740
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x33a711c80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x33a7540a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x33a754080]
test rbx, rbx
je 0x33a711cdc
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 0x33a711cd3
test eax, eax
jne 0x33a711cd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x33a711cb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x33a712010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33a7511e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33a712030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33a712038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33a712030
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x33a71208d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x33a712084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x33a712030
add rax, 0x28
cmp rax, r9
jne 0x33a712070
xor eax, eax
ret

Function at 0x33a712090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33a7511e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x33a7120af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x33a7120b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x33a7120af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x33a712150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33a7511e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x33a71216f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x33a712178
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret