Function at 0x10040740
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa245
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x101180c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x51424442
xor eax, eax
mov dword [ebp - 0x20], 0xd424b57
mov dword [ebp - 0x1c], 0x4840424b
mov byte [ebp - 0x18], 0x23
nop dword [eax + eax]
xor byte [ebp + eax - 0x24], 0x23
inc eax
cmp eax, 0xd
jb 0x100407a0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100407c6
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10034070
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x45]
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040802
sub ecx, edx
lea eax, [ebp - 0x45]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10034070
mov byte [ebp - 4], 1
cmp byte [0x1014c01c], 0
je 0x100408c6
mov ecx, dword [0x101c31e4]
mov esi, dword [0x101c3270]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1004088c
mov eax, dword [esi]
test eax, eax
je 0x1004088c
mov al, byte [eax + 0x20]
test al, al
je 0x1004088c
cmp byte [0x1015c1c4], 0
je 0x10040880
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xc
movups xmmword [ecx], xmm0
push str.agartha.hack
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10034070
call fcn.100409a0
mov byte [0x1015c1c4], 0
jmp 0x10040913
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xc
movups xmmword [ecx], xmm0
push str.agartha.hack
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10034070
call fcn.100409a0
mov byte [0x1015c1c4], 1
mov byte [0x1015c1e8], 1
jmp 0x10040913
cmp byte [0x1015c1e8], 0
je 0x10040913
sub esp, 0x18
mov byte [ebp - 0x45], 0
mov edx, esp
lea ecx, [ebp - 0x45]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100408f2
sub ecx, esi
lea eax, [ebp - 0x45]
push ecx
push eax
mov ecx, edx
call fcn.10034070
call fcn.100409a0
mov byte [0x1015c1e8], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10040943
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040939
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040969
push ecx
push edx
call fcn.100f842c
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x10040979
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004096f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004096f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f842c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f7fb0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret