Function at 0x404736
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
push 0x6b2fed2
mov edi, 0x20bdacfd
pop eax
xor edi, eax
push edi
mov ebx, 0x15ed261c
xor ebx, 0x33a2a5b3
mov esi, dword [esp]
add esp, 4
xor ebx, esi
mov edx, dword [ebx]
mov ecx, edx
xchg ecx, esi
sub esi, 1
mov ebx, dword [esi + 1]
mov eax, 0x3ac452a2
xor eax, 0xcc4113ef
xor ebx, eax
mov edx, 0x345fa765
xor ebx, edx
xor ebx, 0x500c8efa
xor eax, eax
add eax, ebx
mov ecx, 4
sub esp, ecx
mov dword [esp], eax
pop edx
mov esi, 0xfffffffc
add esp, esi
mov eax, 0
xor eax, esp
mov dword [eax], edx
mov esi, 0x3ae91475
mov ecx, 0x31b7f1f1
xor ecx, esi
xor edx, ecx
mov esi, 0x3619c35a
xor edx, esi
xor edx, 0x24c4b187
test edx, edx
jne 0x4047d8
push 0x797efd0c
mov edi, 0x797efd0c
pop edx
xor edi, edx
push edi
pop edi
mov edx, edi
mov esi, edx
add esp, 0xfffffffc
mov dword [esp], esi
mov esi, 0x6a051bde
add esi, 0x276ebd38
xor edi, esi
mov eax, 0x3a5943b
xor edi, eax
and edi, 0xffff
sub edx, edx
add edx, edi
and edx, 0xffffffff
jne 0x40481e
push 0x59d01448
mov ecx, 0x59d01448
pop edx
xor ecx, edx
push ecx
pop edx
mov esi, edx
mov ecx, 4
sub esp, ecx
mov dword [esp], esi
mov ecx, 0x572d67
xor ecx, 0x116dcee0
xor edx, ecx
mov esi, edx
and esi, 0xffffffff
jne 0x404854
mov edi, 0x7823b486
xor edi, 0x7823b486
push edi
pop ebx
cmp ebx, 0
jne 0x4049fa
push 0x623193ef
mov ecx, 0x6ed84200
pop ebx
xor ecx, ebx
mov ebx, 0x62484c8e
xor ecx, ebx
xor ecx, 0x6ee14ca9
mov ebx, ecx
mov edx, ebx
mov esi, 0xffffff89
sub edx, esi
mov ebx, 0xffffffff
add edx, ebx
mov eax, dword [edx - 0x76]
xor ebx, ebx
add ebx, eax
add esp, 0xffffffff
add esp, 0xfffffffd
mov dword [esp], ebx
mov eax, 0x2540608
mov edi, 0x90141e3
xor eax, edi
mov ecx, 0xb147603
sub eax, ecx
mov ecx, eax
xchg ecx, edx
mov esi, 0xffffffff
add edx, esi
mov ebx, dword [edx + 1]
mov edi, 0xfffffffc
add esp, edi
mov ecx, esp
mov esi, ecx
mov dword [esi], ebx
mov esi, 0x21a142f3
mov ecx, 0x6ccfeaf6
xor ecx, esi
mov edx, 0x42897209
xor edx, 0xf8820dc
xor edx, ecx
mov eax, edx
xchg ecx, eax
mov eax, 0xfffffffc
add esp, eax
mov dword [esp], ecx
pop edi
mov edx, esp
add edx, 0xffffffcc
dec edx
mov eax, dword [edx + 0x35]
mov ebx, 0xfffffffc
sub esp, ebx
push 0x4639791f
mov edx, 0x4639791f
pop ebx
xor edx, ebx
xor edx, edi
and edx, 1
mov ebx, 0
mov esi, 0
xor ebx, esi
xor ebx, edx
xor ebx, 0
je 0x40496e
mov ebx, esp
add ebx, 0xfffffff5
dec ebx
mov edx, dword [ebx + 0xc]
mov esi, 0xfffffffc
sub esp, esi
mov ebx, 0xfffffffc
add esp, ebx
push esp
pop esi
mov dword [esi], eax
mov ecx, 0
xor ecx, edx
mov esi, ecx
mov eax, esi
push eax
pop esi
mov ebx, 4
sub esp, ebx
mov dword [esp], esi
mov ecx, edi
mov ebx, ecx
mov ecx, 0xfffffffc
add esp, ecx
mov dword [esp], ebx
call eax
mov eax, esp
add eax, 0x26
dec eax
mov edi, dword [eax - 0x25]
mov esi, 0xfffffffc
sub esp, esi
mov esi, 1
sub edi, esi
and edi, 0x94ffffff
mov eax, edi
mov esi, eax
mov eax, 0xfffffffc
add esp, eax
mov dword [esp], esi
xor eax, eax
add eax, edi
add eax, 0
jne 0x4048fc
pop eax
mov edi, esp
add edi, 0xfffffffd
dec edi
mov eax, dword [edi + 4]
mov esi, 4
add esp, esi
pop eax
pop edi
mov esi, 0x151823e6
mov edi, 0x151802c4
xor edi, esi
mov ebx, 0x236ac13b
mov eax, 0x232a812f
xor eax, ebx
xor edi, eax
call edi
popal
pop ebp
jmp 0x4078c4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret