Function at 0x100140a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xfdc
push ebx
mov ebx, dword [esp + 0xfe8]
mov edx, ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x24], 0
push edi
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], 0
call fcn.1000a910
add esp, 4
mov word [esp + 0x24], 0x1ff
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebx]
lea eax, [eax + ecx*2]
mov dword [esp + 0x44], eax
test edi, edi
jle 0x10014132
lea ebx, [edi + edi]
lea eax, [ebx + 0x20]
mov dword [esp + 0x20], eax
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10014110
add esi, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x10014132
push ebx
push dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x24], edi
push esi
mov word [ebx + esi], ax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10014149
mov esi, 0x1005bdb0
mov dword [esp + 0x20], 0
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov bl, 1
test edi, edi
je 0x1001442b
push ecx
lea edx, [ebp + 0x1268]
lea ecx, [esp + 0x1c]
call fcn.1000ac10
add esp, 4
test al, al
je 0x1001416f
jmp 0x1001442d
push ecx
lea edx, [ebp + 0x1278]
lea ecx, [esp + 0x1c]
call fcn.1000ac10
add esp, 4
test al, al
jne 0x1001442b
push ecx
lea edx, [ebp + 0x1288]
lea ecx, [esp + 0x1c]
call fcn.1000ac10
add esp, 4
test al, al
jne 0x1001442b
push ecx
lea edx, [ebp + 0x12b8]
lea ecx, [esp + 0x1c]
call fcn.1000ac10
mov bh, al
add esp, 4
test bh, bh
jne 0x100141ca
cmp byte [ebp + 0x117a], al
je 0x1001442b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x28]
push 0
push eax
push 0
push 4
push 0
push 0
push 0
push str.SOFTWAREDownloadManagerIDMBI
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x1001442b
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [esp + 0x48]
call ebp
test eax, eax
jne 0x1001442b
mov edx, dword [esp + 0xff4]
lea ecx, [esp + 0x34]
call fcn.10006400
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10014277
test edi, edi
jle 0x10014269
lea ecx, [edi + edi]
lea eax, [ecx + 2]
cmp dword [esp + 0x3c], eax
jae 0x10014250
push eax
lea ecx, [esp + 0x38]
call fcn.100049c0
test eax, eax
je 0x10014269
lea ecx, [edi + edi]
mov ebp, dword [esp + 0x34]
xor eax, eax
push ecx
push esi
push ebp
mov word [ecx + ebp], ax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, edi
jmp 0x1001427b
mov ebp, dword [esp + 0x34]
xor eax, eax
xor ecx, ecx
mov word [ebp], cx
jmp 0x1001427b
mov ebp, dword [esp + 0x34]
lea eax, [eax*2 + 2]
push eax
push ebp
push 1
push 0
push 0x100561ac
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test bh, bh
jne 0x1001434c
mov ecx, dword [esp + 0xff0]
cmp dword [ecx + 0xc], 0
je 0x100142b1
add ecx, 8
jmp 0x100142bc
mov eax, dword [ecx + 4]
add ecx, 0x54
mov eax, dword [eax + 8]
add ecx, eax
movzx eax, byte [ecx + 0xc]
push ecx
push eax
push dword [ecx + 4]
mov dword [esp + 0x24], 0x1005bdb0
push dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0xff
call fcn.10004a20
mov ecx, 0x4000002
call fcn.100052c0
push ebp
push dword [esp + 0x1c]
push esi
push ebp
push eax
lea eax, [esp + 0x5c]
push 0x7d0
push eax
call fcn.1000f480
add esp, 0x1c
lea eax, [esp + 0x48]
push 0x50024
push 0x100561b8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
sete bl
cmp eax, 0x1005bdb0
je 0x1001434c
add eax, 0xfffffffc
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 4
movzx eax, bl
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 4
push 0
push 0x100561ec
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [esp + 0x30]
movzx eax, bl
add ebp, 0x1268
xor eax, 1
shl eax, 4
add ebp, eax
mov eax, dword [ebp + 4]
test eax, eax
je 0x100143c0
lea eax, [eax*2 + 4]
cmp dword [ebp + 8], eax
jae 0x100143a1
push eax
mov ecx, ebp
call fcn.100049c0
test eax, eax
je 0x100143c0
mov ecx, dword [ebp + 4]
mov edx, 0x7c
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
inc ecx
xor edx, edx
mov dword [ebp + 4], ecx
mov word [eax + ecx*2], dx
test edi, edi
jle 0x10014404
mov eax, dword [ebp + 4]
add eax, edi
lea eax, [eax*2 + 2]
cmp dword [ebp + 8], eax
jae 0x100143e1
push eax
mov ecx, ebp
call fcn.100049c0
test eax, eax
je 0x10014404
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
lea edx, [eax + ecx*2]
lea eax, [edi + ecx]
xor ecx, ecx
mov dword [ebp + 4], eax
lea eax, [edi + edi]
push eax
push esi
push edx
mov word [eax + edx], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x30]
push 1
call fcn.10013f10
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x1005bdb0
je 0x10014433
add eax, 0xfffffffc
push eax
call ebp
add esp, 4
jmp 0x10014433
xor bl, bl
mov ebp, dword [sym.imp.msvcrt.dll_free]
cmp esi, 0x1005bdb0
je 0x10014444
lea eax, [esi - 4]
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10014455
push eax
call esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10014460
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xfdc
ret 8