Function at 0x4790c0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5cdd83
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
xor edi, edi
push 0x5efcf8
lea ecx, [esp + 0x24]
mov dword [esp + 0x11c], edi
call fcn.0048cd50
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0x14]
mov byte [esp + 0x11c], 1
call fcn.004b7af0
cmp dword [esp + 0x3c], 0x10
mov ebx, 0x5f1558
mov esi, eax
mov byte [esp + 0x118], 0
mov dword [esp + 0x20], ebx
jb 0x479154
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004274fc
add esp, 4
cmp esi, edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x20], 0x5f13d0
jne 0x479184
lea ecx, [esp + 0x120]
call fcn.00401650
xor al, al
jmp 0x47964f
push 0x5efd00
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], edi
call fcn.0048cd50
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
mov byte [esp + 0x11c], 2
call fcn.004b7a30
cmp dword [esp + 0xb8], 0x10
mov edi, eax
mov byte [esp + 0x118], 0
mov dword [esp + 0x9c], ebx
jb 0x4791db
mov eax, dword [esp + 0xa4]
push eax
call fcn.004274fc
add esp, 4
test edi, edi
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
mov dword [esp + 0x9c], 0x5f13d0
je 0x47923b
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x18], ecx
fldcw word [esp + 0x16]
push 0x5efd04
lea ecx, [esp + 0xa0]
mov dword [ebp + 0x180], 0x28
call fcn.0048cd50
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
mov byte [esp + 0x11c], 3
call fcn.004b7a30
cmp dword [esp + 0xb8], 0x10
mov edi, eax
mov byte [esp + 0x118], 0
mov dword [esp + 0x9c], ebx
jb 0x479298
mov eax, dword [esp + 0xa4]
push eax
call fcn.004274fc
add esp, 4
test edi, edi
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
mov dword [esp + 0x9c], 0x5f13d0
je 0x479300
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov dword [esp + 0x9c], eax
fldcw word [esp + 0x9c]
fistp qword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
mov dword [ebp + 0x180], ecx
fldcw word [esp + 0x16]
push 0x5efd0c
lea ecx, [esp + 0xa0]
call fcn.0048cd50
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
mov byte [esp + 0x11c], 4
call fcn.004b7a90
mov dword [esp + 0x9c], ebx
mov ebx, 0x10
cmp dword [esp + 0xb8], ebx
mov esi, eax
mov byte [esp + 0x118], 0
jb 0x479357
mov eax, dword [esp + 0xa4]
push eax
call fcn.004274fc
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], eax
mov byte [esp + 0xa4], al
mov dword [esp + 0x9c], 0x5f13d0
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
je 0x4793f8
mov ecx, esi
lea edi, [eax + 0x20]
call fcn.004b57d0
cmp dword [eax + 0x14], edi
jae 0x4793d2
mov ecx, esi
call fcn.004b57d0
mov edi, dword [eax + 0x14]
mov ecx, esi
call fcn.004b57d0
cmp dword [eax + 0x18], ebx
jb 0x4793e3
mov eax, dword [eax + 4]
jmp 0x4793e6
add eax, 4
push edi
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.00450150
add esp, 0xc
mov ebp, dword [esp + 0x120]
test ebp, ebp
je 0x47941a
cmp dword [ebp + 4], 0
jne 0x479415
mov edx, dword [ebp]
push edx
call fcn.00464000
mov dword [ebp + 4], eax
mov edx, dword [ebp + 4]
jmp 0x47941c
xor edx, edx
xor eax, eax
xor esi, esi
test edx, edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
je 0x479478
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x479461
sub eax, esi
mov esi, eax
cmp esi, 0x20
jbe 0x479478
mov esi, 0x20
push esi
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.00450150
add esp, 0xc
cmp esi, 0x20
jae 0x4794ac
mov ecx, 0x20
sub ecx, esi
push ecx
lea edx, [esp + esi + 0xf0]
push 0x5efcc4
push edx
call fcn.00450150
add esp, 0xc
push 0x5c
lea eax, [esp + 0x44]
push 0
push eax
call fcn.0044dac0
lea ecx, [esp + 0x4c]
push ecx
call fcn.00562400
push 0x20
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00562aa0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.00562d70
mov ebx, dword [esp + 0x3c]
add esp, 0x24
cmp ebx, 3
jb 0x479538
mov esi, 0x32
jmp 0x479500
lea eax, [esp + 0x40]
push eax
call fcn.00562400
push 0x10
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00562aa0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.00562d70
add esp, 0x18
sub esi, 1
jne 0x479500
cmp ebx, 2
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
lea edi, [esi + 0x7a8]
mov dword [edi], edx
mov edx, dword [esp + 0xc8]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jne 0x47958d
mov ecx, dword [esi + 0x180]
push 0x20
lea eax, [esp + 0xd0]
push eax
shr ecx, 3
push ecx
push edi
call fcn.004a0310
add esp, 0x10
jmp 0x479601
cmp ebx, 3
jb 0x479601
mov ebx, 1
jmp 0x4795a0
mov ebp, dword [esi + 0x180]
xor eax, eax
shr ebp, 3
je 0x4795d3
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x180]
mov cl, 0x14
sub cl, bl
shr esi, 3
mov edi, edi
mov dl, byte [edi + eax]
xor dl, cl
mov byte [esp + eax + 0x9c], dl
add eax, 1
cmp eax, esi
jb 0x4795c0
push 0x20
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0xa4]
push ebp
push ecx
call fcn.004a0310
mov esi, dword [esp + 0x2c]
add ebx, 1
add esp, 0x10
cmp ebx, 0x14
jbe 0x4795a0
mov ebp, dword [esp + 0x120]
push 0x20
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.00478880
test ebp, ebp
mov bl, al
je 0x47964d
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x47964d
mov eax, dword [ebp]
test eax, eax
je 0x479634
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 4]
test eax, eax
je 0x479644
push eax
call fcn.004274fc
add esp, 4
push ebp
call fcn.004274fc
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0044abb9
add esp, 0x108
ret 4