joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100041cd4
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x50
and qword [rsp + 0x78], 0
mov eax, 2
mov rbp, rcx
lea r15d, [rax + 0x12]
mul r15
lea rdi, [r15 - 0x15]
cmovo rax, rdi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
test rax, rax
jne 0x100041d1d
mov eax, 0x8007000e
jmp 0x100041f04
lea rax, [rsp + 0x78]
lea rdx, [0x100023b30]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100041dd0
mov ecx, 0x208
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x100041dc5
mov edi, 0x104
mov rcx, rax
mov edx, edi
call fcn.10003fbdc
test eax, eax
je 0x100041db9
lea r8, [0x100023b98]
mov rdx, rdi
mov rcx, rbx
call fcn.10002e3d4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
lea rdx, [0x100023bb0]
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
or rdi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
lea rdx, [0x10001d0c0]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x100041ed5
mov r9d, dword [0x10004d3a0]
jmp 0x100041e3a
mov r9d, dword [0x10004d3a0]
cmp r9d, 0x3e8
jge 0x100041e70
inc r9d
mov dword [0x10004d3a0], r9d
lea r8, [0x100023170]
mov rdx, r15
mov rcx, rsi
call fcn.10002e570
mov rcx, qword [rsp + 0x78]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100041e20
xor eax, eax
mov rcx, rdi
mov rdi, rbp
repne scasw ax, word [rdi]
mov r9d, 2
xor r8d, r8d
not rcx
mov rdx, rsi
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x100041ead
inc dword [0x10004d3a0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x100041ed5
lea rdx, [0x100023c10]
lea ecx, [rbx + 4]
mov r8, rbp
call fcn.10004575c
mov edi, 0xd2af9
jmp 0x100041efa
movzx edi, bx
lea rdx, [0x100023bd0]
mov r8, rbp
or edi, 0x80070000
test ebx, ebx
mov ecx, 2
cmovle edi, ebx
mov r9d, edi
call fcn.10004575c
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret
Function at 0x1000426b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100042784
jmp 0x10004272f
test eax, eax
jne 0x10004276d
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x10004272f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1000426b0
test eax, eax
jne 0x10004276d
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x100042703
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1000427b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, r8
mov rdi, rdx
test rdx, rdx
jne 0x1000427cf
lea eax, [rdx + 6]
jmp 0x10004282e
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100042808
test rbx, rbx
jne 0x100042801
cmp dword [rsp + 0x48], 2
jbe 0x100042808
mov eax, 0xb7
jmp 0x10004282e
mov eax, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100042840
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x140], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 0x23
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x10004292a
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
xor ebx, ebx
lea ecx, [rbx + 1]
test eax, eax
cmovne ebx, ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, qword [rsp + 0x20]
test eax, eax
js 0x1000428c4
test rcx, rcx
je 0x1000428c4
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x28]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
test ebx, ebx
je 0x10004292f
lea rax, [rsp + 0x30]
lea rbx, [rsp + 0x30]
test rax, rax
je 0x1000428e8
lea rcx, [rsp + 0x30]
call fcn.10003fef4
mov rcx, qword [rsp + 0x20]
jmp 0x1000428ea
xor eax, eax
test eax, eax
jne 0x10004292f
cmp byte [rsp + 0x30], al
je 0x10004291d
cmp byte [rbx], 0x5c
jne 0x10004290c
lea rcx, [rsp + 0x30]
xor edx, edx
mov byte [rbx], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rbx], 0x5c
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextA]
mov rbx, rax
cmp byte [rax], 0
jne 0x1000428f4
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x10004293a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1000475f0
add rsp, 0x150
pop rbx
ret
Function at 0x10004295c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x60]
mov rsi, 0xffffffff80000002
lea rdx, [0x100023c50]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100042b3e
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x70]
lea rdx, [0x100023cd0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x2001f
mov ebx, edi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100042b33
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x50], 0x105
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x100042b28
lea esi, [rdi + 4]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
inc ebx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100042aea
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x10001c3b0]
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x100042adf
cmp dword [rsp + 0x54], esi
jne 0x100042adf
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x80]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x50], 0x105
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
je 0x100042a3f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x100045010
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x10004509a
lea r8, [0x1000232c8]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.10002e3d4
cmp eax, ebx
jl 0x10004509a
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x24], ebx
mov eax, ebx
mov dword [rsp + 0x20], ebx
cmp rcx, rbx
je 0x10004508c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.100040be4
mov r11d, eax
mov eax, dword [rsp + 0x20]
jmp 0x100045092
mov r11d, 0x80004005
cmp r11d, ebx
jl 0x10004509a
movzx ebx, ax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000475f0
add rsp, 0x250
pop rbx
ret
Function at 0x1000456ac
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x1000456ff
push rdi
sub rsp, 0x30
mov r10, qword [0x10004a128]
or rcx, 0xffffffffffffffff
mov r11, r8
cmp r10, rcx
je 0x1000456fa
cmp edx, dword [0x10004d3a8]
jg 0x1000456fa
and dword [rsp + 0x50], 0
xor eax, eax
mov rdi, r8
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
not rcx
mov rdx, r11
lea r8, [rcx - 1]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x10004a128]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x100045740
lea r8, str.wmsetup.log
lea rcx, [0x10004a128]
mov edx, ebx
call fcn.1000450bc
mov rcx, qword [0x10004a128]
mov r8, rdi
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1000456ac

Function at 0x100045708
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x1000456ff
push rdi
sub rsp, 0x30
mov r10, qword [0x10004a128]
or rcx, 0xffffffffffffffff
mov r11, r8
cmp r10, rcx
je 0x1000456fa
cmp edx, dword [0x10004d3a8]
jg 0x1000456fa
and dword [rsp + 0x50], 0
xor eax, eax
mov rdi, r8
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
not rcx
mov rdx, r11
lea r8, [rcx - 1]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x10004a128]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x100045740
lea r8, str.wmsetup.log
lea rcx, [0x10004a128]
mov edx, ebx
call fcn.1000450bc
mov rcx, qword [0x10004a128]
mov r8, rdi
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1000456ac
Function at 0x100045b50
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x250], rax
and qword [rsp + 0x38], 0
mov edi, edx
mov rsi, rcx
mov ebx, 0x80004005
test rcx, rcx
jne 0x100045b91
lea eax, [rbx - 2]
jmp 0x100045cc5
lea rax, [rsp + 0x38]
lea rdx, [0x100023250]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100045cc3
mov rcx, qword [rsp + 0x38]
mov ebx, 0x208
mov eax, edi
cmp edi, ebx
lea r9, [rsp + 0x30]
lea rdx, [0x100027080]
cmova eax, ebx
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100045c5a
cmp dword [rsp + 0x30], 1
jne 0x100045c5a
lea rax, [rsp + 0x40]
test rax, rax
je 0x100045c27
lea rcx, [rsp + 0x40]
call fcn.10003fff0
jmp 0x100045c29
xor eax, eax
test eax, eax
je 0x100045c31
xor ebx, ebx
jmp 0x100045c7d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r11, [rsp + 0x40]
test r11, r11
je 0x100045c54
lea rcx, [rsp + 0x40]
call fcn.10003fff0
jmp 0x100045c56
xor eax, eax
test eax, eax
jne 0x100045c2d
lea rax, [rsp + 0x40]
test rax, rax
jne 0x100045c6b
mov ebx, 0x80004003
jmp 0x100045cb8
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.100045870
mov ebx, eax
test eax, eax
jne 0x100045cb8
mov rdx, rdi
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
shr rdx, 1
repne scasw ax, word [rdi]
not rcx
cmp rdx, rcx
jbe 0x100045ca8
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.10002e2e8
jmp 0x100045cb8
mov ecx, 0x8007007a
mov ebx, 0x8007007a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100045cf0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
mov ebp, edx
mov rsi, rcx
lea r8, [rsp + 0x28]
lea edx, [r12 + 0x23]
xor ecx, ecx
mov qword [rsp + 0x28], r12
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea r13d, [r12 + 1]
cmp eax, r12d
mov ebx, eax
jl 0x100045d94
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rcx, [rsp + 0x20]
mov edi, r12d
cmp eax, r12d
cmovne edi, r13d
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, r12d
jl 0x100045d8f
mov rcx, qword [rsp + 0x20]
cmp rcx, r12
je 0x100045d8f
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x28]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp edi, r12d
jne 0x100045dc9
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, r12d
je 0x100045dc4
lea r8, [0x1000270a0]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.10002e3d4
cmp eax, r12d
jge 0x100045dc9
mov ebx, 0x80070057
cmp ebx, r12d
jl 0x100045e5d
lea rax, [rsp + 0x30]
cmp rax, r12
je 0x100045de8
lea rcx, [rsp + 0x30]
call fcn.10003fff0
jmp 0x100045deb
mov eax, r12d
cmp eax, r12d
je 0x100045df5
mov ebx, r12d
jmp 0x100045e27
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rsp + 0x30]
cmp rdx, r12
je 0x100045e18
lea rcx, [rsp + 0x30]
call fcn.10003fff0
jmp 0x100045e1b
mov eax, r12d
cmp eax, r12d
cmovne ebx, r12d
cmp ebx, r12d
jne 0x100045e5d
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
shr rdx, 1
sub rcx, r13
add rcx, r13
cmp rdx, rcx
jbe 0x100045e58
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.10002e2e8
jmp 0x100045e5d
mov ebx, 0x8007007a
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000475f0
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100046530
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
test rcx, rcx
je 0x100046705
push rdi
sub rsp, 0x1e0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
and qword [rsp + 0x38], 0
and dword [rsp + 0x34], 0
mov r9, rcx
lea rcx, [rsp + 0x40]
lea r8, [0x100020670]
mov edx, 0xc7
call fcn.10002e570
test eax, eax
js 0x1000466ed
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000466ed
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x100001da8]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x190
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000466e2
cmp dword [rsp + 0x30], 1
jne 0x1000466e2
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1000466e2
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.100046468
test eax, eax
je 0x1000466e2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x100027270]
xor r8d, r8d
mov dword [rsp + 0x34], 0x190
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000466d0
cmp dword [rsp + 0x30], 1
jne 0x1000466d0
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.100046468
lea rdx, [0x100001da8]
test eax, eax
je 0x100046691
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1000466c7
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [0x100027270]
jmp 0x1000466d7
lea rdx, [0x100001da8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1000475f0
add rsp, 0x1e0
pop rdi
ret
Function at 0x1000472b8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x10004dc60], rdi
je 0x100047311
cmp rax, rdi
jne 0x100047304
mov esi, 1
jmp 0x100047311
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000472eb
mov eax, dword [0x10004dc58]
cmp eax, 1
jne 0x100047326
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10004738b
mov eax, dword [0x10004dc58]
test eax, eax
jne 0x100047381
mov dword [0x10004dc58], 1
lea r12, [0x1000015d8]
lea rdi, [0x1000015c0]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x100047373
test eax, eax
jne 0x100047373
mov rcx, qword [rdi]
test rcx, rcx
je 0x100047368
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x100047351
test eax, eax
je 0x10004738b
mov eax, 0xff
jmp 0x1000474d5
mov dword [0x10004c8e4], 1
mov eax, dword [0x10004dc58]
cmp eax, 1
jne 0x1000473b3
lea rdx, [0x1000015b8]
lea rcx, [0x100001598]
call sub.msvcrt.dll__initterm
mov dword [0x10004dc58], 2
test esi, esi
jne 0x1000473c0
xor eax, eax
xchg qword [0x10004dc60], rax
cmp qword [0x10004dc68], 0
je 0x1000473e9
lea rcx, [0x10004dc68]
call fcn.10004773c
test eax, eax
je 0x1000473e9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10004dc68]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x100047474
cmp byte [rdi], 0
je 0x10004740a
test esi, esi
jne 0x100047474
cmp byte [rdi], 0
je 0x10004741e
cmp byte [rdi], 0x20
ja 0x10004741e
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10004740a
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100033240
mov dword [0x10004c8e0], eax
cmp dword [0x10004c8c4], 0
jne 0x10004745d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10004c8e4], 0
jne 0x100047472
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10004c8e0]
jmp 0x1000474d5
cmp byte [rdi], 0x22
jne 0x100047486
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10004749b
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1000473fc
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.1000478fc
add rsp, 0x28
jmp 0x1000472b8
Function at 0x1000475f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10004a110]
jne 0x10004760b
rol rcx, 0x10
test cx, 0xffff
jne 0x100047607
ret 0
ror rcx, 0x10
jmp 0x1000479b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10004c9a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x10004ca98]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100047a3d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10004c9a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100047a5f
mov rax, qword [rsp + 0x88]
mov qword [0x10004ca98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10004ca38], rax
mov rax, qword [0x10004ca98]
mov qword [0x10004c910], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10004ca20], rax
mov dword [0x10004c900], 0xc0000409
mov dword [0x10004c904], 1
mov rax, qword [0x10004a110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10004a118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001600]
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, 0x88
ret

Function at 0x100047854
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000478a1
cmp rcx, 0xffffffffffffffff
je 0x1000478a1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100047899
cmp dword [rcx + 0x3c], edx
jl 0x100047899
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100047899
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000478a1
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140011451
Capabilities:
Terminate process

Disassembly:
jmp 0x14001edb0
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