Function at 0x401d50
Capabilities:
Enumerate process modules
Get common file path
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43455b
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4444b0]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push esi
push edi
mov eax, dword [0x4444b0]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
push ebx
push ebx
mov esi, eax
mov eax, dword [edi + 0x1e8]
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [eax*4 + 0x445988]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401df1
mov ecx, dword [esp + 0x24]
push 0x104
lea eax, [esp + 0x240]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x23c]
lea edx, [eax + 1]
jmp 0x401e00
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401e00
sub eax, edx
add eax, 0xffffffff
cmp eax, ebx
jl 0x401e31
mov cl, byte [esp + eax + 0x23c]
cmp cl, 0x5c
je 0x401e2a
cmp cl, 0x2f
je 0x401e2a
sub eax, 1
jns 0x401e12
jmp 0x401e31
mov byte [esp + eax + 0x23c], bl
lea edx, [esp + 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 0x14], SysStringLen
push ebx
push ebx
mov dword [esp + 0x360], ebx
mov eax, dword [edi + 0x98]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
je 0x40259d
lea ecx, [esp + 0x134]
push ecx
push 0xfc
call edi
lea eax, [esp + 0x134]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x401e90
mov edx, dword [str.kgb.ico]
mov ecx, dword [0x43aaa8]
mov dword [eax], edx
mov dl, byte [0x43aaac]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x2c]
push eax
push 0xe6
call edi
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x401ec7
mov ecx, 7
mov esi, str.kgb_arch_decompress.exe___1_
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..kgb
push SysReAllocString
movsw word es:[edi], word [esi]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401f1d
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..kgb
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x401f7e
mov esi, dword [esp + 0x10]
push str.kgb_arch
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push str.kgb_arch
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x401f78
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x401fbc
cmp esi, ebx
je 0x401fb4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.DefaultIcon
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x402019
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x138]
push edx
push 1
push ebx
push ebx
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402015
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_shellopen
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x402053
cmp esi, ebx
je 0x40204b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x4020a4
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [esp + 0x30]
push eax
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x4020a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xec]
push ebx
push ebx
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402200
lea eax, [esp + 0x2c]
push eax
push 0xe4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
jmp 0x4020e0
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x4020e0
mov ecx, 8
mov esi, str.kgb_arch_decompress.exe__s__1_
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_shelldecompress_here
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402138
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402130
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edi, 0x6a
call fcn.004013d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_shelldecompress_here
push SysReAllocString
mov esi, eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4021a7
cmp esi, ebx
mov edi, dword [esp + 0x10]
jne 0x402181
push 0x80004005
call fcn.00403390
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x4021a7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402200
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x30]
push edx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402200
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402217
mov ecx, 7
mov esi, str.kgb_arch_decompress.exe___1_
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x134]
push ecx
push 0xfc
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x134]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x402250
mov edx, dword [str.kge.ico]
mov ecx, dword [0x43ab50]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [eax], edx
mov dl, byte [0x43ab54]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..kge
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x4022b8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4022b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..kge
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x402313
mov esi, dword [esp + 0x10]
push str.kgb_arch_enc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push str.kgb_arch_enc
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x40230d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_enc
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x402351
cmp esi, ebx
je 0x402349
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.DefaultIcon
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x4023ae
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [esp + 0x138]
push ecx
push 1
push ebx
push ebx
mov edx, esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x4023aa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_enc_shellopen
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x4023e8
cmp esi, ebx
je 0x4023e0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x402439
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x30]
push edx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402439
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xec]
push ebx
push ebx
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40261f
lea edx, [esp + 0x2c]
push edx
push 0xe4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402470
mov ecx, 8
mov esi, str.kgb_arch_decompress.exe__s__1_
lea eax, [esp + 0x18]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_enc_shelldecompress_here
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4024c8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4024c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edi, 0x6a
call fcn.004013d0
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_enc_shelldecompress_here
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402537
cmp esi, ebx
mov edi, dword [esp + 0x10]
jne 0x402511
push 0x80004005
call fcn.00403390
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
push 1
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x402537
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40261f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x40261f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40261f
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push 0x43b030
push SysReAllocString
mov dword [esp + 0x24], ebx
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4025d1
push SysReAllocString
call edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push str.kgb_arch
lea ecx, [esp + 0x18]
call fcn.00401480
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push 0x43b030
push SysReAllocString
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x402611
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402609
push eax
call edi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
push str.kgb_arch_enc
lea ecx, [esp + 0x18]
call fcn.00401480
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x194]
push ebx
push ebx
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4029d2
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x134]
push edx
push 0xfc
call esi
lea eax, [esp + 0x134]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x402660
mov ecx, dword [str.zip.ico]
mov edx, dword [0x43abb0]
mov dword [eax], ecx
mov cl, byte [0x43abb4]
mov dword [eax + 4], edx
lea edx, [esp + 0x2c]
push edx
push 0xe6
mov byte [eax + 8], cl
call esi
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402697
mov ecx, 7
mov esi, str.kgb_arch_decompress.exe___1_
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..zip
push SysReAllocString
movsw word es:[edi], word [esi]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4026f1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4026e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str..zip
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x402752
mov esi, dword [esp + 0x10]
push str.kgb_arch_zip
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push str.kgb_arch_zip
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x40274c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_zip
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x402790
cmp esi, ebx
je 0x402788
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.DefaultIcon
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x4027ed
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [esp + 0x138]
push ecx
push 1
push ebx
push ebx
mov edx, esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x4027e9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_zip_shellopen
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x402827
cmp esi, ebx
je 0x40281f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push esi
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x402878
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x30]
push edx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402878
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xec]
push ebx
push ebx
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402a1a
lea edx, [esp + 0x2c]
push edx
push 0xe4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x4028b0
mov ecx, 8
mov esi, str.kgb_arch_decompress.exe__s__1_
lea eax, [esp + 0x18]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_zip_shelldecompress_here
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402908
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402900
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edi, 0x6a
call fcn.004013d0
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.kgb_arch_zip_shelldecompress_here
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402977
cmp esi, ebx
mov edi, dword [esp + 0x10]
jne 0x402951
push 0x80004005
call fcn.00403390
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
push 1
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x402977
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402a1a
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402a1a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a1a
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push 0x43b030
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a0c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402a04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push str.kgb_arch_zip
lea ecx, [esp + 0x18]
call fcn.00401480
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xec]
push ebx
push ebx
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402cc4
lea eax, [esp + 0x2c]
push eax
push 0xe8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402a51
mov ecx, 7
mov esi, 0x43ac0c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str._shellcompress
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402aa9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402aa1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edi, 0x66
call fcn.004013d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str._shellcompress
push SysReAllocString
mov esi, eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402b18
cmp esi, ebx
mov edi, dword [esp + 0x10]
jne 0x402af2
push 0x80004005
call fcn.00403390
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x402b18
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402b71
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x30]
push edx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
je 0x402b71
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
push 0xe8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x2c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x402b88
mov ecx, 7
mov esi, str.kgb_arch_compress.exe___1_
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.Directory_shellcompress
push SysReAllocString
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402be3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402bd9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x402be7
mov esi, dword [esp + 0x14]
mov edi, 0x66
call fcn.004013d0
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.Directory_shellcompress
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402c60
cmp edi, ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
jne 0x402c34
push 0x80004005
call fcn.00403390
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x18], ebx
je 0x402c60
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.command
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402e14
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [esp + 0x30]
push edx
push 1
push ebx
push ebx
mov eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x402e14
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e14
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebx
push str._shell
push SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402d02
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402cfa
push eax
call edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
push str.compress
lea ecx, [esp + 0x18]
call fcn.00401480
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push str.Directory_shell
push SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x402d42
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402d3a
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
push str.compress
lea ecx, [esp + 0x18]
call fcn.00401480
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push str.kgb_arch_shell
push SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x402d82
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402d7a
push eax
call edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
push str.decompress_here
lea ecx, [esp + 0x18]
call fcn.00401480
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebx
push str.kgb_arch_enc_shell
push SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x402dc2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402dba
push eax
call edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
push str.decompress_here
lea ecx, [esp + 0x18]
call fcn.00401480
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push str.kgb_arch_zip_shell
push SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x402e02
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402dfa
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
push str.decompress_here
lea ecx, [esp + 0x18]
call fcn.00401480
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x43a800
push SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402e52
cmp esi, ebx
je 0x402e4a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x140]
push ebx
push ebx
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push ebx
push str.check_for_updates
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x43a800
push SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ec2
cmp esi, ebx
je 0x402eba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov edx, dword [edi + 0x240]
push ebx
push ebx
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push ebx
push str.show_stats
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [edi + 0x1e8]
push ebx
push ebx
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [eax*4 + 0x445988]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push ebx
push str.lang
push esi
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push ebx
push ebx
push 0x8000000
call dword [0x445a18]
push 1
mov ecx, edi
call fcn.0040649f
cmp esi, ebx
je 0x402f47
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0041f8f1
mov esp, ebp
pop ebp
ret