joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003eef8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x14003ef6f
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x14003ef3f
call fcn.14002af50
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x14003ef59
call fcn.14002af50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14003ef6f
call fcn.14002af50
call fcn.1400409e4
cmp qword [rax + 0x68], 0
je 0x14003ef89
mov rdx, rbx
mov rcx, rbp
call fcn.14003e3b8
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.14003f1f8
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x14003efb0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x14003efbf
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003efec
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, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140032e18
xor ebp, ebp
test eax, eax
jne 0x14003f09a
mov rdx, qword [str.AfxClosePending]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetPropA]
mov rsi, rax
test rax, rax
je 0x14003f0bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14003f0bd
cmp dword [rax], 1
jne 0x14003f0b4
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x476
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
jne 0x14003f0b4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [str.AfxClosePending]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_RemovePropA]
test rax, rax
je 0x14003f087
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xc0]
mov rcx, rbx
call qword [case.0x140045926.0]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rdi + 8], 0x100
jne 0x14003f104
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003f104
mov rax, qword [rdi + 0x10]
cmp rax, 9
je 0x14003f0ea
add rax, 0xffffffffffffffdf
cmp rax, 1
ja 0x14003f104
mov rcx, qword [rbx + 0x40]
mov r9, rdi
xor r8d, r8d
mov edx, 0x475
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
jne 0x14003f09a
mov rdx, rdi
mov rcx, rbx
call fcn.140032df4
jmp 0x14003f09f
Function at 0x1400410b4
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x90
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, r8
lea r15, [r11 + 0x28]
mov rdi, rcx
call fcn.140041060
cmp dword [rdi], 0
mov rsi, rax
mov dword [rdi + 0x14], 1
je 0x140041149
mov rbx, qword [r15]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r9, rbx
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x40
call fcn.140041204
cmp eax, 1
je 0x1400411c2
mov ecx, dword [rsp + 0xd8]
or r8d, 0xffffffff
xor edx, edx
call fcn.1400383bc
mov rcx, rdi
call fcn.140041004
jmp 0x1400411c2
call fcn.1401ccf98
mov ebx, dword [rax]
call fcn.1401ccf98
and dword [rax], 0
call fcn.140008810
mov r9d, 0x3f
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.1401d38f0
call fcn.1401ccf98
cmp dword [rax], 0
je 0x1400411ae
call fcn.1401ccf98
cmp dword [rax], 0
je 0x1400411b5
cmp dword [rax], 0xc
je 0x1400411f6
cmp dword [rax], 0x16
je 0x1400411eb
cmp dword [rax], 0x22
je 0x1400411eb
cmp dword [rax], 0x50
jne 0x1400411e0
jmp 0x1400411b5
call fcn.1401ccf98
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140099488
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x90
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140007000
int3
mov ecx, 0x80070057
call fcn.140007000
int3
mov ecx, 0x8007000e
call fcn.140007000
int3

Function at 0x14004a46c
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rcx + 0x20], 0
lea rax, vtable.CInternetSession.0
and qword [rcx + 0x18], 0
mov edi, r9d
mov qword [rcx], rax
mov r10, rdx
mov qword [rcx + 8], r8
mov rbx, rcx
test rdx, rdx
jne 0x14004a4a4
call fcn.1400409e4
mov r10, qword [rax + 0x20]
mov eax, dword [rsp + 0x70]
mov edx, edi
mov r9, qword [rsp + 0x68]
mov rcx, r10
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbx + 0x10], rax
mov rdi, rax
test rax, rax
je 0x14004a512
lea rcx, [0x1402c3e08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rdi
lea rcx, [0x1402c3dc0]
call fcn.140098e90
lea rcx, [0x1402c3df8]
mov qword [rax], rbx
mov rax, qword [0x1402c3df8]
mov rax, qword [rax + 0x28]
call qword [case.0x140045926.0]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.14004abc0
int3

Function at 0x14004b074
Capabilities:
Query remote server for available data

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
test rcx, rcx
je 0x14004b0a2
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x14004b0a2
mov ebx, dword [rsp + 0x30]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14004bb44
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rdi, [rcx + 0x70]
xor r15d, r15d
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rdi], r15
jne 0x14004bbb2
mov edx, 0x1000
call fcn.14004bd84
test eax, eax
je 0x14004bbae
mov r8d, dword [rbx + 0x68]
lea r9, [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bc65
mov eax, dword [rsp + 0x40]
lea r14, [rbx + 0x70]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x6c], r15d
jmp 0x14004bbb5
xor eax, eax
jmp 0x14004bc29
mov r14, rdi
mov edx, dword [rbx + 0x6c]
mov ecx, edx
add rcx, qword [rdi]
mov rdi, rsi
sub ebp, 1
je 0x14004bc18
cmp edx, dword [rbx + 0x78]
jb 0x14004bbf6
mov r8d, dword [rbx + 0x68]
lea r9, [rsp + 0x40]
mov rdx, qword [r14]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bc59
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x78], eax
test eax, eax
je 0x14004bc42
mov rcx, qword [r14]
mov dword [rbx + 0x6c], r15d
mov al, byte [rcx]
cmp al, 0xd
je 0x14004bc03
mov byte [rdi], al
inc rdi
dec ebp
mov edx, dword [rbx + 0x6c]
inc edx
mov dword [rbx + 0x6c], edx
mov al, byte [rcx]
inc rcx
cmp al, 0xa
je 0x14004bc18
test ebp, ebp
jne 0x14004bbc5
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.1401f22d0
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.1401f22d0
cmp rdi, rsi
cmove rsi, r15
jmp 0x14004bc26
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
Function at 0x14004bed4
Capabilities:
Send data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx + 0x38], 1
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x14004bfee
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14004bfee
mov rdx, qword [rbx + 0x60]
test rdx, rdx
jne 0x14004bf37
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14004bffd
cmp dword [rsp + 0x40], edi
jne 0x14004c009
jmp 0x14004bfca
mov r8d, dword [rbx + 0x5c]
lea eax, [r8 + rdi]
cmp eax, dword [rbx + 0x58]
jb 0x14004bf5e
lea r9, [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14004c015
and dword [rbx + 0x5c], 0
xor r8d, r8d
mov ecx, dword [rbx + 0x58]
cmp edi, ecx
jb 0x14004bf84
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14004c021
jmp 0x14004bfca
lea eax, [r8 + rdi]
cmp eax, ecx
ja 0x14004bfca
sub ecx, r8d
mov r14d, ecx
mov ecx, r8d
add rcx, qword [rbx + 0x60]
test edi, edi
je 0x14004bfc7
test rcx, rcx
jne 0x14004bfb2
call fcn.1401ccf98
mov dword [rax], 0x16
jmp 0x14004c03d
test rsi, rsi
je 0x14004bfdd
cmp r14, rdi
jb 0x14004bfdd
mov r8, rdi
mov rdx, rsi
call fcn.1401f1c30
add dword [rbx + 0x5c], edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov r8, r14
xor edx, edx
call fcn.1401f22d0
test rsi, rsi
jne 0x14004c02d
jmp 0x14004bfa2
mov rcx, qword [rbx + 0x40]
mov edx, 6
call fcn.14004abc0
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.14004abc0
int3
cmp r14, rdi
jae 0x14004c042
call fcn.1401ccf98
mov dword [rax], 0x22
call fcn.1401cce2c
call fcn.140027884
int3
Function at 0x14004cf24
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x14004cffc
xor r8d, r8d
call fcn.14004d398
mov rsi, rax
test rax, rax
je 0x14004d0ac
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14004cfe0
call fcn.14003fb54
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004cfe0
lea ebx, [rax + 1]
jmp 0x14004cfee
mov rcx, qword [rdi]
call fcn.14002a4fc
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004d0aa
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x140045926.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14004d02c
xor ebx, ebx
jmp 0x14004d089
shr ecx, 1
mov dword [r14], ecx
call fcn.14003fb54
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14004d085
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14004d0c1
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14004d0c1
movsxd r9, ecx
mov dl, byte [r9 + rax + 1]
test ecx, ecx
js 0x14004d0c1
cmp ecx, dword [rax - 0x10]
jg 0x14004d0c1
sub dl, bl
shl dl, 4
sub dl, 0x41
add dl, byte [r9 + rax]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14004d045
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004d0aa
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140045926.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140007000
int3
Function at 0x14004d0cc
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14004d147
xor r8d, r8d
call fcn.14004d398
mov rsi, rax
test rax, rax
je 0x14004d143
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14004d143
mov eax, dword [rsp + 0x30]
jmp 0x14004d15d
mov eax, edi
jmp 0x14004d15d
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004d170
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.1401b9f10
sub rsp, rax
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0xfc0]
mov qword [rsp + 0x38], rdx
cmp qword [rcx + 0xb0], 0
je 0x14004d31e
xor r8d, r8d
mov rdx, r10
call fcn.14004d398
mov rsi, rax
test rax, rax
jne 0x14004d1df
mov rdx, r14
jmp 0x14004d356
call fcn.1400292dc
mov rcx, rax
test rax, rax
je 0x14004d38d
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140045926.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x14004d2ba
mov edx, dword [rsp + 0x30]
test edx, edx
js 0x14004d382
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14004d265
lea rcx, [rsp + 0x38]
call fcn.140007e00
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test rbx, rbx
jne 0x14004d294
xor eax, eax
jmp 0x14004d2a8
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401cd1e8
test eax, eax
js 0x14004d382
cmp eax, dword [rbx - 0xc]
jg 0x14004d382
mov dword [rbx - 0x10], eax
mov eax, eax
mov byte [rax + rbx], 0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x14004d2ef
lea rcx, [rbx - 0x18]
call fcn.140007100
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14004d35e
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14004d30f
mov rdx, r14
mov rcx, rdi
call fcn.140005fa0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004d35e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140045926.0]
jmp 0x14004d35e
lea r8, [0x140200c51]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140005fa0
mov rax, rdi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x1060
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140007000
nop
mov ecx, 0x80004005
call fcn.140007000
int3
Function at 0x14004dadc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14004db43
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004db57
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004db57
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140045926.0]
jmp 0x14004db5c
cmp dword [rcx + 8], 0
je 0x14004db57
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x14004db5c
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14006e650
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, 0x20
mov eax, dword [rdx + 8]
mov rbx, rcx
mov ecx, 0x104
xor edi, edi
mov rsi, rdx
cmp eax, ecx
ja 0x14006e7f1
je 0x14006e816
sub eax, 0xa1
je 0x14006e816
sub eax, 1
je 0x14006e816
sub eax, 2
je 0x14006e816
sub eax, 1
je 0x14006e816
sub eax, 2
je 0x14006e816
sub eax, 1
je 0x14006e816
cmp eax, 0x58
jne 0x14006e861
cmp dword [rbx + 0x154], 0xffffffff
je 0x14006e816
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14006e816
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x14006e74b
cmp rax, 1
jne 0x14006e816
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x14006e87f
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x140045926.0]
test eax, eax
jne 0x14006e793
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x14006e711
jmp 0x14006e87f
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x14006e87f
mov eax, esi
mov rcx, rbx
cdq
idiv dword [rbx + 0x150]
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x140045926.0]
test eax, eax
jne 0x14006e793
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x14006e762
jmp 0x14006e87f
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [case.0x140045926.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [case.0x140045926.0]
mov rcx, rax
call fcn.1400369b0
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [case.0x140045926.0]
mov dword [rbx + 0x3b8], edi
jmp 0x14006e87f
sub eax, 0x200
je 0x14006e816
sub eax, 1
je 0x14006e816
sub eax, 1
je 0x14006e816
sub eax, 2
je 0x14006e816
sub eax, 1
je 0x14006e816
sub eax, 2
je 0x14006e816
cmp eax, 1
jne 0x14006e861
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x14006e83e
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14006e83e
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageA]
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x14006e861
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14006e861
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageA]
cmp dword [rsi + 8], 0x203
jne 0x14006e886
lea rax, [rbx + 0x3208]
test rax, rax
je 0x14006e87a
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x14006e886
mov eax, 1
jmp 0x14006e891
mov rdx, rsi
mov rcx, rbx
call fcn.140066dbc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400966e4
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov r13, r8
mov edx, 1
mov r15, rcx
mov r12d, edx
mov r14d, edx
lea rdi, [rsi + 0x18]
cmp dword [rsi + 0x10], edx
jle 0x14009677d
lea ebx, [rdx + 7]
lea ebp, [rdx + 0xf]
test r13, r13
je 0x140096742
mov rax, qword [r15 + 0x10]
cmp qword [rax + rbp + 8], r13
je 0x140096742
mov rax, qword [rdi]
cmp qword [rbx + rax], 0
je 0x140096767
xor r12d, r12d
jmp 0x140096767
mov rax, qword [rdi]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14009675f
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x140045926.0]
mov edx, 1
mov rax, qword [rdi]
and qword [rbx + rax], 0
add r14d, edx
add rbp, 0x10
add rbx, 8
cmp r14d, dword [rsi + 0x10]
jl 0x140096723
test r12d, r12d
je 0x1400967c5
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r15 + 0x18]
mov rdx, rsi
call fcn.140096a98
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140045926.0]
mov ecx, dword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400980f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14009811f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009812a
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140006920
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140097c10
int3

Function at 0x140098450
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x140098462
xor eax, eax
jmp 0x14009847f
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140098485
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140006920
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140097c10
int3
Function at 0x14009859c
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1400985da
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400985db
cmp dword [rsp + 0x50], ebx
jne 0x1400985f8
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140006920
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140097c10
int3
lea rcx, [rdi + 0x18]
call fcn.140006920
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14009776c
int3

Function at 0x140099488
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140099546
test rdx, rdx
je 0x140099546
mov rcx, rdx
call fcn.1401cd140
xor edx, edx
mov byte [rsp + 0x20], 0
mov r8d, 0xff
lea rcx, [rsp + 0x21]
mov rsi, rax
call fcn.1401f22d0
mov r8d, 0x100
cmp rsi, r8
ja 0x140099515
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x140099515
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140099521
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401b9b30
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140027884
int3