joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a60
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.00420420
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00420530
cmp dword [ebp - 0x10], ebx
je 0x414bc2
nop
cmp byte [ebp - 0x2e4], 0
jne 0x414aea
test bl, 1
je 0x414ad2
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.0041da30
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.00518c00
add esp, 0xc
jmp 0x414b03
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x414b39
test cl, cl
jne 0x414b1e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x414b39
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x414b70
test cl, cl
je 0x414b8a
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00414a60
add esp, 4
test al, al
je 0x414c1d
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x414b82
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x414c1d
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00420530
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x414baa
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
lea ecx, [ebp - 0x38]
call fcn.00407c40
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x414ab0
lea ecx, [ebp - 0x20]
call fcn.00407c40
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x414bde
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.00420940
push 1
push dword [ebp - 0x54]
call fcn.0041ea30
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0
call fcn.00407c40
lea ecx, [ebp - 0x8c]
call fcn.00407c40
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00407c40
xor bl, bl
jmp 0x414bcc
Function at 0x414cd0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov ebx, edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x414d12
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x414e7e
lea eax, [esp + 0x1c]
push eax
call fcn.00417840
push 2
push 0
push 0x5c0198
mov ecx, eax
call fcn.00415e50
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00407c40
cmp esi, 0xffffffff
je 0x414d96
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00417840
mov esi, eax
mov ecx, edi
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.00417700
mov edx, esi
mov ecx, eax
call fcn.00414a60
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00407c40
lea ecx, [esp + 0x34]
call fcn.00407c40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x414da0
mov eax, dword [edi]
jmp 0x414da2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414cfe
test bl, 1
je 0x414dda
cmp dword [edi + 0x14], 8
jb 0x414dc3
mov ecx, dword [edi]
jmp 0x414dc5
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x414e7e
test bl, 0x10
jne 0x414e06
cmp dword [edi + 0x14], 8
jb 0x414de7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x14], 0
je 0x414e39
push 0x5c01a0
lea ecx, [esp + 0x20]
call fcn.00407c80
mov ebx, 1
lea edx, [esp + 0x1c]
push ebx
mov ecx, edi
call fcn.00414a60
add esp, 4
test al, al
jne 0x414e3d
mov byte [esp + 0x13], al
jmp 0x414e42
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x13], 1
test bl, 1
je 0x414e50
lea ecx, [esp + 0x1c]
call fcn.00407c40
cmp byte [esp + 0x13], 0
je 0x414e7e
cmp dword [edi + 0x14], 8
jb 0x414e5f
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x415210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41521e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x415230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x415238
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41524b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x415250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x415332
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x4152a2
xor ecx, ecx
jmp 0x4152bf
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4152b0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00417100
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4152da
mov ecx, dword [eax]
jmp 0x4152dc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00417100
lea ecx, [esp + 8]
call fcn.00418070
lea eax, [esp + 8]
cmp esi, eax
je 0x41530a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004083b0
lea ecx, [esp + 8]
call fcn.00407c40
lea ecx, [esp + 0x20]
call fcn.00407c40
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x415350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4153ff
cmp word [esp + 0x20], 0
je 0x4153ff
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x4153c3
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00417100
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4153d0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00417100
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00407ce0
lea eax, [esp + 8]
push eax
call fcn.00415250
add esp, 4
mov ecx, esi
test al, al
je 0x415427
lea eax, [esp + 8]
push eax
call fcn.00407d00
jmp 0x41543e
sub esp, 8
mov eax, esp
mov dword [eax], 0x5c01a4
mov dword [eax + 4], 3
call fcn.00417100
lea ecx, [esp + 8]
call fcn.00407c40
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x415460
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x54], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], eax
call fcn.00407ce0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
nop
lea ecx, [ebp - 0x20]
call fcn.00407ce0
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.004083b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.0041ee70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004090a0
lea ecx, [ebp - 0x50]
call fcn.00407c40
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x415510
lea ecx, [eax + 1]
cmp ecx, 0x7ffffffe
ja 0x415613
cmp edx, ecx
jae 0x4154f6
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00409320
jmp 0x41550a
test ecx, ecx
jne 0x415510
cmp edx, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov word [eax], cx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, 8
lea ecx, [ebp - 0x20]
mov edx, 0x5f
cmovae ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x64]
call fcn.0042b380
cmp dword [ebp - 0x60], 0xffffffff
ja 0x415530
mov edx, dword [ebp - 0x64]
jb 0x41554b
cmp edx, 0xffff7fff
ja 0x415530
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.0041ee70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004090a0
lea ecx, [ebp - 0x50]
call fcn.00407c40
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.00417cb0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x4155a6
push 0xffffffffffffffff
push 0
push eax
call fcn.004083b0
lea ecx, [ebp - 0x50]
call fcn.00407c40
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x4155d8
lea ecx, [ebp - 0x20]
call fcn.00407c40
inc esi
cmp esi, 0x32
jl 0x415490
xor bl, bl
jmp 0x4155f8
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4155ee
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004083b0
lea ecx, [ebp - 0x20]
call fcn.00407c40
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.00407c40
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0051402d
int3
Function at 0x415690
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4156bd
mov ebx, dword [edi]
jmp 0x4156bf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415701
test al, 0x10
je 0x4156e3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4156ed
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00417700
cmp dword [edi + 0x14], 8
jb 0x415717
mov ecx, dword [edi]
jmp 0x415719
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.00415df0
add esp, 0x10
test eax, eax
jne 0x41574a
test esi, esi
je 0x41578e
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x415794
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00415690
test al, al
je 0x41578e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415792
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x415781
mov ecx, edi
call fcn.00415230
test al, al
jne 0x415792
test esi, esi
je 0x41578e
mov ecx, ebx
call fcn.00420100
mov dword [esi], eax
xor bl, bl
jmp 0x415794
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00407c40
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x415860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x415880
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004126e0
mov eax, dword [esp + 8]
test eax, eax
je 0x4158d1
cmp eax, 0xffffffff
je 0x4158d1
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4158d1
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x4158d4
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00412670
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4158f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4159d9
cmp eax, 0x104
ja 0x4159d9
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.00407c80
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.00417100
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x415979
mov ecx, dword [eax]
jmp 0x41597b
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00417100
lea ecx, [esp + 0x20]
call fcn.00418070
lea eax, [esp + 0x20]
cmp esi, eax
je 0x4159a9
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004083b0
lea ecx, [esp + 0x20]
call fcn.00407c40
lea ecx, [esp + 0x38]
call fcn.00407c40
lea ecx, [esp + 8]
call fcn.00407c40
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x4159f0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00417fc0
test al, al
jne 0x415a5c
mov ecx, esi
call fcn.00417fc0
test al, al
jne 0x415a5c
cmp dword [edi + 0x10], 0x104
jae 0x415a5c
cmp dword [esi + 0x10], 0x104
jae 0x415a5c
cmp dword [esi + 0x14], 8
jb 0x415a25
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x415a2d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x415a5c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415a5c
test al, 1
je 0x415a56
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x415a70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x415b02
cmp dword [edi + 0x10], 0x104
jae 0x415b02
cmp dword [edi + 0x14], 8
jb 0x415a96
mov eax, dword [edi]
jmp 0x415a98
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x415aa0
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x415ab6
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x415acc
mov eax, dword [esi]
jmp 0x415ace
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415af0
shr eax, 4
and al, 1
je 0x415af0
mov edx, edi
mov ecx, esi
call fcn.00415b10
mov bl, al
test bl, bl
jne 0x415af9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.00512da0
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x58fe48]
mov esi, eax
test esi, esi
jne 0x41a6c7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x41a654
cmp word [esp + 0x10], ax
jne 0x41a618
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004082b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a620
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004082b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x41a6c2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x41a6a7
cmp eax, 0x400
ja 0x41a6a7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00408260
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret 8
Function at 0x41bb20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ee61c], 0
je 0x41bb49
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.005126bf
mov ecx, eax
call fcn.0041b970
mov dword [0x5ee61c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407c80
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c210
lea ecx, [ebp - 0x1c]
call fcn.00407c40
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x41c210
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0x5ee61c]
call fcn.00407ce0
mov edx, 0x5c048c
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41c242
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x5c048c
push eax
call fcn.00418d70
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41c29c
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.0041bbb0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.00407c40
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret 4
Function at 0x41d7c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0x5ee61c]
mov ecx, ebx
push 0x5c1db8
call fcn.0041bdd0
test al, al
jne 0x41d80b
push str.vmodule
mov ecx, ebx
call fcn.0041bdd0
test al, al
je 0x41d89b
cmp dword [0x5ee620], 0
je 0x41d822
cmp byte [0x5efa50], 0
jne 0x41d959
int3
mov eax, dword [0x5ee63c]
push 0x10
mov dword [0x5ee620], eax
call fcn.005126bf
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x5c1db8
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041be80
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041be80
push eax
mov ecx, esi
call fcn.00424ce0
lea ecx, [esp + 0x1c]
mov dword [0x5ee63c], eax
call fcn.00407e40
lea ecx, [esp + 0x34]
call fcn.00407e40
mov eax, dword [edi]
mov dword [0x5d7d58], eax
test al, 1
jne 0x41d8ba
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5ee634]
test eax, eax
je 0x41d8d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5ee634], 0
mov edx, dword [0x5ee638]
test edx, edx
jne 0x41d8f7
push 0x18
call fcn.005126bf
add esp, 4
mov ecx, eax
call fcn.00407ce0
mov edx, eax
mov dword [0x5ee638], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41d904
xor ecx, ecx
jmp 0x41d91f
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d910
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004082b0
cmp dword [edi + 0xc], 0
jne 0x41d942
mov eax, dword [0x5ee638]
cmp dword [eax + 0x14], 8
jb 0x41d93b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041d680
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
push 1
call fcn.0051f3d4
int3