Function at 0x481f46
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push edi
mov dword [ebp - 0x150], ecx
cmp dword [ebp + 8], 0
jne 0x481f63
xor eax, eax
jmp 0x482287
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x481fb0
jmp 0x482248
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x481fce
cmp dword [ebp - 0x3c], 0x18ae0
jae 0x481fd3
jmp 0x482248
push 0
push 0
push 0x18ae0
mov edx, dword [ebp - 0x10]
push edx
call dword [0x54b4e4]
cmp eax, 0xffffffff
jne 0x481ff0
jmp 0x482248
mov eax, dword [ebp - 0x3c]
sub eax, 0x18ae0
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x48201b
jmp 0x482248
mov edx, dword [ebp - 0x3c]
sub edx, 0x18ae0
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp - 0x28], 0x42
mov byte [ebp - 0x27], 0x4d
mov byte [ebp - 0x26], 0x57
mov byte [ebp - 0x25], 0x21
mov byte [ebp - 0x24], 0x21
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x78
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 2
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x18ae1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x54b4c4]
test eax, eax
jne 0x482089
jmp 0x482248
push 0x5c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4820a6
jmp 0x482248
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
call sub.ntdll.dll_strlen
add esp, 4
add eax, 0x1e
mov dword [ebp - 0x20], eax
push 5
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
push eax
call fcn.00430a2f
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4820e5
jmp 0x482248
mov ecx, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 0xc], ecx
push 5
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00430a2f
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48211a
jmp 0x482248
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 3
push 0x5400e0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0x144], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x144]
push eax
call fcn.00422950
add esp, 0xc
push 0x5c
push 0
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4821a7
jmp 0x482248
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0xc]
push eax
call sub.ntdll.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00422950
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 2
push 0x120116
lea eax, [ebp - 0x144]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4821fa
jmp 0x482248
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntdll.dll_atol]
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x54b4d4]
test eax, eax
je 0x482235
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x30]
je 0x482237
jmp 0x482248
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x481f86
cmp dword [ebp - 8], 0
je 0x48226d
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004aa2c8
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x482284
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 4