Function at 0x100ba5c0
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 0x1012da6c
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1014600c]
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
xor eax, eax
mov dword [ebp - 0x18c], 0
xor ebx, ebx
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], eax
push str.._Settings.ini
push 0x100
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
push eax
push 0x10136507
push str.Code
push str.SecretCode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x100bacb9
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x148], bl
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ba660
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.1000c7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
push 1
push 0x1013bc3c
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
call fcn.1000c7d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x160]
nop word [eax + eax]
cmp dword [ebp - 0x14c], 0x10
lea esi, [ebp - 0x160]
mov ecx, dword [ebp - 0x150]
lea edx, [ebp - 0x148]
cmovae esi, eax
cmp dword [ebp - 0x134], 0x10
mov eax, dword [ebp - 0x138]
cmovae edx, dword [ebp - 0x148]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], edx
cmp ecx, eax
ja 0x100ba7bd
test ecx, ecx
jne 0x100ba709
xor edi, edi
jmp 0x100ba7c0
sub eax, ecx
movsx ecx, byte [esi]
inc eax
mov dword [ebp - 0x180], ecx
add eax, edx
mov dword [ebp - 0x18], eax
sub eax, edx
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100ba7b7
mov ecx, dword [ebp - 0x150]
mov edx, edi
sub ecx, 4
jb 0x100ba751
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100ba756
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100ba740
cmp ecx, 0xfffffffc
je 0x100ba78a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100ba783
cmp ecx, 0xfffffffd
je 0x100ba78a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100ba783
cmp ecx, 0xfffffffe
je 0x100ba78a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100ba783
cmp ecx, 0xffffffff
je 0x100ba78a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100ba78a
sbb eax, eax
or eax, 1
jmp 0x100ba78c
xor eax, eax
test eax, eax
je 0x100ba831
mov eax, dword [ebp - 0x18]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x180]
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x20]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100ba731
mov eax, dword [ebp - 0x138]
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x100ba8e5
cmp eax, edi
mov dword [ebp - 0x168], 0
mov ecx, edi
mov dword [ebp - 0x164], 0xf
cmovb ecx, eax
mov byte [ebp - 0x178], 0
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push ecx
cmovae eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x178]
push eax
call fcn.1000c7d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x178]
push eax
cmp dword [ebp - 0x17c], ebx
je 0x100ba83c
mov ecx, ebx
call fcn.10082850
add ebx, 0x18
mov dword [ebp - 0x188], ebx
jmp 0x100ba85a
sub edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x138]
jmp 0x100ba7c0
push ebx
lea ecx, [ebp - 0x18c]
call fcn.100badc0
mov eax, dword [ebp - 0x184]
mov ebx, dword [ebp - 0x188]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x148]
mov edx, dword [ebp - 0x150]
add edx, edi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x134], 0x10
cmovae ecx, dword [ebp - 0x148]
sub eax, edx
mov dword [ebp - 0x138], eax
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x100ba6c0
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100ba8d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100baaba
push edx
push ecx
call fcn.100ddf04
add esp, 8
jmp 0x100ba6b1
lea eax, [ebp - 0x148]
push eax
cmp dword [ebp - 0x17c], ebx
je 0x100ba900
mov ecx, ebx
call fcn.10082850
add ebx, 0x18
jmp 0x100ba91e
push ebx
lea ecx, [ebp - 0x18c]
call fcn.100badc0
mov eax, dword [ebp - 0x184]
mov ebx, dword [ebp - 0x188]
mov dword [ebp - 0x17c], eax
mov esi, dword [ebp - 0x18c]
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x28], 0x3973374a
mov word [ebp - 0x24], 0x7150
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x20], 0x6c6c6548
mov word [ebp - 0x1c], 0x216f
mov byte [ebp - 0x1a], 0
mov dword [ebp - 0x18], 0x2a262347
mov word [ebp - 0x14], 0x3738
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x30], 0x64436241
mov word [ebp - 0x2c], 0x6645
mov byte [ebp - 0x2a], 0
cmp esi, ebx
je 0x100baa55
lea ebx, [ebp - 0x28]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100ba980
sub ebx, ecx
nop dword [eax]
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 0x10
jb 0x100ba99c
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.10034e00
add esp, 8
test al, al
jne 0x100bac03
lea edx, [ebp - 0x20]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100ba9c0
sub edx, ecx
mov ecx, esi
cmp edi, 0x10
jb 0x100ba9d2
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.10034e00
add esp, 8
test al, al
jne 0x100babd3
lea edx, [ebp - 0x18]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100ba9f0
sub edx, ecx
mov ecx, esi
cmp edi, 0x10
jb 0x100baa02
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.10034e00
add esp, 8
test al, al
jne 0x100bab24
lea edx, [ebp - 0x30]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100baa20
sub edx, ecx
mov ecx, esi
cmp edi, 0x10
jb 0x100baa32
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.10034e00
add esp, 8
test al, al
jne 0x100baac0
add esi, 0x18
cmp esi, dword [ebp - 0x180]
jne 0x100ba990
movaps xmm0, xmmword [0x1013d6e0]
lea eax, [ebp - 0x174]
push 0x10
push str.Error
push eax
push 0
movups xmmword [ebp - 0x174], xmm0
mov byte [ebp - 0x164], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x100bac19
mov edx, dword [ebp - 0x160]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100bac0f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100bac0f
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.100cf0b0
push 0x59b00e
push 0x59affa
push 0xe9
call fcn.100cf0b0
add esp, 0x18
jmp 0x100baa80
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 0x100baa80
push 0x100ba490
push 0x561740
push 0xe9
call fcn.100cf0b0
push 0x100ba560
push 0x57ddd7
push 0xe9
call fcn.100cf0b0
add esp, 0x18
jmp 0x100baa80
mov byte [0x1052613f], 1
jmp 0x100baa80
push ecx
push edx
call fcn.100ddf04
add esp, 8
mov edx, dword [ebp - 0x134]
cmp edx, 0x10
jb 0x100bac55
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100bac4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100bac4b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
add esp, 8
mov ebx, dword [ebp - 0x18c]
test ebx, ebx
je 0x100bacb9
mov edx, dword [ebp - 0x180]
push ecx
mov ecx, ebx
call fcn.100bafc0
mov ecx, dword [ebp - 0x17c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x100bacaf
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100bacaf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.100ddf04
add esp, 8
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.100ddef3
mov esp, ebp
pop ebp
ret