joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052cfc
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x140052d4b
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x140052d22
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14005417c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140022040]
mov dword [rax], 1
mov rax, qword [0x140022050]
mov dword [rax], 1
mov rax, qword [0x140022060]
mov dword [rax], 1
mov rax, qword [0x140022030]
mov dword [rax], 1
mov rax, qword [0x140021ee0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003b40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140003b61
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.140012f88

Function at 0x14000a950
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp qword [0x140029150], 0
mov r12, rcx
mov rbx, rdx
je 0x14000a9b0
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.14000a7e0
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140029150]
test r12, r12
je 0x14000a994
test byte [r12 + 7], 0x40
je 0x14000a9e8
lea rcx, [0x140020280]
call fcn.14000d5d0
cmp byte [rax], 0
jne 0x14000aa08
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
mov ecx, 2
call qword [fcn.1400136a0]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp fcn.140012f88
lea rcx, [0x1400202a0]
call fcn.14000d5d0
mov rdx, r12
mov rcx, rax
call fcn.140005bf0
jmp 0x14000a994
mov byte [rax], 0
lea rcx, [0x140020180]
call fcn.14000d5d0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp fcn.140009570
Function at 0x14000b0b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r14, [0x140029120]
xor r12d, r12d
lea rdi, [0x140020280]
mov rsi, rcx
mov rbx, rdx
lea rbp, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13, qword [fcn.1400136a0]
jmp 0x14000b0fa
add r12, 1
jo 0x14000b1c8
cmp r12, rbx
jge 0x14000b150
test r12, r12
js 0x14000b1a8
mov r15, r12
mov ecx, 1
call r13
shl r15, 4
xor r8d, r8d
mov rdx, rbp
add r15, rsi
mov rcx, rax
movdqu xmm0, xmmword [r15]
movaps xmmword [rsp + 0x20], xmm0
call fcn.14000af60
mov rcx, rdi
call fcn.14000d5d0
cmp byte [rax], 0
je 0x14000b0f0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [fcn.1400136a0]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x1400212e1]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.140012f88
mov rcx, r14
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400098f0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400071b0

Function at 0x14000c280
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.1400136a0
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.1400136a0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000ceb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140029268]
test eax, eax
je 0x14000cf4a
lea rax, [0x140029240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140029270]
mov qword [rbp - 8], rax
jmp 0x14000cf2e
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 0x14000cf22
cmp qword [rbp - 0x10], 0
je 0x14000cf22
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 0x14000cee8
lea rax, [0x140029240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000cf4b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000d050
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 0x14000d078
mov eax, 0
jmp 0x14000d0c6
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 0x14000d0a1
mov eax, 0
jmp 0x14000d0c6
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 0x14000d0c1
mov eax, 0
jmp 0x14000d0c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000d0cc
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 0x14000d14a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000d141
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 0x14000d141
mov rax, qword [rbp - 8]
jmp 0x14000d15f
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 0x14000d114
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140014a94
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140014bde
mov rcx, qword [rbp + 0x10]
call fcn.14001906d
cmp eax, 1
jne 0x140014bd1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140014b87
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140014b9d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140014b83
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140014bbc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140014bdf
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140015dd5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x140015bfb]
mov rdx, rax
lea rax, [0x140029cf0]
mov rcx, rax
call fcn.140015206
mov eax, dword [0x1400203d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140015e28
mov rax, qword [rbp - 0x10]
jmp 0x140015f88
call fcn.140014970
mov qword [rbp - 0x10], rax
mov rax, qword [0x14002b050]
test rax, rax
je 0x140015e44
cmp qword [rbp - 0x10], 0
jne 0x140015e4e
mov eax, 0
jmp 0x140015f88
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.140014a94
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140015f29
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400203d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140015f84
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140016082
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140015dd5
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.140015c29
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400160ef
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400203d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140016233
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001618c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140016147
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001484c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400203d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140016233
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400161c6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140016233
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001484c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400203d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.1015e000
add rsp, 0x28
jmp 0x10007510
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013260
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 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400145b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400145d0
xor al, al
jmp 0x140014651
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400145e3
xor al, al
jmp 0x140014651
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 0x14001460d
xor al, al
jmp 0x140014651
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014621
xor al, al
jmp 0x140014651
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014633
xor al, al
jmp 0x140014651
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001464f
xor al, al
jmp 0x140014651
mov al, 1
add rsp, 0x38
ret
Function at 0x7ff8c49b1493
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x7ff8c4a32268]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, [0x7ff8c4a32e08]
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rsi
lea rcx, [0x7ff8c4a32e30]
call rsi
cmp dword [0x7ff8c4a32e00], 0
jne 0x7ff8c49b1644
mov dword [0x7ff8c4a32e00], 0
lea rcx, str.VK_LOADER_DEBUG
xor r13d, r13d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x7ff8c49b1524
mov esi, eax
mov ecx, eax
call fcn.7ff8c49f34e8
test rax, rax
je 0x7ff8c49b1521
mov r13, rax
lea rcx, str.VK_LOADER_DEBUG
mov rdx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x7ff8c49b1524
xor r13d, r13d
lea rdi, [0x7ff8c4a13e4e]
mov r15d, 0xffffffff
lea rbx, str.warn
mov r14b, 2
mov rsi, r13
test rsi, rsi
je 0x7ff8c49b163c
mov rcx, rsi
mov edx, 0x2c
call fcn.7ff8c49e3f00
mov r12, rax
test rax, rax
je 0x7ff8c49b1564
mov rbp, r12
sub rbp, rsi
jmp 0x7ff8c49b156f
mov rcx, rsi
call fcn.7ff8c49f5170
mov rbp, rax
test rbp, rbp
je 0x7ff8c49b162e
mov rcx, rsi
mov rdx, rdi
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
je 0x7ff8c49b15f8
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
je 0x7ff8c49b1608
mov rcx, rsi
lea rdx, str.info
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
je 0x7ff8c49b1618
mov rcx, rsi
lea rdx, str.perf
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
je 0x7ff8c49b161c
mov rcx, rsi
lea rdx, str.error
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
je 0x7ff8c49b1620
mov rcx, rsi
lea rdx, str.debug
mov r8, rbp
call fcn.7ff8c49f53e0
test eax, eax
jne 0x7ff8c49b162e
mov al, 0x10
jmp 0x7ff8c49b1622
mov dword [0x7ff8c4a32e00], r15d
mov dword [0x7ff8c4a32e04], r15d
jmp 0x7ff8c49b162e
or byte [0x7ff8c4a32e00], r14b
or byte [0x7ff8c4a32e04], r14b
jmp 0x7ff8c49b162e
mov al, 1
jmp 0x7ff8c49b1622
mov al, 4
jmp 0x7ff8c49b1622
mov al, 8
or byte [0x7ff8c4a32e00], al
or byte [0x7ff8c4a32e04], al
lea rsi, [r12 + 1]
test r12, r12
jne 0x7ff8c49b153e
mov rcx, r13
call fcn.7ff8c49f29a0
movups xmm0, xmmword [fcn.7ff8c49ae7e5]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call fcn.7ff8c49a1085
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.7ff8c49e1750
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x7ff8c49b286c
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x10
lea rbp, [rsp + 0x10]
mov r14, rcx
mov rax, qword [0x7ff8c4a32268]
xor rax, rbp
mov qword [rbp - 8], rax
test r8, r8
je 0x7ff8c49b298b
mov rsi, r8
mov r15, rdx
mov qword [r8], 0
sub rsp, 0x20
lea rdx, [0x7ff8c4a1436d]
mov rcx, r15
call fcn.7ff8c49f22a8
add rsp, 0x20
test rax, rax
je 0x7ff8c49b29a9
mov rdi, rax
sub rsp, 0x20
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.7ff8c49f29b4
mov rcx, rdi
call fcn.7ff8c49f2bc4
add rsp, 0x20
movsxd rbx, eax
sub rsp, 0x20
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.7ff8c49f29b4
add rsp, 0x20
lea rax, [rbx + 0x10]
and rax, 0xfffffffffffffff0
call fcn.7ff8c49e16e0
sub rsp, rax
mov r12, rsp
sub rsp, 0x20
mov edx, 1
mov rcx, r12
mov r8, rbx
mov r9, rdi
call fcn.7ff8c49f26f0
add rsp, 0x20
cmp rax, rbx
jne 0x7ff8c49b29d1
mov byte [r12 + rbx], 0
test ebx, ebx
je 0x7ff8c49b29f2
sub rsp, 0x20
mov rcx, r12
call fcn.7ff8c49a172e
add rsp, 0x20
mov qword [rsi], rax
xor esi, esi
test rax, rax
jne 0x7ff8c49b29f7
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_parse_JSON_file__s__this_is_usually_because_something_ran_out_of_memory.
mov rcx, r14
mov edx, 8
call fcn.7ff8c49a4e82
add rsp, 0x30
mov esi, 0xffffffff
jmp 0x7ff8c49b29f7
sub rsp, 0x20
lea r9, str.loader_get_json:_Received_invalid_JSON_file
mov rcx, r14
mov edx, 8
call fcn.7ff8c49a4e82
add rsp, 0x20
jmp 0x7ff8c49b29ca
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_open_JSON_file__s
mov rcx, r14
mov edx, 8
call fcn.7ff8c49a4e82
add rsp, 0x30
mov esi, 0xfffffffd
jmp 0x7ff8c49b2a07
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_read_JSON_file__s.
mov rcx, r14
mov edx, 8
call fcn.7ff8c49a4e82
add rsp, 0x30
mov esi, 0xfffffffd
sub rsp, 0x20
mov rcx, rdi
call fcn.7ff8c49f1dbc
add rsp, 0x20
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.7ff8c49e1750
add rsp, 0x20
mov eax, esi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret