joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097860
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140097a08
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400978c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400978c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400978c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400978fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140097952
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097952
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097952
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097952
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097952
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140097310
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400979b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140072b40
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400976e0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140097a00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140072b40
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140099170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f4f58]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140099205
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140099266
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140072b40
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ac900
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140099321
sub ecx, 1
je 0x140099394
sub ecx, 1
je 0x1400992d0
cmp ecx, 1
je 0x1400992b3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400dc350]
call fcn.140072b40
jmp 0x140099394
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140098ea0
test eax, eax
je 0x140099394
jmp 0x14009923a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140099394
sub rax, rsi
cmp rax, rbp
jae 0x140099394
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140072cc0
jmp 0x140099394
cmp r8d, 4
jle 0x140099394
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140099394
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140072a60
mov esi, eax
test eax, eax
je 0x140099373
mov edx, 5
mov rcx, rbx
call fcn.140099e60
mov eax, esi
jmp 0x14009923a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400820c0
mov rcx, r14
call fcn.1400823a0
test eax, eax
je 0x140099238
mov edx, 5
mov rcx, rbx
call fcn.140099e60
mov eax, Ordinal_45
jmp 0x14009923a
Function at 0x1400ac270
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ac2b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ac2f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ac352
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ac310
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac393
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e1b42]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e1b43]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac360
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ad2a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad2ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad2ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad2ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad2ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad2ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ad2f0
xor al, al
add rsp, 0x28
ret
Function at 0x140007720
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14000773c
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x14000781b
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, [0x1400fbdb0]
lea rcx, [rsp + 0x20]
call fcn.1400bec00
test eax, eax
je 0x140007808
lea rdx, [0x1400fbdc8]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
je 0x140007808
lea rdx, [0x1400fbde0]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
je 0x140007808
lea rdx, [0x1400fbdf8]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
je 0x140007808
lea rdx, [0x1400fbe08]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
je 0x140007808
lea rdx, [0x1400fbe28]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
je 0x1400077fd
lea rdx, [0x1400fbe50]
lea rcx, [rsp + 0x20]
call fcn.1400bea20
test eax, eax
jne 0x140007820
test rbx, rbx
je 0x140007808
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x140007840
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
sub rsp, 0x28
cmp dword [0x140124e0c], 0
je 0x140007857
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140122af0]
mov ebx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400078d4
xor edi, edi
nop dword [rax]
mov ecx, dword [0x14011c19c]
cmp ecx, 0xffffffff
je 0x1400078a4
test ecx, ecx
je 0x1400078f2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x14011c19c]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x1400078f2
mov edx, 1
mov dword [0x14011c180], edi
mov ecx, 0x8000012f
call fcn.140001710
mov rcx, qword [0x140122af0]
mov dword [0x14011c180], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140007880
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x20]
mov dword [0x140124e0c], 1
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14000864c
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, [0x140008068]
movzx r12d, cx
mov qword [rsp + 0x28], rax
lea r14, [0x1400fbe88]
lea rax, [0x1400fbe98]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], rax
xor ebx, ebx
cmp dword [0x140122a98], ebx
lea rax, [0x14000842c]
mov qword [rsp + 0x38], rax
lea rax, [0x1400fbea8]
mov qword [rsp + 0x40], rax
lea rax, [0x140008018]
mov qword [rsp + 0x48], rax
je 0x1400086d4
lea rsi, [0x140120c40]
jmp 0x1400087eb
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rsi, [0x140120c40]
test eax, eax
je 0x1400087e1
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c41b0
lea r8, [0x1400fbeb8]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400c5434
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14000874a
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008793
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c41b0
lea r8, [0x1400fbec0]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c5434
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400087e1
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400087d8
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 0x1400087d8
inc r15d
add r14, 0x10
cmp r15d, 3
jl 0x14000879b
test rdi, rdi
je 0x1400087e1
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + rsi + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x1400087c2
jmp 0x1400087e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x140122a98], 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 0x14000c7f8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
jne 0x14000c84b
mov edx, dword [rcx + 0x80]
sub edx, 1
je 0x14000c844
sub edx, 2
je 0x14000c83b
sub edx, 1
je 0x14000c832
cmp edx, 1
je 0x14000c829
lea rdx, [0x1400f9fae]
jmp 0x14000c84b
lea rdx, [0x1400fbf08]
jmp 0x14000c84b
lea rdx, [0x1400fbef8]
jmp 0x14000c84b
lea rdx, [0x1400fbee8]
jmp 0x14000c84b
lea rdx, [0x1400fbee4]
mov rcx, qword [rcx + 0x98]
lea rax, [0x1400f9fae]
test rcx, rcx
je 0x14000c866
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, [0x1400fcb60]
call fcn.14000d2a4
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14000c894

Function at 0x14000c894
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.1400c3fb4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400ba7b8
lea r8, [0x1400fcc88]
lea rdx, [0x1400fccb0]
lea rbx, [rax + 1]
mov rcx, rbx
call fcn.14000e6c4
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 0x14000c945
mov r8d, 1
lea rdx, [0x1400f9b70]
lea rcx, [rdi + 0x60]
call fcn.14000d22c
test eax, eax
jne 0x14000c945
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 0x14000c945
and qword [rdi + 0x70], 0
and dword [rdi + 0x78], 0
xor eax, eax
jmp 0x14000c951
lea rcx, [0x1400fcbb0]
call fcn.14000ce8c
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000cee0
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 0x14000cf08
mov rcx, rdx
call fcn.1400c4100
mov r8, rax
lea r10, [0x1400fceb0]
cmp r8, 2
jbe 0x14000cfa7
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 0x14000cf43
test r8, r8
je 0x14000d006
movzx ecx, byte [rsi]
shl rcx, 0x10
cmp r8, 1
jbe 0x14000cfc4
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 0x14000cff7
shr rcx, 6
and ecx, 0x3f
mov al, byte [rcx + r10]
jmp 0x14000cff9
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 0x14000e47c
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 0x14000e4df
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e512
mov eax, dword [rdi + 0x20]
sub eax, 1
mov dword [rdi + 0x20], eax
jne 0x14000e4d4
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e4c7
call fcn.1400beb90
mov edx, 0x28
mov rcx, rdi
call fcn.1400b836c
and qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
jmp 0x14000e512
xor edx, edx
mov rcx, rbx
call fcn.14000e8d8
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000e71c
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 0x140012080
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.1400d8050
sub rsp, rax
mov rbx, qword [rsp + 0x4080]
mov r14, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x1400120cf
mov rbx, qword [rcx + 0x6b0]
test rbx, rbx
jne 0x1400120cf
mov ecx, dword [rcx + 0x2d0]
movzx eax, word [rdi + 0x2d4]
jmp 0x1400120d7
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test esi, esi
je 0x1400121e8
mov r9, qword [0x140122f78]
lea rdx, [0x1400fd430]
movzx ecx, cx
lea r8, [0x1400fd448]
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.14009abe0
cmp word [r14], 0
movsxd rbp, eax
je 0x140012159
lea rax, [rsp + 0x40]
sub r15d, ebp
lea rcx, [rax + rbp*2]
mov edx, r15d
mov r9, r14
lea r8, [0x1400fd470]
call fcn.14009abe0
add ebp, eax
mov r15, qword [rsp + 0x4068]
cmp esi, 3
jne 0x14001217f
lea r9, [0x1400fdccc]
mov r8d, ebp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000f400
jmp 0x1400121e0
mov eax, dword [0x14011eac4]
test eax, eax
je 0x1400121a7
lea r8, [0x1400fc030]
lea rdx, [rsp + 0x40]
lea rcx, [0x14011ea40]
call fcn.14000c704
mov eax, dword [0x14011eac4]
cmp eax, 2
je 0x1400121b7
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400121e0
mov qword [rsp + 0x28], 0
lea r8d, [rsi - 1]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov rdx, r12
lea rcx, [0x1401245b0]
call fcn.1400106f0
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 0x140022c70
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 0x140022e4c
movaps xmm0, xmmword [0x1400ffb90]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x1400ffba0]
mov eax, dword [0x1400ffbf0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400ffbb0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400ffbc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400ffbd0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400ffbe0]
mov dword [rbp - 0x70], eax
movzx eax, word [0x1400ffbf4]
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 0x140022e0c
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 0x140022e08
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ffbf8]
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 0x140022e08
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x140022e08
shr edx, 1
mov ecx, edx
dec edx
mov dword [rbp + 0x1f8], edx
cmp word [rbp + rdx*2 - 0x50], si
jne 0x140022de0
test edx, edx
je 0x140022e0c
mov eax, edx
mov r8d, edx
nop
lea ecx, [r8 - 1]
mov edx, eax
mov r8d, ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140022df5
mov dword [rbp + 0x1f8], ecx
mov eax, ecx
mov edx, ecx
test ecx, ecx
jne 0x140022dc0
jmp 0x140022df5
mov dword [rbp + 0x1f8], ecx
cmp ecx, 0x104
jae 0x140022e08
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x140022e0c
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140022e0c
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140022e1c
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140022e4c
lea rdx, [0x1400ffc10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022e43
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 0x1400232d0
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 0x140023415
movzx r9d, word [rcx + 2]
movzx ecx, r10w
test r9w, r9w
jne 0x14002331e
mov r8, qword [rsp + 0x60]
mov r9b, 1
call fcn.140023430
jmp 0x140023417
mov edx, 0xffdf
lea eax, [r10 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r10w
cmp cx, 0x56
jne 0x140023380
movzx ecx, r9w
lea eax, [r9 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r9w
cmp cx, 0x4b
jne 0x140023380
lea rcx, [rsi + 4]
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x40]
call fcn.1400c52cc
mov rcx, qword [rsp + 0x40]
xor edi, edi
movzx edx, al
cmp word [rcx], di
cmove edi, edx
movzx eax, dil
jmp 0x140023417
lea r15, [0x14011c3a0]
xor edi, edi
mov rbx, r15
lea r14, [0x14011ca50]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400bea20
test eax, eax
je 0x140023407
inc edi
add rbx, 0x10
cmp rbx, r14
jl 0x140023393
test bpl, bpl
jne 0x140023415
xor edx, edx
mov rcx, rsi
call fcn.1400231e0
test ax, ax
je 0x140023415
movzx edx, ax
sub edx, 0x45
je 0x140023403
mov r8d, 0xff
sub edx, 0xf1
je 0x1400233dc
cmp edx, 0xf
jne 0x1400233e0
and ax, r8w
bt ax, 8
jae 0x1400233f3
and ax, r8w
mov ecx, 0xe000
or ax, cx
movzx ecx, ax
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x140023417
mov al, reloc.WSOCK32.dll_send
jmp 0x140023417
movsxd rax, edi
add rax, rax
movzx eax, byte [r15 + rax*8 + 8]
jmp 0x140023417
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 0x140023430
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 0x140023461
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 0x1400234b6
cmp dl, 0xff
jne 0x1400234b6
test sil, sil
je 0x1400234bb
cmp bx, 0x5a
ja 0x1400234a3
cmp bx, 0x41
jb 0x1400234bb
movzx eax, bl
cmp bx, 0x5a
ja 0x1400234b1
cmp bx, 0x41
jb 0x1400234b1
mov cl, 1
jmp 0x1400234b3
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x1400234bb
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x1400234cd
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x140023510
movzx eax, cl
and al, 6
cmp al, 6
jne 0x1400234e0
or byte [rdi], 8
jmp 0x140023500
test cl, 2
je 0x1400234f0
movzx eax, byte [rdi]
test al, 3
jne 0x1400234f0
or al, 1
mov byte [rdi], al
test cl, 4
je 0x140023500
movzx eax, byte [rdi]
test al, 0xc
jne 0x140023500
or al, 4
mov byte [rdi], al
test cl, 1
je 0x140023510
movzx eax, byte [rdi]
test al, 0x30
jne 0x140023510
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