joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048de0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
lea rdi, [rsp + 0x20]
mov ecx, 0x8c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x260]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x260]
lea rcx, vtable.CPoolMem.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x260]
cmp qword [rax + 8], 0
je 0x140048e47
mov qword [rsp + 0x240], 1
jmp 0x140048e53
mov qword [rsp + 0x240], 0
mov r9d, 0xb1
lea r8, [0x1401d6990]
lea rdx, str.m_pbBufferBegin___NULL
mov rcx, qword [rsp + 0x240]
call fcn.14001ae00
lea rax, [0x14025a210]
lock dec qword [rax]
cmp qword [0x14025a210], 0
je 0x140048eac
mov r8, qword [0x14025a210]
lea rdx, [0x1401d6758]
lea rcx, [rsp + 0x30]
call fcn.1400438a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x260]
call fcn.140049540
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call fcn.14004a0b0
nop
mov rax, qword [rsp + 0x260]
add rax, 0x50
mov rcx, rax
call fcn.140011e60
mov rcx, rsp
lea rdx, [0x1401d9500]
call fcn.1400c02e0
nop
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x250
pop rdi
ret

Function at 0x140048f10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140048f80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140048f60
mov r9d, 0xc8
lea r8, [0x1401d6a00]
lea rdx, [0x1401d6514]
xor ecx, ecx
call fcn.14001ae00
mov ecx, 0xffffffff
call fcn.140126350
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x1400491a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140049210
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400491fa
mov r9d, 0xd4
lea r8, [0x1401d6a70]
lea rdx, [0x1401d6794]
xor ecx, ecx
call fcn.14001ae00
mov ecx, 0xffffffff
call fcn.140126350
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140049540
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
lea rdi, [rsp + 0x40]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x480]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x468], rax
mov rax, qword [rsp + 0x480]
cmp qword [rax + 0x40], 0
jne 0x140049595
xorps xmm0, xmm0
movss dword [rsp + 0x460], xmm0
jmp 0x1400495c6
mov rax, qword [rsp + 0x480]
cvtsi2ss xmm0, qword [rax + 0x48]
mulss xmm0, dword [0x1401d95a8]
mov rax, qword [rsp + 0x480]
cvtsi2ss xmm1, qword [rax + 0x40]
divss xmm0, xmm1
movss dword [rsp + 0x460], xmm0
cvtss2sd xmm0, dword [rsp + 0x460]
movsd qword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x480]
mov r9, qword [rax + 0x28]
mov rax, qword [rsp + 0x480]
mov r8, qword [rax + 0x38]
lea rdx, [0x1401d7060]
lea rcx, [rsp + 0x50]
call fcn.1400438a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsp
lea rdx, [0x1401d9560]
call fcn.1400c02e0
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x470
pop rdi
ret

Function at 0x140049ef0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
cmp qword [rsp + 0x40], 0
jle 0x140049f0d
mov qword [rsp + 0x28], 1
jmp 0x140049f16
mov qword [rsp + 0x28], 0
mov r9d, 0x38
lea r8, [0x1401d63b0]
lea rdx, [0x1401d6408]
mov rcx, qword [rsp + 0x28]
call fcn.14001ae00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140049f7c
mov r9d, 0x41
lea r8, [0x1401d6420]
lea rdx, [0x1401d6414]
xor ecx, ecx
call fcn.14001ae00
mov ecx, 0xffffffff
call fcn.140126350
lea rax, [0x14025a210]
lock inc qword [rax]
mov rax, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14004a6a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
cmp qword [rsp + 0x68], 0
jl 0x14004a6cc
mov qword [rsp + 0x30], 1
jmp 0x14004a6d5
mov qword [rsp + 0x30], 0
mov r9d, 0xd6
lea r8, [0x1401d9af0]
lea rdx, str.npStackSize___0
mov rcx, qword [rsp + 0x30]
call fcn.14001ae00
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14004a70b
mov eax, 1
jmp 0x14004a805
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 1
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x14004a751
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cdqe
mov r9d, 0xde
lea r8, [0x1401d9ba0]
lea rdx, str.::CloseHandle__m_handle_
mov rcx, rax
call fcn.14001ae00
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov rcx, rax
call fcn.14004d130
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x38], rcx
cmp qword [rsp + 0x58], 0
jne 0x14004a7a1
lea rax, [0x14004aa90]
mov qword [rsp + 0x38], rax
jmp 0x14004a7ad
lea rax, [0x14004a9e0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
jne 0x14004a800
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 0
xor eax, eax
jmp 0x14004a805
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14004df90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8d, 1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140032560
mov r9d, 0x130
lea r8, [0x1401dd110]
lea rdx, [0x1401dd0e8]
mov rcx, rax
call fcn.14001ae00
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x14004dfe5
xor eax, eax
jmp 0x14004e002
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140133cd0
add rsp, 0x20
pop rdi
ret
Function at 0x140066040
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140066094
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x167c
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140066094
int3
xor eax, eax
test eax, eax
jne 0x14006604f
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
je 0x1400660c6
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call fcn.140067cd0
jmp 0x140066149
movzx eax, byte [0x14025a280]
test eax, eax
jne 0x14006610b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140066104
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14025a278], rax
mov byte [0x14025a280], 1
cmp qword [0x14025a278], 0
je 0x140066136
xor r9d, r9d
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [0x14025a278]
jmp 0x140066149
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x40
pop rdi
ret

Function at 0x140066150
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400661a4
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x16a5
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x1400661a4
int3
xor eax, eax
test eax, eax
jne 0x14006615f
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x30
pop rdi
ret
Function at 0x140067900
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
lea rdi, [rsp + 0x40]
mov ecx, reloc.OLEAUT32.dll_VarDecAdd
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x310]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140063d00
nop
mov rax, qword [rsp + 0x310]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x318]
mov rax, qword [rsp + 0x310]
mov rdx, qword [rax]
lea rcx, [rsp + 0x48]
call fcn.140067030
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140067a15
cmp dword [rsp + 0x64], 2
je 0x1400679f4
cmp dword [rsp + 0x64], 3
je 0x1400679f4
lea rcx, [0x14025768c]
call fcn.140002850
mov dword [rsp + 0x2ec], eax
mov r8d, 0x18c9
lea rdx, [0x1401a4ba0]
lea rcx, [rsp + 0x2d0]
call fcn.140002420
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x318]
mov qword [rsp + 0x20], rcx
lea r9, str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__Ts_Error___d__n
xor r8d, r8d
mov ecx, dword [rsp + 0x2ec]
mov edx, ecx
mov rcx, rax
call fcn.140002870
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2e0], eax
lea rcx, [rsp + 0x48]
call fcn.1400640d0
mov eax, dword [rsp + 0x2e0]
jmp 0x140067ae8
mov dword [rsp + 0x94], 0x100
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140067ab1
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x48]
call fcn.140067900
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140067aa1
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x2e4], eax
lea rcx, [rsp + 0x48]
call fcn.1400640d0
mov eax, dword [rsp + 0x2e4]
jmp 0x140067ae8
mov dword [rsp + 0x94], 0x100
jmp 0x140067a20
lea rcx, [rsp + 0x48]
call fcn.140065dc0
mov rdx, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x310]
call fcn.140066040
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x48]
call fcn.1400640d0
mov eax, dword [rsp + 0x2e8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f4fc0]
call fcn.1400c02e0
mov rax, rdi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x300
pop rdi
ret
Function at 0x140067cd0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140067da3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140067d47
lea rax, str.hAdvAPI32___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x29c
lea rdx, str.D:HSwin_androidplugins_vprj_win_sdkcompiler_normalVCToolsMSVC14.29.30133ATLMFCinclude_atltransactionmanager.h
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140067d47
int3
cmp qword [rsp + 0x30], 0
jne 0x140067d56
mov eax, 1
jmp 0x140067dc5
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140067da1
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x140067dc5
jmp 0x140067dc0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140067dc0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140067dc5
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140069a50
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140069aa9
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1866
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069aa9
int3
xor eax, eax
test eax, eax
jne 0x140069a64
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
ret

Function at 0x140069af0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x140069b49
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1886
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069b49
int3
xor eax, eax
test eax, eax
jne 0x140069b04
cmp qword [rsp + 0x70], 0
je 0x140069b61
mov dword [rsp + 0x44], 1
jmp 0x140069b69
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140069bb2
lea rax, [0x1401a4a98]
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1887
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069bb2
int3
cmp dword [rsp + 0x40], 0
jne 0x140069bc0
mov eax, SafeArrayDestroy
jmp 0x140069c3f
xor eax, eax
test eax, eax
jne 0x140069b4f
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400e24f0
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x3c], 1
jne 0x140069bd8
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x50
pop rdi
ret
Function at 0x140069c50
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140069cae
lea rax, str.m_hKey___0
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1877
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069cae
int3
xor eax, eax
test eax, eax
jne 0x140069c69
cmp qword [rsp + 0x60], 0
je 0x140069cc6
mov dword [rsp + 0x34], 1
jmp 0x140069cce
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140069d17
lea rax, [0x1401a4a98]
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1878
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069d17
int3
cmp dword [rsp + 0x30], 0
jne 0x140069d28
mov eax, SafeArrayDestroy
jmp 0x140069db0
xor eax, eax
test eax, eax
jne 0x140069cb4
cmp dword [rsp + 0x68], 1
je 0x140069d76
cmp dword [rsp + 0x68], 2
je 0x140069d76
lea rax, str._dwType____1ul______dwType____2ul___
mov qword [rsp + 0x28], rax
lea rax, [0x1401a4858]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1879
lea rdx, [0x1401a4ac0]
mov ecx, 2
call fcn.1400e07a0
cmp eax, 1
jne 0x140069d76
int3
mov rcx, qword [rsp + 0x60]
call fcn.1400e24f0
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x40
pop rdi
ret
Function at 0x1400de640
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400de120
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400de67f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14019ba20]
jmp 0x1400de689
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1401588f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14016a050
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c0680
sub rsp, rax
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14025bc80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14016a242
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14016a196
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14016a196
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14016a17b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], SafeArrayDestroy
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14016a118
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016a202
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016a261
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14016a23d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016a261
jmp 0x14016a0ee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14016a280
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c0680
sub rsp, rax
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14025bc80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14016a48d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14016a3d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14016a3d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14016a3b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, SafeArrayDestroy
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14016a348
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016a44d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016a4ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14016a488
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016a4ac
jmp 0x14016a31e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x1498
pop rdi
pop rsi
ret