joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011134
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140045380]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, r9
mov r12d, r8d
mov edi, edx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400112fd
mov r10d, r12d
shr r10d, 4
add r10d, 1
and r12d, 0xf
and dword [rsp + 0x24], ebx
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x24]
mov ecx, edi
call fcn.14000feb8
movzx r9d, word [rsp + 0x20]
shl r9w, 0xa
or r9w, word [rsp + 0x24]
movzx r8d, r10w
mov edx, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x1400112f2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400112f2
xor esi, esi
or rbp, 0xffffffffffffffff
cmp word [rdi], 0
je 0x1400112dd
movzx r13d, word [rdi]
cmp esi, r12d
jne 0x1400112d6
movsxd rbx, r13d
mov eax, 2
mul rbx
cmovo rax, rbp
mov rcx, rax
call fcn.140016530
mov r14, rax
mov r8, rbx
lea rdx, [rdi + 2]
mov rcx, rax
call fcn.14001a620
mov qword [rsp + 0x80], 7
and qword [rsp + 0x78], 0
and word [rsp + 0x68], 0
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14000c3b0
nop
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14001136c
nop
mov r9, rbp
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000c2d0
nop
cmp qword [rsp + 0x58], 8
jb 0x1400112a1
mov rcx, qword [rsp + 0x40]
call fcn.140017280
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14000c2d0
mov rcx, r14
call fcn.140018fd0
mov ebx, 1
cmp qword [rsp + 0x80], 8
jb 0x1400112d6
mov rcx, qword [rsp + 0x68]
call fcn.140017280
lea rdi, [rdi + r13*2 + 2]
jmp 0x1400112e1
add rdi, 2
add esi, 1
cmp esi, 0x10
jl 0x1400111ff
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140018080
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011d94
Capabilities:
Get common file path
Set current directory

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x1c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x140045380]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
mov esi, 0xf
mov qword [r11 - 0x130], rsi
and qword [r11 - 0x138], 0
mov byte [rsp + 0x80], 0
lea rdx, [rsp + 0x20]
call fcn.140011d18
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140006ca0
nop
cmp qword [rsp + 0x40], 0x10
jb 0x140011e0f
mov rcx, qword [rsp + 0x28]
call fcn.140017280
mov qword [rsp + 0x70], rsi
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
lea r8, str._sqlite3.dll
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.14000a0b8
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006ca0
nop
cmp qword [rsp + 0x40], 0x10
jb 0x140011e5d
mov rcx, qword [rsp + 0x28]
call fcn.140017280
lea rdx, [rsp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp qword [rbx], 0
jne 0x140011efc
cmp qword [rsp + 0x70], 0x10
jb 0x140011ed0
mov rcx, qword [rsp + 0x58]
call fcn.140017280
mov qword [rsp + 0x70], rsi
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 0x10
jb 0x140011ef8
mov rcx, qword [rsp + 0x80]
call fcn.140017280
xor al, al
jmp 0x140011f38
cmp qword [rsp + 0x70], 0x10
jb 0x140011f0e
mov rcx, qword [rsp + 0x58]
call fcn.140017280
mov qword [rsp + 0x70], rsi
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 0x10
jb 0x140011f36
mov rcx, qword [rsp + 0x80]
call fcn.140017280
mov al, 1
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140018080
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140011fdc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
lea rdx, str.sqlite3_close
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 8], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_bind_text
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_bind_int
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x18], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_column_int
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x20], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_column_text
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x28], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_column_count
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x30], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_finalize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x38], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_step
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x40], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_prepare16
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x48], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_open16
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x50], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_bind_int64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x58], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_column_int64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x60], rax
je 0x14001214e
mov rcx, qword [rbx]
lea rdx, str.sqlite3_exec
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x68], rax
je 0x14001214e
mov al, 1
jmp 0x140012150
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400155b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140045380]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call fcn.140017b10
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.140017b10
xor esi, esi
test rbx, rbx
mov edi, 0x104
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x38], edi
je 0x1400156fa
lea rax, [rsp + 0x30]
lea r9d, [rsi + 1]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400156fa
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.Path
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400156fa
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x250]
mov rdx, rdi
lea rax, [rsp + 0x250]
mov r9d, esi
sub r8, rcx
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1400156bd
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400156a4
jmp 0x1400156c2
test rdx, rdx
jne 0x1400156cc
sub rax, 2
mov r9d, 0x8007007a
test r9d, r9d
mov word [rax], si
js 0x1400156ef
mov rcx, rdi
lea rax, [rsp + 0x40]
nop
cmp word [rax], si
je 0x140015721
add rax, 2
sub rcx, 1
jne 0x1400156e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018080
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x1400156ef
mov rax, rdi
mov rdx, rdi
mov r9d, esi
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax*2 + 0x40]
je 0x1400156ef
lea r8, str.SCANAPI.DLL
sub r8, rcx
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001575f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140015746
jmp 0x140015764
test rdx, rdx
jne 0x14001576e
sub rcx, 2
mov r9d, 0x8007007a
test r9d, r9d
mov word [rcx], si
js 0x1400156ef
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140034900
test eax, eax
jne 0x1400156ef
lea rcx, [rsp + 0x250]
sub rcx, rbx
nop
nop
movzx eax, word [rcx + rbx]
test ax, ax
je 0x1400157b8
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x1400157a0
jmp 0x1400157bd
test rdi, rdi
jne 0x1400157c6
sub rbx, 2
mov esi, 0x8007007a
mov rcx, qword [rsp + 0x30]
mov word [rbx], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x1400156fa
mov al, 1
jmp 0x1400156fc
Function at 0x140017900
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 [0x140047688]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400206b0
test rax, rax
je 0x140017954
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 0x1400179e9
mov ecx, 2
call fcn.1400204e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140017b10
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 0x1400179d5
test ebx, ebx
jne 0x1400179d5
lea ecx, [rax + 2]
call fcn.1400204e0
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 0x140017a10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x140047688]
call fcn.1400206b0
test rax, rax
je 0x140017a45
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.1400204e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140017b10
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 0x140017ace
test ebx, ebx
jne 0x140017ace
lea ecx, [rax + 2]
call fcn.1400204e0
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 0x14001a680
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14001a6de
cmp dword [0x1400476c0], 2
je 0x14001a6c0
call fcn.1401cc000
mov ecx, 0x12
call fcn.140022ab0
mov ecx, 0xff
call fcn.14001b250
mov eax, 0xff
jmp 0x14001a8e6
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14001a70f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x14001a8e6
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x14001a741
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x1400476cc], r13d
mov dword [0x1400476d4], eax
mov dword [0x1400476d8], esi
mov dword [0x1400476dc], r12d
mov dword [0x1400476d0], edi
cmp word [0x140000000], 0x5a4d
jne 0x14001a7c7
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14001a795
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14001a7cd
cmp word [rax + 0x18], 0x20b
je 0x14001a7a5
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14001a7cd
cmp dword [rax + 0x84], 0xe
ja 0x14001a7b6
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14001a7cd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14001a7cd
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140021210
test eax, eax
jne 0x14001a7fd
cmp dword [0x1400476c0], 2
je 0x14001a7e9
call fcn.140022cf0
mov ecx, 0x1c
call fcn.140022ab0
mov ecx, 0xff
call fcn.14001b250
call fcn.140020bb0
test eax, eax
jne 0x14001a828
cmp dword [0x1400476c0], 2
je 0x14001a814
call fcn.140022cf0
mov ecx, 0x10
call fcn.140022ab0
mov ecx, 0xff
call fcn.14001b250
call fcn.140026d70
nop
call fcn.140020ea0
test eax, eax
jns 0x14001a841
mov ecx, 0x1b
call fcn.14001b220
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140049828], rax
call fcn.140026ba0
mov qword [0x1400476b0], rax
call fcn.140026a90
test eax, eax
jns 0x14001a86d
mov ecx, 8
call fcn.14001b220
call fcn.140026700
test eax, eax
jns 0x14001a880
mov ecx, 9
call fcn.14001b220
mov ecx, 1
call fcn.14001b390
test eax, eax
je 0x14001a895
mov ecx, eax
call fcn.14001b220
mov r8, qword [0x1400476f8]
mov qword [0x140047700], r8
mov rdx, qword [0x1400476e8]
mov ecx, dword [0x1400476e0]
call fcn.140005170
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x14001a8c6
mov ecx, eax
call fcn.14001b5a0
call fcn.14001b5c0
jmp 0x14001a8e4
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.140026df0
add rsp, 0x28
jmp 0x14001a680
Function at 0x140021317
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140045380]
jne 0x14001809a
rol rcx, 0x10
test cx, 0xffff
jne 0x140018096
repz ret
ror rcx, 0x10
jmp 0x140021270
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140047800]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400478f8]
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 0x1400212f5
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, [0x140047800]
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 0x140021317
mov rax, qword [rsp + 0x88]
mov qword [0x1400478f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140047898], rax
mov rax, qword [0x1400478f8]
mov qword [0x140047770], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140047880], rax
mov dword [0x140047760], 0xc0000409
mov dword [0x140047764], 1
mov rax, qword [0x140045380]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140045388]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400477f8], eax
mov ecx, 1
call fcn.1400204e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140038560]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400477f8], 0
jne 0x14002139e
mov ecx, 1
call fcn.1400204e0
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 0x140022ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400459a0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140022aee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140022ad0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140022cd5
mov ecx, 3
call fcn.14002d560
cmp eax, 1
je 0x140022c8c
mov ecx, 3
call fcn.14002d560
test eax, eax
jne 0x140022b25
cmp dword [0x140045370], 1
je 0x140022c8c
cmp edi, 0xfc
je 0x140022cd5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140047ce0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140020230
test eax, eax
je 0x140022b69
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140017860
lea rdx, [0x140047cf9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140047dfd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140022bb9
lea r8, str._program_name_unknown_
lea rcx, [0x140047cf9]
mov edx, 0x2fb
call fcn.140020230
test eax, eax
je 0x140022bb9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140017860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140047cf9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140022c08
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140047ff4]
lea r9d, [rax + 3]
lea r8, [0x140038ba4]
sub rdx, rcx
call fcn.140029270
test eax, eax
je 0x140022c08
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140017860
lea r8, [0x140038ba0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400291b0
test eax, eax
je 0x140022c34
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140017860
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400291b0
test eax, eax
je 0x140022c64
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140017860
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14002d300
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 0x140022cd5
cmp rax, 0xffffffffffffffff
je 0x140022cd5
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 0x140022cf0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14002d560
cmp eax, 1
je 0x140022d22
mov ecx, 3
call fcn.14002d560
test eax, eax
jne 0x140022dd6
cmp dword [0x140045370], 1
jne 0x140022dd6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400459a0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140022d4e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140022d38
jmp 0x140022dc2
cmp edi, 0x17
jae 0x140022dc2
mov ecx, 3
call fcn.14002d560
cmp eax, 1
je 0x140022d79
mov ecx, 3
call fcn.14002d560
test eax, eax
jne 0x140022dc2
cmp dword [0x140045370], 1
jne 0x140022dc2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140022dc2
cmp rax, 0xffffffffffffffff
je 0x140022dc2
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.140022ab0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140026ba0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x140048388]
test eax, eax
jne 0x140026bf3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140026bd3
mov dword [0x140048388], 1
jmp 0x140026c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140026bed
mov dword [0x140048388], 2
jmp 0x140026ce9
mov eax, dword [0x140048388]
cmp eax, 1
jne 0x140026ce0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140026d33
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140026c35
add rbx, 2
cmp word [rbx], 0
jne 0x140026c21
add rbx, 2
cmp word [rbx], 0
jne 0x140026c21
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140026cd3
mov rcx, rbp
call fcn.14001e770
test rax, rax
mov rsi, rax
je 0x140026cd3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140026cad
mov rcx, rsi
call fcn.140018020
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140026cb9
cmp eax, 2
je 0x140026ce9
test eax, eax
jne 0x140026d33
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140026d33
cmp byte [rax], 0
je 0x140026d12
nop
add rax, 1
cmp byte [rax], 0
jne 0x140026d00
add rax, 1
cmp byte [rax], 0
jne 0x140026d00
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14001e770
test rax, rax
mov rdi, rax
jne 0x140026d45
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140019d50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret