joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000107c
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea r9, [rbp + 0x18]
xor edx, edx
mov rdi, rcx
xor r8d, r8d
lea ecx, [rdx + 5]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rbp + 0x18]
xor ecx, ecx
mov r8d, 0x6d646572
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x1400010d2
lea r8, [0x1400018f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140001147
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
xorps xmm1, xmm1
mov rdx, rdi
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jns 0x14000111f
lea r8, [0x140001920]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x140001147
mov r8d, dword [rbp + 0x18]
xor r9d, r9d
mov rdx, rbx
lea ecx, [r9 + 5]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x140001175
lfence
mov edx, 0x6d646572
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov r8b, 1
lea rdx, [rbx + 0x38]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x14000117c
mov eax, dword [rbx]
add rbx, rax
cmp dword [rbx], 0
jne 0x14000115b
jmp 0x140001149
movups xmm0, xmmword [rbx + 0x38]
mov rax, qword [rbx + 0x50]
lea r9, [rbp - 0x10]
lea r8, [0x140001950]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [rbx + 0x50]
jmp 0x140001149
Function at 0x1400011b4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000127c
mov edx, eax
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x14000127c
lfence
mov r8d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r8d, r8d
je 0x140001261
mov eax, ecx
mov r10, rsi
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + r10]
sub edx, r9d
jne 0x14000124f
inc rax
test r9d, r9d
jne 0x14000123a
test edx, edx
je 0x14000125c
inc ecx
cmp ecx, r8d
jb 0x140001224
jmp 0x140001261
mov rbx, qword [r11 + rdi + 0x18]
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x14000127c
lfence
mov rax, rbx
jmp 0x14000127e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001370
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x1400013bc
test r8, r8
je 0x1400013bc
test rbx, rbx
je 0x1400013bc
and qword [rax + 0x10], 0
lea rdx, [rax - 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400013ce
lea r8, [0x1400019e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x68]
mov r9, rdi
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
sete al
jmp 0x1400013be
Function at 0x140001454
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, r9
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x1400014a4
test r8, r8
je 0x1400014a4
test r9, r9
je 0x1400014a4
and qword [rax - 0x18], 0
lea rdx, [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400014bb
lea r8, [0x140001a00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x30], rcx
mov r8, rbx
mov byte [rsp + 0x28], 0
mov rcx, rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
sete al
jmp 0x1400014a6
Function at 0x140003680
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
sub rsp, 0x460
mov qword [rax + 0x10], rdi
lea rdx, str._pid
mov rcx, r8
mov qword [rax + 0x18], r14
xor ebx, ebx
call fcn.14000ae30
test rax, rax
je 0x1400036b8
lea rcx, [rax + 5]
call fcn.1400142c8
mov ebx, eax
mov ecx, 0x78
call fcn.140001260
test rax, rax
je 0x1400036d6
mov edx, ebx
mov rcx, rax
call fcn.140001bb0
mov rbp, rax
jmp 0x1400036d8
xor ebp, ebp
test ebx, ebx
jne 0x1400036e5
lea rbx, str.SteamErrorReporter64_Running
jmp 0x14000370b
mov dword [rsp + 0x20], ebx
lea r9, str.SteamErrorReporter64_Running
lea rbx, [0x1400511f0]
mov edx, 0x40
mov rcx, rbx
lea r8, str._s__d
call fcn.140003910
xor r8d, r8d
mov r9, rbx
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, str.SteamErrorReporter_process_started_n
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbp
call fcn.140002850
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SteamErrorReporter_process_shutting_down_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x1fffc
call fcn.140001260
cmp qword [rbp + 0x48], 8
lea rcx, [rbp + 0x30]
mov rdi, rax
jb 0x140003766
mov rcx, qword [rcx]
mov r9d, 4
mov r8d, 0x1fffc
mov rdx, rdi
call qword [sym.imp.vstdlib_s64.dll_V_UTF16ToUTF8]
lea r8, [0x14003b860]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140007900
xor ecx, ecx
call fcn.140014388
lea rcx, [rsp + 0x30]
mov r14, rax
call fcn.140007c50
test al, al
je 0x14000388c
mov qword [rsp + 0x470], rsi
nop dword [rax]
nop word [rax + rax]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400037d0
lea rcx, [rsp + 0x30]
call fcn.140007d30
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400037f0
lea rax, [rbx + 2]
add rax, rcx
mov ecx, eax
mov ebx, eax
call fcn.140001260
lea rcx, [rsp + 0x30]
mov rsi, rax
call fcn.140007d30
mov qword [rsp + 0x28], rax
lea r8, str._s_c_s
mov r9, rdi
mov dword [rsp + 0x20], 0x5c
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.vstdlib_s64.dll_V_snprintf]
lea rcx, [rsp + 0x30]
call fcn.140007b10
test al, al
jne 0x14000386a
mov rcx, rsi
call fcn.140007d40
cmp r14, rax
jle 0x14000386a
mov rcx, r14
sub rcx, rax
cmp rcx, 0x93a80
jle 0x14000386a
mov rcx, rsi
call fcn.140007b20
mov rcx, rsi
call fcn.1400012b0
lea rcx, [rsp + 0x30]
call fcn.140007c50
test al, al
jne 0x1400037c0
mov rsi, qword [rsp + 0x470]
lea rcx, [rsp + 0x30]
call fcn.140007a60
mov rbx, qword [rbp + 0x18]
mov r14, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x478]
test rbx, rbx
je 0x1400038c4
mov rcx, rbx
call fcn.140003cf0
mov edx, 0x170
mov rcx, rbx
call fcn.1400012b0
mov rbx, qword [rbp + 0x20]
mov qword [rbp + 0x18], 0
test rbx, rbx
je 0x1400038ea
mov rcx, rbx
call fcn.140002210
mov edx, 0x30
mov rcx, rbx
call fcn.1400012b0
mov rbx, qword [rsp + 0x488]
xor eax, eax
mov qword [rbp + 0x20], rax
add rsp, 0x460
pop rbp
ret
Function at 0x140032b70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x1400501c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x140032d83
cmp byte [rcx + 0x71], 0
je 0x140032d83
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140032bb5
xor al, al
jmp 0x140032d70
xor ecx, ecx
mov qword [rsp + 0x90], rsi
mov edx, 0xf
mov byte [rbp - 0x30], 0
cmp rdx, 0x10
mov qword [rsp + 0x60], r14
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rdx
cmovae rax, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
xor r14d, r14d
mov qword [rsp + 0x88], rbx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x68]
lea rax, [rbp - 0x38]
cmp r9, 0x10
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
add r9, rdx
mov r10, qword [rcx]
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x140032c52
sub eax, 1
je 0x140032c56
mov r9, qword [rbp - 0x18]
sub eax, 2
je 0x140032d3f
xor bl, bl
jmp 0x140032d41
mov byte [rdi + 0x71], r14b
mov r9, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
cmp r9, 0x10
mov rbx, qword [rbp - 0x38]
cmovae rax, r10
sub rbx, rax
je 0x140032c9c
cmp r9, 0x10
lea rcx, [rbp - 0x30]
mov r9, qword [rdi + 0x80]
mov r8, rbx
cmovae rcx, r10
mov edx, 1
call fcn.140022cfc
mov r9, qword [rbp - 0x18]
cmp rbx, rax
jne 0x140032c4b
cmp byte [rdi + 0x71], r14b
je 0x140032d3f
test rbx, rbx
jne 0x140032c00
mov r8, qword [rbp - 0x20]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, 8
jbe 0x140032d94
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140032d87
cmp r9, rbx
jae 0x140032d21
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140032a50
mov r9, qword [rbp - 0x18]
test rbx, rbx
je 0x140032c00
mov rax, qword [rbp - 0x20]
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
mov qword [rcx + rax], rdx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
mov qword [rbp - 0x20], rbx
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x140032bf7
test rbx, rbx
jne 0x140032cf0
cmp r9, 0x10
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmovae rax, qword [rbp - 0x30]
mov byte [rax], r14b
jmp 0x140032bf7
mov bl, 1
cmp r9, 0x10
jb 0x140032d58
mov rdx, qword [rbp - 0x30]
lea r8, [r9 + 1]
lea rcx, [rbp - 0x30]
call fcn.140033cc0
mov rsi, qword [rsp + 0x90]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140008e40
add rsp, 0x68
pop rdi
pop rbp
ret
mov al, 1
jmp 0x140032d70
lea rcx, str.string_too_long
call fcn.1400087dc
int3
lea rcx, str.string_too_long
call fcn.1400087dc
int3
Function at 0x140017950
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x1ab6f0e5
jmp 0x140008c00
dec rcx
jmp 0x14000bb9e
jne 0x140008c00
jmp 0x14000bfb8
jmp 0x14000ccda
jmp 0x14000cd77
jmp 0x14000cdc8
jmp 0x14000cdfd
jmp 0x14000ce2e
jmp 0x14000ceaa
jmp 0x14000cedd
jmp 0x14000cf13
jmp 0x14000cf69
jmp 0x14000cfcb
jmp 0x14000d041
jmp 0x14000d089
jmp 0x14000d0c2
jmp 0x14000d100
jmp 0x14000d15d
jmp 0x14000d1d5
jmp 0x14000d204
jmp 0x14000d23c
jmp 0x14000d2bc
jmp 0x14000d2f9
xor rcx, rcx
nop
nop
nop
mov rdx, 0x8e88
nop
nop
nop
nop
nop
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
call 0x14000d326
pop rsi
add rsi, 0xe52
nop
nop
nop
nop
nop
mov rdi, rax
mov rcx, 0x8e88
rep movsb byte [rdi], byte [rsi]
nop
nop
jmp rax
sub rsp, 0x28
call fcn.14001caa0
add rsp, 0x28
xor rcx, rcx
jmp 0x140005b61

Function at 0x140018f60
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 [0x1400284c8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14001a230
test rax, rax
je 0x140018fb4
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 0x140019049
mov ecx, 2
call fcn.14001dd30
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001dd50
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 0x140019035
test ebx, ebx
jne 0x140019035
lea ecx, [rax + 2]
call fcn.14001dd30
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 0x14001b327
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140027c18]
jne 0x1400176aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400176a6
repz ret
ror rcx, 0x10
jmp 0x14001b280
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400285c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400286b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001b305
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400285c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001b327
mov rax, qword [rsp + 0x88]
mov qword [0x1400286b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140028658], rax
mov rax, qword [0x1400286b8]
mov qword [0x140028530], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140028640], rax
mov dword [0x140028520], 0xc0000409
mov dword [0x140028524], 1
mov rax, qword [0x140027c18]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140027c20]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400285b8], eax
mov ecx, 1
call fcn.14001dd30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400233d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400285b8], 0
jne 0x14001b3ae
mov ecx, 1
call fcn.14001dd30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001b870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140027c30]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001b8ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001b890
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14001ba95
mov ecx, 3
call fcn.140020600
cmp eax, 1
je 0x14001ba4c
mov ecx, 3
call fcn.140020600
test eax, eax
jne 0x14001b8e5
cmp dword [section..data], 1
je 0x14001ba4c
cmp edi, 0xfc
je 0x14001ba95
mov qword [rsp + 0x50], rbp
lea rbp, [0x140028b00]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14001f0a0
test eax, eax
je 0x14001b929
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018ec0
lea rdx, [0x140028b19]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140028c1d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001b979
lea r8, str._program_name_unknown_
lea rcx, [0x140028b19]
mov edx, 0x2fb
call fcn.14001f0a0
test eax, eax
je 0x14001b979
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018ec0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140028b19]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001b9c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140028e14]
lea r9d, [rax + 3]
lea r8, [0x1400239b4]
sub rdx, rcx
call fcn.14001ef80
test eax, eax
je 0x14001b9c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018ec0
lea r8, [0x1400239b0]
mov edx, 0x314
mov rcx, rbp
call fcn.14001eec0
test eax, eax
je 0x14001b9f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018ec0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001eec0
test eax, eax
je 0x14001ba24
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018ec0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400203a0
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 0x14001ba95
cmp rax, 0xffffffffffffffff
je 0x14001ba95
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 0x14001bab0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140020600
cmp eax, 1
je 0x14001bae2
mov ecx, 3
call fcn.140020600
test eax, eax
jne 0x14001bb96
cmp dword [section..data], 1
jne 0x14001bb96
mov qword [rsp + 0x48], rbx
lea rbx, [0x140027c30]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001bb0e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14001baf8
jmp 0x14001bb82
cmp edi, 0x17
jae 0x14001bb82
mov ecx, 3
call fcn.140020600
cmp eax, 1
je 0x14001bb39
mov ecx, 3
call fcn.140020600
test eax, eax
jne 0x14001bb82
cmp dword [section..data], 1
jne 0x14001bb82
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001bb82
cmp rax, 0xffffffffffffffff
je 0x14001bb82
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.14001b870
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14001c360
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14002902c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14001c3bc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001c39c
mov dword [0x14002902c], 1
jmp 0x14001c3cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001c3b6
mov dword [0x14002902c], 2
jmp 0x14001c439
mov eax, dword [0x14002902c]
cmp eax, 1
jne 0x14001c430
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001c40a
cmp word [rdi], bp
mov rax, rdi
je 0x14001c3e9
add rax, 2
cmp word [rax], bp
jne 0x14001c3d7
add rax, 2
cmp word [rax], bp
jne 0x14001c3d7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14001ccd0
test rax, rax
mov rbx, rax
jne 0x14001c411
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001c52b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14001e8a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001c52b
cmp eax, 2
je 0x14001c439
test eax, eax
jne 0x14001c40a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001c40a
cmp byte [rax], bpl
mov rbx, rax
je 0x14001c488
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001c40a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14001c450
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14001cd40
test rax, rax
mov r12, rax
jne 0x14001c4ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001c52b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14001c515
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001c53e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14001c4c0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14001ce60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001c526
Function at 0x14001f3d0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140027c18]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14001f417
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017690
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140021b20
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017690
add rsp, 0x38
ret