Function at 0x4f2d76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
xor eax, eax
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
lea edi, [ebp - 0xac]
mov dword [ebp - 0x3c], edx
stosd dword es:[edi], eax
mov esi, ecx
mov byte [ebp - 5], 0
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 - 0x8c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x1064]
mov edi, dword [eax + 0x3c]
lea edx, [eax + 0x7f0]
mov dword [ebp - 0x14], edx
lea ecx, [eax + 0x478]
lea ebx, [eax + 0x44]
mov dword [ebp - 0xc], ecx
lea edx, [eax + 0xf8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edx
jne 0x4f2e06
mov eax, dword [esi + 0x1060]
mov edi, dword [eax + 0x3c]
lea ecx, [eax + 0x7e8]
mov dword [ebp - 0x14], ecx
lea edx, [eax + 0x40]
lea ecx, [eax + 0x108]
mov dword [ebp - 0x28], edx
add eax, 0xe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14b4]
sub eax, dword [esi + 0x14b0]
je 0x4f2e32
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_write.c_line_112
mov dword [eax + 8], 0x14000002
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ecx]
lea edx, [ebp - 0xd]
call fcn.004f0530
test eax, eax
js 0x4f2e2a
mov ecx, esi
call fcn.004f2cf4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], eax
jae 0x4f2e55
movzx eax, word [ecx + 4]
jmp 0x4f2e5f
mov ecx, esi
call fcn.004f2cf4
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov ecx, esi
movzx eax, ax
mov dword [ebp - 0x2c], eax
call fcn.004f2c75
movzx ecx, ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax]
cmp dword [eax], 1
jne 0x4f3051
mov bl, byte [eax + 4]
movzx eax, cx
mov ecx, dword [ebp - 0x1c]
movzx edx, bl
movzx ecx, cx
add eax, ecx
mov dword [ebp - 0x20], edx
movzx ecx, dx
xor edx, edx
div ecx
test edx, edx
je 0x4f2ea9
mov al, bl
sub al, dl
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
movzx eax, ax
push 8
mov dword [ebp - 0x40], eax
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4f2e2a
movzx eax, byte [esi + 0x5c]
lea ebx, [esi + 0x14a0]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, ebx
mov byte [ebp - 0x33], dl
mov dl, byte [ebp - 0x3c]
mov byte [ebp - 0x34], al
call fcn.004ecf27
test eax, eax
js 0x4f2e2a
push 2
lea edx, [ebp - 0x34]
mov ecx, ebx
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004ecf79
test eax, eax
js 0x4f2e2a
cmp byte [esi + 0x5c], 0x1e
mov edx, dword [ebx]
mov ecx, dword [ebp - 0xc]
jbe 0x4f3066
push 5
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4f2e2a
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp dword [eax], 3
jne 0x4f2f8a
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x2c]
cmp byte [esi + 0x5c], 0x1f
movzx ecx, ax
mov eax, dword [ebp - 0x2c]
movzx eax, ax
cmovbe ecx, eax
movzx eax, cx
push eax
movzx eax, byte [esi + 0x5c]
push eax
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [eax + 0x14]
add esp, 0x18
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
movzx ecx, byte [ebp - 5]
mov eax, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x40], ecx
add eax, dword [ebp - 0x1c]
mov ecx, ebx
push 2
pop edx
mov dword [ebp - 0x2c], eax
call fcn.004ecceb
test eax, eax
js 0x4f2e2a
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
call fcn.004ecf79
test eax, eax
js 0x4f2e2a
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 2
jne 0x4f3205
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x7c]
call fcn.004ecbea
test eax, eax
js 0x4f2e2a
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
test al, 1
je 0x4f3085
mov edx, dword [ebp - 0x14]
mov ecx, ebx
push 8
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x7c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax]
movzx eax, byte [eax + 4]
push eax
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
push 8
mov edx, edi
call fcn.004eceb4
pop ecx
test eax, eax
jns 0x4f30ff
jmp 0x4f2e2a
cmp dword [eax], 3
jne 0x4f2ea9
movzx eax, byte [eax + 4]
mov dword [ebp - 0x20], eax
jmp 0x4f2eac
push 1
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4f2e2a
mov edx, dword [ebx]
mov ecx, dword [ebp - 0xc]
add edx, 3
push 2
jmp 0x4f2f29
test al, 2
je 0x4f31ea
and dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
push 4
lea ecx, [ebp - 0x7c]
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
push 8
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp byte [eax + 4], 0
jbe 0x4f30fc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x8c]
mov ebx, dword [ebp - 0x18]
sub edx, eax
lea ecx, [ebp - 0x8c]
add ecx, edi
mov al, byte [ecx + edx]
xor byte [ecx], al
inc edi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + 4]
cmp edi, eax
jl 0x4f30db
lea ebx, [esi + 0x14a0]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 0xd
call fcn.004ecbea
test eax, eax
js 0x4f2e2a
push 8
mov edx, edi
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov dl, byte [ebp - 0x3c]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004f5196
pop ecx
pop ecx
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x70]
and dword [ebp - 0x68], 0
and dword [ebp - 0x64], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 8
call fcn.004f51f0
test eax, eax
js 0x4f2e2a
mov edi, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebp - 0x1c]
movzx eax, ax
push eax
mov edi, dword [edi]
mov edx, edi
call fcn.004eceb4
pop ecx
test eax, eax
js 0x4f2e2a
mov ecx, dword [ebp - 0x1c]
mov edx, edi
movzx eax, cx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004f0a0e
pop ecx
test eax, eax
js 0x4f2e2a
movzx edi, byte [ebp - 0xd]
mov ecx, ebx
mov edx, edi
call fcn.004ece93
test eax, eax
jne 0x4f324e
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_write.c_line_233
mov dword [eax + 8], 0x18000008
jmp 0x4f2e2a
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_write.c_line_198
mov dword [eax + 8], 0x18000026
jmp 0x4f2e2a
cmp eax, 1
je 0x4f3213
cmp eax, 3
jne 0x4f3161
cmp byte [esi + 0x5c], 0x1f
mov eax, dword [ebp - 0x20]
movzx eax, ax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x60], eax
jbe 0x4f3161
lea ecx, [ebp - 0x60]
call fcn.004ec194
test eax, eax
js 0x4f2e2a
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov ecx, ebx
call fcn.004eceb4
jmp 0x4f3158
push edi
mov edi, dword [ebp - 0xc]
mov edx, eax
mov ecx, edi
call fcn.004f0a4d
pop ecx
test eax, eax
js 0x4f2e2a
mov ecx, edi
call fcn.004f0ad9
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp dword [eax], 1
jne 0x4f32a5
mov cl, byte [ebp - 5]
xor edi, edi
movzx eax, cl
mov dword [ebp - 0x30], eax
mov dl, cl
mov ecx, ebx
call fcn.004ecf27
test eax, eax
js 0x4f2e2a
mov cl, byte [ebp - 5]
inc edi
cmp edi, dword [ebp - 0x30]
jle 0x4f328b
and dword [esi + 0x14b4], 0
mov ecx, ebx
and dword [esi + 0x14b0], 0
push 5
pop edx
call fcn.004ece34
test eax, eax
js 0x4f2e2a
mov al, byte [ebp - 0xd]
movzx eax, al
add ax, word [ebp - 0x1c]
movzx edi, ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
sub eax, 1
je 0x4f331b
sub eax, 1
je 0x4f32f6
sub eax, 1
jne 0x4f333c
add edi, dword [ebp - 0x38]
mov dword [ebp - 0xc], edi
jmp 0x4f333c
movzx edx, byte [ecx + 5]
mov ecx, ebx
call fcn.004ece34
test eax, eax
js 0x4f2e2a
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + 6]
add word [ebp - 0xc], ax
jmp 0x4f333f
cmp byte [esi + 0x5c], 0x1f
jbe 0x4f3333
mov edx, dword [ebp - 0x5c]
mov ecx, ebx
call fcn.004ece34
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x40]
inc eax
add eax, edi
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x18]
movzx edx, word [ebp - 0xc]
mov ecx, ebx
mov dword [ebp - 0x4c], edx
call fcn.004ece93
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4f3368
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_write.c_line_281
jmp 0x4f31de
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
sub eax, 0
je 0x4f34ee
sub eax, 1
je 0x4f3465
sub eax, 1
je 0x4f3420
sub eax, 1
je 0x4f33aa
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_write.c_line_308
mov dword [eax + 8], 0x18000021
jmp 0x4f2e2a
lea eax, [ebp - 0x50]
push eax
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x28]
call dword [ecx + 0xc]
add esp, 0x10
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
movzx ecx, ax
cmp edx, ecx
jae 0x4f33ec
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_write.c_line_304
mov dword [eax + 8], 0x18000009
jmp 0x4f2e2a
test ax, ax
je 0x4f3441
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4f3405
mov eax, dword [ebp - 0x50]
sub eax, ecx
add eax, edx
jne 0x4f34bb
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_write.c_line_305
jmp 0x4f2e2a
lea eax, [ebp - 0x50]
push eax
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x28]
call dword [ecx + 0xc]
add esp, 0x14
test eax, eax
js 0x4f2e2a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
cdq
add eax, 5
adc edx, 0
add dword [esi + 0x1af0], eax
movzx eax, cx
adc dword [esi + 0x1af4], edx
jmp 0x4f2e2d
lea eax, [ebp - 0x50]
push eax
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x28]
call dword [ecx + 0xc]
add esp, 0x10
test eax, eax
js 0x4f2e2a
cmp byte [esi + 0x5c], 0x20
jae 0x4f3441
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
movzx ecx, ax
cmp edx, ecx
jae 0x4f34a6
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_write.c_line_292
jmp 0x4f33e0
test ax, ax
je 0x4f3441
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4f34d3
mov eax, dword [ebp - 0x50]
sub eax, ecx
add eax, edx
je 0x4f34d3
push ecx
push eax
push ebx
call fcn.00552b30
add esp, 0xc
test eax, eax
jne 0x4f3441
jmp 0x4f2e2a
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_write.c_line_293
jmp 0x4f2e2a
lea eax, [ebp - 0x50]
push eax
push eax
push dword [ebp - 0x28]
call dword [ecx + 8]
add esp, 0xc
jmp 0x4f3439