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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x68], r13
mov r13d, dword [0x1401c3d80]
mov qword [rsp + 0x30], r15
lea eax, [r13 + 1]
lea r15d, [r13 + 2]
xor ebx, ebx
imul r15d, eax
mov eax, 0xb21642c9
imul r15d, r13d
imul r15d
add edx, r15d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r15d, edx
cmp r15d, 0xa
jne 0x1400567c7
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov eax, r13d
cdq
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r14
sub eax, edx
lea r10d, [r15 + 0x7d]
mov ebp, ebx
sar eax, 1
mov r14d, eax
test r14d, r14d
jle 0x1400567ac
mov eax, r13d
mov r11d, ebx
mov rsi, r14
cdq
and edx, 3
lea edi, [rdx + rax]
sar edi, 2
nop word [rax + rax]
mov r8d, ebx
mov r9d, ebx
mov edx, ebx
cmp edi, 2
jl 0x140056791
lea edx, [rdi - 2]
mov ecx, r11d
shr edx, 1
inc edx
mov eax, edx
add edx, edx
nop dword [rax + rax]
dec r9d
add r8d, ecx
add r9d, ecx
sub ecx, 2
dec rax
jne 0x140056780
cmp edx, edi
jge 0x14005679d
mov eax, r11d
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r11d, ebp
add r10d, eax
dec rsi
jne 0x140056760
inc ebp
cmp ebp, r10d
jl 0x140056742
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
cmp r15d, 0xf
mov r15, qword [rsp + 0x30]
jne 0x1400567dd
dec dword [0x1401c5348]
cmp byte [0x1401c5966], bl
je 0x1400567ff
lea rax, [0x1401bf410]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400cdac0
add rsp, 0x40
pop rbx
ret
mov dword [rsp], 0x120028
mov dword [rsp + 4], 0xd000e
mov dword [rsp + 8], 0x60020
mov dword [rsp + 0xc], 0xe0009
mov dword [rsp + 0x10], 0x1b000c
mov dword [rsp + 0x14], 0x49001c
mov dword [rsp + 0x18], 0x150007
mov dword [rsp + 0x1c], 0x10019
mov word [rsp + 0x20], bx
lea rdx, [0x1401bf410]
lea r8, [0x1401bed91]
movzx eax, byte [rbx + r8 - 1]
movzx ecx, word [rsp + rbx*2 + 2]
add rbx, 4
xor ax, word [rsp + rbx*2 - 8]
mov word [rdx + rbx*2 - 8], ax
movzx eax, byte [rbx + r8 - 4]
xor cx, ax
mov word [rdx + rbx*2 - 6], cx
movzx ecx, byte [rbx + r8 - 3]
xor cx, word [rsp + rbx*2 - 4]
mov word [rdx + rbx*2 - 4], cx
movzx ecx, byte [rbx + r8 - 2]
xor cx, word [rsp + rbx*2 - 2]
mov word [rdx + rbx*2 - 2], cx
cmp rbx, 0x10
jl 0x140056851
mov byte [0x1401c5966], 1
mov rax, rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400cdac0
add rsp, 0x40
pop rbx
ret
Function at 0x14005c060
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rbp, rdx
mov rsi, rcx
mov r8d, dword [0x1401c3d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub ecx, edx
cmp ecx, 0xa
jne 0x14005c0b1
dec r8d
mov dword [0x1401c3d80], r8d
mov edx, 0x5c
mov rcx, qword [rsi + 0x1b0]
call fcn.1400d0438
or rbx, 0xffffffffffffffff
test rax, rax
jne 0x14005c0cf
mov eax, ebx
jmp 0x14005c0d9
sub rax, qword [rsi + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x1b0]
call fcn.1400274d0
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsi + 0x1b0]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005c17d
call fcn.140053240
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14001a660
nop
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005c171
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x14005c17d
mov dil, 1
jmp 0x14005c27e
call fcn.140053d80
mov rdi, rax
lea rcx, [0x1401bb9a8]
mov rdx, qword [0x1401bb9a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
test rdi, rdi
je 0x14005c1dd
test rdi, 0xffffffffffff0000
jne 0x14005c1ce
movzx edi, di
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14005c1f0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400025b0
jmp 0x14005c1f0
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x14005c1d1
jmp 0x14005c1df
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400022c0
nop
call fcn.140053620
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14001a660
nop
lea r8, [rsi + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000fc80
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005c236
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140014fc0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005c25e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14005c27b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor dil, dil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005c298
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005e1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, r9
mov r12, r8
mov r14, rcx
call fcn.14000a670
xor edi, edi
mov edx, 0x81
lea r8d, [rdi + 5]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14005e2d2
mov edx, 0x81
mov rcx, r14
mov qword [rsp + 0x50], rbx
lea r8d, [rdx + 0x6f]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14005e223
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x58], rbp
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005e29c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14005e29c
mov rcx, rax
call fcn.140050c10
mov r9, r15
mov r8, r12
mov rcx, r14
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rsi, rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x14005e27e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x14005e2a4
test rsi, rsi
je 0x14005e2a4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14005e2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
test ebx, ebx
je 0x14005e2b5
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov rax, rdi
jmp 0x14005e2bd
Function at 0x140060190
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
mov r8d, dword [0x1401c3d80]
lea r9d, [r8 + 2]
lea eax, [r8 + 1]
imul r9d, eax
imul r9d, r8d
mov eax, 0x30c30c31
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r9d, edx
cmp r9d, 0xa
jne 0x14006027c
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x1400601e2
mov dword [0x1401c3d80], r8d
lea rax, [rbx + 0x130]
mov qword [rsp + 0x40], rax
lea rdi, [rax + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx ebx, byte [rbx + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140060310
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword [rcx + 0x128]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x98]
mov qword [rsp + 0x40], rax
xor r15d, r15d
lea r14d, [r15 + 1]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140060190
test al, al
je 0x140060582
cmp byte [rbx + 0x10], r15b
je 0x140060386
mov rcx, rbx
call fcn.1400605e0
test al, al
je 0x1400604c8
mov dword [rsp + 0xd8], r15d
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd8]
mov r8d, 0x1000
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140060446
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140060412
cmp eax, 0x3e5
je 0x14006040c
lea rax, str.Channel_read_failure
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x68], rax
lea rdx, [0x140186920]
lea rcx, [rsp + 0x68]
call fcn.1400d5998
mov byte [rbx + 0x10], r14b
jmp 0x140060446
lea rcx, [rsp + 0x48]
call fcn.1400d0fc0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x48], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rsp + 0x48], rax
lea rdx, [0x1401868d8]
lea rcx, [rsp + 0x48]
call fcn.1400d5998
cmp byte [rbx + 0x10], r15b
jne 0x14006048f
mov rsi, qword [rbx + 0x50]
sub rsi, qword [rbx + 0x48]
mov edx, dword [rsp + 0xd8]
add rdx, rsi
lea rcx, [rbx + 0x48]
call fcn.140032330
mov rcx, qword [rbx + 0x48]
mov r8d, dword [rsp + 0xd8]
add rcx, rsi
mov rdx, qword [rbx + 0x60]
call fcn.1400cdaf0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
movzx esi, r14b
jmp 0x1400604cb
mov r8d, dword [0x1401c3d80]
mov ecx, r8d
imul ecx, r8d
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 0x1400604c8
test r8d, r8d
cmove r8d, r14d
mov dword [0x1401c3d80], r8d
xor sil, sil
mov rcx, rbx
call fcn.140060700
movzx edi, al
mov rcx, rbx
call fcn.140060d70
or dil, sil
je 0x1400604e8
jmp 0x140060360
mov r9d, 0x7530
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140060516
mov rcx, qword [rbx + 0x128]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140060360
cmp eax, 3
jae 0x14006052d
mov rcx, rbx
call fcn.1400605e0
mov rcx, rbx
call fcn.140060b80
jmp 0x140060543
cmp eax, 0x102
jne 0x140060550
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140060543
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call fcn.140060d70
jmp 0x140060360
lea rcx, [rsp + 0x80]
call fcn.1400d0fc0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x80], rax
lea rdx, [0x140186920]
lea rcx, [rsp + 0x80]
call fcn.1400d5998
nop
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140061f00
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r9d, r9d
mov rbx, rdx
mov r10, rcx
test r8d, r8d
jle 0x140061f6e
mov qword [rsp + 0x10], rdi
mov r11, rcx
sub rbx, rcx
lea rdi, str._he_knew_it__and_said__It_is_my_sons_coat__an_evil_beast_hath_devoured_him__Joseph_is_without_doubt_rent_in_pieces.
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r11, [r11 + 1]
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
inc r9d
imul edx, edx, 0x74
sub eax, edx
movsxd rcx, eax
movzx eax, byte [rcx + rdi]
xor al, byte [rbx + r11 - 1]
mov byte [r11 - 1], al
cmp r9d, r8d
jl 0x140061f30
mov rdi, qword [rsp + 0x10]
mov rax, r10
pop rbx
ret
Function at 0x140068490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14006851e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14006851e
call fcn.1400042b0
mov ebx, eax
jmp 0x140068643
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14006853f
call fcn.1400042b0
jmp 0x140068632
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140068562
call fcn.1400042b0
jmp 0x140068632
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140068584
mov ebx, 0x8007000e
jmp 0x140068634
mov ecx, eax
test eax, eax
je 0x1400685bc
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400685b2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400685bc
lea rcx, [rsp + 0x70]
call fcn.14006ab10
jmp 0x1400685c6
mov ecx, 0x80070216
call fcn.140001920
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400685d9
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400685ea
mov ebx, 0x8007000e
jmp 0x140068634
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14006860f
call fcn.1400042b0
jmp 0x140068632
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400694a0
mov ebx, eax
test rdi, rdi
je 0x140068643
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14006865a
lea rcx, [rsp + 0x70]
call fcn.14006ab00
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400cdac0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006f7d0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.1400d2b70
sub rsp, rax
lea r8, [0x140189d08]
lea edx, [rax - 0x27]
lea ecx, [rax - 0x23]
mov r9d, 0x244
call fcn.140076210
cmp dword [0x14018924c], 0
jne 0x14006f81c
mov edx, 1
lea r8, [0x140189d20]
mov r9d, 0x247
lea ecx, [rdx + 5]
add rsp, 0x28
jmp fcn.140076210
mov edx, 1
lea r8, [0x140189d38]
mov r9d, 0x24b
lea ecx, [rdx + 5]
call fcn.140076210
mov edx, 1
lea r8, [0x140189d50]
lea ecx, [rdx + 8]
mov r9d, 0x24c
call fcn.140076210
cmp dword [0x14018924c], 0
jne 0x14006f877
mov edx, 1
lea r8, [0x140189d68]
mov r9d, 0x24f
lea ecx, [rdx + 9]
add rsp, 0x28
jmp fcn.140076210
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x1401bffe0]
lea rbx, [0x1401c0fc8]
mov edi, 1
lea rbp, [0x140189d80]
cmp qword [rbx], 0
mov dword [rbx - 8], edi
jne 0x14006f8db
mov ecx, edi
call fcn.1400d2dc4
test rax, rax
je 0x14006f8d2
mov r8d, 0x20
mov rdx, rax
mov rcx, rsi
call fcn.1400d2c60
mov byte [rsi + 0x1f], 0
mov qword [rbx], rsi
cmp qword [rbx], 0
jne 0x14006f8db
mov qword [rbx], rbp
inc edi
add rbx, 0x10
add rsi, 0x20
cmp edi, 0x7f
jle 0x14006f8a5
mov edx, 1
lea r8, [0x140189d88]
mov r9d, 0x26c
lea ecx, [rdx + 9]
mov dword [0x14018924c], 0
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp fcn.140076210
Function at 0x140072850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r10, dword [rdx + 8]
lea rbx, [rcx - 1]
movsxd rcx, dword [r8 + 8]
xor rcx, r10
shr rbx, 0x3f
movsxd rsi, r9d
dec rbx
lea eax, [rsi - 1]
mov r11, r8
and rcx, rbx
mov rdi, rdx
xor r10d, ecx
mov dword [rdx + 8], r10d
xor dword [r8 + 8], ecx
cmp eax, 9
ja case.default.0x1400728a7
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x72a50]
add rcx, rdx
jmp rcx
mov r9d, 0xa
cmp r9, rsi
jge case.0x1400728a7.10
nop word [rax + rax]
mov rax, qword [r11]
mov r8, qword [rdi]
inc r9
mov rcx, qword [r8 + r9*8 - 8]
mov rdx, qword [rax + r9*8 - 8]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + r9*8 - 8], rcx
mov rax, qword [r11]
xor qword [rax + r9*8 - 8], rdx
cmp r9, rsi
jl 0x1400728c0
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x48]
mov rdx, qword [rax + 0x48]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x48], rcx
mov rax, qword [r11]
xor qword [rax + 0x48], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x40]
mov rdx, qword [rax + 0x40]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x40], rcx
mov rax, qword [r11]
xor qword [rax + 0x40], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x38]
mov rdx, qword [rax + 0x38]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x38], rcx
mov rax, qword [r11]
xor qword [rax + 0x38], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x30]
mov rdx, qword [rax + 0x30]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x30], rcx
mov rax, qword [r11]
xor qword [rax + 0x30], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x28]
mov rdx, qword [rax + 0x28]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x28], rcx
mov rax, qword [r11]
xor qword [rax + 0x28], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x20]
mov rdx, qword [rax + 0x20]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x20], rcx
mov rax, qword [r11]
xor qword [rax + 0x20], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x18]
mov rdx, qword [rax + 0x18]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x18], rcx
mov rax, qword [r11]
xor qword [rax + 0x18], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x10]
mov rdx, qword [rax + 0x10]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x10], rcx
mov rax, qword [r11]
xor qword [rax + 0x10], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 8]
mov rdx, qword [rax + 8]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 8], rcx
mov rax, qword [r11]
xor qword [rax + 8], rdx
mov r8, qword [rdi]
mov rax, qword [r11]
mov rsi, qword [rsp + 0x10]
mov rdx, qword [r8]
mov rcx, qword [rax]
mov rdi, qword [rsp + 0x18]
xor rcx, rdx
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rdx, rcx
mov qword [r8], rdx
mov rax, qword [r11]
xor qword [rax], rcx
ret
Function at 0x140075a20
Capabilities:
Terminate process

Disassembly:
push rdi
mov eax, 0x20
call fcn.1400d2b70
sub rsp, rax
mov edi, ecx
test ecx, ecx
je 0x140075a3c
or eax, 0xffffffff
sub eax, ecx
mov edi, eax
cmp qword [0x1401c1b58], 0
je 0x140075afb
mov edx, 0x1d
lea r8, [0x14018a960]
mov r9d, 0x131
lea ecx, [rdx - 0x14]
call fcn.140076210
mov rcx, qword [0x1401c1b20]
test rcx, rcx
je 0x140075b01
call fcn.140085f90
cmp edi, eax
jge 0x140075b01
mov rcx, qword [0x1401c1b20]
mov edx, edi
mov qword [rsp + 0x30], rbx
call fcn.140085fa0
mov rbx, rax
test rax, rax
je 0x140075ab8
dec dword [rax]
cmp dword [rax], 0
jg 0x140075ab6
mov rcx, qword [0x1401c1b20]
xor r8d, r8d
mov edx, edi
call fcn.140085fc0
jmp 0x140075ab8
xor ebx, ebx
mov edx, 0x1d
lea r8, [0x14018a990]
mov r9d, 0x14b
lea ecx, [rdx - 0x13]
call fcn.140076210
test rbx, rbx
je 0x140075af6
mov rcx, qword [rbx + 8]
lea rdx, [0x14018a9a8]
mov r8d, 0x14f
call qword [0x1401c1b58]
mov rcx, rbx
call fcn.1400776e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0x1d
lea r8, [0x14018a978]
mov r9d, 0x135
lea ecx, [rdx - 0x13]
add rsp, 0x20
pop rdi
jmp fcn.140076210
Function at 0x140075ed0
Capabilities:
Access the windows event log

Disassembly:
imul cx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov eax, 0x278
call fcn.1400d2b70
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x1401bbe90]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x140075f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x140075f50
lea rbx, [rbp + 0x268]
call fcn.1400d3618
mov rdx, qword [rbp + 0x260]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.1400d33ec
jmp 0x140076118
mov r8, qword [rbp + 0x260]
mov rcx, r8
call fcn.140075a00
inc eax
mov edi, eax
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140075f79
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d2b70
sub rsp, rcx
xor esi, esi
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x140075fa0
lea rbx, str.no_stack_
jmp 0x140076073
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140075fe9
mov rdx, rsi
test rdi, rdi
je 0x140075fe9
nop word [rax + rax]
mov rax, qword [rbp + 0x260]
inc rdx
movsx ecx, byte [rdx + rax - 1]
mov word [rbx + rdx*2 - 2], cx
cmp rdx, rdi
jb 0x140075fd0
mov rdx, rsi
test rdi, rdi
je 0x140076073
mov r10d, 0x53
lea r9, [0x140000000]
lea r11d, [r10 + 0x20]
lea r12d, [r10 - 0x10]
lea r13d, [r10 + 0x10]
nop
cmp word [rbx + rdx*2], 0x25
jne case.0x140076042.47
lea r8, [rbx + rdx*2 + 2]
nop dword [rax]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x140076042.47
cdqe
movzx eax, byte [r9 + rax + 0x76150]
mov ecx, dword [r9 + rax*4 + 0x76138]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x140076020
mov word [rbx + rdx*2 + 2], r10w
jmp case.0x140076042.47
mov word [rbx + rdx*2 + 2], r11w
jmp case.0x140076042.47
mov word [rbx + rdx*2 + 2], r12w
jmp case.0x140076042.47
mov word [rbx + rdx*2 + 2], r13w
inc rdx
cmp rdx, rdi
jb 0x140076010
lea r9, [rbp + 0x268]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call fcn.1400d32d8
mov word [rbp + 0x20e], si
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400760ff
call fcn.140075d40
test eax, eax
jle 0x1400760ff
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], rsi
mov ecx, 1
mov rbx, rax
lea rax, [rbp + 0x10]
mov edx, ecx
mov qword [rbp], rax
lea rax, [rbp]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], cx
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x140076118
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.1400cdac0
lea rsp, [rbp + 0x228]
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret