Function at 0x4080c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x124
mov al, byte [0x65aa4c]
push ebx
push ebp
mov ebp, edx
mov ebx, ecx
push esi
test al, al
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x40864d
push 0x75
call fcn.004ce830
add esp, 4
lea esi, [esp + 0x24]
mov edi, 4
call fcn.004ce840
mov dword [esi], eax
add esi, 4
dec edi
jne 0x4080f6
push 0
call fcn.004ce3a0
add esp, 4
push eax
call fcn.004ce830
add esp, 4
lea eax, [esp + 0x24]
mov edx, 1
xor ecx, ecx
push eax
call fcn.00468870
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x100
jb 0x408142
mov edi, 0xff
test edi, edi
lea esi, [esp + 0x34]
je 0x40816d
lea ecx, [esp + 0x34]
lea ebp, [edi]
sub ebx, ecx
movsx eax, byte [esi + ebx]
push eax
call fcn.004ce6a0
add esp, 4
mov byte [esi], al
inc esi
dec ebp
jne 0x408152
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
xor edx, edx
mov byte [esi], 0
mov dword [esp + 0x10], edx
xor esi, esi
test edi, edi
mov dword [esp + 0x14], edx
jle 0x4081c7
lea eax, [esp + esi + 0x34]
push 8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004ce5a0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
xor ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
xor ecx, ecx
call fcn.00468850
add esi, 8
cmp esi, edi
jl 0x408180
call fcn.00468830
cmp word [0x645f6c], 3
jne 0x4081e3
call fcn.0044add0
test eax, eax
je 0x4084dc
mov ecx, 8
mov edi, 0x4ed5f8
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408212
mov eax, dword [ebp]
xor eax, 0x200
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed590
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40823f
mov eax, dword [ebp]
xor eax, 0x10
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed598
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40826e
mov eax, dword [ebp]
xor eax, 0x40000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5a0
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40829d
mov eax, dword [ebp]
xor eax, 0x80000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5a8
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4082ca
mov eax, dword [ebp]
xor eax, 8
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5c8
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4082f9
mov eax, dword [ebp]
xor eax, 0x1000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5d0
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408328
mov eax, dword [ebp]
xor eax, 0x2000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5e0
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408357
mov eax, dword [ebp]
xor eax, 0x20000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5e8
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408386
mov eax, dword [ebp]
xor eax, 0x800
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5b0
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4083b3
mov eax, dword [ebp]
xor eax, 1
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5b8
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4083e0
mov eax, dword [ebp]
xor eax, 2
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed588
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40840d
mov eax, dword [ebp]
xor eax, 4
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5d8
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40843c
mov eax, dword [ebp]
xor eax, 0x4000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov al, byte [0x65aa4c]
test al, al
jne 0x4084dc
mov ecx, 8
mov edi, 0x4ed578
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408478
mov eax, dword [ebp]
xor eax, 0x80
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
test al, al
jne 0x4084dc
mov ecx, 8
mov edi, 0x4ed580
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4084a9
mov eax, dword [ebp]
xor eax, 0x40
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
test al, al
jne 0x4084dc
mov ecx, 8
mov edi, str.gw.x
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4084dc
mov eax, dword [ebp]
xor eax, 0x100
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
cmp word [0x645f6c], 3
jne 0x4084f3
call fcn.0044add0
test eax, eax
je 0x408573
mov ecx, 8
mov edi, 0x4ed600
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408522
mov eax, dword [ebp]
xor eax, 0x20000000
mov dword [ebp], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ecx, 8
mov edi, 0x4ed5f0
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408573
cmp word [0x645f6c], 3
jne 0x40863d
call fcn.00466a30
test eax, eax
je 0x40863d
mov al, byte [0x50880a]
test al, al
jne 0x40863d
call fcn.00472120
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov al, byte [0x65aa4c]
test al, al
jne 0x40864d
mov eax, dword [0x52568c]
test ah, 2
je 0x40864d
mov esi, 0x4ed608
mov ecx, dword [esi]
push ecx
call sub.Storm.dll_Ordinal_506
mov edx, dword [esi]
push eax
push edx
push ebx
call sub.Storm.dll_Ordinal_509
test eax, eax
je 0x4085b4
add esi, 0x10
cmp esi, 0x4ed668
jb 0x408593
cmp esi, 0x4ed668
jae 0x40864d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call sub.Storm.dll_Ordinal_506
mov ecx, eax
mov edx, edi
add ecx, ebx
call fcn.004c8360
test eax, eax
je 0x40863d
mov ecx, dword [esp + 0x18]
cmp ecx, 0x3f
je 0x40863d
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 4]
call fcn.0045b020
cmp word [0x645f6c], 3
jne 0x40862a
mov ecx, 4
call fcn.00448110
mov dword [0x64a320], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov word [0x645f6c], 4
mov dword [0x64a320], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret