joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100004874
Capabilities:
Get file size

Disassembly:
push rdi
push r12
push r13
mov eax, 0x1fb0
call fcn.10000e9c0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1fd0], rbx
mov qword [rsp + 0x1fe0], rbp
mov qword [rsp + 0x1fe8], rsi
mov rax, qword [0x100012150]
xor rax, rsp
mov qword [rsp + 0x1fa0], rax
mov edi, ecx
xor ebp, ebp
mov rcx, rdx
call fcn.100005f04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x100004adc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
xor ecx, ecx
call fcn.10000c9ec
mov rdx, rax
and qword [rsp + 0x28], rbp
and dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [rbp + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1000049ed
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x1000049e4
lea rax, [0x100001d10]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x60], rbp
and qword [rsp + 0x68], rbp
and qword [rsp + 0x70], rbp
and qword [rsp + 0x78], rbp
lea rax, [0x100001cf8]
mov qword [rsp + 0x128], rax
lea rax, [0x100001e60]
mov qword [rsp + 0x130], rax
mov byte [rsp + 0x138], 1
and dword [rsp + 0x80], ebp
and dword [rsp + 0x84], ebp
and qword [rsp + 0x50], rbp
mov r9d, 0xffff
mov r8d, r13d
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.100007238
lea rdx, [rsp + 0x1be0]
lea rcx, [rsp + 0x40]
call fcn.100006fa4
mov r11, qword [rsp + 0x58]
mov eax, dword [r11 + 0x18]
lea ebp, [rax + 1]
add eax, edi
mov dword [r11 + 0x18], eax
lea rcx, [rsp + 0x40]
call fcn.100007020
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
lea rcx, [rsp + 0x40]
call fcn.100006e10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x100014818]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jle 0x100004acf
mov rsi, rdi
mov rdx, qword [0x100014d20]
mov r12d, ebp
inc ebp
mov al, dl
add al, byte [0x100014d18]
test al, 3
jne 0x100004a4f
lea rax, [rdx + 4]
shr rax, 2
cmp qword [0x100014d10], rax
ja 0x100004a4f
mov edx, 1
lea rcx, [0x100014d00]
call fcn.100005458
mov rdx, qword [0x100014d20]
mov rax, qword [0x100014d18]
lea rdi, [rdx + rax]
mov rbx, rdi
shr rbx, 2
mov rax, qword [0x100014d10]
cmp rax, rbx
ja 0x100004a70
sub rbx, rax
mov rax, qword [0x100014d08]
cmp qword [rax + rbx*8], 0
jne 0x100004a9a
mov ecx, 0x10
call fcn.10000daf8
mov rcx, qword [0x100014d08]
mov qword [rcx + rbx*8], rax
mov rdx, qword [0x100014d20]
and edi, 3
mov rax, qword [0x100014d08]
mov rcx, qword [rax + rbx*8]
lea rax, [rcx + rdi*4]
test rax, rax
je 0x100004abb
mov dword [rax], r12d
mov rdx, qword [0x100014d20]
inc rdx
mov qword [0x100014d20], rdx
sub rsi, 1
jne 0x100004a15
lea rcx, [0x100014818]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x1fa0]
xor rcx, rsp
call fcn.10000e1c0
lea r11, [rsp + 0x1fb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x100005cb0
Capabilities:
Read file via mapping

Disassembly:
push rdi
push r14
push r15
mov eax, 0x2000
call fcn.10000e9c0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2028], rbx
mov qword [rsp + 0x2030], rbp
mov qword [rsp + 0x2038], rsi
mov rax, qword [0x100012150]
xor rax, rsp
mov qword [rsp + 0x1ff0], rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
lea r15d, [r14 + 1]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100005ed1
xor ecx, ecx
call fcn.10000c9ec
mov rdx, rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x8000
xor r9d, r9d
lea r8d, [r14 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov ebp, 0x364
mov r8, rbp
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov word [rsp + 0x50], bp
mov word [rsp + 0x52], r15w
lea rcx, [rsp + 0x1f60]
lea rdx, [0x100001b80]
lea r8d, [r14 + 0x3c]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x1fa0]
lea rdx, [0x100001bc0]
lea ebp, [r14 + 0x4e]
mov r8, rbp
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x54]
lea rdx, [rsp + 0x1f60]
lea r8d, [r14 + 0x3c]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0xb4]
lea rdx, [rsp + 0x1fa0]
mov r8, rbp
call sub.msvcrt.dll_memcpy
mov word [rsp + 0x2b4], r14w
lea rax, [0x100001d10]
mov qword [rsp + 0x3c0], rax
mov qword [rsp + 0x3e0], r14
mov qword [rsp + 0x3e8], r14
mov qword [rsp + 0x3f0], r14
mov qword [rsp + 0x3f8], r14
lea rax, [0x100001cf8]
mov qword [rsp + 0x4a8], rax
lea rax, [0x100001e60]
mov qword [rsp + 0x4b0], rax
mov byte [rsp + 0x4b8], r15b
mov dword [rsp + 0x400], r14d
mov dword [rsp + 0x404], r14d
mov qword [rsp + 0x3d0], r14
lea r9, [rsp + 0x50]
mov r8d, 0x8000
mov rdx, rbx
lea rcx, [rsp + 0x3c0]
call fcn.1000081f8
xor r9d, r9d
mov r8d, 0x8000
mov rdx, rbx
lea rcx, [rsp + 0x3c0]
call fcn.100007238
mov r11, qword [rsp + 0x3d8]
or dword [r11 + 0x40], 2
lea rcx, [rsp + 0x3c0]
call fcn.100006e10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1ff0]
xor rcx, rsp
call fcn.10000e1c0
lea r11, [rsp + 0x2000]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x100005f54
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
or rdi, 0xffffffffffffffff
mov rsi, rcx
xor ebp, ebp
mov ebx, ebp
cmp ebx, 0x14
jge 0x100005fef
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x100005fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100005fce
cmp eax, 5
je 0x100005fd8
cmp eax, 0x20
jne 0x100005fef
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x100005f73
mov rcx, rsi
call fcn.100005cb0
jmp 0x100005f71
mov eax, dword [0x1000148c4]
cmp eax, ebp
jne 0x100005ff9
mov eax, 1
mov dword [0x1000148c4], eax
jmp 0x100005ff5
mov eax, dword [0x1000148c4]
cmp eax, ebp
je 0x100006006
cmp rdi, 0xffffffffffffffff
cmovne eax, ebp
mov dword [0x1000148c4], eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x10000c214
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x460
mov rax, qword [0x100012150]
xor rax, rsp
mov qword [rsp + 0x450], rax
and qword [r8], 0
and qword [r9], 0
mov r13, qword [rsp + 0x4b0]
and qword [r13], 0
mov rsi, qword [rsp + 0x4b8]
mov r12, qword [rsp + 0x4c0]
and qword [rsi], 0
lea rcx, [0x100001688]
mov rbp, r9
mov qword [r12], 8
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x100001660]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + rdi + 1]
mov eax, 2
movsxd rdx, ecx
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.10000db98
mov rcx, rax
mov qword [rbx], rax
test rax, rax
jne 0x10000c2c1
xor eax, eax
jmp 0x10000c423
lea eax, [rdi + 1]
lea rdx, [0x100001688]
movsxd r8, eax
add r8, r8
call sub.msvcrt.dll_memcpy
lea rcx, [0x100001660]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x100001660]
inc eax
movsxd r8, eax
mov rax, qword [rbx]
lea rcx, [rax + rdi*2]
add r8, r8
call sub.msvcrt.dll_memcpy
mov r9, qword [rbx]
mov edi, 0x104
lea r8, [0x100001fb0]
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], 8
call fcn.10000c0fc
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rdi
call fcn.10000c68c
xor ecx, ecx
call fcn.10000c9ec
xor r9d, r9d
or rcx, 0xffffffffffffffff
mov rdx, rax
lea rax, [rsp + 0x240]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp], rax
test rax, rax
je 0x10000c2ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp]
xor edi, edi
cmp eax, 0xb7
lea eax, [rdi + 1]
cmovne edi, eax
mov rax, qword [r12]
xor r9d, r9d
lea edx, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea r8, [0x100001fd8]
lea rcx, [rsp + 0x30]
mov qword [r13], rax
mov r9, qword [rbx]
mov ebx, 0x104
mov rdx, rbx
call fcn.10000c0fc
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rbx
call fcn.10000c68c
mov ecx, 0x10
call fcn.10000daf8
mov rbx, rax
test rax, rax
je 0x10000c41c
lea rax, [0x100001ff8]
xor ecx, ecx
mov qword [rbx], rax
call fcn.10000c9ec
lea r8, [rsp + 0x240]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
jmp 0x10000c41e
xor ebx, ebx
mov qword [rsi], rbx
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10000e1c0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000c504
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x10001421c], 0xffffffff
jne 0x10000c5d4
mov eax, dword [0x100014d90]
xor ebx, ebx
mov dword [0x10001421c], ebx
test al, 1
jne 0x10000c557
or eax, 1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov dword [0x100014d90], eax
call fcn.10000cc7c
cmp eax, ebx
mov eax, ebx
je 0x10000c551
cmp dword [rsp + 0x40], 0x2000
setb al
mov dword [0x100014d94], eax
lea rax, [rsp + 0x48]
lea rdx, [0x100002020]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000c5d4
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [0x100002068]
mov qword [rsp + 0x28], rax
lea rax, [0x10001421c]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x10001421c]
cmp eax, ebx
cmovne ecx, ebx
mov dword [0x10001421c], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10001421c]
add rsp, 0x30
pop rbx
ret

Function at 0x10000ce90
Capabilities:
Compare security identifiers
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, [0x1000022b0]
mov ebp, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000cfb3
mov rcx, qword [rsp + 0x30]
or dword [rsp + 0x60], 0xffffffff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x100002328]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10000cf1e
cmp dword [rsp + 0x60], eax
jne 0x10000cf1e
xor edi, edi
jmp 0x10000cfa8
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
lea rcx, [0x10000238c]
call fcn.10000e79c
test eax, eax
je 0x10000cfa8
call fcn.10000d30c
mov rcx, qword [rsp + 0x68]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x68]
xor ebx, ebx
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x10000cfa8
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x68], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea rdx, [0x100002340]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10000cfa8
cmp dword [rsp + 0x68], ebp
cmove edi, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x10000e1c0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100012150]
jne 0x10000e1db
rol rcx, 0x10
test cx, 0xffff
jne 0x10000e1d7
ret 0
ror rcx, 0x10
jmp 0x10000e62c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100014340]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100014438]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10000e6b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100014340]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10000e6d3
mov rax, qword [rsp + 0x88]
mov qword [0x100014438], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000143d8], rax
mov rax, qword [0x100014438]
mov qword [0x1000142b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000143c0], rax
mov dword [0x1000142a0], 0xc0000409
mov dword [0x1000142a4], 1
mov rax, qword [0x100012150]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100012158]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001520]
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, 0x88
ret

Function at 0x10000e4c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000e515
cmp rcx, 0xffffffffffffffff
je 0x10000e515
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000e50d
cmp dword [rcx + 0x3c], edx
jl 0x10000e50d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000e50d
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 0x10000e515
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140013c80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x200
mov r9d, edx
mov rsi, rcx
lea r8, [0x1400283a0]
lea rdi, [rsp + 0x80]
mov r15d, pe_nt_image_headers64
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140013e40
mov word [rsp + 0x100], 0
movzx ebp, byte [rsp + 0x80]
test bpl, bpl
je 0x140013d64
lea r12, [rsp + 0x100]
xor eax, eax
lea rbx, [rsp + 0x30]
mov rcx, r15
mov r14, r12
test ax, ax
je 0x140013d11
nop
mov rax, r12
mov rcx, r15
nop word cs:[rax + rax]
lea r14, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r14
jne 0x140013d00
test rcx, rcx
je 0x140013e35
mov rcx, r14
call sub.msvcrt.dll_wcslen
lea rcx, [r14 + rax*2]
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x31], 0
mov r8d, 2
mov rdx, rbx
call sub.msvcrt.dll_mbstowcs
movzx ebp, byte [rdi + 1]
test bpl, bpl
je 0x140013d64
inc rdi
dec r15
movzx eax, word [r12 + 2]
add r12, 2
mov rcx, r15
mov r14, r12
test ax, ax
jne 0x140013cf0
jmp 0x140013d11
mov word [rsp + 0x30], 0
movzx ebp, byte [rsi]
test bpl, bpl
je 0x140013e0f
lea r14, [rsp + 0x30]
mov r15d, 0x28
xor eax, eax
lea rdi, [rsp + 0x2e]
mov rcx, r15
mov rbx, r14
test ax, ax
je 0x140013dc1
nop word cs:[rax + rax]
mov rax, r14
mov rcx, r15
nop word cs:[rax + rax]
lea rbx, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, rbx
jne 0x140013db0
test rcx, rcx
je 0x140013e35
mov rcx, rbx
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rdi
call sub.msvcrt.dll_mbstowcs
movzx ebp, byte [rsi + 1]
test bpl, bpl
je 0x140013e0f
inc rsi
dec r15
movzx eax, word [r14 + 2]
add r14, 2
mov rcx, r15
mov rbx, r14
test ax, ax
jne 0x140013da0
jmp 0x140013dc1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x200
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
int3
Function at 0x140014e90
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400310a8]
test rcx, rcx
je 0x140014eeb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140014ede
mov rcx, qword [0x1400310a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1400310a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400338e0], 1
jne 0x140014f97
mov rbx, qword [0x1400286e8]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x1400286d8]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x1400286c8]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x1400286b8]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x1400310c0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140014f97
and eax, 0x10
je 0x140014f97
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140014f60
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14001b750
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001ced0
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x1400310b0]
test eax, eax
je 0x14001b773
test eax, eax
jg 0x14001b7bb
jmp 0x14001b7f2
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014570
test al, al
je 0x14001b86a
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
test eax, eax
jle 0x14001b7f2
lea rdi, [0x140036120]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001b85d
inc rbx
movsxd rax, dword [0x1400310b0]
add rdi, 8
cmp rbx, rax
jl 0x14001b7d0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001b809
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001b85f
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001b82a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001b85f
cmp dword [0x1400310b0], 0x3ff
jg 0x14001b85f
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140015ad0
int3

Function at 0x14001bbb0
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.140022b00
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.140022b00
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 0x14001c882
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400401e8]
test eax, eax
je 0x14001c91a
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400401f0]
mov qword [rbp - 8], rax
jmp 0x14001c8fe
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 0x14001c8f2
cmp qword [rbp - 0x10], 0
je 0x14001c8f2
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 0x14001c8b8
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001c91b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001ca20
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 0x14001ca48
mov eax, 0
jmp 0x14001ca96
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 0x14001ca71
mov eax, 0
jmp 0x14001ca96
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 0x14001ca91
mov eax, 0
jmp 0x14001ca96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001ca9c
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 0x14001cb1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cb11
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 0x14001cb11
mov rax, qword [rbp - 8]
jmp 0x14001cb2f
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 0x14001cae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov eax, 1
cpuid
test edx, 0x4c4b400
jne 0x14000109e
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x140002260]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
xor edx, edx
nop dword [rax]
nop word [rax + rax]
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x140001060
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400010d0
add rsp, 0x50
pop rbx
ret

Function at 0x140001998
Capabilities:
Parse pe header

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