joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400326b8
Capabilities:
Hash data with crc32

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
mov edi, r9d
mov eax, r8d
mov ebp, r8d
shl eax, 2
mov esi, edx
or r10d, 0xffffffff
imul ebp, r9d
movsxd rbx, eax
add rsi, rcx
shl ebp, 2
add rbx, rcx
mov r11, rcx
mov r9, rcx
shl edi, 2
lea r12, [0x14009db70]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r12 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r12 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r12 + rcx*4]
xor r10d, r8d
cmp r11, rsi
jb 0x140032751
mov eax, edi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x1400326ff
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pxor xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r12
ret
Function at 0x14003277c
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov eax, dword [r8 + 8]
mov rbx, r8
mov r8d, dword [r8]
mov r10d, dword [rbx + 0xc]
mov r11d, dword [rbx + 4]
cmp eax, r8d
setl dil
cmp r10d, r11d
mov r15, r9
setl sil
test dil, dil
je 0x1400327c6
mov dword [rbx], eax
mov dword [rbx + 8], r8d
test sil, sil
je 0x1400327d3
mov dword [rbx + 4], r10d
mov dword [rbx + 0xc], r11d
mov ecx, dword [rcx + 0x1d0]
mov r8, rdx
lea rdx, [rbp + 0x67]
call fcn.1400372f8
mov eax, dword [rbp + 0x6b]
mov r11, qword [rbp + 0x67]
add dword [rbx + 0xc], eax
add dword [rbx + 4], eax
add dword [rbx + 8], r11d
mov r12d, dword [rbx + 8]
mov r13d, dword [rbx + 0xc]
add dword [rbx], r11d
sub r12d, dword [rbx]
sub r13d, dword [rbx + 4]
mov eax, 1
xor ecx, ecx
add r12d, eax
add r13d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, r13d
mov edx, r12d
mov rcx, rax
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r14
mov qword [rbp + 0x77], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, qword [rbp + 0x77]
mov rcx, rax
mov qword [rbp + 0x7f], rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbp - 0x19], rax
test sil, sil
je 0x14003285a
mov r9d, dword [rbx + 0xc]
jmp 0x14003285e
mov r9d, dword [rbx + 4]
test dil, dil
je 0x140032869
mov r8d, dword [rbx + 8]
jmp 0x14003286c
mov r8d, dword [rbx]
mov dword [rsp + 0x50], 0xcc0020
mov edx, r13d
mov eax, r12d
mov ecx, r12d
mov ebx, r13d
neg ebx
test sil, sil
mov rsi, qword [rbp + 0x7f]
cmovne edx, ebx
neg eax
test dil, dil
mov dword [rsp + 0x48], edx
cmovne ecx, eax
xor edx, edx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov r9d, r12d
mov rcx, rsi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov eax, 1
mov dword [rbp - 0xd], r12d
mov r12, qword [rbp + 0x77]
mov word [rbp - 5], ax
mov eax, SafeArrayAllocDescriptor
mov dword [rbp - 9], ebx
xor ebx, ebx
mov word [rbp - 3], ax
lea rax, [rbp - 0x11]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rbp - 0x11], SafeArrayCreateEx
mov dword [rbp - 1], ebx
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r11d, dword [rbp + 3]
mov ecx, r11d
mov dword [r15], r11d
call fcn.14006f7d8
mov dword [rsp + 0x30], ebx
mov r9d, r13d
mov rdi, rax
lea rax, [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rbp - 0x19]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x140032979
mov rax, rdi
jmp 0x140032983
mov rcx, rdi
call fcn.14006f380
xor eax, eax
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037e44
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbx, rcx
lea rcx, [rax - 0x38]
mov r14d, 2
mov esi, r9d
mov r12, r8
mov rdi, rdx
mov word [rdx], r14w
call fcn.140009b54
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140038b44
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_inet_addr]
lea rcx, [rsp + 0x20]
mov ebp, eax
call fcn.140001d20
cmp ebp, 0xffffffff
jne 0x140037ede
lea rdx, str.255.255.255.255
mov rcx, r12
call fcn.140005cf8
test al, al
jne 0x140037ede
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
cmp byte [rcx + 0x19], 0
je 0x140037ed1
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140037ed5
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 1
jmp 0x140037f1e
lea eax, [rsi - 1]
mov dword [rdi + 4], ebp
cmp eax, 0xfffe
ja 0x140037efc
movzx ecx, si
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rdi + 2], ax
mov al, 1
jmp 0x140037f37
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
cmp byte [rcx + 0x19], 0
je 0x140037f16
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140037f1a
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], r14d
cmp byte [rcx + 0x19], 0
je 0x140037f2e
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140037f32
mov rcx, qword [rcx + 0x10]
xor al, al
mov byte [rcx + 0x20], al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x140039094
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rsi, rcx
lea rcx, [rsp + 0x48]
xor r13d, r13d
mov r12, rdx
mov ebx, 0x80004002
mov dword [rbp + 0x210], SafeArrayCreateEx
mov edi, r13d
call fcn.140001cc0
lea r11, [rsp + 0x40]
lea rdx, str.interface
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003922d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
lea r9, [rbp + 0x210]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x70]
mov edx, edi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140039222
mov eax, dword [rbp + 0x210]
lea rdx, str.interface_
lea rcx, [rsp + 0x48]
mov word [rsp + rax*2 + 0x70], r13w
mov dword [rbp + 0x210], 0x1fe
call fcn.1400025a8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001dc4
mov rdx, qword [rsp + 0x48]
lea r11, [rbp + 0x218]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003920d
mov rcx, qword [rbp + 0x218]
lea rax, [rbp + 0x210]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039200
mov eax, dword [rbp + 0x210]
lea rcx, [rbp - 0x40]
mov rdx, r12
shr eax, 1
mov dword [rbp + 0x210], eax
mov word [rbp + rax*2 - 0x40], r13w
call fcn.14006f698
test eax, eax
jne 0x140039200
lea rcx, [rsp + 0x70]
mov rdx, rsi
call qword [sym.imp.ole32.dll_IIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jns 0x140039222
inc edi
mov dword [rbp + 0x210], SafeArrayCreateEx
jmp 0x140039103
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x48]
call fcn.140001d20
mov eax, ebx
mov rbx, qword [rsp + 0x300]
add rsp, 0x2d0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039250
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov rsi, rcx
lea rcx, [rsp + 0x40]
movaps xmmword [rax - 0x38], xmm6
mov r12, rdx
call fcn.140001cc0
lea rdx, [rsp + 0x38]
movsd xmm6, qword [0x140093650]
mov rcx, rsi
call qword [sym.imp.ole32.dll_StringFromIID]
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x140039467
mov rcx, qword [rsp + 0x38]
call fcn.1400131b4
lea rdx, str.interface_
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.1400025a8
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140001dc4
lea rdx, str.TypeLib
lea rcx, [rsp + 0x40]
call fcn.140001dc4
mov rcx, rbx
call fcn.140070488
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rsp + 0x40]
lea r11, [rbp + 0x1d8]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140039467
mov rcx, qword [rbp + 0x1d8]
lea rax, [rbp + 0x1d0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x1d0], 0x1fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003945a
mov eax, dword [rbp + 0x1d0]
lea rcx, [rsp + 0x70]
shr eax, 1
mov dword [rbp + 0x1d0], eax
mov word [rsp + rax*2 + 0x70], r13w
call fcn.1400131b4
lea rdx, [rsp + 0x60]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rcx, rbx
mov edi, eax
call fcn.140070488
test edi, edi
js 0x14003945a
mov rcx, qword [rbp + 0x1d8]
lea rax, [rbp + 0x1d0]
lea rdx, str.Version
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp + 0x1d0], 0x1fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039403
mov eax, dword [rbp + 0x1d0]
lea rcx, [rsp + 0x70]
shr eax, 1
mov dword [rbp + 0x1d0], eax
mov word [rsp + rax*2 + 0x70], r13w
call fcn.140070d00
movapd xmm6, xmm0
movsd xmm1, qword [0x140093650]
movapd xmm0, xmm6
call fcn.140073530
lea rax, [rsp + 0x30]
cvttsd2si rdx, xmm6
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
cvttsd2si r8, xmm0
call qword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov edi, eax
test eax, eax
js 0x14003945a
mov rcx, qword [rsp + 0x30]
mov r8, r12
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
mov edi, eax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.140001d20
lea r11, [rsp + 0x290]
mov eax, edi
mov rbx, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039490
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r13d, r13d
lea rcx, [rsp + 0x58]
mov rsi, r9
mov r12, r8
mov rdi, rdx
mov qword [rsp + 0x30], r13
mov qword [rbp + 0x228], r13
call fcn.140001cc0
lea rcx, [rsp + 0x38]
call fcn.140001cc0
lea rcx, [rsp + 0x78]
call fcn.140001cc0
lea rdx, str.SOFTWAREClasses_
lea rcx, [rsp + 0x58]
call fcn.1400025a8
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.140001dc4
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.140001dc4
lea rdx, [0x14008b090]
lea rcx, [rsp + 0x38]
call fcn.1400025a8
test rdi, rdi
je 0x140039554
cmp word [rdi], 0x5c
je 0x140039554
cmp word [rdi + 2], 0x5c
je 0x140039554
lea rdx, [0x1400918d0]
lea rcx, [rsp + 0x38]
call fcn.1400025a8
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140001dc4
test rsi, rsi
je 0x1400395b6
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.14006fdf0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x64], r13d
call fcn.140001d50
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.140001dc4
mov r11, qword [rsp + 0x78]
mov rdx, qword [rbp + 0x230]
lea rcx, [rbp - 0x68]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], r11
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test eax, eax
js 0x14003968a
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
test eax, eax
jne 0x14003968a
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x228]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14003967f
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x218], 0x1fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140039672
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
shr eax, 1
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r13w
call fcn.1400131b4
mov rdx, r12
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rcx, rbx
mov edi, eax
call fcn.140070488
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.140001d20
lea rcx, [rsp + 0x38]
call fcn.140001d20
lea rcx, [rsp + 0x58]
call fcn.140001d20
mov rbx, qword [rsp + 0x310]
mov eax, edi
add rsp, 0x2e0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400424b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rax - 0x1f78]
mov eax, 0x2060
call fcn.14007edb0
sub rsp, rax
mov r12, rcx
lea rcx, [rsp + 0x20]
call fcn.140001cc0
lea rcx, [rsp + 0x40]
call fcn.140001cc0
mov rcx, r12
call fcn.140017790
xor r13d, r13d
movzx edx, word [rax]
mov rsi, rax
mov dil, r13b
mov ebx, r13d
test dx, dx
je 0x140042638
lea r14d, [r13 + 0x25]
inc rbx
cmp dx, r14w
jne 0x1400425eb
cmp word [rsi + rbx*2], r14w
jne 0x140042543
lea rcx, [rsp + 0x20]
mov edx, r14d
mov dil, 1
call fcn.140004e58
inc rbx
jmp 0x1400425f5
lea rdx, [0x14008b090]
lea rcx, [rsp + 0x40]
call fcn.1400025a8
jmp 0x14004256d
test r11w, r11w
je 0x140042578
lea rcx, [rsp + 0x40]
movzx edx, r11w
call fcn.140004e58
inc rbx
movzx r11d, word [rsi + rbx*2]
cmp r11w, r14w
jne 0x140042556
cmp word [rsi + rbx*2], r13w
je 0x140042603
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0xfff
inc rbx
mov word [rsp + 0x60], r13w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
test eax, eax
je 0x1400425ba
lea rdx, [rsp + 0x60]
call fcn.140001dc4
mov dil, 1
jmp 0x1400425f5
lea rdx, [0x1400927cc]
mov dil, 1
call fcn.140001dc4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140004f30
lea rdx, [0x1400927cc]
lea rcx, [rsp + 0x20]
call fcn.140001dc4
jmp 0x1400425f5
lea rcx, [rsp + 0x20]
call fcn.140004e58
movzx edx, word [rsi + rbx*2]
test dx, dx
je 0x140042626
jmp 0x140042517
lea rdx, [0x1400927cc]
lea rcx, [rsp + 0x20]
mov dil, 1
call fcn.140001dc4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140004f30
test dil, dil
je 0x140042638
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14001831c
lea rcx, [rsp + 0x40]
call fcn.140001d20
lea rcx, [rsp + 0x20]
call fcn.140001d20
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x1400468c4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [rbp - 0x61]
mov edi, r9d
mov rbx, r8
mov r14b, dl
call fcn.140001cc0
xor eax, eax
lea rcx, [rbp - 0x41]
xor edx, edx
lea r8d, [rax + 0x70]
mov r13d, eax
mov r12d, eax
lea r15d, [rax + 1]
call fcn.14006fdf0
cmp edi, 2
jb 0x140046948
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140017790
xor ecx, ecx
cmp word [rax], cx
je 0x140046948
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140017790
mov rcx, rax
call fcn.1400131b4
mov r13, rax
cmp edi, 3
jb 0x140046965
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140017790
mov rcx, rax
call fcn.1400131b4
mov r12, rax
cmp edi, 4
jb 0x1400469a5
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x18]
call fcn.140017790
xor ecx, ecx
cmp word [rax], cx
je 0x1400469a5
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x18]
cmp dword [rcx + 8], 0xa
jne 0x140046994
mov rax, qword [rcx]
cmp dword [rax], 0x29
je 0x1400469a5
call fcn.1400177b8
lea rcx, [rbp - 0x61]
mov rdx, rax
call fcn.140001d50
cmp edi, 5
jb 0x1400469bb
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x20]
call fcn.1400178dc
movzx r15d, ax
mov edi, WSAStartup
lea rcx, [rbp - 0x41]
xor edx, edx
mov r8d, edi
call fcn.14006fdf0
mov rax, qword [rbp - 0x61]
mov dword [rbp - 0x41], edi
mov qword [rbp - 0x31], rax
mov rax, qword [rbx + 8]
mov dword [rbp - 0x3d], 0x40
xor edi, edi
mov qword [rbp - 0x39], rdi
mov rcx, qword [rax]
call fcn.140017790
lea rcx, [rbp - 0x41]
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], r12
mov dword [rbp - 0x11], r15d
mov qword [rbp - 0x29], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test r13, r13
je 0x140046a1b
mov rcx, r13
call fcn.14006f380
test r12, r12
je 0x140046a28
mov rcx, r12
call fcn.14006f380
test ebx, ebx
jne 0x140046a76
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
cmp byte [rcx + 0x19], dil
je 0x140046a46
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140046a4a
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 1
cmp byte [rcx + 0x19], dil
je 0x140046a61
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140046a65
mov rcx, qword [rcx + 0x10]
mov byte [rcx + 0x20], dil
mov rcx, qword [rbp + 0x7f]
xor edx, edx
call fcn.1400180b8
jmp 0x140046aa5
test r14b, r14b
je 0x140046a88
mov rax, qword [rbp + 0x27]
mov qword [rsi + 0x7a8], rax
jmp 0x140046aa5
mov rcx, qword [rbp + 0x7f]
mov edx, 1
call fcn.1400180b8
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140046aa5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x61]
call fcn.140001d20
lea r11, [rsp + 0xb0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14004a658
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
lea rax, [rsp + 0x40]
mov esi, edx
lea r9, [rbp + 0x180]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov dword [rbp + 0x180], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14004a7c5
mov edi, esi
or edi, 0x20019
lea rax, [rbp + 0x188]
lea rdx, [rsp + 0x50]
mov r9d, edi
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004a7e8
mov rcx, qword [rbp + 0x188]
mov edx, esi
call fcn.14004a658
mov rcx, qword [rbp + 0x188]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004a7e8
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14004a752
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004a752
mov rcx, qword [rbp + 0x170]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov r8d, esi
call rax
jmp 0x14004a764
mov rcx, qword [rbp + 0x170]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14004a7da
test rbx, rbx
je 0x14004a776
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rbp + 0x170]
lea rax, [rsp + 0x40]
lea r9, [rbp + 0x180]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rbx
xor edx, edx
mov dword [rbp + 0x180], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14004a6c5
mov al, 1
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x14004a7e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x14004a7c7

Function at 0x140054210
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
xor edx, edx
mov rbx, rcx
lea rbp, [0x1400b6aa0]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.14006fdf0
xor edx, edx
lea rdi, [0x1400b6a80]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.14006fdf0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbp
xor edi, edi
mov eax, 1
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], SafeArrayDestroyDescriptor
mov dword [0x1400b6aa0], 0x68
mov dword [0x1400b6adc], eax
mov word [0x1400b6ae0], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400542ac
mov rcx, qword [0x1400b6a80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400549e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rdx]
mov r12, rcx
lea rcx, [rbp + 0x20]
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rbp + 0x20]
mov eax, dword [rbp + 0x24]
lea rdx, [rbp + 0x20]
mov rcx, rbx
mov dword [rdi + 0x294], r11d
mov dword [rdi + 0x298], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rbp + 0x20]
mov ecx, dword [rbp + 0x24]
cmp eax, dword [rdi + 0x29c]
jne 0x140054a49
cmp ecx, dword [rdi + 0x2a0]
je 0x140054a71
mov dword [rdi + 0x29c], eax
mov dword [rdi + 0x2a0], ecx
cmp esi, 1
jl 0x140054a71
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8, rdi
mov rcx, r12
mov edx, 0xfffffff5
call fcn.140054078
mov ecx, dword [r12 + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [r12 + 0x1c]
movzx r13d, ax
shr r13d, 0xf
and r13d, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
and ebx, 1
cmp r13d, dword [rdi + 0x2a4]
je 0x140054b1e
cmp esi, 1
jl 0x140054b1e
cmp byte [rdi + 0x2e0], 0
je 0x140054b1e
mov eax, dword [rbp + 0x24]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
mov rcx, r12
mov dword [rsp + 0x20], eax
test r13d, r13d
je 0x140054ad0
mov edx, 0xfffffff9
jmp 0x140054b12
mov edx, 0xfffffff8
call fcn.140054078
cmp byte [rdi + 0x2ac], 0
je 0x140054b17
mov rcx, qword [rdi]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
bt eax, 0x18
mov eax, dword [rbp + 0x24]
mov rcx, r12
mov dword [rsp + 0x20], eax
mov edx, 0xfffffffa
jb 0x140054b12
mov edx, 0xfffffff4
call fcn.140054078
mov byte [rdi + 0x2ac], 0
test esi, esi
je 0x140054b29
mov dword [rdi + 0x2a4], r13d
cmp ebx, dword [rdi + 0x2a8]
je 0x140054b5a
cmp esi, 1
jl 0x140054b5a
mov eax, dword [rbp + 0x24]
mov r9d, dword [rbp + 0x20]
mov r8, rdi
mov rcx, r12
mov edx, 0xfffffff7
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140054b55
mov edx, 0xfffffff6
call fcn.140054078
test esi, esi
je 0x140054b64
mov dword [rdi + 0x2a8], ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rbp
ret