Function at 0x100b5140
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012796e
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x10141040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x38], eax
push str.._Settings.ini
push 0x100
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push 0x1012f482
push str.Code
push str.SecretCode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x100b56e8
xorps xmm0, xmm0
mov dword [ebp - 0x14c], edi
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x148], edi
movups xmmword [ebp - 0x15c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b51d2
sub ecx, edx
lea eax, [ebp - 0x144]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.1000d190
xorps xmm0, xmm0
mov dword [ebp - 0x17c], 1
movups xmmword [ebp - 0x18c], xmm0
mov dword [ebp - 0x178], 0xf
mov word [ebp - 0x18c], 0x2c
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14c]
mov dword [ebp - 0x18], esi
nop dword [eax]
nop word [eax + eax]
mov edx, dword [ebp - 0x148]
lea ecx, [ebp - 0x15c]
cmp edx, 0xf
cmova ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x198], ecx
cmp esi, 1
jb 0x100b52af
lea eax, [esi + ecx]
mov dword [ebp - 0x194], eax
sub eax, ecx
push eax
push 0x2c
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100b52a9
nop
movzx eax, byte [esi]
lea ecx, [ebp - 0x18c]
cmp al, byte [ecx]
jne 0x100b5281
xor eax, eax
jmp 0x100b5286
sbb eax, eax
or eax, 1
test eax, eax
je 0x100b5321
mov eax, dword [ebp - 0x194]
inc esi
sub eax, esi
push eax
push 0x2c
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100b5270
mov edx, dword [ebp - 0x148]
or esi, 0xffffffff
lea eax, [ebp - 0x15c]
cmp esi, 0xffffffff
je 0x100b53c9
cmp dword [ebp - 0x18], esi
mov ecx, esi
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0
cmovb ecx, dword [ebp - 0x18]
cmp edx, 0xf
push ecx
cmova eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x174]
push eax
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x160], 0
call fcn.1000d190
mov byte [ebp - 4], 3
lea eax, [ebp - 0x174]
push eax
cmp edi, dword [ebp - 0x190]
je 0x100b532f
mov ecx, edi
call fcn.10080e10
add edi, 0x18
mov dword [ebp - 0x3c], edi
jmp 0x100b5344
sub esi, dword [ebp - 0x198]
mov edx, dword [ebp - 0x148]
jmp 0x100b52b2
push edi
lea ecx, [ebp - 0x40]
call fcn.100b5880
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x190], eax
lea edx, [esi + 1]
mov esi, dword [ebp - 0x14c]
cmp esi, edx
lea ecx, [ebp - 0x15c]
cmovb edx, esi
cmp dword [ebp - 0x148], 0xf
cmova ecx, dword [ebp - 0x15c]
sub esi, edx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov byte [ebp - 4], 2
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x14c], esi
cmp ecx, 0xf
jbe 0x100b5230
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b53ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b5583
push ecx
push edx
call fcn.100d84b0
add esp, 8
jmp 0x100b5219
push eax
cmp edi, dword [ebp - 0x190]
je 0x100b53de
mov ecx, edi
call fcn.10080e10
add edi, 0x18
jmp 0x100b53f3
push edi
lea ecx, [ebp - 0x40]
call fcn.100b5880
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x190], eax
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0x3973374a
mov word [ebp - 0x14], 0x7150
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x20], 0x6c6c6548
mov word [ebp - 0x1c], 0x216f
mov byte [ebp - 0x1a], 0
mov dword [ebp - 0x28], 0x2a262347
mov word [ebp - 0x24], 0x3738
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x30], 0x64436241
mov word [ebp - 0x2c], 0x6645
mov byte [ebp - 0x2a], 0
mov dword [ebp - 0x194], esi
cmp esi, edi
je 0x100b5529
lea edx, [ebp - 0x18]
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100b5450
sub edx, ecx
mov dword [ebp - 0x198], edx
nop
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x100b546a
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.100346d0
add esp, 8
test al, al
jne 0x100b56cc
lea edx, [ebp - 0x20]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100b5488
sub edx, ecx
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x100b549b
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.100346d0
add esp, 8
test al, al
jne 0x100b569c
lea edx, [ebp - 0x28]
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100b54c0
sub edx, ecx
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x100b54d3
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.100346d0
add esp, 8
test al, al
jne 0x100b55ed
lea edx, [ebp - 0x30]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100b54f1
sub edx, ecx
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x100b5504
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.100346d0
add esp, 8
test al, al
jne 0x100b5589
mov edx, dword [ebp - 0x198]
add esi, 0x18
cmp esi, edi
jne 0x100b5460
movaps xmm0, xmmword [0x10138b70]
lea eax, [ebp - 0x44]
push 0x10
push 0x101367e0
push eax
push 0
movups xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x100b56e2
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b56d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100b56d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
push 0x5ad691
call esi
mov eax, 0x5ad691
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 5
push 0x5ad691
call esi
push 0x59b00e
push 0x59affa
push 0xe8
call fcn.100c9bf0
push 0x59b00e
push 0x59affa
push 0xe9
call fcn.100c9bf0
add esp, 0x18
jmp 0x100b554b
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push 0x958d4f
call esi
lea eax, [ebp - 0x18]
mov dword [0x958d4f], 0xcaed
push eax
push dword [ebp - 0x18]
push 4
push 0x958d4f
call esi
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push 0x958d88
call esi
lea eax, [ebp - 0x18]
mov dword [0x958d88], 0xcaed
push eax
push dword [ebp - 0x18]
push 4
push 0x958d88
call esi
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push 0x958dbe
call esi
lea eax, [ebp - 0x18]
mov dword [0x958dbe], 0xcaed
push eax
push dword [ebp - 0x18]
push 4
push 0x958dbe
call esi
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push 0x958dda
call esi
lea eax, [ebp - 0x18]
mov dword [0x958dda], 0xcaed
push eax
push dword [ebp - 0x18]
push 4
push 0x958dda
call esi
jmp 0x100b554b
push 0x100b5010
push 0x561740
push 0xe9
call fcn.100c9bf0
push 0x100b50e0
push 0x57ddd7
push 0xe9
call fcn.100c9bf0
add esp, 0x18
jmp 0x100b554b
mov byte [0x102fb12b], 1
jmp 0x100b554b
push ecx
push edx
call fcn.100d84b0
add esp, 8
mov esi, dword [ebp - 0x194]
test esi, esi
je 0x100b573a
push ecx
mov edx, edi
mov ecx, esi
call fcn.100b5810
mov eax, dword [ebp - 0x190]
add esp, 4
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x100b5730
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100b5730
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.100d84b0
add esp, 8
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.100d84a2
mov esp, ebp
pop ebp
ret