joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014924
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140014901
call fcn.140010b88
mov dword [rax], 0x16
call fcn.140010a4c
or eax, 0xffffffff
jmp 0x14001491e
sub dword [rcx + 0x10], 1
jns 0x140014910
add rsp, 0x28
jmp 0x14001b348
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400148e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001b37a
call fcn.140010b88
mov dword [rax], 0x16
call fcn.140010a4c
jmp 0x14001b499
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001b499
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001b499
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001b3a9
lock or dword [rcx + 0x14], 0x10
jmp 0x14001b499
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001b3bd
call fcn.14001eb3c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140011858
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001d94c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001b487
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001b452
mov rcx, rsi
call fcn.140011858
cmp eax, edi
je 0x14001b43d
mov rcx, rsi
call fcn.140011858
cmp eax, 0xfffffffe
je 0x14001b43d
mov rcx, rsi
call fcn.140011858
movsxd rbx, eax
lea r14, [0x14002e580]
mov rcx, rsi
sar rbx, 6
call fcn.140011858
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001b444
lea rdx, [0x14002d170]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b452
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001b476
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001b476
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001b476
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001b49c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400163fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001642c
xor eax, eax
jmp 0x1400164ef
mov rbp, rbx
cmp word [rax], si
je 0x140016451
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016438
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016434
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001634c
movsxd r14, eax
test eax, eax
jne 0x14001648f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016425
mov rcx, r14
call fcn.14001235c
mov rdi, rax
test rax, rax
jne 0x1400164a8
xor ecx, ecx
call fcn.140010688
jmp 0x140016484
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001634c
test eax, eax
jne 0x1400164d9
mov rcx, rdi
call fcn.140010688
jmp 0x1400164e3
xor ecx, ecx
call fcn.140010688
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001cf74
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009ad0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001cffe
cmp byte [rbp - 0x21], r15b
je 0x14001cff9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d034
call fcn.140010e38
test eax, eax
jne 0x14001d020
cmp byte [rbp - 0x21], r15b
je 0x14001d018
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d034
cmp byte [rbp - 0x21], r15b
je 0x14001d031
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140009954
test eax, eax
jne 0x14001d0d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009ad0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d073
cmp byte [rbp - 0x21], r15b
je 0x14001d0a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d0a8
call fcn.140010e38
test eax, eax
jne 0x14001d094
cmp byte [rbp - 0x21], r15b
je 0x14001d08d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d0a8
cmp byte [rbp - 0x21], r15b
je 0x14001d0a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140009954
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d0d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d0d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d0e5
mov rcx, rdi
call fcn.140010688
cmp byte [rbp + 0x3f], r15b
je 0x14001d0f4
mov rcx, qword [rbp + 0x27]
call fcn.140010688
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001d4a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14002e580]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001d4fe
cmp word [rdx], r12w
jne 0x14001d4fe
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001d504
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001d65f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001d63a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001d53d
mov rcx, r9
jmp 0x14001d560
cmp r9, rdx
jae 0x14001d577
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001d521
jmp 0x14001d65f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d634
cmp dword [rsp + 0x80], edi
je 0x14001d634
mov rdx, r14
lea r11, [0x14002e580]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001d60d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001d5e0
mov word [rbx], r12w
jmp 0x14001d65b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001d5e9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001d65b
cmp word [rsp + 0x70], r12w
jne 0x14001d61a
cmp rbx, rsi
je 0x14001d5da
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001d3c0
cmp word [rsp + 0x70], r12w
je 0x14001d65f
mov word [rbx], r13w
jmp 0x14001d65b
lea r11, [0x14002e580]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001d657
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001d65f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001f04c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d3c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d3c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001f19c
cmp rax, 0xffffffffffffffff
je 0x14001f19c
xor edi, edi
test rbp, rbp
jle 0x14001f147
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140010ba8
mov rbx, rax
test rax, rax
jne 0x14001f0d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001f13d
mov edx, 0x8000
mov ecx, r14d
call fcn.14000fc68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400188b4
cmp eax, 0xffffffff
je 0x14001f11d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001f0e4
mov edx, r15d
mov ecx, r14d
call fcn.14000fc68
jmp 0x14001f13d
cmp byte [rsi + 0x38], dil
je 0x14001f134
cmp dword [rsi + 0x34], 5
jne 0x14001f134
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001f13d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140010688
jmp 0x14001f1b0
jns 0x14001f1b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d3c0
cmp rax, 0xffffffffffffffff
jne 0x14001f168
cmp byte [rsi + 0x30], dil
je 0x14001f1b0
mov edi, dword [rsi + 0x2c]
jmp 0x14001f1b0
mov ecx, r14d
call fcn.140016ef4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001f1b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001f1b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001f1a9
mov eax, dword [rsi + 0x2c]
jmp 0x14001f1ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d3c0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001ff40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ff68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ff68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008b38
Capabilities:
Parse pe header

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

Function at 0x14000d504
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d300
Function at 0x14001060c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001063c
xor eax, eax
jmp 0x1400106ff
mov rbp, rbx
cmp word [rax], si
je 0x140010661
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010648
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140010644
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001052c
movsxd r14, eax
test eax, eax
jne 0x14001069f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140010635
mov rcx, r14
call fcn.14000df38
mov rdi, rax
test rax, rax
jne 0x1400106b8
xor ecx, ecx
call fcn.14000defc
jmp 0x140010694
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001052c
test eax, eax
jne 0x1400106e9
mov rcx, rdi
call fcn.14000defc
jmp 0x1400106f3
xor ecx, ecx
call fcn.14000defc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140013b90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f5fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013c1a
cmp byte [rbp - 0x21], r15b
je 0x140013c15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013c50
call fcn.140011c98
test eax, eax
jne 0x140013c3c
cmp byte [rbp - 0x21], r15b
je 0x140013c34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013c50
cmp byte [rbp - 0x21], r15b
je 0x140013c4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ebdc
test eax, eax
jne 0x140013cf0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f5fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013c8f
cmp byte [rbp - 0x21], r15b
je 0x140013cc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013cc4
call fcn.140011c98
test eax, eax
jne 0x140013cb0
cmp byte [rbp - 0x21], r15b
je 0x140013ca9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013cc4
cmp byte [rbp - 0x21], r15b
je 0x140013cc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ebdc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013cf0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013cf3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013d01
mov rcx, rdi
call fcn.14000defc
cmp byte [rbp + 0x3f], r15b
je 0x140013d10
mov rcx, qword [rbp + 0x27]
call fcn.14000defc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140016b40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016b68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016b68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c4f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x1401af966], 0
je 0x14000c6dd
mov ecx, dword [reloc.WLDAP32.dll_Ordinal_32]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14000c6dd
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14000c6dd
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000c543
mov byte [0x1401a622a], 1
jmp 0x14000c596
cmp byte [0x1401a622a], 0
je 0x14000c596
xor edx, edx
lea ecx, [rdx + 0x44]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x44
mov edx, eax
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 0x44]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x44
mov edx, eax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov byte [0x1401a622a], 0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000c5af
mov byte [0x1401a622c], 1
jmp 0x14000c602
cmp byte [0x1401a622c], 0
je 0x14000c602
xor edx, edx
lea ecx, [rdx + 0x41]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x41
mov edx, eax
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 0x41]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x41
mov edx, eax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov byte [0x1401a622c], 0
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000c61b
mov byte [0x1401a622b], 1
jmp 0x14000c66e
cmp byte [0x1401a622b], 0
je 0x14000c66e
xor edx, edx
lea ecx, [rdx + 0x53]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x53
mov edx, eax
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 0x53]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x53
mov edx, eax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov byte [0x1401a622b], 0
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000c68a
mov byte [0x1401a6229], 1
add rsp, 0x28
ret
cmp byte [0x1401a6229], 0
je 0x14000c6dd
xor edx, edx
lea ecx, [rdx + 0x57]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x57
mov edx, eax
lea r8d, [r9 + 8]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 0x57]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov cl, 0x57
mov edx, eax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov byte [0x1401a6229], 0
add rsp, 0x28
ret
Function at 0x1400230e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, rcx
lea r10, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
xor r9b, r9b
nop dword [rax]
nop word [rax + rax]
movzx edx, r9b
lea r10, [r10 + 4]
movzx eax, r9b
add r9b, 4
movzx r8d, byte [rax + rbx + 1]
movzx eax, byte [rdx + rbx]
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 3]
shl r8d, 8
or r8d, eax
mov dword [r10 - 4], r8d
sub rcx, 1
jne 0x140023120
mov esi, dword [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov r11b, reloc.WS2_32.dll_recv
nop
mov r9d, dword [rdi + 4]
lea r10, [rdi]
movzx eax, r11b
lea rdi, [rdi + 4]
mov r8d, r9d
inc r11b
ror r8d, 0x12
mov edx, dword [rsp + rax*4 + 0x18]
mov ecx, edx
ror ecx, 0x13
mov eax, r9d
ror eax, 7
xor r8d, eax
mov eax, r9d
shr eax, 3
xor r8d, eax
mov eax, edx
ror eax, 0x11
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 + 0x24]
add r8d, esi
mov esi, r9d
mov dword [r10 + 0x40], r8d
cmp r11b, 0x40
jb 0x140023170
movups xmm0, xmmword [rbx + 0x50]
lea rax, [rbx + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rbp + 0x68], rax
movups xmmword [rsp], xmm0
mov r12d, dword [rsp + 8]
lea ebx, [rsi + 0x40]
mov r13d, dword [rsp + 4]
mov r11d, dword [rsp]
movups xmmword [rsp + 0x10], xmm1
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov edi, dword [rsp + 0x10]
mov eax, dword [rsp + 0x1c]
nop word [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
ror ecx, 0xb
mov r10d, edi
ror r10d, 0x19
mov edx, edi
xor r10d, ecx
not edx
and edx, r14d
mov ecx, edi
ror ecx, 6
mov r8d, r12d
xor r10d, ecx
mov r9d, r13d
mov ecx, r15d
and r9d, r8d
and ecx, edi
xor edx, ecx
lea rcx, [0x1400ffd10]
add r10d, edx
mov edx, r11d
add r10d, dword [rsi + rcx - 4]
mov ecx, r11d
add r10d, dword [rsp + rsi + 0x1c]
ror ecx, 0xd
add r10d, eax
ror edx, 0x16
mov eax, r14d
xor edx, ecx
mov r14d, r15d
mov ecx, r11d
mov r15d, edi
mov edi, dword [rsp + 0xc]
ror ecx, 2
add edi, r10d
xor edx, ecx
mov dword [rsp + 0xc], r12d
mov r12d, r13d
mov r13d, r11d
mov ecx, r12d
or ecx, r8d
and r11d, ecx
lea ecx, [r10 + rdx]
or r11d, r9d
add r11d, ecx
sub rbx, 1
jne 0x140023210
lea r8, [rsp]
mov dword [rsp + 0x1c], eax
sub r8, qword [rbp + 0x60]
lea edx, [rbx + 8]
mov rax, qword [rbp + 0x68]
mov dword [rsp], r11d
mov dword [rsp + 0x10], edi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 8], r12d
mov dword [rsp + 4], r13d
nop word [rax + rax]
mov ecx, dword [rax + r8 - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x1400232e0
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret