joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070e00
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x14009b900]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x140029b6d.1
mov r13, rax
test rax, rax
jne 0x140070e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400162c0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002f510
xor ecx, ecx
mov ebx, Ordinal_79
call qword [fcn.140079d54]
jmp 0x140071038
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140070ef6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400162c0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002f510
xor ecx, ecx
mov ebx, Ordinal_79
jmp 0x140071022
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140070f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400162c0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002f510
mov ebx, Ordinal_79
jmp 0x140071016
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140070f74
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14002f510
mov ebx, Ordinal_79
jmp 0x14007100e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x140070f90
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14007100e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140070fe8
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007105a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140070fdf
mov edi, esi
jmp 0x140070fe1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140070fa0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140070b70
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.140079d54]
mov rcx, r13
call fcn.140079d54
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140078d10
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400162c0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14002f510
mov ebx, Ordinal_79
jmp 0x140071006
Function at 0x140076470
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400764ab
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400764a9
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140077960
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1400779a3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400779f0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140077a52
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x140077a10
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x140077a91
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14008c979]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14008c97a]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140077a60
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x140077c80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14009b900]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140077ccc
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140077d9f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140077d10
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x140077d9f
mov rcx, rbp
call fcn.140033810
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x140077d7b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140077d8b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140077d9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140078d10
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140078b60
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140078bc5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x140078b70
ret
Function at 0x140078bd0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14009b900]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140078c53
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140078c75
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140078d10
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.140033810
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140078cd4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140078ce4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140078cf6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140078c58

Function at 0x140079a94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140079ade
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140079ade
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140079ade
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140079ade
cmp dword [rcx + 0x84], 0xe
jbe 0x140079ade
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140079ae0
xor al, al
add rsp, 0x28
ret
Function at 0x140001aa0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x1400110f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rbx, r8
mov r8, rdx
lea rcx, [rsp + 0x150]
mov edx, 0xff
mov rbp, r9
call fcn.1400045e8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x150]
mov edx, 0xff
lea r8, [0x14000c354]
repne scasb al, byte [rdi]
not rcx
dec rcx
sub rdx, rcx
lea rcx, [rsp + 0x150]
call fcn.14000456c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x150]
mov edx, 0xff
mov r8, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
sub rdx, rcx
lea rcx, [rsp + 0x150]
call fcn.14000456c
lea rdx, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x150]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001c72
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0xff
mov byte [rsp + 0x40], al
call fcn.140004660
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
lea rdx, str.JavaHome
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001c57
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x10]
call fcn.140001760
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
mov edx, 0x104
lea r8, str._binjava.exe
repne scasb al, byte [rdi]
not rcx
dec rcx
sub rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000456c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x38]
call fcn.140001760
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
jmp 0x140001c74
mov ecx, eax
call fcn.140001050
mov rcx, qword [rsp + 0x38]
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
jmp 0x140001c74
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003da0
add rsp, 0x268
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400029a0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400110f0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rax, [rsp + 0x70]
xor r14d, r14d
mov r9d, 0x20019
xor r8d, r8d
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x20], rax
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002b5f
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x7c]
lea rdx, [rbp + 0xa0]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov r11d, dword [rsp + 0x60]
test r11d, r11d
je 0x140002b54
mov qword [rsp + 0x308], rsi
mov esi, r14d
mov qword [rsp + 0x300], rbx
nop dword [rax]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x60]
mov edx, esi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140002b38
lea rcx, [rbp - 0x60]
call fcn.140001ef0
lea r8, [rbp - 0x60]
mov rdx, r13
mov r9, rax
mov rcx, r12
mov rbx, rax
call fcn.140001aa0
test al, al
je 0x140002b38
test rdi, rdi
je 0x140002b35
test rbx, rbx
je 0x140002b38
mov eax, dword [rbx]
mov ecx, dword [rdi]
cmp eax, ecx
jg 0x140002b28
jne 0x140002b19
mov eax, dword [rbx + 4]
mov ecx, dword [rdi + 4]
cmp eax, ecx
jg 0x140002b28
jne 0x140002b19
mov eax, dword [rdi + 8]
cmp dword [rbx + 8], eax
setg al
test al, al
jne 0x140002b28
mov edx, 1
mov rcx, rbx
call fcn.1400014b0
jmp 0x140002b38
mov edx, 1
mov rcx, rdi
call fcn.1400014b0
mov rdi, rbx
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x140002a90
mov rbx, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140003da0
add rsp, 0x2c0
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140004e07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400110f0]
jne 0x140003dba
rol rcx, 0x10
test cx, 0xffff
jne 0x140003db6
repz ret
ror rcx, 0x10
jmp 0x140004d60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400120f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400121e8]
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 0x140004de5
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, [0x1400120f0]
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 0x140004e07
mov rax, qword [rsp + 0x88]
mov qword [0x1400121e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140012188], rax
mov rax, qword [0x1400121e8]
mov qword [0x140012060], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140012170], rax
mov dword [0x140012050], 0xc0000409
mov dword [0x140012054], 1
mov rax, qword [0x1400110f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400110f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400120e8], eax
mov ecx, 1
call fcn.1400084a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000c648]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400120e8], 0
jne 0x140004e8e
mov ecx, 1
call fcn.1400084a4
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 0x140009fec
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 [0x1400110f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140005180
xor ebx, ebx
cmp qword [0x140013070], rbx
mov rdi, rax
jne 0x14000a0ff
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000a1d6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a1d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140013070], 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 [0x140013078], 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 [0x140013080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140013090], rax
test rax, rax
je 0x14000a0f6
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 [0x140013088], rax
jmp 0x14000a106
mov rax, qword [0x140013088]
jmp 0x14000a10d
mov rax, qword [0x140013088]
mov r11, qword [0x140013090]
cmp rax, rdi
je 0x14000a174
cmp r11, rdi
je 0x14000a174
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140013090]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000a174
test rax, rax
je 0x14000a174
call rsi
test rax, rax
je 0x14000a16e
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 0x14000a16e
test byte [rsp + 0x40], 1
jne 0x14000a174
bts ebp, 0x15
jmp 0x14000a1b4
mov rcx, qword [0x140013078]
cmp rcx, rdi
je 0x14000a1b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000a1b4
call rax
mov rbx, rax
test rax, rax
je 0x14000a1b4
mov rcx, qword [0x140013080]
cmp rcx, rdi
je 0x14000a1b4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000a1b4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140013070]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000a1d6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000a1d8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003da0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001360
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
mov rdi, rcx
mov dword [rsp + 0x28], 0x10
lea rcx, [rsp + 0x30]
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1400014c6
xorps xmm0, xmm0
mov qword [rsp + 0x68], rbp
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
lea rax, [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400013c7
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140001517
mov qword [rdi + 0x18], 0xf
cmp rbx, 0xf
ja 0x14000140e
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x1400014a1
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x140001443
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002920
test rax, rax
je 0x14000146e
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001482
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x140001475
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000151d
jmp 0x140001428
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001482
call fcn.140002920
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x30]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140002900
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_computer_name._Error:
call fcn.140001f70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002140]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
mov rax, rdi
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
jmp 0x1400014a9
call fcn.140001280
int3
call fcn.1400011e0
int3
Function at 0x140001530
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000159a
lea rdx, str.Pixel_Gun_3D.exe
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
test eax, eax
je 0x1400015be
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001573
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002900
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400015a5

Function at 0x1400015d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, qword [0x1400078e0]
test rdx, rdx
je 0x14000162d
mov eax, dword [rdx]
lea r8, [rsp + 0x30]
mov rcx, qword [0x1400078c8]
xor r9d, r9d
mov dword [rsp + 0x30], eax
movzx eax, byte [rdx + 4]
mov byte [rsp + 0x34], al
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002900
add rsp, 0x48
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._____Unable_to_backup_n
call fcn.140001f70
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3