Function at 0x1067c8b
Capabilities:
Create thread
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x30]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x28]
xor ebx, ebx
push 0x10000
push 0x20000
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
call fcn.0106dfca
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x1067d04
push 0x1022378
call fcn.01071aad
jmp 0x1068450
push ebx
push 0x7fffffff
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [ebp - 0xc8], eax
je 0x1067dd5
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xe4]
push eax
push ebx
lea eax, [ebp - 0xe0]
push eax
push 0x1066ca3
mov dword [ebp - 0xc4], edi
mov edi, dword [ebp + 0xc]
push ebx
push ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp - 0x80], eax
jne 0x1067de2
push 0x1022340
call fcn.01071aad
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call fcn.0106e0b0
jmp 0x1068450
mov eax, dword [esi]
cmp eax, ebx
jne 0x1067e83
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1022304
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1067e7c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x10222f0
push dword [ebp - 0x2c]
mov dword [ebp - 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0x28], 0xfffffff0
cmp eax, ebx
jne 0x1067e50
cmp dword [ebp - 0x38], 4
jne 0x1067e50
cmp dword [ebp - 0x28], ebx
je 0x1067e50
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
jmp 0x1067e71
call fcn.01066099
push 4
mov dword [esi], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push ebx
push 0x10222f0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1067e90
call fcn.01066099
jmp 0x1067e8e
mov ecx, eax
and ecx, 7
cmp cl, 7
je 0x1067e90
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 0x30]
shl edi, 2
mov edx, edi
mov dword [ebp - 0x54], ebx
call fcn.0106e037
cmp eax, ebx
mov dword [ebp - 0x88], eax
jne 0x1067eb1
push 0x10222b4
jmp 0x1067f18
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.0106e037
cmp eax, ebx
mov dword [ebp - 0x90], eax
jne 0x1067ecc
push 0x1022278
jmp 0x1067f18
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.0106e037
cmp eax, ebx
mov dword [ebp - 0x8c], eax
jne 0x1067ee7
push 0x102223c
jmp 0x1067f18
mov ecx, dword [ebp - 0x30]
mov edx, edi
call fcn.0106e037
cmp eax, ebx
mov dword [ebp - 0x38], eax
jne 0x1067eff
push 0x10221fc
jmp 0x1067f18
mov ecx, dword [ebp - 0x30]
mov edx, 0xfde8
call fcn.0106e037
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x1067f22
push 0x10221c0
call fcn.01071aad
jmp 0x10683f8
push dword [esi]
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push 0x10221b0
push dword [ebp - 0x28]
call edi
mov esi, eax
add esi, dword [ebp - 0x28]
push 0x10221a4
push esi
call edi
push dword [ebp + 0xc]
add esi, eax
push 0x1022194
push esi
mov dword [ebp - 0x34], esi
call edi
add esi, eax
add esp, 0x20
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], ebx
jbe 0x1068025
mov eax, dword [ebp - 0x74]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test byte [eax + 0x13], 8
jne 0x1068006
mov eax, esi
sub eax, dword [ebp - 0x28]
cmp eax, 0xfce4
jg 0x106801b
mov eax, dword [ebp - 0x24]
push dword [eax - 0x10]
push 0x100bc20
push esi
call edi
add esi, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add esp, 0xc
test byte [eax + 0x13], 2
jne 0x1067fdf
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x3c], ebx
jmp 0x1067fd8
cmp dword [ebp - 0x3c], 0x20
jge 0x1067fdf
mov eax, dword [ebp - 0x44]
push dword [eax + 0x50]
push 0x1022190
push esi
call edi
add esi, eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
add esp, 0xc
inc dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x1067fb6
push 0x100ab5c
push esi
call edi
mov edx, dword [ebp - 0x48]
add esi, eax
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
mov dword [ecx + edx*4], eax
mov eax, esi
sub eax, dword [ebp - 0x28]
cmp eax, 0x9470
jg 0x1068025
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x24], 0x18
cmp eax, dword [ebp + 0xc]
jb 0x1067f71
jmp 0x1068025
push 0x1022150
call fcn.01071aad
push dword [ebp - 0x48]
push 0x1022140
push dword [ebp - 0x34]
call edi
mov ecx, dword [ebp - 0x34]
add esp, 0xc
cmp dword [ebp - 0x48], ebx
mov byte [eax + ecx], 0xa
jne 0x1068052
push 0x1022110
call fcn.01071aad
push 0x12
jmp 0x10683ea
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
jbe 0x106806d
mov eax, dword [ebp - 0x74]
add eax, 0x10
mov edx, dword [eax]
mov dword [edx + 0x5c], ecx
inc ecx
add eax, 0x18
cmp ecx, dword [ebp + 0xc]
jb 0x106805f
mov eax, esi
sub eax, dword [ebp - 0x28]
cmp eax, 0xfce4
jle 0x106808a
push 0x10220d0
call fcn.01071aad
push 0x7a
jmp 0x10683ea
push dword [ebp - 0x7c]
mov byte [esi], 0xa
inc esi
mov byte [esi], bl
sub esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], esi
call dword [sym.imp.msvcrt.dll__mbslwr]
mov eax, dword [0x10c65c8]
cmp eax, ebx
pop ecx
je 0x10680cf
push ebx
lea ecx, [ebp - 0x40]
push ecx
push esi
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
push ebx
lea eax, [ebp - 0x40]
push eax
push 0xa
push 0x10220c4
push dword [0x10c65c8]
call esi
call fcn.01065d14
test eax, eax
jne 0x10680ec
push 0x1022088
call fcn.01071aad
push 0xf026
jmp 0x10683ea
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], ebx
je 0x10681b9
push dword [ebp - 0x64]
mov esi, dword [ebp - 0x2c]
add esi, 4
push esi
push ebx
push dword [ebp - 0x60]
call fcn.01066039
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x106816e
push dword [ebp + 0x38]
lea eax, [ebp - 0x4c]
push dword [ebp + 0x34]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push esi
push dword [ebp - 0x6c]
call fcn.01066288
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x106815f
push dword [ebp - 0x64]
push esi
push 1
push dword [ebp - 0x60]
call fcn.01066039
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x1068183
cmp dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
je 0x10680f5
jmp 0x10681b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102204c
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x10681b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x102204c
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 0x4c]
call dword [0x10bd184]
push dword [ebp - 0x58]
call dword [0x10bd184]
push dword [ebp - 0x5c]
call dword [0x10bd184]
push esi
call fcn.01037f35
cmp dword [ebp - 0x24], ebx
je 0x10683f8
call fcn.01040cef
test eax, eax
jne 0x10683f8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x58]
mov esi, 0x400
push esi
push dword [0x10f6820]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x98], eax
push eax
jmp 0x10682df
cmp dword [ebp - 0x24], ebx
je 0x10682f7
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x106831d
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x70]
push ecx
add dword [0x10bd194], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xe0]
push dword [ebp - 0x88]
push ecx
push dword [ebp - 0x50]
push dword [ebp - 0x30]
push eax
push dword [0x10f6820]
call fcn.010666c7
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x106830c
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x64]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb0]
push eax
push 2
push dword [ebp - 0x60]
call fcn.01066039
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x1068313
cmp dword [ebp - 0x3c], ebx
je 0x106831d
lea eax, [ebp - 0x40]
push eax
push esi
push dword [0x10f6820]
push dword [ebp - 0x4c]
call dword [0x10bd174]
mov dword [ebp - 0x24], eax
call fcn.01040cef
test eax, eax
je 0x1068233
jmp 0x106831d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1022008
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106831d
push 0x1021fc8
jmp 0x1068318
push 0x1021f80
call fcn.01071aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x34]
cmp esi, ebx
mov dword [ebp - 0x38], eax
je 0x106834a
cmp esi, 0xffffffff
je 0x106834a
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x10683a7
mov eax, dword [0x10bd18c]
mov ecx, eax
sub ecx, dword [0x10bd188]
mov dword [ebp - 0x50], ecx
jns 0x1068364
mov dword [ebp - 0x50], ebx
sub eax, dword [0x10bd198]
jns 0x106836e
xor eax, eax
cdq
mov ecx, 0x3e8
mov esi, ecx
idiv esi
push eax
mov eax, dword [ebp - 0x50]
cdq
idiv ecx
push eax
push 0x1021f74
push dword [0x10f6820]
call edi
add esp, 0x10
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [0x10f6820]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x4c]
call dword [0x10bd178]
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10683d3
push dword [ebp - 0x4c]
call dword [0x10bd184]
push dword [ebp - 0x58]
call dword [0x10bd184]
push dword [ebp - 0x5c]
call dword [0x10bd184]
cmp dword [ebp - 0x24], ebx
jne 0x10683f1
push dword [ebp - 0x38]
push 0x1021f44
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 0x38]
call fcn.01037f35
jmp 0x10683f8
mov dword [ebp - 0x54], 1
push ebx
push 0x270f
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xffffffffffffffff
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call fcn.0106e0b0
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x1068452
cmp dword [ebp - 0x84], ebx
je 0x1068452
push dword [ebp - 0x84]
call fcn.01037f35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x34