joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400084dc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
lea rax, [0x140007ef8]
movzx r12d, cx
mov qword [rsp + 0x28], rax
lea r14, [0x140102ef8]
lea rax, [0x140102f08]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rax
xor ebx, ebx
cmp dword [0x14012ab18], ebx
lea rax, [0x1400082bc]
mov qword [rsp + 0x38], rax
lea rax, [0x140102f18]
mov qword [rsp + 0x40], rax
lea rax, [0x140007ea8]
mov qword [rsp + 0x48], rax
je 0x140008564
lea rsi, [0x140128cb0]
jmp 0x14000867b
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rsi, [0x140128cb0]
test eax, eax
je 0x140008671
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400caad0
lea r8, [0x140102f28]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400cbd80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400085da
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008623
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400caad0
lea r8, [0x140102f30]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400cbd80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140008671
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008668
mov r15d, ebx
lea r14, [rsp + 0x28]
mov rdx, qword [r14 - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14], rax
test rax, rax
je 0x140008668
inc r15d
add r14, 0x10
cmp r15d, 3
jl 0x14000862b
test rdi, rdi
je 0x140008671
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + rsi + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x140008652
jmp 0x140008671
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x14012ab18], 1
lea r11, [rsp + 0x270]
mov rax, r12
mov rbx, qword [r11 + 0x20]
add rax, rax
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rax, qword [rsi + rax*8 + 8]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c700
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c753
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c74c
sub edx, 2
je 0x14000c743
sub edx, 1
je 0x14000c73a
cmp edx, 1
je 0x14000c731
lea rdx, [0x14010101e]
jmp 0x14000c753
lea rdx, [0x140102f78]
jmp 0x14000c753
lea rdx, [0x140102f68]
jmp 0x14000c753
lea rdx, [0x140102f58]
jmp 0x14000c753
lea rdx, [0x140102f54]
mov rcx, qword [rcx + 0x98]
lea rax, [0x14010101e]
test rcx, rcx
je 0x14000c76e
cmp qword [rcx], 0
cmovne rax, qword [rcx]
mov qword [rsp + 0x28], rax
lea rcx, [rbx + 0x60]
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
lea rdx, [0x140103b30]
call fcn.14000d1b8
xor edx, edx
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c7a0

Function at 0x14000c7a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov r8, qword [rcx + 0x70]
mov rsi, rdx
mov rax, qword [rcx + 0x60]
mov rbp, r8
sub rbp, rdx
mov rdi, rcx
lea rdx, [r11 - 0x48]
mov byte [r8 + rax], 0
mov r8d, 0xa
lea rcx, [rbp + 0x26]
call fcn.1400ca8d0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400c02c0
lea r8, [0x140103c58]
lea rdx, [0x140103c80]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e59c
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x20]
movsxd r8, eax
xor r9d, r9d
add r8, rbx
lea rax, [rsp + 0x20]
sub r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c850
mov rdx, qword [rdi + 0x60]
lea r8d, [rbp + 1]
mov rcx, qword [rdi + 0x20]
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c850
mov qword [rdi + 0x70], rsi
xor eax, eax
jmp 0x14000c85c
lea rcx, [0x140103b80]
call fcn.14000cda8
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000cdfc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000ce24
mov rcx, rdx
call fcn.1400caa20
mov r8, rax
lea r10, [0x140103e80]
cmp r8, 2
jbe 0x14000cec3
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
lea r9, [rdi + 2]
shr rdx, 1
inc rdx
imul rax, rdx, 0xfffffffffffffffd
lea rbx, [rdx*4]
add r8, rax
movzx eax, byte [rsi]
movzx ecx, byte [rsi + 1]
shl rax, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
add rsi, 3
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [r9 - 2], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9 - 1], al
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [r9], al
lea r9, [r9 + 4]
mov al, byte [rcx + r10]
mov byte [r9 - 3], al
sub rdx, 1
jne 0x14000ce5f
test r8, r8
je 0x14000cf22
movzx ecx, byte [rsi]
shl rcx, 0x10
cmp r8, 1
jbe 0x14000cee0
movzx eax, byte [rsi + 1]
shl rax, 8
or rcx, rax
mov rax, rcx
shr rax, 0x12
mov al, byte [rax + r10]
mov byte [rbx + rdi], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r10]
mov byte [rbx + rdi + 1], al
cmp r8, 1
jbe 0x14000cf13
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
jmp 0x14000cf15
mov al, 0x3d
mov byte [rbx + rdi + 2], al
mov byte [rbx + rdi + 3], 0x3d
add rbx, 4
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov byte [rbx + rdi], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e354
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e3b7
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e3ea
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e3ac
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e39f
call fcn.1400c5338
mov edx, 0x28
mov rcx, rdi
call fcn.1400be50c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e3ea
xor edx, edx
mov rcx, rbx
call fcn.14000e7b4
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e5f4
mov rax, qword [rbx + 8]
mov r8d, edi
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f110
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, r9
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov eax, dword [0x140126b28]
test eax, eax
je 0x14000f163
lea r8, [0x140103098]
lea rcx, [0x140126aa0]
call fcn.14000c600
mov eax, dword [0x140126b28]
cmp eax, 2
je 0x14000f2fc
lea r12, vtable.TextStream.0
mov qword [rbp - 0x19], r12
xor r15d, r15d
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r15d
mov dword [rbp - 5], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x17], xmm0
mov ecx, dword [0x14012d060]
cmp ecx, 0xffffffff
je 0x14000f1b1
mov dword [rbp - 5], ecx
lea rdx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x14000f1b1
mov byte [rbp + 5], r15b
lea r13, vtable.TextFile.0
mov qword [rbp - 0x19], r13
mov qword [rbp + 0x27], 0xffffffffffffffff
mov r9d, dword [r14 + 0x7a0]
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.14009e0d0
mov r8d, esi
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14009e870
mov r8d, dword [rbp - 0xd]
test r8d, r8d
je 0x14000f23b
cmp qword [rbp + 0x17], 0
jne 0x14000f23b
mov rax, qword [rbp - 0x19]
mov r9, qword [rax + 0x20]
lea rax, [fcn.14009ed60]
mov rdx, qword [rbp + 0x1f]
cmp r9, rax
jne 0x14000f22d
mov dword [rbp - 0x29], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x29]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000f234
lea rcx, [rbp - 0x19]
call r9
mov r8d, r15d
mov dword [rbp - 0xd], r15d
mov word [rbp + 0x13], r15w
mov rax, qword [rbp - 0x19]
mov rdx, qword [rax + 0x10]
lea rax, [fcn.14009ecf0]
cmp rdx, rax
jne 0x14000f284
mov rcx, qword [rbp + 0x27]
cmp rcx, 0xffffffffffffffff
je 0x14000f292
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14000f277
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0xd]
mov rcx, 0xffffffffffffffff
mov qword [rbp + 0x27], rcx
jmp 0x14000f292
lea rcx, [rbp - 0x19]
call rdx
mov rcx, qword [rbp + 0x27]
mov r8d, dword [rbp - 0xd]
mov qword [rbp - 0x19], r13
test r8d, r8d
je 0x14000f2c1
cmp qword [rbp + 0x17], 0
jne 0x14000f2c1
mov dword [rbp - 0x29], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x29]
mov rdx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp - 0xd], r15d
mov rcx, qword [rbp + 0x27]
mov word [rbp + 0x13], r15w
cmp rcx, 0xffffffffffffffff
je 0x14000f2e9
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14000f2e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x27], 0xffffffffffffffff
mov qword [rbp - 0x19], r12
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14000f2fc
call fcn.1400c5338
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140011e30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
mov eax, 0x4040
call fcn.1400de970
sub rsp, rax
mov rbx, qword [rsp + 0x4080]
mov r14, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140011e7f
mov rbx, qword [rcx + 0x6b8]
test rbx, rbx
jne 0x140011e7f
mov ecx, dword [rcx + 0x2d8]
movzx eax, word [rdi + 0x2dc]
jmp 0x140011e87
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test esi, esi
je 0x140011f98
mov r9, qword [0x14012b010]
lea rdx, [0x140104440]
movzx ecx, cx
lea r8, [0x140104458]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdx
movzx eax, ax
mov r9, qword [r9 + rcx*8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4060], rbp
mov qword [rsp + 0x4068], r15
mov r15d, 0x2000
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.1400a1160
cmp word [r14], 0
movsxd rbp, eax
je 0x140011f09
lea rax, [rsp + 0x40]
sub r15d, ebp
lea rcx, [rax + rbp*2]
mov edx, r15d
mov r9, r14
lea r8, [0x140104480]
call fcn.1400a1160
add ebp, eax
mov r15, qword [rsp + 0x4068]
cmp esi, 3
jne 0x140011f2f
lea r9, [0x140104d0c]
mov r8d, ebp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000f110
jmp 0x140011f90
mov eax, dword [0x140126b24]
test eax, eax
je 0x140011f57
lea r8, [0x1401030a0]
lea rdx, [rsp + 0x40]
lea rcx, [0x140126aa0]
call fcn.14000c600
mov eax, dword [0x140126b24]
cmp eax, 2
je 0x140011f67
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140011f90
mov qword [rsp + 0x28], 0
lea r8d, [rsi - 1]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov rdx, r12
lea rcx, [0x14012c670]
call fcn.140010330
mov rbp, qword [rsp + 0x4060]
lea r11, [rsp + 0x4040]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x140022bf0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140022dcc
movaps xmm0, xmmword [0x140106bf0]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x140106c00]
mov eax, dword [0x140106c50]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140106c10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140106c20]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140106c30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140106c40]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140106c54]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140022d8c
lea rax, [rbp + 0x200]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022d88
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, [0x140106c58]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x140022d88
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x140022d88
shr edx, 1
mov ecx, edx
dec edx
mov dword [rbp + 0x1f8], edx
cmp word [rbp + rdx*2 - 0x50], si
jne 0x140022d60
test edx, edx
je 0x140022d8c
mov ecx, edx
mov r8d, edx
nop
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rbp + rax*2 - 0x50], si
jne 0x140022d75
mov dword [rbp + 0x1f8], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140022d40
jmp 0x140022d75
mov dword [rbp + 0x1f8], ecx
cmp ecx, 0x104
jae 0x140022d88
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x140022d8c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140022d8c
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140022d9c
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140022dcc
lea rdx, [0x140106c70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022dc3
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023240
Capabilities:
Log keystrokes

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
movzx r10d, word [rcx]
movzx ebp, r8b
mov rsi, rcx
test r10w, r10w
je 0x140023385
movzx r9d, word [rcx + 2]
movzx ecx, r10w
test r9w, r9w
jne 0x14002328e
mov r8, qword [rsp + 0x60]
mov r9b, 1
call fcn.1400233a0
jmp 0x140023387
mov edx, 0xffdf
lea eax, [r10 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r10w
cmp cx, 0x56
jne 0x1400232f0
movzx ecx, r9w
lea eax, [r9 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r9w
cmp cx, 0x4b
jne 0x1400232f0
lea rcx, [rsi + 4]
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x40]
call fcn.1400cbc18
mov rcx, qword [rsp + 0x40]
xor edi, edi
movzx edx, al
cmp word [rcx], di
cmove edi, edx
movzx eax, dil
jmp 0x140023387
lea r15, [0x1401243f0]
xor edi, edi
mov rbx, r15
lea r14, [0x140124aa0]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400c51bc
test eax, eax
je 0x140023377
inc edi
add rbx, 0x10
cmp rbx, r14
jl 0x140023303
test bpl, bpl
jne 0x140023385
xor edx, edx
mov rcx, rsi
call fcn.140023150
test ax, ax
je 0x140023385
movzx edx, ax
sub edx, 0x45
je 0x140023373
mov r8d, 0xff
sub edx, 0xf1
je 0x14002334c
cmp edx, 0xf
jne 0x140023350
and ax, r8w
bt ax, 8
jae 0x140023363
and ax, r8w
mov ecx, 0xe000
or ax, cx
movzx ecx, ax
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x140023387
mov al, reloc.WSOCK32.dll_send
jmp 0x140023387
movsxd rax, edi
add rax, rax
movzx eax, byte [r15 + rax*8 + 8]
jmp 0x140023387
xor al, al
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

Function at 0x1400233a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx esi, r9b
mov rdi, rdx
movzx ebx, cx
cmp cx, 0xa
jne 0x1400233d1
mov al, 0xd
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140023426
cmp dl, 0xff
jne 0x140023426
test sil, sil
je 0x14002342b
cmp bx, 0x5a
ja 0x140023413
cmp bx, 0x41
jb 0x14002342b
movzx eax, bl
cmp bx, 0x5a
ja 0x140023421
cmp bx, 0x41
jb 0x140023421
mov cl, 1
jmp 0x140023423
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14002342b
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x14002343d
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x140023480
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140023450
or byte [rdi], 8
jmp 0x140023470
test cl, 2
je 0x140023460
movzx eax, byte [rdi]
test al, 3
jne 0x140023460
or al, 1
mov byte [rdi], al
test cl, 4
je 0x140023470
movzx eax, byte [rdi]
test al, 0xc
jne 0x140023470
or al, 4
mov byte [rdi], al
test cl, 1
je 0x140023480
movzx eax, byte [rdi]
test al, 0x30
jne 0x140023480
or al, 0x10
mov byte [rdi], al
mov rbx, qword [rsp + 0x30]
movzx eax, dl
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c8e0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x190
mov r9d, dword [rcx]
mov rsi, rdx
movsxd rdi, r8d
mov r14, rcx
test r9d, r9d
je 0x14002cafd
sub r9d, 2
je 0x14002caf4
sub r9d, 1
je 0x14002caeb
sub r9d, 1
je 0x14002c940
cmp r9d, 1
je 0x14002c934
lea rax, [0x140100be0]
jmp 0x14002cb04
lea rax, [0x1401073a8]
jmp 0x14002cb04
test rsi, rsi
je 0x14002cae2
movzx eax, word [rcx + 0x68]
mov qword [rsp + 0x1a8], rbp
test ax, ax
je 0x14002c977
xor ebp, ebp
mov word [rdx], ax
mov word [rdx + 2], bp
lea rax, [0x140106890]
mov rbp, qword [rsp + 0x1a8]
jmp 0x14002cb04
cmp byte [rcx + 0x6b], 0
mov qword [rsp + 0x1a0], rbx
je 0x14002ca47
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x100
call fcn.1400e2a10
mov byte [rsp + 0xa0], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
mov ebx, ebp
test rax, rax
je 0x14002c9ef
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14002c9ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002c9ef
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x65]
mov ebx, ebp
cmp dword [0x14012ab2c], ebx
mov rdi, rax
setne bl
xor edx, edx
call fcn.140023d90
movzx ecx, byte [r14 + 0x65]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14002cad2
xor ebp, ebp
mov word [rdx], bp
cmp byte [rcx + 0x6a], bpl
je 0x14002ca9f
movzx edx, word [rcx + 0x66]
lea rax, [0x140124328]
mov ecx, ebp
lea r8, [0x1401243f8]
cmp word [rax], dx
je 0x14002ca78
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x14002ca66
jmp 0x14002ca9f
movsxd rdx, ecx
lea rax, [0x140124320]
add rdx, rdx
lea r8, [rdi - 1]
mov rcx, rsi
mov rdx, qword [rax + rdx*8]
call fcn.1400d3cf4
mov word [rsi + rdi*2 - 2], bp
cmp word [rsi], bp
jne 0x14002cad2
cmp byte [r14 + 0x6a], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x65]
mov rdx, rsi
sete r9b
call fcn.140022e50
cmp word [rsi], bp
jne 0x14002cad2
movzx r9d, word [r14 + 0x66]
lea r8, [0x140106c88]
mov edx, edi
mov rcx, rsi
call fcn.1400a1160
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
lea rax, [0x140106890]
jmp 0x14002cb04
lea rax, [0x1401068e0]
jmp 0x14002cb04
lea rax, [0x140106958]
jmp 0x14002cb04
lea rax, [0x1401073b0]
lea r11, [rsp + 0x190]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140046870
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x2f0], 0
mov rbx, rcx
je 0x140046a17
mov r8, qword [0x1401241d8]
movzx ecx, byte [0x14012abad]
test dl, dl
jne 0x1400468be
cmp byte [rbx + 0x820], dl
jne 0x140046a17
movzx eax, byte [0x14012df19]
cmp byte [r8 + 0x7c], al
jne 0x1400468be
cmp cl, byte [0x14012df18]
je 0x140046a17
movzx edx, byte [r8 + 0x7c]
mov qword [rsp + 0x48], rdi
test dl, dl
je 0x1400468dd
xor edi, edi
test cl, cl
setne dil
add rdi, 0xcf
jmp 0x1400468ec
test cl, cl
mov edi, 0x9f
mov eax, 0xce
cmovne edi, eax
mov rax, qword [rbx + 0x810]
test rax, rax
je 0x140046911
cmp byte [rbx + 0x820], 0
jne 0x1400469c4
test dl, dl
jne 0x140046911
test cl, cl
je 0x1400469c4
mov eax, dword [0x14012e118]
mov qword [rsp + 0x40], rsi
mov qword [rbx + 0x308], 0
test al, 1
jne 0x140046958
or eax, 1
lea rcx, [0x140107410]
mov dword [0x14012e118], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14010f768]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012e120], rax
mov ecx, gethostbyaddr
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp qword [0x14012e120], 0
mov esi, eax
je 0x14004699a
xor edx, edx
lea rcx, [0x1401080b0]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [0x14012e120]
mov r8d, dword [0x14012c64c]
mov ecx, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov rcx, qword [0x14012ab98]
mov r9d, esi
mov dword [rsp + 0x28], 0x8000
mov r8d, 1
mov rdx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_LoadImageW]
mov rsi, qword [rsp + 0x40]
lea rdx, [rbx + 0x2e8]
mov qword [rbx + 0x308], rax
mov ecx, 1
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x1400469f9
lea rdx, [rbx + 0x2e8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x140046a17
mov rax, qword [0x1401241d8]
movzx ecx, byte [rax + 0x7c]
movzx eax, byte [0x14012abad]
mov byte [0x14012df18], al
mov byte [0x14012df19], cl
add rsp, 0x30
pop rbx
ret
Function at 0x1400575f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400de970
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, [0x14010aed8]
mov edx, 0x8001
call fcn.1400a1160
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057684
test al, 0x10
je 0x140057684
lea ecx, [rdi + 0xfd]
movsxd rcx, ecx
lea rcx, [rcx*2 + 0xa]
call fcn.14009d960
mov rcx, rax
test rax, rax
je 0x14005769f
mov qword [rbx], rax
lea rdx, [rsp + 0x30]
lea eax, [rdi + 1]
movsxd r8, eax
add r8, r8
call fcn.1400e2370
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x140100be0]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
call fcn.140010e00
int3