joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006590
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov r13d, r8d
mov r12, rdx
mov rbp, rcx
call fcn.14000d610
nop
lea rax, [0x140039178]
mov qword [rbp], rax
mov ecx, 0x4c
call fcn.14000bd3c
mov ebx, eax
mov dword [rsp + 0xb8], eax
mov ecx, 0x4d
call fcn.14000bd3c
mov r14d, eax
mov dword [rsp + 0xc0], eax
mov ecx, 0x4e
call fcn.14000bd3c
lea r15d, [rbx + rax]
mov ecx, 0x4f
call fcn.14000bd3c
add r14d, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call qword [sym.imp.GDI32.dll_CreateDCA]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
xor eax, eax
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xd0], eax
sub r14d, dword [rsp + 0xc0]
sub r15d, ebx
mov r8d, r14d
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rbp + 0xa8], rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbx, rax
mov dword [rsp + 0x40], 0x40cc0020
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov dword [rbp + 0xd0], 1
mov dword [rbp + 0xd4], 1
mov dword [rbp + 0xd8], 1
xor edi, edi
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0x128], rdi
mov dword [rbp + 0xf8], 0xffffffff
mov qword [rbp + 0x118], rdi
mov dword [rbp + 0x120], edi
cmp qword [0x14004c1b0], rdi
jne 0x140006730
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 8]
call fcn.140012e5c
mov qword [0x14004c1b0], rax
mov dword [rbp + 0xb8], 2
mov dword [rbp + 0xbc], edi
mov dword [rbp + 0xc0], edi
mov dword [rbp + 0xc4], edi
mov qword [rbp + 0xc8], r12
test r13d, r13d
jne 0x140006764
test r12, r12
jne 0x140006764
mov ebx, 0x80000000
jmp 0x14000676e
mov ebx, 0x40000000
test r12, r12
jne 0x14000677f
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call fcn.14000f364
mov r12, rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r15d
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r9, [0x140038fea]
mov r8, qword [0x14004c1b0]
mov edx, 0x80
mov rcx, rbp
call fcn.1400117f0
mov r11, qword [rbp + 0x40]
mov qword [0x14004c1c0], r11
mov rax, rbp
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000af78
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140049fa0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x14000b077
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test eax, eax
jne 0x14000b04e
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14000893c
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14000af78
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000b035
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14000b03e
jmp 0x14000b04e
jmp 0x14000afce
cmp ebx, 0x103
je 0x14000b05e
cmp ebx, 0x3f2
jne 0x14000b06c
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001b2b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000d838
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.1400144f0
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14000d86f
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14000d86f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14000d89f
test rbx, rbx
je 0x14000d89f
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14000d89f
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140015e88
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x140015f15
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x140015ee1
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x140015ee1
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x140015f01
xor esi, esi
jmp 0x140015f01
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140015ef8
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x140015ec1
test esi, esi
je 0x140015f5c
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.1400159a8
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x1400169a8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140049fa0]
xor rax, rsp
mov qword [rsp + 0x120], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x1400169dd
call fcn.140008358
int3
test rdx, rdx
jne 0x1400169e8
call fcn.140008358
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
mov esi, eax
call fcn.14001b8f0
mov r8d, 0x100
cmp esi, r8d
ja 0x140016a39
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x140016a39
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140016a45
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14001b2b0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001c990
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x14001c9dd
call fcn.14001e9f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.140020320
or rax, 0xffffffffffffffff
jmp 0x14001ca72
mov qword [rsp + 0x40], rdi
call fcn.140020830
mov edx, 0x2d8
mov ecx, 1
call fcn.140020e70
test rax, rax
mov rdi, rax
je 0x14001ca56
call fcn.140020a70
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140020850
lea r8, [0x14001c8f0]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x14001ca88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.14001afe0
test ebx, ebx
je 0x14001ca69
mov ecx, ebx
call fcn.14001ea50
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14001caa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14001ca56
mov rax, rbx
jmp 0x14001ca6d
Function at 0x14001fe90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14004a160]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001fece
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001feb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400200b5
mov ecx, 3
call fcn.14002d5f0
cmp eax, 1
je 0x14002006c
mov ecx, 3
call fcn.14002d5f0
test eax, eax
jne 0x14001ff05
cmp dword [0x140049fb0], 1
je 0x14002006c
cmp edi, 0xfc
je 0x1400200b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14004fb80]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14001ef10
test eax, eax
je 0x14001ff49
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020280
lea rdx, [0x14004fb99]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14004fc9d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001ff99
lea r8, str._program_name_unknown_
lea rcx, [0x14004fb99]
mov edx, 0x2fb
call fcn.14001ef10
test eax, eax
je 0x14001ff99
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020280
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14004fb99]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001ffe8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14004fe94]
lea r9d, [rax + 3]
lea r8, [0x14003ce44]
sub rdx, rcx
call fcn.14001f640
test eax, eax
je 0x14001ffe8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020280
lea r8, [0x14003ce40]
mov edx, 0x314
mov rcx, rbp
call fcn.14001f060
test eax, eax
je 0x140020014
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020280
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001f060
test eax, eax
je 0x140020044
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140020280
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14002d390
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 0x1400200b5
cmp rax, 0xffffffffffffffff
je 0x1400200b5
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 0x1400200d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14002d5f0
cmp eax, 1
je 0x140020102
mov ecx, 3
call fcn.14002d5f0
test eax, eax
jne 0x1400201b6
cmp dword [0x140049fb0], 1
jne 0x1400201b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14004a160]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14002012e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140020118
jmp 0x1400201a2
cmp edi, 0x17
jae 0x1400201a2
mov ecx, 3
call fcn.14002d5f0
cmp eax, 1
je 0x140020159
mov ecx, 3
call fcn.14002d5f0
test eax, eax
jne 0x1400201a2
cmp dword [0x140049fb0], 1
jne 0x1400201a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400201a2
cmp rax, 0xffffffffffffffff
je 0x1400201a2
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.14001fe90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140020320
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 [0x14004feb0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140020740
test rax, rax
je 0x140020374
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 0x140020409
mov ecx, 2
call fcn.14002d650
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001b8f0
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 0x1400203f5
test ebx, ebx
jne 0x1400203f5
lea ecx, [rax + 2]
call fcn.14002d650
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 0x1400204d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140049fa0]
jne 0x14001b2ca
rol rcx, 0x10
test cx, 0xffff
jne 0x14001b2c6
repz ret
ror rcx, 0x10
jmp 0x140020430
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004ff60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140050058]
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 0x1400204b5
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, [0x14004ff60]
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 0x1400204d7
mov rax, qword [rsp + 0x88]
mov qword [0x140050058], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004fff8], rax
mov rax, qword [0x140050058]
mov qword [0x14004fed0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004ffe0], rax
mov dword [0x14004fec0], 0xc0000409
mov dword [0x14004fec4], 1
mov rax, qword [0x140049fa0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140049fa8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004ff58], eax
mov ecx, 1
call fcn.14002d650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003ce80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004ff58], 0
jne 0x14002055e
mov ecx, 1
call fcn.14002d650
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 0x1400217e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x140050548]
test eax, eax
jne 0x140021833
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140021813
mov dword [0x140050548], 1
jmp 0x14002184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14002182d
mov dword [0x140050548], 2
jmp 0x140021929
mov eax, dword [0x140050548]
cmp eax, 1
jne 0x140021920
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140021973
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140021875
add rbx, 2
cmp word [rbx], 0
jne 0x140021861
add rbx, 2
cmp word [rbx], 0
jne 0x140021861
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 0x140021913
mov rcx, rbp
call fcn.140020e00
test rax, rax
mov rsi, rax
je 0x140021913
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 0x1400218ed
mov rcx, rsi
call fcn.14001afe0
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 0x1400218f9
cmp eax, 2
je 0x140021929
test eax, eax
jne 0x140021973
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140021973
cmp byte [rax], 0
je 0x140021952
nop
add rax, 1
cmp byte [rax], 0
jne 0x140021940
add rax, 1
cmp byte [rax], 0
jne 0x140021940
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140020e00
test rax, rax
mov rdi, rax
jne 0x140021985
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.14001c500
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
Function at 0x14002d390
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140020650
xor ebx, ebx
cmp qword [0x140050970], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14002d4bc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14002d5cf
lea rdx, [0x14003da80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d5cf
mov rcx, rax
call fcn.140020580
lea rdx, [0x14003da70]
mov rcx, rsi
mov qword [0x140050970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140020580
lea rdx, [0x14003da58]
mov rcx, rsi
mov qword [0x140050978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140020580
lea rcx, [rsp + 0x98]
mov qword [0x140050980], rax
call fcn.14001ebb0
test eax, eax
je 0x14002d46f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140020280
cmp dword [rsp + 0x98], 2
jne 0x14002d4bc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140020580
test rax, rax
mov qword [0x140050990], rax
je 0x14002d4bc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140020580
mov qword [0x140050988], rax
mov rcx, qword [0x140050988]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14002d568
cmp qword [0x140050990], rbp
je 0x14002d568
call fcn.140020740
mov rcx, qword [0x140050990]
mov rsi, rax
call fcn.140020740
test rsi, rsi
mov r12, rax
je 0x14002d568
test rax, rax
je 0x14002d568
call rsi
test rax, rax
je 0x14002d533
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002d533
test byte [rsp + 0x40], 1
jne 0x14002d568
lea rcx, [rsp + 0x30]
call fcn.14001ec00
test eax, eax
je 0x14002d555
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140020280
cmp dword [rsp + 0x30], 4
jb 0x14002d562
bts edi, 0x15
jmp 0x14002d5a6
bts edi, 0x12
jmp 0x14002d5a6
mov rcx, qword [0x140050978]
cmp rcx, rbp
je 0x14002d5a6
call fcn.140020740
test rax, rax
je 0x14002d5a6
call rax
test rax, rax
mov rbx, rax
je 0x14002d5a6
mov rcx, qword [0x140050980]
cmp rcx, rbp
je 0x14002d5a6
call fcn.140020740
test rax, rax
je 0x14002d5a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140050970]
call fcn.140020740
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14002d5cf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002d5d1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret