joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e11d2
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x140144f60
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x14034eab0]
call fcn.1400e1736
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x1402af620]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x140144fdf
mov dword [rbp + 0x120], 1
jmp 0x140144fe9
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x140145032
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x140144faa
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400e1259
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140112020
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x7f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x166
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x818]
mov rax, qword [0x140329dc8]
xor rax, rbp
mov qword [rbp + 0x7c8], rax
mov qword [rbp + 0x508], 0
lea rcx, [0x14034e583]
call fcn.1400e1736
mov dword [rbp + 0x10], 0x438
mov rax, qword [rbp + 0x7f0]
mov edx, dword [rax + 0x10]
mov ecx, 8
call fcn.1400df1a7
mov qword [rbp + 0x468], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.1400dfc15
mov dword [rbp + 0x484], 0
call fcn.1400e0cc3
mov dword [rbp + 0x4a4], eax
mov qword [rbp + 0x4c8], 0
mov qword [rbp + 0x4e8], 0
mov rcx, qword [rbp + 0x7f8]
call fcn.1400dd686
mov qword [rbp + 0x798], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x4c8], rax
cmp qword [rbp + 0x4c8], 0
jne 0x14011210e
mov qword [rbp + 0x7a0], 0
jmp 0x1401121f9
mov rcx, qword [rbp + 0x4c8]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc eax
mov dword [rbp + 0x484], eax
cmp dword [rbp + 0x484], 0x3fffffff
jle 0x14011213f
mov qword [rbp + 0x7a8], 0
jmp 0x1401121eb
movsxd rax, dword [rbp + 0x484]
shl rax, 1
mov qword [rbp + 0x7b0], rax
movsxd rcx, dword [rbp + 0x484]
shl rcx, 1
add rcx, 0x24
mov qword [rbp + 0x7b8], rcx
mov rcx, qword [rbp + 0x7b8]
add rcx, 0xf
cmp rcx, qword [rbp + 0x7b8]
ja 0x140112183
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ddce4
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x7c0], rax
lea r8, [rbp + 0x508]
mov rdx, qword [rbp + 0x7b8]
mov rcx, qword [rbp + 0x7c0]
call fcn.1400e1dbc
add qword [rbp + 0x7c0], 0x20
mov r9d, dword [rbp + 0x4a4]
mov rax, qword [rbp + 0x7b0]
mov r8d, eax
mov rdx, qword [rbp + 0x4c8]
mov rcx, qword [rbp + 0x7c0]
call fcn.1400de8ec
mov qword [rbp + 0x7a8], rax
mov rax, qword [rbp + 0x7a8]
mov qword [rbp + 0x7a0], rax
mov rdx, qword [rbp + 0x798]
mov rcx, qword [rbp + 0x7a0]
call fcn.1400e1e1b
test eax, eax
jne 0x14011223d
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x768], rax
mov rcx, qword [rbp + 0x7f8]
call fcn.1400ddd1b
mov rax, qword [rbp + 0x768]
jmp 0x140112280
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.1400dda9b
test eax, eax
jne 0x1401120d6
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x788], 0
mov rcx, qword [rbp + 0x7f8]
call fcn.1400ddd1b
mov rax, qword [rbp + 0x788]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402aeab0]
mov r8, qword [rbp + 0x508]
call fcn.1400dfe2c
mov rax, rdi
mov rcx, qword [rbp + 0x7c8]
xor rcx, rbp
call fcn.1400df251
lea rsp, [rbp + 0x7d8]
pop rdi
pop rbp
ret
Function at 0x1400e1650
Capabilities:
Write file on windows

Disassembly:
jmp 0x140276640
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140329dc8]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14034f63c]
call fcn.1400e1736
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1402766a6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402766ad
mov al, 1
jmp 0x14027681f
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1400de342
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1400de342
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400e0be2
movzx eax, al
test eax, eax
je 0x140276712
xor al, al
jmp 0x14027681f
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x140276785
cmp dword [rbp + 0x1a0], 1
je 0x140276790
cmp dword [rbp + 0x1a0], 3
je 0x14027680e
jmp 0x14027681d
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1402767e0
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1402767e0
xor al, al
jmp 0x14027681f
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402767fb
mov dword [rbp + 0x194], 1
jmp 0x140276805
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14027681f
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14027681f
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402ffdf0]
call fcn.1400e0b38
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400df251
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x180002500
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x180002532
xor eax, eax
lea r8, [0x180002390]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180002540
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1800025f5
lea rdi, str.jvm.dll
nop dword [rax + rax]
cmp qword [rbx + 0x30], 0
je 0x1800025f5
movzx r8d, word [rbx + 0x58]
dec r8
cmp r8, 0xffffffffffffffff
je 0x1800025a3
mov rax, qword [rbx + 0x60]
lea rcx, [rax + r8*2]
nop dword [rax]
cmp word [rcx], 0x2e
je 0x1800025c9
dec r8
sub rcx, 2
cmp r8, 0xffffffffffffffff
jne 0x180002590
mov r9, qword [rbx + 0x60]
xor ecx, ecx
nop dword [rax]
movzx eax, word [r9 + rcx*2]
inc rcx
cmp ax, word [rdi + rcx*2 - 2]
jne 0x1800025e0
cmp rcx, 8
jne 0x1800025b0
xor eax, eax
jmp 0x1800025e5
mov r9, rax
cmp r8, 0xffffffffffffffff
je 0x1800025a7
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
jmp 0x1800025e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x180002602
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180002570
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180002620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
movsxd r8, dword [rcx + 0x3c]
lea rax, [rsp]
add r8, rcx
lea rax, [rax + 0x80]
mov r11, rcx
mov rbp, rdx
movups xmm0, xmmword [r8 + 0x18]
movups xmm1, xmmword [r8 + 0x28]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [r8 + 0x38]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [r8 + 0x48]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [r8 + 0x58]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [r8 + 0x68]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [r8 + 0x78]
movups xmmword [rax - 0x30], xmm1
movups xmmword [rax - 0x20], xmm0
movups xmm0, xmmword [r8 + 0x88]
add r8, 0x98
movups xmmword [rax - 0x10], xmm0
movups xmm1, xmmword [r8]
movups xmm0, xmmword [r8 + 0x10]
movups xmmword [rax], xmm1
movups xmm1, xmmword [r8 + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [r8 + 0x30]
movups xmmword [rax + 0x20], xmm1
movups xmm1, xmmword [r8 + 0x40]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x50]
movups xmmword [rax + 0x40], xmm1
movups xmm1, xmmword [r8 + 0x60]
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm1
mov rcx, qword [rsp + 0x70]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x180002743
mov eax, ecx
xor r10d, r10d
mov ecx, dword [rax + r11 + 0x20]
mov edi, dword [rax + r11 + 0x14]
mov ebx, dword [rax + r11 + 0x1c]
lea r9, [rcx + r11]
test rdi, rdi
je 0x180002743
sub rbx, rcx
nop
mov r8d, dword [r9]
mov rax, rbp
mov esi, dword [r9 + rbx]
add r8, r11
sub r8, rbp
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180002733
inc rax
test ecx, ecx
jne 0x180002720
test edx, edx
je 0x18000275e
inc r10
add r9, 4
cmp r10, rdi
jb 0x180002710
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [r11 + rsi]
jmp 0x180002745
Function at 0x180002890
Capabilities:
Allocate or change rwx memory
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
lea ecx, [rsi + 5]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180002980
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
add eax, 0x5000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x20], 0x3000
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_ZwAllocateVirtualMemory]
test eax, eax
js 0x180002980
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x180002980
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x18000299f
mov r9d, 0x8000
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwFreeVirtualMemory]
cmp edi, 0xc0000004
je 0x1800028d2
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800037c0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rax, rbx
jmp 0x180002982
Function at 0x1800029b0
Capabilities:
Suspend thread

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor eax, eax
mov ecx, 1
lock cmpxchg dword [0x1800426f8], ecx
cmp eax, ecx
jne 0x1800029f0
nop dword [rax + rax]
pause
xor eax, eax
lock cmpxchg dword [0x1800426f8], ecx
cmp eax, ecx
je 0x1800029e0
test rsi, rsi
jne 0x180002a0a
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800037c0
add rsp, 0x70
pop rsi
ret
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x180002ae6
mov qword [rsp + 0x98], rdi
nop
mov eax, ebx
lea rdi, [rax + rax*4]
shl rdi, 4
add rdi, rsi
mov qword [rdi + 0x100], rbp
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp qword [rdi + 0x130], rcx
je 0x180002ad3
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x30
lea r9, [rdi + 0x128]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x28]
mov dword [rsp + 0x40], ebp
mov edx, 0x1a
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbp
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenThread]
test eax, eax
js 0x180002ad3
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180002ad3
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
call qword [sym.imp.ntdll.dll_ZwSuspendThread]
test eax, eax
jns 0x180002ac7
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x180002ad3
mov rax, qword [rsp + 0x20]
mov qword [rdi + 0x100], rax
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x180002a30
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov al, 1
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800037c0
add rsp, 0x70
pop rsi
ret

Function at 0x180002b10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.ntdll.dll_ZwFlushInstructionCache]
xor ebp, ebp
test rsi, rsi
jne 0x180002b46
xor al, al
jmp 0x180002ba5
mov qword [rsp + 0x48], rbx
mov ebx, ebp
cmp dword [rsi + 4], ebx
jbe 0x180002b9e
mov qword [rsp + 0x50], rdi
mov eax, ebx
lea rdi, [rax + rax*4]
add rdi, rdi
mov rcx, qword [rsi + rdi*8 + 0x100]
test rcx, rcx
je 0x180002b92
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_ZwResumeThread]
mov rcx, qword [rsi + rdi*8 + 0x100]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [rsi + rdi*8 + 0x100], rbp
inc ebx
cmp ebx, dword [rsi + 4]
jb 0x180002b57
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
xchg dword [0x1800426f8], ebp
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800037c0
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x180002bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rsi, rdx
lea rcx, [rsp + 0x180]
xor edx, edx
mov rbx, r8
mov r14d, r9d
lea r8d, [rdx + 2]
call fcn.180005d50
lea rax, [rsp + 0x30]
mov r9d, 0x10
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x180]
xor bpl, bpl
call fcn.180005c50
test eax, eax
js 0x180002d8b
sub rbx, rsi
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rsp + 0x38]
lea rdi, [rbx + rsi]
mov rcx, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
test byte [rsp + 0x50], 0x80
je 0x180002d4d
movzx r8d, byte [rsp + 0x141]
mov rax, rbx
cqo
mov r9, rax
xor r9, rdx
sub r9, rdx
test r8b, r8b
je 0x180002cd3
movzx ecx, byte [rsp + 0x140]
mov edx, 1
shl rdx, cl
dec rdx
shr rdx, 1
cmp r9, rdx
jae 0x180002db7
lea rax, [rdi + r8]
cmp cl, 8
je 0x180002cd1
cmp cl, 0x10
je 0x180002ccc
cmp cl, 0x20
je 0x180002cc8
cmp cl, 0x40
jne 0x180002cd3
sub qword [rax], rbx
jmp 0x180002cd3
sub dword [rax], ebx
jmp 0x180002cd3
sub word [rax], bx
jmp 0x180002cd3
sub byte [rax], bl
xor dl, dl
nop word [rax + rax]
movzx eax, dl
lea rcx, [rax + rax*2]
movzx r8d, byte [rsp + rcx*8 + 0x159]
test r8b, r8b
je 0x180002d46
cmp byte [rsp + rcx*8 + 0x149], 0
je 0x180002d46
movzx ecx, byte [rsp + rcx*8 + 0x158]
mov eax, 1
shl rax, cl
dec rax
shr rax, 1
cmp r9, rax
jae 0x180002db7
lea rax, [rdi + r8]
cmp cl, 8
je 0x180002d44
cmp cl, 0x10
je 0x180002d3f
cmp cl, 0x20
je 0x180002d3b
cmp cl, 0x40
jne 0x180002d46
sub qword [rax], rbx
jmp 0x180002d46
sub dword [rax], ebx
jmp 0x180002d46
sub word [rax], bx
jmp 0x180002d46
sub byte [rax], bl
inc dl
cmp dl, 2
jb 0x180002ce0
movzx ecx, byte [rsp + 0x38]
add bpl, cl
add rsi, rcx
movzx eax, bpl
cmp eax, r14d
jae 0x180002d8b
lea rax, [rsp + 0x30]
mov r9d, 0x10
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.180005c50
test eax, eax
jns 0x180002c50
movzx eax, bpl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1800037c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor al, al
jmp 0x180002d8f
Function at 0x180002dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
lea rax, [r11 - 0x30]
mov rbp, rdx
mov qword [r11 - 0x28], rcx
mov rbx, rcx
mov qword [r11 - 0x38], rdi
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rax
lea rdx, [r11 - 0x28]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
mov r9d, 0x40
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
xor esi, esi
test eax, eax
cmovns esi, dword [rsp + 0x38]
test esi, esi
jne 0x180002e2a
xor al, al
jmp 0x180002e70
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800037c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a7f0
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.140011300
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.140011300
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 0x14000a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002b0a4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x14002b0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a8ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000a935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a890
mov rcx, rbx
call fcn.14000b2b0
mov rdi, rax
test rax, rax
je 0x14000a9b2
mov rax, qword [0x14002b0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b3f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002b0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a92e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000a940
add dword [0x14002b0a4], 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 [0x14002b0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a7f0
nop dword [rax]
xor esi, esi
jmp 0x14000a8b8
mov rax, qword [0x14002b0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a7f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a7f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000af20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002b100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002b0e0]
test rbx, rbx
je 0x14000af7c
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 eax, eax
jne 0x14000af73
test rsi, rsi
je 0x14000af73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000af58
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 0x14000b2b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140022fe0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b2d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b2d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b2d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b32d
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 0x14000b324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b2d0
add rax, 0x28
cmp rax, r9
jne 0x14000b310
xor eax, eax
ret

Function at 0x14000b330
Capabilities:
Parse pe header

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

Function at 0x14000b3f0
Capabilities:
Parse pe header

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