Function at 0x413fa0
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x478a6a
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x14c]
xor esi, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], esi
push 0x481de0
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], esi
call fcn.00406310
push 0x104
lea eax, [esp + 0x38]
push esi
push eax
mov byte [esp + 0x150], 1
mov dword [esp + 0x34], 0x104
call sub.MSVCR90.dll_memset
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a743c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
mov byte [esp + 0x144], 2
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x150]
push ecx
lea edx, [esp + 0x28]
push str._sAutorun.inf
push edx
mov byte [esp + 0x150], 3
call fcn.00402e80
mov ebx, dword [esp + 0x30]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414180
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401520
add eax, 0x10
mov dword [ebp], eax
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x144], 2
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x144], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x144], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x150]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004764f6
add esp, 0x134
ret 8
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
xor edi, edi
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 0xc]
mov byte [esp + 0x144], 4
test edi, edi
jl 0x41433c
cmp edi, eax
jge 0x41433c
lea ecx, [ebx + edi*2]
push 0xa
push ecx
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
je 0x41433c
sub eax, ebx
sar eax, 1
mov ebp, eax
js 0x41433c
mov edx, ebp
sub edx, edi
push edx
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407ca0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call fcn.00404460
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x144], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414256
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41427c
push edi
lea ecx, [esp + 0x1c]
call fcn.00401e80
mov esi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
add esp, 8
test edi, edi
jl 0x414422
cmp edi, dword [esi - 8]
jg 0x414422
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
cmp dword [esi - 0xc], edx
jl 0x4142c2
push str.OPEN
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4142c2
sub eax, esi
sar eax, 1
jns 0x4142f2
lea eax, [esi - 0x10]
lea edi, [ebp + 1]
mov byte [esp + 0x144], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4141b3
push 5
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.004085c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 6
call fcn.00404460
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x144], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41433c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x144], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401520
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x144], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x144], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x144], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x150]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41441b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x414156
push 0x80070057
call fcn.00401120
int3