joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104a82e
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x2c
mov eax, 0x1058ead
call fcn.01022092
mov eax, dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x104a8d1
cmp eax, 2
push dword [esi]
je 0x104a8c0
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104a90c
push 0x10117d8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x104a90c
cmp dword [ebp + 0x10], ebx
jne 0x104a8df
mov dword [ebp - 0x20], 1
jmp 0x104a90c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104a905
push dword [esi]
push eax
push 0x1011718
jmp 0x104a8b1
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104a91a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], ebx
je 0x104a929
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x38]
call fcn.0101526d
mov byte [ebp - 4], 2
cmp dword [ebp + 0x10], ebx
je 0x104a945
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.0103c2bd
push dword [ebp + 0x18]
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.010157a2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0104a25c
cmp eax, ebx
jne 0x104a97e
push 0x1012388
push 3
call fcn.0103aac4
pop ecx
pop ecx
xor eax, eax
jmp 0x104a981
xor eax, eax
inc eax
cmp dword [ebp - 0x14], ebx
je 0x104a98e
cmp eax, ebx
je 0x104a98e
xor esi, esi
jmp 0x104a993
mov esi, 0x643
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fc6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0x14

Function at 0x104adfd
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x104ae4b
cmp dword [ebx + 4], 1
push edi
je 0x104ae47
mov edi, 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x104ae5b
add dword [ebp - 4], edi
cmp dword [ebp - 4], 0x2710
ja 0x104ae50
cmp dword [ebx + 4], 1
jne 0x104ae24
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104ae4a
Function at 0x104ae64
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push 0x20019
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
call fcn.0104ac41
test eax, eax
jne 0x104aea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104af58
mov ecx, esi
call fcn.0103ea35
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push 0x1012600
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104af1d
lea eax, [ebp - 8]
push eax
add esi, 8
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x104af1d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], edi
je 0x104af08
lea eax, [ebp - 0xc]
push eax
call fcn.01035a81
mov ebx, eax
cmp ebx, edi
je 0x104af1d
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ebx
push 7
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jmp 0x104af1b
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x104af2c
cmp eax, 2
je 0x104af2c
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x104af2f
xor esi, esi
inc esi
cmp dword [ebp - 4], edi
je 0x104af3d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x104af48
push ebx
call fcn.010213d8
pop ecx
cmp dword [ebp - 8], edi
je 0x104af56
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104af64
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f1d
call fcn.01022092
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
mov dword [eax], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x104b103
push 0x80010020
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x104b0e0
mov eax, dword [ebp + 0xc]
cmp eax, 2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x104afd8
cmp eax, 3
je 0x104afd8
cmp eax, 4
je 0x104afd8
cmp eax, 1
jne 0x104b026
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x104affe
call edi
push eax
push dword [ebp + 8]
push 0x1011020
push 3
call fcn.0103aac4
add esp, 0x10
push ebx
lea ebx, [ebp - 0x34]
call fcn.0104adfd
test eax, eax
jne 0x104b026
push dword [ebp + 8]
push 0x1010fe8
push 2
call fcn.0103aac4
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x104b0c0
push dword [ebp + 8]
push 0x1010fb0
push 1
call fcn.0103aac4
add esp, 0xc
push dword [ebp - 0x14]
call esi
xor edi, edi
cmp dword [ebp + 0xc], 2
je 0x104b063
cmp dword [ebp + 0xc], 3
mov dword [ebp + 0xc], 6
jne 0x104b06a
mov dword [ebp + 0xc], 3
push SysReAllocString
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc edi
test ebx, ebx
je 0x104b0fc
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
call esi
cmp edi, dword [ebp + 0xc]
jne 0x104b0ae
push 0x1010ed8
push 2
call fcn.0103aac4
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], 1
jmp 0x104b0b9
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [ebp + 0xc]
jb 0x104b06a
jmp 0x104b0fc
and dword [ebp - 0x10], 0
call edi
push eax
push dword [ebp + 8]
push 0x1010e60
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x14]
call esi
jmp 0x104b0fc
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1010dd0
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x18]
call esi
jmp 0x104b11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1010d30
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, dword [ebp - 0x10]
call fcn.0102217e
ret 0xc
Function at 0x104b492
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x14
mov eax, 0x1058fad
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x104b4f2
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0xc
push 0x1012778
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.010151a6
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
call fcn.01014f3a
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104b579
xor esi, esi
jmp 0x104b598
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 7
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x10], ebx
je 0x104b4c5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104b4c5
Function at 0x104b5b4
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1058fee
call fcn.01022092
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 1
push 0x1012778
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x104b66e
cmp edi, 2
je 0x104b6c2
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011520
push 3
jmp 0x104b6b8
push ebx
push ebx
push ebx
push ebx
push dword [0x10645d8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104b68d
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x104b6c2
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x104b6c2
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011410
push 1
call fcn.0103aac4
add esp, 0x10
jmp 0x104b6c4
xor edi, edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov eax, edi
call fcn.0102217e
ret 4
Function at 0x104b6ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
mov ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.0104ac41
test eax, eax
jne 0x104b728
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104b7eb
mov ecx, ebx
call fcn.0103ea35
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x1012600
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104b7a4
lea eax, [ebp - 0xc]
push eax
add ebx, 8
push ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x104b7a4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x104b77b
cmp eax, 2
je 0x104b7bc
jmp 0x104b7a4
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.010542e0
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x10], ebx
je 0x104b7a4
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x104b7b3
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x104b7bf
mov ecx, dword [ebp + 8]
push ebx
call fcn.0103c2bd
xor esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x104b7cd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
je 0x104b7db
push dword [ebp - 0x10]
call fcn.010213d8
pop ecx
cmp dword [ebp - 0xc], edi
je 0x104b7e9
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104f22d
Capabilities:
Check mutex on windows
Create directory
Get file attributes

Disassembly:
push 0x34
push 0x1060398
call fcn.01022fdc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x44]
call fcn.0104ef10
cmp eax, ebx
jne 0x104f368
push 0x1013990
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x104f27f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea esi, [ebp - 0x44]
call fcn.01051d3f
mov eax, edi
jmp 0x104f368
lea esi, [ebp - 0x44]
call fcn.01051d3f
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x104f2ae
cmp eax, 0x80
je 0x104f2ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x104f350
xor edi, edi
inc edi
mov dword [ebp - 0x24], edi
cmp dword [0x1065908], ebx
je 0x104f2c4
mov dword [ebp - 0x1c], ebx
jmp 0x104f350
push 0x104
mov esi, 0x1065700
push esi
call fcn.0104f16a
test eax, eax
je 0x104f2e1
mov dword [ebp - 0x1c], 0x6e
jmp 0x104f350
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x104f2fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x104f350
mov dword [ebp - 0x1c], ebx
mov dword [0x1065908], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test ax, 0x800
jne 0x104f350
push ebx
push 0x2000000
push 3
push ebx
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x104f350
mov dword [ebp - 0x28], edi
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x28]
push eax
push 0x9c040
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.0104f370
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.01023021
ret
Function at 0x104f8f1
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1059808
call fcn.01022092
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.01016a0f
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
call fcn.01036ec9
mov bl, al
neg bl
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010151a6
test bl, bl
je 0x104f936
push 0x52
pop eax
jmp 0x104f9ba
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104f988
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.01016a0f
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
call fcn.010369b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
jmp 0x104f92e
cmp dword [ebp - 0x1c], 1
jne 0x104f9af
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push esi
push 0x1013a70
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.0102217e
ret 8
Function at 0x104fcd4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1013bdc
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x104fd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1013ba8
push 3
mov ebx, eax
call fcn.0103aac4
pop ecx
pop ecx
jmp 0x104fd79
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1013b90
push eax
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x104fd71
push 0x1013b78
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x104fd71
push 0x1013b60
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x104fd71
push 0x1013b50
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x104fd71
push 0x1013b38
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x104fd71
push 0x1013b30
push dword [esi + 0xc]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x104fd8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x104fd8b
push 0x1013aa8
push 3
call fcn.0103aac4
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x104ffcf
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0
mov eax, 0x105985b
call fcn.01022092
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0103ea35
push 0x20006
mov ecx, esi
call fcn.0104ac41
test eax, eax
jne 0x105000f
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], ebx
jne 0x1050027
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
jmp 0x1050059
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call fcn.01035a81
mov edi, eax
test edi, edi
je 0x1050059
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push 7
push 0
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov ebx, eax
call fcn.010213d8
pop ecx
mov ecx, esi
call fcn.0103ea35
xor eax, eax
test ebx, ebx
sete al
mov esi, eax
jmp 0x104fff9
Function at 0x1050937
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1056548
call fcn.01022092
mov edi, ecx
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
push 0x20019
call fcn.0104ac41
test eax, eax
jne 0x105097e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
xor eax, eax
call fcn.0102217e
ret 8
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push dword [edi + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, esi
je 0x10509bf
cmp eax, 2
je 0x10509ba
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
jmp 0x1050976
xor esi, esi
inc esi
jmp 0x10509aa
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov dword [ebp - 0x14], eax
call fcn.010542e0
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x105099f
push dword [ebp - 0x14]
push esi
push ebx
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push esi
push esi
push dword [ebp + 8]
push dword [eax + 0x18]
call edi
test eax, eax
push ebx
je 0x1050a01
call fcn.010213d8
pop ecx
jmp 0x105099f
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0103c2bd
push ebx
call fcn.010213d8
cmp dword [edi + 8], esi
pop ecx
jne 0x10509ba
jmp 0x105099f

Function at 0x1051e6b
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1051eac
xor eax, eax
inc eax
jmp 0x1051f3c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1051f0d
push 0x1005f7c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010150a7
test eax, eax
jl 0x1051f0d
push 0x1013fe8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010150a7
test eax, eax
jl 0x1051f0d
lea eax, [ebp - 0x210]
push eax
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call fcn.010150e8
test eax, eax
jge 0x1051f12
xor eax, eax
inc eax
jmp 0x1051f3b
mov eax, dword [ebp - 0x210]
inc eax
test edi, edi
je 0x1051f3b
cmp dword [ebp + 0xc], eax
jb 0x1051f3b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0101506d
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102177f
leave
ret 8
Function at 0x1051f53
Capabilities:
Check mutex on windows
Create directory

Disassembly:
push 0x38
push 0x1060938
call fcn.01022fdc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [0x1065b58], ebx
je 0x1051f8e
mov dword [ebp - 0x1c], ebx
jmp 0x105207b
lea ecx, [ebp - 0x48]
call fcn.0104ef10
cmp eax, ebx
jne 0x105207e
push 0x1013fa8
push ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1051fcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea esi, [ebp - 0x48]
call fcn.01051d3f
mov eax, edi
jmp 0x105207e
lea esi, [ebp - 0x48]
call fcn.01051d3f
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x1051ff8
cmp eax, 0x80
je 0x1051ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x1052066
xor edi, edi
inc edi
mov dword [ebp - 0x24], edi
cmp dword [0x1065b58], ebx
je 0x105200b
mov dword [ebp - 0x1c], ebx
jmp 0x1052066
push 0x104
mov esi, 0x1065950
push esi
call fcn.01051e6b
test eax, eax
je 0x1052028
mov dword [ebp - 0x1c], 0x6e
jmp 0x1052066
lea eax, [ebp - 0x30]
push eax
call fcn.01051dc3
cmp eax, ebx
jne 0x1051ff3
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1052054
cmp eax, 0xb7
jne 0x105205d
mov dword [ebp - 0x1c], ebx
mov dword [0x1065b58], edi
lea eax, [ebp - 0x30]
push eax
call fcn.01051d97
mov dword [ebp - 4], 0xfffffffe
call fcn.01052086
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.01023021
ret

Function at 0x1052145
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
je 0x1052198
push dword [ebp + 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x1052184
xor eax, eax
jmp 0x10521a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x10521a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10