joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005b110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x18005b132
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
je 0x18005b22f
xor r8d, r8d
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.180032430
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
cmp qword [rdi + 0x18], 8
jb 0x18005b172
mov rdi, qword [rdi]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov r8, qword [rsp + 0x40]
cmp rcx, r8
ja 0x18005b1a8
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
xor esi, esi
mov word [rax + rcx*2], si
jmp 0x18005b20b
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x18005b1f1
mov qword [rsp + 0x40], rcx
lea r9, [rsp + 0x30]
cmp rdi, 8
cmovae r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
xor esi, esi
test rdx, rdx
je 0x18005b1e6
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x18005b20b
xor esi, esi
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.18002bd80
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor esi, esi
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
xor r8d, r8d
lea rdx, [0x1800fdbe0]
mov rcx, rbx
call fcn.18002b6f0
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18005b550
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rsi, r8
mov r14, rdx
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp - 0x29], 0x68
xor r12d, r12d
mov word [rbp + 0x17], r12w
mov dword [rbp + 0x13], 1
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov r15, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x18005b5d7
mov rsi, qword [r8]
cmp r15, 8
jae 0x18005b5f2
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x51], 7
lea rdx, [rbp - 0x69]
jmp 0x18005b63f
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x69]
call fcn.18002b910
mov qword [rbp - 0x69], rax
lea r8, [r15*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.18008c6d0
mov qword [rbp - 0x51], rbx
lea rdx, [rbp - 0x69]
cmp rbx, 8
cmovae rdx, qword [rbp - 0x69]
mov qword [rbp - 0x59], r15
cmp qword [r14 + 0x18], 8
jb 0x18005b64d
mov r14, qword [r14]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdx, qword [rbp - 0x51]
test eax, eax
jne 0x18005b6ed
mov byte [rdi + 0x18], r12b
cmp rdx, 8
jb 0x18005b6c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b6c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005b735
call fcn.18008a564
mov rax, rdi
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rbp - 0x39]
movsd qword [rdi + 0x10], xmm1
mov byte [rdi + 0x18], 1
cmp rdx, 8
jb 0x18005b6c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b6c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b6c4
call fcn.180090f98
int3
Function at 0x180094ca8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180094b4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180094b4f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180094b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180094b4f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180094b4f
cmp dword [rcx + 0x84], 0xe
jbe 0x180094b4f
cmp dword [rcx + 0xf8], 0
je 0x180094b4f
mov ecx, ebx
call fcn.180094c0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800949dc
nop
cmp dword [rbp + 0x20], 0
je 0x180094b9d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180094ba8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180094ae0
Function at 0x1800a75a8
Capabilities:
Read file on windows

Disassembly:
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 0x1800a75da
call fcn.1800948a8
mov dword [rax], socket
call fcn.180090f78
jmp 0x1800a76f9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800a76f9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800a76f9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800a7609
lock or dword [rcx + 0x14], 0x10
jmp 0x1800a76f9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800a761d
call fcn.1800a8e48
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800a6e48
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800a9360
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800a76e7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800a76b2
mov rcx, rsi
call fcn.1800a6e48
cmp eax, edi
je 0x1800a769d
mov rcx, rsi
call fcn.1800a6e48
cmp eax, 0xfffffffe
je 0x1800a769d
mov rcx, rsi
call fcn.1800a6e48
movsxd rbx, eax
lea r14, [0x18011ba20]
mov rcx, rsi
sar rbx, 6
call fcn.1800a6e48
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800a76a4
lea rdx, [0x1801186b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800a76b2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800a76d6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800a76d6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800a76d6
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 0x1800a76fc
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 0x1800a8bc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18008b2d0
sub rsp, rax
mov rax, qword [0x180118308]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800a6e48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800a8c17
mov rax, rbp
jmp 0x1800a8d1f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x11ba20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800a9b38
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x11ba20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800a8d1b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a8d1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800a9b38
test rax, rax
js 0x1800a8d1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800a8d1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800a8d0d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800a8d0d
cmp byte [rcx], 0xd
jne 0x1800a8cf3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800a8d02
cmp byte [rcx + 1], 0xa
jne 0x1800a8d02
inc rcx
jmp 0x1800a8d02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x118700]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800a8cd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800a8d1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18008ae60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800a8eb4
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, [0x18011ba20]
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 0x1800a8f12
cmp word [rdx], r12w
jne 0x1800a8f12
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800a8f18
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800a9073
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800a904e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800a8f51
mov rcx, r9
jmp 0x1800a8f74
cmp r9, rdx
jae 0x1800a8f8b
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 0x1800a8f35
jmp 0x1800a9073
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 0x1800a9048
cmp dword [rsp + 0x80], edi
je 0x1800a9048
mov rdx, r14
lea r11, [0x18011ba20]
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 0x1800a9021
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800a8ff4
mov word [rbx], r12w
jmp 0x1800a906f
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 0x1800a8ffd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800a906f
cmp word [rsp + 0x70], r12w
jne 0x1800a902e
cmp rbx, rsi
je 0x1800a8fee
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800a9b40
cmp word [rsp + 0x70], r12w
je 0x1800a9073
mov word [rbx], r13w
jmp 0x1800a906f
lea r11, [0x18011ba20]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800a906b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800a9073
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 0x1800adb9c
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 0x1800adbcc
xor eax, eax
jmp 0x1800adc8f
mov rbp, rbx
cmp word [rax], si
je 0x1800adbf1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800adbd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800adbd4
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.1800aa96c
movsxd r14, eax
test eax, eax
jne 0x1800adc2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800adbc5
mov rcx, r14
call fcn.1800a5b2c
mov rdi, rax
test rax, rax
jne 0x1800adc48
xor ecx, ecx
call fcn.1800a4be0
jmp 0x1800adc24
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.1800aa96c
test eax, eax
jne 0x1800adc79
mov rcx, rdi
call fcn.1800a4be0
jmp 0x1800adc83
xor ecx, ecx
call fcn.1800a4be0
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 0x1800b2a30
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.180097a34
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800b2aba
cmp byte [rbp - 0x21], r15b
je 0x1800b2ab5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800b2af0
call fcn.1800a4fb4
test eax, eax
jne 0x1800b2adc
cmp byte [rbp - 0x21], r15b
je 0x1800b2ad4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800b2af0
cmp byte [rbp - 0x21], r15b
je 0x1800b2aed
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.1800a0ef0
test eax, eax
jne 0x1800b2b90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180097a34
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800b2b2f
cmp byte [rbp - 0x21], r15b
je 0x1800b2b64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800b2b64
call fcn.1800a4fb4
test eax, eax
jne 0x1800b2b50
cmp byte [rbp - 0x21], r15b
je 0x1800b2b49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800b2b64
cmp byte [rbp - 0x21], r15b
je 0x1800b2b61
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.1800a0ef0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800b2b90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800b2b93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800b2ba1
mov rcx, rdi
call fcn.1800a4be0
cmp byte [rbp + 0x3f], r15b
je 0x1800b2bb0
mov rcx, qword [rbp + 0x27]
call fcn.1800a4be0
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 0x1800b5aac
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.1800a9b40
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800a9b40
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800b5bfc
cmp rax, 0xffffffffffffffff
je 0x1800b5bfc
xor edi, edi
test rbp, rbp
jle 0x1800b5ba7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800a4c1c
mov rbx, rax
test rax, rax
jne 0x1800b5b34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800b5b9d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800b5934
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.1800a8448
cmp eax, 0xffffffff
je 0x1800b5b7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800b5b44
mov edx, r15d
mov ecx, r14d
call fcn.1800b5934
jmp 0x1800b5b9d
cmp byte [rsi + 0x38], dil
je 0x1800b5b94
cmp dword [rsi + 0x34], 5
jne 0x1800b5b94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x1800b5b9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800a4be0
jmp 0x1800b5c10
jns 0x1800b5c10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800a9b40
cmp rax, 0xffffffffffffffff
jne 0x1800b5bc8
cmp byte [rsi + 0x30], dil
je 0x1800b5c10
mov edi, dword [rsi + 0x2c]
jmp 0x1800b5c10
mov ecx, r14d
call fcn.1800ae354
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800b5c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x1800b5c10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800b5c09
mov eax, dword [rsi + 0x2c]
jmp 0x1800b5c0e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800a9b40
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 0x140001480
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp dword [0x140116f60], 0
jne 0x1400014a0
xor edx, edx
mov ecx, 0x10001
call fcn.140005040
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140003a20
push rbx
sub rsp, 0x70
mov rax, qword [0x140115b28]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
lea rdx, [0x14011e060]
cmp ecx, 0xffffffff
je 0x140003a4e
movsxd rax, ecx
movsx ebx, word [rdx + rax*2 + 0x5a0]
movsxd rax, ebx
movsx ecx, word [rdx + rax*2 + 0x1a0]
call fcn.1400012f0
test eax, eax
jne 0x140003a77
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d7b00
add rsp, 0x70
pop rbx
ret
shl ebx, 0x10
lea rdx, [rsp + 0x40]
mov r8d, reloc.WS2_32.dll_recv
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x140003a62
xor eax, eax
lea rbx, [0x14011e1c0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140003a62
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d7b00
add rsp, 0x70
pop rbx
ret

Function at 0x140002290
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140116f60], 0
jne 0x1400022a5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140005040
jmp fcn.140004db0

Function at 0x140002df0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
mov eax, 1
test ecx, 0x80000000
lea ecx, [rax + 0x10]
cmovne edi, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140002e27
or edi, 2
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140002e3a
or edi, 4
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movsx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
or ecx, ebx
jns 0x140002e5d
or edi, 8
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002e70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
mov eax, 1
test ecx, 0x80000000
lea ecx, [rax + 0x10]
cmovne edi, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140002ea7
or edi, 2
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140002eba
or edi, 4
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x5b
movsx ebx, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
or ecx, ebx
jns 0x140002edd
or edi, 8
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003a20
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp dword [0x140116f60], 0
jne 0x1400014a0
xor edx, edx
mov ecx, 0x10001
call fcn.140005040
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140003a20
push rbx
sub rsp, 0x70
mov rax, qword [0x140115b28]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
lea rdx, [0x14011e060]
cmp ecx, 0xffffffff
je 0x140003a4e
movsxd rax, ecx
movsx ebx, word [rdx + rax*2 + 0x5a0]
movsxd rax, ebx
movsx ecx, word [rdx + rax*2 + 0x1a0]
call fcn.1400012f0
test eax, eax
jne 0x140003a77
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d7b00
add rsp, 0x70
pop rbx
ret
shl ebx, 0x10
lea rdx, [rsp + 0x40]
mov r8d, reloc.WS2_32.dll_recv
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x140003a62
xor eax, eax
lea rbx, [0x14011e1c0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140003a62
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d7b00
add rsp, 0x70
pop rbx
ret