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

Disassembly:
push 0xffffffffffffffff
push 0x4782da
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 0x480de0
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], esi
call fcn.00406300
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 [0x4a643c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a643c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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 0x413b20
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004014f0
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 0x413a7a
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 0x413a9e
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 0x413ac6
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 0x413af4
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.00475d76
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.004085e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
xor edi, edi
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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 0x413cdc
cmp edi, eax
jge 0x413cdc
lea ecx, [ebx + edi*2]
push 0xa
push ecx
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
je 0x413cdc
sub eax, ebx
sar eax, 1
mov ebp, eax
js 0x413cdc
mov edx, ebp
sub edx, edi
push edx
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407c70
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call fcn.00404450
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 0x413bf6
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 0x413c1c
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 0x413dc2
cmp edi, dword [esi - 8]
jg 0x413dc2
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
cmp dword [esi - 0xc], edx
jl 0x413c62
push str.OPEN
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x413c62
sub eax, esi
sar eax, 1
jns 0x413c92
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 0x413b53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413b53
push 5
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.004083a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 6
call fcn.00404450
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 0x413cdc
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 0x413d00
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.004014f0
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 0x413d41
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 0x413d65
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 0x413d8d
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 0x413dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x413af6
push 0x80070057
call fcn.00401100
int3