Function at 0x10037530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_strstr]
push str.encrypt_0.01
push ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], ebx
mov esi, edx
call edi
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10037675
cmp byte [esi + 2], 0
lea edi, [esi + 2]
je 0x100375e2
mov ebx, dword [sym.imp.MSVCR100.dll_strncmp]
push 3
push 0x10377f58
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x100375df
push 3
push 0x10295310
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x100375df
push 3
push 0x1029530c
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x100375df
push 3
push 0x10295330
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x100375df
lea edx, [ebp - 0x48]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100375d0
mov ebx, dword [ebp - 0x58]
jmp 0x10037626
mov ebx, dword [ebp - 0x58]
cmp byte [esi + 0x23], 0
lea edx, [esi + 0x23]
je 0x100375fd
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100375f0
sub eax, esi
push eax
push edx
jmp 0x1003761b
add esi, 0x4d
cmp byte [esi], 0
je 0x10037659
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037610
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.100692f0
add esp, 8
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x10037632
mov byte [ebx], 0
jmp 0x10037636
mov byte [eax - 1], 0
mov edx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.10036ff0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push str.encrypt_0.1
push ebx
call edi
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10037729
cmp byte [esi + 2], 0
lea edi, [esi + 2]
je 0x100376ad
push 3
push 0x10377f58
push edi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100376ad
mov edx, edi
jmp 0x100376bf
cmp byte [esi + 0x23], 0
lea edx, [esi + 0x23]
jne 0x100376bf
cmp byte [esi + 0x4d], 0
je 0x1003770d
lea edx, [esi + 0x4d]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100376c4
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.100692f0
mov eax, dword [ebp - 0x50]
add esp, 8
cmp eax, ebx
jne 0x100376e6
mov byte [ebx], 0
jmp 0x100376ea
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10036ff0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push str.encrypt_0.2
push ebx
call edi
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10037826
lea ebx, [esi + 2]
xor edi, edi
cmp byte [ebx], 0
je 0x1003775e
push 3
push 0x10377f58
push ebx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10037774
cmp byte [esi + 0x23], 0
lea ebx, [esi + 0x23]
jne 0x10037774
cmp byte [esi + 0x4d], 0
lea ebx, [esi + 0x4d]
je 0x1003780e
cmp byte [esi + 0x5c], 0
jne 0x1003779c
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10037780
sub eax, edx
push eax
push ebx
lea ecx, [esi + 0x5c]
call fcn.100692f0
add esp, 8
cmp byte [esi + 0x5c], 0
je 0x1003780e
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
jne 0x100377ab
mov byte [ecx], 0
jmp 0x100377af
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
lea ecx, [esi + 0x5c]
call fcn.10037120
mov esi, eax
add esp, 4
test esi, esi
je 0x100377ed
mov eax, dword [ebp - 0x4c]
cmp dword [eax], edi
jbe 0x100377fb
mov edi, edi
mov dl, byte [ebx]
xor byte [edi + esi], dl
inc edi
cmp edi, dword [eax]
jb 0x100377d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push str.mssp_decrypt_data_1_failed_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret