joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027b88
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.14000fd30
sub rsp, rax
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400234e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140027bd7
mov rax, rbp
jmp 0x140027cdf
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 + 0x4e980]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028e70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4e980]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140027cdb
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 0x140027cdb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028e70
test rax, rax
js 0x140027cdb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140027cdb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140027ccd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140027ccd
cmp byte [rcx], 0xd
jne 0x140027cb3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140027cc2
cmp byte [rcx + 1], 0xa
jne 0x140027cc2
inc rcx
jmp 0x140027cc2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027c95
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140027cdf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f6d0
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 0x140027ffc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140028012
mov al, 1
jmp 0x140028072
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140028023
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028070
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002cc68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028070
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028070
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028070
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028072
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140028210
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, [0x14004e980]
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 0x140028267
cmp word [rdx], r13w
jne 0x140028267
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002826c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140028391
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400283b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400282a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400282cc
cmp r9, r8
jae 0x1400282dc
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 0x140028286
jmp 0x140028391
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 0x140028386
cmp dword [rsp + 0x80], esi
je 0x140028386
lea r8, [0x14004e980]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002835e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002832e
mov word [rbx], r13w
jmp 0x14002838e
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 0x14002833b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002838e
cmp word [rsp + 0x70], r13w
jne 0x14002836b
cmp rbx, r14
je 0x140028328
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028e78
cmp word [rsp + 0x70], r13w
je 0x140028391
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, [0x14004e980]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002838b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140028391
Function at 0x14002c430
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 0x14002c460
xor eax, eax
jmp 0x14002c523
mov rbp, rbx
cmp word [rax], si
je 0x14002c485
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c46c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c468
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.14002aa30
movsxd r14, eax
test eax, eax
jne 0x14002c4c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c459
mov rcx, r14
call fcn.140022150
mov rdi, rax
test rax, rax
jne 0x14002c4dc
xor ecx, ecx
call fcn.140022114
jmp 0x14002c4b8
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.14002aa30
test eax, eax
jne 0x14002c50d
mov rcx, rdi
call fcn.140022114
jmp 0x14002c517
xor ecx, ecx
call fcn.140022114
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 0x14002f1bc
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.1400239f0
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 0x14002f25d
cmp ebx, dword [rsp + 0x30]
je 0x14002f256
test esi, esi
je 0x14002f256
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002f231
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002f23e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002f21b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002f242
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002f25f
mov eax, 1
jmp 0x14002f25f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140032c0c
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.14001850c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032c96
cmp byte [rbp - 0x21], r15b
je 0x140032c91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140032ccc
call fcn.140025c6c
test eax, eax
jne 0x140032cb8
cmp byte [rbp - 0x21], r15b
je 0x140032cb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140032ccc
cmp byte [rbp - 0x21], r15b
je 0x140032cc9
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.14001e7c8
test eax, eax
jne 0x140032d6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001850c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140032d0b
cmp byte [rbp - 0x21], r15b
je 0x140032d40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032d40
call fcn.140025c6c
test eax, eax
jne 0x140032d2c
cmp byte [rbp - 0x21], r15b
je 0x140032d25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032d40
cmp byte [rbp - 0x21], r15b
je 0x140032d3d
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.14001e7c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140032d6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140032d6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140032d7d
mov rcx, rdi
call fcn.140022114
cmp byte [rbp + 0x3f], r15b
je 0x140032d8c
mov rcx, qword [rbp + 0x27]
call fcn.140022114
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:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
lea rcx, str.load_all
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r14d, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400010f8
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400010ef
cmp dword [rsp + 0x4c], ebp
jg 0x1400010ef
mov ebx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400010ef
mov rbx, qword [rsp + 0x48]
mov rdi, rax
mov dword [rsp + 0x40], ebp
test ebx, ebx
je 0x1400010ed
nop dword [rax]
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000114b
mov eax, dword [rsp + 0x40]
add rdi, rax
sub ebx, eax
jne 0x1400010c0
mov rbx, qword [rsp + 0x48]
mov ebp, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x40
mov edx, ebp
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebp
mov rdx, r14
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001180
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400010f8
Function at 0x14001df43
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov dword [0x1400ad001], 0x5a
mov dword [0x1400ad001], 0x5b
mov byte [rsp + 0x28], 0
mov dword [0x1400ad001], 0x5d
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call fcn.14002407e
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call fcn.1400240fc
and rax, rax
je 0x14001e0ce
mov dword [0x1400ad001], 0x5e
lea rax, [rsp + 0x38]
mov dword [0x1400ad001], 0x60
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call fcn.140024102
and rax, rax
je 0x14001e0b0
mov dword [0x1400ad001], 0x61
lea rax, [rsp + 0x40]
mov dword [0x1400ad001], 0x64
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x1400ad001], 0x65
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x1400ad001], 0x66
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x1400ad001], 0x67
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x1400ad001], 0x69
lea rax, [rsp + 0x50]
mov rax, rax
push rax
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push 4
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140024108
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x1400ad001], 0x6a
mov dword [0x1400ad001], 0x6b
push qword [rsp + 0x30]
pop rcx
call fcn.140024054
mov dword [0x1400ad001], 0x6c
mov dword [0x1400ad001], 0x6d
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x14001e0fb
add rsp, 0x58
pop r15
pop rbp
ret
Function at 0x140062100
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r8, rcx
test rcx, rcx
je 0x1400621cb
mov rdx, qword [rcx]
xor r9d, r9d
mov qword [rsp], rdi
mov eax, r9d
mov r10d, r9d
lea rdi, [0x14009f1f0]
mov byte [rdx + 0x16], al
mov rdx, qword [rcx]
mov byte [rdx + 0x17], al
mov rdx, qword [rcx]
mov byte [rdx + 0x18], al
mov rdx, qword [rcx]
mov byte [rdx + 0x19], al
movsxd r11, dword [rcx + 8]
test r11, r11
jle 0x140062175
mov qword [rsp + 0x10], rbx
mov rbx, qword [rcx]
nop dword [rax]
movzx edx, byte [rbx + r10]
mov ecx, eax
inc r10
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r10, r11
jl 0x140062150
mov rbx, qword [rsp + 0x10]
movsxd r10, dword [r8 + 0x18]
test r10, r10
jle 0x1400621a2
mov r11, qword [r8 + 0x10]
movzx edx, byte [r11 + r9]
mov ecx, eax
inc r9
shr rcx, 0x18
xor rdx, rcx
mov ecx, eax
mov eax, dword [rdi + rdx*4]
shl ecx, 8
xor eax, ecx
cmp r9, r10
jl 0x140062182
mov rcx, qword [r8]
mov rdi, qword [rsp]
mov edx, eax
mov byte [rcx + 0x16], al
mov rcx, qword [r8]
shr edx, 8
mov byte [rcx + 0x17], dl
mov rcx, qword [r8]
mov edx, eax
shr edx, 0x10
shr eax, 0x18
mov byte [rcx + 0x18], dl
mov rcx, qword [r8]
mov byte [rcx + 0x19], al
add rsp, 8
ret
Function at 0x14008a268
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x14008a32f
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x14008a314
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x14008a2f0
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14008a328
add ecx, ebp
jmp 0x14008a32a
add ecx, ebx
test r10d, r10d
jne 0x14008a2c4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14008b0d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x14008b199
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x14008b17f
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x14008b15b
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x14008b192
add ecx, ebp
jmp 0x14008b194
add ecx, edi
test r11d, r11d
jne 0x14008b12f
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x421ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x25c334dd
jmp 0x40d1e0
dec rcx
jmp 0x40d371
jne 0x40d1e0
jmp 0x40d437
jmp 0x40d6cc
jmp 0x40d73f
jmp 0x40d788
jmp 0x40d7d3
jmp 0x40d831
jmp 0x40d898
jmp 0x40d8c9
jmp 0x40d954
jmp 0x40d97c
jmp 0x40d9bf
jmp 0x40da0e
jmp 0x40da50
jmp 0x40dab7
jmp 0x40db2b
jmp 0x40db7d
jmp 0x40dba3
jmp 0x40dbe6
jmp 0x40dc2d
jmp 0x40dcb5
jmp 0x40dcf1
xor rcx, rcx
mov rdx, 0x8487
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x40dd11
pop rsi
add rsi, 0xe68
mov rdi, rax
mov rcx, 0x8487
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.0042cd60
add rsp, 0x28
xor rcx, rcx
jmp 0x40d159

Function at 0x4278d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0043e2c8]
jne 0x42056a
rol rcx, 0x10
test cx, 0xffff
jne 0x420566
repz ret
ror rcx, 0x10
jmp 0x427830
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004400a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00440198]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x4278b5
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, [0x004400a0]
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.KERNEL32.dll_RtlVirtualUnwind
jmp 0x4278d7
mov rax, qword [rsp + 0x88]
mov qword [0x00440198], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00440138], rax
mov rax, qword [0x00440198]
mov qword [0x00440010], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00440120], rax
mov dword [0x00440000], 0xc0000409
mov dword [0x00440004], 1
mov rax, qword [0x0043e2c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0043e2d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00440098], eax
mov ecx, 1
call fcn.004293e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00436060]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00440098], 0
jne 0x42795e
mov ecx, 1
call fcn.004293e0
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 0x432230
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.004284c0
xor ebx, ebx
cmp qword [0x00440e80], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x432361
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x432293
xor eax, eax
jmp 0x432441
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x43228c
mov rcx, rax
call fcn.00428450
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00440e80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00428450
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00440e88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00428450
lea rcx, [rsp + 0x30]
mov qword [0x00440e90], rax
call fcn.00428ea0
test eax, eax
je 0x432317
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00420e60
cmp dword [rsp + 0x30], 2
jne 0x432361
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00428450
test rax, rax
mov qword [0x00440ea0], rax
je 0x432361
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00428450
mov qword [0x00440e98], rax
mov rcx, qword [0x00440e98]
cmp rcx, rsi
je 0x4323f3
cmp qword [0x00440ea0], rsi
je 0x4323f3
call fcn.00428520
call rax
test rax, rax
mov rbp, rax
je 0x4323be
mov rcx, qword [0x00440ea0]
call fcn.00428520
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4323be
test byte [rsp + 0x48], 1
jne 0x4323f3
lea rcx, [rsp + 0x34]
call fcn.00428ef0
test eax, eax
je 0x4323e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00420e60
cmp dword [rsp + 0x34], 4
jb 0x4323ed
bts edi, 0x15
jmp 0x432427
bts edi, 0x12
jmp 0x432427
mov rcx, qword [0x00440e88]
cmp rcx, rsi
je 0x432427
call fcn.00428520
call rax
test rax, rax
mov rbx, rax
je 0x432427
mov rcx, qword [0x00440e90]
cmp rcx, rsi
je 0x432427
call fcn.00428520
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00440e80]
call fcn.00428520
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret