Function at 0x43f030
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov ebp, ecx
mov eax, dword [esp + 0x74]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0x100000
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], 0x700f0e0d
mov word [esp + 0x3c], 0
mov byte [esp + 0x3e], 0
xor eax, eax
nop
mov ecx, eax
add cl, 0x3d
xor cl, byte [esp + eax + 0x38]
add cl, 0xcf
mov byte [esp + eax + 0x38], cl
inc eax
cmp eax, 7
jne 0x43f080
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4510e4]
test ecx, ecx
je 0x43f0ee
xor edx, edx
mov esi, dword [0x4510e8]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x98d5a07f
je 0x43f0c0
inc edx
cmp ecx, edx
jne 0x43f0b0
jmp 0x43f0ee
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43f0ee
lea eax, [esp + 0x20]
lea edx, [esp + 0x10]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x24
test eax, eax
js 0x43f78a
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp], 0x919d9f9c
mov word [esp + 4], 0
mov eax, 0xa20f9e5
mov ecx, 0x1df061a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xa20f9e5]
mov edi, ecx
and edi, 0x18e0207
mov edx, eax
and edx, 0xa00a1a8
or edx, edi
lea edi, [eax - 0xa20f900]
xor edx, 0x7e51a5b8
or edx, esi
not esi
or esi, edi
and edx, esi
mov esi, edx
xor esi, 0x85
not edx
and edx, 5
add edx, edx
sub edx, esi
inc dl
mov byte [esp + eax - 0xa20f9e5], dl
inc eax
dec ecx
cmp eax, 0xa20f9eb
jne 0x43f150
mov esi, dword [esp]
cmp esi, 0x7ffffffe
ja 0x43f6fc
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ebp
jmp 0x43f1e4
mov ebp, dword [esp + 0x24]
mov ebx, esi
nop
nop
mov esi, dword [esp + 0x44]
add esi, dword [esp + 0x38]
cmp esi, 0x7fffffff
jae 0x43f6fc
mov ecx, dword [ebp]
mov dword [esp], 0x700f0e0d
lea eax, [esp + 4]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
nop
nop
nop
mov edx, eax
add dl, 0x3d
xor dl, byte [esp + eax]
add dl, 0xcf
mov byte [esp + eax], dl
inc eax
cmp eax, 7
jne 0x43f200
mov eax, dword [esp]
mov edx, dword [0x4510e4]
test edx, edx
mov dword [esp + 0x18], esi
je 0x43f270
xor esi, esi
mov edi, dword [0x4510e8]
nop
nop
nop
cmp dword [edi + esi*8], 0xc18bc4ba
je 0x43f240
inc esi
cmp edx, esi
jne 0x43f230
jmp 0x43f270
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov esi, dword [esp + 0x18]
je 0x43f270
push 0
push 0x1c
lea eax, [esp + 0x40]
push eax
push 0
push esi
push ecx
push 0x18
push edx
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x24
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x43f6fc
test eax, eax
js 0x43f1d0
cmp dword [esp + 0x48], 0x1000
jne 0x43f1d0
test byte [esp + 0x4c], 0x66
je 0x43f1d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x43f3da
mov dword [esp], 0x700f0e0d
lea ecx, [esp + 4]
mov byte [ecx + 2], 0
mov word [ecx], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x3d
xor dl, byte [esp + ecx]
add dl, 0xcf
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 7
jne 0x43f2d0
mov ecx, dword [0x4510e4]
test ecx, ecx
je 0x43f33e
mov edx, dword [esp]
xor esi, esi
mov edi, dword [0x4510e8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x6dbc3610
je 0x43f310
inc esi
cmp ecx, esi
jne 0x43f300
jmp 0x43f33e
mov ecx, dword [edi + esi*8 + 4]
cmp ecx, edx
je 0x43f33e
push 0x8000
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 0x10
push ecx
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x1c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp], 0x700f0e0d
lea eax, [esp + 4]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
mov ecx, eax
add cl, 0x3d
xor cl, byte [esp + eax]
add cl, 0xcf
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x43f360
mov eax, dword [esp]
mov ecx, dword [0x4510e4]
test ecx, ecx
je 0x43f3ce
xor edx, edx
mov esi, dword [0x4510e8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x98d5a07f
je 0x43f3a0
inc edx
cmp ecx, edx
jne 0x43f390
jmp 0x43f3ce
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43f3ce
push 4
push 0x3000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x24
test eax, eax
js 0x43f6fc
mov ecx, dword [esp + 0x20]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov edi, dword [ebp]
mov dword [esp], 0x700f0e0d
lea eax, [esp + 4]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
add bl, 0x3d
xor bl, byte [esp + eax]
add bl, 0xcf
mov byte [esp + eax], bl
inc eax
cmp eax, 7
jne 0x43f400
mov eax, dword [esp]
mov ebx, dword [0x4510e4]
test ebx, ebx
je 0x43f443
mov dword [esp + 0x28], edi
xor edi, edi
mov ebp, dword [0x4510e8]
nop
nop
nop
cmp dword [ebp + edi*8], 0xe6c7f7c6
je 0x43f665
inc edi
cmp ebx, edi
jne 0x43f430
mov edi, dword [esp + 0x18]
test eax, eax
jns 0x43f456
cmp eax, 0x8000000d
jne 0x43f1c8
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x68]
push dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
call fcn.0043f7a0
add esp, 0x18
mov ebp, dword [esp]
mov edx, dword [esp + 4]
cmp ebp, edx
mov ebx, esi
je 0x43f6d6
mov dword [esp + 0x54], ebp
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov eax, edi
jmp 0x43f4c9
mov edi, esi
mov esi, dword [esp + 0x28]
mov dword [edi + ebx], esi
add ecx, 4
add ebp, 4
cmp ebp, edx
mov ebx, edi
je 0x43f697
mov esi, dword [ebp]
add esi, eax
sub esi, dword [esp + 0x10]
mov dword [esp + 0x28], esi
mov edi, ebx
mov ebx, ecx
mov esi, edi
sub ebx, edi
cmp ecx, dword [esp + 0xc]
jne 0x43f4b0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
sar ebx, 2
lea eax, [ebx + 1]
mov edi, ebx
shr edi, 1
add edi, ebx
cmp edi, eax
ja 0x43f4fe
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004088e0
add esp, 4
test esi, esi
je 0x43f647
mov ebx, esi
mov dword [esp + 0x58], edi
cmp eax, esi
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x14]
mov esi, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
jbe 0x43f5ef
cmp ecx, esi
jbe 0x43f5ef
test edx, edx
je 0x43f633
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x30]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43f588
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43f570
add eax, edx
add ecx, edx
add edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
mov edi, ebx
sub edi, dword [esp + 0x14]
cmp edi, 0xfffffff8
ja 0x43f633
neg edx
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43f5a0
jmp 0x43f633
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
not ecx
or ecx, 0xfffffffc
add ecx, edx
add esi, ecx
inc esi
lea eax, [ebx + ecx]
inc eax
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test bl, 1
je 0x43f633
mov ecx, dword [esp + 0x1c]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
push dword [esp + 0xc]
call fcn.004088f0
add esp, 4
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
lea ecx, [eax + edi*4]
mov dword [esp + 0xc], ecx
mov ecx, eax
mov ebx, dword [esp + 0x1c]
add ecx, ebx
mov edi, eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
jmp 0x43f4b2
mov ebx, dword [ebp + edi*8 + 4]
cmp ebx, eax
mov edi, dword [esp + 0x18]
je 0x43f447
lea eax, [esp + 0x5c]
push eax
push ecx
push edx
push edi
push dword [esp + 0x38]
push 0x14
push ebx
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x20
jmp 0x43f447
mov eax, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x54]
test eax, eax
mov ebp, dword [esp + 0x24]
je 0x43f6f3
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x2c]
je 0x43f1d0
push eax
call fcn.004088f0
add esp, 4
mov dword [esp], 0
jmp 0x43f1d0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov ebp, dword [esp + 0x24]
jmp 0x43f1d0
mov dword [esp + 0x14], ecx
jmp 0x43f1d0
mov dword [esp], 0x700f0e0d
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x3d
xor cl, byte [esp + eax]
add cl, 0xcf
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x43f720
mov eax, dword [0x4510e4]
test eax, eax
je 0x43f78a
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0x4510e8]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x6dbc3610
je 0x43f760
inc edx
cmp eax, edx
jne 0x43f750
jmp 0x43f78a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43f78a
lea ecx, [esp + 0x34]
lea edx, [esp + 0x10]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x4510ec]
call fcn.004414e0
add esp, 0x1c
mov eax, dword [esp + 0x74]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 0x10