joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400027b4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
lea edi, [rdx + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002815
mov edx, eax
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x140002822
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rdx, [rsp + 0x38]
lea rcx, [0x140003d30]
call fcn.140002adc
xor edx, edx
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x140002815
lea r8, [0x1400044e0]
mov rcx, rdi
lea rdx, [0x1400044f0]
call fcn.140002988
test rax, rax
je 0x140002815
mov ecx, dword [rax + 3]
xor edx, edx
add ecx, 7
mov r8d, 0x7d0
movsxd rcx, ecx
mov rcx, qword [rcx + rax]
call fcn.140003a80
mov eax, 1
jmp 0x140002817

Function at 0x140002988
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r14, r8
mov r15, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x140002a2a
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x140002a2a
movzx r12d, word [rbx + 0x14]
xor r13d, r13d
add r12, 0x18
movzx esi, r13w
add r12, rbx
cmp r13w, word [rbx + 6]
jae 0x140002a2a
movzx eax, si
lea rdx, [0x140003c80]
lea rcx, [rax + rax*4]
lea rbp, [r12 + rcx*8]
mov rcx, rbp
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002a08
cmp dword [rbp], 0x45474150
jne 0x140002a21
mov ecx, dword [rbp + 0xc]
mov r9, r14
mov edx, dword [rbp + 8]
add rcx, rdi
mov r8, r15
call fcn.140002910
test rax, rax
jne 0x140002a2c
inc si
cmp si, word [rbx + 6]
jb 0x1400029e0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002adc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x150
and dword [rax + 0x18], 0
lea r9, [rax + 0x18]
xor r8d, r8d
mov r14, rdx
mov rbp, rcx
lea rdx, [rax + 0x18]
lea edi, [r8 + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140002c11
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
xor esi, esi
xor edi, edi
cmp qword [rbx], rsi
jbe 0x140002c03
xor eax, eax
imul rdx, rax, 0x128
lea rax, [rbx + 8]
mov r8d, 2
add rax, rdx
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140002b70
movups xmm0, xmmword [rax]
mov rsi, qword [rdx + rbx + 0x18]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
mov eax, dword [rdx + rbx + 0x20]
mov rdx, rbp
mov qword [r14], rax
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002c03
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140002b57
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140003670
Capabilities:
Create thread
Print debug messages

Disassembly:
sub rsp, 0x48
lea rcx, [0x140004470]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x30], 0
lea rax, [0x140001ad0]
mov qword [rsp + 0x28], rax
lea rcx, [0x140006698]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
call fcn.1400026d8
call fcn.1400027b4
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001db0
Capabilities:
Encode data using xor
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
movdqa xmm0, xmmword [0x14000a990]
xor ebx, ebx
movdqa xmm1, xmmword [0x14000aa50]
mov ecx, ebx
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x14000aa60]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm1, xmmword [0x14000a900]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm0, xmmword [0x14000a910]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm1, xmmword [0x14000a750]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm0, xmmword [0x14000a7f0]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm1, xmmword [str.__vr]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x14000a620]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x14000a6c0]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [0x14000a7d0]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmm1, xmmword [str._:_l8_]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [0x14000a640]
movdqa xmmword [rbp], xmm1
movdqa xmm1, xmmword [0x14000a600]
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
mov byte [rbp + 0x30], 1
lea eax, [rcx - 0x56]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0xdf
jb 0x140001e83
lea rcx, [rsp + 0x50]
mov byte [rbp + 0x30], bl
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x14000a9d0]
mov rcx, rbx
movdqa xmm1, xmmword [0x14000a840]
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x40], 0xb9a2aea6
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x44], pe_nt_image_headers64
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x56]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0x24
jb 0x140001ee0
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x45], bl
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movdqa xmm0, xmmword [0x14000aa80]
movdqa xmm1, xmmword [0x14000a5d0]
movdqu xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x40], 1
movdqu xmmword [rsp + 0x30], xmm1
lea eax, [rbx - 0x56]
xor byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0x1f
jb 0x140001f20
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rbp
ret
Function at 0x140007db0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sbb eax, 0x1d0404ff
inc dword [rsp + rax]
sbb al, 0xff
add al, 4
sbb al, 0xff
add al, 4
sbb al, 0xff
add al, 4
sbb al, 0xff
add al, 4
sbb al, 0xff
add al, 4
sbb al, 0xff
add al, 4
sbb edi, edi
add al, 4
or edi, edi
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or eax, 0x1c0404ff
inc dword [rbx]
add eax, dword [rbx]
and edi, edi
add eax, dword [rbx]
and bh, bh
add al, 4
add eax, dword [rbx]
and edi, edi
add eax, dword [rbx]
and bh, bh
add al, 4
sbb edi, edi
add al, 4
adc edi, edi
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or bh, bh
add al, 4
or al, 0xff
add al, 4
sbb bh, bh
add al, byte [rdx]
sub edi, edi
add byte [rax], al
xor edi, edi
add al, 4
and eax, 0x584545ff
invalid
mov edx, 0xfcffc7bb
cld
cld
invalid
sti
sti
sti
invalid
Function at 0x180001500
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.180016790
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf50], rax
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
cmp dword [rcx + 0x10], edi
je 0x180001684
mov dword [rcx + 0x10], edi
cmp dword [rcx + 0xc], edi
jne 0x180001684
movzx eax, word [rcx + 0x814]
lea r9, [rsp + 0x30]
add ax, 0x18
mov word [rsp + 0x3e], dx
mov word [rsp + 0x48], ax
lea r8d, [rdi + 0x10]
mov eax, dword [rcx + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rsp + 0x40], 0x3000005
mov dword [rsp + 0x44], 0x10
mov word [rsp + 0x4a], di
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x38], edi
mov word [rsp + 0x3c], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001684
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 8]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001684
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001684
inc dword [rbx + 8]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x1000
call fcn.1800169e0
mov rcx, qword [rbx]
lea r9, [rsp + 0x34]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001684
cmp word [rsp + 0x50], 5
jne 0x180001684
cmp byte [rsp + 0x52], 2
jne 0x180001684
cmp byte [rsp + 0x53], 3
jne 0x180001684
movzx edi, word [rsp + 0x58]
cmp edi, dword [rsp + 0x34]
jne 0x180001684
cmp word [rsp + 0x64], 0
jne 0x180001684
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x180001684
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x68]
call fcn.180016da0
xor eax, eax
mov dword [rbx + 0x1018], edi
jmp 0x180001689
mov eax, 1
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.1800027d0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180009eac
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180009d5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180009d5f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180009d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180009d5f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180009d5f
cmp dword [rcx + 0x84], 0xe
jbe 0x180009d5f
cmp dword [rcx + 0xf8], 0
je 0x180009d5f
mov ecx, ebx
call fcn.180009e10
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180009bec
nop
cmp dword [rbp + 0x20], 0
je 0x180009dad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180009db8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180009cf0
Function at 0x18000f778
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000f7a8
xor eax, eax
jmp 0x18000f86b
mov rbp, rbx
cmp word [rax], si
je 0x18000f7cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f7b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f7b0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000f698
movsxd r14, eax
test eax, eax
jne 0x18000f80b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f7a1
mov rcx, r14
call fcn.18000bcf8
mov rdi, rax
test rax, rax
jne 0x18000f824
xor ecx, ecx
call fcn.18000b16c
jmp 0x18000f800
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000f698
test eax, eax
jne 0x18000f855
mov rcx, rdi
call fcn.18000b16c
jmp 0x18000f85f
xor ecx, ecx
call fcn.18000b16c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x18001323c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180013252
mov al, 1
jmp 0x1800132b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180013263
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800132b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180011080
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800132b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800132b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800132b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800132b2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180016620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180016648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180016648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x10000203c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov edi, r9d
xor ebp, ebp
lea rax, [0x1000013d8]
lea rcx, [0x1000014b0]
mov byte [0x100005218], 1
mov qword [0x100005220], rax
lea rax, [0x100005200]
mov qword [0x100005210], rbp
mov qword [0x100005200], rbp
mov byte [0x100005219], bpl
mov word [0x10000521a], bp
mov qword [0x100005100], rax
mov dword [0x10000521c], ebp
call fcn.100001b4c
call fcn.100003754
call fcn.1000038ec
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
cmp eax, ebp
jne 0x1000020fc
mov rax, qword [0x100005100]
lea rcx, [0x100005100]
cmp rax, rcx
je 0x1000020fc
test byte [rax + 0x1c], 1
je 0x1000020fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100005100]
lea edx, [rbp + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000013e8]
mov r9d, eax
call fcn.100001a60
cmp dword [0x100005158], 0xffffffff
jne 0x100002111
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100005158], eax
xor ecx, ecx
call fcn.100001c1c
cmp eax, ebp
mov ebx, eax
jl 0x100002139
call fcn.100001d78
cmp eax, ebp
mov ebx, eax
jl 0x100002139
lea rcx, [0x100005240]
mov edx, edi
call fcn.100002de8
mov ebx, eax
call fcn.1000037d4
call fcn.100001bc8
mov ecx, dword [0x100005158]
cmp ecx, 0xffffffff
je 0x10000215b
call qword [sym.imp.KERNEL32.dll_TlsFree]
or dword [0x100005158], 0xffffffff
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100002628
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rbp, [0x100005100]
mov edx, dword [rbx + 0x58]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [rbx + 0x58]
mov rcx, qword [rbx + 0x50]
mov byte [rbx + 0x61], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10000264e
cmp eax, 0xffffffff
je 0x10000271c
call qword [0x100005238]
mov edi, eax
mov rcx, qword [0x100005100]
cmp rcx, rbp
je 0x10000269e
test byte [rcx + 0x1c], 2
je 0x10000269e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001588]
mov edx, 0xe
mov r9d, eax
call fcn.100001a60
cmp byte [rbx + 0x61], 0
jne 0x100002641
cmp dword [rbx + 0xc], 0
jne 0x100002641
test edi, edi
jne 0x100002641
call qword [sym.imp.ole32.dll_CoSuspendClassObjects]
cmp dword [rbx + 0xc], edi
jne 0x100002641
call qword [0x100005238]
test eax, eax
jne 0x100002641
mov rcx, qword [0x100005100]
cmp rcx, rbp
je 0x1000026ef
test byte [rcx + 0x1c], 2
je 0x1000026ef
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xf]
lea r8, [0x100001588]
xor r9d, r9d
call fcn.100001a60
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbx + 0x48]
xor r9d, r9d
lea edx, [r9 + 0x12]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rax, qword [0x100005100]
cmp rax, rbp
je 0x100002753
test byte [rax + 0x1c], 1
je 0x100002753
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100005100]
lea r8, [0x100001588]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xd
call fcn.100001a60
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100002884
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x1000028e2
lea rax, [rsp + 0x40]
lea r8, [0x100002768]
mov r9, rdi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1000028df
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x10000348c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000034d9
cmp rcx, 0xffffffffffffffff
je 0x1000034d9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000034d1
cmp dword [rcx + 0x3c], edx
jl 0x1000034d1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000034d1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000034d9
mov rax, rdx
add rsp, 0x18
ret