Function at 0x10056430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [0x10114ee0], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
je 0x10056596
mov eax, dword [0x10114e68]
test eax, eax
je 0x10056470
lea ecx, [esp + 0xc]
push ecx
call eax
add esp, 4
jmp 0x10056491
mov eax, dword [0x10114e64]
test eax, eax
je 0x1005647d
call eax
jmp 0x10056483
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ebx, dword [0x10114e5c]
test ebx, ebx
je 0x100564b4
push 0xdd
push str...crypto_randmd_rand.c
push 0x13
push 5
call ebx
mov ebx, dword [0x10114e5c]
add esp, 0x10
lea ecx, [esp + 0xc]
mov edx, 0x10113974
call fcn.10031b10
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [esp + 0x30], esi
test ebx, ebx
je 0x100564ea
push 0xdf
push str...crypto_randmd_rand.c
push 0x13
push 6
call ebx
mov ebx, dword [0x10114e5c]
add esp, 0x10
test esi, esi
jne 0x1005650b
test ebx, ebx
je 0x1005650b
push 0xe4
push str...crypto_randmd_rand.c
push 0x12
push 9
call ebx
mov ebx, dword [0x10114e5c]
add esp, 0x10
mov edx, dword [0x10114ecc]
mov eax, dword [0x10114ed0]
mov ecx, dword [0x10114ec8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [0x1011397c]
mov dword [esp + 0x3c], eax
mov eax, dword [0x10113980]
mov dword [esp + 0x40], edx
mov edx, dword [0x10113984]
mov edi, ecx
add ecx, esi
cmp ecx, 0x3ff
mov dword [esp + 0x44], eax
mov eax, dword [0x10113988]
mov dword [esp + 0x48], edx
mov edx, dword [0x1011398c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [0x10114ec8], ecx
jl 0x100565a9
mov eax, 0x7fdff7fd
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3ff
add ecx, eax
mov dword [0x10114ec8], ecx
mov dword [0x10114ec4], 0x3ff
jmp 0x100565bf
mov ebx, dword [0x10114e5c]
mov dword [esp + 0x30], 0
jmp 0x100564ee
mov eax, dword [0x10114ec4]
cmp eax, 0x3ff
jge 0x100565bf
cmp ecx, eax
jle 0x100565bf
mov dword [0x10114ec4], ecx
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov edx, esi
sub edx, ecx
xor ecx, ecx
test edx, edx
setg cl
add ecx, eax
add dword [0x10114ed0], ecx
cmp dword [esp + 0x30], 0
jne 0x10056608
test ebx, ebx
je 0x10056608
push 0x104
push str...crypto_randmd_rand.c
push 0x12
push 0xa
call ebx
add esp, 0x10
xor eax, eax
cmp esi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], eax
jle 0x10056757
mov dword [esp + 0x34], esi
jmp 0x10056638
mov esi, dword [esp + 0x34]
cmp esi, 0x14
jle 0x10056642
mov esi, 0x14
lea edx, [esp + 0x14]
push 0x100f6d70
push edx
xor eax, eax
call fcn.1002b980
push 0x14
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [esp + 0x3c]
lea ebx, [esi + edi - 0x3ff]
add esp, 0x14
lea eax, [edi + 0x10113990]
lea ecx, [esp + 0x14]
test ebx, ebx
jle 0x10056696
mov edx, esi
sub edx, ebx
push edx
push eax
push ecx
call dword [esp + 0x34]
add esp, 0xc
push ebx
push 0x10113990
lea edx, [esp + 0x1c]
push edx
jmp 0x10056699
push esi
push eax
push ecx
call dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 0xc
push esi
push edx
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x34]
add esp, 0xc
push 8
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax + 8], 0x40
jg 0x100567f1
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x18]
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x20]
add esp, 8
test eax, eax
je 0x100566ff
lea edx, [esp + 0x14]
push edx
call eax
add esp, 4
or dword [esp + 0x1c], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 0x20]
push ecx
push 0
push edx
call fcn.100b34b0
inc dword [esp + 0x48]
add dword [esp + 0x38], esi
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x1005673e
mov cl, byte [esp + eax + 0x40]
xor byte [edi + 0x10113990], cl
inc edi
cmp edi, 0x3ff
jl 0x10056739
xor edi, edi
inc eax
cmp eax, esi
jl 0x10056724
mov eax, dword [esp + 0xc]
sub dword [esp + 0x34], 0x14
add eax, 0x14
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
jl 0x10056634
lea edi, [esp + 0x14]
call fcn.1002be80
mov esi, dword [esp + 0x30]
mov ecx, dword [0x10114e5c]
test esi, esi
jne 0x1005678b
test ecx, ecx
je 0x1005678b
push 0x137
push str...crypto_randmd_rand.c
push 0x12
push 9
call ecx
mov ecx, dword [0x10114e5c]
add esp, 0x10
xor eax, eax
lea ecx, [ecx]
movzx edx, byte [esp + eax + 0x40]
xor byte [eax + 0x1011397c], dl
movzx edx, byte [esp + eax + 0x41]
xor byte [eax + 0x1011397d], dl
movzx edx, byte [esp + eax + 0x42]
xor byte [eax + 0x1011397e], dl
movzx edx, byte [esp + eax + 0x43]
xor byte [eax + 0x1011397f], dl
movzx edx, byte [esp + eax + 0x44]
xor byte [eax + 0x10113980], dl
add eax, 5
cmp eax, 0x14
jl 0x10056790
fld qword [0x10103468]
fld qword [0x10114ed8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10056805
fadd qword [ebp + 0x10]
fstp qword [0x10114ed8]
jmp 0x10056807
mov eax, str.ctx__digest__md_size___EVP_MAX_MD_SIZE
mov ecx, 0x10e
mov edx, str...cryptoevpdigest.c
call fcn.10031f90
fstp st(0)
test esi, esi
jne 0x10056822
test ecx, ecx
je 0x10056822
push 0x142
push str...crypto_randmd_rand.c
push 0x12
push 0xa
call ecx
add esp, 0x10
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ae60d
mov esp, ebp
pop ebp
ret