joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063350
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call fcn.14002e630
mov rcx, rax
lea r9, [rsp + 0x30]
mov r8d, 0x20028
mov rdx, rbx
call fcn.140046580
test eax, eax
jne 0x1400633e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140058640
mov r10, rax
call fcn.14005af80
mov rdx, rax
mov r8, r10
lea rcx, [rsp + 0x38]
call fcn.14005eca0
lea rdx, [0x1401a0190]
lea rcx, [rsp + 0x38]
call fcn.1400df178
nop
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140063441
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140058640
mov rbx, rax
call fcn.14005b5f0
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14005eca0
lea rdx, [0x1401a0190]
lea rcx, [rsp + 0x38]
call fcn.1400df178
nop
mov dword [rsp + 0x58], 1
call fcn.140058770
test al, al
jne 0x140063458
dec dword [0x1401ddd80]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x5c], rax
neg edi
sbb eax, eax
and eax, 2
mov dword [rsp + 0x64], eax
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400634d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140058640
mov rbx, rax
call fcn.1400598a0
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14005eca0
lea rdx, [0x1401a0190]
lea rcx, [rsp + 0x38]
call fcn.1400df178
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400d72a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x140067110
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.14000ae50
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 0x140067232
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 0x140067183
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 0x1400671fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400671fc
mov rcx, rax
call fcn.140058260
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 0x1400671de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x140067204
test rsi, rsi
je 0x140067204
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140067204
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
test ebx, ebx
je 0x140067215
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 0x14006721d
Function at 0x140069400
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
cmp byte [rcx + 0x10], 0
je 0x140069492
call fcn.140069650
test al, al
jne 0x140069492
mov r8d, dword [0x1401ddd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 0x11
jne 0x1400695ee
xor ecx, ecx
lea rdi, [rsp + 0x88]
lea ebx, [rcx + 1]
mov eax, r8d
cdq
idiv ebx
sub eax, ecx
mov edx, eax
lea rcx, [0x14016503c]
call fcn.1400d7c60
mov ecx, ebx
lea rdi, [rdi + 4]
cmp ebx, 2
jge 0x1400695ee
mov r8d, dword [0x1401ddd80]
jmp 0x140069461
xor ecx, ecx
mov dword [rsp + 0x80], ecx
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
mov r8d, 0x1000
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140069555
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140069520
cmp eax, 0x3e5
je 0x14006951a
lea rax, str.Channel_read_failure
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.1400da728
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x1401a02f8]
lea rcx, [rsp + 0x50]
call fcn.1400df178
int3
mov byte [rbx + 0x10], 1
jmp 0x140069555
lea rcx, [rsp + 0x38]
call fcn.1400da7a0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x38], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rsp + 0x38], rax
lea rdx, [0x1401a02b0]
lea rcx, [rsp + 0x38]
call fcn.1400df178
int3
cmp byte [rbx + 0x10], 0
jne 0x1400695ee
mov rsi, qword [rbx + 0x50]
sub rsi, qword [rbx + 0x48]
mov ecx, dword [0x1401ddd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 9
jne 0x1400695b4
call fcn.1400d7b94
mov ecx, dword [0x1401ddd80]
cmp ecx, eax
jne 0x1400695b4
dec ecx
mov dword [0x1401ddd80], ecx
mov edx, dword [rsp + 0x80]
add rdx, rsi
lea rcx, [rbx + 0x48]
call fcn.140037fe0
mov r8d, dword [rsp + 0x80]
mov rax, qword [rbx + 0x48]
lea rcx, [rsi + rax]
mov rdx, qword [rbx + 0x60]
call fcn.1400d72d0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
jmp 0x1400695f0
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14006b240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1401ddd80]
mov rdi, rdx
mov esi, r8d
lea r9d, [rax + 1]
mov rbx, rcx
imul r9d, eax
mov eax, 0x66666667
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r9d, eax
cmp r9d, 0xe
jne 0x14006b29e
call fcn.1400d7b94
mov ecx, dword [0x1401ddd80]
cmp ecx, eax
jne 0x14006b29e
dec ecx
mov dword [0x1401ddd80], ecx
xor r8d, r8d
test esi, esi
jle 0x14006b2f7
mov r9, rbx
sub rdi, rbx
lea r10, str._Pharaoh_said_unto_Jacob__How_old_art_thou_
nop word [rax + rax]
mov eax, 0x2fa0be83
lea r9, [r9 + 1]
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
imul edx, edx, 0x2b
sub eax, edx
movsxd rcx, eax
movzx eax, byte [rcx + r10]
xor al, byte [rdi + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, esi
jl 0x14006b2c0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140071930
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 [0x1401d5e90]
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 0x1400719be
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 0x1400719be
call fcn.140004a90
mov ebx, eax
jmp 0x140071ae3
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400719df
call fcn.140004a90
jmp 0x140071ad2
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 0x140071a02
call fcn.140004a90
jmp 0x140071ad2
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 0x140071a24
mov ebx, 0x8007000e
jmp 0x140071ad4
mov ecx, eax
test eax, eax
je 0x140071a5c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140071a52
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140071a5c
lea rcx, [rsp + 0x70]
call fcn.140074360
jmp 0x140071a66
mov ecx, 0x80070216
call fcn.140001920
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140071a79
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140071a8a
mov ebx, 0x8007000e
jmp 0x140071ad4
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 0x140071aaf
call fcn.140004a90
jmp 0x140071ad2
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.140072940
mov ebx, eax
test rdi, rdi
je 0x140071ae3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140071afa
lea rcx, [rsp + 0x70]
call fcn.140074350
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140078fd0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.1400dc350
sub rsp, rax
lea r8, [0x1401a3d08]
lea edx, [rax - 0x27]
lea ecx, [rax - 0x23]
mov r9d, 0x244
call fcn.14007f9f0
cmp dword [0x1401a324c], 0
jne 0x14007901c
mov edx, 1
lea r8, [0x1401a3d20]
mov r9d, 0x247
lea ecx, [rdx + 5]
add rsp, 0x28
jmp fcn.14007f9f0
mov edx, 1
lea r8, [0x1401a3d38]
mov r9d, 0x24b
lea ecx, [rdx + 5]
call fcn.14007f9f0
mov edx, 1
lea r8, [0x1401a3d50]
lea ecx, [rdx + 8]
mov r9d, 0x24c
call fcn.14007f9f0
cmp dword [0x1401a324c], 0
jne 0x140079077
mov edx, 1
lea r8, [0x1401a3d68]
mov r9d, 0x24f
lea ecx, [rdx + 9]
add rsp, 0x28
jmp fcn.14007f9f0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x1401d9fe0]
lea rbx, [0x1401dafc8]
mov edi, 1
lea rbp, [0x1401a3d80]
cmp qword [rbx], 0
mov dword [rbx - 8], edi
jne 0x1400790db
mov ecx, edi
call fcn.1400dc5a4
test rax, rax
je 0x1400790d2
mov r8d, 0x20
mov rdx, rax
mov rcx, rsi
call fcn.1400dc440
mov byte [rsi + 0x1f], 0
mov qword [rbx], rsi
cmp qword [rbx], 0
jne 0x1400790db
mov qword [rbx], rbp
inc edi
add rbx, 0x10
add rsi, 0x20
cmp edi, 0x7f
jle 0x1400790a5
mov edx, 1
lea r8, [0x1401a3d88]
mov r9d, 0x26c
lea ecx, [rdx + 9]
mov dword [0x1401a324c], 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.14007f9f0
Function at 0x14007c050
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.0x14007c0a7
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x7c250]
add rcx, rdx
jmp rcx
mov r9d, 0xa
cmp r9, rsi
jge case.0x14007c0a7.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 0x14007c0c0
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 0x14007f200
Capabilities:
Terminate process

Disassembly:
push rdi
mov eax, 0x20
call fcn.1400dc350
sub rsp, rax
mov edi, ecx
test ecx, ecx
je 0x14007f21c
or eax, 0xffffffff
sub eax, ecx
mov edi, eax
cmp qword [0x1401dbb58], 0
je 0x14007f2db
mov edx, 0x1d
lea r8, [0x1401a4960]
mov r9d, 0x131
lea ecx, [rdx - 0x14]
call fcn.14007f9f0
mov rcx, qword [0x1401dbb20]
test rcx, rcx
je 0x14007f2e1
call fcn.14008f780
cmp edi, eax
jge 0x14007f2e1
mov rcx, qword [0x1401dbb20]
mov edx, edi
mov qword [rsp + 0x30], rbx
call fcn.14008f790
mov rbx, rax
test rax, rax
je 0x14007f298
dec dword [rax]
cmp dword [rax], 0
jg 0x14007f296
mov rcx, qword [0x1401dbb20]
xor r8d, r8d
mov edx, edi
call fcn.14008f7b0
jmp 0x14007f298
xor ebx, ebx
mov edx, 0x1d
lea r8, [0x1401a4990]
mov r9d, 0x14b
lea ecx, [rdx - 0x13]
call fcn.14007f9f0
test rbx, rbx
je 0x14007f2d6
mov rcx, qword [rbx + 8]
lea rdx, [0x1401a49a8]
mov r8d, 0x14f
call qword [0x1401dbb58]
mov rcx, rbx
call fcn.140080ea0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0x1d
lea r8, [0x1401a4978]
mov r9d, 0x135
lea ecx, [rdx - 0x13]
add rsp, 0x20
pop rdi
jmp fcn.14007f9f0
Function at 0x14007f6b0
Capabilities:
Access the windows event log

Disassembly:
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.1400dc350
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x1401d5e90]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x14007f730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x14007f730
lea rbx, [rbp + 0x268]
call fcn.1400dcdf8
mov rdx, qword [rbp + 0x260]
lea rcx, [rax + 0x60]
mov r8, rbx
call fcn.1400dcbcc
jmp 0x14007f8f8
mov r8, qword [rbp + 0x260]
mov rcx, r8
call fcn.1400853a0
inc eax
mov edi, eax
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14007f759
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400dc350
sub rsp, rcx
xor esi, esi
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x14007f780
lea rbx, str.no_stack_
jmp 0x14007f853
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 0x14007f7c9
mov rdx, rsi
test rdi, rdi
je 0x14007f7c9
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 0x14007f7b0
mov rdx, rsi
test rdi, rdi
je 0x14007f853
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.0x14007f822.47
lea r8, [rbx + rdx*2 + 2]
nop dword [rax]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x14007f822.47
cdqe
movzx eax, byte [r9 + rax + 0x7f930]
mov ecx, dword [r9 + rax*4 + 0x7f918]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x14007f800
mov word [rbx + rdx*2 + 2], r10w
jmp case.0x14007f822.47
mov word [rbx + rdx*2 + 2], r11w
jmp case.0x14007f822.47
mov word [rbx + rdx*2 + 2], r12w
jmp case.0x14007f822.47
mov word [rbx + rdx*2 + 2], r13w
inc rdx
cmp rdx, rdi
jb 0x14007f7f0
lea r9, [rbp + 0x268]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call fcn.1400dcab8
mov word [rbp + 0x20e], si
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14007f8df
call fcn.14007f520
test eax, eax
jle 0x14007f8df
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 0x14007f8f8
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.1400d72a0
lea rsp, [rbp + 0x228]
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007f9c0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
test r8, r8
je 0x14007f9e3
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor al, byte [rcx - 1]
or r9b, al
sub r8, 1
jne 0x14007f9d0
movzx eax, r9b
ret

Function at 0x14007f9f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1400dc350
sub rsp, rax
mov edi, r9d
mov rsi, r8
mov ebx, edx
mov ebp, ecx
test edx, edx
jns 0x14007fa80
cmp qword [0x1401dbb50], 0
je 0x14007fa8e
mov ecx, edx
call fcn.14007f300
test rax, rax
je 0x14007fa4b
mov r9d, edi
mov r8, rsi
mov rdx, rax
mov ecx, ebp
call qword [0x1401dbb50]
mov ecx, ebx
call fcn.14007f200
jmp 0x14007fa8e
lea r9, str.pointer___NULL
lea rdx, str..cryptocryptlib.c
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0x253
call fcn.14007f6b0
mov ecx, 0x16
call fcn.1400dd4a8
mov ecx, 3
call fcn.1400dd160
int3
mov rax, qword [0x1401dbb28]
test rax, rax
je 0x14007fa8e
call rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140080710
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
test rcx, rcx
je 0x140080767
movzx eax, byte [rcx]
test al, al
je 0x140080767
mov r10d, 0x100
nop dword [rax + rax]
movsx edx, al
inc r9
or edx, r10d
add r10d, 0x100
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0xf
movzx ecx, al
mov al, byte [r9]
imul edx, edx
rol r8d, cl
xor r8d, edx
test al, al
jne 0x140080730
mov eax, r8d
shr eax, 0x10
xor eax, r8d
ret
xor eax, eax
ret

Function at 0x140083c60
Capabilities:
Terminate process

Disassembly:
mov eax, 0x28
call fcn.1400dc350
sub rsp, rax
lea r8, [0x1401a54d0]
lea edx, [rax - 0x26]
lea ecx, [rax - 0x1f]
mov r9d, 0xcb
call fcn.14007f9f0
mov rax, qword [0x1401dbbe8]
mov edx, 2
test rax, rax
lea r11, [0x1401a54a0]
lea r8, [0x1401a54e8]
cmovne r11, rax
lea ecx, [rdx + 8]
mov r9d, 0xce
mov qword [0x1401dbbe8], r11
add rsp, 0x28
jmp fcn.14007f9f0
Function at 0x1400920d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r13
mov eax, 0x68
call fcn.1400dc350
sub rsp, rax
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r12, qword [rsp + 0xb0]
lea edi, [rdx - 1]
mov esi, r9d
lea eax, [rdi - 0x29]
mov r13, r8
cmp r9d, eax
jle 0x140092133
mov edx, 0x79
lea r9, [0x1401b9d78]
mov dword [rsp + 0x20], 0x2d
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 0xb]
call fcn.1400798a0
xor eax, eax
jmp 0x14009230d
cmp edi, 0x29
jge 0x14009215f
mov edx, 0x79
lea r9, [0x1401b9d90]
mov dword [rsp + 0x20], 0x33
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 1]
call fcn.1400798a0
xor eax, eax
jmp 0x14009230d
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov byte [rcx], 0
lea rbp, [rcx + 0x15]
lea rbx, [rcx + 1]
call fcn.14009cab0
movsxd rdx, dword [rsp + 0xb8]
xor r9d, r9d
mov r8, rbp
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400a3830
test eax, eax
je 0x140092226
mov eax, edi
lea rcx, [rbp + 0x14]
xor edx, edx
sub eax, esi
sub eax, 0x29
movsxd r8, eax
call fcn.1400dc6e0
movsxd r11, esi
movsxd rax, edi
sub rax, r11
mov r8, rsi
mov rdx, r13
lea rcx, [rax + rbp - 0x14]
mov byte [rax + rbp - 0x15], 1
call fcn.1400d72d0
mov edx, 0x14
mov rcx, rbx
call fcn.14007fc40
test eax, eax
jle 0x140092226
add edi, 0xffffffec
lea rdx, [0x1401b9da8]
mov r8d, 0x49
mov ecx, edi
call fcn.140080c10
mov rsi, rax
test rax, rax
jne 0x14009222d
lea r9, [0x1401b9dc0]
lea edx, [rax + 0x79]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x4c
call fcn.1400798a0
xor eax, eax
jmp 0x140092303
mov r9d, 0x14
mov r8, rbx
mov edx, edi
mov rcx, rax
call fcn.140092070
test eax, eax
js 0x140092226
test edi, edi
jle 0x140092271
mov r11, rsi
mov rcx, rbp
mov r10d, edi
sub r11, rbp
nop word [rax + rax]
movzx eax, byte [r11 + rcx]
inc rcx
xor byte [rcx - 1], al
sub r10, 1
jne 0x140092260
call fcn.14009cab0
lea rcx, [rsp + 0x30]
mov r9d, edi
mov r8, rbp
mov edx, 0x14
mov qword [rsp + 0x20], rax
call fcn.140091ef0
test eax, eax
js 0x140092226
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x31]
lea r9, [rsp + 0x32]
lea r10, [rsp + 0x33]
lea r11, [rsp + 0x34]
sub rdx, rbx
sub r8, rbx
sub r9, rbx
sub r10, rbx
sub r11, rbx
mov ecx, 4
movzx eax, byte [rdx + rbx]
add rbx, 5
xor byte [rbx - 5], al
movzx eax, byte [r8 + rbx - 5]
xor byte [rbx - 4], al
movzx eax, byte [r9 + rbx - 5]
xor byte [rbx - 3], al
movzx eax, byte [r10 + rbx - 5]
xor byte [rbx - 2], al
movzx eax, byte [r11 + rbx - 5]
xor byte [rbx - 1], al
sub rcx, 1
jne 0x1400922c1
mov rcx, rsi
call fcn.140080ea0
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
ret