joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046100
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x108]
sub rsp, 0x200
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r9d, dword [0x1401aad80]
mov r10d, 0x2aaaaaab
lea r8d, [r9 + 1]
mov eax, r10d
imul r8d, r9d
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
cmp r8d, 3
jne 0x140046165
inc dword [0x1401ac74c]
imul r9d, r9d
xor ebx, ebx
mov eax, r10d
imul r9d
lea esi, [rbx + 4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r9d, eax
cmp r9d, 0x14
jne 0x1400461ca
movabs rax, 0x32747a4d766c6b
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov rcx, r8
inc rcx
cmp byte [rax + rcx], bl
jne 0x1400461a8
mov rax, rsi
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400bcf98
mov rcx, rax
call fcn.1400be048
cmp byte [0x1401acf20], bl
je 0x1400461de
lea rax, [0x1401a6c50]
jmp 0x1400462b0
mov dword [rbp + 0xc0], 0x110006
mov dword [rbp + 0xc4], 0x2e001d
mov dword [rbp + 0xc8], 0x170009
mov dword [rbp + 0xcc], 0xd001e
mov dword [rbp + 0xd0], 0x2a0004
mov dword [rbp + 0xd4], 0x50008
mov dword [rbp + 0xd8], 0x1f000c
mov dword [rbp + 0xdc], 0x230004
mov dword [rbp + 0xe0], 0x110036
mov dword [rbp + 0xe4], 0x1e001d
mov dword [rbp + 0xe8], 0x52005b
mov word [rbp + 0xec], bx
mov rcx, rbx
lea rdi, [0x1401a6c50]
lea rax, [0x1401a5da0]
movzx eax, byte [rcx + rax]
xor ax, word [rbp + rcx*2 + 0xc0]
mov word [rdi + rcx*2], ax
inc rcx
cmp rcx, 0x16
jl 0x14004625d
mov byte [0x1401acf20], 1
call fcn.1400421dc
test al, al
jne 0x1400462ad
mov r10d, dword [0x1401aad80]
lea r8, [rsp + 0x30]
mov r9d, r10d
inc ebx
dec r9d
add r8, rsi
movsxd rcx, ebx
cmp rcx, 0x62
jb 0x14004629c
mov rax, rdi
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400bd920
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400462d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp - 8], rax
xor ecx, ecx
cmp byte [0x1401acf21], cl
je 0x140046309
lea rax, [0x1401a6828]
jmp 0x1400463d6
mov r11d, 0x19
mov dword [rbp - 0x40], 0x2000f
mov dword [rbp - 0x3c], 0x3c0019
mov dword [rbp - 0x38], 0x1d0013
mov dword [rbp - 0x34], 0x19000e
mov dword [rbp - 0x30], 0x70011
lea r10d, [r11 - 0x18]
lea ebx, [r11 - 0xe]
mov dword [rbp - 0x2c], 0x1f000a
mov dword [rbp - 0x28], 0x17000d
mov dword [rbp - 0x24], 0x1003e
mov dword [rbp - 0x20], 0x16000d
mov dword [rbp - 0x1c], 0x1e0010
mov dword [rbp - 0x18], 0x1a003e
mov dword [rbp - 0x14], 0xb0004
mov dword [rbp - 0x10], r11d
lea r9, [0x1401a6828]
lea rax, [0x1401a5da0]
movzx eax, byte [rcx + rax]
xor ax, word [rbp + rcx*2 - 0x40]
mov word [r9 + rcx*2], ax
add rcx, r10
cmp rcx, r11
jl 0x140046376
mov ecx, dword [0x1401aad80]
mov byte [0x1401acf21], r10b
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x30c30c31
imul r8d, ecx
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, ebx
jne 0x1400463d3
add dword [0x1401ac784], r10d
mov rax, r9
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bd920
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1400463f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp - 8], rax
mov r8d, dword [0x1401aad80]
mov ebx, 2
xor r9d, r9d
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
lea edi, [rbx + 5]
imul ecx, eax
mov eax, 0x38e38e39
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, edi
jne 0x1400464be
jmp 0x1400464b9
mov eax, r8d
and eax, 0x80000001
jge 0x140046460
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140046477
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401aad80], eax
jmp 0x140046486
lea r8d, [r8*2 + 1]
mov dword [0x1401aad80], r8d
mov eax, 0x55555556
mov ecx, r8d
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
je 0x1400464a9
sub ecx, ebx
je 0x1400464ac
dec ecx
je 0x1400464af
jmp 0x1400464b9
add r8d, ebx
inc r8d
add r8d, ebx
mov dword [0x1401aad80], r8d
test r8d, r8d
jne 0x14004644f
lea ecx, [r8 + 1]
mov eax, 0x6bca1af3
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x14004651c
mov r10d, r9d
mov edx, r10d
mov r11d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
sar eax, 1
dec ecx
not ecx
and ecx, r8d
mov edx, ecx
xor edx, eax
dec r11
jne 0x1400464ed
inc r10d
add r8d, edx
cmp r10d, 0x100
jl 0x1400464e4
mov dword [0x1401aad80], r8d
cmp byte [0x1401acf1a], r9b
je 0x140046531
lea rax, [0x1401a6458]
jmp 0x140046648
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
mov dword [rbp - 0x30], 0x350037
mov r10d, 5
mov dword [rbp - 0x2c], 0xf0005
mov dword [rbp - 0x28], 0x100009
imul ecx, eax
imul ecx, r8d
mov eax, 0x30c30c31
mov dword [rbp - 0x24], 0x19002e
mov dword [rbp - 0x20], 0x2c0053
mov dword [rbp - 0x1c], 0x46001d
mov dword [rbp - 0x18], 0x6003b
mov dword [rbp - 0x14], 0xe0002
imul ecx
sar edx, 2
mov dword [rbp - 0x10], 0x60007
mov dword [rbp - 0xc], ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0x14
jne 0x1400465c9
mov ecx, r9d
test r8d, r8d
je 0x1400465c0
mov eax, r8d
and eax, 1
add ecx, eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jne 0x1400465ab
mov r8d, ecx
mov dword [0x1401aad80], ecx
lea rdi, [0x1401a6458]
lea rax, [0x1401a5da0]
movzx eax, byte [r9 + rax]
xor ax, word [rbp + r9*2 - 0x30]
mov word [rdi + r9*2], ax
inc r9
cmp r9, 0x13
jl 0x1400465d0
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x92492493
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, r10d
jne 0x14004663e
mov ecx, 4
call fcn.1400be0e0
mov rbx, rax
call fcn.1400be2e0
mov rcx, rbx
mov dword [rbx], eax
mov dword [0x1401aad80], eax
call fcn.1400bd904
mov byte [0x1401acf1a], 1
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bd920
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140046664
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp - 8], rax
mov ecx, dword [0x1401aad80]
mov eax, 0x66666667
xor r14d, r14d
lea r8d, [rcx + 1]
imul r8d, ecx
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
cmp r8d, 1
jne 0x140046709
mov eax, ecx
mov r10d, 0xa8
mov r9d, r14d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x140046701
mov eax, ecx
mov rbx, rsi
cdq
and edx, 3
lea edi, [rdx + rax]
mov edx, r14d
sar edi, 2
test edi, edi
jle 0x1400466f9
mov eax, edx
mov r11, rdi
add r10d, eax
dec eax
dec r11
jne 0x1400466ef
add edx, r9d
dec rbx
jne 0x1400466e6
inc r9d
cmp r9d, r10d
jl 0x1400466d0
cmp byte [0x1401acf4a], r14b
je 0x14004671e
lea rax, [0x1401a6598]
jmp 0x140046801
mov dword [rbp - 0x30], 0x150011
mov dword [rbp - 0x2c], 0x6001b
mov r11d, 8
mov dword [rbp - 0x28], 0x70008
mov dword [rbp - 0x24], 0x11004b
mov dword [rbp - 0x20], 0xd0013
mov dword [rbp - 0x1c], 0x4b000a
mov dword [rbp - 0x18], 0x120006
mov dword [rbp - 0x14], 0x8000c
mov word [rbp - 0x10], r14w
mov rdx, r14
lea r9, [0x1401a6598]
lea rax, [0x1401a5da0]
movzx eax, byte [rdx + rax]
xor ax, word [rbp + rdx*2 - 0x30]
mov word [r9 + rdx*2], ax
inc rdx
cmp rdx, 0x10
jl 0x14004676b
cmp r8d, r11d
jne 0x1400467f7
jmp 0x1400467f3
mov edx, ecx
and edx, 0x80000001
jge 0x1400467a1
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
jne 0x1400467b6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [0x1401aad80], eax
jmp 0x1400467c3
lea ecx, [rcx*2 + 1]
mov dword [0x1401aad80], ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
je 0x1400467e5
sub edx, 2
je 0x1400467e8
dec edx
je 0x1400467ea
jmp 0x1400467f3
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x1401aad80], ecx
test ecx, ecx
jne 0x140046790
mov byte [0x1401acf4a], 1
mov rax, r9
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bd920
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140046828
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, dword [0x1401aad80]
mov ebx, 1
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, ebx
jne 0x140046881
lea edx, [rbx + 0x7f]
lea rcx, str._d__d_n
lea r8d, [rdx + 1]
call fcn.1400be234
xor eax, eax
cmp byte [0x1401acf2f], al
je 0x140046894
lea rax, [0x1401a6a10]
jmp 0x1400468fd
mov dword [rbp - 0x30], 0x4002e
mov dword [rbp - 0x2c], 0xd000c
mov dword [rbp - 0x28], 0x10036
mov dword [rbp - 0x24], 0x20004
mov dword [rbp - 0x20], 0x110004
mov dword [rbp - 0x1c], 0x4b001a
mov dword [rbp - 0x18], 0x16001b
mov dword [rbp - 0x14], 0xb000d
mov word [rbp - 0x10], ax
lea rdx, [0x1401a6a10]
lea rcx, [0x1401a5da0]
movzx ecx, byte [rax + rcx]
xor cx, word [rbp + rax*2 - 0x30]
mov word [rdx + rax*2], cx
add rax, rbx
cmp rax, 0x10
jl 0x1400468d7
mov byte [0x1401acf2f], bl
mov rax, rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bd920
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x14004a73c
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov edi, edx
mov r8d, dword [0x1401aad80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 5
jne 0x14004a7a8
dec r8d
mov dword [0x1401aad80], r8d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call fcn.1400242a8
mov rcx, rax
lea r9, [rbp - 9]
mov r8d, 0x20028
mov rdx, rbx
call fcn.140035e68
test eax, eax
jne 0x14004a805
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.1400420ac
mov r8, rax
call fcn.140043e78
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400469cc
lea rdx, [0x14016d588]
lea rcx, [rbp - 1]
call fcn.1400c57f8
nop
lea r8, [rbp + 0xf]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14004a85f
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.1400420ac
mov rbx, rax
call fcn.1400442a4
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.1400469cc
lea rdx, [0x14016d588]
lea rcx, [rbp - 1]
call fcn.1400c57f8
nop
mov dword [rbp + 0x1f], 1
mov ecx, dword [0x1401aad80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r8d, edx
cmp r8d, 3
jne 0x14004a8bb
lea eax, [r8 + 0x39]
lea r8d, [rax - 5]
test r8d, r8d
je 0x14004a8b2
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x14004a89d
add eax, r8d
mov dword [0x1401aad80], eax
mov rax, qword [rbp + 0xf]
mov qword [rbp + 0x23], rax
neg edi
sbb eax, eax
and eax, 2
mov dword [rbp + 0x2b], eax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x1f]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 9]
test eax, eax
jne 0x14004a933
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.1400420ac
mov rbx, rax
call fcn.140042f04
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.1400469cc
lea rdx, [0x14016d588]
lea rcx, [rbp - 1]
call fcn.1400c57f8
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400bd920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004db30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r12, rdx
lea rdx, [rcx + 0x10]
mov r8, rcx
mov rsi, rcx
call fcn.140003e08
and dword [rsi + 0x44], 0
mov byte [rsi + 0x40], 0
mov r15, qword [0x1401a94f0]
call fcn.140009524
xor edi, edi
mov ebx, 0x81
mov rcx, r15
lea r8d, [rdi + 5]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14004dc4a
lea r8d, [rbx + 0x6f]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14004dbbe
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbp
mov rcx, r15
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004dc36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14004dc36
mov rcx, rax
call fcn.140041cdc
and qword [rsp + 0x20], rbx
lea r9, [0x14004e570]
mov rdx, rax
mov r8, r12
mov rcx, r15
mov rbp, rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x14004dc18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, r14
je 0x14004dc3e
test rbp, rbp
je 0x14004dc3e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14004dc3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x14004dc4a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsi + 0x44], 0
jge 0x14004dc6a
test rdi, rdi
je 0x14004dc6a
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [rsi + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140050578
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
cmp byte [rcx + 0x10], 0
je 0x1400505a7
call fcn.1400507f0
test al, al
je 0x1400507a2
and dword [rbp + 0x20], 0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
mov r8d, 0x1000
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005064e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14005061d
cmp eax, 0x3e5
je 0x140050617
lea rax, str.Channel_read_failure
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.1400c0da8
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rbp - 0x20], rax
lea rdx, [0x14016d650]
lea rcx, [rbp - 0x20]
call fcn.1400c57f8
int3
mov byte [rbx + 0x10], 1
jmp 0x14005064e
lea rcx, [rbp - 0x38]
call fcn.1400c0e20
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rbp - 0x38], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rbp - 0x38], rax
lea rdx, [0x14016d608]
lea rcx, [rbp - 0x38]
call fcn.1400c57f8
int3
cmp byte [rbx + 0x10], 0
jne 0x1400507a2
lea rdi, [rbx + 0x48]
mov rsi, qword [rdi + 8]
sub rsi, qword [rdi]
mov ecx, dword [0x1401aad80]
imul ecx, ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 8
jne 0x1400506a5
lea eax, [rcx - 7]
lea edx, [rcx + 0x2a]
mov r8d, eax
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
dec edx
jns 0x140050692
mov dword [0x1401aad80], ecx
mov edx, dword [rbp + 0x20]
add rdx, rsi
mov rcx, rdi
call fcn.1400253cc
mov r8d, dword [rbp + 0x20]
mov rcx, qword [rdi]
add rcx, rsi
mov rdx, qword [rbx + 0x60]
call fcn.1400bd950
mov edx, dword [0x1401aad80]
lea r8d, [rdx + 2]
lea ecx, [rdx + 1]
imul r8d, ecx
imul r8d, edx
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0x10
jne 0x140050748
mov eax, dword [str.aKWTZY]
mov dword [rbp + 0x28], eax
movzx eax, word [0x14013e0cc]
mov word [rbp + 0x2c], ax
mov al, byte [0x14013e0ce]
mov byte [rbp + 0x2e], al
lea rax, [rbp + 0x28]
or r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp byte [rax + rcx], 0
jne 0x140050723
mov eax, 4
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400bcf98
mov rcx, rax
call fcn.1400be048
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [0x1401aad80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 2
jne 0x14005079e
mov ecx, 1
cmp r8d, ecx
jle 0x140050798
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x140050789
mov dword [0x1401aad80], ecx
mov al, 1
jmp 0x1400507a4
xor al, al
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051ef4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [0x1401aad80]
mov rdi, rdx
mov esi, r8d
lea eax, [r9 + 1]
lea r10d, [r9 + 2]
mov rbx, rcx
imul r10d, eax
mov eax, 0x92492493
imul r10d, r9d
imul r10d
add edx, r10d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub r10d, edx
cmp r10d, 0xc
jne 0x140051f50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401aad80], eax
xor r8d, r8d
test esi, esi
jle 0x140051f99
mov r9, rbx
sub rdi, rbx
mov eax, 0x81020409
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
imul edx, edx, 0x7f
sub eax, edx
movsxd rcx, eax
lea rax, str.Haste_thee__escape_thither__for_I_cannot_do_anything_till_thou_be_come_thither._Therefore_the_name_of_the_city_was_called_Zoar.
mov al, byte [rcx + rax]
xor al, byte [rdi + r9]
mov byte [r9], al
inc r9
cmp r8d, esi
jl 0x140051f5d
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140057de4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rdx]
mov ebx, 1
mov rbp, r8
mov r11d, dword [rcx - 0x10]
mov rdi, rdx
cmp r11d, ebx
jle 0x140057edc
xor r9d, r9d
lea r10d, [rbx + 1]
mov esi, r9d
test rsi, rsi
js 0x140057f6e
lea eax, [rbx - 1]
cmp eax, r11d
jg 0x140057f6e
movzx edx, word [r10 + rcx - 2]
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x140057e46
mov r8b, dl
jmp 0x140057e66
lea eax, [rdx - 0x61]
cmp ax, 5
jbe 0x140057e5d
sub dx, 0x41
cmp dx, 5
ja 0x140057f5c
mov r8b, byte [r10 + rcx - 2]
sub r8b, 7
shl r8b, 4
test ebx, ebx
js 0x140057f63
cmp ebx, r11d
jg 0x140057f63
movzx edx, word [r10 + rcx]
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x140057e8f
mov al, dl
sub al, 0x30
jmp 0x140057eb0
lea eax, [rdx - 0x61]
cmp ax, 5
ja 0x140057ea0
mov al, byte [r10 + rcx]
sub al, 0x57
jmp 0x140057eb0
sub dx, 0x41
cmp dx, 5
ja 0x140057ef3
mov al, byte [r10 + rcx]
sub al, 0x37
or r8b, al
mov eax, ebx
add ebx, 2
cdq
add rsi, 2
add r10, 4
sub eax, edx
sar eax, 1
movsxd rcx, eax
mov byte [rcx + rbp], r8b
mov rcx, qword [rdi]
mov r11d, dword [rcx - 0x10]
cmp ebx, r11d
jl 0x140057e1d
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [0x1401aad80]
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x30c30c31
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0xa
jne 0x140057f5c
mov edx, r9d
mov r10d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
sar eax, 1
dec ecx
not ecx
and ecx, r8d
mov edx, ecx
xor edx, eax
dec r10
jne 0x140057f2d
inc r9d
add r8d, edx
cmp r9d, 0x100
jl 0x140057f24
mov dword [0x1401aad80], r8d
xor al, al
jmp 0x140057ede
mov ecx, 0x80070057
call fcn.140001874
int3
mov ecx, 0x80070057
call fcn.140001874
int3
Function at 0x140057f7c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.1400c29d0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1401a2e90]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, r8
mov rbx, rcx
lea r8, str._ver
lea rcx, [rsp + 0x40]
call fcn.140019018
nop
and dword [rsp + 0x38], 0
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x61]
call fcn.1400c2d60
mov dword [rsp + 0x30], 0x1000
or dword [rsp + 0x34], 0xffffffff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400580b6
lea r9d, [rax + 3]
cmp dword [rsp + 0x34], r9d
jne 0x1400580b6
cmp dword [rsp + 0x30], 0x1000
je 0x1400580b6
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400580af
lea rdx, str.error_writing_ver
lea rcx, [rsp + 0x50]
call fcn.140002df8
nop
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x40]
call fcn.14004d1ec
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140058140
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140058140
mov bl, 1
jmp 0x140058142
lea rdx, str.error_reading_ver
lea rcx, [rsp + 0x48]
call fcn.140002df8
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 0x40]
call fcn.14004d1ec
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400580f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [0x1401aad80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 4
jne 0x140058140
lea eax, [rcx + 0x40]
mov r8d, 0xc8
test r8d, r8d
je 0x140058137
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x140058122
add eax, r8d
mov dword [0x1401aad80], eax
xor bl, bl
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005815c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400bd920
add rsp, 0x1070
pop rdi
pop rbx
pop rbp
ret