joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007e74
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov word [rax + 0x20], r9w
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x840
mov r13, rcx
xor edi, edi
mov r14d, 0x400
mov byte [rsp + 0x20], dil
mov r8d, r14d
lea rcx, [rsp + 0x21]
xor edx, edx
mov ebp, edi
call fcn.1400bc710
mov r8d, r14d
mov byte [rsp + 0x430], dil
xor edx, edx
lea rcx, [rsp + 0x431]
call fcn.1400bc710
mov r9d, r14d
lea edx, [r14 + 1]
mov r8, r13
lea rcx, [rsp + 0x20]
lea r12, [rsp + 0x20]
lea rbx, [rsp + 0x430]
call fcn.1400c5c50
mov r14, qword [rsp + 0x8a8]
mov rcx, r13
mov qword [r14], rdi
mov r15, r14
mov byte [rbx], dil
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x140008013
cmp word [rax + 0x10], 2
jne 0x140007f6a
cmp word [rax + 0x12], 4
jne 0x140007f6a
mov rsi, qword [rax + 0x18]
jmp 0x140007f62
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x898]
mov edx, dword [rsp + 0x890]
mov ecx, dword [rsp + 0x888]
call fcn.140007dd4
mov qword [r15], rax
test rax, rax
je 0x14000800c
lea r15, [rax + 0x28]
add rsi, 8
mov rax, qword [rsi]
test rax, rax
jne 0x140007f2f
mov r8, qword [rdi]
mov r9d, 0x400
mov rcx, rbx
lea edx, [r9 + 1]
call fcn.1400c5c50
xor edi, edi
cmp qword [r14], rdi
jne 0x140007fbf
mov rcx, rbx
call fcn.1400c5b40
test rax, rax
je 0x14000802c
mov rdx, rbx
mov rcx, r12
call fcn.1400c5d50
test eax, eax
je 0x14000802c
inc ebp
cmp ebp, 0x10
je 0x14000802c
mov rax, r12
mov r12, rbx
mov rbx, rax
jmp 0x140007efd
mov ecx, edi
cmp dword [rsp + 0x8a0], edi
je 0x140008038
mov rcx, rbx
call fcn.1400c5b40
mov ecx, 1
mov rsi, rax
lea rdx, [rax + 1]
call fcn.1400c5be8
mov rdi, rax
test rax, rax
je 0x140007ffa
mov r8, rbx
lea rdx, [rsi + 1]
mov rcx, rax
call fcn.1400c5bf0
mov rax, qword [r14]
xor ecx, ecx
mov qword [rax + 0x18], rdi
mov rax, qword [r14]
cmp qword [rax + 0x18], rcx
jne 0x140008038
mov ecx, 8
jmp 0x140008038
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x140008038
sub eax, 1
je 0x140008033
sub eax, 1
jne 0x140008038
mov ecx, 0x2afb
jmp 0x140008038
mov ecx, 0x2afa
mov rbx, qword [rsp + 0x880]
mov eax, ecx
add rsp, 0x840
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000868c
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, [0x1400080a8]
movzx r12d, cx
mov qword [rsp + 0x28], rax
lea r14, str.getaddrinfo
lea rax, str.getnameinfo
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rax
xor ebx, ebx
cmp dword [0x140125ac8], ebx
lea rax, [0x14000846c]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140008058]
mov qword [rsp + 0x48], rax
je 0x140008714
lea rsi, str.getaddrinfo
jmp 0x14000882b
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rsi, str.getaddrinfo
test eax, eax
je 0x140008821
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c5bf0
lea r8, str.ws2_32
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c6ea0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14000878a
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400087d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c5bf0
lea r8, str.wship6
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c6ea0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140008821
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008818
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 0x140008818
inc r15d
add r14, 0x10
cmp r15d, 3
jl 0x1400087db
test rdi, rdi
je 0x140008821
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + rsi + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x140008802
jmp 0x140008821
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x140125ac8], 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 0x140008934
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x20
mov qword [0x140121a78], rdx
mov r8, rdx
mov r10, qword [rdx + 0x38]
mov r9d, 1
test r10, r10
je 0x1400089dd
cmp byte [r10 + 5], r9b
jne 0x1400089dd
cmp byte [r10 + 6], 0
je 0x1400089c5
mov rcx, qword [rdx + 0x18]
jmp 0x140008989
mov eax, dword [r8 + 4]
cmp dword [rcx + 4], eax
jne 0x14000898e
movzx eax, word [r8 + 2]
cmp word [rcx + 2], ax
jne 0x14000898e
mov r8, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14000896e
mov eax, dword [r8 + 4]
movzx ecx, word [r8 + 2]
cmp byte [r8], 3
je 0x1400089a2
and qword [r8 + 0x38], 0
mov r8, qword [r8 + 0x20]
test r8, r8
je 0x1400089b8
cmp dword [r8 + 4], eax
jne 0x1400089b8
cmp word [r8 + 2], cx
je 0x140008997
mov edx, 8
mov rcx, r10
call fcn.1400b9c2c
lea rdx, [0x1400fbf5c]
lea rcx, [0x140121a50]
add rsp, 0x20
pop rbp
jmp fcn.140008b64
mov r10d, dword [0x140121ad0]
cmp r10d, 3
je 0x140008a58
mov r11, qword [0x140121a58]
movabs rbp, 0x2aaaaaaaaaaaaaab
cmp r10d, 4
jne 0x140008a2b
mov rcx, r11
mov rax, rbp
sub rcx, qword [0x140121a50]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp edx, dword [0x140121adc]
jle 0x140008a58
cmp r10d, 5
jne 0x140008a89
sub r11, qword [0x140121a50]
mov rax, rbp
add r11, 0x18
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x140121adc]
jge 0x140008a89
mov al, byte [r8]
cmp al, 0x16
jb 0x140008a67
cmp al, 0x18
jbe 0x140008a79
cmp al, 0x1b
jmp 0x140008a74
cmp al, 3
je 0x140008a79
cmp al, 4
jne 0x140008a76
cmp qword [r8 + 0x10], 0
je 0x140008a79
xor r9d, r9d
test r9b, r9b
jne 0x140008a89
cmp dword [r8 + 4], 0
jne 0x1400089c5
mov rcx, qword [0x140121a70]
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x140008ab6
cmp dword [rsp + 0x30], eax
seta al
test al, al
je 0x140008ab6
xor edx, edx
jmp 0x1400089cc
xor eax, eax
add rsp, 0x20
pop rbp
ret
Function at 0x14000c8b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c903
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c8fc
sub edx, 2
je 0x14000c8f3
sub edx, 1
je 0x14000c8ea
cmp edx, 1
je 0x14000c8e1
lea rdx, [0x1400fc00e]
jmp 0x14000c903
lea rdx, str.step_out
jmp 0x14000c903
lea rdx, str.step_over
jmp 0x14000c903
lea rdx, str.step_into
jmp 0x14000c903
lea rdx, [0x1400fdf44]
mov rcx, qword [rcx + 0x98]
lea rax, [0x1400fc00e]
test rcx, rcx
je 0x14000c91e
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, str._response_command__s__status__s__reason__s__transaction_id__e___
call fcn.14000d35c
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c94c

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, 0xa
add rcx, 0x26
call fcn.1400c59f0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400bc080
lea r8, str.__xml_version_1.0__encoding_UTF_8___
lea rdx, [0x1400fed10]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e77c
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 0x14000c9fd
mov r8d, 1
lea rdx, [0x1400fbbd0]
lea rcx, [rdi + 0x60]
call fcn.14000d2e4
test eax, eax
jne 0x14000c9fd
mov r8d, dword [rdi + 0x70]
xor r9d, r9d
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x14000c9fd
and qword [rdi + 0x70], 0
and dword [rdi + 0x78], 0
xor eax, eax
jmp 0x14000ca09
lea rcx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.14000cf44
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000cf98
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 0x14000cfc0
mov rcx, rdx
call fcn.1400c5b40
mov r8, rax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 2
jbe 0x14000d05f
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 + 1]
movzx ecx, byte [rsi]
shl rcx, 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 0x14000cffb
test r8, r8
je 0x14000d0be
movzx ecx, byte [rsi]
shl rcx, 0x10
cmp r8, 1
jbe 0x14000d07c
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 0x14000d0af
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
jmp 0x14000d0b1
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 0x14000e534
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 0x14000e597
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e5ca
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e58c
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e57f
call fcn.1400c0450
mov edx, 0x28
mov rcx, rdi
call fcn.1400b9c2c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e5ca
xor edx, edx
mov rcx, rbx
call fcn.14000e990
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e7d4
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 0x14000f4f0
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 [0x140121ad8]
test eax, eax
je 0x14000f543
lea r8, str.stdout
lea rcx, [0x140121a50]
call fcn.14000c7bc
mov eax, dword [0x140121ad8]
cmp eax, 2
je 0x14000f6dc
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 [0x140128010]
cmp ecx, 0xffffffff
je 0x14000f591
mov dword [rbp - 5], ecx
lea rdx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x14000f591
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.1400997d0
mov r8d, esi
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140099f60
mov r8d, dword [rbp - 0xd]
test r8d, r8d
je 0x14000f61b
cmp qword [rbp + 0x17], 0
jne 0x14000f61b
mov rax, qword [rbp - 0x19]
mov r9, qword [rax + 0x20]
lea rax, [fcn.14009a450]
mov rdx, qword [rbp + 0x1f]
cmp r9, rax
jne 0x14000f60d
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 0x14000f614
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.14009a3e0]
cmp rdx, rax
jne 0x14000f664
mov rcx, qword [rbp + 0x27]
cmp rcx, 0xffffffffffffffff
je 0x14000f672
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14000f657
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0xd]
mov rcx, 0xffffffffffffffff
mov qword [rbp + 0x27], rcx
jmp 0x14000f672
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 0x14000f6a1
cmp qword [rbp + 0x17], 0
jne 0x14000f6a1
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 0x14000f6c9
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14000f6c1
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 0x14000f6dc
call fcn.1400c0450
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 0x140012110
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.1400d9a90
sub rsp, rax
mov rbx, qword [rsp + 0x4080]
mov r14, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x14001215f
mov rbx, qword [rcx + 0x6b8]
test rbx, rbx
jne 0x14001215f
mov ecx, dword [rcx + 0x2d8]
movzx eax, word [rdi + 0x2dc]
jmp 0x140012167
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test esi, esi
je 0x140012278
mov r9, qword [0x140125fc0]
lea rdx, str.Warning:
movzx ecx, cx
lea r8, str._s___d__:____s_s_n
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.14009c850
cmp word [r14], 0
movsxd rbp, eax
je 0x1400121e9
lea rax, [rsp + 0x40]
sub r15d, ebp
lea rcx, [rax + rbp*2]
mov edx, r15d
mov r9, r14
lea r8, str._____Specifically:__s_n
call fcn.14009c850
add ebp, eax
mov r15, qword [rsp + 0x4068]
cmp esi, 3
jne 0x14001220f
lea r9, [0x1400ffd5c]
mov r8d, ebp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000f4f0
jmp 0x140012270
mov eax, dword [0x140121ad4]
test eax, eax
je 0x140012237
lea r8, str.stderr
lea rdx, [rsp + 0x40]
lea rcx, [0x140121a50]
call fcn.14000c7bc
mov eax, dword [0x140121ad4]
cmp eax, 2
je 0x140012247
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140012270
mov qword [rsp + 0x28], 0
lea r8d, [rsi - 1]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov rdx, r12
lea rcx, [0x140127620]
call fcn.140010850
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 0x14001f6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x140128120], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x14001f72c
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x14001f709
mov edx, gethostbyaddr
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call fcn.1400c5a88
movzx esi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001f8ac
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xb0], r15
xor r15d, r15d
nop word [rax + rax]
cmp dword [0x140128120], r15d
jne 0x14001f7ba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14011f188]
sub eax, dword [0x140127dd8]
cmp eax, dword [rcx + 0x88]
jbe 0x14001f7ba
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f7ae
mov edx, 1
mov dword [0x14011f180], r15d
lea ecx, [rdx - 2]
call fcn.1400016f0
mov dword [0x14011f180], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140127dd8], eax
test bpl, bpl
je 0x14001f863
cmp dword [0x140128120], r15d
je 0x14001f7d5
movzx eax, byte [0x140128014]
jmp 0x14001f7dc
xor ecx, ecx
call fcn.140022750
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140021ee0
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x14001f843
cmp ax, 0x39
ja 0x14001f843
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
lea edx, [rax + 0x30]
mov byte [rsp + 0x20], r8b
xor r9d, r9d
lea ecx, [r8 + 2]
call fcn.14001fbf0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001f810
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.14001fbf0
jmp 0x14001f86f
movzx edx, r14b
movzx ecx, si
call fcn.14001d820
cmp dword [0x140128120], 2
mov rax, qword [0x14011f188]
jne 0x14001f887
mov ecx, dword [rax + 0x9c]
jmp 0x14001f88d
mov ecx, dword [rax + 0x98]
call fcn.1400219b0
sub rdi, 1
jne 0x14001f750
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140021bc0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140125b40]
test r10, r10
je 0x140021cf9
movsxd rax, dword [0x140125b6c]
imul r9, rax, 0xd4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140125b68], eax
sub ecx, dword [0x140127ff8]
xorps xmm0, xmm0
mov dword [0x140127ff8], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140125b6c]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x14010ae28]
mov rcx, qword [0x140125b40]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140021cae
cmp rax, qword [0x140125b60]
je 0x140021c92
movsxd rcx, dword [0x140125b6c]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140125b40]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140125b6c]
jmp 0x140021cd2
movsxd rdx, dword [0x140125b6c]
mov rax, qword [0x140125b40]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021cd2
movsxd rdx, dword [0x140125b6c]
movabs r8, 0x41002f004e
mov rax, qword [0x140125b40]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140125b60], rbx
cmp edx, dword [0x14011f190]
mov rbx, qword [rsp + 0x30]
mov dword [0x140125b6c], edx
jl 0x140021cf4
mov dword [0x140125b6c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140023030
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
sub rsp, 0x148
movzx edi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rdi - 0x41]
mov rbp, rax
cmp dl, 0x19
ja 0x14002323c
mov qword [rsp + 0x170], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x178], rsi
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400bc710
xor esi, esi
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], esi
lea r9, [rsp + 0x168]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 2
xor edx, edx
lea ecx, [rsi + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x168]
cmp eax, 2
mov dword [rsp + 0x28], esi
movzx ebx, si
mov dword [rsp + 0x20], 2
cmove bx, word [rsp + 0x168]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140023114
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
lea ecx, [rsi + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bx, bx
je 0x14002320a
cmp bx, 0xa
jne 0x140023133
movzx edx, byte [rsp + 0x160]
mov dil, ntohs
jmp 0x1400231d6
mov rdx, rbp
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdi, ax
mov rcx, rdi
shr rcx, 8
cmp cl, 0xff
jne 0x14002318f
cmp dil, 0xff
jne 0x14002318f
cmp bx, 0x5a
ja 0x140023178
cmp bx, 0x41
jb 0x14002320a
movzx eax, bl
cmp bx, 0x5a
ja 0x14002318a
cmp bx, 0x41
jb 0x14002318a
mov cl, 1
jmp 0x14002318c
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14002320a
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edi, al
test cl, 0x38
jne 0x14002320a
movzx edx, byte [rsp + 0x160]
movzx eax, cl
and al, 6
cmp al, 6
jne 0x1400231aa
or dl, 8
jmp 0x1400231c4
test cl, 2
je 0x1400231b7
test dl, 3
jne 0x1400231b7
or dl, 1
test cl, 4
je 0x1400231c4
test dl, 0xc
jne 0x1400231c4
or dl, 4
test cl, 1
je 0x1400231d1
test dl, 0x30
jne 0x1400231d1
or dl, 0x10
test dil, dil
je 0x14002320a
lea rcx, [rsp + 0x40]
call fcn.140022900
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbx, qword [rsp + 0x170]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x140023227
movzx esi, word [rsp + 0x168]
movzx eax, si
mov rsi, qword [rsp + 0x178]
add rsp, 0x148
pop rdi
pop rbp
ret
mov ecx, edi
mov r8, rbp
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x148
pop rdi
pop rbp
ret