Function at 0x40edc0
Capabilities:
Delete registry value
Get session user name
Get system information on windows
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x4dc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x5c]
call section..text
xor esi, esi
xor ebx, ebx
push str.winmain
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], 4
mov dword [esp + 0x24], esi
xor ebp, ebp
call fcn.0040dff0
add esp, 4
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftIME
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ee63
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebp
push ebp
push str.NoUI
push eax
call edi
test eax, eax
jne 0x40ee58
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
jne 0x40ee58
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40eed9
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push str.UserName
push edx
call edi
test eax, eax
jne 0x40eec2
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
jne 0x40eeb2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push str.UserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f1dc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ef51
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x24]
push str.Migrated
push eax
call edi
test eax, eax
jne 0x40ef17
mov dword [esp + 0x10], 1
jmp 0x40ef42
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push str.Migrated
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
call fcn.004116f0
test eax, eax
je 0x40ef6e
lea ecx, [esp + 0x1f4]
push 0x1f4
push ecx
call fcn.00411980
jmp 0x40ef89
lea edx, [esp + 0x24]
lea eax, [esp + 0x1f4]
push edx
push eax
mov dword [esp + 0x2c], 0x1f4
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x3e8]
push str.SoftwareMicrosoftIMEJP8.1
push ecx
call edi
lea edx, [esp + 0x3e8]
push str.MigrateUser
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test ebx, ebx
jne 0x40efba
mov esi, 1
push ebx
push str.winmain___loop_fDone_d
call fcn.0040dff0
push esi
call fcn.0040e410
call fcn.0040ebd0
call fcn.0040ea80
push 1
push 0
call fcn.0040f5c0
push 0
push 1
mov ebx, eax
call fcn.0040f5c0
add esp, 0x1c
mov esi, eax
push esi
push str.winmain___RemoveZombieKL_fAnyZombieFound_d
call fcn.0040dff0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x40f031
push 0x80000001
call fcn.00402660
push str.imjp8.ime
mov edi, eax
call fcn.004023e0
add esp, 8
xor ecx, ecx
cmp edi, eax
sete cl
mov ebp, ecx
call fcn.0040f440
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x40f039
test ebp, ebp
je 0x40f07e
push str.imjp81.ime
call fcn.004023e0
add esp, 4
test eax, eax
je 0x40f07e
test ebx, ebx
jne 0x40f056
test ebp, ebp
jne 0x40f056
xor ecx, ecx
jmp 0x40f05b
mov ecx, 1
push ecx
push eax
push 0x80000001
call fcn.00402700
add esp, 0xc
test ebx, ebx
jne 0x40f076
test ebp, ebp
mov dword [esp + 0x20], ebx
je 0x40f07e
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
call fcn.00401150
cmp eax, 0xd
ja case.0x40f090.2
jmp dword [eax*4 + 0x40f408]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.0x40f090.2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push str.UserName
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40f090.2
call fcn.0040f8c0
jmp case.0x40f090.2
lea ecx, [esp + 0x5c]
call fcn.00401390
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push str._REINSTALL:
mov ebp, eax
call esi
cmp eax, ebp
jge case.0x40f090.2
mov dword [esp + 0x28], 1
jmp case.0x40f090.2
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x38], 0
jne case.0x40f090.2
lea ecx, [esp + 0x5c]
call fcn.00401150
cmp eax, 2
jne 0x40f180
lea ecx, [esp + 0x5c]
call fcn.00401390
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push str._OLDHKL:
mov ebp, eax
call esi
cmp eax, ebp
jg 0x40f18e
lea ecx, [esp + 0x5c]
call fcn.00401390
push str._OLDHKL:
mov ebp, eax
call esi
add ebp, eax
push ebp
push 0x432d74
call edi
jmp 0x40f18e
cmp eax, 8
je 0x40f18e
lea ecx, [esp + 0x5c]
call fcn.004013a0
mov eax, dword [esp + 0x28]
test eax, eax
jne case.0x40f090.2
test ebx, ebx
jne case.0x40f090.2
push 0x432d74
call fcn.0040fa70
add esp, 4
jmp case.0x40f090.2
test ebx, ebx
jne case.0x40f090.2
call fcn.00410100
mov dword [esp + 0x20], eax
jmp case.0x40f090.2
test ebx, ebx
jne case.0x40f090.2
call fcn.0040e330
jmp case.0x40f090.2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x40f2fb
lea ecx, [esp + 0x5c]
call fcn.00401150
cmp eax, 3
lea ecx, [esp + 0x5c]
jne 0x40f284
call fcn.00401390
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push str._PCode:
mov ebp, eax
call esi
cmp eax, ebp
jg 0x40f289
lea ecx, [esp + 0x5c]
call fcn.00401390
push str._PCode:
mov ebp, eax
call esi
add ebp, eax
push ebp
push 0x4326ac
call edi
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x204]
push 0x432c9c
push ecx
push 0x4326ac
mov dword [0x432c9c], 0x1f4
call sub.Msi.dll_MsiInstallMissingFileA
push 0x63
push 0x432ca0
lea edx, [esp + 0x1fc]
push 0xffffffffffffffff
push edx
push 1
push 0x3a4
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x40f289
call fcn.004013a0
mov eax, dword [esp + 0x28]
test eax, eax
jne case.0x40f090.2
push 0x432ca0
call fcn.00410880
call fcn.004106b0
call fcn.00411820
test eax, eax
jne 0x40f2d9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
and eax, 0x3ff
cmp ax, 0x11
jne 0x40f2d9
mov eax, dword [esp + 0x4f0]
push 0
push 0x410340
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x40f2fb
call fcn.00411820
test eax, eax
je 0x40f2fb
mov ecx, dword [esp + 0x4f0]
push 0
push 0x410340
push 0
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [esp + 0x18]
test eax, eax
je case.0x40f090.2
jmp 0x40f3ea
mov dword [esp + 0x30], 1
jmp case.0x40f090.2
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40f3dd
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea edx, [esp + 0x10]
push edx
push 7
push 0
call ebx
mov ebp, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0x4327d8
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40f366
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x4327d8
push str._smsimewiz.lnk
push 0x432b34
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
push 0x432b34
call edi
lea edx, [esp + 0x10]
push edx
push 0x18
push 0
call ebx
push 0x4327d8
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40f3c2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
push 0x4327d8
push str._smsimewiz.lnk
push 0x432b34
call esi
add esp, 0xc
push 0x432b34
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40f3ea
call fcn.0040ed50
call fcn.00411490
lea ecx, [esp + 0x5c]
call fcn.00401120
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4dc
ret 0x10