Function at 0x48dfa0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bd44
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 4], 0
call fcn.0048da70
mov ecx, dword [ebp - 0x410]
add esp, 4
test al, al
jne 0x48e025
xor bl, bl
jmp 0x48e806
mov edx, dword [ebp - 0x414]
sub ecx, edx
sar ecx, 2
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x438], ecx
test ecx, ecx
jle 0x48e7f3
mov esi, dword [edx + eax*4]
mov ebx, str.Volatile_Environment
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x48e074
cmp ecx, dword [esi - 0x10]
jne 0x48e074
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x48e0ad
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x48e86e
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [0x566ac0]
mov ecx, eax
imul ecx, eax
imul eax, ecx
cdq
mov ecx, 9
idiv ecx
cmp edx, 3
jne 0x48e0e0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 0
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x404], eax
mov byte [ebp - 4], 3
test ebx, 0xffff0000
jne 0x48e145
movzx esi, bx
push 0
push esi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x48e157
push esi
push eax
lea ecx, [ebp - 0x404]
call fcn.004073a0
jmp 0x48e157
push 0x15
push str.Volatile_Environment
lea ecx, [ebp - 0x404]
call fcn.00409940
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 4], 5
call fcn.00465370
lea ecx, [ebp - 0x404]
push ecx
push eax
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 4], 6
call fcn.00465370
add esp, 0x18
lea ecx, [ebp - 0x400]
push 0x20019
push dword [eax]
push SysStringLen
call fcn.0040bb90
mov edx, dword [ebp - 0x43c]
test eax, eax
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e1e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e20a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e22e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x404]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e252
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x48e77a
xor ecx, ecx
mov eax, 0x400
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x3f0], 0x400
neg ecx
or ecx, eax
push ecx
call fcn.004e3d44
push 0x800
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x3f4], ebx
call fcn.004e67c0
add esp, 0x10
call fcn.00464e10
mov esi, dword [ebp - 0x400]
test al, al
je 0x48e70b
mov eax, dword [ebp - 0x428]
mov ecx, str.LOCALAPPDATA
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48e2dd
test dx, dx
je 0x48e2d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48e2dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x48e2b7
xor eax, eax
jmp 0x48e2e2
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x48e70b
lea eax, [ebp - 0x3f0]
push eax
push ebx
push str.HOMEDRIVE
lea ecx, [ebp - 0x400]
call fcn.0040bc40
test eax, eax
jne 0x48e6f5
push ebx
lea ecx, [ebp - 0x420]
call fcn.00401ba0
mov edi, dword [0x566ac0]
mov ecx, 0xe
lea eax, [edi + 1]
imul eax, edi
mov dword [ebp - 0x3f0], eax
cdq
idiv ecx
mov byte [ebp - 4], 7
cmp edx, 3
jne 0x48e358
xor esi, esi
mov ebx, edi
inc esi
dec ebx
cmp esi, 0xf5
jb 0x48e342
mov ebx, dword [ebp - 0x3f4]
mov esi, dword [ebp - 0x400]
mov eax, dword [ebp - 0x3f0]
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 8
jne 0x48e3f4
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, edi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
inc edx
add edi, eax
cmp edx, 0x100
jl 0x48e371
mov dword [0x566ac0], edi
push 0x800
push 0
push ebx
call fcn.004e67c0
add esp, 0xc
call fcn.0048ef20
test al, al
jne 0x48e499
xor eax, eax
mov dword [ebp - 0x3e8], eax
lea edi, [ebp - 0x2c8]
nop
xor ecx, ecx
mov dword [ebp - 0x3f0], edi
jmp 0x48e430
mov edi, dword [0x566ac0]
lea esi, [eax + 1]
mov eax, edi
cdq
idiv esi
mov eax, edi
sub eax, dword [ebp - 0x3e8]
lea ebx, [ecx + 1]
mov esi, edx
imul esi, eax
mov eax, edi
cdq
idiv ebx
mov edi, dword [ebp - 0x3f0]
add esi, eax
sub esi, ecx
push esi
push 0x519f70
call fcn.004e6944
mov eax, dword [ebp - 0x3e8]
mov ecx, ebx
add edi, 4
add esp, 8
mov dword [ebp - 0x3f0], edi
cmp ecx, 0x1d
jl 0x48e430
inc eax
mov dword [ebp - 0x3e8], eax
cmp eax, 6
jl 0x48e420
mov ebx, dword [ebp - 0x3f4]
mov esi, dword [ebp - 0x400]
lea eax, [ebp - 0x3f4]
push eax
push ebx
lea eax, [ebp - 0x434]
push eax
push 0
push str.HOMEPATH
push esi
mov dword [ebp - 0x3f4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e6d1
mov eax, dword [ebp - 0x434]
cmp eax, 1
je 0x48e4dc
cmp eax, 2
jne 0x48e6d1
test ebx, ebx
je 0x48e506
mov eax, dword [ebp - 0x3f4]
test eax, eax
je 0x48e501
test al, 1
jne 0x48e6d1
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x48e506
jmp 0x48e6d1
xor eax, eax
mov word [ebx], ax
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3e8], eax
mov byte [ebp - 4], 8
test ebx, ebx
je 0x48e563
test ebx, 0xffff0000
jne 0x48e54d
movzx esi, bx
push 0
push esi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x48e572
push esi
push eax
lea ecx, [ebp - 0x3e8]
call fcn.004073a0
jmp 0x48e572
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e552
sub ecx, edx
sar ecx, 1
jmp 0x48e565
xor ecx, ecx
push ecx
push ebx
lea ecx, [ebp - 0x3e8]
call fcn.00409940
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x3ec]
push eax
mov byte [ebp - 4], 9
call fcn.00402a20
add esp, 0xc
mov eax, dword [ebp - 0x3ec]
mov byte [ebp - 4], 0xa
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
js 0x48e7e3
cmp ecx, edi
jg 0x48e7e3
cmp word [eax + ecx*2], 0x5c
je 0x48e60f
lea esi, [edi + 1]
test esi, esi
js 0x48e7e3
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x48e5e8
push esi
lea ecx, [ebp - 0x3ec]
call fcn.00407590
mov eax, dword [ebp - 0x3ec]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x3ec]
cmp esi, dword [eax - 8]
jg 0x48e7e3
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x3ec]
xor ecx, ecx
mov word [eax + esi*2], cx
push 0x1f
push str.Local_SettingsApplication_Data
lea ecx, [ebp - 0x3ec]
call fcn.00402de0
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x3ec]
push eax
call fcn.00420910
mov ecx, dword [0x566ac0]
mov esi, 0xd
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 1
jne 0x48e653
dec ecx
mov dword [0x566ac0], ecx
mov eax, ecx
imul eax, ecx
imul eax, ecx
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x48e667
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 6
jne 0x48e683
push 0x85
push 0x84
push str._d__d_n
call fcn.004e6944
add esp, 0xc
mov edx, dword [ebp - 0x3ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e6a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e6cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x400]
mov edx, dword [ebp - 0x420]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e6f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0048ef20
test al, al
jne 0x48e76a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x566ac0], eax
jmp 0x48e76a
lea eax, [ebp - 0x3f0]
push eax
mov eax, dword [ebp - 0x428]
push ebx
push dword [eax]
lea ecx, [ebp - 0x400]
call fcn.0040bc40
test eax, eax
jne 0x48e76a
push ebx
lea ecx, [ebp - 0x42c]
call fcn.00401ba0
mov ecx, dword [ebp - 0x408]
push eax
mov byte [ebp - 4], 0xb
call fcn.00420910
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e76a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.004e5e73
add esp, 4
test esi, esi
je 0x48e795
push esi
jmp 0x48e785
mov eax, dword [ebp - 0x400]
test eax, eax
je 0x48e795
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x400], 0
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
mov dword [ebp - 0x3fc], 0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e7c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x41c]
inc eax
mov dword [ebp - 0x41c], eax
cmp eax, dword [ebp - 0x438]
jge 0x48e7ed
mov edx, dword [ebp - 0x414]
jmp 0x48e046
push 0x80070057
call fcn.00402fc0
mov ebx, dword [ebp - 0x408]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov ecx, dword [ebp - 0x410]
test eax, 0xfffffffc
setne bl
mov edi, dword [ebp - 0x414]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48e850
mov esi, edi
cmp edi, ecx
je 0x48e847
lea ecx, [ecx]
mov edx, dword [esi]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48e83c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x410]
jne 0x48e820
push edi
call fcn.004e4aa8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
call fcn.00409e90
int3