joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001266c
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
lea rdx, [rax + 0x20]
lea rcx, [0x140012768]
mov rbx, r8
mov byte [rax + 0x20], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea rdx, str._s_s.dmp
lea rcx, [rsp + 0x20]
add rax, 0x18
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x20], rax
call fcn.14000e514
lea rcx, [rsp + 0x20]
call fcn.14000dec4
mov dl, byte [rdi]
mov cl, byte [rsp + 0x58]
lea r8, [rsp + 0x20]
xor r9d, r9d
call fcn.140013c58
cmp byte [rdi + 1], 0
je 0x140012735
lea rdx, str._s_s_full.dmp
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rsi
call fcn.14000e514
lea rcx, [rsp + 0x20]
call fcn.14000dec4
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400055e0
test al, al
je 0x14001273a
mov dl, byte [rdi]
mov cl, byte [rsp + 0x58]
lea r8, [rsp + 0x20]
xor r9d, r9d
call fcn.140013c58
jmp 0x14001273a
mov rbx, qword [rsp + 0x20]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012756
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140012ff0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x60], 0
mov rbp, rdx
mov sil, cl
call fcn.140014ff8
test sil, sil
mov rax, qword [section..data]
lea rcx, section..data
je 0x14001307d
mov ebx, 1
call qword [rax + 0x18]
lea rdx, str.GoogleCrashReports
add rax, 0x18
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rax
call fcn.140002f7c
lea r9, [rsp + 0x20]
lea ecx, [rbx + 0x25]
mov r8b, bl
mov rdx, rax
call fcn.140014e78
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140013076
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x20]
jmp 0x1400130d9
mov ebx, 2
call qword [rax + 0x18]
lea rdx, str.GoogleCrashReports
add rax, 0x18
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x78], rax
call fcn.140002f7c
lea r9, [rsp + 0x78]
lea ecx, [rbx + 0x1a]
mov r8b, 1
mov rdx, rax
call fcn.140014e78
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400130d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140002eec
test bl, 2
je 0x14001310a
mov rdx, qword [rsp + 0x78]
and ebx, 0xfffffffd
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001310a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x14001312e
mov rdx, qword [rsp + 0x20]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001312e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x14001315c
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
je 0x140013167
lea rcx, [rsp + 0x70]
call fcn.140012dbc
test eax, eax
jns 0x14001315c
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140013161
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jne 0x1400131c9
lea rcx, [rsp + 0x38]
call fcn.14000da10
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.140003024
mov rdx, qword [rsp + 0x38]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001319d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jne 0x1400131c9
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400131c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 0x8004fffc
jmp 0x1400131f7
test rbp, rbp
je 0x1400131db
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.140003024
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400131f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400153dc
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14003e090]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x30], bx
call fcn.14001c940
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea ecx, [rbx + 3]
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x140015470
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str..google.com
mov edi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jg 0x140015470
lea rdx, str..google.com
lea rcx, [rsp + 0x30]
mov r9d, eax
mov r8d, edi
call fcn.14000d578
cmp al, bl
je 0x140015470
mov al, 1
jmp 0x1400154b5
lea r8, [rsp + 0x28]
mov edx, 0x64
xor ecx, ecx
mov qword [rsp + 0x28], rbx
call sub.NETAPI32.dll_NetWkstaGetInfo
mov rdi, qword [rsp + 0x28]
cmp eax, ebx
jne 0x1400154ab
cmp qword [rdi + 0x10], rbx
je 0x1400154ab
mov rcx, qword [rdi + 0x10]
lea rdx, str.google
call fcn.1400254e0
cmp eax, ebx
jne 0x1400154ab
mov bl, 1
mov rcx, rdi
call sub.NETAPI32.dll_NetApiBufferFree
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001cdd0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x1400154d8
Capabilities:
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x20
test dl, dl
mov rbx, rcx
je 0x1400154ed
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x1400154f3
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov cx, 0x409
movzx r11d, ax
xor edx, edx
movzx eax, cx
lea r9, [0x140035d00]
cmp r11w, ax
je 0x140015526
add rdx, 1
mov rax, rdx
imul rax, rax, 0x1a
mov ax, word [rax + r9]
test ax, ax
jne 0x140015507
mov r11w, cx
xor edx, edx
xor r8d, r8d
cmp cx, r11w
je 0x140015552
add r8, 1
add edx, 1
mov rax, r8
imul rax, rax, 0x1a
movzx ecx, word [rax + r9]
test cx, cx
jne 0x14001552b
lea rdx, [0x140038ca8]
jmp 0x140015563
movsxd rdx, edx
lea rax, [0x140035d02]
imul rdx, rdx, 0x1a
add rdx, rax
mov rcx, rbx
call fcn.140002f7c
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140015dc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax - 0x30], 0
mov sil, cl
lea rcx, [rax - 0x48]
call fcn.140015684
test eax, eax
js 0x140016017
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140016017
mov rax, qword [rsp + 0x50]
sub rax, rdx
sar rax, 3
je 0x140016017
call fcn.140014ff8
lea rax, str.HKCUSoftwareGoogleUpdate_
lea rdx, str.HKLMSoftwareGoogleUpdate_
test sil, sil
lea rcx, [rsp + 0x98]
cmove rdx, rax
call fcn.140002f7c
lea rdx, [0x140038d20]
lea rcx, [rsp + 0xa0]
call fcn.140002f7c
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa8]
call fcn.140006b90
lea rcx, [rsp + 0x98]
mov rdx, rax
call fcn.140003024
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
or r12d, 0xffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140015ea9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140015ecd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x98]
mov edx, 0x20019
mov rcx, rbx
call fcn.14000ccc8
test al, al
jne 0x140015f18
mov dl, 1
mov cl, sil
call fcn.140016034
mov edi, eax
lea rdx, [rbx - 0x18]
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140015fe9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140015fe9
and qword [rsp + 0x38], 0
lea r13, [0x140037450]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
mov qword [rsp + 0x30], r13
call fcn.14000c618
test eax, eax
mov edi, eax
jns 0x140015f74
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
call fcn.14000c424
lea rdx, [rbx - 0x18]
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140015fe9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140015fe9
xor edi, edi
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140015ff7
mov rax, qword [rsp + 0x50]
sub rax, rdx
sar rax, 3
cmp rdi, rax
jae 0x140015ff7
mov rdx, qword [rdx + rdi*8]
mov rcx, qword [rsp + 0x38]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140015fbc
add rdi, 1
jmp 0x140015f76
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
call fcn.14000c424
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140015fe7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.140005878
mov eax, edi
jmp 0x140016026
xor edx, edx
mov cl, sil
call fcn.140016034
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov edi, eax
call fcn.14000c424
jmp 0x140015ef2
lea rcx, [rsp + 0x40]
call fcn.140005878
mov eax, 1
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016034
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rsi
push rdi
push r13
sub rsp, 0x60
and qword [r11 - 0x28], 0
mov dil, dl
lea rax, [0x140037fb8]
lea rdx, [r11 - 0x30]
mov sil, cl
mov qword [r11 - 0x30], rax
call fcn.140015a68
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call qword [rax + 8]
and qword [rsp + 0x40], 0
lea r13, [0x140037450]
mov qword [rsp + 0x38], r13
call fcn.140014ff8
lea rax, str.HKCUSoftwareGoogleUpdate_
lea rdx, str.HKLMSoftwareGoogleUpdate_
test sil, sil
lea rcx, [rsp + 0x38]
cmove rdx, rax
mov r8d, 0xf003f
call fcn.14000c618
and qword [rsp + 0x90], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x80], 0
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x80]
lea rdx, [0x140038d20]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14000c848
test eax, eax
jns 0x1400160fb
mov rcx, qword [rsp + 0x90]
jmp 0x140016140
mov eax, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
mov r9, qword [rsp + 0x30]
lea rdx, str.old_uid
lea rcx, [rsp + 0x38]
mov r8, rbx
mov dword [rsp + 0x20], eax
call fcn.14000cc80
test eax, eax
js 0x14001613d
mov rcx, qword [rsp + 0x40]
lea rdx, [0x140038d20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, rbx
call fcn.14001bc80
test dil, dil
je 0x1400161e5
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea r8, [rsp + 0x98]
lea rdx, str.old_uid
add rax, 0x18
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x98], rax
call fcn.14000ca2c
lea rcx, str.__legacy
call fcn.14001be70
lea rdx, str.__legacy
lea rcx, [rsp + 0x98]
mov r8d, eax
call fcn.140003ba4
mov rbx, qword [rsp + 0x98]
lea rdx, str.old_uid
lea rcx, [rsp + 0x38]
mov r8, rbx
mov r9d, 1
call fcn.14000cc10
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400161e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov cl, sil
call fcn.140016228
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], r13
mov ebx, eax
call fcn.14000c424
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call qword [rdx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000c28c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop r13
pop rdi
pop rsi
ret
Function at 0x140016638
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test cl, cl
mov bl, cl
je 0x140016655
call fcn.14000e004
test al, al
je 0x14001671b
and qword [rsp + 0x28], 0
lea rax, [0x140037fb8]
lea rdx, [rsp + 0x20]
mov cl, bl
mov qword [rsp + 0x20], rax
call fcn.140015a68
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 8]
and qword [rsp + 0x38], 0
lea rdi, [0x140037450]
mov qword [rsp + 0x30], rdi
call fcn.140014ff8
lea rax, str.HKCUSoftwareGoogleUpdate_
lea rdx, str.HKLMSoftwareGoogleUpdate_
test bl, bl
lea rcx, [rsp + 0x30]
cmove rdx, rax
mov r8d, 0xf003f
call fcn.14000c618
test eax, eax
js 0x1400166f5
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140038d20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.old_uid
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140038d20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.14000c424
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 0x10]
lea rcx, [rsp + 0x20]
call fcn.14000c28c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001b52c
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov ebx, dword [rcx + 0x40]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xe8], ebx
xor ebx, ebx
movdqu xmm0, xmmword [rdi + 0x30]
mov dword [rsp + 0xe4], eax
lea rax, [rdi + 0x64]
mov qword [rsp + 0x30], rbx
movdqu xmmword [rsp + 0x108], xmm0
mov qword [rsp + 0xf0], rax
lea rax, [rdi + 0x68]
lea r9, [rsp + 0x40]
mov qword [rsp + 0xf8], rax
lea rax, [rdi + 0x70]
lea r8d, [rbx + 0x50]
mov qword [rsp + 0x100], rax
xor eax, eax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0xe0], 1
mov dword [rsp + 0x20], 0x50
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rbx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x140], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
cmp eax, ebx
je 0x14001b71a
cmp dword [rsp + 0x40], 2
jne 0x14001b71a
cmp dword [rsp + 0x44], ebx
je 0x14001b71a
cmp qword [rsp + 0x78], rbx
je 0x14001b71a
cmp qword [rsp + 0x80], rbx
je 0x14001b71a
cmp qword [rsp + 0x88], rbx
je 0x14001b71a
xor eax, eax
lea r9, [rsp + 0x140]
lea r8d, [rbx + 0x50]
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov dword [rsp + 0x94], ebx
mov dword [rsp + 0x98], ebx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], rbx
mov dword [rsp + 0x90], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x14001b71a
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x48], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rdi + 0x50], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rdi + 0x58], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x60], ecx
jmp 0x14001b71c
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001b9a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14003e090]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14001c940
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.14001c940
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14001ba33
cmp dword [rsp + 0x24], 5
jb 0x14001ba4d
jmp 0x14001ba49
cmp dword [rsp + 0x30], esi
jne 0x14001ba4d
cmp dword [rsp + 0x24], 4
ja 0x14001ba49
jne 0x14001ba4d
cmp dword [rsp + 0x28], 0
jbe 0x14001ba4d
mov byte [rbx + 0x18], sil
lea rax, [0x140033970]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14001b7e0
movzx ecx, byte [0x1400416b0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1400416b0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001cdd0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001bfd0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x1400402c0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14001d3f0
test rax, rax
je 0x14001c024
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14001c0b9
mov ecx, 2
call fcn.14001df10
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001c940
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001c0a5
test ebx, ebx
jne 0x14001c0a5
lea ecx, [rax + 2]
call fcn.14001df10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001c0e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x1400402c0]
call fcn.14001d3f0
test rax, rax
je 0x14001c115
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.14001df10
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001c940
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001c19e
test ebx, ebx
jne 0x14001c19e
lea ecx, [rax + 2]
call fcn.14001df10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x14001cf00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14003e0b0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001cf3e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001cf20
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14001d125
mov ecx, 3
call fcn.1400203a0
cmp eax, 1
je 0x14001d0dc
mov ecx, 3
call fcn.1400203a0
test eax, eax
jne 0x14001cf75
cmp dword [0x14003e08c], 1
je 0x14001d0dc
cmp edi, 0xfc
je 0x14001d125
mov qword [rsp + 0x50], rbp
lea rbp, [0x140040300]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400202f0
test eax, eax
je 0x14001cfb9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001bef0
lea rdx, [0x140040319]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14004041d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001d009
lea r8, str._program_name_unknown_
lea rcx, [0x140040319]
mov edx, 0x2fb
call fcn.1400202f0
test eax, eax
je 0x14001d009
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001bef0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140040319]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001d058
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140040614]
lea r9d, [rax + 3]
lea r8, [0x140033f94]
sub rdx, rcx
call fcn.1400201d0
test eax, eax
je 0x14001d058
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001bef0
lea r8, [0x140033f90]
mov edx, 0x314
mov rcx, rbp
call fcn.140020110
test eax, eax
je 0x14001d084
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001bef0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140020110
test eax, eax
je 0x14001d0b4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001bef0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14001feb0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001d125
cmp rax, 0xffffffffffffffff
je 0x14001d125
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14001d140
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400203a0
cmp eax, 1
je 0x14001d172
mov ecx, 3
call fcn.1400203a0
test eax, eax
jne 0x14001d226
cmp dword [0x14003e08c], 1
jne 0x14001d226
mov qword [rsp + 0x48], rbx
lea rbx, [0x14003e0b0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001d19e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14001d188
jmp 0x14001d212
cmp edi, 0x17
jae 0x14001d212
mov ecx, 3
call fcn.1400203a0
cmp eax, 1
je 0x14001d1c9
mov ecx, 3
call fcn.1400203a0
test eax, eax
jne 0x14001d212
cmp dword [0x14003e08c], 1
jne 0x14001d212
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001d212
cmp rax, 0xffffffffffffffff
je 0x14001d212
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14001cf00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret