Function at 0x10003370
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov edx, dword [0x101012e4]
mov ecx, dword [0x101012e0]
push ebx
mov dword [esp + 8], eax
mov eax, dword [0x101012e8]
mov dword [esp + 0x10], edx
mov edx, dword [0x10100e78]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [0x10100e7c]
mov dword [esp + 0x1c], edx
mov edx, dword [0x10100e80]
push edi
mov edi, dword [esp + 0x40]
mov ebx, ecx
add ecx, edi
cmp ecx, 0x3ff
mov dword [esp + 0x24], eax
mov eax, dword [0x10100e84]
mov dword [esp + 0x28], edx
mov edx, dword [0x10100e88]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [0x101012e0], ecx
jl 0x10003415
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 [0x101012e0], ecx
mov dword [0x101012dc], 0x3ff
jmp 0x1000342b
mov eax, dword [0x101012dc]
cmp eax, 0x3ff
jge 0x1000342b
cmp ecx, eax
jle 0x1000342b
mov dword [0x101012dc], ecx
mov eax, 0x66666667
imul edi
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, edi
sub edx, ecx
xor ecx, ecx
test edx, edx
setg cl
push 0x28
add ecx, eax
add dword [0x101012e8], ecx
call fcn.10087e65
mov esi, eax
add esp, 4
test esi, esi
je 0x10003727
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x5000100
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], eax
call sym.inicrypto_v5.4.1.dll_ISC_Init_DIGEST
add esp, 8
test eax, eax
jne 0x10003675
push ebp
mov dword [esp + 0x18], eax
test edi, edi
jle 0x10003606
mov dword [esp + 0x10], edi
jmp 0x100034b6
mov edi, dword [esp + 0x10]
cmp edi, 0x14
jle 0x100034c0
mov edi, 0x14
lea edx, [esp + 0x24]
test edx, edx
je 0x10003674
mov ecx, dword [esi + 0xc]
mov eax, edx
mov edx, dword [esi + 0x18]
push 0x14
push eax
push ecx
call edx
add esp, 0xc
test eax, eax
jne 0x10003674
lea ebp, [edi + ebx - 0x3ff]
test ebp, ebp
jle 0x1000352e
mov eax, edi
lea ecx, [ebx + 0x10100e90]
sub eax, ebp
test ecx, ecx
je 0x10003674
test eax, eax
jl 0x10003674
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push eax
call ecx
add esp, 0xc
test eax, eax
jne 0x10003674
push ebp
push 0x10100e90
push esi
call sym.inicrypto_v5.4.1.dll_ISC_Update_DIGEST
jmp 0x1000354f
lea eax, [ebx + 0x10100e90]
test eax, eax
je 0x10003674
test edi, edi
jl 0x10003674
mov edx, dword [esi + 0xc]
push edi
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
add esp, 0xc
test eax, eax
jne 0x10003674
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x10003674
test edi, edi
jl 0x10003674
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push edi
push ebp
push ecx
call edx
add esp, 0xc
test eax, eax
jne 0x10003674
lea eax, [esp + 0x1c]
test eax, eax
je 0x10003674
mov edx, dword [esi + 0xc]
mov ecx, eax
mov eax, dword [esi + 0x18]
push 8
push ecx
push edx
call eax
add esp, 0xc
test eax, eax
jne 0x10003674
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call sym.inicrypto_v5.4.1.dll_ISC_Final_DIGEST
add esp, 0xc
test eax, eax
jne 0x10003674
inc dword [esp + 0x20]
add ebp, edi
mov dword [esp + 0x14], ebp
test edi, edi
jle 0x100035ec
mov cl, byte [esp + eax + 0x24]
xor byte [ebx + 0x10100e90], cl
inc ebx
cmp ebx, 0x3ff
jl 0x100035e7
xor ebx, ebx
inc eax
cmp eax, edi
jl 0x100035d2
mov eax, dword [esp + 0x18]
sub dword [esp + 0x10], 0x14
add eax, 0x14
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jl 0x100034b2
xor eax, eax
jmp 0x10003610
movzx edx, byte [esp + eax + 0x24]
xor byte [eax + 0x10100e78], dl
movzx ecx, byte [esp + eax + 0x25]
movzx edx, byte [esp + eax + 0x26]
xor byte [eax + 0x10100e79], cl
xor byte [eax + 0x10100e7a], dl
movzx ecx, byte [esp + eax + 0x27]
movzx edx, byte [esp + eax + 0x28]
xor byte [eax + 0x10100e7b], cl
xor byte [eax + 0x10100e7c], dl
add eax, 5
cmp eax, 0x14
jl 0x10003610
fld qword [0x100da330]
fld qword [0x101012f0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10003672
fadd qword [esp + 0x48]
fstp qword [0x101012f0]
jmp 0x10003674
fstp st(0)
pop ebp
or edi, 0xffffffff
cmp dword [esi + 0x20], edi
jne 0x1000371e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100036ae
push eax
mov eax, dword [esi + 0xc]
push 0
push eax
call fcn.1008e320
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x100036ae
push eax
call fcn.10087d88
add esp, 4
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
cmp dword [esi + 0x20], edi
jne 0x1000371e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100036ff
mov ecx, dword [esi + 0xc]
push eax
push 0
push ecx
call fcn.1008e320
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x100036ff
push eax
call fcn.10087d88
add esp, 4
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push esi
call fcn.10087d88
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087a66
add esp, 0x2c
ret