joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499d40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x499e14
jb 0x499e73
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 1
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 2
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 2
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 4
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 4
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 8
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 8
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00499c20
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00499c40
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00499c20
jmp 0x499ee1
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.00499b80
aeskeygenassist xmm1, xmm2, 2
call fcn.00499be0
aeskeygenassist xmm1, xmm2, 4
call fcn.00499b80
aeskeygenassist xmm1, xmm2, 8
call fcn.00499be0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00499b80
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00499be0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00499b80
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00499be0
jmp 0x499ee1
aeskeygenassist xmm1, xmm0, 1
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 2
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 4
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 8
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00499b40
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00499b40
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x499eee
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x140044720
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004472d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004473d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140044725
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140044755
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140044742
sub eax, 3
jb 0x14004476f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400447a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140044796
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140044794
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140044783
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400446e2
jmp 0x14004472d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xbe00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400447f2
cmp rsi, rcx
jae 0x1400447fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400447d9
cmp al, 0x8f
ja 0x1400447d9
cmp byte [rsi - 2], 0xf
je 0x1400447df
sub al, 0xe8
cmp al, 1
ja 0x1400447c3
cmp rsi, rcx
jae 0x1400447fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400447c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400447fa
lodsb al, byte [rsi]
jmp 0x1400447d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x41000]
mov eax, dword [rdi]
or eax, eax
je 0x140044863
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x56118]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140044807
jns 0x14004483c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140044846
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004485d
mov qword [rbx], rax
add rbx, 8
jmp 0x140044827
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004489d
cmp al, 0xef
ja 0x14004488f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004486f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004487e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400448f1
sub rsp, 0xffffffffffffff80
jmp 0x14000adec
Function at 0x1400044d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14000d018]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, 0x104
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov ecx, 0x80004005
xor esi, esi
test eax, eax
cmovne ecx, esi
je 0x1400046f1
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1400089e0]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x1400085f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1400046d8
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0xa0]
mov ebx, eax
test eax, eax
js 0x1400046d8
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [0x140008844]
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x1400046d8
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x1400089c0]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x1400046c2
lea ecx, [rsi + 0x2c]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rcx, rax
mov qword [rsp + 0x50], rax
mov ebx, 0x8007000e
test rax, rax
cmovne ebx, esi
je 0x14000461d
movups xmm0, xmmword [0x1400093e8]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400093f8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140009408]
movsd qword [rax + 0x20], xmm0
mov eax, dword [0x140009410]
mov dword [rcx + 0x28], eax
mov eax, 0x1f
mov word [rsp + 0x48], ax
test rcx, rcx
jne 0x14000463c
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x1400046c2
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x1400085e0]
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
js 0x1400046b6
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x1400046b6
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140009418]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x1400046a1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x30]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400046b6
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400046d8
mov qword [rsp + 0x38], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400046ed
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
jmp 0x1400046f3
mov eax, ecx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140006340
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140010130
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
cmp esp, 0
je 0x14001018a
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x140010192
mov r14, qword [r14]
jmp 0x14001015b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x1400101c7
jmp 0x1400101d5
inc rax
inc rax
inc rax
inc rax
jmp 0x1400101ae
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x80000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb8000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x4516
push rax
movabs r15, 0x3ae00
mov eax, 6
imul r12, rax
movabs rax, 0x2b8d
add rax, r11
add r12, rax
call fcn.14001028c
mov r12d, 0x58811
movabs r14, 0xc0000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.14001028c
pop rax
jmp 0x1400102b2
nop
ret
mov r12d, 0x8000000
mov r15d, 0x3d7
movabs r14, 0x80000
mov eax, 4
imul r15d, eax
add r15d, 0xa4
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x5d411
add r12, r11
mov eax, dword [r12]
xor eax, 0xdd2e3804
dec eax
cmp eax, 0
je 0x14001030f
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x1400102ed
sub rsp, 0x28
movabs r14, 0x2bf3
mov r12d, 0x60fc
add r12, 0x9b09d
add r12, r14
add r12, r11
push r12
dec r10
lea r15d, [eax]
invalid
outsd dx, dword [rsi]
invalid
invalid
Function at 0x1400032c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400032ed
xor eax, eax
jmp 0x140003459
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003327
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003327
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003459
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000344c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000336a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003395
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003451
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003404
sub eax, 1
je 0x140003404
cmp eax, 2
jne 0x14000344c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003451
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003432
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000344c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003451
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004870
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400037c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003893
cmp byte [rcx + 0x71], 0
je 0x140003893
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000388f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003854
sub eax, 1
je 0x140003858
cmp eax, 2
jne 0x14000388f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004870
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003886
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000388f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000383c
xor al, al
jmp 0x14000383c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004870
add rsp, 0x60
pop rbx
ret

Function at 0x1400051f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000523a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000523a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000523a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000523a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000523a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000523c
xor al, al
add rsp, 0x28
ret
Function at 0x140001b94
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0x100
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rdi, r9
mov rbx, r8
mov rsi, rcx
mov qword [rbp - 0x79], 7
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rdx, qword [rbp + 0x6f]
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rdx, qword [rbp + 0x77]
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rdx, qword [rbp + 0x7f]
lea rcx, [rsp + 0x30]
call fcn.1400023d0
lea rdx, [rsp + 0x30]
cmp qword [rbp - 0x79], 8
cmovae rdx, qword [rsp + 0x30]
mov byte [rbp + 0x2f], r12b
mov qword [rbp - 0x29], r12
mov dword [rbp - 0x39], 0x67452301
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
mov r8, qword [rsp + 0x40]
lea r8, [r8 + r8 + 2]
lea rcx, [rbp - 0x39]
call fcn.140002d74
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x39]
call fcn.140003800
lea r8, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae r8, qword [rbp - 0x69]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
or ebx, 0xffffffff
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae r8, qword [rbp - 0x69]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rbp - 0x51], 0x10
jb 0x140001cd8
mov rcx, qword [rbp - 0x69]
call fcn.140021190
mov qword [rbp - 0x51], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x59], r12
mov byte [rbp - 0x69], r12b
cmp qword [rbp - 0x79], 8
jb 0x140001cf9
mov rcx, qword [rsp + 0x30]
call fcn.140021190
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003db4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x140003f45
cmp byte [rcx + 0x89], 0
je 0x140003f45
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140003e05
xor al, al
jmp 0x140003f47
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x140003e2e
lea rcx, str.string_too_long
call fcn.14003a508
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140003e93
dec eax
jne 0x140003f0a
jmp 0x140003e9a
mov byte [rbx + 0x89], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x140003ee4
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.140021c04
cmp rdi, rax
jne 0x140003f1e
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x89], 0
je 0x140003f37
test rdi, rdi
jne 0x140003e4f
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.1400038d4
jmp 0x140003e47
sub eax, 2
je 0x140003f11
jmp 0x140003f1e
cmp qword [rbp - 0x10], 0x10
jb 0x140003f45
mov rcx, qword [rbp - 0x28]
jmp 0x140003f40
cmp qword [rbp - 0x10], 0x10
jb 0x140003dfe
mov rcx, qword [rbp - 0x28]
call fcn.140021190
jmp 0x140003dfe
cmp r10, 0x10
jb 0x140003f45
mov rcx, r9
call fcn.140021190
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x1400045a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [r12 + 0x138]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rbx
mov edx, 0xff
call fcn.140021890
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.1400211b0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
xor ebx, ebx
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
xor r9d, r9d
movzx r8d, si
mov rdx, rbp
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbx
call qword [rax]
test eax, eax
je 0x1400046bc
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x14004bd20]
mov al, 1
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
jmp 0x1400046be
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140004df8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [0x140063644]
mov qword [rcx + 8], rdx
mov rsi, rdx
lea rax, vtable.CManager.0
mov rbp, rcx
mov edi, r8d
mov qword [rcx], rax
mov rax, qword [rdx]
mov rdx, rcx
mov rcx, rsi
call qword [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and dword [rbp + 0x230], 0
lea r8, [0x140063890]
mov qword [rbp + 0x10], rax
lea rax, vtable.CKernelManager.0
lea rcx, [0x1400642b0]
mov edx, 0x208
mov qword [rbp], rax
call fcn.140021890
lea r8, [0x140063650]
lea rcx, [0x1400646c0]
mov edx, 0x208
call fcn.140021890
and dword [rbp + 0x238], 0
and dword [rbp + 0x234], 0
lea rcx, [0x14004aa20]
mov dword [0x14006100c], edi
mov dword [0x140061014], ebx
mov qword [rbp + 0x228], rsi
mov qword [0x140063638], rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RegCreateKeyExW
mov rcx, rax
mov qword [rbp + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x14004aa50]
mov qword [rbp + 0x248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegDeleteKeyW
mov qword [rbp + 0x288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x14004aa70]
mov qword [rbp + 0x258], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x14004aa80]
mov qword [rbp + 0x260], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x14004aa98]
mov qword [rbp + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegEnumValueW
mov qword [rbp + 0x268], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegEnumKeyExW
mov qword [rbp + 0x270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x14004aac8]
mov qword [rbp + 0x278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rbp + 0x280], rax
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret