Function at 0x40f8c0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x630
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x12c]
push eax
call fcn.0040f3c0
add esp, 4
test eax, eax
jne 0x40f8f3
add esp, 0x630
ret
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x10], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x11], 0x6c
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x12], 0x49
mov byte [esp + 0x13], 0x65
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x15], 0x67
mov byte [esp + 0x16], 0x54
mov byte [esp + 0x17], 0x73
mov byte [esp + 0x18], 0x54
mov byte [esp + 0x19], 0x7a
mov byte [esp + 0x1a], 0x54
mov byte [esp + 0x1b], 0x68
mov byte [esp + 0x1c], 0x48
mov byte [esp + 0x1d], 0x68
mov byte [esp + 0x1e], 0x55
mov byte [esp + 0x1f], 0x72
mov byte [esp + 0x20], 0x58
mov byte [esp + 0x21], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 1
and ecx, 3
lea edx, [esp + 0x3c]
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
mov ebp, 0x400
push ecx
push edx
mov dword [esp + 0x34], ebp
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
jbe 0x40fa13
push eax
lea eax, [esp + 0x244]
push eax
mov dword [esp + 0x34], 1
call fcn.0040f6a0
mov edx, dword [esp + 0x64c]
lea ecx, [esp + 0x248]
push 0x31
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x63
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x48
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x63
mov byte [esp + 0x14], 0x44
mov byte [esp + 0x15], 0x68
mov byte [esp + 0x16], 0x55
mov byte [esp + 0x17], 0x71
mov byte [esp + 0x18], 0x4c
mov byte [esp + 0x19], 0x71
mov byte [esp + 0x1a], 0x49
mov byte [esp + 0x1b], 0x69
mov byte [esp + 0x1c], 0x49
mov byte [esp + 0x1d], 0x7a
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x1f], 0x7a
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
mov dword [esp + 0x28], ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
jbe 0x40fb2e
push eax
lea eax, [esp + 0x244]
push eax
mov dword [esp + 0x3c], 1
call fcn.0040f6a0
mov edx, dword [esp + 0x64c]
lea ecx, [esp + 0x248]
push 0x103
add edx, 0x32
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x70
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x54
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], 0x41
mov byte [esp + 0x15], 0x6e
mov byte [esp + 0x16], 0x4a
mov byte [esp + 0x17], 0x6f
mov byte [esp + 0x18], 0x50
mov byte [esp + 0x19], 0x62
mov byte [esp + 0x1a], 0x57
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1d], 0x7a
mov byte [esp + 0x1e], 0x51
mov byte [esp + 0x1f], 0x6b
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
mov dword [esp + 0x28], ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
jbe 0x40fc49
push eax
lea eax, [esp + 0x244]
push eax
mov dword [esp + 0x30], 1
call fcn.0040f6a0
mov edx, dword [esp + 0x64c]
lea ecx, [esp + 0x248]
push 0x31
add edx, 0x136
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x67
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x47
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x69
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0x47
mov byte [esp + 0x17], 0x6f
mov byte [esp + 0x18], 0x4d
mov byte [esp + 0x19], 0x66
mov byte [esp + 0x1a], 0x47
mov byte [esp + 0x1b], 0x62
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x6d
mov byte [esp + 0x1e], 0x4e
mov byte [esp + 0x1f], 0x61
mov byte [esp + 0x20], 0x41
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x3c]
and ecx, 3
mov ebp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
mov dword [esp + 0x34], ebp
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebp
jne 0x40fd55
mov eax, dword [esp + 0x240]
mov dword [esp + 0x30], 1
push eax
call dword [0x43bc50]
mov ecx, dword [esp + 0x644]
mov dword [ecx + 0x294], eax
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x6d
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x51
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x74
mov byte [esp + 0x14], 0x51
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0x44
mov byte [esp + 0x17], 0x73
mov byte [esp + 0x18], 0x4e
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x56
mov byte [esp + 0x1b], 0x7a
mov byte [esp + 0x1c], 0x4a
mov byte [esp + 0x1d], 0x6b
mov byte [esp + 0x1e], 0x58
mov byte [esp + 0x1f], 0x64
mov byte [esp + 0x20], 0x4e
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
mov dword [esp + 0x28], ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebp
jne 0x40fe54
mov eax, dword [esp + 0x240]
push eax
call dword [0x43bc50]
mov ecx, dword [esp + 0x644]
mov dword [ecx + 0x298], eax
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x67
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x5a
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x6c
mov byte [esp + 0x14], 0x4b
mov byte [esp + 0x15], 0x67
mov byte [esp + 0x16], 0x58
mov byte [esp + 0x17], 0x69
mov byte [esp + 0x18], 0x50
mov byte [esp + 0x19], 0x67
mov byte [esp + 0x1a], 0x47
mov byte [esp + 0x1b], 0x69
mov byte [esp + 0x1c], 0x43
mov byte [esp + 0x1d], 0x6f
mov byte [esp + 0x1e], 0x49
mov byte [esp + 0x1f], 0x7a
mov byte [esp + 0x20], 0x5a
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x3c]
and ecx, 3
mov ebp, 0x400
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
mov dword [esp + 0x34], ebp
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
jbe 0x40ff6f
push eax
lea eax, [esp + 0x244]
push eax
call fcn.0040f6a0
mov edx, dword [esp + 0x64c]
lea ecx, [esp + 0x248]
push 0x12b
add edx, 0x168
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], bl
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x11], 0x77
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x12], 0x57
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x13], 0x69
mov byte [esp + 0x14], 0x45
mov byte [esp + 0x15], 0x63
mov byte [esp + 0x16], 0x58
mov byte [esp + 0x17], 0x6f
mov byte [esp + 0x18], 0x4e
mov byte [esp + 0x19], 0x71
mov byte [esp + 0x1a], 0x51
mov byte [esp + 0x1b], 0x69
mov byte [esp + 0x1c], 0x47
mov byte [esp + 0x1d], 0x6b
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x69
mov byte [esp + 0x20], 0x48
mov byte [esp + 0x21], 0
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x3c]
and ecx, 3
mov dword [esp + 0x28], ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x244]
push eax
push ecx
push edx
call fcn.0040f740
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jbe 0x410067
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
jmp 0x41006f
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x634]
mov dword [0x438d50], eax
push ecx
push edx
call fcn.004100d0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x4100b8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4100b8
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4100b8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4100b8
xor eax, eax
add esp, 0x630
ret
mov eax, 1
add esp, 0x630
ret