Function at 0x39ea6321
Capabilities:
Copy file
Create directory
Query or enumerate registry value

Disassembly:
push 0xcec
mov eax, 0x39ebf296
call fcn.39eaecb8
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0xc94], ecx
mov dword [ebp - 0xc98], edi
mov byte [ebp - 0x114], bl
call fcn.39e6fce0
add esp, 0xc
call fcn.39eb4742
mov esi, dword [eax + 0x40]
mov dword [ebp - 0xc88], esi
cmp esi, ebx
je 0x39ea6387
push 0x39e0dff0
push esi
call fcn.39eb4742
push 0x39e0df88
push esi
call fcn.39eb4742
add esp, 0x10
lea eax, [ebp - 0xc9c]
push eax
push 0x20019
push ebx
push 0x39e0df50
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x39ea6492
lea eax, [ebp - 0xca4]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x39e0df48
push dword [ebp - 0xc9c]
mov dword [ebp - 0xca4], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc9c]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, ebx
jne 0x39ea6492
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xc84]
call fcn.39eb4742
mov dword [ebp - 4], ebx
push dword [ebp - 0xc84]
mov ecx, edi
call fcn.39eb4742
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x39ea641c
mov eax, dword [esi]
jmp 0x39ea641e
mov eax, esi
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea6474
cmp dword [ebp - 0xc88], ebx
je 0x39ea644f
cmp dword [edi + 0x18], 8
jb 0x39ea643b
mov esi, dword [esi]
push esi
push 0x39e0dec8
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc80]
cmp dword [ebp - 0xc84], eax
je 0x39ea646d
push dword [ebp - 0xc84]
call fcn.39e6beaf
pop ecx
mov al, 1
jmp 0x39ea6bfb
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc80]
cmp dword [ebp - 0xc84], eax
je 0x39ea6492
push dword [ebp - 0xc84]
call fcn.39e6beaf
pop ecx
xor eax, eax
push 0x618
mov word [ebp - 0xb48], ax
lea eax, [ebp - 0xb46]
push ebx
push eax
call fcn.39e6fce0
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x52c], ax
lea eax, [ebp - 0x52a]
push ebx
push eax
call fcn.39e6fce0
xor eax, eax
push esi
mov word [ebp - 0x320], ax
lea eax, [ebp - 0x31e]
push ebx
push eax
call fcn.39e6fce0
add esp, 0x24
push 0x30c
lea eax, [ebp - 0xb48]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push ebx
push ebx
push ebx
push ebx
mov eax, 0x105
push eax
lea ecx, [ebp - 0x320]
push ecx
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0xb48]
push eax
call fcn.39eb4742
push ebx
push ebx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0xb48]
push 0x30d
push eax
call fcn.39eb4742
add esp, 0x3c
cmp dword [ebp - 0xc88], ebx
je 0x39ea6559
push 0x39e0de78
push dword [ebp - 0xc88]
call fcn.39eb4742
pop ecx
pop ecx
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xb64]
call fcn.39eb4742
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push dword [0x39ee90bc]
push eax
lea eax, [ebp - 0xb80]
push eax
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.39eb4742
mov byte [ebp - 4], 1
push ebx
push esi
lea ecx, [ebp - 0xb80]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0xb64]
call fcn.39eb4742
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0xc8c], eax
jb 0x39ea65c6
mov eax, dword [eax]
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea69b3
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov dword [ebp - 4], 3
push dword [0x39ee9084]
push eax
lea eax, [ebp - 0xcdc]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xc94]
add ecx, 0x24
push ecx
push eax
lea eax, [ebp - 0xcf8]
push eax
call fcn.39e56816
mov byte [ebp - 4], 5
push dword [0x39ee9084]
push eax
lea eax, [ebp - 0xb64]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 6
push dword [0x39ee90c0]
push eax
lea eax, [ebp - 0xb80]
push eax
call fcn.39e567c2
add esp, 0x30
mov byte [ebp - 4], 8
push ebx
push esi
lea ecx, [ebp - 0xb64]
call fcn.39eb4742
mov byte [ebp - 4], 9
push ebx
push esi
lea ecx, [ebp - 0xcf8]
call fcn.39eb4742
mov byte [ebp - 4], 0xa
push ebx
push esi
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0xb
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
cmp dword [ebp - 0xb68], 8
mov eax, dword [ebp - 0xb7c]
jae 0x39ea66a8
lea eax, [ebp - 0xb7c]
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea66f5
cmp dword [ebp - 0xc88], ebx
je 0x39ea66df
cmp dword [edi + 0x18], 8
mov eax, dword [ebp - 0xc8c]
jb 0x39ea66cb
mov eax, dword [eax]
push eax
push 0x39e0de08
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0xb80]
call fcn.39eb4742
jmp 0x39ea646d
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0xc
push dword [0x39ee9084]
push eax
lea eax, [ebp - 0xcc0]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 0xd
push dword [0x39ee90c0]
push eax
lea eax, [ebp - 0xb64]
push eax
call fcn.39e567c2
add esp, 0x18
mov byte [ebp - 4], 0xf
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov byte [ebp - 4], 0x10
push ebx
push esi
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
cmp dword [ebp - 0xb4c], 8
mov eax, dword [ebp - 0xb60]
jae 0x39ea676f
lea eax, [ebp - 0xb60]
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea6b0e
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xcf8]
call fcn.39eb4742
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xc94]
add ecx, 0x24
push ecx
push eax
lea eax, [ebp - 0xcdc]
push eax
call fcn.39e56816
mov byte [ebp - 4], 0x12
push dword [0x39ee9084]
push eax
lea eax, [ebp - 0xcc0]
push eax
call fcn.39e567c2
add esp, 0x18
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0xc94]
add edi, 0x40
push eax
mov ecx, edi
call fcn.39eb4742
mov byte [ebp - 4], 0x12
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov byte [ebp - 4], 0x11
push ebx
push esi
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0x10
push ebx
push esi
lea ecx, [ebp - 0xcf8]
call fcn.39eb4742
cmp dword [edi + 0x18], 8
jb 0x39ea681a
mov eax, dword [edi + 4]
jmp 0x39ea681d
lea eax, [edi + 4]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x39ea6adb
push dword [0x39ee90c0]
lea eax, [ebp - 0xcf8]
push edi
push eax
call fcn.39e567c2
add esp, 0xc
mov dword [ebp - 0xca0], eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0x15
push dword [0x39ee90c0]
push eax
lea eax, [ebp - 0xcc0]
push eax
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0xca0]
cmp dword [ecx + 0x18], 8
jb 0x39ea688e
mov ecx, dword [ecx + 4]
jmp 0x39ea6891
add ecx, 4
cmp dword [eax + 0x18], 8
jb 0x39ea689c
mov eax, dword [eax + 4]
jmp 0x39ea689f
add eax, 4
push ebx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0xc8d], al
mov byte [ebp - 4], 0x15
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov byte [ebp - 4], 0x14
push ebx
push esi
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0x10
push ebx
push esi
lea ecx, [ebp - 0xcf8]
call fcn.39eb4742
cmp byte [ebp - 0xc8d], bl
je 0x39ea6936
cmp dword [ebp - 0xc88], ebx
je 0x39ea6920
mov eax, dword [ebp - 0xc98]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp - 0xc8c]
jb 0x39ea690c
mov eax, dword [eax]
push eax
push 0x39e0de08
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
mov byte [ebp - 4], 0xb
push ebx
push esi
lea ecx, [ebp - 0xb64]
call fcn.39eb4742
jmp 0x39ea66df
cmp dword [ebp - 0xc88], ebx
je 0x39ea698b
push dword [0x39ee90c0]
lea eax, [ebp - 0xcc0]
push edi
push eax
call fcn.39e567c2
add esp, 0xc
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x18], 8
jb 0x39ea6963
mov eax, dword [eax + 4]
jmp 0x39ea6966
add eax, 4
push eax
push 0x39e0dd48
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
mov byte [ebp - 4], 0x10
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov edi, dword [ebp - 0xc98]
mov byte [ebp - 4], 0xb
push ebx
push esi
lea ecx, [ebp - 0xb64]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0xb80]
call fcn.39eb4742
push 0x30c
lea eax, [ebp - 0xb48]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push ebx
push ebx
push ebx
push ebx
mov eax, 0x105
push eax
lea ecx, [ebp - 0x320]
push ecx
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0xb48]
push eax
call fcn.39eb4742
push ebx
push ebx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0xb48]
push 0x30d
push eax
call fcn.39eb4742
push 0x39e0dce8
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0x44
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0xb80]
call fcn.39eb4742
mov dword [ebp - 4], 0x18
push 0x39e261e0
push eax
lea eax, [ebp - 0xcf8]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 0x19
push dword [0x39ee9084]
push eax
lea eax, [ebp - 0xcdc]
push eax
call fcn.39e567c2
mov byte [ebp - 4], 0x1a
push dword [0x39ee90bc]
push eax
lea eax, [ebp - 0xcc0]
push eax
call fcn.39e567c2
add esp, 0x24
mov byte [ebp - 4], 0x1b
push eax
mov ecx, edi
call fcn.39eb4742
mov byte [ebp - 4], 0x1a
push ebx
push esi
lea ecx, [ebp - 0xcc0]
call fcn.39eb4742
mov byte [ebp - 4], 0x19
push ebx
push esi
lea ecx, [ebp - 0xcdc]
call fcn.39eb4742
mov byte [ebp - 4], 0x18
push ebx
push esi
lea ecx, [ebp - 0xcf8]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0xb80]
call fcn.39eb4742
cmp dword [edi + 0x18], 8
mov esi, dword [ebp - 0xc8c]
jb 0x39ea6b48
mov eax, dword [esi]
jmp 0x39ea6b4e
cmp dword [ebp - 0xc88], ebx
je 0x39ea698b
cmp dword [edi + 0x18], 8
jb 0x39ea6af2
mov edi, dword [edi + 4]
jmp 0x39ea6af5
add edi, 4
push edi
push 0x39e0dc40
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
jmp 0x39ea698b
cmp dword [ebp - 0xc88], ebx
je 0x39ea6991
cmp dword [ebp - 0xb4c], 8
mov eax, dword [ebp - 0xb60]
jae 0x39ea6b2f
lea eax, [ebp - 0xb60]
push eax
push 0x39e0db88
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
jmp 0x39ea6991
mov eax, dword [ebp - 0xc8c]
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea6b88
cmp dword [ebp - 0xc88], ebx
je 0x39ea646d
cmp dword [edi + 0x18], 8
jb 0x39ea6b6f
mov esi, dword [esi]
push esi
push 0x39e0db00
push dword [ebp - 0xc88]
call fcn.39eb4742
add esp, 0xc
jmp 0x39ea646d
push 0x39e0da98
push dword [ebp - 0xc88]
call fcn.39eb4742
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc94]
push edi
call fcn.39ea52a5
test al, al
je 0x39ea6bdf
cmp dword [edi + 0x18], 8
jb 0x39ea6bb4
mov eax, dword [esi]
jmp 0x39ea6bb6
mov eax, esi
push ebx
push eax
call fcn.39eb4742
pop ecx
pop ecx
test eax, eax
jne 0x39ea6bdf
cmp dword [ebp - 0xc88], ebx
je 0x39ea646d
cmp dword [edi + 0x18], 8
jb 0x39ea6bd7
mov esi, dword [esi]
push esi
push 0x39e0da20
jmp 0x39ea6b75
cmp dword [ebp - 0xc88], ebx
je 0x39ea6bf9
push 0x39e0d9d8
push dword [ebp - 0xc88]
call fcn.39eb4742
pop ecx
pop ecx
xor al, al
call fcn.39eaed4a
ret 4