Function at 0x40cd70
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push esi
push edi
mov ecx, 0x5703b4
call fcn.005040ed
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2a]
lea eax, [ebp - 0x15]
mov dword [ebp - 0x4c], 0x4f005c
push eax
push ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 0x650070
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x44], 0x57006e
mov dword [ebp - 0x40], 0x740069
mov dword [ebp - 0x3c], 0x500068
mov dword [ebp - 0x38], 0x6f0072
mov dword [ebp - 0x34], 0x690067
mov dword [ebp - 0x30], 0x730064
call fcn.00404100
push dword [eax]
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 1
push dword [ebp + 8]
push eax
call fcn.0040bfa0
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040b9d0
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push 0x20019
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x60]
push eax
push bind
call fcn.0040ccb0
test eax, eax
jne 0x40d3fc
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x50]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x330]
mov byte [ebp - 4], 4
push eax
push edi
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x50], 0x200
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40cf8b
nop
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x330]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cec0
sub eax, edx
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00403070
cmp dword [ebp - 0x34], 0
mov byte [ebp - 4], 5
je 0x40cf13
lea eax, [ebp - 0x44]
push eax
cmp edi, dword [ebp - 0x54]
je 0x40cf01
mov ecx, edi
call fcn.00403fc0
add edi, 0x18
mov dword [ebp - 0x6c], edi
jmp 0x40cf13
push edi
lea ecx, [ebp - 0x70]
call fcn.0040c0d0
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], 0x200
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x40cf62
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d425
push ecx
push edx
call fcn.005040df
mov eax, dword [ebp - 0x10]
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x330]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40cea0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40cf9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x60], esi
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x8c], ax
lea ecx, [ebp - 0x8a]
lea eax, [ebp - 0x15]
mov dword [ebp - 0x118], 0x6f0053
push eax
push ecx
lea edx, [ebp - 0x118]
mov dword [ebp - 0x114], 0x740066
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x110], 0x610077
mov dword [ebp - 0x10c], 0x650072
mov dword [ebp - 0x108], 0x4d005c
mov dword [ebp - 0x104], 0x630069
mov dword [ebp - 0x100], 0x6f0072
mov dword [ebp - 0xfc], 0x6f0073
mov dword [ebp - 0xf8], 0x740066
mov dword [ebp - 0xf4], 0x57005c
mov dword [ebp - 0xf0], 0x6e0069
mov dword [ebp - 0xec], 0x6f0064
mov dword [ebp - 0xe8], 0x730077
mov dword [ebp - 0xe4], 0x43005c
mov dword [ebp - 0xe0], 0x720075
mov dword [ebp - 0xdc], 0x650072
mov dword [ebp - 0xd8], 0x74006e
mov dword [ebp - 0xd4], 0x650056
mov dword [ebp - 0xd0], 0x730072
mov dword [ebp - 0xcc], 0x6f0069
mov dword [ebp - 0xc8], 0x5c006e
mov dword [ebp - 0xc4], 0x700041
mov dword [ebp - 0xc0], 0x6c0070
mov dword [ebp - 0xbc], 0x630069
mov dword [ebp - 0xb8], 0x740061
mov dword [ebp - 0xb4], 0x6f0069
mov dword [ebp - 0xb0], 0x41006e
mov dword [ebp - 0xac], 0x730073
mov dword [ebp - 0xa8], 0x63006f
mov dword [ebp - 0xa4], 0x610069
mov dword [ebp - 0xa0], 0x690074
mov dword [ebp - 0x9c], 0x6e006f
mov dword [ebp - 0x98], 0x6f0054
mov dword [ebp - 0x94], 0x730061
mov dword [ebp - 0x90], 0x730074
call fcn.00404100
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x40d195
cmp dword [eax], 0
je 0x40d188
push 0x5399b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40d15a
lea ecx, [ebp - 0x7c]
call fcn.0040b9d0
jmp 0x40d394
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d18e
mov ecx, dword [ebp - 0x58]
push 0
push dword [ecx]
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x28]
push reloc.WS2_32.dll_accept
call eax
jmp 0x40d1ac
cmp dword [eax + 4], 0
jne 0x40d195
mov eax, 1
jmp 0x40d1ac
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40d1d4
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40d1c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x7c]
call fcn.0040b9d0
cmp dword [ebp - 0x14], 0
jne 0x40d394
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
cmp ecx, edi
je 0x40d37d
mov edx, dword [ecx + 0x10]
mov eax, bind
sub eax, edx
mov dword [ebp - 0x64], edx
cmp eax, 1
jb 0x40d42a
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x10], ecx
jb 0x40d218
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
lea ecx, [edx + 1]
mov dword [ebp - 0x78], 0
mov esi, 7
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x88], xmm0
cmp ecx, esi
jbe 0x40d285
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40d25c
mov esi, bind
jmp 0x40d267
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x88]
call fcn.00403670
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x74], esi
lea esi, [edx + edx]
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x78], ecx
push eax
call fcn.00506e30
mov eax, dword [ebp - 0x14]
mov ecx, 0x5f
xor edx, edx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x64]
mov word [eax + ecx*2 + 2], dx
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.0040fd60
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x88]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040fce0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 4
push ecx
push 4
push 0
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x40d36c
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d362
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d425
push ecx
push edx
call fcn.005040df
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
cmp ecx, edi
jne 0x40d1f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
je 0x40d394
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40d3ff
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40d3ba
mov esi, ecx
mov ecx, esi
call fcn.0040fce0
add esi, 0x18
cmp esi, edi
jne 0x40d3a6
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x40d3f0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d425
push edx
push ecx
call fcn.005040df
add esp, 8
jmp 0x40d3ff
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x130]
call fcn.0040fce0
test esi, esi
je 0x40d415
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0050b3af
call fcn.00402980
int3