Function at 0x10005f41
Capabilities:
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa4
mov eax, dword [0x1001e248]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
call dword [0x1001e040]
xor esi, esi
cmp edi, esi
mov dword [ebp + 0x34], eax
jne 0x10005f70
mov dword [ebp + 0x30], esi
jmp 0x10005f98
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.10018600
mov eax, esp
push dword [ebp + 0x34]
push ebx
push edi
push eax
call fcn.10001313
mov dword [ebp + 0x30], eax
push 1
push dword [0x1001e34c]
lea ecx, [ebp + 0x34]
push dword [ebp + 0x30]
call fcn.10005e9b
test eax, eax
jne 0x100063d6
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust_ProvidersSoftware_Publishing
mov ebx, SysReAllocStringLen
push ebx
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x2c], esi
call fcn.1000178c
test eax, eax
je 0x10005fe9
push esi
push esi
push 0x2001f
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionWinTrustTrust_ProvidersSoftware_Publishing
push ebx
lea ecx, [ebp + 0x2c]
call fcn.1000173e
cmp dword [ebp + 0x2c], esi
je 0x10006030
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x34]
push eax
push esi
push esi
mov ebx, str.State
push ebx
push dword [ebp + 0x2c]
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0x34], esi
jne 0x10006030
push 4
lea eax, [ebp + 0x28]
push eax
push 4
push esi
push ebx
push dword [ebp + 0x2c]
mov dword [ebp + 0x28], 0x20000
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x10
pop ebx
push ebx
lea eax, [ebp]
push esi
push eax
call fcn.10018640
or dword [ebp + 8], 0xffffffff
push 0x30
lea eax, [ebp - 0x30]
push esi
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], edi
call fcn.10018640
lea eax, [ebp]
add esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0x1001a9f8
push esi
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 8], ebx
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
jge 0x100060c9
or dword [ebp + 0x1c], 0xffffffff
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x10]
push eax
push 0x1001a9e8
push esi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], str.tS
call sub.WINTRUST.dll_WinVerifyTrust
cmp eax, esi
jge 0x100060c9
push eax
push 0x3ed
call fcn.100035ec
pop ecx
pop ecx
mov esi, eax
jmp 0x10006415
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x30], ebx
jne 0x100060f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
jmp 0x100060c2
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push esi
push ebx
call edi
push esi
lea eax, [ebp + 0x38]
push eax
push 0x34
lea eax, [ebp + 0x3c]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x38], esi
call ebx
cmp dword [ebp + 0x38], 0x34
jne 0x10006421
cmp dword [ebp + 0x3c], 0x4643534d
jne 0x10006421
test byte [ebp + 0x5a], 4
je 0x10006421
cmp word [ebp + 0x66], 0x10
jne 0x10006421
push dword [ebp + 0x6c]
call fcn.10017e87
cmp eax, esi
pop ecx
mov dword [ebp + 0x28], eax
jne 0x1000615f
mov esi, 0x8007000e
jmp 0x1000640c
push esi
push esi
push dword [ebp + 0x68]
push dword [ebp + 0x30]
call edi
push esi
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x38], esi
push dword [ebp + 0x28]
push dword [ebp + 0x30]
call ebx
mov eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x6c]
je 0x10006196
push 0x3ea
call fcn.100035ec
pop ecx
mov esi, eax
jmp 0x10006403
mov ebx, dword [ebp + 0x28]
push 0x10
pop edi
push edi
push 0x1001a9c8
push eax
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a9b8
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a9a8
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a998
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a988
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a978
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a968
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push edi
push 0x1001a958
push dword [ebp + 0x38]
push ebx
call fcn.100013ee
test al, al
jne 0x100063be
push esi
push esi
push esi
push esi
push esi
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToDecode]
mov edi, eax
cmp edi, esi
mov dword [ebp + 0x34], edi
jne 0x1000627c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
jmp 0x1000618f
push 1
push dword [ebp + 0x6c]
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x100062d7
mov ebx, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
lea eax, [ebp + 0x24]
push eax
push esi
push esi
push 7
push edi
mov dword [ebp + 0x24], esi
call ebx
mov eax, dword [ebp + 0x24]
cmp eax, esi
jne 0x100062b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
jmp 0x100063f8
add eax, 3
and eax, 0xfffffffc
call fcn.10018600
mov edi, esp
lea eax, [ebp + 0x24]
push eax
push edi
push esi
push 7
push dword [ebp + 0x34]
call ebx
test eax, eax
jne 0x100062e1
call fcn.10001a95
jmp 0x100063f8
push 0x10
pop esi
cmp dword [edi + 4], esi
jne 0x100063ed
push esi
push 0x1001a948
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a938
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a928
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a918
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a908
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a8f8
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a8e8
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push 0x1001a8d8
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
je 0x100063b2
push esi
push str.O_j_k
push dword [edi + 8]
call fcn.100186a0
add esp, 0xc
test eax, eax
jne 0x100063ed
push dword [ebp + 0x34]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov ebx, dword [ebp + 0x28]
push ebx
call fcn.10017e8c
pop ecx
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x2c]
call fcn.10001727
xor eax, eax
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.10018081
add ebp, 0x74
leave
ret
push 0x3ee
call fcn.100035ec
pop ecx
push dword [ebp + 0x34]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
push dword [ebp + 0x28]
call fcn.10017e8c
pop ecx
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x2c]
call fcn.10001727
mov eax, esi
jmp 0x100063d8
push 0x3ea
call fcn.100035ec
mov esi, eax
jmp 0x1000640b