Function at 0x3e3e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x3e3e64
call dword [0x10391000]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push ebx
call fcn.00360590
add esp, 4
cmp eax, esi
jbe 0x3e3eb9
push 0x1dc
push 0x10362843
push 0x87
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
xor ebx, ebx
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, eax
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x10], 3
je 0x3e3ed3
push edi
call fcn.0038ab10
add esp, 4
mov esi, eax
test eax, eax
je 0x3e3f07
mov eax, dword [ebp - 0x14]
cmp edi, eax
je 0x3e3f0d
push 0x1eb
push 0x10362843
push 0x70
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
xor ebx, ebx
mov edi, dword [ebp - 0x10]
cmp edi, 3
je 0x3e3eaf
push esi
call fcn.0038abe0
add esp, 4
jmp 0x3e3eaf
xor ebx, ebx
xor esi, esi
jmp 0x3e3efc
push eax
push dword [ebp - 0x18]
push esi
push ebx
call fcn.00362290
add esp, 0x10
xor ebx, ebx
test eax, eax
mov edi, dword [ebp - 0x10]
je 0x3e3ef7
cmp edi, 1
je 0x3e3f66
cmp edi, 3
mov eax, dword [ebp - 0x14]
je 0x3e3f59
cmp edi, 4
je 0x3e4097
push 0x202
push 0x10362843
push 0x8f
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
xor ebx, ebx
jmp 0x3e3efc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
xor ebx, ebx
inc ebx
jmp 0x3e3eaf
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x3e3f80
cmp ecx, 0xa
ja 0x3e3fda
push 0x125
push 0x10362843
push 0x7e
jmp 0x3e3f8c
push 0x11c
push 0x10362843
push pe_nt_image_headers32
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
push 0x208
push 0x10362843
push 0x88
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
jmp 0x3e3ef7
push 0x14a
push 0x10362843
push 0x89
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
mov esi, edi
mov edi, dword [ebp - 0x10]
jmp 0x3e3f98
movzx eax, byte [esi]
mov dword [ebp - 0x28], eax
movzx eax, byte [esi + 1]
xor eax, 2
mov dword [ebp - 0x24], eax
xor eax, eax
xor ecx, ecx
dec ecx
mov ebx, 2
mov dword [ebp - 0x18], esi
mov edx, eax
mov esi, ecx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + ebx]
dec ecx
sar ecx, 0x1f
mov edi, ecx
and edi, esi
mov eax, ebx
xor eax, edx
and eax, edi
xor eax, edx
not ecx
and ecx, esi
inc ebx
cmp dword [ebp - 0x14], ebx
jne 0x3e3ff7
mov edi, dword [ebp - 0x18]
lea edx, [eax - 0xa]
mov esi, eax
not esi
test edx, esi
mov ebx, 0
js 0x3e3fb8
mov edx, dword [ebp - 0x28]
dec edx
mov esi, dword [ebp - 0x24]
dec esi
and esi, edx
jns 0x3e3fb8
cmp ecx, 0xffffffff
je 0x3e3fb8
inc eax
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov esi, edi
jae 0x3e4072
push 0x152
push 0x10362843
push 0x89
push 0
push 4
call fcn.0039f2d0
add esp, 0x14
jmp 0x3e3fd5
mov edi, dword [ebp - 0x10]
je 0x3e408a
add eax, esi
push ecx
push eax
push dword [ebp - 0x20]
mov ebx, ecx
call fcn.002a9040
mov ecx, ebx
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
xor ebx, ebx
inc ebx
jmp 0x3e3ef7
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.003e3890
add esp, 0x24
test eax, eax
je 0x3e3f98
xor ebx, ebx
inc ebx
jmp 0x3e3efc