joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043220
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test edx, edx
js 0x1400432ab
push rbx
sub rsp, 0x30
mov ebx, edx
test edx, edx
jne 0x140043237
xor ecx, ecx
jmp 0x1400432a0
cmp edx, 0xf
jae 0x14004329e
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004329e
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 [0x14009e900]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x140043256
jmp 0x1400432a6
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x30
pop rbx
ret

Function at 0x140043450
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 0x1400434dd
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11b, 0x80
cmp byte [rsp + 0x31], r11b
jne 0x14004348d
bt dword [rdi + 0x60], 0xb
lea eax, [rbx + 8]
cmovae ebx, eax
cmp byte [rsp + 0x32], r11b
jne 0x14004349e
bt dword [rdi + 0x60], 8
jb 0x14004349e
or ebx, 1
mov eax, dword [rdi + 0x78]
cmp byte [rsp + rax + 0x20], r11b
je 0x1400434af
cmp byte [rsp + 0x30], r11b
jne 0x1400434b9
bt dword [rdi + 0x60], 9
jb 0x1400434b9
or ebx, 2
cmp byte [rsp + 0xc1], r11b
jne 0x1400434cd
bt dword [rdi + 0x60], 0xa
jb 0x1400434cd
or ebx, 4
cmp byte [rsp + 0x7b], r11b
jne 0x1400435b3
jmp 0x1400435a9
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x140043502
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14004350f
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 0x14004352f
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140043539
bt dword [rdi + 0x60], 8
jb 0x140043539
or ebx, 1
mov ecx, dword [rdi + 0x78]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140043555
mov ecx, dword [rdi + 0x78]
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x14004355f
bt dword [rdi + 0x60], 9
jb 0x14004355f
or ebx, 2
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x14004357f
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140043589
bt dword [rdi + 0x60], 0xa
jb 0x140043589
or ebx, 4
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x1400435a9
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x1400435b3
bt dword [rdi + 0x60], 0xc
jb 0x1400435b3
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 0x1400435d0
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 0x1400435ff
cmp byte [rcx + 9], dl
je 0x1400436f9
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x1400436b0
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 [0x1400c044c], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x140043689
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400c044c]
mov dword [0x1400c0448], eax
cmp ecx, eax
je 0x140043677
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400c0448]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x1400436f9
test r12d, r12d
jne 0x1400436f9
test ebp, ebp
jne 0x1400436f9
mov eax, dword [0x1400c044c]
cmp ebx, eax
jne 0x1400436f9
cmp eax, dword [0x1400c0448]
jne 0x1400436f9
and qword [rsi + 0x68], 0
jmp 0x1400436f9
test rdi, rdi
je 0x1400436e4
mov edx, dword [0x1400c0448]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c044c]
mov edx, dword [0x1400c0448]
cmp r11d, edx
je 0x1400436eb
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c044c]
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 0x140044b90
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rcx, rdx
cmp r8b, 1
jne 0x140044bea
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 0x140044c07
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 0x140044bfd
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 0x1400453f0
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 0x140045461
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140045466
mov ecx, dword [rdi]
call fcn.140045300
mov qword [rsi], rax
cmp rax, rbx
je 0x140045466
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 0x140045466
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 0x1400454d0
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.140045330
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, [0x140045480]
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 0x1400455b0
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 0x140045800
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 0x14004583b
mov edi, ebx
jmp 0x140045848
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x140045896
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 0x1400458fc
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 0x14004590c
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 0x14004e270
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 0x14004e29d
lea rcx, [0x1400bdcd0]
mov rdx, r8
call fcn.14003efa0
mov dword [0x1400bdd88], eax
jmp 0x14004e2a3
mov eax, dword [0x1400bdd88]
cmp eax, 0xffffffff
je 0x14004e419
movsxd rcx, eax
mov rax, qword [0x1400bdd70]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x62], 0
mov rsi, qword [rdi]
je 0x14004e2f9
cmp dword [rdi + 0x290], 0
mov byte [rdi + 0x62], 0
jl 0x14004e2f9
cmp byte [rdi + 0x29c], 0
je 0x14004e2f9
mov r8d, dword [rdi + 0x298]
lea rcx, [0x1400bdcd0]
mov rdx, rdi
call fcn.14004d7f0
mov byte [rdi + 0x29c], 0
cmp ebx, 8
jg 0x14004e393
je 0x14004e35f
test ebx, ebx
je 0x14004e346
cmp ebx, 1
je 0x14004e35f
mov edx, 6
cmp ebx, 2
je 0x14004e32d
cmp ebx, 3
je 0x14004e3f4
jle 0x14004e355
cmp ebx, 5
jle 0x14004e35f
cmp ebx, edx
je 0x14004e331
jmp 0x14004e355
mov byte [rdi + 0x60], 1
cmp byte [rdi + 0x60], 0
je 0x14004e419
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004e355
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x60], 0
mov eax, 1
jmp 0x14004e41b
cmp byte [rdi + 0x60], 0
jne 0x14004e419
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004e38d
cmp ebx, 4
je 0x14004e38d
lea rcx, [0x1400ad250]
mov rdx, rsi
call fcn.140042fd0
mov byte [rdi + 0x60], 1
jmp 0x14004e355
mov edx, ebx
sub edx, 9
je 0x14004e3f4
sub edx, 0x37
je 0x14004e3ed
sub edx, 1
je 0x14004e3dd
sub edx, 1
je 0x14004e3cb
cmp edx, 1
jne 0x14004e355
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 0x14004e355
mov rcx, rsi
mov byte [rdi + 0x61], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004e355
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004e355
mov edx, 1
jmp 0x14004e3df
cmp byte [rdi + 0x60], 0
je 0x14004e419
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x1400ad250]
mov rdx, rsi
call fcn.140042fd0
jmp 0x14004e355
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ee40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rcx
jmp 0x14004eec8
xor r9d, r9d
mov eax, 0x100
lea rdx, [rsp + 0x40]
cmp byte [0x1400bde7a], 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 0x14004ef25
mov rcx, qword [rsp + 0x260]
call fcn.14004ee40
mov rcx, qword [rsp + 0x260]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004ef25
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14004ef25
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 0x14004ee52
mov al, 1
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
xor al, al
jmp 0x14004ef14

Function at 0x14004f030
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.140017380
mov rcx, rax
mov rbx, rax
call sub.WSOCK32.dll_inet_addr
mov rcx, rbx
mov r12d, eax
call fcn.1400185f4
cmp r12d, 0xffffffff
jne 0x14004f088
lea edx, [r13 - 1]
jmp 0x14004f0a9
lea eax, [rbp - 1]
mov dword [rsi + 4], r12d
cmp eax, 0xfffe
ja 0x14004f0a6
movzx ecx, bp
call sub.WSOCK32.dll_htons
mov word [rsi + 2], ax
mov al, 1
jmp 0x14004f0b6
mov edx, r13d
xor r8d, r8d
mov rcx, rdi
call fcn.140003d50
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 0x14004f230
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 0x14004f2bc
lea rdx, [0x140098e4c]
lea rcx, [rsp + 0x5c]
call fcn.140018ccc
cmp eax, ebx
je 0x14004f2aa
lea rdx, [0x14009bfd8]
lea rcx, [rsp + 0x5c]
call fcn.140018ccc
cmp eax, ebx
je 0x14004f2aa
lea rcx, [rsp + 0x5c]
mov r8d, ebp
mov rdx, rsi
call fcn.1400420f0
cmp al, bl
je 0x14004f2d9
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14004f26c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov sil, byte [rsp + 0x2c0]
cmp sil, bl
jne 0x14004f2e9
mov al, 1
jmp 0x14004f39d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004f39d
lea rdx, [rsp + 0x30]
lea rcx, [0x14009bfd0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f390
test byte [rsp + 0x30], 0x10
je 0x14004f37a
lea rdx, [0x140098e4c]
lea rcx, [rsp + 0x5c]
call fcn.140018ccc
cmp eax, ebx
je 0x14004f37a
lea rdx, [0x14009bfd8]
lea rcx, [rsp + 0x5c]
call fcn.140018ccc
cmp eax, ebx
je 0x14004f37a
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.14004f230
cmp al, bl
je 0x14004f392
lea rcx, [0x14009bfd8]
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 0x14004f308
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 0x14004f690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400bdcb4], 0
lea rbx, [0x1400bd2e0]
jne 0x14004f6b5
xor ecx, ecx
call fcn.14001b51c
mov rcx, rax
call fcn.14003fea0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400bd2d8], 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 0x14004f6d8
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 0x14004f709
mov ecx, dword [0x1400bd2e0]
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 0x14004fb60
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 0x14004fbc8
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x14004fbc8
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.1400404b0
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 0x14004fd60
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 0x14004fda3
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fdeb
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004fdd2
mov rax, qword [r9]
test rax, rax
jne 0x14004fd9d
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 0x14004fe47
or rax, 0xffffffffffffffff
jmp 0x14004fd9d
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004fdfe
cmp rax, 0xffffffffffffffff
je 0x14004fdfe
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140040440
jmp 0x14004fd9a
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x140099358]
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 0x14004fd96
test rax, rax
je 0x14004fd96
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140040440
mov rcx, rbx
call fcn.1400404b0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fd9a

Function at 0x14004fe70
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 0x14004feb1
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fef7
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004fee0
mov rax, qword [r9]
test rax, rax
jne 0x14004feab
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 0x14004ff53
or rax, 0xffffffffffffffff
jmp 0x14004feab
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004ff0a
cmp rax, 0xffffffffffffffff
je 0x14004ff0a
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140040440
jmp 0x14004fea8
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x140099358]
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 0x14004fea4
test rax, rax
je 0x14004fea4
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140040440
mov rcx, rbx
call fcn.1400404b0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fea8
Function at 0x140050070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.1400404e0
test al, al
je 0x1400500b2
test rdx, rdx
je 0x1400500b2
test r8, r8
je 0x1400500b2
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400500b2
mov rcx, rbx
call fcn.1400404b0
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret

Function at 0x140050420
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140050457
mov edx, 0x1388
call fcn.140041800
test al, al
jne 0x140050474
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 0x14005046a
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, 0x20
pop rbx
ret

Function at 0x140050790
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov byte [0x1400ad24a], dil
test ebx, ebx
je 0x140050806
mov byte [0x1400ad24b], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x140050670]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.14001ab08
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14005083b
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400ad24b], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400ad24a], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret