Function at 0x429a80
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov esi, dword [eax + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
test esi, esi
je 0x429f20
lea ecx, [esi + edx]
xor eax, eax
nop
lea esi, [esi]
movzx edi, byte [edx]
add edx, 1
add edi, eax
mov eax, edi
shl eax, 0xa
add eax, edi
mov edi, eax
shr edi, 6
xor eax, edi
cmp ecx, edx
jne 0x429ab0
lea edx, [eax + eax*8]
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
shl eax, 0xf
add eax, edx
xor edx, edx
xor edi, edi
div dword [ebx + 4]
mov eax, dword [ebx + 0xc]
imul eax, edx
add eax, dword [ebx + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x429afe
mov edi, dword [ebx + 0x18]
imul edi, edx
add edi, eax
mov eax, edx
mov ebp, dword [ebx + 0x20]
mov ecx, edx
shr eax, 3
and ecx, 7
add ebp, eax
mov dword [esp + 0x38], eax
movzx eax, byte [ebp]
movzx edx, al
bt edx, ecx
jb 0x429c30
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
test edx, edx
je 0x429ed0
mov ecx, dword [edx]
mov dword [esp + 0x48], edx
imul ecx, esi
lea eax, [ecx + 4]
lea ecx, [esi + ecx + 4]
test edi, edi
je 0x429d50
mov ebp, dword [edi]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x4c], ebp
lea ebp, [esp + 0x48]
mov dword [esp + 0x10], ebp
mov dword [esp + 4], edx
mov dword [esp], 0
call fcn.00427410
mov ebp, eax
mov eax, edx
or eax, ebp
jne 0x429e90
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
mov eax, dword [edx]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edx
add eax, 1
mov dword [esp], 0
imul eax, ebp
lea ecx, [eax + 4]
sub eax, ebp
add eax, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00427410
mov ebp, eax
mov eax, edx
or eax, ebp
jne 0x429db7
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
mov dword [esp + 8], esi
imul edx, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 4], esi
lea eax, [eax + edx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
add dword [eax], 1
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], esi
imul edx, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], esi
lea eax, [eax + edx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x4c]
add dword [eax], 1
mov dword [edi], eax
add dword [ebx], 1
xor ebp, ebp
add esp, 0x5c
xor edx, edx
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x48]
mov dword [esp], 0
mov dword [esp + 8], eax
lea eax, [esi + esi + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.00427280
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov eax, edx
or eax, ebp
jne 0x429f30
test edi, edi
je 0x429e40
lea eax, [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
lea eax, [eax + eax + 4]
mov dword [esp + 4], eax
call fcn.00427280
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov eax, edx
or eax, ebp
jne 0x429f6e
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x28]
lea eax, [ebp + 4]
mov dword [ebp], 2
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp + esi + 4]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [ecx], eax
mov esi, dword [esp + 0x4c]
lea eax, [esi + 4]
mov dword [esi], 2
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [esi + ebp + 4]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword [edi], eax
mov eax, 1
mov edx, dword [esp + 0x38]
add edx, dword [ebx + 0x20]
shl eax, cl
not eax
and byte [edx], al
jmp 0x429c19
lea edi, [esp + 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [esp + 0x4c], 0
call fcn.00427410
mov ebp, eax
mov eax, edx
or eax, ebp
jne 0x429e90
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
mov dword [esp + 8], esi
imul edx, esi
mov esi, dword [esp + 0x30]
mov dword [esp + 4], esi
lea eax, [eax + edx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
add dword [eax], 1
mov dword [esi], eax
jmp 0x429c19
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov esi, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5353f6
mov dword [esp + 4], str.__s__Error_when_reallocating_memory_for_expanded_value_bucket:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5353f3
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x28]
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
lea eax, [edi + 4]
mov dword [edi], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [edi + esi + 4]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov dword [ebp], eax
jmp 0x429d37
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov esi, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5353f6
mov dword [esp + 4], str.__s__Error_when_reallocating_memory_for_expanded_bucket:__lu___s_
jmp 0x429df0
mov edx, 1
shl edx, cl
or eax, edx
mov byte [ebp], al
mov eax, dword [esp + 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
test edi, edi
je 0x429c19
mov eax, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x429c19
xor eax, eax
jmp 0x429adb
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov esi, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5353f6
mov dword [esp + 4], str.__s__Error_when_allocating_memory_for_new_key_bucket:__lu___s_
jmp 0x429df0
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0041d440
mov edx, dword [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov esi, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5353f6
mov dword [esp + 4], str.__s__Error_when_allocating_memory_for_new_value_bucket:__lu___s_
jmp 0x429df0