joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d610
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 0x14004d63d
lea rcx, [0x1400c6a00]
mov rdx, r8
call fcn.14003dd90
mov dword [0x1400c6ab8], eax
jmp 0x14004d643
mov eax, dword [0x1400c6ab8]
cmp eax, 0xffffffff
je 0x14004d7b9
movsxd rcx, eax
mov rax, qword [0x1400c6aa0]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x6a], 0
mov rsi, qword [rdi]
je 0x14004d699
cmp dword [rdi + 0x298], 0
mov byte [rdi + 0x6a], 0
jl 0x14004d699
cmp byte [rdi + 0x2a4], 0
je 0x14004d699
mov r8d, dword [rdi + 0x2a0]
lea rcx, [0x1400c6a00]
mov rdx, rdi
call fcn.14004cc30
mov byte [rdi + 0x2a4], 0
cmp ebx, 8
jg 0x14004d733
je 0x14004d6ff
test ebx, ebx
je 0x14004d6e6
cmp ebx, 1
je 0x14004d6ff
mov edx, 6
cmp ebx, 2
je 0x14004d6cd
cmp ebx, 3
je 0x14004d794
jle 0x14004d6f5
cmp ebx, 5
jle 0x14004d6ff
cmp ebx, edx
je 0x14004d6d1
jmp 0x14004d6f5
mov byte [rdi + 0x68], 1
cmp byte [rdi + 0x68], 0
je 0x14004d7b9
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004d6f5
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x68], 0
mov eax, 1
jmp 0x14004d7bb
cmp byte [rdi + 0x68], 0
jne 0x14004d7b9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004d72d
cmp ebx, 4
je 0x14004d72d
mov rcx, qword [0x1400c88b0]
mov rdx, rsi
call fcn.140041bd0
mov byte [rdi + 0x68], 1
jmp 0x14004d6f5
mov edx, ebx
sub edx, 9
je 0x14004d794
sub edx, 0x37
je 0x14004d78d
sub edx, 1
je 0x14004d77d
sub edx, 1
je 0x14004d76b
cmp edx, 1
jne 0x14004d6f5
xor ecx, ecx
mov byte [rdi + 0x69], 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 0x14004d6f5
mov rcx, rsi
mov byte [rdi + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004d6f5
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004d6f5
mov edx, 1
jmp 0x14004d77f
cmp byte [rdi + 0x68], 0
je 0x14004d7b9
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400c88b0]
mov rdx, rsi
call fcn.140041bd0
jmp 0x14004d6f5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e2a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
xor ebx, ebx
lea rax, [rsp + 0x58]
mov ebp, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r9, [r11 + 0x18]
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov rsi, rcx
mov dword [r11 + 0x18], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14004e3e6
mov edi, ebp
or edi, 0x20019
lea rax, [rsp + 0x298]
lea rdx, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x14004e400
mov rcx, qword [rsp + 0x298]
mov edx, ebp
call fcn.14004e2a0
mov rcx, qword [rsp + 0x298]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004e400
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
call fcn.14003de60
cmp al, bl
je 0x14004e383
lea rcx, [rsp + 0x40]
call fcn.14004e270
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov r8d, ebp
mov rcx, rsi
call rax
jmp 0x14004e391
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rcx, [rsp + 0x40]
cmp eax, ebx
jne 0x14004e3fb
call fcn.14003df10
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x290], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14004e2fd
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.14003df10
xor al, al
jmp 0x14004e3e8

Function at 0x14004ea40
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004eae9
call fcn.14003e9a0
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004eaf7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004eae1
mov r8, rcx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.14003e920
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004eae9
mov rcx, qword [rsp + 0x48]
jmp 0x14004ea95
mov rcx, rdi
call fcn.140016a60
cmp qword [rbx + 0x10], 0
jne 0x14004eb0f
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004eb04
mov rcx, rdi
call fcn.140016a60
mov edx, SafeArrayAllocDescriptor
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004eb17
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004ea00
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004eb30
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.140019694]
lea rdx, [0x14009e844]
mov qword [rsp + 0x28], rax
call fcn.1400195fc
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004eb76
lea edx, [rax + 0x1f]
jmp 0x14004ebf1
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004ebec
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004ebd1
lea rcx, [rsp + 0x30]
mov rdx, rax
mov r9, rdi
mov r8d, 1
call fcn.140018ce4
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004eb81
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004ebe2
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004ebf4
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004ebfd
mov edx, SafeArrayAllocDescriptor
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004ea00
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.14003e820
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14004ecd0
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x14004ece7
movzx eax, word [rcx + 0x100]
jmp 0x14004ecee
mov ax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x14004ed04
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x14004ed14
mov edx, ecx
jmp 0x14004ed2a
cmp ecx, 2
jne 0x14004ed28
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14004ed30
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14004ed76
cmp byte [rbx + 0x19c], 0
je 0x14004ed74
and dword [rsp + 0x44], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14004f070
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f105
lea rdx, [0x14009e2cc]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14004f0f3
lea rdx, [0x1400a14c0]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14004f0f3
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.140041170
cmp al, bl
je 0x14004f123
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14004f0ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
cmp bpl, bl
jne 0x14004f133
mov al, sil
jmp 0x14004f1ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004f1ee
lea rdx, [rsp + 0x30]
lea rcx, [0x1400a14b8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f1e1
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14004f1cb
lea rdx, [0x14009e2cc]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14004f1cb
lea rdx, [0x1400a14c0]
lea rcx, [rsp + 0x5c]
call fcn.140017790
cmp eax, ebx
je 0x14004f1cb
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.14004f070
cmp al, bl
je 0x14004f1e3
lea rcx, [0x1400a14c0]
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 0x14004f159
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004f730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c5f04], 0
lea rbx, [0x1400c5530]
jne 0x14004f755
xor ecx, ecx
call fcn.140019460
mov rcx, rax
call fcn.14003f3e0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400c5520], 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 0x14004f778
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 0x14004f7a9
mov ecx, dword [0x1400c5530]
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 0x14004fc70
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 0x14004fcb3
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fcfb
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004fce2
mov rax, qword [r9]
test rax, rax
jne 0x14004fcad
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 0x14004fd57
or rax, 0xffffffffffffffff
jmp 0x14004fcad
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004fd0e
cmp rax, 0xffffffffffffffff
je 0x14004fd0e
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14003f690
jmp 0x14004fcaa
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009e788]
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 0x14004fca6
test rax, rax
je 0x14004fca6
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.14003f690
mov rcx, rbx
call fcn.14003f700
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fcaa
Function at 0x14004fd80
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 0x14004fdc1
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004fe07
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004fdf0
mov rax, qword [r9]
test rax, rax
jne 0x14004fdbb
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 0x14004fe63
or rax, 0xffffffffffffffff
jmp 0x14004fdbb
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004fe1a
cmp rax, 0xffffffffffffffff
je 0x14004fe1a
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14003f690
jmp 0x14004fdb8
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009e788]
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 0x14004fdb4
test rax, rax
je 0x14004fdb4
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.14003f690
mov rcx, rbx
call fcn.14003f700
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004fdb8

Function at 0x14004fec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.14003f730
test al, al
je 0x14004ff02
test rdx, rdx
je 0x14004ff02
test r8, r8
je 0x14004ff02
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 0x14004ff02
mov rcx, rbx
call fcn.14003f700
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret

Function at 0x140050440
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140050477
mov edx, 0x1388
call fcn.140040790
test al, al
jne 0x140050494
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 0x14005048a
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 0x1400507b0
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 [0x1400b549e], dil
test ebx, ebx
je 0x140050826
mov byte [0x1400b549f], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x140050690]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.140018674
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 0x14005085b
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400b549f], 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 [0x1400b549e], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x1400509e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.1400509c0
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140051640
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov byte [rdx], sil
mov byte [rdx + 1], sil
mov byte [rdx + 2], sil
mov byte [rdx + 3], sil
mov byte [rdx + 4], sil
mov byte [rdx + 5], sil
cmp qword [rcx + 0x28], rsi
je 0x1400516e3
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x140051698
cmp byte [rsp + 0x30], al
jne 0x1400516a1
cmp byte [rdi + 0x1e], sil
jne 0x1400516a1
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x1400516b4
cmp byte [rdi + 0x1f], sil
jne 0x1400516b4
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x1400516c4
cmp byte [rdi + 0x20], sil
jne 0x1400516c4
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x1400516d4
cmp byte [rdi + 0x21], sil
jne 0x1400516d4
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x1400517b9
jmp 0x1400517af
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x140051708
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140051711
cmp byte [rdi + 0x1e], sil
jne 0x140051711
mov byte [rbx], 1
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140051731
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14005173b
cmp byte [rdi + 0x1f], sil
jne 0x14005173b
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14005175b
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140051765
cmp byte [rdi + 0x20], sil
jne 0x140051765
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140051785
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14005178f
cmp byte [rdi + 0x21], sil
jne 0x14005178f
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x1400517af
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x1400517b9
cmp byte [rdi + 0x22], sil
jne 0x1400517b9
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140051980
Capabilities:
Encode data using add xor sub operations
Encode data using xor

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, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r12d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r12 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140016ed8
lea ecx, [r12 + r12]
movsxd rbx, ecx
mov rcx, qword [rsi]
mov rbp, rax
lea rdx, [rdi + rcx]
mov r8, rbx
mov rcx, rax
call fcn.140016710
add qword [rsi], rbx
xor eax, eax
cmp r12d, eax
movsxd r11, r12d
mov word [rbp + r11*2], ax
jle 0x140051a13
mov rax, rbp
mov rcx, r12
xor word [rax], r12w
add rax, 2
sub rcx, 1
jne 0x140051a05
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r12
ret

Function at 0x140052640
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
cmp r8b, 1
jne 0x140052673
call fcn.140043380
test al, al
jne 0x140052693
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 0x140052689
xor edx, edx
mov rcx, rbx
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 0x140052ab0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, qword [rcx]
mov r8b, 1
mov rdi, rcx
call fcn.140052640
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x140052b0d
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8, rbx
shl eax, 0x10
mov edx, 0x100
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8, rbx
jmp 0x140052b49
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
shl eax, 0x10
mov edx, 0x101
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rdi]
xor r8d, r8d
mov rcx, rdi
call fcn.140052640
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140054df0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x30
lea rcx, [0x1400c6a00]
mov r12d, r9d
mov rbp, r8
mov rsi, rdx
call fcn.14003dd90
movsxd rcx, eax
mov rax, qword [0x1400c6aa0]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp rbp, rsi
jne 0x140054e74
cmp qword [rbx + 0x2b0], 0
je 0x140054ee6
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2b0]
mov qword [rsp + 0x20], rsi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x140054f08
lea rcx, [0x1400c6a00]
mov rdx, rbp
call fcn.14004e150
cmp eax, 0xffffffff
je 0x140054ee6
movsxd rdi, eax
mov rax, qword [0x1400c6ac8]
mov rcx, qword [rax + rdi*8]
mov rdx, qword [rcx]
mov al, byte [rdx + 0xf4]
cmp al, 0xe
je 0x140054ee6
cmp al, 0xf
je 0x140054ee6
cmp al, 0x13
je 0x140054ee6
cmp al, 0x10
je 0x140054ee6
cmp qword [rdx + 0x10], 0
je 0x140054ee6
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [0x1400c6ac8]
and qword [rsp + 0x28], 0
mov rax, qword [r11 + rdi*8]
mov rcx, qword [rax]
mov rax, qword [rbx]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140054e5d
movzx r9d, word [rsp + 0x70]
movzx eax, r12w
mov r8, rbp
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rsi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret