Function at 0x42ade0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
cmp dword [esi + 8], ebx
je 0x42ae63
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5353f6
mov dword [esp + 4], str.__s__Invalid_key_size:__Iu
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
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 esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x42b100
mov edx, dword [esp + 0x74]
mov ecx, ebx
xor eax, eax
add ecx, edx
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 0x42ae75
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
mov edi, dword [esi + 0xc]
mov dword [esp + 0x24], 0
div dword [esi + 4]
mov eax, edx
imul eax, edi
add eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42aecf
mov ecx, dword [esi + 0x18]
imul ecx, edx
add eax, ecx
mov dword [esp + 0x24], eax
mov ecx, edx
mov eax, dword [esi + 0x20]
and edx, 7
shr ecx, 3
mov dword [esp + 0x38], edx
movzx eax, byte [eax + ecx]
mov dword [esp + 0x34], ecx
bt eax, edx
jb 0x42b060
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x42b0e0
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], ecx
test eax, eax
je 0x42af22
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42b0e0
lea edi, [ecx + 4]
mov dword [esp + 0x70], esi
xor ebp, ebp
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x74]
jmp 0x42af5f
add ebp, 1
add esi, edi
cmp ebp, dword [esp + 0x20]
je 0x42b0e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x42af50
cmp dword [esp + 0x20], 2
mov esi, dword [esp + 0x70]
mov ebx, edi
je 0x42b211
mov eax, dword [esp + 0x20]
sub eax, 1
mov ecx, eax
sub ecx, ebp
jne 0x42b190
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [ecx], eax
test edx, edx
je 0x42afb7
mov eax, dword [esp + 0x30]
sub dword [eax], 1
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
lea ecx, [eax + 1]
mov dword [esp + 0x20], ecx
imul eax, ebx
lea edx, [esp + 0x48]
mov dword [esp], 0
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
add eax, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call fcn.00427410
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x42b110
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42b0f0
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
imul edx, ebx
mov dword [esp], 0
lea ecx, [edx + 4]
lea edx, [ebx + edx + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00427410
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x42b2a0
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
mov dword [ebx], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov dword [ebx], eax
jmp 0x42b0ce
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcmp
mov edx, eax
xor eax, eax
test edx, edx
jne 0x42ae5b
mov dword [esp], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
call sub.msvcrt.dll_memset
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x42b0b7
mov eax, dword [esi + 0x18]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
movzx ecx, byte [esp + 0x38]
mov eax, 1
mov edx, dword [esp + 0x34]
add edx, dword [esi + 0x20]
shl eax, cl
not eax
and byte [edx], al
sub dword [esi], 1
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x42ae5b
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
mov dword [ebx], eax
jmp 0x42b0ce
xor eax, eax
jmp 0x42aea0
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x535861
mov dword [esp + 4], str.__s__Error_when_reallocating_memory_for_shrunk_key_bucket:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x42aff5
lea edi, [ebp + 1]
mov eax, ebx
mov edx, ebx
mov dword [esp + 0x20], ecx
imul edx, ecx
mov ecx, dword [esp + 0x2c]
imul eax, edi
mov dword [esp + 8], edx
lea edx, [ecx + eax + 4]
sub eax, ebx
lea eax, [ecx + eax + 4]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x42b320
mov edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x4c]
imul edx, edi
imul ecx, edi
lea eax, [ebp + edx + 4]
sub edx, edi
mov dword [esp + 4], eax
lea eax, [ebp + edx + 4]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
sub dword [eax], 1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
jmp 0x42afa3
xor ebp, 1
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], edi
imul eax, ebp
lea eax, [ecx + eax + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0041d440
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x42b286
mov ecx, dword [esp + 0x3c]
mov edx, ebp
mov eax, dword [esp + 0x4c]
mov dword [esp], ebx
imul edx, ecx
mov dword [esp + 8], ecx
lea eax, [eax + edx + 4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0041d440
movzx ecx, byte [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, 1
add eax, dword [esi + 0x20]
shl edx, cl
or byte [eax], dl
jmp 0x42b0ce
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x535861
mov dword [esp + 4], str.__s__Error_when_reallocating_memory_for_shrunk_value_bucket:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x42b041
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
sub eax, 1
mov dword [ecx], eax
jmp 0x42afb7