Function at 0x5431d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x94]
mov edx, dword [esi + 0xc]
test ebx, ebx
mov ecx, dword [edx + 0x24]
jne 0x543205
cmp dword [edx + 0x14], 0x10
mov ebx, dword [edx + 0x28]
mov eax, 0xc
je 0x543212
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [edx + 0x14], 0x10
mov ebx, ecx
mov eax, 0xc
jne 0x5431fd
cmp dword [esp + 0x90], 0xf
jbe 0x543510
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x88], eax
jb 0x543510
cmp dword [esp + 0x90], 0x1000000
mov eax, 0x8b
ja 0x5431fd
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
shr eax, 4
test edx, edx
mov dword [esp + 0x4c], eax
jne 0x54351a
test byte [esp + 0x90], 0xf
je 0x54351a
sub eax, 1
lea edi, [esi + 0x50]
mov ebp, eax
mov dword [esp + 0x4c], eax
lea eax, [esi + 0x40]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esi + 0x80]
mov dword [esp], eax
call ecx
test ebp, ebp
mov dword [esp + 0x2c], eax
jne 0x54361d
cmp dword [esp + 0x90], 0x10
jbe 0x543816
cmp dword [esp + 0x90], 0x1f
ja 0x5437f2
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
lea ebp, [esp + 0x50]
mov ecx, dword [esi + 0x5c]
shld edx, eax, 1
add eax, eax
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x54]
mov dword [esp + 0x20], eax
mov eax, edx
xor edx, edx
shr eax, 0x1f
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
sar ecx, 0x1f
and ecx, 0x87
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x54]
shld edx, eax, 1
add eax, eax
xor ecx, eax
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x50], ecx
mov ecx, ebp
call sym._buf_xor.constprop.0
mov ecx, dword [esp + 0x84]
lea eax, [esi + 0x200]
mov dword [esp + 0x20], eax
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x84]
cmp ecx, eax
cmovae eax, ecx
mov ecx, ebp
mov dword [esp + 0x2c], eax
mov eax, edx
call sym._buf_xor.constprop.0
sub dword [esp + 0x90], 0x10
add dword [esp + 0x8c], 0x10
add dword [esp + 0x84], 0x10
mov edx, ebp
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x90], 4
mov eax, dword [eax - 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax - 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax - 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax - 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x8c]
jae 0x5435ec
xor ecx, ecx
test byte [esp + 0x90], 2
je 0x5433dd
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test byte [esp + 0x90], 1
je 0x5433ee
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x84]
sub eax, 0x10
cmp dword [esp + 0x90], 4
mov dword [esp + 0x30], eax
jae 0x543776
cmp dword [esp + 0x90], 0
je 0x54342e
movzx edx, byte [eax]
mov ecx, dword [esp + 0x84]
mov byte [ecx], dl
test byte [esp + 0x90], 2
jne 0x54383a
xor eax, eax
mov edx, dword [ebp + eax]
xor edx, dword [edi + eax]
mov dword [ebp + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x543430
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov dword [esp + 4], ebp
mov dword [esp], eax
call ebx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
cmovae eax, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov edx, dword [ebp + eax]
xor edx, dword [edi + eax]
mov ecx, dword [esp + 0x84]
mov dword [ecx + eax - 0x10], edx
add eax, 4
cmp eax, 0x10
jne 0x543463
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
add ecx, 1
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
adc ebx, 0
mov eax, ecx
mov dword [esi + 0x58], 0
or eax, ebx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ebx
sete al
xor edx, edx
mov dword [esi + 0x5c], 0
movzx eax, al
add eax, dword [esi + 0x48]
adc edx, dword [esi + 0x4c]
mov dword [esi + 0x48], eax
xor eax, eax
mov dword [esi + 0x4c], edx
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x5431fd
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
add edx, 0x10
mov dword [esp], edx
call dbg.__gcry_burn_stack
mov eax, dword [esp + 0x20]
jmp 0x5431fd
mov eax, 0xc8
jmp 0x5431fd
lea eax, [esi + 0x40]
lea edi, [esi + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [esi + 0x80]
mov dword [esp], eax
call ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x543628
mov ecx, dword [esp + 0x94]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], ecx
call eax
mov eax, ebp
shl eax, 4
add dword [esp + 0x8c], eax
add dword [esp + 0x84], eax
sub dword [esp + 0x90], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x54347d
mov eax, dword [esp + 0x94]
test eax, eax
je 0x54329f
cmp dword [esp + 0x90], 0xf
lea eax, [esi + 0x200]
lea ebp, [esp + 0x50]
mov dword [esp + 0x20], eax
jbe 0x543377
mov dword [esp + 0xc], str._gcry_cipher_xts_crypt
mov dword [esp + 8], 0x91
mov dword [esp + 4], 0x64da70
mov dword [esp], str.inbuflen____128___8_
call dbg._gcry_assert_failed
mov edx, dword [esp + 0x90]
xor eax, eax
and edx, 0xfffffffc
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + eax]
mov dword [ebp + eax], ecx
add eax, 4
cmp eax, edx
jb 0x5435f8
lea edx, [ebp + eax]
add eax, dword [esp + 0x8c]
jmp 0x5433c6
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x543542
lea eax, [esi + 0x200]
mov ecx, dword [esp + 0x8c]
lea ebp, [esp + 0x50]
mov dword [esp + 0x80], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov esi, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
lea esi, [esi]
mov ebx, dword [esp + 0x20]
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esi + eax]
xor edx, dword [edi + eax]
mov dword [ebp + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x543670
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call eax
mov ebx, dword [esp + 0x2c]
cmp ebx, eax
cmovae eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
xor eax, eax
nop
mov edx, dword [ebp + eax]
xor edx, dword [edi + eax]
mov dword [ebx + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x5436b0
mov eax, ebx
add esi, 0x10
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x80]
mov ebx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
shld ebx, ecx, 1
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
add ecx, ecx
mov dword [esp + 0x38], eax
mov eax, edx
mov dword [esp + 0x3c], edx
shr eax, 0x1f
xor edx, edx
add eax, ecx
mov ecx, dword [esp + 0x34]
adc edx, ebx
mov ebx, dword [esp + 0x80]
sar ecx, 0x1f
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
and ecx, 0x87
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
shld edx, eax, 1
add eax, eax
xor ecx, eax
sub dword [esp + 0x44], 1
mov dword [ebx + 0x50], ecx
mov ecx, ebx
mov dword [ecx + 0x54], edx
jne 0x543660
mov esi, ecx
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov eax, ecx
shl eax, 4
add dword [esp + 0x84], eax
add dword [esp + 0x8c], eax
imul eax, ecx, 0xfffffff0
add dword [esp + 0x90], eax
jmp 0x54358e
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx - 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + ecx - 4]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x90]
mov dword [ecx + eax - 4], edx
mov eax, dword [esp + 0x84]
lea ecx, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x30]
and ecx, 0xfffffffc
sub edx, ecx
sub eax, edx
add edx, dword [esp + 0x90]
and edx, 0xfffffffc
cmp edx, 4
jb 0x54342e
and edx, 0xfffffffc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], edx
xor edx, edx
mov ebx, dword [eax + edx]
mov dword [ecx + edx], ebx
add edx, 4
cmp edx, dword [esp + 0x30]
jb 0x5437da
mov ebx, dword [esp + 0x38]
jmp 0x54342e
mov dword [esp + 0xc], str._gcry_cipher_xts_crypt
mov dword [esp + 8], 0x81
mov dword [esp + 4], 0x64da70
mov dword [esp], str.inbuflen____128___8___2
call dbg._gcry_assert_failed
mov dword [esp + 0xc], str._gcry_cipher_xts_crypt
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x64da70
mov dword [esp], 0x64da7d
call dbg._gcry_assert_failed
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x90]
movzx eax, word [eax + ecx - 2]
mov ecx, dword [esp + 0x84]
mov word [ecx + edx - 2], ax
jmp 0x54342e