joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022d0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
mov eax, 0x30050
call fcn.140005c60
sub rsp, rax
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x30040], rax
xor ebx, ebx
mov word [0x14000a058], 1
cmp ecx, 3
mov byte [0x14000a04c], 0
mov eax, ebx
mov byte [0x14000a054], bl
cmovl eax, ecx
cmp edx, 2
mov dword [0x14000a048], eax
mov eax, ebx
cmovl eax, edx
mov dword [0x14000a050], eax
test eax, eax
jne 0x140002443
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rcx, [0x140006440]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14000245e
mov r9, qword [rsp + 0x30]
lea r8, str._sAMDCN
mov edx, 0x8000
lea rcx, [rsp + 0x40]
call fcn.140001f30
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140002391
cmp eax, 0xb7
jne 0x14000242f
mov edx, 0x20
call fcn.1400024d0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, str._sdskcaplog_s.txt
mov edx, 0x10000
lea rcx, [rsp + 0x10040]
mov rbx, rax
call fcn.140001f30
lea rcx, [rsp + 0x10040]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400023d0
test rax, rax
je 0x14000242f
mov r8d, 0x20
lea rdx, [0x140006af0]
lea rcx, [rsp + 0x10040]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov qword [0x14000a060], rax
test rax, rax
je 0x14000242f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x14000a060]
lea rdx, str.Process_Id:_d_n
mov r8d, eax
call fcn.140001ee0
mov rcx, qword [0x14000a060]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
mov rcx, qword [rsp + 0x30040]
xor rcx, rsp
call fcn.140004d40
add rsp, 0x30050
pop rbx
ret
xor al, al
jmp 0x140002445
Function at 0x140002600
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x20290
call fcn.140005c60
sub rsp, rax
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x20280], rax
mov rbp, r8
mov dword [rsp + 0x58], edx
cmp byte [0x14000a058], 0
je 0x1400027df
cmp edx, dword [0x14000a048]
jl 0x1400027df
cmp edx, 3
jge 0x1400027df
mov rdi, qword [0x14000a900]
xor ebx, ebx
mov qword [rsp + 0x60], rbx
test rdi, rdi
je 0x1400026af
mov qword [rsp + 0x60], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x140002698
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x1400026a7
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
mov rbx, qword [rsp + 0x60]
mov edx, 0x3a
call fcn.1400024d0
mov rsi, rax
mov qword [rsp + 0x68], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], 0x104
lea r9, str.duplicatedesktop
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
call fcn.140002a70
mov rdi, qword [rax]
add rdi, 0x18
cmp qword [rdi + 0x18], 8
jb 0x14000271d
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
lea r8, str.Thread_Id:_d_t_s_t_s_t_s_t_s_n
mov edx, 0x10000
lea rcx, [rsp + 0x280]
call fcn.140001f30
mov rcx, qword [0x14000a060]
test rcx, rcx
je 0x140002787
lea r8, [rsp + 0x280]
lea rdx, [0x140006bec]
call fcn.140001ee0
mov rcx, qword [0x14000a060]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x140002795
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rbx, rbx
je 0x1400027db
add dword [rbx + 8], 0xffffffff
mov ecx, dword [rbx + 8]
jne 0x1400027b4
mov dword [rbx + 4], 0
mov eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
je 0x1400027db
test ecx, ecx
jne 0x1400027db
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov al, 1
jmp 0x1400027e1
xor al, al
mov rcx, qword [rsp + 0x20280]
xor rcx, rsp
call fcn.140004d40
mov rbx, qword [rsp + 0x202b0]
add rsp, 0x20290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e10
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14000a920]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14000a948]
js 0x140002e34
cvtsi2ss xmm0, rcx
jmp 0x140002e49
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14000a910]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140006ec4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140002e7b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140002e7b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140002ead
cmp rbx, 0x200
jae 0x140002eaa
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140002ead
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140002ee0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140002f11
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14000a918]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14000a928]
lea rdx, [rdi + rdi]
call fcn.140002930
mov rcx, qword [0x14000a918]
lea r9, [rdi - 1]
mov qword [0x14000a940], r9
mov qword [0x14000a948], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140003095
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14000a928]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140002fd3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140003056
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140003010
mov r10, qword [rax]
cmp r10, rcx
je 0x14000300a
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140003056
mov r8, rax
cmp r10, rax
je 0x140003032
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x14000306a
cmp r10, rax
jne 0x140003020
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x140003090
mov r9, qword [0x14000a940]
jmp 0x140002f81
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140003056
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002ee0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14000a920]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14000a948]
js 0x140002e34
cvtsi2ss xmm0, rcx
jmp 0x140002e49
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14000a910]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140006ec4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140002e7b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140002e7b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140002ead
cmp rbx, 0x200
jae 0x140002eaa
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140002ead
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140002ee0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140002f11
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14000a918]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14000a928]
lea rdx, [rdi + rdi]
call fcn.140002930
mov rcx, qword [0x14000a918]
lea r9, [rdi - 1]
mov qword [0x14000a940], r9
mov qword [0x14000a948], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140003095
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14000a928]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140002fd3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140003056
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140003010
mov r10, qword [rax]
cmp r10, rcx
je 0x14000300a
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140003056
mov r8, rax
cmp r10, rax
je 0x140003032
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x14000306a
cmp r10, rax
jne 0x140003020
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x140003090
mov r9, qword [0x14000a940]
jmp 0x140002f81
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140003056
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140003c94
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140003c94
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x140003b9b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140003cbb
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140003bb2
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140003bb2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140003bc5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140003c12
mov r8d, eax
cmp eax, 0x800
jae 0x140003bdf
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140003c12
cmp eax, 0x10000
jae 0x140003bf9
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140003c12
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140003c94
add qword [r14], 2
test sil, sil
jne 0x140003c33
cmp r10d, 3
jae 0x140003c3f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140003c71
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140003c50
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x140003b4f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140003ca2
Function at 0x140004b90
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x140004cd9
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbp
lea rdx, str.SOFTWAREAMDDVRLOG
mov ebp, 1
mov dword [rsp + 0x38], 4
mov r9d, ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004c3d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004c32
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140004cb8
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov r9d, ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREAMDDVRLOG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004cb8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004cad
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004d40
add rsp, 0x58
pop rdi
pop rsi
ret
xor al, al
jmp 0x140004cc5
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112a3
Capabilities:
Execute command

Disassembly:
jmp 0x140012240
push rbp
push rsi
push rdi
sub rsp, 0x2f0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x2b8], rax
lea rcx, [0x1400240a4]
call fcn.1400113b6
lea rax, [rbp + 0x10]
lea rcx, [0x14001b3a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x115
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call fcn.140012580
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov edx, 0x20
lea rcx, [rbp + 0x148]
call fcn.140011280
xor ecx, ecx
call fcn.140012580
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rbp + rcx + 0x148]
xor rax, rcx
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov edx, 0x10
lea rcx, [rbp + 0x188]
call fcn.140011280
mov r8d, 0x20
lea rdx, [rbp + 0x148]
lea rcx, str.pKey
call fcn.14001105f
mov r8d, 0x10
lea rdx, [rbp + 0x188]
lea rcx, [0x14001b4f4]
call fcn.14001105f
mov qword [rbp + 0x1b8], 0
mov dword [rbp + 0x1d4], 0
lea rax, [rbp + 0x1d4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x188]
lea r8, [rbp + 0x148]
mov edx, 0x115
lea rcx, [rbp + 0x10]
call fcn.14001100f
test eax, eax
jne 0x140012370
mov eax, 0xffffffff
jmp 0x1400123cf
mov eax, dword [rbp + 0x1d4]
mov r8d, eax
mov rdx, qword [rbp + 0x1b8]
lea rcx, str.CipherText
call fcn.14001105f
mov rax, qword [rbp + 0x1b8]
mov qword [rbp + 0x2a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x2b0], rax
mov r8, qword [rbp + 0x2a8]
xor edx, edx
mov rcx, qword [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str.PAUSE
call qword [sym.imp.ucrtbased.dll_system]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001b090]
call fcn.140011348
mov rax, rdi
mov rcx, qword [rbp + 0x2b8]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x2c0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d60
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d73
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014d9d
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014db1
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014dc3
xor al, al
jmp 0x140014de1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014ddf
xor al, al
jmp 0x140014de1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e37e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e382a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e382a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e382a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e382a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e382a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e382c
xor al, al
add rsp, 0x28
ret

Function at 0x1400e7c2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400e2da0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400eda48
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400e7c7b
mov rax, rbp
jmp 0x1400e7d83
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1085f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400ed2c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1085f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400e7d7f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e7d7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400ed2c4
test rax, rax
js 0x1400e7d7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400e7d7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400e7d71
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400e7d71
cmp byte [rcx], 0xd
jne 0x1400e7d57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400e7d66
cmp byte [rcx + 1], 0xa
jne 0x1400e7d66
inc rcx
jmp 0x1400e7d66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x107380]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400e7d39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400e7d83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e2e00
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400eaf90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ead8c
Function at 0x1400eda70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401085f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400edac7
cmp word [rdx], r13w
jne 0x1400edac7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400edacc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400edbf1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400edc12
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400edb05
mov rdx, r9
mov word [rbx], cx
jmp 0x1400edb2c
cmp r9, r8
jae 0x1400edb3c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400edae6
jmp 0x1400edbf1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400edbe6
cmp dword [rsp + 0x80], esi
je 0x1400edbe6
lea r8, [0x1401085f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400edbbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400edb8e
mov word [rbx], r13w
jmp 0x1400edbee
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400edb9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400edbee
cmp word [rsp + 0x70], r13w
jne 0x1400edbcb
cmp rbx, r14
je 0x1400edb88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ed2cc
cmp word [rsp + 0x70], r13w
je 0x1400edbf1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401085f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400edbeb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400edbf1