joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
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 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cld
cld
cld
cli
cli
cli
cli
invalid
cli
cli
cli
div edi
idiv edi
cmc
cmc
cmc
push rsi
div dh
invalid
div dh
idiv bh
invalid
invalid
Function at 0x140001094
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85b2b70
mov rbx, rcx
jne 0x1400010eb
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010eb
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010eb
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400010eb
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400010f0
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400010f8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
cmp dword [rcx], 0x85b2b70
mov rbx, rcx
jne 0x140001203
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001203
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rsi, qword [rbp + 0x20]
test rsi, rsi
je 0x140001203
mov rdi, qword [rsi + 0x28]
test rdi, rdi
jne 0x140001155
call fcn.140001030
mov edx, eax
mov rdi, qword [rdx + rsi]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x14000118e
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
mov rcx, rsi
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rsi, cr3
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rsi, rsi
jne 0x140001191
mov rsi, rdi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov rdi, qword [rbx + 0x18]
call fcn.1400013a8
test rax, rax
je 0x140001203
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, edi
cmovl edi, edx
and qword [rbp + 0x28], 0
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x1400011e7
mov rdx, rcx
lea r9, [rbp + 0x28]
mov rcx, rax
call fcn.140001584
jmp 0x1400011ff
lea rdx, [rbp + 0x28]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001208
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000384c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140297060]
mov dword [rax], 1
mov rax, qword [0x140297070]
mov dword [rax], 1
mov rax, qword [0x140297080]
mov dword [rax], 1
mov rax, qword [0x140296fe0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1401f2f60
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14026ce10
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1401f3025
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027dd22
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401f3006
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401f2ff8
test rsi, rsi
je 0x14027dd22
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401f2fb8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1401f3054
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1401f3070
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1401f312d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027dd28
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401f310e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401f3100
test rsi, rsi
je 0x14027dd28
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401f30c0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140211f30
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1402b77b0]
mov rsi, rcx
test rbx, rbx
je 0x140211fb0
mov rax, qword [0x1402971b0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140211fa0
mov rdx, qword [0x1402b79e8]
test rdx, rdx
je 0x1402120a0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140211f81
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1401f2f60
test rax, rax
je 0x1402120c0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027ddc2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14021204e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140212040
test rbx, rbx
je 0x14027ddc2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140212000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140211dc0
mov rbx, rax
mov qword [0x1402b77b0], rbx
jmp 0x140211f52
lea rcx, [0x1402936b2]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1402b79e8], rax
mov rdx, rax
jmp 0x140211f72
mov rbx, qword [0x1402b77c8]
test rbx, rbx
jne 0x140212091
cmp byte [0x1402b79e2], 0
je 0x140212103
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b77e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1402b77c8], rax
mov rbx, rax
test rax, rax
je 0x14021210f
mov eax, dword [rax]
add eax, 1
je 0x140212091
mov dword [rbx], eax
jmp 0x140212091
mov ecx, 1
call fcn.1401f3be0
jmp 0x1402120d5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x140212990
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1401f2f60
test rax, rax
je 0x140212ae0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027ddda
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140212a46
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140212a38
test rbx, rbx
je 0x14027ddda
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1402129f8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1402b8120]
mov rsi, rax
mov rax, qword [0x1402971b0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140212b4d
mov rdx, rbx
call fcn.1401e3630
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140206560
mov rdx, qword [rbx]
test edx, edx
js 0x140212ac2
sub rdx, 1
mov qword [rbx], rdx
je 0x140212b35
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402b77c0]
lea rsi, [0x1402b77c0]
test bl, bl
je 0x140212b00
mov rax, qword [0x1402b77c8]
lea rsi, [0x1402b77c8]
test rax, rax
jne 0x140212ac2
cmp byte [0x1402b79e2], 0
je 0x140212b77
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b77e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140212b81
mov edx, dword [rax]
add edx, 1
je 0x140212ac2
mov dword [rax], edx
jmp 0x140212ac2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140212ac2
mov rcx, qword [0x1402b8098]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140212b8c
mov rdx, rdi
call fcn.1401e3630
mov qword [0x1402b8120], rax
mov rcx, rax
jmp 0x140212a99
movzx ecx, bl
call fcn.1401f3be0
jmp 0x140212b0e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14028e293]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1402b8098], rax
mov rcx, rax
test rax, rax
je 0x14027ddda
jmp 0x140212b60
Function at 0x1402693d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1402b77a1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140269478
lea rdx, str..bytecode
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1402694e0
mov rbx, qword [0x1402b7640]
jmp 0x140269415
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140269410
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140269467
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1402593d0
mov r8, rax
cmp rdi, rbx
jne 0x140269450
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1402b7640], rax
mov ebx, dword [rax]
mov qword [0x1402b7640], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1402b7640], rdx
call fcn.140268500
cmp eax, ebx
jne 0x140269548
mov byte [0x1402b77a1], 1
jmp 0x1402693f0
cmp byte [0x1402b77a0], 0
jne 0x140269407
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1402b8348], rax
call rbx
mov qword [0x1402b8340], rax
call rbx
mov qword [0x1402b8338], rax
call rbx
mov qword [0x1402b8330], rax
call rbx
mov qword [0x1402b8328], rax
call rbx
mov qword [0x1402b8320], rax
call rbx
mov qword [0x1402b8318], rax
call rbx
mov byte [0x1402b77a0], 1
mov qword [0x1402b8310], rax
jmp 0x140269407
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14026baf0
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 fcn.14027d280
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14027d280
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14026c7c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402b8808]
test eax, eax
je 0x14026c85a
lea rax, [0x1402b87e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402b8810]
mov qword [rbp - 8], rax
jmp 0x14026c83e
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 0x14026c832
cmp qword [rbp - 0x10], 0
je 0x14026c832
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 0x14026c7f8
lea rax, [0x1402b87e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14026c85b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14026c960
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 0x14026c988
mov eax, 0
jmp 0x14026c9d6
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 0x14026c9b1
mov eax, 0
jmp 0x14026c9d6
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 0x14026c9d1
mov eax, 0
jmp 0x14026c9d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14026c9dc
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 0x14026ca5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14026ca51
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 0x14026ca51
mov rax, qword [rbp - 8]
jmp 0x14026ca6f
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 0x14026ca24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, [0x14002b580]
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000a960
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, [0x14002b590]
call fcn.140001fb0
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.14001513c
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, [0x14002b5e0]
lea rcx, [0x14002b624]
call fcn.140001f70
jmp 0x14000126c
mov ecx, 0x2000
call fcn.14001513c
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, [0x14002b630]
lea rcx, [0x14002b624]
call fcn.140001f70
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000f94c
cmp rax, rbx
jne 0x14000125e
mov rcx, rdi
call fcn.14000f6c0
test eax, eax
jne 0x14000125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140008e10
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.14001008c
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000f6c0
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000bea0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, [0x14002b680]
add rdx, 0x12
mov r8d, edi
call fcn.140001fb0
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000a640
mov rcx, r13
call fcn.140015128
mov rcx, rbp
call fcn.140015128
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000bb60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call fcn.1403cbd7c
nop
test rax, rax
je 0x14000bbaa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bbaa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bbaa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bbaa
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bbaa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bbac
xor al, al
add rsp, 0x28
ret

Function at 0x14001a26c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a068

Function at 0x14001fca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x14001fcf8
je 0x14001fcef
mov eax, 0xc433
cmp ecx, eax
ja 0x14001fcd3
je 0x14001fcef
mov eax, ecx
sub eax, 0x2a
je 0x14001fcef
sub eax, 0xc402
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
cmp eax, 3
jmp 0x14001fced
mov eax, ecx
sub eax, 0xc435
je 0x14001fcef
sub eax, 0x1263
je 0x14001fd2b
sub eax, 0x812
je 0x14001fcef
cmp eax, 1
jne 0x14001fcf1
xor edx, edx
call 0x1403cc105
nop
mov eax, ecx
sub eax, 0xdead
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 1
je 0x14001fcef
sub eax, 0x1f35
je 0x14001fcef
cmp eax, 1
jne 0x14001fcf1
and edx, 8
jmp 0x14001fcf1
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
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 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x19d1458
Capabilities:
Encode data using xor

Disassembly:
jmp 0x19d1462
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x19d148b
pop rbp
sub rbp, 0x33
sub rbp, 0x15d1458
sub rsp, 0x20
jmp 0x19d14aa
mov rax, 0x15d1458
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffffa1da3ac
xor byte [rax], dl
inc rax
dec rcx
jne 0x19d14c9
jmp 0x19d14e0
in al, 0x25
invalid