Function at 0x4037e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0
add byte [esp + 0x24], dh
cmp esi, 0x7fff0018
jae 0x4037d0
add byte [esp + 0x20], bh
mov eax, dword [edi - 0x38]
add al, dh
jae 0x403745
sub esp, 4
inc dword [eax]
add byte [esi + 0x57], dl
call 0x10d37e1
add esp, 0x10
jmp 0x4037c3
cmp esi, 0
add byte [edi - 0x76], bl
dec esp
and al, 0x28
cld
add byte [edi + edx*2 - 0x75], dh
dec edi
adc al, 0x39
int1
add byte [eax], al
ja 0x40375d
mov ebx, ecx
add dword [edx], 0
jb 0x403796
lea ecx, [edi + 4]
mov ebp, dword [ecx]
add byte [eax], al
je 0x40377c
sub esp, 4
popfd
add byte [ecx - 0x18], dl
push ebx
xor byte [ebp], bh
add dword [eax], 0
mov eax, dword [edi + 0x18]
lea eax, [ebx]
cmp eax, 0x1000
jb 0x40378a
add byte [eax], al
cld
sub esp, 0xc
push ebp
stosd dword es:[edi], eax
add byte [edi + 0x7c], ch
add byte [ebx + 0xc710c4], al
add byte [edi], al
add byte [eax], al
mov dword [eax], 0x700
add byte [ecx - 0x3899ff41], cl
inc esp
pop edi
add al, 0
add byte [eax], al
add byte [ebp - 0x72e98a0a], al
sbb eax, dword [eax]
cmp eax, 8
jb 0x4037b7
mov ecx, dword [ecx]
add byte [eax], al
adc al, 0
add byte [eax], al
add byte [edi], dh
add dword [eax], eax
add byte [ebp + 0x950ff6], al
test esi, esi
setne byte [eax]
add ah, al
or al, 0x5e
pop edi
pop ebx
cmp dword [eax], eax
sub esp, 0xc
push 0xd9844c
add byte [ebp + ebp*8 - 0x617cff84], dh
add byte [eax + 0x53e58955], dl
push edi
push esi
add byte [eax], al
mov word [eax], es
add byte [eax], al
mov esp, dword [eax + eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [eax], eax
add byte [ecx + 0x4589e84d], cl
rol dword [eax], 0x75
call 0x8b480689
pop ebp
add byte [eax], al
inc ebp
mov al, byte [0xe2beb048]
add byte [ebp - 0x5c], al
or al, 0x87
fld dword [eax]
mov dword [eax], eax
add byte [ecx + 0x45c7b065], cl
dec edi
add byte [esi + 0x40], dl
add byte [ebp + 0xe88445], cl
add byte [esi], bh
cmp esi, 0x7f002ffe
ja 0x403861
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add byte [ecx - 0x45102e31], cl
add byte [edx - 0x80f7656], ch
loop 0x403818
add byte [eax], al
xlatb
mov ebx, esi
jbe 0x403861
rol byte [eax], 0xff
invalid
mov ecx, dword [ebp - 0x10]
mov eax, ebx
inc eax
add byte [eax], al
test eax, eax
js 0x4107c5
add eax, eax
cmp eax, 0x1000
add byte [ebp - 0x14], bl
jb 0x4038b7
mov ebp, dword [esi]
cmp eax, 0xffffffdd
jae 0x4039da
mov ecx, dword [ebp - 0x10]
add eax, 0x60
add byte [ebp - 0x28], cl
mov dword [ebp - 0x74], 3
mov dword [esp], eax
call fcn.00407a29
mov esi, eax
add esi, 0x23
add dword [eax], 0
mov dword [esi - 4], eax
jmp 0x4038ce
add byte [eax], al
invalid
out dx, eax
add ah, ch
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], esi
add byte [eax], al
je 0x4038da
invalid
invalid
mov dword [ebp - 0x28], ecx
invalid
sbb eax, 0xf74324e4
add byte [eax], dl
dec ebx
salc
mov ch, 0x42
fmul st(4), st(0)
and edi, dword [esp + ecx*8 - 0x5434103e]
mov esp, 0xcbefc2cc
stosd dword es:[edi], eax
inc eax
jo 0x4107f5
std
jne 0x4107d3
mov ah, 0x48
rcr al, cl
mov ah, 0xe4
pop ss
imul edi, ecx, 0x4677f41e
mov dword [0x136132f], eax
or dh, 0x86
jo 0x4107ca
cmp ebp, dword [esi + 0x5e]
dec edi
sub eax, 0x2d183d94
jb 0x410837
sbb byte [ebx - 0x67a04c94], dh
mov dword [ecx - 0x58e3b220], ebp
adc eax, 0x6aa0d39e
xchg ebp, eax
bound eax, qword [eax - 0x75f686cc]
inc edi
mov ecx, 0x37ade387
xor al, 0x79
or dword [edx - 0x1c7846b9], ecx
lodsd eax, dword [esi]
aaa
rcl byte [eax - 0x479fffe4], 0x73
wait
je 0x410817
in al, dx
xor eax, 0xf29327e
lcall 0x8c55, 0x72436448
adc byte [esi + 0x53], dh
mov word [eax], ss
jbe 0x41088e
in eax, 0x5a
push 0x2283b60e
sbb eax, 0x3cacb53f
xchg ebp, eax
rcl dword [eax], 0xa8
or esp, dword [ebx + 0x5c]
nop
push es
invalid
lodsb al, byte [esi]
popfd
invalid
invalid