Function at 0x15016d90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
neg eax
sub eax, 1
neg ecx
sbb ecx, ecx
test ecx, eax
jne 0x15016db5
push 0x57
call sym.Storm.dll_Ordinal_465
xor eax, eax
ret 0x14
push ebx
push ebp
push esi
push edi
push 0x1504c2bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, ebp
call fcn.15016b00
mov edi, eax
test edi, edi
jne 0x15016ef6
mov eax, dword [0x1504c2b4]
mov ecx, dword [0x1504c2b8]
mov edx, eax
shr edx, 1
cmp ecx, edx
jb 0x15016ea2
mov ebx, 1
lea eax, [ecx + ecx + 2]
cmp eax, ebx
mov dword [esp + 0x20], ebx
jb 0x15016e0f
add ebx, ebx
cmp ebx, eax
jbe 0x15016e05
mov dword [esp + 0x20], ebx
push 8
push 0x140
push str..SEvt.cpp
lea eax, [ebx*4]
push eax
call sym.Storm.dll_Ordinal_401
mov edi, eax
mov eax, dword [0x1504c2b0]
test eax, eax
je 0x15016e95
mov edx, dword [0x1504c2b4]
test edx, edx
je 0x15016e83
xor esi, esi
test edx, edx
jbe 0x15016e83
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x15016e78
add ebx, 0xffffffff
lea ecx, [ecx]
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
mov edx, dword [ecx + 0x10]
and eax, ebx
test edx, edx
mov ebp, dword [edi + eax*4]
mov dword [ecx + 0x10], ebp
mov dword [edi + eax*4], ecx
mov ecx, edx
jne 0x15016e50
mov eax, dword [0x1504c2b0]
mov edx, dword [0x1504c2b4]
mov ebx, dword [esp + 0x20]
add esi, 1
cmp esi, edx
jb 0x15016e43
mov ebp, dword [esp + 0x18]
push 0
push 0x151
push str..SEvt.cpp
push eax
call sym.Storm.dll_Ordinal_403
mov eax, ebx
mov dword [0x1504c2b0], edi
mov dword [0x1504c2b4], eax
mov ebx, dword [esp + 0x14]
push 8
push 0x15a
push str..SEvt.cpp
add eax, 0xffffffff
xor ebx, ebp
push 0x14
and ebx, eax
call sym.Storm.dll_Ordinal_401
mov ecx, dword [esp + 0x14]
push 8
push 0x15d
mov edi, eax
push str..SEvt.cpp
push 0x10
mov dword [edi], ecx
mov dword [edi + 4], ebp
call sym.Storm.dll_Ordinal_401
add dword [0x1504c2b8], 1
mov dword [edi + 0xc], eax
mov eax, dword [0x1504c2b0]
mov edx, dword [eax + ebx*4]
mov dword [edi + 0x10], edx
mov dword [eax + ebx*4], edi
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 4]
mov edx, ecx
shr edx, 1
cmp dword [eax + 8], edx
jb 0x15017018
mov esi, 1
lea eax, [ecx + ecx + 2]
cmp eax, esi
mov dword [esp + 0x14], esi
jb 0x15016f2e
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
lea eax, [eax + eax + 2]
add esi, esi
cmp esi, eax
jbe 0x15016f24
mov dword [esp + 0x14], esi
push 8
push 0x16b
push str..SEvt.cpp
lea ebx, [esi*4]
push ebx
call sym.Storm.dll_Ordinal_401
push 8
push 0x16c
push str..SEvt.cpp
mov ebp, eax
push ebx
mov dword [esp + 0x30], ebp
call sym.Storm.dll_Ordinal_401
test esi, esi
jbe 0x15016f7d
mov edx, ebp
mov ecx, eax
sub edx, eax
mov ebx, esi
jmp 0x15016f70
lea ebp, [edx + ecx]
mov dword [ecx], ebp
add ecx, 4
sub ebx, 1
jne 0x15016f70
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x15016fdb
mov edx, dword [ecx + 4]
test edx, edx
je 0x15016fdb
xor ecx, ecx
test edx, edx
mov dword [esp + 0x18], ecx
jbe 0x15016fdb
mov edx, dword [edi + 0xc]
mov edx, dword [edx]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x15016fcc
mov ecx, dword [edx]
mov ebx, dword [edx + 0xc]
add esi, 0xffffffff
and ecx, esi
test ebx, ebx
lea esi, [edx + 0xc]
mov dword [esi], 0
mov ebp, dword [eax + ecx*4]
mov dword [ebp], edx
mov dword [eax + ecx*4], esi
mov esi, dword [esp + 0x14]
mov edx, ebx
jne 0x15016fa2
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0xc]
add ecx, 1
cmp ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
jb 0x15016f96
push 0
push 0x17f
push str..SEvt.cpp
push eax
call sym.Storm.dll_Ordinal_403
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x15017009
mov eax, dword [eax]
push 0
push 0x181
push str..SEvt.cpp
push eax
call sym.Storm.dll_Ordinal_403
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov eax, dword [edi + 0xc]
mov dword [eax + 4], esi
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + 4]
mov ebx, dword [esp + 0x1c]
push 8
push 0x18a
mov ebp, 1
push str..SEvt.cpp
sub esi, ebp
push 0x10
and esi, ebx
call sym.Storm.dll_Ordinal_401
mov edx, dword [esp + 0x24]
mov dword [eax], ebx
add dword [edi + 8], ebp
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx + esi*4]
mov dword [eax + 0xc], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edx]
mov dword [ecx + esi*4], eax
mov edi, dword [edi + 0xc]
add dword [edi + 8], ebp
push 0x1504c2bc
mov dword [0x1504c2a8], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x14