Function at 0x407750
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x41bc38]
sub esp, 0x550
test al, 1
push ebx
push ebp
mov ebp, dword [esp + 0x55c]
push esi
push edi
je 0x4077df
xor eax, eax
xor ecx, ecx
mov al, byte [ebp + 0xb]
mov cl, byte [ebp + 0xa]
xor edx, edx
push eax
mov dl, byte [ebp + 9]
push ecx
xor eax, eax
push edx
mov al, byte [ebp + 8]
xor ecx, ecx
mov cl, byte [ebp + 7]
xor edx, edx
mov dl, byte [ebp + 6]
push eax
push ecx
xor eax, eax
mov al, byte [ebp + 5]
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp + 4]
mov dl, byte [ebp + 3]
push eax
push ecx
xor eax, eax
push edx
mov al, byte [ebp + 2]
xor ecx, ecx
mov cl, byte [ebp + 1]
xor edx, edx
mov dl, byte [ebp]
push eax
mov eax, dword [esp + 0x590]
push ecx
push edx
push eax
lea ecx, [esp + 0x194]
push str._ld:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x19c]
push 0
push edx
call fcn.004038a0
add esp, 0x44
push 0x888e
call sub.WSOCK32.dll_htons
cmp word [ebp + 0xc], ax
jne case.0x407844.2
cmp dword [esp + 0x568], 0x1e
jl case.0x407844.2
mov al, byte [ebp + 0xf]
test al, al
jne case.0x407844.2
mov edx, dword [0x412020]
cmp edx, 0x64
jge case.0x407844.2
lea ebx, [ebp + 6]
mov ecx, 3
mov edi, 0x416fde
mov esi, ebx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
je case.0x407844.2
mov al, byte [ebp + 0x12]
lea ecx, [eax - 1]
cmp ecx, 3
ja case.default.0x407844
jmp dword [ecx*4 + 0x407f90]
mov al, byte [ebp + 0x16]
cmp al, 1
jne 0x4079d8
cmp edx, 3
jne 0x40786a
mov dword [0x41bcd4], 0x5a
jmp 0x407917
cmp edx, 2
jne 0x40787f
call fcn.00407250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
xor eax, eax
cmp edx, eax
je 0x407893
cmp edx, 1
jne case.0x407844.2
jmp 0x407917
mov edx, dword [esp + 0x568]
xor ecx, ecx
cmp edx, 0x1f4
setle cl
mov dword [0x41bd04], ecx
mov ecx, dword [0x41bc38]
test ecx, 0x1000000
je 0x4078be
mov dword [0x41bd04], eax
mov dword [0x41bcdc], eax
mov al, byte [0x41bc58]
test al, 2
mov dword [0x41bc48], 2
mov dword [0x412020], 1
je 0x4078fa
mov edx, dword [0x41240c]
mov ax, word [0x412410]
mov dword [0x416fd8], edx
mov word [0x416fdc], ax
jmp 0x407917
mov ecx, dword [ebx]
mov dword [0x416fd8], ecx
mov dx, word [ebx + 4]
mov word [0x416fdc], dx
mov dword [0x41bc48], 3
mov ecx, 0x102
xor eax, eax
mov edi, 0x416fe6
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xd
push ecx
call sub.WSOCK32.dll_htons
mov word [0x416fe8], ax
mov byte [0x416fe7], 0
mov byte [0x416fe6], 1
mov byte [0x416fea], 2
mov cl, byte [ebp + 0x13]
mov word [0x416fec], ax
mov byte [0x416feb], cl
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x41b538
mov edx, ecx
mov edi, 0x416fef
shr ecx, 2
mov byte [0x416fee], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41b538
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x41453c]
not ecx
dec ecx
add ecx, 0x416ff0
mov word [ecx], ax
mov eax, dword [0x4174f4]
test eax, eax
jne 0x4079c3
mov edx, dword [0x4174fc]
mov dword [ecx + 4], edx
push 0
call fcn.00407410
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp al, 4
jne 0x407dcc
mov al, byte [ebp + 0x17]
test al, al
je 0x407db2
cmp al, 0x20
ja 0x407db2
cmp edx, 1
jne case.0x407844.2
mov ecx, 0x102
xor eax, eax
mov edi, 0x416fe6
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x1e
push ecx
call sub.WSOCK32.dll_htons
mov word [0x416fe8], ax
mov byte [0x416fe7], 0
mov byte [0x416fe6], 1
mov byte [0x416fea], 2
mov cl, byte [ebp + 0x13]
mov word [0x416fec], ax
mov byte [0x416feb], cl
mov edi, 0x41b553
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dl, byte [ebp + 0x13]
mov esi, 0x41b553
not ecx
dec ecx
mov byte [0x416fef], dl
mov eax, ecx
mov edx, ecx
mov edi, 0x416ff0
lea ebx, [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov esi, ebx
mov cl, byte [ebp + 0x17]
lea edi, [eax + 0x416ff0]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [ebp + 0x17]
lea edx, [ecx + eax + 1]
push edx
push 0x416fef
call fcn.00404b60
mov eax, dword [0x417d90]
mov ecx, dword [0x417d94]
mov dword [0x416ff0], eax
mov dword [0x416ff4], ecx
mov dword [0x41b29d], eax
mov dword [0x41b2a1], ecx
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov esi, dword [0x417d9c]
mov edx, dword [0x417d98]
not ecx
dec ecx
mov dword [0x416ffc], esi
mov eax, ecx
mov dword [0x41b2a9], esi
mov esi, 0x41b538
mov edi, 0x417000
shr ecx, 2
mov dword [0x416ff8], edx
mov byte [0x416fee], 4
mov byte [0x416fef], 0x10
mov dword [0x41b2a5], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + 0x17], 0x10
jne 0x407b69
mov cx, word [ebp + 0x14]
push ecx
call sub.WSOCK32.dll_htons
cmp ax, 0x1a
jb 0x407b69
lea edx, [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
mov dword [0x414ae8], eax
mov ecx, dword [edx + 4]
mov dword [0x414aec], ecx
mov eax, dword [edx + 8]
mov dword [0x414af0], eax
mov eax, dword [edx + 0xc]
mov dword [0x414af4], eax
jmp 0x407b7f
xor eax, eax
mov dword [0x414af4], eax
mov dword [0x414ae8], eax
mov dword [0x414aec], eax
mov dword [0x414af0], eax
cmp ah, 0x82
je 0x407cfd
xor ecx, ecx
mov dword [0x414ae8], ecx
mov dword [0x414aec], ecx
mov dword [0x414af0], ecx
mov dword [0x414af4], ecx
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, 0x41b538
mov byte [ecx + 0x416fff], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov cx, word [0x41453c]
add ebp, 0x417001
mov word [ebp], cx
mov byte [ebp + 2], 1
mov eax, dword [0x4174f4]
test eax, eax
jne 0x407bec
mov edx, dword [0x4174fc]
mov dword [ebp + 4], edx
mov cl, byte [ebp + 3]
mov byte [ebp + 2], 2
and cl, 0xfd
mov byte [ebp + 3], cl
mov al, byte [0x414af7]
test al, 4
je 0x407cb1
mov edi, 0x41b553
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
cmp edx, 0x10
jle 0x407c21
mov edx, 0x10
mov ecx, edx
mov esi, 0x41b553
mov eax, ecx
mov edi, 0x416ff0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [edx + 0x416ff0]
sub ecx, edx
push ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00404b60
add esp, 8
xor eax, eax
mov cl, byte [eax + 0x417d90]
mov bl, byte [eax + 0x416ff0]
xor bl, cl
mov byte [eax + 0x416ff0], bl
inc eax
cmp eax, 0x10
jl 0x407c65
mov edx, dword [0x416ff0]
mov eax, dword [0x416ff4]
mov ecx, dword [0x416ff8]
mov dword [0x41b29d], edx
mov edx, dword [0x416ffc]
mov dword [0x41b2a1], eax
mov dword [0x41b2a5], ecx
mov dword [0x41b2a9], edx
or byte [ebp + 3], 2
mov ecx, dword [0x41bcdc]
mov eax, 2
test ecx, ecx
mov dword [0x41bc48], eax
mov dword [0x412020], eax
je 0x407cd0
or dword [0x41bc58], eax
test dword [0x41bc38], 0x400000
je 0x407ce8
mov eax, dword [0x41bc58]
and al, 0xfd
mov dword [0x41bc58], eax
push 0
call fcn.00407410
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
mov cx, word [0x414af6]
test cl, cl
je 0x407d69
mov esi, dword [esp + 0x568]
xor eax, eax
mov al, cl
lea edx, [eax + 0x2c]
cmp esi, edx
jl 0x407d69
mov ecx, eax
lea esi, [ebp + 0x2c]
mov edx, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x50], 0
xor esi, esi
lea eax, [esp + 0x50]
push esi
push eax
call fcn.004038a0
add esp, 8
mov dword [0x412020], 0x64
mov dword [0x41bc48], esi
mov dword [0x41b504], esi
push 1
mov byte [0x41205e], 0
push 0x4e
jmp 0x407d91
test ch, 1
je 0x407ba2
xor eax, eax
push 1
mov dword [0x412020], 0x64
mov dword [0x41bc48], eax
mov dword [0x41b504], eax
mov byte [0x41205e], al
push 0x5c
call fcn.004036d0
add esp, 4
push eax
call fcn.004038a0
add esp, 8
call fcn.00401540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
push 0
push str.pRecvData__eap_data.data0_or__32
call fcn.004038a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp al, 2
jne case.0x407844.2
cmp edx, 2
jne case.0x407844.2
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.dll_htons
mov cx, word [ebp + 0x10]
mov dx, ax
and edx, 0xffff
cmp cx, word [ebp + 0x14]
jne case.0x407844.2
mov ecx, dword [esp + 0x568]
lea eax, [edx + 0x12]
cmp ecx, eax
jl case.0x407844.2
cmp edx, 5
jle case.0x407844.2
test byte [0x41bcb8], 1
jne 0x407e7e
mov ebx, dword [0x41bcb8]
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
or ebx, 1
sub dl, 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x41bcb8], ebx
add ecx, 0x417001
and edx, 0x7f
lea esi, [ebp + 0x17]
lea edi, [esp + 0x50]
mov bl, byte [ecx + 3]
or bl, 1
mov byte [ecx + 3], bl
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
mov byte [esp + edx + 0x50], 0
push ecx
call fcn.00409c60
add esp, 4
mov dl, byte [ebp + 0x13]
push 0
mov byte [0x416feb], dl
call fcn.00407410
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp edx, 2
jne case.0x407844.2
call fcn.00407250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp edx, 4
jne 0x407f12
push 1
push 0x4f
mov dword [0x412020], 0x64
mov dword [0x41bc48], 0
call fcn.004036d0
add esp, 4
push eax
call fcn.004038a0
add esp, 8
call fcn.00401540
test byte [0x41bc38], 8
je case.0x407844.2
mov eax, dword [0x41b648]
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp edx, 2
jne case.0x407844.2
mov eax, dword [0x41bcb8]
xor esi, esi
cmp eax, esi
jne 0x407f37
push 1
push 0x4e
call fcn.004036d0
add esp, 4
push eax
call fcn.004038a0
add esp, 8
mov dword [0x412020], 0x64
mov dword [0x41bc48], esi
mov dword [0x41b504], esi
mov byte [0x41205e], 0
call fcn.00401540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
push eax
lea ecx, [esp + 0x14]
push 0x414508
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.004038a0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x550
ret