Function at 0x1015b140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
xor edx, edx
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0xb3]
mov byte [ebp - 0xb4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x8b]
mov byte [ebp - 0x8c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x3b]
mov byte [ebp - 0x3c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x63]
mov byte [ebp - 0x64], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0xdb]
mov byte [ebp - 0xdc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x220]
mov dword [ebp - 0x224], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, 0x3e
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
mov ebx, dword [eax]
mov eax, dword [ebp + 0x18]
mov edi, eax
mov dword [ebp - 8], edx
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0xc], edx
add esi, ebx
mov dword [ebp - 0x14], edx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp word [eax + 6], dx
jbe 0x1015b2a5
mov edx, dword [ebx + 0x3c]
mov eax, edi
and eax, 0xffff
push str..rdata
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
lea esi, [eax + ebx + 0xf8]
push esi
call fcn.101716a8
add esp, 8
test eax, eax
jne 0x1015b258
mov dword [ebp - 0x10], esi
push str..edata
push esi
call fcn.101716a8
add esp, 8
test eax, eax
jne 0x1015b26d
mov dword [ebp - 8], esi
push str..rsrc
push esi
call fcn.101716a8
add esp, 8
test eax, eax
jne 0x1015b282
mov dword [ebp - 0xc], esi
push str..reloc
push esi
call fcn.101716a8
add esp, 8
test eax, eax
jne 0x1015b297
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x18]
inc edi
cmp di, word [ecx + 6]
jb 0x1015b22c
mov eax, ecx
xor edx, edx
mov ecx, 0x3e
mov esi, eax
lea edi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
test cl, 2
je 0x1015b2cb
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x1d4], edx
cmp dword [ebp + 0x10], edx
je 0x1015b2d7
mov dword [ebp - 4], 0xa
mov esi, dword [ebp + 0xc]
test cl, 1
je 0x1015b30d
cmp eax, edx
je 0x1015b30d
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xb4]
push 0xffff0001
push edx
push eax
push esi
lea ecx, [ebp - 0x224]
push 0xf8
push ecx
call fcn.1015b4d0
mov eax, dword [ebp + 0x18]
add esp, 0x18
xor edx, edx
mov ecx, dword [ebp + 8]
test byte [ecx + 4], 0x10
je 0x1015b33f
cmp eax, edx
je 0x1015b33f
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x8c]
push 0xffff0001
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
push ecx
push esi
add eax, ebx
push edx
push eax
call fcn.1015b4d0
add esp, 0x18
xor edx, edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
test ah, 1
je 0x1015b373
mov eax, dword [ebp - 0x10]
cmp eax, edx
je 0x1015b373
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x3c]
push 0xffff0001
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push esi
add eax, ebx
push edx
push eax
call fcn.1015b4d0
add esp, 0x18
xor edx, edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
test ah, 0x10
je 0x1015b3aa
mov eax, dword [ebp - 8]
cmp eax, edx
je 0x1015b3aa
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x104]
push 0xffff0001
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push esi
add eax, ebx
push edx
push eax
call fcn.1015b4d0
add esp, 0x18
xor edx, edx
mov ecx, dword [ebp + 8]
test dword [ecx + 4], 0x10000
je 0x1015b3df
mov eax, dword [ebp - 0xc]
cmp eax, edx
je 0x1015b3df
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x64]
push 0xffff0001
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push esi
add eax, ebx
push edx
push eax
call fcn.1015b4d0
add esp, 0x18
xor edx, edx
mov ecx, dword [ebp + 8]
test dword [ecx + 4], 0x100000
je 0x1015b417
mov eax, dword [ebp - 0x14]
cmp eax, edx
je 0x1015b417
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xdc]
push 0xffff0001
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push esi
add eax, ebx
push edx
push eax
call fcn.1015b4d0
add esp, 0x18
xor edx, edx
xor eax, eax
mov cl, byte [ebp + eax - 0xdc]
mov bl, byte [ebp + eax - 0x64]
xor cl, bl
mov bl, byte [ebp + eax - 0x104]
xor cl, bl
mov bl, byte [ebp + eax - 0x3c]
xor cl, bl
mov bl, byte [ebp + eax - 0x8c]
xor cl, bl
mov bl, byte [ebp + eax - 0xb4]
xor cl, bl
mov byte [ebp + eax - 0x12c], cl
inc eax
cmp eax, 0x28
jl 0x1015b419
mov dword [ebp + 8], edx
mov dword [ebp + 8], ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
mov edi, dword [ebp + 8]
add ecx, eax
mov esi, dword [edi + 4]
mov edx, dword [ecx + 0x2c]
lea ebx, [edx + eax]
cmp esi, ebx
jb 0x1015b488
mov ecx, dword [ecx + 0x1c]
add ecx, edx
add ecx, eax
cmp esi, ecx
ja 0x1015b488
cmp eax, 0x400000
je 0x1015b4aa
mov eax, 1
mov dword [0x10a6e4c4], 0x2011
mov dword [0x10a6e4d4], eax
mov dword [0x10a6e4c0], eax
mov edx, dword [edi + 4]
mov dword [0x10a6e4c8], edx
mov edi, dword [ebp + 0x14]
mov ecx, 0xa
lea esi, [ebp - 0x12c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret