Function at 0x4122b7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor eax, 0xdc3
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [ebp + 0x44b]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
add eax, 0xf1b
mov dword [esp + 0x18], eax
mov eax, ebp
xor ebp, 0x3665
mov dword [edi + 0xb4], 0x817d10
xor eax, 0x144e
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], eax
xor ebp, ebp
mov eax, dword [0xa662e4]
mov ecx, 0xb2d12
sub ecx, dword [eax + 0xe8]
sub ecx, dword [0xaa1290]
add dword [edi + 0x78], ecx
mov ecx, dword [0xa662e4]
mov eax, dword [ecx + 0x118]
sub eax, 0x160c63
imul eax, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
mov ecx, dword [0xa662e4]
mov eax, dword [ecx + 0xb4]
mov esi, dword [eax + ebp]
add ebp, 4
mov eax, dword [edi + 0xfc]
sub dword [ecx + 0xe0], eax
mov eax, 0x10fd33
sub eax, dword [edi + 0x5c]
add dword [edi + 0xdc], eax
mov edx, dword [0xa662e4]
mov ecx, dword [edi + 0x114]
mov eax, dword [edi + 0xc]
add ecx, 0xfff048dd
add eax, ecx
xor dword [edx + 8], eax
mov eax, dword [0xa662e4]
mov eax, dword [eax + 0x7c]
xor eax, dword [0xaa1358]
sub eax, 0x13e42d
or dword [0xaa137c], eax
mov ebx, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov eax, dword [edi + 0xb8]
imul ebx, esi
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [edi + 0x84]
mov eax, dword [0xa662e4]
shr edx, 8
mov ecx, dword [eax + 0xb8]
mov eax, dword [0xaa12f4]
mov byte [eax + ecx], dl
xor eax, eax
inc dword [0xaa12f4]
inc eax
sub eax, dword [edi + 0xd8]
mov ecx, dword [0xa662e4]
add dword [ecx + 0x34], eax
mov eax, dword [0xaa12b4]
add eax, 0xffec0036
add dword [edi + 0x110], eax
mov eax, dword [0xa662e4]
mov ecx, dword [eax + 0x114]
sub ecx, dword [eax + 0xe0]
mov eax, dword [edi + 0x10c]
sub ecx, 0x1d
add dword [edi + 0xfc], ecx
sub dword [edi + 0xf4], eax
mov eax, dword [edi + 0xac]
sub eax, 0x47
imul eax, dword [0xaa134c]
mov dword [0xaa134c], eax
mov eax, dword [0xa662e4]
mov ecx, dword [eax + 0xb8]
mov eax, dword [edi + 0x84]
mov byte [ecx + eax], bl
inc dword [edi + 0x84]
cmp ebp, 0xf6b0
jl 0x41230b
mov ebp, dword [esp + 0x24]
mov eax, ebp
mov ebx, dword [esp + 0x34]
xor eax, 0x3665
cmp ebx, eax
je 0x4125c5
mov esi, dword [esp + 0x14]
mov eax, ebp
xor eax, 0x359b
cmp esi, eax
je 0x4124b8
mov eax, dword [0xaa12e8]
sub eax, dword [edi + 0x118]
mov edx, dword [0xa662e4]
add eax, 0x161598
mov dword [0xaa12f0], eax
mov eax, dword [0xaa1334]
add eax, 0xf82a4
add eax, dword [0xaa12d8]
add dword [edx + 0x80], eax
jmp 0x412528
imul eax, dword [edi + 0x7c], 0x1f05
and eax, dword [0xaa137c]
push eax
mov eax, dword [0xaa1380]
xor eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [0xa662e4]
mov eax, dword [edi + 0x38]
sub eax, dword [edx + 0x3c]
imul eax, eax, 0x1cd3
push eax
mov eax, dword [edx + 0x70]
imul eax, dword [edi + 0x78]
xor eax, ebx
push eax
mov eax, dword [0xaa130c]
add eax, 0xffffeef0
add eax, dword [edi + 0xf8]
push eax
mov eax, ebp
and eax, 0x17b0
or eax, dword [edx + 0x38]
push eax
mov eax, dword [edi + 0xa0]
add eax, 0x206d
xor eax, dword [edi + 0xe8]
push edx
push eax
call fcn.004128f4
add esp, 0x18
mov eax, dword [esp + 0x30]
add eax, 0x33e
cmp ebp, eax
je 0x4125c5
mov ecx, dword [esp + 0x18]
mov eax, ebx
xor eax, 0x11d6
cmp ecx, eax
je 0x41256d
cmp dword [edi + 0x108], 0x3c85
mov esi, dword [esp + 0x10]
je 0x412564
xor dword [edi + 0x80], 0x83951
jmp 0x4125c9
add dword [edi + 0x70], 0x320a
jmp 0x4125c9
mov eax, dword [edi + 0x114]
xor eax, ecx
mov ecx, dword [0xa662e4]
push eax
push ecx
mov eax, dword [ecx + 0x14]
xor eax, esi
mov esi, dword [esp + 0x18]
or eax, ebx
push eax
mov eax, dword [ecx + 0x38]
and eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0xe0]
sub eax, dword [0xaa1284]
imul eax, eax, 0x1f05
push eax
mov eax, dword [0xaa1374]
sub eax, dword [0xaa1368]
push eax
mov eax, dword [edi + 0x70]
or eax, esi
and eax, dword [0xaa12e8]
push eax
call fcn.004052c4
add esp, 0x1c
jmp 0x4125c9
mov esi, dword [esp + 0x10]
pop edi
lea eax, [esi + 0x43a]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret