Function at 0x454da0
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ea0b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
push esi
mov esi, dword [esp + 0x300]
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
jle 0x454ef0
push 0x51d5ec
mov dword [esp + 0x24], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2fc], edi
call fcn.004483d0
mov eax, dword [0x51d5a0]
cmp eax, edi
mov dword [esp + 0xc], 0xfffffffd
je 0x454e1b
push edi
call eax
cmp eax, edi
mov dword [esp + 0xc], eax
je 0x454e1b
cmp eax, 1
jne 0x454e1b
call dword [0x51d5a4]
mov eax, dword [esi]
push eax
mov eax, dword [esi + 4]
mov byte [esp + 0x300], 1
call fcn.004484b0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x454e50
mov ecx, dword [esi]
lea edx, [esp + 8]
push edx
push esi
call dword [ecx + 0xc]
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x454e58
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 8]
cmp eax, edi
je 0x454e97
mov esi, eax
mov eax, dword [0x51d5a4]
cmp eax, edi
mov byte [esp + 0x2fc], 0
je 0x454e73
cmp dword [esp + 0xc], edi
jne 0x454e73
call eax
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
add esp, 0x2f8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea ecx, [esp + 0x28]
push ecx
push 0x4f3c00
mov word [esp + 0x30], di
call esi
cmp eax, edi
jg 0x454f09
push 0x104
lea edx, [esp + 0x28]
push edx
push 0x4f3bf4
call esi
cmp eax, edi
jg 0x454f09
mov eax, dword [0x51d5a4]
cmp eax, edi
mov byte [esp + 0x2fc], 0
je 0x454ee5
cmp dword [esp + 0xc], edi
jne 0x454ee5
call eax
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
add esp, 0x2f8
ret
push ebx
push ebp
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [esp + eax*2 + 0x2c]
mov byte [esp + 0x304], 2
mov dword [esp + 0x1c], 0x63
mov dword [esp + 0x24], eax
lea esp, [esp]
call fcn.00445d10
mov esi, eax
call ebp
add esi, eax
push esi
call ebx
mov ecx, dword [esp + 0x28]
push eax
push str.pecmd_bmp._lu._lu.tmp
push ecx
call edi
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 5
push 0x40000000
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x34]
call fcn.00417e55
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x454fc1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x1c]
jns 0x454f40
mov eax, dword [0x51d5a4]
test eax, eax
mov byte [esp + 0x304], 0
je 0x454faf
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x454faf
call eax
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x455079
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x314]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
je 0x454ff1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x455042
lea ecx, [esp + 0x2c]
push ecx
call fcn.00454770
mov esi, eax
add esp, 4
test esi, esi
je 0x455042
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x455042
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x51d5a4]
test eax, eax
mov esi, dword [esp + 0x10]
mov byte [esp + 0x304], 0
je 0x45506c
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x45506c
call eax
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x2fc]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2f8
ret