Function at 0x433620
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.004133d0
add esp, 0xc
mov edi, eax
test ebp, ebp
jne 0x43365e
push 0x48
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push 0x4b3582
call fcn.0047c544
add esp, 0xc
mov dword [edi], ebp
mov eax, edi
add eax, 8
mov dword [edi + 4], eax
push ebx
push eax
call fcn.0042efd0
add esp, 8
mov eax, dword [edi]
shl eax, 2
push eax
push esi
push dword [edi + 4]
call fcn.0046e7f0
add esp, 0xc
mov ebp, dword [edi]
lea esi, [ebp*4]
push esi
push 8
push 1
call fcn.004133d0
add esp, 0xc
mov ebx, eax
test ebp, ebp
jne 0x4336b4
push 0x48
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push 0x4b3582
call fcn.0047c544
add esp, 0xc
mov dword [ebx], ebp
mov eax, ebx
add eax, 8
mov dword [ebx + 4], eax
push esi
push eax
call fcn.0042efd0
add esp, 8
mov ebp, dword [edi]
lea eax, [ebp*4]
mov dword [esp], eax
push eax
push 8
push 1
call fcn.004133d0
add esp, 0xc
mov esi, eax
test ebp, ebp
jne 0x4336fb
push 0x48
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push 0x4b3582
call fcn.0047c544
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.0042efd0
add esp, 8
cmp dword [esi], 0
mov ebp, esi
je 0x433732
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 0x433720
mov eax, dword [ebp + 4]
add dword [eax], 1
mov eax, dword [edi]
cmp eax, 0xe0703
jb 0x43375a
push 0x1e0
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push str.x__nw_____size_t_1_____146__BIGNUM_INT_BITS_
call fcn.0047c544
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.004133d0
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 0x4337c6
push ebp
push ebx
push edi
call fcn.00433c90
add esp, 0xc
sub dword [esp + 4], 1
jb 0x43397c
mov eax, edi
mov edi, dword [edi]
test edi, edi
je 0x433870
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 0x433872
mov esi, 0x12ed
mov ebp, 1
jmp 0x433817
add ebp, 1
cmp edi, ebp
je 0x433872
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 0x433810
movzx eax, cx
shr ecx, 0x10
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*2]
movzx esi, si
add esi, 0x5fffa
jmp 0x433810
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 0x4338b6
push 0x214
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push str.low_digit___10
mov esi, edx
call fcn.0047c544
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 0x4338e8
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 0x433940
cmp dword [ebx], 0
mov ebp, dword [esp + 0x14]
je 0x4337b0
xor eax, eax
jmp 0x433913
shl edx, 0x1f
mov esi, dword [ebx + 4]
or dword [esi + eax*4], edx
mov eax, ecx
cmp ecx, dword [ebx]
jae 0x4337b0
mov ecx, 0
cmp dword [edi], eax
jbe 0x433922
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 0x433900
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4 + 4]
jmp 0x433900
mov dl, al
mov esi, 1
jmp 0x43396e
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 0x4338e8
xor ebp, ebp
cmp dword [edi], esi
jbe 0x433950
mov eax, dword [edi + 4]
mov ebp, dword [eax + esi*4]
jmp 0x433950
mov eax, dword [edi]
shl eax, 2
push eax
push dword [edi + 4]
call fcn.0042efd0
add esp, 8
push 8
push edi
call fcn.0042efd0
add esp, 8
push edi
call fcn.00413460
add esp, 4
mov eax, dword [ebx]
shl eax, 2
push eax
push dword [ebx + 4]
call fcn.0042efd0
add esp, 8
push 8
push ebx
call fcn.0042efd0
add esp, 8
push ebx
call fcn.00413460
add esp, 4
mov eax, dword [ebp]
shl eax, 2
push eax
push dword [ebp + 4]
call fcn.0042efd0
add esp, 8
push 8
push ebp
call fcn.0042efd0
add esp, 8
push ebp
call fcn.00413460
add esp, 4
mov ebx, dword [esp + 8]
lea edx, [ebx - 1]
mov esi, ebx
and esi, 3
je 0x433a29
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 0x433a10
cmp edx, 3
jae 0x433a36
jmp 0x433a70
mov ecx, ebx
mov ebp, ebx
mov eax, dword [esp + 0xc]
cmp edx, 3
jb 0x433a70
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 0x433a40
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 0x433a9f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x433b5d
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 0x433a90
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 0x433b2b
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 0x433ae0
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 0x433a90
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 0x433a90
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret