joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1054e30
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x398
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov dword [rsp + 0x38], 0x80
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r8, [rsp + 0x370]
mov rdx, 0xffffffff80000002
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x1054f96
mov dword [rsp + 0x378], 0x105
lea r9, [rsp + 0x378]
lea r8, [0x010746a0]
mov edx, 1
mov rcx, qword [rsp + 0x3a0]
call sub.instapi10.dll_GetSQLServiceByName
test eax, eax
jne 0x1054ecc
mov rcx, qword [rsp + 0x370]
call fcn.01054df0
xor eax, eax
jmp 0x1054f98
call fcn.01059320
lea rcx, [0x010746a0]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [0x0100e4d0]
mov edx, 0x105
lea rcx, [rsp + 0x60]
call fcn.01054c50
mov word [rsp + 0x268], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1054f3a
mov rcx, qword [rsp + 0x370]
call fcn.01054df0
xor eax, eax
jmp 0x1054f98
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x0100e4b0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call fcn.01054df0
mov rcx, qword [rsp + 0x370]
call fcn.01054df0
cmp dword [rsp + 0x30], 0
je 0x1054f8f
xor eax, eax
jmp 0x1054f98
mov eax, 1
jmp 0x1054f98
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x398
ret
Function at 0x1058918
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x010657f0]
jne 0x105890a
rol rcx, 0x10
test cx, 0xffff
jne 0x1058906
repz ret
ror rcx, 0x10
jmp 0x1058918
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x01074fb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010750a8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x105898b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010750a8]
jmp 0x10589a7
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010750a8], r11
mov qword [0x01075048], rax
mov rax, qword [0x010657f0]
mov qword [0x01074f20], r11
mov qword [0x01075030], rbx
mov dword [0x01074f10], 0xc0000409
mov dword [0x01074f14], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x010657f8]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0100ee60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x10589a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x010657f0]
jne 0x105890a
rol rcx, 0x10
test cx, 0xffff
jne 0x1058906
repz ret
ror rcx, 0x10
jmp 0x1058918
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x01074fb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010750a8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x105898b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010750a8]
jmp 0x10589a7
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010750a8], r11
mov qword [0x01075048], rax
mov rax, qword [0x010657f0]
mov qword [0x01074f20], r11
mov qword [0x01075030], rbx
mov dword [0x01074f10], 0xc0000409
mov dword [0x01074f14], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x010657f8]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0100ee60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1058a90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x01077058], rbx
je 0x1058ad6
cmp rax, rbx
jne 0x1058ac9
mov edi, 1
jmp 0x1058ad6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1058ab0
mov eax, dword [0x01077054]
cmp eax, 1
jne 0x1058aeb
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x1058b2a
mov eax, dword [0x01077054]
test eax, eax
jne 0x1058b20
mov dword [0x01077054], 1
lea rdx, [0x01001ad8]
lea rcx, [0x01001ac0]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x1058b2a
mov eax, 0xff
jmp 0x1058c0b
mov dword [0x010754a4], 1
mov eax, dword [0x01077054]
cmp eax, 1
jne 0x1058b52
lea rdx, [0x01001ab8]
lea rcx, [0x01001a88]
call sub.MSVCR80.dll__initterm
mov dword [0x01077054], 2
test edi, edi
jne 0x1058b5d
xchg qword [0x01077058], rsi
cmp qword [0x01077070], 0
je 0x1058b86
lea rcx, [0x01077070]
call fcn.010592a0
test eax, eax
je 0x1058b86
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x01077070]
mov rcx, qword [sym.imp.MSVCR80.dll___winitenv]
mov rax, qword [0x01075488]
mov qword [rcx], rax
mov r8, qword [0x01075488]
mov rdx, qword [0x01075490]
mov ecx, dword [0x01075480]
call fcn.0100fee0
mov dword [0x010754a0], eax
cmp dword [0x01075484], 0
jne 0x1058bc7
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x010754a4], 0
jne 0x1058bdc
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x010754a0]
jmp 0x1058c0b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.011f6000
add rsp, 0x28
jmp 0x1058a90
Function at 0x105a610
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0xffffffff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
sub rcx, 1
mov qword [rsp + 0x28], rcx
test rax, rax
jbe 0x105a688
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x0100ef40]
mov edx, dword [rsp]
shr edx, 8
and edx, 0xffffff
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 1
mov qword [rsp + 8], rax
jmp 0x105a62f
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x105a930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x78]
shl rax, 1
mov dword [rsp + 0x30], eax
lea r8, [0x01001c38]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.01013c30
mov eax, dword [rsp + 0x30]
cmp rax, qword [rsp + 0x78]
jae 0x105a99b
mov ecx, 0x57
call fcn.01056aa0
jmp 0x105aa89
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x105aa78
cmp dword [rsp + 0x34], 1
jne 0x105aa68
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x105aa68
mov eax, dword [rsp + 0x30]
cmp rax, 2
jb 0x105aa68
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
sub rax, 1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x105aa2c
jmp 0x105aa66
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rax
jae 0x105aa58
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov word [rax + rcx*2], 0
jmp 0x105aa66
mov ecx, 0x7a
call fcn.01056aa0
mov dword [rsp + 0x38], eax
jmp 0x105aa76
mov ecx, VariantTimeToDosDateTime
call fcn.01056aa0
mov dword [rsp + 0x38], eax
jmp 0x105aa85
mov ecx, dword [rsp + 0x3c]
call fcn.01056aa0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140013158
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001e400]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140013198
mov eax, 0xff
jmp 0x14001335a
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x1400131b4
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14001f0fc], r9d
mov dword [0x14001f104], ecx
mov dword [0x14001f108], edx
mov dword [0x14001f10c], eax
mov dword [0x14001f100], r8d
cmp word [0x140012000], 0x5a4d
jne 0x140013241
movsxd rax, dword [0x14001203c]
lea rcx, [0x140012000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14001320f
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x140013247
cmp word [rax + 0x18], 0x20b
je 0x14001321f
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x140013247
cmp dword [rax + 0x84], 0xe
ja 0x140013230
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x140013247
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x140013247
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140015340
test eax, eax
jne 0x140013279
cmp dword [0x14001f0f0], 2
je 0x140013265
call fcn.1400144a0
mov ecx, 0x1c
call fcn.1400142a8
mov ecx, 0xff
call fcn.140013810
call fcn.1400152c0
test eax, eax
jne 0x1400132a5
cmp dword [0x14001f0f0], 2
je 0x140013290
call fcn.1400144a0
mov ecx, 0x10
call fcn.1400142a8
mov ecx, 0xff
call fcn.140013810
nop
call fcn.140014ca0
test eax, eax
jns 0x1400132b8
mov ecx, 0x1b
call fcn.1400137a4
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140020118], rax
call fcn.140014bb4
mov qword [0x14001f0e0], rax
call fcn.140014abc
test eax, eax
jns 0x1400132e4
mov ecx, 8
call fcn.1400137a4
call fcn.140014748
test eax, eax
jns 0x1400132f7
mov ecx, 9
call fcn.1400137a4
mov ecx, edi
call fcn.140013930
test eax, eax
je 0x140013309
mov ecx, eax
call fcn.1400137a4
mov r8, qword [0x14001f128]
mov qword [0x14001f130], r8
mov rdx, qword [0x14001f118]
mov ecx, dword [0x14001f110]
call fcn.140013000
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14001333a
mov ecx, eax
call fcn.140013b0c
call fcn.140013b24
jmp 0x140013358
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400153c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.1400153e0
add rsp, 0x28
jmp 0x140013158
Function at 0x1400133b8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140013423
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140013443
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x1400139ec
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140015bb4
nop
cmp dword [0x14001f15c], 1
je 0x140013a9f
mov dword [0x14001f158], 1
mov byte [0x14001f114], dil
test ebx, ebx
jne 0x140013a8b
mov rcx, qword [0x1400200f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x1400200e8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x140013a78
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x140013a78
mov rcx, qword [rbx]
test rcx, rcx
je 0x140013a76
call rcx
jmp 0x140013a5e
lea rdx, [0x14001b248]
lea rcx, [0x14001b240]
call fcn.140013828
lea rdx, [0x14001b258]
lea rcx, [0x14001b250]
call fcn.140013828
nop
test edi, edi
je 0x140013aad
mov ecx, 8
call fcn.140015a90
test edi, edi
jne 0x140013ad5
mov dword [0x14001f15c], 1
lea ecx, [rdi + 8]
call fcn.140015a90
mov ecx, r12d
call fcn.1400137d4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400139ec
Function at 0x140013b0c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140015bb4
nop
cmp dword [0x14001f15c], 1
je 0x140013a9f
mov dword [0x14001f158], 1
mov byte [0x14001f114], dil
test ebx, ebx
jne 0x140013a8b
mov rcx, qword [0x1400200f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x1400200e8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x140013a78
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x140013a78
mov rcx, qword [rbx]
test rcx, rcx
je 0x140013a76
call rcx
jmp 0x140013a5e
lea rdx, [0x14001b248]
lea rcx, [0x14001b240]
call fcn.140013828
lea rdx, [0x14001b258]
lea rcx, [0x14001b250]
call fcn.140013828
nop
test edi, edi
je 0x140013aad
mov ecx, 8
call fcn.140015a90
test edi, edi
jne 0x140013ad5
mov dword [0x14001f15c], 1
lea ecx, [rdi + 8]
call fcn.140015a90
mov ecx, r12d
call fcn.1400137d4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400139ec

Function at 0x140013b18
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400139ec

Function at 0x140013fac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x140013fe6
call fcn.140013f44
and dword [rax], 0
call fcn.140013f24
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.14001345c
mov eax, ebx
jmp 0x140014036
test edx, 0xfffffff9
jne 0x140013fb9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001400f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140013f64
call fcn.140013f24
mov eax, dword [rax]
jmp 0x140014036
test al, 0x10
jne 0x140014034
test al, 1
je 0x140014034
test bl, 2
je 0x140014034
call fcn.140013f44
mov dword [rax], 5
call fcn.140013f24
mov dword [rax], 0xd
jmp 0x140014006
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400142a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x14001e1a0]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1400142db
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400142cb
cmp edi, 0x17
jae 0x140014489
mov ebp, 3
mov ecx, ebp
call fcn.140016ed8
cmp eax, 1
je 0x140014441
mov ecx, ebp
call fcn.140016ed8
test eax, eax
jne 0x140014311
cmp dword [section..data], 1
je 0x140014441
cmp ebx, 0xfc
je 0x140014489
lea rbx, [0x14001f160]
mov ebp, 0x314
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbx
mov rdx, rbp
call fcn.140016a28
test eax, eax
je 0x140014354
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
lea rdx, [0x14001f179]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001f27d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400143a5
lea r8, str._program_name_unknown_
lea rcx, [0x14001f179]
mov edx, 0x2fb
call fcn.140016a28
test eax, eax
je 0x1400143a5
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
lea r8, [0x14001f179]
mov rdx, rbp
mov rcx, rbx
call fcn.140015494
test eax, eax
je 0x1400143d0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
lea r8, [0x14001b8c0]
mov rdx, rbp
mov rcx, rbx
call fcn.140015494
test eax, eax
je 0x1400143fb
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.140015494
test eax, eax
je 0x14001442a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbx
call fcn.140016ca8
jmp 0x140014489
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140014489
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140014489
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
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 + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x140014bb4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140014c87
cmp word [rax], 0
mov rbx, rax
je 0x140014bf7
add rbx, 2
cmp word [rbx], 0
jne 0x140014be3
add rbx, 2
cmp word [rbx], 0
jne 0x140014be3
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
sub rbx, rax
mov r8, rax
sar rbx, 1
xor edx, edx
xor ecx, ecx
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140014c7e
mov rcx, rbp
call fcn.1400178ac
test rax, rax
mov rsi, rax
je 0x140014c7e
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
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 0x140014c70
mov rcx, rsi
call fcn.140013474
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x140014c89
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400161e8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x37f0c269
jmp 0x140006a70
dec rcx
jmp 0x14000a608
jmp 0x14000aa99
jne 0x140006a70
jmp 0x140008c28
jmp 0x14000ab64
xor rcx, rcx
mov rdx, 0x708a
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.14000ab84
xor rcx, rcx
jmp 0x140006631
Function at 0x140016ca8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.140014f6c
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x14001f800], rbp
mov rdi, rax
jne 0x140016ddb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x140016d07
xor eax, eax
jmp 0x140016ebb
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140016d00
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001f800], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001f808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x14001f810], rax
call fcn.14001385c
test eax, eax
je 0x140016d8e
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
cmp dword [rsp + 0x88], 2
jne 0x140016ddb
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x14001f820], rax
je 0x140016ddb
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001f818], rax
mov rcx, qword [0x14001f818]
cmp rcx, rdi
je 0x140016e6d
cmp qword [0x14001f820], rdi
je 0x140016e6d
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x140016e38
mov rcx, qword [0x14001f820]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x140016e38
test byte [rsp + 0x40], 1
jne 0x140016e6d
lea rcx, [rsp + 0x30]
call fcn.1400138e8
test eax, eax
je 0x140016e5a
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400133b8
cmp dword [rsp + 0x30], 4
jb 0x140016e67
bts ebx, 0x15
jmp 0x140016ea1
bts ebx, 0x12
jmp 0x140016ea1
mov rcx, qword [0x14001f808]
cmp rcx, rdi
je 0x140016ea1
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x140016ea1
mov rcx, qword [0x14001f810]
cmp rcx, rdi
je 0x140016ea1
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x14001f800]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret