joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx + 0x98]
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, str.Enabled
mov rcx, rsi
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov ebx, 0xff
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bf9
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002bf9
mov ecx, eax
mov qword [rsp + 0x68], rdi
call fcn.140006a44
mov rdi, rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rdx, str.Enabled
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bec
movzx ebx, byte [rdi + 1]
movzx ecx, byte [rdi]
shl ebx, 8
or ebx, ecx
mov rcx, rdi
call fcn.1400069ec
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006750
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x140005d10
Capabilities:
Check for sandbox username or hostname
Get session information
Get session user name
Impersonate user

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp eax, 0xffffffff
je 0x140005e98
lea rdx, [rbp - 0x11]
mov qword [rbp - 0x11], rbx
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp eax, 1
jne 0x140005e98
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 0x21]
lea edx, [rbx + 2]
mov qword [rbp - 0x21], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateToken]
cmp eax, 1
jne 0x140005e8e
lea rax, [rbp + 0x2f]
mov qword [rbp - 0x29], rbx
lea r9, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 5]
mov dword [rbp + 0x2f], ebx
mov edx, edi
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
cmp eax, 1
jne 0x140005e84
mov rdx, qword [rbp - 0x29]
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp - 1], rdx
xorps xmm1, xmm1
mov qword [rbp - 9], 0x38
xor ecx, ecx
mov qword [rbp + 0x27], rbx
lea r8d, [rbx + 4]
mov qword [rbp - 0x19], rbx
movdqu xmmword [rbp + 7], xmm0
movdqu xmmword [rbp + 0x17], xmm1
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x140005e7a
mov rax, qword [rbp - 0x19]
lea rdx, [rbp - 9]
mov rcx, qword [rax + 0xa8]
mov qword [rbp + 7], rcx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
cmp eax, 1
jne 0x140005e70
mov rdx, qword [rbp - 0x29]
lea rcx, str.CurrentUser:_s_n
call fcn.140005650
mov rcx, qword [rbp + 0x27]
xor r9d, r9d
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov rdx, r14
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test rsi, rsi
je 0x140005e62
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov rdx, qword [rbp + 0x27]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.netutils.dll_NetApiBufferFree]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140006750
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400169ac
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.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140016a33
mov rsi, rbx
cmp word [rax], bp
je 0x1400169f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400169dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400169d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400133cc
mov rdi, rax
test rax, rax
je 0x140016a20
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c030
mov rbp, rdi
xor ecx, ecx
call fcn.140013390
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.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 0x140003508
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov qword [rbp - 0x21], rcx
xor r12d, r12d
mov dword [rcx + 0x14], r12d
mov qword [rcx + 0x18], r12
add rcx, 0x28
call fcn.1400143d0
nop
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x31]
call fcn.140004570
nop
lea rcx, [rbp - 0x19]
call fcn.140003e04
nop
mov ebx, 0x12bc
mov ecx, ebx
call fcn.140023448
mov qword [rdi + 0x20], rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140026400
mov dword [rbp - 0x39], r12d
mov dword [rbp - 0x35], 0x1400000
lea r8, [rbp - 0x35]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14002120c
mov rsi, rax
test rax, rax
je 0x1400035c9
cmp dword [rbp - 0x39], 0x12c0
jne 0x1400035c9
mov edx, ebx
lea rcx, [rax + 4]
call fcn.140004ba8
cmp dword [rsi], eax
lea rdx, [rsi + 4]
je 0x1400035d0
lea rdx, str.eeeeeeeeeee_eeedeeeQdeeFeeeuweeQdee
mov r8, rbx
mov rcx, qword [rdi + 0x20]
call fcn.1400230b0
test rsi, rsi
je 0x1400035eb
xor edx, edx
mov rcx, rsi
call fcn.140014468
mov rcx, r12
mov rax, qword [rdi + 0x20]
xor byte [rax + rcx], 0x63
mov rax, qword [rdi + 0x20]
add byte [rax + rcx], 0xfa
inc rcx
dec rbx
jne 0x1400035ee
cmp qword [rbp - 1], 8
jb 0x140003616
mov rcx, qword [rbp - 0x19]
call fcn.1400233e4
mov qword [rbp - 1], 7
mov qword [rbp - 9], r12
mov word [rbp - 0x19], r12w
lea rcx, [rbp - 0x31]
call fcn.1400045a8
lea rcx, [rbp + 0xf]
call fcn.140003e04
nop
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rbx, qword [rbp + 0xf]
mov edx, 0x63c1f97
mov ecx, 0x61dfabc
call fcn.140022154
mov rcx, rbx
call rax
test eax, eax
jne 0x1400036ad
lea rcx, [rbp - 0x19]
call fcn.140020764
nop
mov dword [rdi + 0x14], 1
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
inc r8
mov rcx, qword [rdi + 0x20]
add rcx, 0x74
call fcn.1400230b0
mov rcx, rdi
call fcn.140003c80
nop
cmp qword [rbp - 1], 0x10
jb 0x1400036ad
mov rcx, qword [rbp - 0x19]
call fcn.1400233e4
nop
cmp qword [rbp + 0x27], 8
jb 0x1400036be
mov rcx, qword [rbp + 0xf]
call fcn.1400233e4
nop
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140022ee0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140003980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
mov rbx, rcx
lea rdx, [0x1400398c0]
lea r8d, [rdi + 0x25]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], edi
call fcn.1400230b0
lea edx, [rdi + 0x23]
mov al, byte [rsp + rdx + 0x27]
dec rdx
xor byte [rsp + rdx + 0x29], al
test rdx, rdx
jg 0x1400039ba
xor byte [rsp + 0x28], 0xc7
mov qword [rbx + 0x10], rdi
or rcx, 0xffffffffffffffff
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
xor eax, eax
lea rdi, [rsp + 0x28]
lea rdx, [rsp + 0x28]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140002348
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140003b2c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x50], esi
mov edx, 0x8a1017
mov ecx, 0xb9f5b9c
call fcn.140022154
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140002158
nop
movabs rax, 0x713f714f7122
mov qword [rsp + 0x50], rax
lea ecx, [rsi + 2]
movzx eax, word [rsp + rcx*2 + 0x4e]
xor word [rsp + rcx*2 + 0x50], ax
dec rcx
test rcx, rcx
jg 0x140003bbd
mov eax, 0x7156
xor word [rsp + 0x50], ax
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rbx, qword [rsp + 0x28]
mov edx, 0x864f3d7
mov ecx, 0xb9f5b9c
call fcn.140022154
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rax
mov edx, 0xad64067
mov ecx, 0xb9f5b9c
call fcn.140022154
lea rcx, [rsp + 0x60]
call rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140002158
nop
cmp qword [rsp + 0x40], 8
jb 0x140003c53
mov rcx, qword [rsp + 0x28]
call fcn.1400233e4
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140022ee0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003c80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov ecx, 0x12c0
mov dword [rbp + 7], ecx
call fcn.140022d0c
mov rdi, rax
lea rdx, [rbx + 0x28]
lea rcx, [rbp + 0xf]
call fcn.140004570
mov r8d, 0x12bc
mov rdx, qword [rbx + 0x20]
lea rcx, [rdi + 4]
call fcn.1400230b0
lea r11, [rdi + 4]
mov r8d, 0x12bc
mov al, byte [r11]
add al, 6
xor al, 0x63
mov byte [r11], al
inc r11
dec r8
jne 0x140003cee
mov edx, 0x12bc
lea rcx, [rdi + 4]
call fcn.140004ba8
mov dword [rdi], eax
lea rcx, [rbp + 0xf]
call fcn.1400045a8
lea rcx, [rbp + 0x1f]
call fcn.140003e04
nop
lea rbx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rbx, qword [rbp + 0x1f]
mov edx, 0xad68927
mov esi, 0xb9f5b9c
mov ecx, esi
call fcn.140022154
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, rbx
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003d8e
mov rcx, rdi
call fcn.14002382c
nop
cmp qword [rbp + 0x37], 8
jb 0x140003d8a
mov rcx, qword [rbp + 0x1f]
call fcn.1400233e4
xor eax, eax
jmp 0x140003ddf
mov edx, 0xa992b5
mov ecx, esi
call fcn.140022154
and qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 7]
mov rdx, rdi
mov rcx, rbx
call rax
mov edx, 0x9ae7db5
mov ecx, esi
call fcn.140022154
mov rcx, rbx
call rax
mov rcx, rdi
call fcn.14002382c
nop
cmp qword [rbp + 0x37], 8
jb 0x140003dda
mov rcx, qword [rbp + 0x1f]
call fcn.1400233e4
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140022ee0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140004ba8
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
je 0x140004bdd
mov r10d, edx
movzx eax, byte [r9]
movzx edx, r8b
mov ecx, r8d
xor rdx, rax
shr ecx, 8
lea rax, [0x140039a50]
mov r8d, dword [rax + rdx*4]
inc r9
xor r8d, ecx
dec r10
jne 0x140004bb6
not r8d
mov eax, r8d
ret
Function at 0x1400125a8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r12, r9
mov rbx, r8
mov r13, rdx
mov rsi, rcx
movzx eax, word [0x14003a610]
mov word [rbp - 1], ax
mov al, byte [0x14003a612]
mov byte [rbp + 1], al
mov al, byte [rbp - 1]
xor byte [rbp], al
xor al, 0xba
mov byte [rbp - 1], al
mov r15d, 0xf
mov qword [rbp - 0x39], r15
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov byte [rbp - 0x51], r14b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 1]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x51]
call fcn.140002348
nop
lea r8, [rbp - 0x51]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001d7c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400052c0
nop
cmp qword [rbp - 0x11], 0x10
jb 0x140012665
mov rcx, qword [rbp - 0x29]
call fcn.1400233e4
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r14
mov byte [rbp - 0x29], r14b
cmp qword [rbp - 0x39], 0x10
jb 0x140012681
mov rcx, qword [rbp - 0x51]
call fcn.1400233e4
mov eax, dword [0x14003a614]
mov dword [rbp - 1], eax
mov al, byte [0x14003a618]
mov byte [rbp + 3], al
mov ecx, 3
mov al, byte [rbp + rcx - 2]
xor byte [rbp + rcx - 1], al
dec rcx
test rcx, rcx
jg 0x140012698
xor byte [rbp - 1], 0x76
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x41], r14
mov byte [rbp - 0x51], r14b
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
lea rdi, [rbp - 1]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x51]
call fcn.140002348
nop
lea r8, [rbp - 0x51]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001d7c0
nop
mov rdx, rax
mov rcx, r12
call fcn.1400052c0
nop
cmp qword [rbp - 0x11], 0x10
jb 0x140012709
mov rcx, qword [rbp - 0x29]
call fcn.1400233e4
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r14
mov byte [rbp - 0x29], r14b
cmp qword [rbp - 0x39], 0x10
jb 0x140012725
mov rcx, qword [rbp - 0x51]
call fcn.1400233e4
mov rax, qword [0x14003a620]
mov qword [rbp - 1], rax
mov al, byte [0x14003a628]
mov byte [rbp + 7], al
mov edx, 7
mov al, byte [rbp + rdx - 2]
xor byte [rbp + rdx - 1], al
dec rdx
test rdx, rdx
jg 0x14001273e
xor byte [rbp - 1], 0x9f
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x41], r14
mov byte [rbp - 0x51], r14b
xor eax, eax
mov rcx, rbx
lea rdi, [rbp - 1]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x51]
call fcn.140002348
nop
lea r8, [rbp - 0x51]
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14001d7c0
nop
mov rdx, rax
mov rcx, r13
call fcn.1400052c0
nop
cmp qword [rbp - 0x11], 0x10
jb 0x1400127ab
mov rcx, qword [rbp - 0x29]
call fcn.1400233e4
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r14
mov byte [rbp - 0x29], r14b
cmp qword [rbp - 0x39], 0x10
jb 0x1400127c7
mov rcx, qword [rbp - 0x51]
call fcn.1400233e4
mov eax, 1
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140022ee0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001a76c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov dword [rbp - 0x50], edx
mov dword [rbp - 0x18], 0x5a3f5c3f
mov dword [rbp - 0x14], 0x71055a29
mov dword [rbp - 0x10], 0x7e10751e
mov byte [rbp - 0xc], 0x7e
lea ecx, [rdx + 0xc]
mov al, byte [rbp + rcx - 0x19]
xor byte [rbp + rcx - 0x18], al
dec rcx
test rcx, rcx
jg 0x14001a7ba
xor byte [rbp - 0x18], 0x5e
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rdx
mov byte [rbp - 0x40], dl
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x18]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x40]
call fcn.140002348
nop
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.14001d7c0
nop
cmp qword [rbp - 0x28], 0x10
jb 0x14001a81e
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001acfc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov rdi, rcx
lea rcx, [rsp + 0x60]
call fcn.14001af34
nop
xor ebx, ebx
mov qword [rsi], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14001ad4d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14001b054
cmp dword [rbp - 0x50], ebx
jne 0x14001af04
mov rax, qword [0x14003b528]
mov qword [rbp - 0x18], rax
mov rax, qword [0x14003b530]
mov qword [rbp - 0x10], rax
movzx eax, word [0x14003b538]
mov word [rbp - 8], ax
mov al, byte [0x14003b53a]
mov byte [rbp - 6], al
mov ecx, 0x11
mov al, byte [rbp + rcx - 0x19]
xor byte [rbp + rcx - 0x18], al
dec rcx
test rcx, rcx
jg 0x14001ad92
xor byte [rbp - 0x18], 0xb3
mov edi, dword [rsp + 0x60]
shl rdi, 5
mov rax, qword [rsp + 0x68]
movabs r13, 0xffffffffffff
and rax, r13
add rdi, rax
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.14001b16c
cmp qword [rax], rdi
je 0x14001aeff
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x60]
call fcn.14001b1f8
cmp word [rax + 0xe], 4
jne 0x14001aef4
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x60]
call fcn.14001b1f8
cmp dword [rax], ebx
jbe 0x14001aef4
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x60]
call fcn.14001b1f8
mov rdx, qword [rax + 8]
and rdx, r13
mov eax, 0x1000
test word [rdx + 0xe], ax
jne 0x14001ae35
mov rdx, qword [rdx + 8]
and rdx, r13
mov r13d, 0xf
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], bl
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.140002348
nop
lea r9d, [r13 - 0xe]
xor r8d, r8d
lea rdx, [0x14003a3b4]
lea rcx, [rsp + 0x30]
call fcn.140006cd0
cmp rax, 0xffffffffffffffff
jne 0x14001aea6
cmp qword [rsp + 0x48], 0x10
jb 0x14001ae96
mov rcx, qword [rsp + 0x30]
call fcn.1400233e4
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], bl
jmp 0x14001af04
mov r9, rax
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.140010ff0
cmp qword [rax + 0x18], 0x10
jb 0x14001aec4
mov rax, qword [rax]
mov rcx, rax
call fcn.140023a24
mov qword [rsi], rax
cmp qword [rbp - 0x28], 0x10
jb 0x14001aee0
mov rcx, qword [rbp - 0x40]
call fcn.1400233e4
nop
cmp qword [rsp + 0x48], 0x10
jb 0x14001aef8
mov rcx, qword [rsp + 0x30]
call fcn.1400233e4
jmp 0x14001aef8
or qword [rsi], 0xffffffffffffffff
mov ebx, 1
jmp 0x14001af04
mov qword [rsi], rbx
jmp 0x14001aef8
lea rcx, [rsp + 0x60]
call fcn.14001afd0
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140022ee0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x140020118
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov ebx, 0x64
mov esi, r9d
lea r8, [0x140049db0]
lea edx, [rbx + 3]
mov r9d, ebx
mov rdi, rcx
call qword [sym.imp.USER32.dll_LoadStringW]
lea r12, [0x140049e80]
lea edx, [rbx + 9]
mov r8, r12
mov r9d, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
and dword [rbp + 0x17], 0
and dword [rbp + 0x1b], 0
lea rax, [0x1400202ec]
mov ebx, 0x7f00
xor ecx, ecx
mov edx, ebx
mov dword [rbp + 7], 0x50
mov dword [rbp + 0xb], 3
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, ebx
xor ecx, ecx
mov qword [rbp + 0x27], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
xor ecx, ecx
mov qword [rbp + 0x2f], rax
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, qword [rbp + 0x1f]
and qword [rbp + 0x3f], 0
mov edx, 0x6c
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x47], r12
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rbp + 7]
mov qword [rbp + 0x4f], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rdi
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov eax, 2
lea r8, [0x140049db0]
mov r9d, 0xc0000000
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea ecx, [rax + 0x7e]
mov rdx, r12
mov dword [rsp + 0x28], 0x1770
mov qword [0x140049e78], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
je 0x1400202cf
mov edx, esi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 0x6d
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
lea rcx, [0x140022184]
xor r8d, r8d
xor edx, edx
mov rdi, rax
call fcn.140024050
mov rbx, rax
jmp 0x1400202aa
mov rcx, qword [rbp - 0x29]
lea r8, [rbp - 0x29]
mov rdx, rdi
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400202aa
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rbp - 0x29]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140020281
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp - 0x19]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140021770
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rax, qword gs:[0x60]
mov rbx, rcx
xor edi, edi
mov rdx, qword [rax + 0x18]
mov r8, qword [rdx + 0x20]
mov r11, r8
test r8, r8
je 0x14002180a
mov rdx, qword [r8 + 0x50]
cmp di, word [r8 + 0x48]
je 0x14002180a
cmp di, word [r8 + 0x4a]
je 0x14002180a
test rdx, rdx
je 0x14002180a
cmp rdx, 0x1024
jb 0x14002180a
movzx r9d, word [r8 + 0x48]
mov ecx, edi
jmp 0x1400217f9
test r9d, r9d
je 0x1400217fe
mov al, byte [rdx]
cmp al, 0x61
jb 0x1400217ce
sub al, 0x20
shl ecx, 4
movzx eax, al
add rdx, 2
add ecx, eax
mov r10d, ecx
and r10d, 0xf0000000
je 0x1400217f6
mov eax, r10d
not r10d
shr eax, 0x18
xor eax, ecx
mov ecx, eax
and ecx, r10d
dec r9d
cmp word [rdx], di
jne 0x1400217c1
cmp ecx, dword [rbx]
je 0x140021817
mov r8, qword [r8]
cmp r8, r11
jne 0x140021793
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rax, qword [r8 + 0x20]
jmp 0x14002180c