Function at 0x4eda12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0xb4]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
cmp dword [esi + 0x20], 1
lea edi, [ebp - 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x1060]
mov ebx, dword [eax + 0x3c]
lea ecx, [eax + 0x7e8]
mov dword [ebp - 0x1c], ecx
lea edi, [eax + 0xe8]
lea ecx, [eax + 0x108]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
lea ecx, [eax + 0x40]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
jne 0x4eda98
mov eax, dword [esi + 0x1064]
mov ebx, dword [eax + 0x3c]
lea ecx, [eax + 0x7f0]
mov dword [ebp - 0x1c], ecx
lea edi, [eax + 0xf8]
lea ecx, [eax + 0x478]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
lea ecx, [eax + 0x44]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea edx, [ebp - 0x14]
call fcn.004ed969
pop ecx
test eax, eax
js 0x4edad6
push 5
lea ecx, [esi + 0x1468]
pop edx
call fcn.004ecd88
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4edade
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_130
mov dword [eax + 8], 0x18000008
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
movzx ecx, word [ebp - 8]
movzx eax, cx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 1
jne 0x4edb69
mov dword [ebp - 0x48], edi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
movzx edi, byte [eax + 5]
mov dword [ebp - 0x44], edi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
cmp byte [eax + 5], 0x10
jbe 0x4edb29
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_136
mov dword [eax + 8], 0x18000009
jmp 0x4edad6
cmp byte [esi + 0x5c], 0x1f
jbe 0x4edb82
lea ecx, [esi + 0x1484]
lea edx, [ebp - 0x48]
call fcn.004ecda0
test eax, eax
js 0x4edad6
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
movzx eax, cx
cmp eax, edi
jae 0x4edb5f
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_141
jmp 0x4edb20
sub ecx, edi
movzx ecx, cx
mov dword [ebp - 0x20], ecx
jmp 0x4edb82
cmp eax, 3
jne 0x4edb7f
mov dword [ebp - 0x48], edi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
movzx edi, byte [eax + 5]
mov dword [ebp - 0x44], edi
jmp 0x4edb82
mov edi, dword [ebp - 0x44]
movzx ebx, cx
lea eax, [esi + 0x1484]
mov edx, ebx
mov dword [ebp - 0x34], ebx
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.004ecd88
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4edbb8
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_152
jmp 0x4edacf
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, dword [ecx]
call fcn.004f0530
test eax, eax
js 0x4edad6
movzx ecx, byte [ebp - 7]
mov eax, dword [ebp - 0x20]
cmp ax, cx
jae 0x4edbed
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_158
jmp 0x4edb20
mov edx, dword [ebp - 0x10]
sub eax, ecx
movzx ecx, ax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
cmp dword [eax], 3
jne 0x4edc80
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
movzx eax, byte [esi + 0x5c]
push ecx
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [eax + 0x14]
add esp, 0x18
test eax, eax
js 0x4edad6
movzx eax, word [ebp - 4]
cmp eax, dword [ebp - 0x20]
jge 0x4edc4d
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_171
jmp 0x4edb20
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
cmp byte [esi + 0x5c], 0x1f
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
jbe 0x4edc83
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
sub word [ebp - 4], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
jmp 0x4edc83
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
cmp dword [eax], 2
jne 0x4ede35
movzx eax, byte [eax + 5]
cmp ebx, eax
jae 0x4edcad
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_181
jmp 0x4edb20
lea eax, [ebp - 0x84]
mov dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x70]
call fcn.004ecbea
test eax, eax
js 0x4edad6
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
test byte [eax + 8], 1
je 0x4edd13
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
movzx eax, byte [eax + 4]
push eax
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4edad6
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
push eax
call fcn.004eceb4
pop ecx
test eax, eax
jns 0x4edd80
jmp 0x4edad6
test byte [eax + 8], 2
je 0x4ede7a
and dword [ebp - 0x54], 0
lea edx, [ebp - 0x54]
push 4
lea ecx, [ebp - 0x70]
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4edad6
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push 8
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4edad6
mov eax, dword [ebx + 0x10]
xor edi, edi
mov eax, dword [eax]
cmp byte [eax + 4], 0
jbe 0x4edd80
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x84]
sub edx, eax
lea ecx, [ebp - 0x84]
add ecx, edi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc edi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + 4]
cmp edi, eax
jl 0x4edd65
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x60]
mov dx, word [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0xd
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
mov bh, byte [eax + 5]
mov bl, byte [eax + 6]
movzx eax, bl
movzx ecx, bh
add ecx, eax
movzx eax, dx
cmp eax, ecx
jae 0x4eddd1
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_212
jmp 0x4edb20
movzx ecx, bh
movzx eax, bl
add cx, ax
sub dx, cx
lea ecx, [ebp - 0x70]
mov word [ebp - 4], dx
lea edx, [ebp - 0x94]
call fcn.004ecbea
test eax, eax
js 0x4edad6
mov edx, dword [ebp - 0x1c]
push 8
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4edad6
mov dl, byte [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 4]
mov ecx, esi
push eax
mov dword [ebp - 0x28], eax
call fcn.004f5196
pop ecx
pop ecx
test eax, eax
js 0x4edad6
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
sub eax, 0
je 0x4ee0d6
sub eax, 1
je 0x4edfe6
sub eax, 1
je 0x4edf59
sub eax, 1
je 0x4ede95
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_267
mov dword [eax + 8], 0x18000021
jmp 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_202
mov dword [eax + 8], 0x18000026
jmp 0x4edad6
test ebx, ebx
jne 0x4edead
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_255
jmp 0x4edb20
xor edx, edx
mov eax, ebx
div edi
test edx, edx
je 0x4edecb
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_256
jmp 0x4edb20
test edi, edi
je 0x4edef1
sub ecx, edi
lea eax, [ecx + ebx]
test eax, eax
je 0x4edf3e
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00552b30
add esp, 0xc
test eax, eax
je 0x4edad6
lea eax, [ebp - 0x38]
push eax
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [eax + 8]
add esp, 0x10
test eax, eax
js 0x4edad6
cmp dword [ebp - 0x44], 0
je 0x4edfb1
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4ee080
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 0x18000008
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_264
jmp 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 0x18000008
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_259
jmp 0x4edad6
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 5]
sub ebx, eax
mov dword [ebp - 0x34], ebx
mov eax, dword [edx + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
add ecx, eax
mov dword [ebp - 0x38], ecx
test ebx, ebx
jne 0x4edf8b
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_250
jmp 0x4edb20
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x38]
push ecx
push ecx
lea ecx, [ebp - 0x94]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x18]
call dword [eax + 8]
add esp, 0x14
test eax, eax
js 0x4edad6
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
cmp dword [eax], 1
je 0x4edfc7
cmp dword [eax], 3
jne 0x4ee105
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x4ee0ec
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_273
jmp 0x4edb20
test ebx, ebx
jne 0x4edffe
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_228
jmp 0x4edb20
xor edx, edx
mov eax, ebx
div edi
test edx, edx
je 0x4ee01c
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_231
jmp 0x4edb20
cmp byte [esi + 0x5c], 0x20
jae 0x4ee048
test edi, edi
je 0x4ee048
sub ecx, edi
lea eax, [ecx + ebx]
test eax, eax
je 0x4ee0a0
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00552b30
add esp, 0xc
test eax, eax
je 0x4edad6
lea eax, [ebp - 0x38]
push eax
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [eax + 8]
add esp, 0x10
test eax, eax
js 0x4edad6
cmp byte [esi + 0x5c], 0x20
jae 0x4edfb1
cmp dword [ebp - 0x44], 0
je 0x4edfb1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ee0bb
push dword [ebp - 0x44]
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.00552b30
add esp, 0xc
test eax, eax
jne 0x4edfb1
jmp 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 0x18000008
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_235
jmp 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 0x18000008
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_241
jmp 0x4edad6
lea eax, [ebp - 0x38]
push eax
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [eax + 4]
add esp, 0xc
jmp 0x4edfa9
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + ecx - 1]
mov ecx, 0xffff
sub cx, ax
add word [ebp - 4], cx
mov eax, dword [ebp - 4]
jmp 0x4ee108
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x50]
shr eax, 8
lea ebx, [ecx + 3]
mov byte [ebx], al
mov al, byte [ebp - 4]
mov byte [ecx + 4], al
mov ecx, dword [ebp - 0xc]
call fcn.004f0ad9
test eax, eax
js 0x4edad6
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
push 8
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4edad6
cmp byte [esi + 0x5c], 0x1e
mov edx, dword [ebp - 0x50]
jne 0x4ee1e6
mov ecx, dword [ebp - 0xc]
push 1
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4edad6
push 2
mov edx, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4edad6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
and dword [ebp - 0x5c], 0
and dword [ebp - 0x58], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 8
call fcn.004f51f0
test eax, eax
js 0x4edad6
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
cmp dword [eax], 1
jne 0x4ee1ed
lea eax, [ebp - 0x38]
mov edx, ebx
push eax
mov ecx, esi
call fcn.004f4ff2
pop ecx
test eax, eax
jns 0x4ee27a
mov ecx, dword [ebp - 0x4c]
call fcn.004ecd4a
test eax, eax
js 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_297
mov dword [eax + 8], 0x14000002
jmp 0x4edad6
push 5
jmp 0x4ee163
movzx eax, word [ebp - 4]
mov ecx, ebx
mov edx, dword [ebp - 0x38]
push eax
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4edad6
mov al, byte [ebp - 7]
cmp al, 0x40
jbe 0x4ee220
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_304
jmp 0x4edb20
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0xf8]
movzx ebx, al
push ebx
call fcn.004f0a4d
pop ecx
test eax, eax
js 0x4edad6
push ebx
mov bx, word [ebp - 4]
lea edx, [ebp - 0xf8]
movzx ecx, bx
add ecx, dword [ebp - 0x38]
call fcn.004f4fca
pop ecx
test eax, eax
jne 0x4ee27e
mov ecx, dword [ebp - 0x4c]
call fcn.004ecd4a
test eax, eax
js 0x4edad6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2n_tls_s2n_record_read.c_line_309
jmp 0x4ee1da
mov bx, word [ebp - 4]
and dword [esi + 0x1494], 0
lea ecx, [esi + 0x1484]
and dword [esi + 0x1478], 0
mov eax, dword [edi + 0x10]
xor edi, edi
inc edi
mov eax, dword [eax]
cmp dword [eax], edi
jne 0x4ee2a6
cmp byte [esi + 0x5c], 0x1f
jbe 0x4ee2c8
jmp 0x4ee2b1
cmp dword [eax], 2
jne 0x4ee2c3
cmp byte [esi + 0x5c], 0x21
jb 0x4ee2c8
movzx edx, byte [eax + 5]
call fcn.004ecd56
test eax, eax
jns 0x4ee2c8
jmp 0x4edad6
cmp dword [eax], 3
je 0x4ee29e
mov edx, dword [esi + 0x1498]
movzx eax, bx
sub edx, eax
sub edx, dword [esi + 0x1494]
call fcn.004ecceb
test eax, eax
js 0x4edad6
mov dword [esi + 0x14bc], edi
xor eax, eax
jmp 0x4edad9