Function at 0x46ade0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x30]
mov ebp, dword [eax]
mov esi, dword [eax + 4]
lea ebx, [ebp*4]
push ebx
push 8
push 1
call fcn.004397d0
add esp, 0xc
mov edi, eax
test ebp, ebp
jne 0x46ae1e
push 0x48
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push 0x4f398a
call fcn.004af403
add esp, 0xc
mov dword [edi], ebp
mov eax, edi
add eax, 8
mov dword [edi + 4], eax
push ebx
push eax
call fcn.00467170
add esp, 8
mov eax, dword [edi]
shl eax, 2
push eax
push esi
push dword [edi + 4]
call fcn.004a2420
add esp, 0xc
mov ebp, dword [edi]
lea esi, [ebp*4]
push esi
push 8
push 1
call fcn.004397d0
add esp, 0xc
mov ebx, eax
test ebp, ebp
jne 0x46ae74
push 0x48
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push 0x4f398a
call fcn.004af403
add esp, 0xc
mov dword [ebx], ebp
mov eax, ebx
add eax, 8
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00467170
add esp, 8
mov ebp, dword [edi]
lea eax, [ebp*4]
mov dword [esp], eax
push eax
push 8
push 1
call fcn.004397d0
add esp, 0xc
mov esi, eax
test ebp, ebp
jne 0x46aebb
push 0x48
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push 0x4f398a
call fcn.004af403
add esp, 0xc
mov dword [esi], ebp
mov eax, esi
add eax, 8
mov dword [esi + 4], eax
push dword [esp]
push eax
call fcn.00467170
add esp, 8
cmp dword [esi], 0
mov ebp, esi
je 0x46aef2
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 4]
mov dword [ecx + eax*4], 0xcccccccc
add eax, 1
cmp eax, dword [ebp]
jb 0x46aee0
mov eax, dword [ebp + 4]
add dword [eax], 1
mov eax, dword [edi]
cmp eax, 0xe0703
jb 0x46af1a
push 0x1e0
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push str.x__nw_____size_t_1_____146__BIGNUM_INT_BITS_
call fcn.004af403
add esp, 0xc
mov eax, dword [edi]
imul ecx, eax, 0x1240
mov edx, 0xe406559
mov eax, ecx
mul edx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
mov esi, 1
cmovne esi, ecx
lea eax, [esi + 2]
push 0
push 1
mov dword [esp + 0x20], eax
push eax
call fcn.004397d0
add esp, 0xc
mov dword [esp + 0xc], eax
mov byte [esi + eax + 1], 0
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
jmp 0x46af86
push ebp
push ebx
push edi
call fcn.0046b450
add esp, 0xc
sub dword [esp + 4], 1
jb 0x46b13c
mov eax, edi
mov edi, dword [edi]
test edi, edi
je 0x46b030
mov eax, dword [eax + 4]
mov dword [esp], eax
mov edx, dword [eax]
movzx ecx, dl
movzx esi, dh
lea esi, [esi + esi*2]
lea esi, [ecx + esi*2]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
lea ecx, [ecx + ecx*2]
lea ecx, [esi + ecx*2]
shr edx, 0x18
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*2]
cmp edi, 1
je 0x46b032
mov esi, 0x12ed
mov ebp, 1
jmp 0x46afd7
add ebp, 1
cmp edi, ebp
je 0x46b032
mov eax, dword [esp]
mov edx, dword [eax + ebp*4]
movzx eax, dl
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
movzx ecx, dh
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*2]
shr edx, 0x18
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*2]
add esi, 0x17e8
cmp esi, 0xffffe817
jbe 0x46afd0
movzx eax, cx
shr ecx, 0x10
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*2]
movzx esi, si
add esi, 0x5fffa
jmp 0x46afd0
xor ecx, ecx
mov eax, ecx
mov edx, 0x19999999
mul edx
add edx, edx
lea eax, [edx + edx*4]
mov edx, ecx
sub edx, eax
neg eax
add eax, ecx
add eax, 6
shr eax, 3
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
cmp edx, 0xa
jb 0x46b076
push 0x214
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push str.low_digit___10
mov esi, edx
call fcn.004af403
mov edx, esi
add esp, 0xc
mov eax, edx
add al, 0x30
mov ecx, dword [esp + 0xc]
mov ebp, edx
mov edx, dword [esp + 4]
mov byte [ecx + edx], al
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov dword [esp], eax
test eax, eax
je 0x46b0a8
mov ecx, dword [edi + 4]
mov esi, dword [ecx]
xor edx, edx
sub esi, ebp
setae al
mov dword [ecx], esi
cmp dword [esp], 1
jne 0x46b100
cmp dword [ebx], 0
mov ebp, dword [esp + 0x14]
je 0x46af70
xor eax, eax
jmp 0x46b0d3
shl edx, 0x1f
mov esi, dword [ebx + 4]
or dword [esi + eax*4], edx
mov eax, ecx
cmp ecx, dword [ebx]
jae 0x46af70
mov ecx, 0
cmp dword [edi], eax
jbe 0x46b0e2
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ebx + 4]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebx + 4]
shr dword [ecx + eax*4], 1
lea ecx, [eax + 1]
xor edx, edx
cmp dword [edi], ecx
jbe 0x46b0c0
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4 + 4]
jmp 0x46b0c0
mov dl, al
mov esi, 1
jmp 0x46b12e
xor eax, eax
add edx, ebp
setb al
add edx, 0xffffffff
adc eax, 0
mov dword [ecx + esi*4], edx
add esi, 1
mov edx, eax
cmp dword [esp], esi
je 0x46b0a8
xor ebp, ebp
cmp dword [edi], esi
jbe 0x46b110
mov eax, dword [edi + 4]
mov ebp, dword [eax + esi*4]
jmp 0x46b110
mov eax, dword [edi]
shl eax, 2
push eax
push dword [edi + 4]
call fcn.00467170
add esp, 8
push 8
push edi
call fcn.00467170
add esp, 8
push edi
call fcn.00439860
add esp, 4
mov eax, dword [ebx]
shl eax, 2
push eax
push dword [ebx + 4]
call fcn.00467170
add esp, 8
push 8
push ebx
call fcn.00467170
add esp, 8
push ebx
call fcn.00439860
add esp, 4
mov eax, dword [ebp]
shl eax, 2
push eax
push dword [ebp + 4]
call fcn.00467170
add esp, 8
push 8
push ebp
call fcn.00467170
add esp, 8
push ebp
call fcn.00439860
add esp, 4
mov ebx, dword [esp + 8]
lea edx, [ebx - 1]
mov esi, ebx
and esi, 3
je 0x46b1e9
mov edi, ebx
mov ebp, ebx
mov eax, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + edi - 1], 0x30
lea ecx, [edi - 1]
cmovne ebp, ecx
mov edi, ecx
add esi, 0xffffffff
jne 0x46b1d0
cmp edx, 3
jae 0x46b1f6
jmp 0x46b230
mov ecx, ebx
mov ebp, ebx
mov eax, dword [esp + 0xc]
cmp edx, 3
jb 0x46b230
add ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + 1]
cmp byte [eax + ecx + 1], 0x30
cmove edx, ebp
cmp byte [eax + ecx], 0x30
cmovne edx, ecx
lea esi, [ecx - 1]
cmp byte [eax + ecx - 1], 0x30
cmove esi, edx
lea ebp, [ecx - 2]
cmp byte [eax + ecx - 2], 0x30
cmove ebp, esi
add ecx, 0xfffffffc
cmp ecx, 0xfffffffe
jne 0x46b200
mov dword [esp + 0x14], ebp
add ebx, 1
mov ecx, eax
add ecx, 1
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 8], ebx
jmp 0x46b25f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x46b31d
mov dword [esp], ecx
mov edi, 1
mov ecx, dword [esp]
shl edi, cl
mov ecx, dword [esp]
mov edx, esi
sub edx, edi
jbe 0x46b250
mov dword [esp + 4], edx
mov edx, dword [esp + 0x14]
shr edx, cl
and dl, 1
neg dl
xor ebp, ebp
cmp ebx, edi
je 0x46b2eb
mov esi, dword [esp + 4]
and esi, 0xfffffffe
neg esi
xor ebp, ebp
mov ecx, edx
mov edx, dword [esp + 0x10]
nop
nop
nop
nop
nop
movzx eax, byte [edx - 1]
movzx ebx, byte [edx + edi - 1]
mov ah, bl
xor ah, al
and ah, cl
xor al, ah
mov byte [edx - 1], al
xor ah, bl
mov byte [edx + edi - 1], ah
movzx eax, byte [edx]
mov ah, byte [edx + edi]
mov bl, ah
xor bl, al
and bl, cl
xor al, bl
mov byte [edx], al
xor bl, ah
mov byte [edx + edi], bl
add edx, 2
add ebp, 0xfffffffe
cmp esi, ebp
jne 0x46b2a0
sub edi, ebp
neg ebp
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edx, ecx
mov ecx, dword [esp]
test byte [esp + 4], 1
je 0x46b250
mov ecx, edx
mov dl, byte [eax + ebp]
mov bl, byte [eax + edi]
mov dh, bl
xor dh, dl
and dh, cl
mov ecx, dword [esp]
xor dl, dh
mov byte [eax + ebp], dl
xor dh, bl
mov ebx, dword [esp + 8]
mov byte [eax + edi], dh
jmp 0x46b250
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret