joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov edi, r8d
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov rax, qword [rbx + 0x18]
mov word [rsp + 0x32], r14w
test rax, rax
je 0x140084d8d
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x140084d92
mov dword [rsp + 0x24], r14d
mov eax, dword [rbx + 0x10]
shr eax, 0xa
test al, 1
je 0x140084dbd
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x140084dbd
mov rax, qword [rax + 0x3b0]
test rax, rax
je 0x140084dbd
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x140084dc2
mov dword [rsp + 0x28], r14d
mov eax, dword [rbx + 0xbc]
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r14
je 0x140084ddc
movzx eax, byte [rbx + 0x60]
mov byte [rsp + 0x30], al
jmp 0x140084de1
mov byte [rsp + 0x30], 0xff
cvttss2si ecx, dword [rbx + 0x48]
mov eax, dword [rbx + 8]
mov r8d, dword [rbp + 0x24]
and eax, 0x3fc20
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], dil
cvttss2si eax, dword [rbx + 0x4c]
mov word [rsp + 0x38], cx
cvttss2si ecx, dword [rbx + 0x50]
mov word [rsp + 0x3a], ax
cvttss2si eax, dword [rbx + 0x54]
mov word [rsp + 0x3c], cx
cvttss2si ecx, dword [rbx + 0x58]
mov word [rsp + 0x3e], ax
cvttss2si eax, dword [rbx + 0x5c]
mov word [rsp + 0x40], cx
mov ecx, dword [rbp + 0x20]
mov word [rsp + 0x42], ax
cmp ecx, r8d
jne 0x140084e63
inc ecx
test r8d, r8d
je 0x140084e4e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140084e53
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x20]
call fcn.140086840
movsxd rax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rdx, [rax + rax*8]
mov eax, dword [rsp + 0x40]
movups xmmword [rcx + rdx*4], xmm0
movups xmmword [rcx + rdx*4 + 0x10], xmm1
mov dword [rcx + rdx*4 + 0x20], eax
inc dword [rbp + 0x20]
mov rdx, qword [rbx + 0x20]
inc edi
test rdx, rdx
je 0x140084ea3
mov r8d, edi
mov rcx, rbp
call fcn.140084d40
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140084d70
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14009d4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140131788]
mov rcx, qword [rax + 0x5010]
mov r9, qword [rax + 0x4150]
movups xmm0, xmmword [r9 + 0x278]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x278], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2e0]
add rsp, 0x38
jmp fcn.140092e30

Function at 0x14009d5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140131788]
mov rcx, qword [rax + 0x5010]
mov r10, qword [rax + 0x4150]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2e0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x278], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2e0]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.140092e30
Function at 0x1400c6d70
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov dword [rsp + 0x28], 0
xor edi, edi
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400c6e09
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400c6dc0
test eax, eax
js 0x1400c6e59
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x1400c6e59
lea rsi, [rdi + 0x2e]
nop word [rax + rax]
movzx ecx, word [rsi]
lea rdx, str.ntoskrnl.exe
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.ntdll.dll__stricmp]
test eax, eax
je 0x1400c6edc
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x1400c6e20
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
xor edx, edx
lea rcx, [0x1400ddb00]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [rsp + 0x20], 0xd38b48ff
xor edi, edi
mov rbp, rax
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
mov r10d, 0x1000000
lea r9, [rax + 4]
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
lea rax, [rsp + 0x24]
mov r8, r9
lea rdx, [rsp + 0x20]
sub r8, rax
movzx eax, byte [r8 + rdx]
cmp byte [rdx], al
jne 0x1400c6efa
cmp ecx, 6
je 0x1400c6ef7
inc ecx
inc rdx
cmp ecx, 7
jb 0x1400c6ec2
jmp 0x1400c6efa
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400c6e6c
mov rdi, r9
inc r9
sub r10, 1
jne 0x1400c6eb0
mov ebx, dword [rdi + 3]
lea rdx, str.ZwFlushInstructionCache
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
add rsi, 0x27
sub rcx, rbp
add rax, rcx
mov ecx, ebx
sub rcx, rbp
mov qword [r14 + 8], rax
add rcx, rdi
mov rax, r14
add rcx, rsi
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400c6f60
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov edi, 0x34
mov rsi, rcx
lea edx, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400c6ff1
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x1400c6fb0
movzx ecx, word [rax]
test cx, cx
je 0x1400c6ff1
lea rax, [rsi + 0x68]
cmp cx, 0x2e
je 0x1400c6ff1
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x1400c6fd6
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x1400c70b7
lea r8, [0x1400ddb70]
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.ntdll.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400c7050
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x1400c70b7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c7190
Capabilities:
Install driver
Unload driver

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp - 0x29]
call fcn.1400c70e0
test eax, eax
jns 0x1400c71ed
lea rdx, [0x140131b10]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
js 0x1400c7398
lea rcx, [rbp - 0x29]
call fcn.1400c70e0
test eax, eax
js 0x1400c7398
mov qword [rsp + 0xe0], rbx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0xe8], rdi
call fcn.1400c6d70
mov rcx, qword [rbp - 0x29]
xor edi, edi
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
movups xmm0, xmmword [rax]
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 0x11]
mov qword [rbp + 0x27], rax
xor edx, edx
movq rbx, xmm0
mov qword [rbp - 0x11], rdi
lea rax, [rbp + 0x27]
mov qword [rbp + 0x2f], rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3f]
movups xmmword [rbp - 0x21], xmm0
mov dword [rsp + 0x28], 0xc3502808
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x37], 8
movups xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
movups xmm0, xmmword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
lea rax, [rbp + 0xf]
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rbp - 1], rax
xor edx, edx
psrldq xmm0, 8
lea rax, [rbp - 9]
mov dword [rsp + 0x38], 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x17]
movq qword [rbp + 0xf], xmm0
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xc3502808
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp - 9], rbx
mov dword [rbp + 7], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
lea rdx, [0x140131900]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
js 0x1400c7388
lea rcx, [rbp - 0x29]
call fcn.1400c70e0
test eax, eax
js 0x1400c7388
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x11]
mov dword [rsp + 0x48], edi
xorps xmm0, xmm0
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rbp - 1], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x17]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
mov qword [rbp - 9], rbx
mov dword [rbp + 7], 8
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
lea rdx, [0x140131b10]
mov ebx, eax
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0xd0
pop rbp
ret
Function at 0x1400c73b0
Capabilities:
Unload driver

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea r9, [rsp + 0x20]
mov rbx, rcx
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
js 0x1400c74b4
mov qword [rsp + 0x58], rsi
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov qword [rsp + 0x60], rdi
lea rsi, [0x140131900]
mov edi, 0x34
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx eax, word [rbx]
mov rdx, rbx
test ax, ax
je 0x1400c746b
nop dword [rax + rax]
add rdx, 2
cmp ax, 0x5c
mov rcx, rdx
cmovne rcx, rbx
movzx eax, word [rdx]
mov rbx, rcx
test ax, ax
jne 0x1400c7420
movzx eax, word [rcx]
test ax, ax
je 0x1400c746b
lea rcx, [0x140131968]
nop dword [rax]
cmp ax, 0x2e
je 0x1400c746b
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x1400c7450
movsxd rax, edi
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov rdx, rsi
mov word [rsi + rax*2], r8w
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
movzx edx, byte [rsp + 0x20]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov ebx, eax
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0x40
pop rbx
ret
Function at 0x1400c8c88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400c8d0c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1400c8d0c
dec r8
sub rdx, 1
jne 0x1400c8cf2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400ca3d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ca41e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ca41e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ca41e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ca41e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ca41e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ca420
xor al, al
add rsp, 0x28
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140015e00
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 0x140011294
Capabilities:
Execute command

Disassembly:
jmp 0x1400119b0
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400250a4]
call fcn.14001139d
mov dword [rbp + 4], 0xa
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0xa
mov dword [rbp + 0x64], 0
xor ecx, ecx
call fcn.140011d40
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov byte [rbp + 0x84], 0
mov byte [rbp + 0xa4], 0
mov byte [rbp + 0xc4], 0
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x104], 0
mov dword [rbp + 0x124], 0
mov dword [rbp + 0x144], 0
mov dword [rbp + 0x164], 0
lea rcx, [0x14001d0c0]
call fcn.1400111a9
lea rdx, [rbp + 0x84]
lea rcx, [0x14001d01c]
call fcn.14001109b
movsx eax, byte [rbp + 0x84]
cmp eax, 0x70
jne 0x140011ac6
lea rcx, [0x14001ce80]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.1400113f2
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x24]
mov r8d, dword [rbp + 4]
mov edx, dword [rbp + 0xe4]
movzx ecx, byte [rbp + 0xa4]
call fcn.140011244
jmp 0x140011ad6
movsx eax, byte [rbp + 0x84]
cmp eax, 0x71
jne 0x140011ad6
xor eax, eax
jmp 0x140011ad8
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ce20]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017140
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017160
xor al, al
jmp 0x1400171e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017173
xor al, al
jmp 0x1400171e1
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 0x14001719d
xor al, al
jmp 0x1400171e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400171b1
xor al, al
jmp 0x1400171e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400171c3
xor al, al
jmp 0x1400171e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400171df
xor al, al
jmp 0x1400171e1
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4daea0
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.2fc4dbf80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4db8a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4db93a
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 0x2fc4db91e
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 0x2fc4db912
cmp qword [rbp - 0x10], 0
je 0x2fc4db912
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 0x2fc4db8d8
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db93b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dba40
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 0x2fc4dba68
mov eax, 0
jmp 0x2fc4dbab6
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 0x2fc4dba91
mov eax, 0
jmp 0x2fc4dbab6
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 0x2fc4dbab1
mov eax, 0
jmp 0x2fc4dbab6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbabc
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 0x2fc4dbb3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbb31
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 0x2fc4dbb31
mov rax, qword [rbp - 8]
jmp 0x2fc4dbb4f
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 0x2fc4dbb04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2c90
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.2fc4d3d70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d372a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d370e
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 0x2fc4d3702
cmp qword [rbp - 0x10], 0
je 0x2fc4d3702
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 0x2fc4d36c8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d372b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3830
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 0x2fc4d3858
mov eax, 0
jmp 0x2fc4d38a6
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 0x2fc4d3881
mov eax, 0
jmp 0x2fc4d38a6
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 0x2fc4d38a1
mov eax, 0
jmp 0x2fc4d38a6
mov eax, 1
add rsp, 0x20
pop rbp
ret