joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104aca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x20019
mov ecx, dword [ebp - 0x24]
call fcn.0104b020
test eax, eax
jne 0x104acf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104ae61
mov ecx, dword [ebp - 0x24]
call fcn.01039560
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x100ecf8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104ad31
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104ae26
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 8
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
je 0x104ad5d
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104ae26
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x104ada4
cmp dword [ebp - 0x18], 2
je 0x104ad98
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104ad9f
mov dword [ebp - 0x10], 1
jmp 0x104ae26
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x104addc
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104ae26
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x104ae13
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104ae26
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0102f1f0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0
je 0x104ae36
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x104ae4e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0101da1e
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x104ae5e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x104ae70
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x20019
mov ecx, dword [ebp - 0x20]
call fcn.0104b020
test eax, eax
jne 0x104aec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104b00e
mov ecx, dword [ebp - 0x20]
call fcn.01039560
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push 0x100ecf8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104af01
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104afd3
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
je 0x104af2d
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104afd3
mov ecx, dword [ebp + 8]
call fcn.010106d5
movzx eax, al
test eax, eax
jne 0x104af9b
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01027cd0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x104af65
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104afd3
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
push 7
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104af99
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104afd3
jmp 0x104afcc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x104afcc
cmp dword [ebp - 0x18], 2
je 0x104afcc
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x10], 0
jmp 0x104afd3
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0
je 0x104afe3
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x104affb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0101da1e
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x104b00b
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x104d9a0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x106406c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x104d9e1
mov eax, 1
jmp 0x104da80
push 0x1005824
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.01028f30
test eax, eax
jge 0x104da02
mov eax, 1
jmp 0x104da80
push 0x100f15c
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.01028f30
test eax, eax
jge 0x104da23
mov eax, 1
jmp 0x104da80
lea eax, [ebp - 4]
push eax
push SysReAllocString
lea ecx, [ebp - 0x218]
push ecx
call fcn.0101cd30
test eax, eax
jge 0x104da43
mov eax, 1
jmp 0x104da80
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp + 8], 0
je 0x104da5a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jae 0x104da5f
mov eax, dword [ebp - 4]
jmp 0x104da80
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01013f8a
test eax, eax
jge 0x104da7e
mov eax, 1
jmp 0x104da80
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 8
Function at 0x104daa0
Capabilities:
Check mutex on windows
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f180
push 0x101d384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
call fcn.0104e390
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x104daf4
mov eax, dword [ebp - 0x1c]
jmp 0x104dc7e
push 0x100f068
push 0
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x104db28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x40]
push edx
call fcn.010526e0
mov eax, dword [ebp - 0x28]
jmp 0x104dc7e
lea eax, [ebp - 0x40]
push eax
call fcn.010526e0
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x104db56
cmp dword [ebp - 0x1c], 0x80
jne 0x104db5f
mov dword [ebp - 0x20], 1
jmp 0x104db6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x104dc3e
cmp dword [0x1065c98], 0
je 0x104db82
mov dword [ebp - 0x28], 0
jmp 0x104dc3e
push 0x104
push 0x1065a90
call fcn.0104d9a0
test eax, eax
je 0x104dba1
mov dword [ebp - 0x28], 0x6e
jmp 0x104dc3e
push 0
push 0x1065a90
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x104dbbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x104dc3e
mov dword [ebp - 0x28], 0
mov dword [0x1065c98], 1
push 0x1065a90
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x800
jne 0x104dc3e
mov dword [ebp - 0x44], 0xffffffff
push 0
push 0x2000000
push 3
push 0
push 1
push 0xc0000000
push 0x1065a90
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x104dc3e
mov word [ebp - 0x48], 1
push 0
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x48]
push eax
push 0x9c040
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.0104dc4c
jmp 0x104dc6a
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x104e010
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105b000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0101236d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.010259a0
movzx edx, al
neg edx
sbb edx, edx
inc edx
mov byte [ebp - 0x1d], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.01010c92
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x104e075
mov eax, 0x52
jmp 0x104e120
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104e0e4
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0101236d
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
call fcn.01025d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.01010c92
mov dword [ebp - 0x10], 0
mov eax, 0x52
jmp 0x104e120
cmp dword [ebp - 0x14], 1
jne 0x104e10d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 3
push 0
push 0x100f148
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x104e980
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0x100f2cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x104e9c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x100f298
push 3
call fcn.0102e650
add esp, 8
jmp 0x104ead8
push 0x100f280
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x104e9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x104ead8
push 0x100f268
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x104ea27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x104ead8
push 0x100f250
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x104ea56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x104ead8
push 0x100f240
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jne 0x104ea82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x104ead8
push 0x100f228
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jne 0x104eaae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x104ead8
push 0x100f220
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
jne 0x104ead8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x104eaed
push 0x100f198
push 3
call fcn.0102e650
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x104fba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0
push 0x20019
mov ecx, dword [ebp - 0x48]
call fcn.0104b020
test eax, eax
jne 0x104fc03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
jmp 0x104fda9
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x104fc80
cmp dword [ebp - 0x18], 2
je 0x104fc62
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x24]
jmp 0x104fda9
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x28]
jmp 0x104fda9
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x104fccd
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x30]
jmp 0x104fda9
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x104fd3d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0101da1e
add esp, 4
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x38]
jmp 0x104fda9
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0102f1f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0101da1e
add esp, 4
mov ecx, dword [ebp + 0xc]
call fcn.010106d5
movzx edx, al
test edx, edx
je 0x104fd90
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x40]
jmp 0x104fda9
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1050890
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.01039560
push 0x20006
mov ecx, dword [ebp - 0x28]
call fcn.0104b020
test eax, eax
jne 0x10508ee
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x105099a
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
call fcn.010106d5
movzx eax, al
test eax, eax
je 0x105091f
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
jmp 0x1050974
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.01027cd0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1050974
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 7
push 0
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0101da1e
add esp, 4
mov ecx, dword [ebp - 0x28]
call fcn.01039560
xor ecx, ecx
cmp dword [ebp - 0x10], 0
sete cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1052100
Capabilities:
Check mutex on windows
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6e8
push 0x101d384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [0x1065ee8], 0
je 0x1052176
mov dword [ebp - 0x34], 0
jmp 0x10522cf
lea edx, [ebp - 0x4c]
push edx
call fcn.010524a0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1052190
mov eax, dword [ebp - 0x28]
jmp 0x10522d2
push 0x100f698
push 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10521c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.010526e0
mov eax, dword [ebp - 0x34]
jmp 0x10522d2
lea edx, [ebp - 0x4c]
push edx
call fcn.010526e0
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10521f2
cmp dword [ebp - 0x28], 0x80
jne 0x10521fb
mov dword [ebp - 0x2c], 1
jmp 0x1052209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
jmp 0x1052292
cmp dword [0x1065ee8], 0
je 0x105221b
mov dword [ebp - 0x34], 0
jmp 0x1052292
push 0x104
push 0x1065ce0
call fcn.01052380
test eax, eax
je 0x1052237
mov dword [ebp - 0x34], 0x6e
jmp 0x1052292
lea ecx, [ebp - 0x24]
push ecx
call fcn.010527d0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1052251
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
jmp 0x1052292
lea eax, [ebp - 0x24]
push eax
push 0x1065ce0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1052278
cmp dword [ebp - 0x34], 0xb7
jne 0x1052289
mov dword [ebp - 0x34], 0
mov dword [0x1065ee8], 1
lea ecx, [ebp - 0x24]
push ecx
call fcn.01052780
mov dword [ebp - 4], 0xffffffff
call fcn.010522a0
jmp 0x10522be
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1052380
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x106406c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10523bd
mov eax, 1
jmp 0x1052483
push 0x104
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x10523e4
mov eax, 1
jmp 0x1052483
push 0x1005824
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.01028f30
test eax, eax
jge 0x1052405
mov eax, 1
jmp 0x1052483
push 0x100f6d8
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.01028f30
test eax, eax
jge 0x1052426
mov eax, 1
jmp 0x1052483
lea edx, [ebp - 4]
push edx
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call fcn.0101cd30
test eax, eax
jge 0x1052446
mov eax, 1
jmp 0x1052483
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x105245d
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 4]
jae 0x1052462
mov eax, dword [ebp - 4]
jmp 0x1052483
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01013f8a
test eax, eax
jge 0x1052481
mov eax, 1
jmp 0x1052483
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 8