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

Disassembly:
push 0xffffffffffffffff
push 0x4e6477
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
push ebx
push esi
mov esi, dword [esp + 0x320]
xor ebx, ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.0044a860
mov ecx, dword [esp + 0x328]
add esp, 4
test al, al
setne al
cmp al, bl
mov byte [ecx], al
je 0x461d98
mov word [esp + 0x40], bx
mov dword [esp + 8], ebx
lea edx, [esp + 0x28]
push edx
push ebx
push esi
mov dword [esp + 0x324], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0041d97f
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x461d98
push 2
call fcn.00445f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x461bee
mov byte [eax], bl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x324], 2
mov dword [esp + 0x3c], esi
call fcn.0044a910
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp esi, ebx
jg 0x461c73
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x461c45
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x461c5a
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebx
push eax
call esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
add esp, 0x314
ret
push 0x5194ec
mov dword [esp + 0x24], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x318], 3
call fcn.00443b90
lea ecx, [esp + 0x10]
call fcn.0043f1c0
mov ecx, dword [esp + 0x14]
push ecx
mov eax, esi
mov byte [esp + 0x31c], 4
call fcn.00443c70
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x461cd2
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
push esi
call dword [edx + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x461cda
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x461d2b
mov esi, eax
mov eax, dword [0x519454]
cmp eax, ebx
mov byte [esp + 0x318], 3
je 0x461cf5
cmp dword [esp + 0x10], ebx
jne 0x461cf5
call eax
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
call fcn.00415ebc
lea ecx, [esp + 0x30]
call fcn.00415ebc
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
add esp, 0x314
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea edx, [esp + 0x44]
push edx
push 0x4ef5e0
call esi
cmp eax, ebx
jg 0x461db1
push 0x104
lea eax, [esp + 0x44]
push eax
push 0x4ef5d4
call esi
cmp eax, ebx
jg 0x461db1
mov eax, dword [0x519454]
cmp eax, ebx
mov byte [esp + 0x318], 3
je 0x461d74
cmp dword [esp + 0x10], ebx
jne 0x461d74
call eax
lea ecx, [esp + 0x20]
call fcn.004151a3
lea ecx, [esp + 0x14]
call fcn.00415ebc
lea ecx, [esp + 0x30]
call fcn.00415ebc
lea ecx, [esp + 8]
call fcn.004167b7
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
add esp, 0x314
ret
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + eax*2 + 0x44]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0x63
mov dword [esp + 0x44], ecx
lea esp, [esp]
call fcn.00441790
mov ebx, eax
call edi
add ebx, eax
push ebx
call ebp
mov edx, dword [esp + 0x48]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edx
call esi
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 5
push 0x40000000
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
call fcn.004167bc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x461e7a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x2c]
jns 0x461de0
mov eax, dword [0x519454]
test eax, eax
mov byte [esp + 0x320], 3
je 0x461e4f
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x461e4f
call eax
lea ecx, [esp + 0x28]
call fcn.004151a3
lea ecx, [esp + 0x1c]
call fcn.00415ebc
lea ecx, [esp + 0x38]
call fcn.00415ebc
lea ecx, [esp + 0x10]
call fcn.004167b7
xor eax, eax
jmp 0x461f0c
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
call fcn.004151b3
push 0x10
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x519454]
test eax, eax
mov esi, dword [esp + 0x14]
mov byte [esp + 0x320], 3
je 0x461ee6
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x461ee6
call eax
lea ecx, [esp + 0x28]
call fcn.004151a3
lea ecx, [esp + 0x1c]
call fcn.00415ebc
lea ecx, [esp + 0x38]
call fcn.00415ebc
lea ecx, [esp + 0x10]
call fcn.004167b7
mov eax, esi
mov ecx, dword [esp + 0x318]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x314
ret