joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043130
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140043163
mov eax, 1
jmp 0x1400432c8
xor ebx, ebx
cmp rax, rbx
jne 0x14004317c
lea rcx, [0x1400964d8]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, ebx
je 0x140043197
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x1400432c1
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r12d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r12d
mov edx, eax
mov r8d, esi
mov r13d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x14004328f
xor edx, edx
lea esi, [rdx + 0x12]
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
je 0x140043294
lea ebx, [rsi - 0xe]
jmp 0x140043294
mov ebx, 3
xor r8d, r8d
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x1400432c6
mov ebx, 2
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140043380
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test edx, edx
js 0x14004340b
push rbx
sub rsp, 0x30
mov ebx, edx
test edx, edx
jne 0x140043397
xor ecx, ecx
jmp 0x140043400
cmp edx, 0xf
jae 0x1400433fe
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400433fe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x50]
sub r11, qword [rsp + 0x58]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x14009d800]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x1400433b6
jmp 0x140043406
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x30
pop rbx
ret

Function at 0x1400435b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x120
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x68], rbx
je 0x14004363d
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11b, 0x80
cmp byte [rsp + 0x31], r11b
jne 0x1400435ed
bt dword [rdi + 0x60], 0xb
lea eax, [rbx + 8]
cmovae ebx, eax
cmp byte [rsp + 0x32], r11b
jne 0x1400435fe
bt dword [rdi + 0x60], 8
jb 0x1400435fe
or ebx, 1
mov eax, dword [rdi + 0x78]
cmp byte [rsp + rax + 0x20], r11b
je 0x14004360f
cmp byte [rsp + 0x30], r11b
jne 0x140043619
bt dword [rdi + 0x60], 9
jb 0x140043619
or ebx, 2
cmp byte [rsp + 0xc1], r11b
jne 0x14004362d
bt dword [rdi + 0x60], 0xa
jb 0x14004362d
or ebx, 4
cmp byte [rsp + 0x7b], r11b
jne 0x140043713
jmp 0x140043709
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x140043662
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14004366f
bt dword [rdi + 0x60], 0xb
mov eax, 8
cmovae ebx, eax
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x14004368f
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140043699
bt dword [rdi + 0x60], 8
jb 0x140043699
or ebx, 1
mov ecx, dword [rdi + 0x78]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x1400436b5
mov ecx, dword [rdi + 0x78]
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x1400436bf
bt dword [rdi + 0x60], 9
jb 0x1400436bf
or ebx, 2
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x1400436df
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x1400436e9
bt dword [rdi + 0x60], 0xa
jb 0x1400436e9
or ebx, 4
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140043709
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140043713
bt dword [rdi + 0x60], 0xc
jb 0x140043713
or ebx, 0x10
lea r11, [rsp + 0x120]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140043730
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14004375f
cmp byte [rcx + 9], dl
je 0x140043859
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x140043810
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r12 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400be44c], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x1400437e9
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400be44c]
mov dword [0x1400be448], eax
cmp ecx, eax
je 0x1400437d7
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400be448]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x140043859
test r12d, r12d
jne 0x140043859
test ebp, ebp
jne 0x140043859
mov eax, dword [0x1400be44c]
cmp ebx, eax
jne 0x140043859
cmp eax, dword [0x1400be448]
jne 0x140043859
and qword [rsi + 0x68], 0
jmp 0x140043859
test rdi, rdi
je 0x140043844
mov edx, dword [0x1400be448]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400be44c]
mov edx, dword [0x1400be448]
cmp r11d, edx
je 0x14004384b
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400be44c]
xor r8d, r8d
mov edx, r11d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140044c00
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rcx, rdx
cmp r8b, 1
jne 0x140044c5a
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x140044c77
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140044c6d
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret
Function at 0x140045460
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x68]
mov rsi, r9
mov rbp, rdx
mov r8, qword [rsi]
xor r9d, r9d
mov rcx, rbp
lea edx, [r9 + 3]
mov qword [rax - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
cmp eax, ebx
jne 0x1400454d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400454d6
mov ecx, dword [rdi]
call fcn.140045430
mov qword [rsi], rax
cmp rax, rbx
je 0x1400454d6
mov r9d, dword [rdi]
lea edx, [rbx + 3]
mov r8, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
je 0x1400454d6
mov ebx, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140045540
Capabilities:
Create thread

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
sub rsp, 0x40
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rbp, r9
mov r12, r8
mov rdi, rdx
call fcn.140045340
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rax
mov r9, rsi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsi + 0x10]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r11, qword [r12]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1400454f0]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], r11
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140045620
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
movsx r9d, byte [rsp + 0x60]
and r9d, 2
mov r11, r8
mov rcx, rdx
or r9d, 4
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r8, r10
mov rdx, r11
shr r9d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, ebx
mov rbx, qword [rsp + 0x40]
setne al
add rsp, 0x30
pop rdi
ret
Function at 0x140045870
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x70
xor r10d, r10d
mov rbp, r9
mov r12, r8
mov qword [rax - 0x20], r10
mov eax, dword [rsp + 0xb0]
lea ebx, [r10 + 1]
mov r13, rdx
test bl, al
je 0x1400458ab
mov edi, ebx
jmp 0x1400458b8
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x140045906
and qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004596c
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xc8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004597c
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x70]
mov al, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14004e220
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
test r8, r8
je 0x14004e24d
lea rcx, [0x1400bbcd0]
mov rdx, r8
call fcn.14003f110
mov dword [0x1400bbd88], eax
jmp 0x14004e253
mov eax, dword [0x1400bbd88]
cmp eax, 0xffffffff
je 0x14004e3c9
movsxd rcx, eax
mov rax, qword [0x1400bbd70]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x62], 0
mov rsi, qword [rdi]
je 0x14004e2a9
cmp dword [rdi + 0x290], 0
mov byte [rdi + 0x62], 0
jl 0x14004e2a9
cmp byte [rdi + 0x29c], 0
je 0x14004e2a9
mov r8d, dword [rdi + 0x298]
lea rcx, [0x1400bbcd0]
mov rdx, rdi
call fcn.14004d7f0
mov byte [rdi + 0x29c], 0
cmp ebx, 8
jg 0x14004e343
je 0x14004e30f
test ebx, ebx
je 0x14004e2f6
cmp ebx, 1
je 0x14004e30f
mov edx, 6
cmp ebx, 2
je 0x14004e2dd
cmp ebx, 3
je 0x14004e3a4
jle 0x14004e305
cmp ebx, 5
jle 0x14004e30f
cmp ebx, edx
je 0x14004e2e1
jmp 0x14004e305
mov byte [rdi + 0x60], 1
cmp byte [rdi + 0x60], 0
je 0x14004e3c9
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004e305
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x60], 0
mov eax, 1
jmp 0x14004e3cb
cmp byte [rdi + 0x60], 0
jne 0x14004e3c9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004e33d
cmp ebx, 4
je 0x14004e33d
lea rcx, [0x1400ab250]
mov rdx, rsi
call fcn.140043130
mov byte [rdi + 0x60], 1
jmp 0x14004e305
mov edx, ebx
sub edx, 9
je 0x14004e3a4
sub edx, 0x37
je 0x14004e39d
sub edx, 1
je 0x14004e38d
sub edx, 1
je 0x14004e37b
cmp edx, 1
jne 0x14004e305
xor ecx, ecx
mov byte [rdi + 0x61], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x14004e305
mov rcx, rsi
mov byte [rdi + 0x61], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004e305
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004e305
mov edx, 1
jmp 0x14004e38f
cmp byte [rdi + 0x60], 0
je 0x14004e3c9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x1400ab250]
mov rdx, rsi
call fcn.140043130
jmp 0x14004e305
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004edf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rcx
jmp 0x14004ee78
xor r9d, r9d
mov eax, 0x100
lea rdx, [rsp + 0x40]
cmp byte [0x1400bbe7a], r9b
mov rcx, rdi
cmovne r9d, eax
lea rax, [rsp + 0x260]
xor r8d, r8d
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004eed5
mov rcx, qword [rsp + 0x260]
call fcn.14004edf0
mov rcx, qword [rsp + 0x260]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004eed5
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14004eed5
mov rcx, rdi
lea rax, [rsp + 0x268]
lea r9, [rsp + 0x258]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x258], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14004ee02
mov al, 1
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
xor al, al
jmp 0x14004eec4

Function at 0x14004efe0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov r13d, 2
mov word [rdx], r13w
mov rcx, r8
or edx, 0xffffffff
mov ebp, r9d
call fcn.140017480
mov rcx, rax
mov rbx, rax
call sub.WSOCK32.dll_inet_addr
mov rcx, rbx
mov r12d, eax
call fcn.140018614
cmp r12d, 0xffffffff
jne 0x14004f038
lea edx, [r13 - 1]
jmp 0x14004f059
lea eax, [rbp - 1]
mov dword [rsi + 4], r12d
cmp eax, 0xfffe
ja 0x14004f056
movzx ecx, bp
call sub.WSOCK32.dll_htons
mov word [rsi + 2], ax
mov al, 1
jmp 0x14004f066
mov edx, r13d
xor r8d, r8d
mov rcx, rdi
call fcn.140003930
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x14004f1e0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rcx, rdx
lea rdx, [rsp + 0x30]
mov ebp, r9d
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f26c
lea rdx, [0x140097d54]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14004f25a
lea rdx, [0x14009aed8]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14004f25a
lea rcx, [rsp + 0x5c]
mov r8d, ebp
mov rdx, rsi
call fcn.1400422a0
cmp al, bl
je 0x14004f289
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14004f21c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov sil, byte [rsp + 0x2c0]
cmp sil, bl
jne 0x14004f299
mov al, 1
jmp 0x14004f34d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004f34d
lea rdx, [rsp + 0x30]
lea rcx, [0x14009aed0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f340
test byte [rsp + 0x30], 0x10
je 0x14004f32a
lea rdx, [0x140097d54]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14004f32a
lea rdx, [0x14009aed8]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14004f32a
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
mov r9d, ebp
mov byte [rsp + 0x20], sil
call fcn.14004f1e0
cmp al, bl
je 0x14004f342
lea rcx, [0x14009aed8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14004f2b8
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004f650
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400bbcb4], 0
lea rbx, [0x1400bb2e0]
jne 0x14004f675
xor ecx, ecx
call fcn.14001b53c
mov rcx, rax
call fcn.140040040
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400bb2d8], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
sub r9d, 1
jne 0x14004f698
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
sub r9d, 1
mov dword [rbx], edx
mov rbx, r8
jne 0x14004f6c9
mov ecx, dword [0x1400bb2e0]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004fb20
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x58], 0
mov rdi, rcx
je 0x14004fb88
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x14004fb88
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x58]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x58]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rdi + 0x58]
call fcn.140040650
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004fd20
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004fd63
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fdab
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004fd92
mov rax, qword [r9]
test rax, rax
jne 0x14004fd5d
mov rdx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004fe07
or rax, 0xffffffffffffffff
jmp 0x14004fd5d
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004fdbe
cmp rax, 0xffffffffffffffff
je 0x14004fdbe
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400405e0
jmp 0x14004fd5a
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x140098258]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004fd56
test rax, rax
je 0x14004fd56
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400405e0
mov rcx, rbx
call fcn.140040650
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fd5a

Function at 0x14004fe30
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004fe71
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004feb7
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004fea0
mov rax, qword [r9]
test rax, rax
jne 0x14004fe6b
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004ff13
or rax, 0xffffffffffffffff
jmp 0x14004fe6b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004feca
cmp rax, 0xffffffffffffffff
je 0x14004feca
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400405e0
jmp 0x14004fe68
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x140098258]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004fe64
test rax, rax
je 0x14004fe64
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.1400405e0
mov rcx, rbx
call fcn.140040650
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fe68