Function at 0x54964c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
mov edx, esp
lea esi, [ebp - 0x64]
mov dword [edx], esi
mov dword [edx + 4], str.HKEY_LOCAL_MACHINE_
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], eax
call fcn.00401cd8
mov dword [ebp - 0x28], 0x5792b4
mov dword [ebp - 0x24], 0x5870cc
mov eax, ebp
mov dword [ebp - 0x20], eax
mov eax, esp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x54a122
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x44]
call fcn.00579e71
mov eax, esp
lea ecx, [ebp - 0x80]
mov dword [eax], ecx
mov dword [eax + 4], str.HKEY_CURRENT_USER_
call fcn.00401cd8
jmp 0x5496c6
mov dword [ebp - 0x3c], 2
mov eax, esp
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
mov dword [eax + 4], str.HKEY_USERS_
call fcn.00401cd8
jmp 0x5496e5
mov dword [ebp - 0x3c], 3
mov eax, esp
lea ecx, [ebp - 0xc0]
mov dword [eax], ecx
mov dword [eax + 4], str.HKEY_CLASSES_ROOT_
call fcn.00401cd8
jmp 0x549704
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x118]
mov dword [esp], ecx
mov dword [ebp - 0x120], eax
call fcn.00402640
mov ecx, dword [ebp - 0x120]
cmp ecx, eax
jae 0x54a093
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x3c], 4
mov eax, esp
lea ecx, [ebp - 0xe4]
mov dword [eax], ecx
call fcn.004025a4
jmp 0x549758
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 5
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x124], eax
jmp 0x54977f
mov dword [ebp - 0x3c], 6
mov eax, esp
mov ecx, dword [ebp - 0x124]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x100]
mov dword [eax], edx
call fcn.0053e7b0
jmp 0x5497a0
xor eax, eax
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x100]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [ebp - 0x128], eax
call fcn.00402498
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
je 0x549951
mov dword [ebp - 0xc8], SysReAllocStringLen
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 7
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x12c], eax
jmp 0x549809
mov dword [ebp - 0x3c], 8
mov eax, esp
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 4], ecx
lea edx, [ebp - 0xe4]
mov dword [eax], edx
call fcn.004025cc
mov dword [ebp - 0x130], eax
jmp 0x549830
mov eax, esp
lea ecx, [ebp - 0x64]
mov dword [eax], ecx
call fcn.004023a4
mov ecx, dword [ebp - 0x104]
add eax, ecx
mov dword [ebp - 0x3c], 9
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [ebp - 0xe4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.00403878
mov dword [ebp - 0x134], eax
jmp 0x54986c
jmp 0x549951
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], eax
jmp 0x54a102
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], eax
jmp 0x54a0f7
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], eax
jmp 0x54a0e9
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], eax
jmp 0x54a0db
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], eax
jmp 0x54a083
lea ecx, [ebp - 0x100]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov dword [esp], ecx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], eax
call fcn.00401d68
jmp 0x54a083
xor eax, eax
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x100]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [ebp - 0x168], eax
call fcn.00402498
mov dword [ebp - 0x104], eax
cmp eax, 0xffffffff
je 0x549a1b
mov dword [ebp - 0xc8], SysReAllocStringLen
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0xa
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x16c], eax
jmp 0x5499b6
mov dword [ebp - 0x3c], 0xb
mov eax, esp
mov ecx, dword [ebp - 0x16c]
mov dword [eax + 4], ecx
lea edx, [ebp - 0xe4]
mov dword [eax], edx
call fcn.004025cc
mov dword [ebp - 0x170], eax
jmp 0x5499dd
mov eax, esp
lea ecx, [ebp - 0x80]
mov dword [eax], ecx
call fcn.004023a4
mov ecx, dword [ebp - 0x104]
add eax, ecx
mov dword [ebp - 0x3c], 0xc
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [ebp - 0xe4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.00403878
mov dword [ebp - 0x174], eax
jmp 0x549a19
jmp 0x549a1b
xor eax, eax
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x100]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [ebp - 0x178], eax
call fcn.00402498
mov dword [ebp - 0x104], eax
cmp eax, 0xffffffff
je 0x549aeb
mov dword [ebp - 0xc8], reloc.WS2_32.DLL_closesocket
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0xd
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x17c], eax
jmp 0x549a83
mov dword [ebp - 0x3c], 0xe
mov eax, esp
mov ecx, dword [ebp - 0x17c]
mov dword [eax + 4], ecx
lea edx, [ebp - 0xe4]
mov dword [eax], edx
call fcn.004025cc
mov dword [ebp - 0x180], eax
jmp 0x549aaa
mov eax, esp
lea ecx, [ebp - 0xa4]
mov dword [eax], ecx
call fcn.004023a4
mov ecx, dword [ebp - 0x104]
add eax, ecx
mov dword [ebp - 0x3c], 0xf
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [ebp - 0xe4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.00403878
mov dword [ebp - 0x184], eax
jmp 0x549ae9
jmp 0x549aeb
xor eax, eax
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0x100]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [ebp - 0x188], eax
call fcn.00402498
mov dword [ebp - 0x104], eax
cmp eax, 0xffffffff
je 0x549bbb
mov dword [ebp - 0xc8], SysReAllocStringLen
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x10
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x18c], eax
jmp 0x549b53
mov dword [ebp - 0x3c], 0x11
mov eax, esp
mov ecx, dword [ebp - 0x18c]
mov dword [eax + 4], ecx
lea edx, [ebp - 0xe4]
mov dword [eax], edx
call fcn.004025cc
mov dword [ebp - 0x190], eax
jmp 0x549b7a
mov eax, esp
lea ecx, [ebp - 0xc0]
mov dword [eax], ecx
call fcn.004023a4
mov ecx, dword [ebp - 0x104]
add eax, ecx
mov dword [ebp - 0x3c], 0x12
mov ecx, esp
mov dword [ecx + 8], eax
lea eax, [ebp - 0xe4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.00403878
mov dword [ebp - 0x194], eax
jmp 0x549bb9
jmp 0x549bbb
cmp dword [ebp - 0xc8], 0
je 0x549bd7
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.004023a4
cmp eax, 0
ja 0x549be6
mov dword [ebp - 0x108], 4
jmp 0x54a027
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call fcn.004037dc
cmp eax, 0
jbe 0x549c51
mov eax, esp
mov ecx, dword [ebp - 0x11c]
mov dword [eax], ecx
call fcn.004023c8
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x3c], 0x13
mov edx, esp
lea esi, [ebp - 0xc8]
mov dword [edx + 8], esi
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.ADVAPI32.DLL_RegConnectRegistryW
sub esp, 0xc
mov dword [ebp - 0x198], eax
jmp 0x549c35
mov eax, dword [ebp - 0x198]
cmp eax, 0
je 0x549c4f
mov dword [ebp - 0x108], 4
jmp 0x54a027
jmp 0x549c51
mov eax, dword [ebp - 0xc8]
mov ecx, esp
lea edx, [ebp - 0xe4]
mov dword [ecx], edx
mov dword [ebp - 0x19c], eax
call fcn.004023c8
mov dword [ebp - 0x3c], 0x14
mov ecx, esp
lea edx, [ebp - 0x110]
mov dword [ecx + 0x20], edx
lea edx, [ebp - 0x10c]
mov dword [ecx + 0x1c], edx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [ecx], eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0xf003f
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
call sub.ADVAPI32.DLL_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x1a0], eax
jmp 0x549cc5
mov eax, dword [ebp - 0x1a0]
cmp eax, 0
jne 0x549ffc
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x15
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx], eax
call fcn.00402688
mov dword [ebp - 0x1a4], eax
jmp 0x549cfb
mov eax, dword [ebp - 0x1a4]
add eax, 0x1c
mov dword [esp], eax
call fcn.004023a4
cmp eax, 0
jbe 0x549de1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x16
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1a8], eax
call fcn.00402688
mov dword [ebp - 0x1ac], eax
jmp 0x549d48
mov eax, dword [ebp - 0x1ac]
add eax, 0x1c
mov ecx, esp
mov dword [ecx], eax
call fcn.004023c8
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x17
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1b0], eax
call fcn.00402688
mov dword [ebp - 0x1b4], eax
jmp 0x549d87
mov eax, dword [ebp - 0x1b4]
add eax, 0x1c
mov ecx, esp
mov dword [ecx], eax
call fcn.004037dc
lea eax, [eax + eax + 2]
mov dword [ebp - 0x3c], 0x18
mov ecx, esp
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x1b0]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x1a8]
mov dword [ecx], edx
mov dword [ecx + 0xc], 1
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0x586ce2
call sub.ADVAPI32.DLL_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1b8], eax
jmp 0x549ddf
jmp 0x549de1
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x19
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1bc], eax
call fcn.00402688
mov dword [ebp - 0x1c0], eax
jmp 0x549e1e
mov eax, dword [ebp - 0x1c0]
add eax, 0x38
mov dword [esp], eax
call fcn.004026b8
mov ecx, dword [ebp - 0x1bc]
cmp ecx, eax
jae 0x549fd9
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x1a
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1c4], eax
call fcn.00402688
mov dword [ebp - 0x1c8], eax
jmp 0x549e70
mov eax, dword [ebp - 0x1c8]
add eax, 0x38
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x3c], 0x1b
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.00402700
mov dword [ebp - 0x1cc], eax
jmp 0x549e9a
mov eax, esp
mov ecx, dword [ebp - 0x1cc]
mov dword [eax], ecx
call fcn.004023c8
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x1c
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1d0], eax
call fcn.00402688
mov dword [ebp - 0x1d4], eax
jmp 0x549ed6
mov eax, dword [ebp - 0x1d4]
add eax, 0x38
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x3c], 0x1d
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.00402700
mov dword [ebp - 0x1d8], eax
jmp 0x549f00
mov eax, dword [ebp - 0x1d8]
add eax, 0x1c
mov ecx, esp
mov dword [ecx], eax
call fcn.004023c8
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], 0x1e
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x118]
mov dword [edx], ecx
mov dword [ebp - 0x1dc], eax
call fcn.00402688
mov dword [ebp - 0x1e0], eax
jmp 0x549f3f
mov eax, dword [ebp - 0x1e0]
add eax, 0x38
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x3c], 0x1f
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.00402700
mov dword [ebp - 0x1e4], eax
jmp 0x549f69
mov eax, dword [ebp - 0x1e4]
add eax, 0x1c
mov ecx, esp
mov dword [ecx], eax
call fcn.004037dc
lea eax, [eax + eax + 2]
mov dword [ebp - 0x3c], 0x20
mov ecx, esp
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x1d0]
mov dword [ecx + 4], edx
mov esi, dword [ebp - 0x1c4]
mov dword [ecx], esi
mov dword [ecx + 0xc], 1
mov dword [ecx + 8], 0
call sub.ADVAPI32.DLL_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1e8], eax
jmp 0x549fc3
jmp 0x549fc5
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
jmp 0x549deb
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x3c], 0x21
mov ecx, esp
mov dword [ecx], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x549ffa
jmp 0x549ffc
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x3c], 0x22
mov ecx, esp
mov dword [ecx], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [ebp - 0x1f0], eax
jmp 0x54a01d
mov dword [ebp - 0x108], 0
mov eax, esp
lea ecx, [ebp - 0x100]
mov dword [eax], ecx
call fcn.00401d68
mov eax, esp
lea ecx, [ebp - 0xe4]
mov dword [eax], ecx
call fcn.00401d68
mov eax, dword [ebp - 0x108]
test eax, eax
mov dword [ebp - 0x1f4], eax
je 0x54a06d
jmp 0x54a057
mov eax, dword [ebp - 0x1f4]
sub eax, 4
mov dword [ebp - 0x1f8], eax
je 0x54a06f
jmp 0x54a122
jmp 0x54a06f
mov eax, dword [ebp - 0xc4]
add eax, 1
mov dword [ebp - 0xc4], eax
jmp 0x54970e
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.00401d68
jmp 0x54a0db
lea eax, [ebp - 0xc0]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0xa4]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x64]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00579e92
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0xc0]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0xa4]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.00401d68
lea eax, [ebp - 0x64]
mov dword [esp], eax
call fcn.00401d68
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], eax
call fcn.00579e10
nop
mov eax, dword [ebp - 0x40]
cmp eax, 0x22
mov dword [ebp - 0x1fc], eax
ja case.default.0x54a13e
mov eax, dword [ebp - 0x1fc]
sub eax, 1
jmp dword [eax*4 + 0x54a148]
ud2