Function at 0x405f10
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
push 0x16
mov esi, ecx
push ebx
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x405f58
mov eax, 0x191
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00437634
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [esp + 0x4d]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 0xc]
add esp, 0xc
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x54], eax
mov ax, word [ebx + 0x14]
add esi, 0x280
push 0xbd
push str._CRegister:_d_Register_RegCode:_s_r_n
mov dword [esp + 0x64], edx
mov word [esp + 0x68], ax
mov dword [esp + 0x34], esi
call fcn.00417290
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
add esp, 0xc
mov byte [esp + 0x20], 0x41
mov byte [esp + 0x21], 0x4d
mov byte [esp + 0x22], 0x53
mov byte [esp + 0x23], 0x45
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x25], 0x4d
mov byte [esp + 0x26], 0x50
mov byte [esp + 0x27], 0x52
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x45
mov byte [esp + 0x1b], 0x4e
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x4d
mov byte [esp + 0x1e], 0x54
mov byte [esp + 0x1f], 0x45
mov byte [esp + 0x14], 0x41
mov byte [esp + 0x15], 0x4d
mov byte [esp + 0x16], 0x48
mov byte [esp + 0x17], 0x45
mov byte [esp + 0xc], 0x41
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x42
mov byte [esp + 0xf], 0x54
mov edx, 4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
mov esi, dword [ecx]
cmp esi, dword [eax]
jne 0x40605b
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x406043
test edx, edx
je 0x4060b8
movzx edi, byte [ecx]
movzx esi, byte [eax]
sub edi, esi
jne 0x4060aa
sub edx, 1
add eax, 1
add ecx, 1
test edx, edx
je 0x4060b8
movzx edi, byte [ecx]
movzx esi, byte [eax]
sub edi, esi
jne 0x4060aa
sub edx, 1
add eax, 1
add ecx, 1
test edx, edx
je 0x4060b8
movzx edi, byte [ecx]
movzx esi, byte [eax]
sub edi, esi
jne 0x4060aa
sub edx, 1
add eax, 1
add ecx, 1
test edx, edx
je 0x4060b8
movzx edi, byte [ecx]
movzx eax, byte [eax]
sub edi, eax
je 0x4060b8
test edi, edi
mov eax, 1
jg 0x4060ba
or eax, 0xffffffff
jmp 0x4060ba
xor eax, eax
test eax, eax
je 0x4063af
mov eax, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4060e8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4060d0
test eax, eax
je 0x406145
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406137
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406145
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406137
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406145
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406137
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406145
movzx ecx, byte [ecx]
movzx edi, byte [edx]
sub edi, ecx
je 0x406145
test edi, edi
mov eax, 1
jg 0x406147
or eax, 0xffffffff
jmp 0x406147
xor eax, eax
test eax, eax
je 0x4063af
mov eax, 4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x406178
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x406160
test eax, eax
je 0x4061d5
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x4061c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4061d5
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x4061c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4061d5
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x4061c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4061d5
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x4061d5
test edi, edi
mov eax, 1
jg 0x4061d7
or eax, 0xffffffff
jmp 0x4061d7
xor eax, eax
test eax, eax
je 0x4063af
mov eax, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x406208
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4061f0
test eax, eax
je 0x406265
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406257
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406265
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406257
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406265
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406257
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406265
movzx eax, byte [ecx]
movzx edi, byte [edx]
sub edi, eax
je 0x406265
test edi, edi
mov eax, 1
jg 0x406267
or eax, 0xffffffff
jmp 0x406267
xor eax, eax
test eax, eax
jne 0x406291
call fcn.0040df30
test al, al
je 0x4063af
mov eax, 0x192
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00437634
mov esp, ebp
pop ebp
ret
mov eax, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4062b8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4062a0
test eax, eax
je 0x406315
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x406307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406315
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x406307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406315
movzx edi, byte [edx]
movzx esi, byte [ecx]
sub edi, esi
jne 0x406307
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x406315
movzx edi, byte [edx]
movzx ecx, byte [ecx]
sub edi, ecx
je 0x406315
test edi, edi
mov eax, 1
jg 0x406317
or eax, 0xffffffff
jmp 0x406317
xor eax, eax
test eax, eax
je 0x4063af
mov eax, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x406348
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x406330
test eax, eax
je 0x4063a5
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4063a5
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4063a5
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x406397
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4063a5
movzx eax, byte [ecx]
movzx edi, byte [edx]
sub edi, eax
je 0x4063a5
test edi, edi
mov eax, 1
jg 0x4063a7
or eax, 0xffffffff
jmp 0x4063a7
xor eax, eax
test eax, eax
jne 0x40660c
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
mov dword [esp + 0x10], 0
call fcn.00412010
test al, al
mov esi, dword [esp + 0x28]
je 0x4065f9
mov edi, dword [esp + 0xc]
push edi
push 0xec
push str._CRegister:_d_Register_RegCodeVersion:_d_r_n
call fcn.00417290
add esp, 0xc
cmp edi, 0x186
jne 0x406413
mov ecx, ebx
call fcn.00410760
test al, al
jne 0x4065e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf1
push str._CRegister:_d_Register_Write_reg_date_info_faild__ErrorCode:_d_r_n
jmp 0x406604
cmp edi, 0x168
je 0x40643f
cmp edi, 0x172
je 0x40643f
cmp edi, 0x17c
je 0x40643f
cmp edi, 0x190
je 0x40643f
cmp edi, 0x19a
jne 0x4065e3
mov edi, dword [esp + 0x2c]
add edi, 8
push edi
lea edx, [esp + 0xf]
mov ecx, ebx
mov byte [esp + 0xf], 0
call fcn.00412650
cmp byte [esp + 0xb], 0
jne 0x40654f
push 0xfc
push str._CRegister:_d_Register_Not_exist_reg_data_r_n
call fcn.00417290
mov cl, 0x37
mov byte [esp + 0x41], cl
mov byte [esp + 0x44], cl
mov cl, 0x30
mov al, 0x2d
mov dl, 0x57
mov byte [esp + 0x45], cl
mov byte [esp + 0x4c], cl
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], 0x41
mov byte [esp + 0x31], 0x4d
mov byte [esp + 0x32], 0x54
mov byte [esp + 0x33], 0x45
mov byte [esp + 0x34], al
mov byte [esp + 0x35], dl
mov byte [esp + 0x36], 0x38
mov byte [esp + 0x37], 0x34
mov byte [esp + 0x38], 0x36
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], 0x5a
mov byte [esp + 0x3e], 0x54
mov byte [esp + 0x3f], 0x32
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 0x53
mov byte [esp + 0x42], 0x50
mov byte [esp + 0x43], dl
mov byte [esp + 0x45], 0x31
mov byte [esp + 0x46], 0
call fcn.00410760
test al, al
jne 0x406509
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102
push str._CRegister:_d_Register_Write_reg_date_info_faild__ErrorCode:_d_r_n
jmp 0x406604
push edi
lea edx, [esp + 0xf]
mov ecx, ebx
call fcn.00412650
test al, al
jne 0x4065e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x108
push str._CRegister:_d_Register_Write_forever_reg_date_info_faild__ErrorCode:_d_r_n
call fcn.00417290
add esp, 0xc
mov eax, 0x196
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00437634
mov esp, ebp
pop ebp
ret
mov cl, 0x37
mov byte [esp + 0x39], cl
mov byte [esp + 0x3c], cl
mov dl, 0x57
mov cl, 0x30
mov al, 0x2d
mov byte [esp + 0x35], dl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x43], dl
mov byte [esp + 0x44], cl
mov edx, ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], 0x41
mov byte [esp + 0x31], 0x4d
mov byte [esp + 0x32], 0x54
mov byte [esp + 0x33], 0x45
mov byte [esp + 0x34], al
mov byte [esp + 0x36], 0x38
mov byte [esp + 0x37], 0x34
mov byte [esp + 0x38], 0x36
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], 0x5a
mov byte [esp + 0x3e], 0x54
mov byte [esp + 0x3f], 0x32
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 0x53
mov byte [esp + 0x42], 0x50
mov byte [esp + 0x45], 0x31
mov byte [esp + 0x46], 0
call fcn.00412930
test al, al
jne 0x4065e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x114
push str._CRegister:_d_Register_Change_reg_code_faild__ErrorCode:_d_r_n
jmp 0x406604
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00437634
mov esp, ebp
pop ebp
ret
push ebx
push 0x11c
push str._CRegister:_d_Invalid_reg_code:_s_r_n
call fcn.00417290
add esp, 0xc
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
mov eax, 0x193
call fcn.00437634
mov esp, ebp
pop ebp
ret