joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aaea0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140092cb4
cmp rax, rbx
jne 0x1400aaf3c
cmp edi, 1
je 0x1400aaee4
cmp edi, 2
je 0x1400aaf3c
mov rcx, qword [rsi + 0x40]
call fcn.140092960
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400aaf60
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1400aaf95
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140092cb4
xor ebx, ebx
test rsi, rsi
jle 0x1400aafba
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x1400aafba
inc rbx
cmp rsi, rbx
jne 0x1400aaf9c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400aafd0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp edx, 0xffffffff
je 0x1400ab03a
mov r15d, edx
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x1400ab060
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.140092cb4
mov esi, 0xffffffff
cmp rax, 1
je 0x1400ab03d
jmp 0x1400ab040
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1400ab110
mov ebp, eax
cmp eax, 3
je 0x1400ab0ef
cmp ebp, 1
ja 0x1400ab110
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140092cb4
cmp rax, rsi
jne 0x1400ab110
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1400ab078
jmp 0x1400ab03d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140092cb4
cmp rax, 1
je 0x1400ab03d
mov esi, 0xffffffff
jmp 0x1400ab040

Function at 0x1400ab160
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1400ab195
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140092cb4
xor ebx, ebx
test rsi, rsi
jle 0x1400ab1bb
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x1400ab1bb
inc rbx
cmp rsi, rbx
jne 0x1400ab19c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ab1d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp dx, 0xffff
je 0x1400ab23a
mov r15d, edx
mov rdi, rcx
mov word [rsp + 0x56], dx
cmp byte [rcx + 0x58], 0
je 0x1400ab260
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.140092cb4
mov si, 0xffff
cmp rax, 1
je 0x1400ab23d
jmp 0x1400ab240
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1400ab310
mov ebp, eax
cmp eax, 3
je 0x1400ab2ef
cmp ebp, 1
ja 0x1400ab310
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140092cb4
cmp rax, rsi
jne 0x1400ab310
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1400ab278
jmp 0x1400ab23d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140092cb4
cmp rax, 1
je 0x1400ab23d
mov si, 0xffff
jmp 0x1400ab240

Function at 0x1400ab360
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ab397
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x1400ab371
ret

Function at 0x1400ab3f0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ab428
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x1400ab401
ret
Function at 0x1400b10a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r15b, byte [rbp + 0x78]
test byte [r9 + 8], 1
jne 0x1400b10ff
movzx eax, word [rbp + 0x70]
movzx edx, r15b
mov rbx, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, r14
mov r8, rdi
call qword [rbx + 0x30]
mov rax, r14
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rsi, [rbp - 0x20]
mov rcx, r9
mov rdx, rsi
call fcn.140058e10
lea rdx, [0x140113630]
mov rcx, rsi
call fcn.1400595e0
mov r12, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400b1138
mov rax, qword [rcx]
call qword [rax + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rbp - 0x20]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x1400f2f80]
movaps xmmword [r13], xmm0
mov rax, qword [r12]
xor r15b, 1
movzx esi, r15b
mov rcx, r12
mov rdx, r13
call qword [rax + rsi*8 + 0x28]
movzx ebx, byte [r13 + 0x17]
test bl, bl
mov rcx, qword [r13]
mov r8, qword [r13 + 8]
mov rax, rbx
cmovs rax, r8
test rax, rax
je 0x1400b11f0
test bl, bl
mov rsi, rcx
cmovns rsi, r13
test rdi, rdi
je 0x1400b11df
movzx eax, word [rsi]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400b11e3
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1400b11b5
xor edi, edi
mov bl, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
add rsi, 2
test bl, bl
mov rax, r13
cmovs rax, rcx
movzx edx, bl
cmovs rdx, r8
lea rax, [rax + rdx*2]
cmp rsi, rax
jne 0x1400b1190
jmp 0x1400b11f0
xor edi, edi
jmp 0x1400b11c0
mov rbx, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [rbx + 0x60]
jmp 0x1400b11ad
shr bl, 7
mov qword [r14], rdi
test bl, bl
je 0x1400b10eb
call fcn.14007b788
jmp 0x1400b10eb

Function at 0x1400bf8d0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14007b74c
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400bf940]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400896c0
mov qword [rbx], rax
test rax, rax
je 0x1400bf927
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400c0dd0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400c0ddd
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400c1830
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x140114c48]
test rax, rax
je 0x1400c1974
cmp eax, 2
jne 0x1400c18ac
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400c1944
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x83
mov r9d, 2
call fcn.140035120
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1400c1937
mov eax, 1
lock xadd qword [0x140114c80], rax
test rax, rax
jle 0x1400c18cc
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x140114c00], eax
mov qword [0x140114bf8], rsi
mov rcx, qword [0x1401101c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400c1944
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xaf
mov r9d, 2
call fcn.140035120
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1400556b0
mov rcx, rsi
call fcn.1400355b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14007c600
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x140114c48]
test rax, rax
je 0x1400c197b
jmp 0x1400c185e
Function at 0x1400cae00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rbp, qword [rcx + 0x40]
mov r15d, 1
cmp rdi, rbp
je 0x1400cae98
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.1400ca450
test al, al
jne 0x1400cae5c
add rdi, 0x70
cmp rbp, rdi
jne 0x1400cae41
mov rdi, rbp
cmp rdi, qword [rsi + 0x40]
je 0x1400cae98
cmp byte [rdi + 0x27], 0
jns 0x1400cae6e
mov rcx, qword [rdi + 0x10]
jmp 0x1400cae72
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x1400cae98
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400caec0
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
cmp rbx, rsi
jne 0x1400caeec
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, r8
mov edi, edx
lea r14, [r8 + 0x18]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
jne 0x1400caf3b
cmp byte [rbx + 0x27], 0
jns 0x1400caf0d
mov rcx, qword [rbx + 0x10]
jmp 0x1400caf11
lea rcx, [rbx + 0x10]
call r13
test al, 0x10
jne 0x1400caf3b
mov r15, qword [r12 + 8]
cmp r15, qword [r12 + 0x10]
je 0x1400caf46
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.140043b70
add r15, 0x68
mov qword [r12 + 8], r15
add rbx, 0x70
cmp rsi, rbx
je 0x1400caedc
jmp 0x1400caefc
mov rcx, r12
mov rdx, rbx
call fcn.1400cbb10
jmp 0x1400caf3b

Function at 0x1400cb130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
mov r12d, 1
cmp rdi, rsi
je 0x1400cb1ba
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.1400ca450
test al, al
jne 0x1400cb191
add rdi, 0x70
cmp rsi, rdi
jne 0x1400cb176
mov rdi, rsi
cmp rdi, qword [rbx + 0x40]
je 0x1400cb1ba
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x1400cb1ab
cmp byte [rdi + 0x27], 0
jns 0x1400cb1d9
mov rcx, qword [rdi + 0x10]
jmp 0x1400cb1dd
xor ecx, ecx
cmp eax, 1
sete cl
lea r12d, [rcx + rcx*2]
inc r12d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007c600
mov eax, r12d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cb1ba
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x1400cb1ba
mov byte [rbx + 0x30], 1
mov qword [r14], rdi
xor r12d, r12d
jmp 0x1400cb1ba
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.140146000
add rsp, 0x28
jmp 0x140008188
Function at 0x1400084d0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b110]
jne 0x1400084eb
rol rcx, 0x10
test cx, 0xffff
jne 0x1400084e7
ret 0
ror rcx, 0x10
jmp 0x1400088a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000b610]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x14000b708]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000892d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000b610]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x14000894f
mov rax, qword [rsp + 0x88]
mov qword [0x14000b708], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000b6a8], rax
mov rax, qword [0x14000b708]
mov qword [0x14000b580], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000b690], rax
mov dword [0x14000b570], 0xc0000409
mov dword [0x14000b574], 1
mov rax, qword [0x14000b110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001570]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140008744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140008791
cmp rcx, 0xffffffffffffffff
je 0x140008791
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008789
cmp dword [rcx + 0x3c], edx
jl 0x140008789
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008789
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008791
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400b253e
Capabilities:
Encode data using xor

Disassembly:
movabs eax, dword [0x163ca0bea1bea3be]
mov dl, 0x76
xor byte [rbx + 0x65b63c76], dh
jb 0x1400b24d9
cmp eax, 0x16fc9012
fld xword [rdi - 1]
inc dword [rdi + 0x23]
xchg edx, eax
call 0x17d2d5e13
or byte [rsi], al
adc al, 0xd7
jrcxz 0x1400b24fc
invalid
lahf
invalid
sbb al, 0xbd
push rbp
jbe 0x1400b24d0
mov ebp, 0x93562047
std
invalid
pop rbp
pop rcx
lea eax, [rax]
fidivr word [rsi]
jge 0x1400b2520
neg dword [rax]
mov edx, 0x4b17dda0
xor al, 0xee
pop rsi
jb 0x1400b251e
sahf
push rdx
mov dl, 0x7a
cwde
cmp eax, 0x373e2f00
out dx, al
cld
xchg ebx, eax
fild word [rbx + 0x6b]
invalid
Function at 0x140005a80
Capabilities:
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rdi, rcx
jne 0x140005aac
call fcn.140005e50
test eax, eax
jne 0x140005aac
lea rdx, str.Cant_open_clipboard_for_writing.
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x140005bd0
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140005aed
cmp dword [rdi + 0x2c], eax
je 0x140005ae1
xor esi, esi
cmp qword [rdi + 0x10], rsi
je 0x140005ad5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rcx, [0x140129aa8]
jmp 0x140005ba9
mov rcx, qword [rdi + 8]
xor esi, esi
test rcx, rcx
je 0x140005b30
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140005b64
cmp word [rax], si
mov qword [rsp + 0x30], rbx
sete bl
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov dword [rdi + 0x28], esi
je 0x140005b64
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rdi + 8], rax
cmp dword [rdi + 0x2c], esi
je 0x140005b54
cmp qword [rdi + 0x10], rsi
je 0x140005b48
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 8]
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140005b7e
mov qword [rdi + 8], rsi
jmp 0x140005b30
cmp dword [rdi + 0x2c], esi
je 0x140005ba2
cmp qword [rdi + 0x10], rsi
je 0x140005b96
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rcx, [0x140129ad8]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140005bd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x140005c0b
cmp qword [rcx + 0x10], rsi
je 0x140005bff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x140005c22
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140005c35
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x140005c5f
lea r8, [0x1401295d4]
lea rcx, [0x1401712e0]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400a5580
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140019b50
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rsi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rbx, rax
cmp dl, 0x19
ja 0x140019ccd
mov qword [rsp + 0x150], rbp
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r12
call fcn.14010ec60
xor edi, edi
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbx
movzx ebp, di
cmp eax, 2
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
cmove bp, word [rsp + 0x180]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r12d, eax
test eax, eax
jns 0x140019c32
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 0x6e]
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x140019c9b
cmp bp, 0xa
jne 0x140019c42
mov sil, SafeArrayDestroy
jmp 0x140019c5f
lea rdx, [rsp + 0x170]
mov r9b, 1
mov r8, rbx
movzx ecx, bp
call fcn.140019f60
movzx esi, al
test al, al
je 0x140019c9b
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140019290
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x40]
movzx ecx, sil
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x150]
test r12d, r12d
mov r12, qword [rsp + 0x140]
je 0x140019cb8
movzx edi, word [rsp + 0x180]
movzx eax, di
mov rdi, qword [rsp + 0x148]
add rsp, 0x158
pop rsi
pop rbx
ret
movzx ecx, sil
mov r8, rax
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rsi
pop rbx
ret