Function at 0x102940b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x58]
xor ebx, ebx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x104
jbe 0x1029175
push 0xe
pop eax
jmp 0x102947b
push eax
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_CharToOemBuffA]
cmp dword [esi + 0x14], ebx
jg 0x10291a3
jl 0x1029193
cmp dword [esi + 0x10], 0xffffffff
ja 0x10291a3
cmp dword [esi + 0x1c], ebx
jl 0x1029208
jg 0x10291a3
cmp dword [esi + 0x18], 0xd09dc300
jbe 0x1029208
mov ecx, dword [esi + 0x24]
push 0x14
pop eax
add ecx, eax
push ecx
mov dword [ebp - 0x114], eax
call fcn.0101be72
pop ecx
mov dword [ebp - 0x124], eax
cmp eax, ebx
jne 0x10291c6
push 4
jmp 0x102916f
xor ecx, ecx
inc ecx
mov word [eax], cx
push 0x10
pop ecx
mov word [eax + 2], cx
mov ecx, dword [esi + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x24]
cmp eax, ebx
jbe 0x1029208
push eax
push dword [esi + 0x4c]
mov eax, dword [ebp - 0x124]
add eax, 0x14
push eax
call fcn.0102caae
add esp, 0xc
push edi
mov di, word [ebp - 0x114]
movzx eax, di
lea ecx, [ebp - 0x110]
push ecx
cdq
push edx
push eax
push ebx
push 0x1e
call fcn.01028516
test eax, eax
jl 0x102946b
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x120]
push ecx
push ebx
push eax
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call fcn.01028516
test eax, eax
jl 0x102946b
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x110]
push ecx
push ebx
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call fcn.01028516
test eax, eax
jl 0x102946b
cmp dword [ebp - 0x10c], ebx
jl 0x102946b
jg 0x1029291
cmp dword [ebp - 0x110], ebx
jb 0x102946b
lea eax, [ebp - 0x10c]
push eax
movzx eax, di
push eax
push TlsFree
call fcn.010284e8
test eax, eax
jl 0x102946b
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 0x20]
push dword [ebp - 0x10c]
call fcn.010284e8
test eax, eax
jl 0x102946b
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 0x24]
push dword [ebp - 0x10c]
call fcn.010284e8
test eax, eax
jl 0x102946b
push dword [ebp - 0x10c]
call fcn.0101be72
pop ecx
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x1029463
mov dword [ebx], 0x4034b50
cmp di, cx
jbe 0x102930e
mov ax, word [esi + 2]
jmp 0x1029325
movzx eax, word [esi + 2]
cmp ax, 0x2d
jb 0x1029325
xor eax, eax
cmp word [esi + 6], 9
sete al
add eax, 0x14
mov word [ebx + 4], ax
mov ax, word [esi + 0x36]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov eax, dword [esi + 8]
mov dword [ebx + 0xa], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xe], eax
cmp di, cx
jbe 0x1029375
cmp dword [esi + 0x14], ecx
jg 0x1029364
jl 0x1029357
cmp dword [esi + 0x10], 0xffffffff
ja 0x1029364
cmp dword [esi + 0x1c], ecx
jg 0x1029364
jl 0x1029375
cmp dword [esi + 0x18], 0xffffffff
jbe 0x1029375
or eax, 0xffffffff
lea edi, [ebx + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov di, word [ebp - 0x114]
jmp 0x1029381
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x12], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x16], eax
mov ax, word [esi + 0x20]
mov word [ebx + 0x1a], ax
add di, word [esi + 0x24]
lea eax, [ebp - 0x108]
mov word [ebx + 0x1c], di
push dword [esi + 0x20]
sub di, word [esi + 0x24]
push eax
lea eax, [ebx + 0x1e]
push eax
call fcn.0102caae
add esp, 0xc
test di, di
jbe 0x10293bf
movzx eax, di
add eax, dword [esi + 0x24]
push eax
push dword [ebp - 0x124]
jmp 0x10293ca
mov eax, dword [esi + 0x24]
test eax, eax
jbe 0x10293da
push eax
push dword [esi + 0x4c]
mov eax, dword [esi + 0x20]
lea eax, [eax + ebx + 0x1e]
push eax
call fcn.0102caae
add esp, 0xc
mov ecx, dword [esi + 0x20]
push 0
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi + 0x24]
movzx edi, di
add eax, edi
lea eax, [eax + ecx + 0x1e]
push eax
mov eax, dword [ebp - 0x128]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1029443
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, edi
lea eax, [eax + ecx + 0x1e]
cmp dword [ebp - 0x118], eax
jne 0x1029443
push ebx
call fcn.0101be7e
cmp dword [ebp - 0x124], 0
pop ecx
je 0x102943b
push dword [ebp - 0x124]
mov dword [esi + 0x60], edi
call fcn.0101be7e
pop ecx
jmp 0x102943f
and dword [esi + 0x60], 0
xor eax, eax
jmp 0x102947a
push ebx
call fcn.0101be7e
cmp dword [ebp - 0x124], 0
pop ecx
je 0x102945f
push dword [ebp - 0x124]
call fcn.0101be7e
pop ecx
push 0xa
jmp 0x1029479
cmp dword [ebp - 0x124], ecx
je 0x1029477
push dword [ebp - 0x124]
call fcn.0101be7e
pop ecx
push 4
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0xc