joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004a00
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14002f7a0]
mov rdi, rdx
mov rsi, rcx
test rbx, rbx
jne 0x140004b0e
cmp dword [0x14002f740], ebx
jne 0x140004a79
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004a66
lea rcx, str.___.___
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, str.Unicows.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x14002f740], 1
mov qword [0x14002f738], rax
jmp 0x140004a80
mov rax, qword [0x14002f738]
mov dword [0x14002f740], 1
jmp 0x140004a80
mov rax, qword [0x14002f738]
test rax, rax
je 0x140004a9d
lea rdx, str.ActivateActCtx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
jne 0x140004af0
mov rax, qword [0x14002f748]
test rax, rax
jne 0x140004add
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004ac4
mov rcx, qword [0x1400227b0]
call qword [0x1400227a0]
jmp 0x140004ad1
mov rcx, qword [0x1400227b8]
call qword [0x1400227a8]
test rax, rax
je 0x140004af0
mov qword [0x14002f748], rax
lea rdx, str.ActivateActCtx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rbx, rbx
mov qword [0x14002f7a0], rbx
jne 0x140004b0e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rcx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax

Function at 0x140004b30
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14002f7a8]
mov rdi, rdx
mov esi, ecx
test rbx, rbx
jne 0x140004c3d
cmp dword [0x14002f740], ebx
jne 0x140004ba8
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004b95
lea rcx, str.___.___
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, str.Unicows.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x14002f740], 1
mov qword [0x14002f738], rax
jmp 0x140004baf
mov rax, qword [0x14002f738]
mov dword [0x14002f740], 1
jmp 0x140004baf
mov rax, qword [0x14002f738]
test rax, rax
je 0x140004bcc
lea rdx, str.DeactivateActCtx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
jne 0x140004c1f
mov rax, qword [0x14002f748]
test rax, rax
jne 0x140004c0c
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004bf3
mov rcx, qword [0x1400227b0]
call qword [0x1400227a0]
jmp 0x140004c00
mov rcx, qword [0x1400227b8]
call qword [0x1400227a8]
test rax, rax
je 0x140004c1f
mov qword [0x14002f748], rax
lea rdx, str.DeactivateActCtx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rbx, rbx
mov qword [0x14002f7a8], rbx
jne 0x140004c3d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov ecx, esi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x140004c60
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rbx, qword [0x14002f7b0]
mov rdi, r9
mov esi, r8d
test rbx, rbx
mov rbp, rdx
mov r12d, ecx
jne 0x140004d71
cmp dword [0x14002f740], ebx
jne 0x140004cea
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004cd7
lea rcx, str.___.___
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, str.Unicows.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x14002f740], 1
mov qword [0x14002f738], rax
jmp 0x140004cf1
mov rax, qword [0x14002f738]
mov dword [0x14002f740], 1
jmp 0x140004cf1
mov rax, qword [0x14002f738]
test rax, rax
je 0x140004d0e
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
jne 0x140004d61
mov rax, qword [0x14002f748]
test rax, rax
jne 0x140004d4e
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004d35
mov rcx, qword [0x1400227b0]
call qword [0x1400227a0]
jmp 0x140004d42
mov rcx, qword [0x1400227b8]
call qword [0x1400227a8]
test rax, rax
je 0x140004d61
mov qword [0x14002f748], rax
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rbx, rbx
mov qword [0x14002f7b0], rbx
jne 0x140004d71
xor eax, eax
jmp 0x140004d89
mov rax, qword [rsp + 0x60]
mov r9, rdi
mov r8d, esi
mov rdx, rbp
mov ecx, r12d
mov qword [rsp + 0x20], rax
call rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140004db0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x40
mov rbx, qword [0x14002f7b8]
mov edi, r9d
mov rsi, r8
test rbx, rbx
mov rbp, rdx
mov r12d, ecx
jne 0x140004ec1
cmp dword [0x14002f740], ebx
jne 0x140004e3a
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004e27
lea rcx, str.___.___
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, str.Unicows.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x14002f740], 1
mov qword [0x14002f738], rax
jmp 0x140004e41
mov rax, qword [0x14002f738]
mov dword [0x14002f740], 1
jmp 0x140004e41
mov rax, qword [0x14002f738]
test rax, rax
je 0x140004e5e
lea rdx, str.QueryActCtxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
jne 0x140004eb1
mov rax, qword [0x14002f748]
test rax, rax
jne 0x140004e9e
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jae 0x140004e85
mov rcx, qword [0x1400227b0]
call qword [0x1400227a0]
jmp 0x140004e92
mov rcx, qword [0x1400227b8]
call qword [0x1400227a8]
test rax, rax
je 0x140004eb1
mov qword [0x14002f748], rax
lea rdx, str.QueryActCtxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rbx, rbx
mov qword [0x14002f7b8], rbx
jne 0x140004ec1
xor eax, eax
jmp 0x140004ef0
mov rax, qword [rsp + 0x80]
mov r9d, edi
mov r8, rsi
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov ecx, r12d
mov qword [rsp + 0x20], rax
call rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x140005220
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x14002ddc8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140005398
mov ebx, ebp
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000529f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
test ebx, ebx
jne 0x140005398
mov dword [rsp + 0x48], 0x100
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000535c
nop
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140005220
mov ebx, eax
test eax, eax
jne 0x140005343
mov dword [rsp + 0x48], 0x100
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400052f0
jmp 0x14000535c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005358
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov eax, ebx
jmp 0x1400053af
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005371
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005394
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov eax, ebx
jmp 0x1400053af
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400053ad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400127e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400058b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov r12, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x58], rbx
mov r9d, dword [0x14002f700]
test r9d, r9d
jne 0x140005954
mov eax, dword [0x14002f708]
test eax, eax
je 0x14000590a
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r9d, dword [0x14002f700]
mov eax, dword [0x14002f708]
test r9d, r9d
jne 0x140005954
test eax, eax
jne 0x14000591c
call fcn.140004f10
test eax, eax
je 0x140005931
lea rdx, [rsp + 0x58]
mov rcx, qword [section..data]
call fcn.140004a00
test eax, eax
jne 0x140005954
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x14000594a
cmp eax, 0x7e
je 0x14000594a
cmp eax, 0x78
je 0x14000594a
xor eax, eax
jmp 0x1400059a4
mov dword [0x14002f700], 1
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14002f700], 0
jne 0x1400059a1
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x140005989
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call fcn.140004b30
test edi, edi
je 0x1400059a1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x140006f00
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov rdx, qword [0x14002f858]
mov qword [rsp + 0x58], rsi
mov rsi, qword [0x14002f850]
xor r12d, r12d
cmp rsi, rdx
mov rbp, rcx
mov ebx, 1
jae 0x140006fb4
mov qword [rsp + 0x60], rdi
test ebx, ebx
js 0x140006faf
mov rdi, qword [rsi]
test rdi, rdi
je 0x140006fa6
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], r12
test rax, rax
jne 0x140006f54
mov ebx, r12d
jmp 0x140006fa6
mov rcx, qword [rdi + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x1400227f0]
call rax
test eax, eax
mov ebx, eax
js 0x140006f8f
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
mov r9d, 1
lea rax, [rdi + 0x28]
lea r8d, [r9 + 3]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006f9f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [0x14002f858]
add rsi, 8
cmp rsi, rdx
jb 0x140006f35
mov rdi, qword [rsp + 0x60]
test ebx, ebx
mov rsi, qword [rsp + 0x58]
jne 0x14000701c
cmp byte [rbp + 0x60], r12b
je 0x140007020
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [rbp + 0x50], rax
je 0x14000700e
lea rax, [rsp + 0x50]
lea r8, [0x140004870]
mov r9, rbp
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140007020
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov byte [rbp + 0x60], r12b
mov eax, ebx
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
Function at 0x1400095e0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
call fcn.140006f00
test eax, eax
jne 0x14000865f
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140008663
nop
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140008630
jmp 0x140008663
test eax, eax
js 0x1400086c8
mov rdx, qword [0x14002f858]
mov qword [rsp + 0x60], rbx
mov rbx, qword [0x14002f850]
mov qword [rsp + 0x68], rdi
xor edi, edi
cmp rbx, rdx
jae 0x1400086ad
test edi, edi
jne 0x1400086ad
mov rax, qword [rbx]
test rax, rax
je 0x1400086a4
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x1400086a4
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x14002f858]
mov edi, eax
add rbx, 8
cmp rbx, rdx
jb 0x140008682
cmp byte [rsi + 0x60], 0
mov rbx, qword [rsp + 0x60]
je 0x1400086c1
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
push rbx
sub rsp, 0x30
cmp byte [0x14002f70c], 0
mov ebx, r9d
je 0x1400095fb
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x20]
lea rcx, [0x14002f7c0]
mov rdx, rax
call fcn.140009080
cmp al, 1
jne 0x140009634
lea rcx, [0x14002f7c0]
mov edx, ebx
add rsp, 0x30
pop rbx
jmp 0x140008600
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret

Function at 0x140009690
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov eax, dword [r9]
mov dword [r9], 0
mov rcx, qword [rcx]
add eax, eax
mov rbx, r8
mov rdi, r9
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000971d
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1400096e2
cmp eax, 2
jne 0x140009702
test rbx, rbx
mov ecx, dword [rsp + 0x68]
je 0x140009717
test ecx, ecx
je 0x140009712
test cl, 1
jne 0x140009702
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140009717
mov eax, 0xd
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov word [rbx], 0
shr ecx, 1
xor eax, eax
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400117f8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002ddc8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140012af0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140003000]
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.140012af0
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 0x14001188b
cmp dword [rsp + 0x24], 5
jb 0x1400118a5
jmp 0x1400118a1
cmp dword [rsp + 0x30], esi
jne 0x1400118a5
cmp dword [rsp + 0x24], 4
ja 0x1400118a1
jne 0x1400118a5
cmp dword [rsp + 0x28], 0
jbe 0x1400118a5
mov byte [rbx + 0x18], sil
lea rax, [0x1400241f0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400041d0
movzx ecx, byte [0x14002f70c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14002f70c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400127e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140013390
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x14002ddc8]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400134fc
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.140013d50
test eax, eax
je 0x14001342a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400145e0
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140013472
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001346f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001346f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14001346f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140013497
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400134fc
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400134fc
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400134fc
mov eax, r15d
jmp 0x1400134fe
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.1400127e0
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400140b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14002de50]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400140ee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400140d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400142d5
mov ecx, 3
call fcn.14001ba80
cmp eax, 1
je 0x14001428c
mov ecx, 3
call fcn.14001ba80
test eax, eax
jne 0x140014125
cmp dword [0x14002de40], 1
je 0x14001428c
cmp edi, 0xfc
je 0x1400142d5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14002f9e0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14001b9d0
test eax, eax
je 0x140014169
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400145e0
lea rdx, [0x14002f9f9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14002fafd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400141b9
lea r8, str._program_name_unknown_
lea rcx, [0x14002f9f9]
mov edx, 0x2fb
call fcn.14001b9d0
test eax, eax
je 0x1400141b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400145e0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14002f9f9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140014208
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14002fcf4]
lea r9d, [rax + 3]
lea r8, [0x140024924]
sub rdx, rcx
call fcn.14001b8b0
test eax, eax
je 0x140014208
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400145e0
lea r8, [0x140024920]
mov edx, 0x314
mov rcx, rbp
call fcn.14001b7f0
test eax, eax
je 0x140014234
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400145e0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001b7f0
test eax, eax
je 0x140014264
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400145e0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14001b590
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 0x1400142d5
cmp rax, 0xffffffffffffffff
je 0x1400142d5
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 0x1400142f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14001ba80
cmp eax, 1
je 0x140014322
mov ecx, 3
call fcn.14001ba80
test eax, eax
jne 0x1400143d6
cmp dword [0x14002de40], 1
jne 0x1400143d6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14002de50]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001434e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140014338
jmp 0x1400143c2
cmp edi, 0x17
jae 0x1400143c2
mov ecx, 3
call fcn.14001ba80
cmp eax, 1
je 0x140014379
mov ecx, 3
call fcn.14001ba80
test eax, eax
jne 0x1400143c2
cmp dword [0x14002de40], 1
jne 0x1400143c2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400143c2
cmp rax, 0xffffffffffffffff
je 0x1400143c2
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.1400140b0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140014680
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 [0x14002fd10]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140014f80
test rax, rax
je 0x1400146d4
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 0x140014769
mov ecx, 2
call fcn.14001bae0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140012af0
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 0x140014755
test ebx, ebx
jne 0x140014755
lea ecx, [rax + 2]
call fcn.14001bae0
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