Function at 0x403710
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46673b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x47d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x9d], dl
mov dword [ebp - 0x8c], ecx
mov ecx, 0x48537c
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403780
sub ecx, edx
push ecx
push 0x48537c
lea ecx, [ebp - 0x60]
call fcn.00405360
mov dword [ebp - 4], 0
cmp dword [ebp - 0x50], 0
jne 0x4037ad
mov byte [ebp - 0x79], 0
jmp 0x403f9d
mov edx, dword [ebp - 0x8c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
xor esi, esi
movq qword [ebp - 0x20], xmm0
mov eax, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x30], vtable.ByteBuffer.0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x80], eax
je 0x403894
cmp eax, 0x7fffffff
ja 0x403fee
cmp eax, 0x1000
jb 0x403848
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x403ff3
push ecx
call fcn.0044097f
add esp, 4
test eax, eax
je 0x404007
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ebp - 0x90], ecx
mov dword [ecx - 4], eax
jmp 0x403859
push eax
call fcn.0044097f
add esp, 4
mov dword [ebp - 0x90], eax
mov ecx, eax
mov eax, dword [ebp - 0x80]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
sub esi, eax
push esi
push eax
push ecx
call fcn.00443620
mov ecx, dword [ebp - 0x90]
add esp, 0xc
add esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x1c], esi
mov eax, esi
mov byte [ebp - 4], 1
sub eax, ecx
movzx eax, ax
cmp eax, 0x33
jae 0x403966
mov ecx, 0x33
mov byte [ebp - 0x79], 0
sub ecx, eax
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jle 0x403966
call fcn.00446919
cdq
mov ecx, 0xff
idiv ecx
mov ecx, dword [ebp - 0x90]
mov eax, esi
mov byte [ebp - 0x85], dl
sub eax, ecx
lea edx, [edi + 1]
mov dword [ebp - 0x80], eax
cmp eax, edx
jae 0x403942
mov eax, dword [ebp - 0xa4]
sub eax, ecx
cmp edx, eax
jbe 0x403918
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004058a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], ecx
jmp 0x40393c
sub edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
add esi, edx
mov eax, esi
sub eax, ecx
push eax
push 0
push ecx
call fcn.00443480
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x84], esi
mov al, byte [ebp - 0x85]
mov byte [ecx + edi], al
inc edi
mov al, byte [ebp - 0x79]
inc al
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x79], al
movzx eax, al
cmp eax, dword [ebp - 0x9c]
jl 0x4038c1
cmp byte [0x485451], 0
jne 0x403981
call fcn.0044672d
push eax
call fcn.00404e30
mov byte [0x485451], 1
mov ecx, 0x47db38
call fcn.004059b0
mov ecx, 0xb
mul ecx
cmp eax, ecx
jae 0x4039b7
cmp eax, 4
jae 0x4039b7
mov esi, ecx
nop dword [eax]
mov ecx, 0x47db38
call fcn.004059b0
mul esi
cmp eax, 4
jb 0x4039a0
mov esi, dword [ebp - 0x84]
add edx, reloc.XINPUT1_4.dll_Ordinal_2
test dl, dl
je 0x403a6e
movzx eax, dl
mov dword [ebp - 0x80], eax
nop dword [eax + eax]
call fcn.00446919
cdq
mov ecx, 0xff
idiv ecx
mov ecx, dword [ebp - 0x90]
mov eax, esi
mov byte [ebp - 0x85], dl
sub eax, ecx
lea edx, [edi + 1]
mov dword [ebp - 0x9c], eax
cmp eax, edx
jae 0x403a57
mov eax, dword [ebp - 0xa4]
sub eax, ecx
cmp edx, eax
jbe 0x403a2a
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004058a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], ecx
jmp 0x403a51
sub edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x84]
add esi, edx
mov eax, esi
sub eax, ecx
push eax
push 0
push ecx
call fcn.00443480
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x84], esi
mov al, byte [ebp - 0x85]
mov byte [ecx + edi], al
inc edi
sub dword [ebp - 0x80], 1
mov dword [ebp - 0x24], edi
jne 0x4039d0
mov edi, dword [ebp - 0x90]
sub esi, edi
movzx eax, si
mov dword [ebp - 0x94], eax
movzx eax, ax
push eax
mov dword [ebp - 0x84], eax
call fcn.00440c0e
add esp, 4
mov dword [ebp - 0x9c], eax
test esi, esi
mov esi, dword [ebp - 0x84]
je 0x403ab2
push esi
push edi
push eax
call fcn.00443620
mov eax, dword [ebp - 0x9c]
add esp, 0xc
push esi
push eax
mov dword [0x483eec], 0
mov dword [0x483ee8], 0
mov dword [0x483ed8], 0x67452301
mov dword [0x483edc], 0xefcdab89
mov dword [0x483ee0], 0x98badcfe
mov dword [0x483ee4], 0x10325476
call fcn.00403360
call fcn.00403420
mov ecx, 0x483f40
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b17
sub ecx, edx
push ecx
push 0x483f40
lea ecx, [ebp - 0x48]
call fcn.00405360
mov esi, closesocket
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x50]
mov eax, esi
sub eax, edx
cmp eax, edx
jb 0x403ff8
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
jbe 0x403b56
mov eax, dword [ebp - 0x60]
mov ecx, eax
jmp 0x403b59
lea ecx, [ebp - 0x60]
push edx
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0xd4]
call fcn.00405770
lea edx, [ebp - 0xd4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbc]
call fcn.00405d00
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00405d00
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa8]
cmp ecx, 0xf
jbe 0x403bd0
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403bc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ffd
push ecx
push edx
call fcn.00440c00
add esp, 8
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xc0]
cmp ecx, 0xf
jbe 0x403c29
mov edx, dword [ebp - 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ffd
push ecx
push edx
call fcn.00440c00
add esp, 8
sub esi, dword [ebp - 0x68]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x98], edx
cmp esi, dword [ebp - 0x38]
jb 0x404002
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
push dword [ebp - 0x38]
cmova ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0xf
cmova eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x68]
push ecx
push ecx
push dword [ebp - 0x94]
mov ecx, edx
call fcn.00405770
call fcn.00405b90
mov ecx, dword [ebp - 0x84]
xor edx, edx
movzx eax, cl
mov esi, 0x86d
imul eax, eax, 0x9d
mov dword [ebp - 0x80], eax
test ecx, ecx
je 0x403cb7
mov edi, ecx
mov eax, edx
mov ecx, esi
and eax, 7
sar ecx, 8
imul esi, esi, 0x87b
xor cl, byte [eax + 0x485528]
mov eax, dword [ebp - 0x9c]
xor cl, byte [ebp - 0x80]
xor byte [eax + edx], cl
inc edx
cmp edx, edi
jl 0x403c90
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x10]
lea esi, [edx + 0x10]
cmp eax, dword [esi + 4]
je 0x403ccb
mov dword [esi + 4], eax
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x80], eax
sub eax, ecx
cmp eax, 1
jae 0x403d28
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 1
jae 0x403cfe
push ecx
push 1
mov ecx, esi
call fcn.004058a0
jmp 0x403d22
mov eax, dword [ebp - 0x80]
sub ecx, eax
inc ecx
push ecx
push 0
push eax
mov dword [ebp - 0x98], ecx
call fcn.00443480
mov eax, dword [ebp - 0x98]
add esp, 0xc
add eax, dword [ebp - 0x80]
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0xc]
mov ecx, dword [esi]
mov dl, byte [ebp - 0x9d]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0x8c]
inc dword [edx + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x80], ecx
lea ecx, [eax + 2]
mov eax, dword [ebp - 0x80]
sub eax, dword [esi]
cmp eax, ecx
jae 0x403d9f
mov edx, dword [ebp - 0x80]
mov eax, edx
sub eax, dword [esi]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x403d75
push ecx
push ecx
mov ecx, esi
call fcn.004058a0
jmp 0x403d99
sub ecx, dword [ebp - 0x98]
push ecx
push 0
push edx
mov dword [ebp - 0x98], ecx
call fcn.00443480
mov eax, dword [ebp - 0x98]
add esp, 0xc
add eax, dword [ebp - 0x80]
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0xc]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x94]
movzx edi, dx
mov edx, dword [ebp - 0x8c]
mov word [ecx + eax], di
mov edi, dword [ebp - 0x90]
mov eax, dword [edx + 0xc]
add eax, 2
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 4]
mov dword [ebp - 0x80], ecx
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x80]
sub eax, dword [esi]
cmp eax, ecx
jae 0x403e23
mov edx, dword [ebp - 0x80]
mov eax, edx
sub eax, dword [esi]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x403df9
push ecx
push ecx
mov ecx, esi
call fcn.004058a0
jmp 0x403e1d
sub ecx, dword [ebp - 0x94]
push ecx
push 0
push edx
mov dword [ebp - 0x94], ecx
call fcn.00443480
mov eax, dword [ebp - 0x94]
add esp, 0xc
add eax, dword [ebp - 0x80]
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x8c]
mov ecx, dword [esi]
mov eax, dword [edx + 0xc]
mov dword [ecx + eax], 0x51515151
lea eax, [ebp - 0x78]
add dword [edx + 0xc], 4
mov ecx, edx
cmp dword [ebp - 0x64], 0xf
cmova eax, dword [ebp - 0x78]
push eax
call fcn.00402930
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x8c]
cmova eax, dword [ebp - 0x48]
push eax
call fcn.00402930
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x403ef3
mov eax, dword [ebp - 0x8c]
mov edx, dword [esi + 4]
mov dword [ebp - 0x98], edx
add ecx, dword [eax + 0xc]
mov eax, edx
sub eax, dword [esi]
cmp eax, ecx
jae 0x403eca
mov eax, edx
sub eax, dword [esi]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x403ea3
push ecx
push ecx
mov ecx, esi
call fcn.004058a0
jmp 0x403eca
sub ecx, dword [ebp - 0x94]
push ecx
push 0
push edx
mov dword [ebp - 0x94], ecx
call fcn.00443480
mov eax, dword [ebp - 0x94]
add esp, 0xc
add eax, dword [ebp - 0x98]
mov dword [esi + 4], eax
mov eax, dword [esi]
push dword [ebp - 0x84]
mov esi, dword [ebp - 0x8c]
push dword [ebp - 0x9c]
add eax, dword [esi + 0xc]
push eax
call fcn.00443620
mov eax, dword [ebp - 0x84]
add esp, 0xc
add dword [esi + 0xc], eax
push dword [ebp - 0x9c]
call fcn.0044097a
mov ecx, dword [ebp - 0x64]
add esp, 4
mov byte [ebp - 0x79], 1
cmp ecx, 0xf
jbe 0x403f39
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404007
push ecx
push edx
call fcn.00440c00
add esp, 8
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x403f6d
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404007
push ecx
push edx
call fcn.00440c00
add esp, 8
test edi, edi
je 0x403f9d
mov ecx, dword [ebp - 0xa4]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x403f93
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404007
push ecx
push edi
call fcn.00440c00
add esp, 8
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x403fcd
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403fc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404007
push ecx
push edx
call fcn.00440c00
add esp, 8
mov al, byte [ebp - 0x79]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044096c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00405080
call fcn.00402820
call fcn.004028c0
call fcn.004498c1
call fcn.004028c0
call fcn.004498c1
int3