Function at 0x10040b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14c
mov eax, dword [0x101b7324]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x14], eax
push edi
mov al, 0x40
mov byte [esp + 0x35], al
mov byte [esp + 0x31], al
xor ebx, ebx
push 2
lea eax, [esp + 0x38]
push eax
mov edi, 1
push esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x40], 0x62
mov byte [esp + 0x42], bl
mov byte [esp + 0x3c], 0x42
mov byte [esp + 0x3e], bl
call fcn.101024a4
add esp, 0xc
test eax, eax
je 0x10040c1d
push 2
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.101024a4
add esp, 0xc
test eax, eax
jne 0x10040c24
mov dword [esp + 0x24], edi
add esi, 2
push 0x1016b98c
push esi
call fcn.101022f0
add esp, 8
test eax, eax
je 0x10040e0e
cmp esi, ebx
je 0x1004106f
mov edi, dword [esp + 0x10]
mov ebx, 0x64
jmp 0x10040c50
cmp edi, 0xa
jge 0x1004106f
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x155], al
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x15c]
push edx
push esi
mov byte [esp + 0x164], 0x25
mov byte [esp + 0x165], bl
mov byte [esp + 0x166], 0x2e
mov byte [esp + 0x167], 0x25
mov byte [esp + 0x168], bl
mov byte [esp + 0x169], 0x2e
mov byte [esp + 0x16a], 0x25
mov byte [esp + 0x16b], bl
mov byte [esp + 0x16c], 0x2d
mov byte [esp + 0x16d], 0x25
mov byte [esp + 0x16e], bl
mov byte [esp + 0x16f], 0x2e
mov byte [esp + 0x170], 0x25
mov byte [esp + 0x171], bl
mov byte [esp + 0x172], 0x2e
mov byte [esp + 0x173], 0x25
mov byte [esp + 0x174], bl
call fcn.10101d65
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
mov eax, ecx
add esp, 0x20
sub eax, edx
mov dword [esp + edi*4 + 0x44], eax
jns 0x10040d5d
mov dword [esp + edi*4 + 0x44], 0
lea eax, [edx + ecx]
cmp eax, 0x168
mov dword [esp + edi*4 + 0x6c], eax
jle 0x10040d73
mov dword [esp + edi*4 + 0x6c], 0x168
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x13c]
mov eax, ecx
sub eax, edx
mov dword [esp + edi*4 + 0xbc], eax
jns 0x10040d96
mov dword [esp + edi*4 + 0xbc], 0
lea eax, [edx + ecx]
cmp eax, ebx
mov dword [esp + edi*4 + 0x94], eax
jle 0x10040dab
mov dword [esp + edi*4 + 0x94], ebx
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub eax, edx
mov dword [esp + edi*4 + 0xe4], eax
jns 0x10040dce
mov dword [esp + edi*4 + 0xe4], 0
lea eax, [edx + ecx]
cmp eax, ebx
mov dword [esp + edi*4 + 0x10c], eax
jle 0x10040de3
mov dword [esp + edi*4 + 0x10c], ebx
push 0x1016b5b4
push esi
call fcn.101022f0
mov esi, eax
add esp, 8
test esi, esi
je 0x10040dfa
add esi, 1
add edi, 1
test esi, esi
mov dword [esp + 0x10], edi
jne 0x10040c50
jmp 0x1004106f
push 0x1016b988
push esi
call fcn.101022f0
add esp, 8
test eax, eax
je 0x10040f0c
cmp esi, ebx
je 0x1004106f
mov edi, dword [esp + 0x10]
mov ebx, 0x64
cmp edi, 0xa
jge 0x1004106f
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x142], al
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x144]
push edx
push esi
mov dword [esp + 0x48], 1
mov byte [esp + 0x14c], 0x23
mov byte [esp + 0x14d], 0x25
mov byte [esp + 0x14e], bl
mov byte [esp + 0x14f], 0x2d
mov byte [esp + 0x150], 0x25
mov byte [esp + 0x151], bl
call fcn.10101d65
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x144]
mov edi, dword [esp + 0x20]
mov eax, ecx
add esp, 0x10
sub eax, edx
mov dword [esp + edi*4 + 0x44], eax
jns 0x10040ecb
mov dword [esp + edi*4 + 0x44], 0
lea eax, [edx + ecx]
cmp eax, 0xff
mov dword [esp + edi*4 + 0x6c], eax
jle 0x10040ee1
mov dword [esp + edi*4 + 0x6c], 0xff
push 0x1016b5b4
push esi
call fcn.101022f0
mov esi, eax
add esp, 8
test esi, esi
je 0x10040ef8
add esi, 1
add edi, 1
test esi, esi
mov dword [esp + 0x10], edi
jne 0x10040e35
jmp 0x1004106f
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x1004106f
jmp 0x10040f20
cmp dword [esp + 0x10], 0xa
jge 0x1004106f
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x139], al
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x13c]
push edx
push eax
mov byte [esp + 0x144], 0x25
mov byte [esp + 0x145], 0x78
mov byte [esp + 0x146], 0x2d
mov byte [esp + 0x147], 0x25
mov byte [esp + 0x148], 0x78
call fcn.10101d65
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
movzx edi, byte [esp + 0x32]
movzx esi, byte [esp + 0x3e]
movzx ebx, ah
and eax, 0xff
mov ebp, eax
movzx eax, ch
and ecx, 0xff
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov edx, edi
add esp, 0x10
sub edx, esi
lea ecx, [esp + ecx*4 + 0x10c]
mov dword [ecx], edx
jns 0x10040fc5
mov dword [ecx], 0
mov ecx, dword [esp + 0x10]
add esi, edi
cmp esi, 0xff
mov dword [esp + ecx*4 + 0x94], esi
jle 0x10040fe5
mov dword [esp + ecx*4 + 0x94], 0xff
mov edx, eax
sub edx, ebx
mov dword [esp + ecx*4 + 0xbc], edx
jns 0x10040ffd
mov dword [esp + ecx*4 + 0xbc], 0
add eax, ebx
cmp eax, 0xff
mov dword [esp + ecx*4 + 0x6c], eax
jle 0x10041012
mov dword [esp + ecx*4 + 0x6c], 0xff
mov edx, dword [esp + 0x1c]
mov eax, edx
sub eax, ebp
mov dword [esp + ecx*4 + 0x44], eax
jns 0x10041028
mov dword [esp + ecx*4 + 0x44], 0
lea eax, [edx + ebp]
cmp eax, 0xff
lea ecx, [esp + ecx*4 + 0xe4]
mov dword [ecx], eax
jle 0x10041041
mov dword [ecx], 0xff
mov ecx, dword [esp + 0x14]
push 0x1016b5b4
push ecx
call fcn.101022f0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x10041062
add eax, 1
mov dword [esp + 0x14], eax
add dword [esp + 0x10], 1
test eax, eax
jne 0x10040f20
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 4]
imul edx, dword [esi + 8]
push edx
call fcn.100ff4c8
mov ecx, dword [esp + 0x2c]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x100410a1
mov edx, dword [esp + 0x40]
push edx
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100413ce
cmp dword [esp + 0x24], 0
je 0x100410b4
mov ecx, dword [esi + 4]
imul ecx, dword [esi + 8]
push ecx
push 1
jmp 0x100410be
mov edx, dword [esi + 4]
imul edx, dword [esi + 8]
push edx
push 0
push eax
call fcn.101004d0
add esp, 0xc
cmp dword [esi + 8], 0
mov dword [esp + 0x14], 0
jle 0x100413bc
mov eax, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [ecx + 4], ebp
jle 0x10041399
mov ebx, dword [esp + 0x20]
jmp 0x10041100
cmp dword [esp + 0x3c], 0
je 0x100411e8
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x10041386
cmp dword [esp + 0x24], 0
jne 0x10041139
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
imul eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add eax, dword [edx]
cmp byte [eax + ebp], 1
lea esi, [eax + ebp]
jmp 0x10041152
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
imul edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, dword [eax]
cmp byte [edx + ebp], 0
lea esi, [edx + ebp]
je 0x10041386
mov eax, dword [ebx - 2]
movzx edx, byte [ebx]
movzx edi, byte [ebx - 1]
and eax, 0xff
cmp dword [esp + 0x24], 0
jne 0x100411a3
cmp edx, dword [esp + ecx*4 + 0x10c]
jl 0x100411d6
cmp edx, dword [esp + ecx*4 + 0x94]
jg 0x100411d6
cmp edi, dword [esp + ecx*4 + 0xbc]
jl 0x100411d6
cmp edi, dword [esp + ecx*4 + 0x6c]
jg 0x100411d6
cmp eax, dword [esp + ecx*4 + 0x44]
jl 0x100411d6
cmp eax, dword [esp + ecx*4 + 0xe4]
jg 0x100411d6
mov byte [esi], 1
jmp 0x100411d6
cmp edx, dword [esp + ecx*4 + 0x10c]
jl 0x100411d6
cmp edx, dword [esp + ecx*4 + 0x94]
jg 0x100411d6
cmp edi, dword [esp + ecx*4 + 0xbc]
jl 0x100411d6
cmp edi, dword [esp + ecx*4 + 0x6c]
jg 0x100411d6
cmp eax, dword [esp + ecx*4 + 0x44]
jl 0x100411d6
cmp eax, dword [esp + ecx*4 + 0xe4]
jg 0x100411d6
mov byte [esi], 0
add ecx, 1
cmp ecx, dword [esp + 0x10]
jl 0x10041117
jmp 0x10041386
cmp dword [esp + 0x38], 0
je 0x10041281
xor edi, edi
cmp dword [esp + 0x10], edi
jle 0x10041386
nop
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
imul edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, dword [eax]
cmp dword [esp + 0x24], 0
lea esi, [edx + ebp]
jne 0x10041221
cmp byte [esi], 1
jmp 0x10041224
cmp byte [esi], 0
je 0x10041386
movzx edx, byte [ebx - 1]
mov ecx, dword [ebx - 2]
movzx eax, byte [ebx]
and ecx, 0xff
add ecx, edx
add ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], 0
jne 0x10041264
cmp eax, dword [esp + edi*4 + 0x44]
jl 0x10041273
cmp eax, dword [esp + edi*4 + 0x6c]
jg 0x10041273
mov byte [esi], 1
jmp 0x10041273
cmp eax, dword [esp + edi*4 + 0x44]
jl 0x10041273
cmp eax, dword [esp + edi*4 + 0x6c]
jg 0x10041273
mov byte [esi], 0
add edi, 1
cmp edi, dword [esp + 0x10]
jl 0x10041200
jmp 0x10041386
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x10041386
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
imul edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add edx, dword [eax]
cmp dword [esp + 0x24], 0
lea edi, [edx + ebp]
jne 0x100412b1
cmp byte [edi], 1
jmp 0x100412b4
cmp byte [edi], 0
je 0x10041386
lea ecx, [esp + 0x13c]
push ecx
mov ecx, dword [ebx - 2]
lea edx, [esp + 0x138]
push edx
movzx edx, byte [ebx - 1]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebx]
and ecx, 0xff
push ecx
push edx
push eax
call fcn.1003eb60
mov eax, dword [esp + 0x34]
add esp, 0x18
cmp dword [esp + 0x24], 0
jne 0x10041338
cmp eax, dword [esp + esi*4 + 0x44]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x6c]
jg 0x10041379
mov eax, dword [esp + 0x134]
cmp eax, dword [esp + esi*4 + 0xbc]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x94]
jg 0x10041379
mov eax, dword [esp + 0x13c]
cmp eax, dword [esp + esi*4 + 0xe4]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x10c]
jg 0x10041379
mov byte [edi], 1
jmp 0x10041379
cmp eax, dword [esp + esi*4 + 0x44]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x6c]
jg 0x10041379
mov eax, dword [esp + 0x134]
cmp eax, dword [esp + esi*4 + 0xbc]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x94]
jg 0x10041379
mov eax, dword [esp + 0x13c]
cmp eax, dword [esp + esi*4 + 0xe4]
jl 0x10041379
cmp eax, dword [esp + esi*4 + 0x10c]
jg 0x10041379
mov byte [edi], 0
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x10041290
mov ecx, dword [esp + 0x18]
add ebp, 1
add ebx, 4
cmp ebp, dword [ecx + 4]
jl 0x10041100
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x168]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x20], edx
add eax, 1
cmp eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
jl 0x100410e4
mov edx, dword [esp + 0x40]
push edx
call fcn.100ff58b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ffa66
add esp, 0x14c
ret