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

Disassembly:
push 0xffffffffffffffff
push 0x475efa
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4a3eb0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
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 0x47ed68
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], esi
call fcn.004062c0
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 [0x4a440c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a440c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
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.00402e30
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 0x4124f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401510
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 0x41244a
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 0x41246e
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 0x412496
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 0x4124c4
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.00473c8a
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.00408380
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x20]
xor edi, edi
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
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 0x4126ac
cmp edi, eax
jge 0x4126ac
lea ecx, [ebx + edi*2]
push 0xa
push ecx
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
je 0x4126ac
sub eax, ebx
sar eax, 1
mov ebp, eax
js 0x4126ac
mov edx, ebp
sub edx, edi
push edx
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407b80
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 5
call fcn.00404410
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 0x4125c6
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 0x4125ec
push edi
lea ecx, [esp + 0x1c]
call fcn.00401e90
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 0x412792
cmp edi, dword [esi - 8]
jg 0x412792
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
cmp dword [esi - 0xc], edx
jl 0x412632
push str.OPEN
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x412632
sub eax, esi
sar eax, 1
jns 0x412662
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 0x412523
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412523
push 5
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.004081d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 6
call fcn.00404410
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 0x4126ac
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 0x4126d0
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.00401510
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 0x412711
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 0x412735
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 0x41275d
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 0x41278b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4124c6
push 0x80070057
call fcn.00401100
int3