Function at 0x10043040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100939ae
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa0]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0xc4]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0xdc]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xe0]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xe4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xe8]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xec]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10043f40
movzx eax, word [esi + 0xf6]
xor ecx, ecx
movaps xmm0, xmmword [0x100af280]
push eax
movzx eax, word [esi + 0xf4]
push eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x11505a
nop dword [eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10043160
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1004318e
mov eax, dword [edx]
jmp 0x10043190
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x1004319d
xor ecx, ecx
jmp 0x100431ac
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100431a3
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10004d00
lea eax, [ebp - 0x54]
push eax
call fcn.10004670
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x100431d5
mov edx, dword [edx]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x100431f0
xor ecx, ecx
jmp 0x100431fe
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100431f5
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1004322e
push 4
push edi
call ebx
test eax, eax
jne 0x1004322e
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x100adae4]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10043243
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004bb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x10043271
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10004bb0
mov cl, 0x50
mov byte [ebp - 0x6a], 0
mov al, 0x7d
mov byte [ebp - 0x6c], cl
xor al, cl
mov byte [ebp - 0x6a], 0
mov byte [ebp - 0x6b], al
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x1004329d
xor ecx, ecx
jmp 0x100432ac
lea ecx, [ebp - 0x6b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100432a3
sub ecx, edx
push ecx
lea eax, [ebp - 0x6b]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 2
mov edi, dword [esi + 0x54]
test edi, edi
je 0x100432dc
push 4
push edi
call ebx
test eax, eax
jne 0x100432dc
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x100adae4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100432f8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004bb0
movsd xmm0, qword [0x100aedf0]
sub esp, 8
xor ecx, ecx
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x100aefc0]
movups xmmword [ebp - 0x7c], xmm0
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0xe
jb 0x10043315
sub esp, 0x18
mov byte [ebp - 0x6d], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10043343
mov eax, dword [edx]
jmp 0x10043345
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x7b], 0
jne 0x10043352
xor ecx, ecx
jmp 0x10043361
lea ecx, [ebp - 0x7b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10043358
sub ecx, edi
push ecx
lea eax, [ebp - 0x7b]
mov ecx, edx
push eax
call fcn.10004d00
lea eax, [ebp - 0xac]
push eax
call fcn.10004670
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x1004338d
mov edx, dword [edx]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
cmp byte [edx], 0
jne 0x100433ae
xor ecx, ecx
jmp 0x100433bc
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100433b3
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.10004d00
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x58]
test edi, edi
je 0x100433ec
push 4
push edi
call ebx
test eax, eax
jne 0x100433ec
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call dword [0x100adae4]
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x10043407
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.10004bb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
cmp eax, 0x10
jb 0x10043444
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.10004bb0
mov ecx, esi
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
call fcn.10042bd0
mov edi, dword [esi]
test edi, edi
je 0x1004347f
push 4
push edi
call ebx
test eax, eax
jne 0x1004347f
push 1
mov ecx, edi
call dword [0x100ada80]
mov byte [esi + 0xfa], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10059ed0
mov esp, ebp
pop ebp
ret