joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ddb0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002deb0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140030470
cmp esi, dword [rbx + 0x48]
jae 0x14002de30
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400304b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x14002debd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x14002debd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14002ddff
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002ddea
mov rcx, r13
call fcn.1400304b0
mov eax, 0xc
jmp 0x14002de1d

Function at 0x14002df40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002df68
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14002cfe0
test rax, rax
jne 0x14002df5a
add rsp, 0x28
ret

Function at 0x14002dfd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002dff8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14002cfe0
test rax, rax
jne 0x14002dfea
jmp 0x14002dfee

Function at 0x14002e110
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14007c238]
test eax, eax
jne 0x14002e128
xor eax, eax
add rsp, 0x28
ret
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e158
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002e11e
test byte [rax + 0x40], 3
je 0x14002e11e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14002e120
call fcn.14002cfe0
test rax, rax
jne 0x14002e13e
jmp 0x14002e11e
Function at 0x14002e170
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e1b0
test ebx, ebx
jle 0x14002e1a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14002cfe0
test rax, rax
jne 0x14002e18d
add rsp, 0x20
pop rbx
ret

Function at 0x14002e2a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e318
test byte [rbx + 0x40], 0xc
jne 0x14002e2cf
mov eax, dword [0x14007c238]
test eax, eax
jne 0x14002e2e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002c1b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002e303
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002e303
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002e32c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002c480
call fcn.14002cfe0
mov rbx, rax
test rax, rax
jne 0x14002e2bf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002e34a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002c480
call fcn.14002e1c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002e3d0
call fcn.14002f540
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002e408
call fcn.14002cf30
mov ecx, dword [0x140061618]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e460
test esi, esi
je 0x14002e3e6
call fcn.14002e2a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e440
mov edx, edi
call fcn.14002f610
call fcn.14002e2a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e450
call fcn.14002e2a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002e2a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cf30
mov ecx, dword [0x140061618]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002e3a5
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002e3a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002e3be
call fcn.14002cfe0
jmp 0x14002e3e6
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002e3a1
Function at 0x14002e360
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e318
test byte [rbx + 0x40], 0xc
jne 0x14002e2cf
mov eax, dword [0x14007c238]
test eax, eax
jne 0x14002e2e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002c1b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002e303
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002e303
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002e32c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002c480
call fcn.14002cfe0
mov rbx, rax
test rax, rax
jne 0x14002e2bf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002e34a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002c480
call fcn.14002e1c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002e3d0
call fcn.14002f540
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002e408
call fcn.14002cf30
mov ecx, dword [0x140061618]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e460
test esi, esi
je 0x14002e3e6
call fcn.14002e2a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e440
mov edx, edi
call fcn.14002f610
call fcn.14002e2a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e450
call fcn.14002e2a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002e2a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002cf30
mov ecx, dword [0x140061618]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002e3a5
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002e3a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002e3be
call fcn.14002cfe0
jmp 0x14002e3e6
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002e3a1

Function at 0x14002e470
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14002cf30
mov ecx, dword [0x140061618]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002e4e0
test esi, esi
je 0x14002e4c0
call fcn.14002e2a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002e4f0
mov edx, esi
call fcn.14002f610
call fcn.14002e2a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002e2a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002e2a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002cfe0
mov rbx, rax
jmp 0x14002e491
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002e4aa
Function at 0x14002f830
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140061628]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140030470
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x14002f879
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x14002f879
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.1400304b0
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.14002bc90
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.14002c480
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.14002c480

Function at 0x14002fcc0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14002fb00
test eax, eax
je 0x14002fce8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14002c1b0
test eax, eax
jne 0x14002fd11
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x14002fd28
mov rcx, rdi
call fcn.14002c480
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14002f830
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.14002c1b0
mov ebp, eax
test eax, eax
je 0x14002fd50
mov rcx, rdi
call fcn.14002c480
mov edx, ebp
jmp 0x14002fd13
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.14002c480
mov rcx, rdi
mov esi, eax
call fcn.14002c480
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x14002fd13

Function at 0x14002fff0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14002f7c0
test eax, eax
jne 0x140030070
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140030040
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.14002c480
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.14002c480
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14002f830
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14002c1b0
mov edx, eax
test eax, eax
jne 0x14003002d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140030080
mov rcx, rdi
call fcn.14002c480
mov edx, eax
jmp 0x14003002d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140030de0
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.14002c480
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14003002d
Function at 0x140001088
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14000d958]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor eax, eax
mov rbx, r8
mov rdi, rcx
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
xor edx, edx
lea esi, [rax + 0x68]
mov r8d, esi
movups xmmword [rsp + 0x50], xmm0
call fcn.1400097c0
or dword [rbp - 0x54], 0x101
mov ecx, 0xfffffff5
mov dword [rsp + 0x70], esi
xor esi, esi
mov word [rbp - 0x50], si
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov ecx, 0xfffffff4
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
mov ecx, 0xfffffff6
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
lea r9, str.WsTraceUtil.exe
mov qword [rsp + 0x20], rbx
lea r8, str._s__s
mov qword [rbp - 0x40], rax
mov edx, 0x100
lea rcx, [rbp - 0x20]
call fcn.140001008
test eax, eax
js 0x1400011d7
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, str.WsTraceUtil.exe
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x1400011bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400011d7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400019f0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000179c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000d958]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400017dc
mov eax, 0xff
jmp 0x14000197f
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x14000e5c0], r8d
mov dword [0x14000e5c8], ecx
mov dword [0x14000e5cc], edx
mov dword [0x14000e5d0], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14000e5c4], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001872
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001872
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140001872
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x140001874
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x140001874
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140002cb8
test eax, eax
jne 0x1400018aa
cmp dword [0x14000e028], 2
je 0x140001896
call fcn.140002aa0
mov ecx, 0x1c
call fcn.140002aec
mov ecx, 0xff
call fcn.1400026d0
call fcn.1400025b0
test eax, eax
jne 0x1400018d6
cmp dword [0x14000e028], 2
je 0x1400018c1
call fcn.140002aa0
mov ecx, 0x10
call fcn.140002aec
mov ecx, 0xff
call fcn.1400026d0
nop
call fcn.140002d2c
test eax, eax
jns 0x1400018e9
mov ecx, 0x1b
call fcn.1400026ec
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x140010130], rax
call fcn.14000352c
mov qword [0x14000e020], rax
call fcn.140002fbc
test eax, eax
jns 0x140001914
mov ecx, 8
call fcn.1400026ec
call fcn.1400032f0
test eax, eax
jns 0x140001927
mov ecx, 9
call fcn.1400026ec
mov ecx, edi
call fcn.140002750
test eax, eax
je 0x140001939
mov ecx, eax
call fcn.1400026ec
mov r8, qword [0x14000e5b0]
mov qword [0x14000e5e0], r8
mov rdx, qword [0x14000e5a8]
mov ecx, dword [0x14000e5a0]
call fcn.1400013e8
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400019a0
call fcn.14000273c
jmp 0x14000197d
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400019f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140002a90
nop
mov ecx, eax
call fcn.140002660
nop
int3
sub rsp, 0x28
call fcn.14016b000
add rsp, 0x28
jmp 0x14000179c
Function at 0x140002aec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, [0x14000a010]
mov edi, ecx
mov rax, r14
xor ebx, ebx
cmp edi, dword [rax]
je 0x140002b1e
inc ebx
add rax, 0x10
cmp ebx, 0x17
jb 0x140002b0f
cmp ebx, 0x17
jae 0x140002c9a
mov ebp, 3
mov ecx, ebp
call fcn.1400064e4
cmp eax, 1
je 0x140002c58
mov ecx, ebp
call fcn.1400064e4
test eax, eax
jne 0x140002b54
cmp dword [0x14000d900], 1
je 0x140002c58
cmp edi, 0xfc
je 0x140002c9a
mov ebp, 0x314
lea rdi, [0x14000e5f0]
mov edx, ebp
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
call fcn.1400063d8
test eax, eax
je 0x140002b96
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004684
mov r8d, 0x104
mov byte [0x14000e70d], 0
lea rdx, [0x14000e609]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140002be7
lea r8, str._program_name_unknown_
mov edx, 0x2fb
lea rcx, [0x14000e609]
call fcn.1400063d8
test eax, eax
je 0x140002be7
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004684
lea r8, [0x14000ac70]
mov rdx, rbp
mov rcx, rdi
call fcn.140006450
test eax, eax
je 0x140002c12
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004684
movsxd r8, ebx
mov rdx, rbp
add r8, r8
mov rcx, rdi
mov r8, qword [r14 + r8*8 + 8]
call fcn.140006450
test eax, eax
je 0x140002c41
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140004684
mov r8d, 0x12010
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov rcx, rdi
call fcn.14000653c
jmp 0x140002c9a
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002c9a
movsxd rcx, ebx
add rcx, rcx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rcx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002c7c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140004684
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x14000d958]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140004701
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140004721
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400019f0
add rsp, 0x540
pop rbx
ret
Function at 0x14000653c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14000d958]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r12, rdx
mov r15, rcx
call fcn.1400022bc
xor esi, esi
mov rbx, rax
cmp qword [0x14000edc8], rsi
jne 0x14000664f
xor r8d, r8d
lea rcx, str.USER32.DLL
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000673a
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000673a
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov qword [0x14000edc8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov qword [0x14000edd0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov qword [0x14000edd8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000ede8], rax
mov rcx, rax
test rax, rax
je 0x140006646
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000ede0], rax
jmp 0x140006656
mov rax, qword [0x14000ede0]
jmp 0x14000665d
mov rax, qword [0x14000ede0]
mov rcx, qword [0x14000ede8]
cmp rax, rbx
je 0x1400066cf
cmp rcx, rbx
je 0x1400066cf
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000ede8]
mov rdi, rax
call sub.KERNEL32.dll_DecodePointer
mov r14, rax
test rdi, rdi
je 0x1400066cf
test rax, rax
je 0x1400066cf
mov rax, rdi
call qword [0x14000a500]
test rax, rax
je 0x1400066c9
mov r9d, 0xc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x38]
mov rcx, rax
mov rax, r14
lea edx, [r9 - 0xb]
call qword [0x14000a500]
test eax, eax
je 0x1400066c9
test byte [rsp + 0x40], 1
jne 0x1400066cf
bts ebp, 0x15
jmp 0x140006715
mov rcx, qword [0x14000edd0]
cmp rcx, rbx
je 0x140006715
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006715
call qword [0x14000a500]
mov rsi, rax
test rax, rax
je 0x140006715
mov rcx, qword [0x14000edd8]
cmp rcx, rbx
je 0x140006715
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140006715
mov rcx, rsi
call qword [0x14000a500]
mov rsi, rax
mov rcx, qword [0x14000edc8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000673a
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [0x14000a500]
jmp 0x14000673c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400019f0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009068
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14000d958]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000916d
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1400090f6
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea ecx, [rdi - 1]
add ecx, ebx
lea edx, [rdi - 1]
cmp ecx, ebx
jb 0x14000916d
mov eax, edx
not eax
and ecx, eax
je 0x140009113
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14000916d
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovae eax, ecx
and rbx, r14
mov esi, eax
lea rax, [r15 + rdi]
sub rbx, rsi
cmp rbx, rax
jb 0x14000916d
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000916d
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000916d
mov eax, 1
jmp 0x14000916f
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.1400019f0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret