Function at 0x40a120
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 0x44d961
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x348
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x324], edx
mov dword [ebp - 0x328], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x20]
cmp eax, 0x40
jae 0x40a183
xor esi, esi
jmp 0x40a8c5
lea edx, [eax - 0x20]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x168], xmm0
cmp eax, edx
jb 0x40a957
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebx + 0x24], 0xf
lea eax, [ebx + 0x10]
cmova eax, dword [ebx + 0x10]
push ecx
add eax, edx
lea ecx, [ebp - 0x168]
push eax
call fcn.00404a20
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov eax, dword [ebx + 0x20]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [eax - 0x20]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebx + 0x24], 0xf
lea eax, [ebx + 0x10]
cmova eax, dword [ebx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404a20
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x10]
call fcn.0040b8f0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x40a24a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a240
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
mov esi, dword [ebp - 0x158]
xor ecx, ecx
test esi, esi
je 0x40a282
mov dl, byte [ebx + 0xc]
nop dword [eax]
cmp dword [ebp - 0x154], 0xf
lea eax, [ebp - 0x168]
cmova eax, dword [ebp - 0x168]
xor byte [eax + ecx], dl
inc ecx
mov esi, dword [ebp - 0x158]
cmp ecx, esi
jb 0x40a260
cmp dword [ebx + 0x24], 0xf
lea eax, [ebx + 0x10]
push dword [ebx + 0x20]
cmova eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x1e0]
push eax
mov byte [ebp - 0x178], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1e0], 0x67452301
mov dword [ebp - 0x1dc], 0xefcdab89
mov dword [ebp - 0x1d8], 0x98badcfe
mov dword [ebp - 0x1d4], 0x10325476
call fcn.00403390
push ecx
lea ecx, [ebp - 0x1e0]
call fcn.00403290
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00403b60
cmp dword [ebp - 0x344], 0xf
lea ecx, [ebp - 0x358]
mov edi, dword [ebp - 0x358]
lea edx, [ebp - 0x168]
seta byte [ebp - 0x311]
cmova ecx, edi
cmp dword [ebp - 0x154], 0xf
cmova edx, dword [ebp - 0x168]
cmp esi, dword [ebp - 0x348]
jne 0x40a38d
sub esi, 4
jb 0x40a347
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40a34c
add edx, 4
add ecx, 4
sub esi, 4
jae 0x40a336
cmp esi, 0xfffffffc
je 0x40a380
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40a379
cmp esi, 0xfffffffd
je 0x40a380
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40a379
cmp esi, 0xfffffffe
je 0x40a380
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40a379
cmp esi, 0xffffffff
je 0x40a380
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40a380
sbb eax, eax
or eax, 1
jmp 0x40a382
xor eax, eax
mov byte [ebp - 0x312], 0
test eax, eax
je 0x40a394
mov byte [ebp - 0x312], 1
cmp byte [ebp - 0x311], 0
je 0x40a3cc
mov ecx, dword [ebp - 0x344]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x40a3c2
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a95c
push ecx
push edi
call fcn.0043439f
add esp, 8
cmp byte [ebp - 0x312], 0
je 0x40a3dc
xor esi, esi
jmp 0x40a889
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
mov edx, dword [ebx + 8]
mov byte [ebp - 4], 3
movups xmmword [ebp - 0x24], xmm0
cmp dword [edx + 0x14], 0xf
jbe 0x40a414
mov edx, dword [edx]
lea ecx, [ebp - 0x128]
call fcn.00402140
test byte [ebx + 0x20], 0xf
je 0x40a42f
mov esi, 0xd
jmp 0x40a834
test dword [ebx + 0x20], 0xfffffff0
mov dword [ebp - 0x318], 0
jbe 0x40a54d
xor edx, edx
mov dword [ebp - 0x31c], edx
nop
mov esi, dword [ebx + 0x10]
xor ecx, ecx
cmp dword [ebx + 0x24], 0xf
seta byte [ebp - 0x311]
cmp byte [ebp - 0x311], 0
lea eax, [ebx + 0x10]
cmovne eax, esi
add eax, edx
mov al, byte [eax + ecx]
mov byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0x10
jb 0x40a460
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x24]
call fcn.004023d0
xor esi, esi
nop dword [eax]
cmp dword [ebx + 0x3c], 0xf
lea eax, [ebx + 0x28]
mov cl, byte [ebp + esi - 0x24]
cmova eax, dword [ebx + 0x28]
mov edx, dword [ebp - 0x140]
mov edi, dword [ebp - 0x13c]
xor cl, byte [eax + esi]
mov byte [ebp - 0x16c], cl
cmp edx, edi
jae 0x40a4db
lea eax, [edx + 1]
cmp edi, 0xf
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x150]
cmova eax, dword [ebp - 0x150]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40a4fb
push dword [ebp - 0x16c]
mov byte [ebp - 0x320], 0
lea ecx, [ebp - 0x150]
push dword [ebp - 0x320]
push 1
call fcn.0040c280
cmp dword [ebx + 0x24], 0xf
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x31c]
cmova eax, dword [ebx + 0x10]
add eax, edx
cmp dword [ebx + 0x3c], 0xf
mov cl, byte [eax + esi]
lea eax, [ebx + 0x28]
cmova eax, dword [ebx + 0x28]
mov byte [eax + esi], cl
inc esi
cmp esi, 0x10
jb 0x40a490
mov edi, dword [ebp - 0x318]
add edx, 0x10
mov eax, dword [ebx + 0x20]
inc edi
shr eax, 4
mov dword [ebp - 0x318], edi
mov dword [ebp - 0x31c], edx
cmp edi, eax
jb 0x40a450
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x150]
mov edi, dword [ebp - 0x150]
cmp esi, 0xf
mov edx, dword [ebp - 0x140]
cmova eax, edi
mov cl, byte [eax + edx - 1]
lea eax, [ecx - 1]
cmp al, 0xf
ja 0x40a5b7
test cl, cl
jle 0x40a5b7
movzx eax, cl
mov dword [ebp - 0x31c], eax
cmp esi, 0xf
lea eax, [ebp - 0x150]
lea ecx, [edx - 1]
cmova eax, edi
mov dword [ebp - 0x140], ecx
sub dword [ebp - 0x31c], 1
mov byte [eax + ecx], 0
mov esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x140]
mov edi, dword [ebp - 0x150]
jne 0x40a583
mov eax, dword [ebp - 0x324]
cmp dword [eax + 0x14], 0xf
jbe 0x40a5c5
mov eax, dword [eax]
cmp esi, 0xf
lea ecx, [ebp - 0x150]
push eax
cmova ecx, edi
push ecx
call fcn.004094e0
mov edi, eax
lea eax, [ebp - 0x310]
push 0x12c
push 0
push eax
mov dword [ebp - 0x320], edi
call fcn.00437590
add esp, 0x14
mov dword [ebp - 0x318], 0
test edi, edi
jne 0x40a628
push dword [ebp - 0x1e8]
mov dword [0x468548], 0x10000
call fcn.004345cd
mov esi, eax
add esp, 4
mov eax, 0x10000
jmp 0x40a74f
cmp dword [edi], 1
je 0x40a647
push dword [ebp - 0x1e8]
mov dword [0x468548], 0x80000
call fcn.004345cd
jmp 0x40a728
mov edi, dword [edi + 4]
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.report.log]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x139], al
test al, al
jne 0x40a650
mov ecx, dword [edi]
lea edx, [ebp - 0x138]
push 2
call fcn.00407fb0
add esp, 4
test eax, eax
je 0x40a698
mov dword [ebp - 0x318], 0xffffffff
mov eax, 0x500
mov dword [ebp - 0x310], 0xffffffff
jmp 0x40a712
cmp dword [edi + 4], 0xffffffff
je 0x40a6f1
mov eax, dword [edi]
mov dword [ebp - 0x324], eax
test eax, eax
je 0x40a6f1
mov esi, dword [eax + 0x7c]
test esi, esi
je 0x40a6f1
mov eax, dword [esi]
test eax, eax
je 0x40a6c0
push eax
call fcn.0043abee
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x40a6d4
lea ecx, [esi + 4]
call fcn.00406c00
push esi
mov dword [esi + 0x40], 0
call fcn.0043abee
mov eax, dword [ebp - 0x324]
add esp, 4
mov dword [eax + 0x7c], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x310]
push ecx
mov dword [edi + 4], 0xffffffff
mov ecx, edi
mov eax, dword [eax + 0x10]
push eax
mov dword [ebp - 0x318], eax
call fcn.00408b20
push dword [ebp - 0x1e8]
mov dword [0x468548], eax
call fcn.004345cd
mov edi, dword [ebp - 0x320]
add esp, 4
mov esi, eax
cmp dword [edi], 1
je 0x40a739
mov eax, 0x80000
jmp 0x40a74f
push ecx
push dword [ebp - 0x1e8]
mov ecx, dword [edi + 4]
push esi
push dword [ebp - 0x318]
call fcn.00409300
push dword [ebp - 0x1e8]
xorps xmm0, xmm0
mov dword [0x468548], eax
push esi
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x330], 0
movups xmmword [ebp - 0x340], xmm0
mov dword [ebp - 0x32c], 0
call fcn.00404a20
mov edi, dword [ebp - 0x328]
lea eax, [ebp - 0x340]
cmp edi, eax
je 0x40a7ec
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x40a7c7
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x40a7bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
mov eax, edx
push ecx
push eax
call fcn.0043439f
add esp, 8
movups xmm0, xmmword [ebp - 0x340]
mov ecx, 0xf
mov byte [ebp - 0x340], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x330]
movq qword [edi + 0x10], xmm0
jmp 0x40a7f2
mov ecx, dword [ebp - 0x32c]
cmp ecx, 0xf
jbe 0x40a826
mov edx, dword [ebp - 0x340]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a81c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
push esi
call fcn.0043436a
add esp, 4
mov esi, 1
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x40a86e
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a864
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
mov eax, dword [ebp - 0x154]
cmp eax, 0xf
jbe 0x40a8c5
mov edx, dword [ebp - 0x168]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
mov ecx, dword [ebx + 0x24]
cmp ecx, 0xf
jbe 0x40a8f5
mov edx, dword [ebx + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0xf
mov byte [ebx + 0x10], 0
cmp ecx, 0xf
jbe 0x40a937
mov edx, dword [ebx + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a92d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a961
push ecx
push edx
call fcn.0043439f
add esp, 8
mov eax, esi
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.0043435c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040c020
call fcn.0043ae3e
call fcn.0043ae3e
int3