joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481d40
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1010
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1020]
mov dword [esp + 0xc], ecx
cmp byte [esi + 0x30], 0
mov dword [esi + 0x1034], 0
jne 0x481d88
test bl, 4
jne 0x481d88
xor al, al
jmp 0x481d8a
mov al, 1
push edi
mov edi, ebx
shr edi, 1
not edi
and edi, 1
inc edi
shl edi, 0x1e
test bl, 1
je 0x481da3
or edi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x481db2
or ebx, 2
cmp byte [esi + 0x24], 0
je 0x481dbe
or edi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x481e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.00494c80
test al, al
je 0x481e32
push 0
push 0x8000000
push 3
push 0
push ebx
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x481e2d
mov dword [esp + 0x14], eax
jmp 0x481e2d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x481e43
cmp dword [esp + 0x14], 2
jne 0x481e43
mov dword [esi + 0x1034], 1
cmp byte [esi + 0x24], 0
pop edi
je 0x481e82
cmp ebp, 0xffffffff
je 0x481e82
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xffffffff
push eax
push 0
push ebp
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov byte [esi + 0x1c], 0
mov bl, 1
mov dword [esi + 0x10], 0
mov byte [esi + 0x15], 0
jmp 0x481e99
cmp ebp, 0xffffffff
mov byte [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x15], 0
setne bl
je 0x481eb2
push 0x800
push dword [esp + 0x10]
lea ecx, [esi + 0x32]
mov dword [esi + 8], ebp
push ecx
call fcn.004b0360
mov byte [esi + 0x25], 0
mov ecx, dword [esp + 0x1018]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1010
ret 8
Function at 0x4827f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x482809
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 8
cmp dword [ebp + 0x10], 1
push esi
push edi
lea edi, [ebp + 8]
mov dword [esp + 0x18], edi
jne 0x482824
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi], eax
jmp 0x482830
mov dword [esp + 0x18], edi
jmp 0x482830
cmp dword [ebp + 0x10], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 0
je 0x48288f
xor esi, esi
test ebx, ebx
je 0x4828b5
lea esp, [esp]
mov eax, ebx
sub eax, esi
cmp eax, 0x4000
jb 0x482860
mov eax, 0x4000
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x3c]
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete cl
mov byte [esp + 0x13], cl
jne 0x4828ad
add esi, 0x4000
cmp esi, ebx
jb 0x482850
jmp 0x4828ad
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x3c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete cl
mov byte [esp + 0x13], cl
test cl, cl
jne 0x4829bb
cmp byte [ebp + 0x1e], 0
je 0x4829bb
cmp dword [ebp + 0x10], 0
jne 0x4829bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x541740]
mov ecx, ebp
call esi
mov dword [esp + 0x20], eax
lea eax, [ebp + 0x32]
push eax
mov dword [esp + 0x28], edx
call fcn.00483900
push edi
mov dword [esp + 0x20], eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
cmp esi, ecx
jb 0x48294d
ja 0x48290f
cmp dword [esp + 0x1c], ebx
jbe 0x48294d
mov esi, dword [esp + 0x20]
mov edx, esi
mov edi, dword [esp + 0x24]
sub edx, ebx
mov eax, edi
sbb eax, ecx
test eax, eax
jg 0x48294d
jl 0x48292a
cmp edx, 0xffffffff
ja 0x48294d
mov eax, ebx
add eax, esi
adc ecx, edi
mov dword [esp + 0x28], ecx
js 0x48294d
jg 0x48293d
cmp eax, 0xffffffff
jbe 0x48294d
lea esi, [ebp + 0x32]
mov ecx, 0x5b68fc
push esi
call fcn.0047bb20
jmp 0x482950
lea esi, [ebp + 0x32]
push 0
push esi
mov ecx, 0x5b68fc
call fcn.0047aba0
test al, al
je 0x4829ae
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp eax, ebx
jae 0x482830
test eax, eax
je 0x482830
mov edi, dword [ebp]
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x541740]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov esi, dword [edi + 0x10]
mov ecx, esi
push 0
sbb edx, 0
push edx
push eax
call dword [0x541740]
mov ecx, ebp
call esi
mov edi, dword [esp + 0x18]
jmp 0x482830
push esi
push 0
mov ecx, 0x5b68fc
call fcn.0047ba50
mov al, byte [esp + 0x13]
pop edi
pop esi
mov byte [ebp + 0xc], 1
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x483130
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x483187
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00494c80
test al, al
je 0x483187
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x483189
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4

Function at 0x4831b0
Capabilities:
Delete file

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, dword [esp + 0x1010]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x483207
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00494c80
test al, al
je 0x483207
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x483209
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4
Function at 0x4837b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
mov edi, dword [esp + 0x1010]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x483803
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00494c80
test al, al
je 0x483800
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
mov ecx, dword [esp + 0x1008]
setne al
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4

Function at 0x483820
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
cmp dword [ecx + 0x14], 0
jbe 0x483883
mov eax, 0x54
mov dword [ecx + 0x14], 0
mov word [esp + 0x10], ax
mov eax, dword [ecx]
mov dword [esp + 8], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret

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

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
mov edi, dword [esp + 0x1010]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4838e2
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00494c80
test al, al
je 0x4838e0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4838e2
mov eax, esi
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4

Function at 0x483900
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
lea ecx, [esp + 0x18]
push 0x800
push ecx
push eax
call fcn.00494880
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 8]
push eax
movzx eax, word [esp + 0x24]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x483991
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0xc]
ja 0x483991
xor eax, eax
add eax, dword [esp]
adc edx, 0
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0051dca8
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x1018]
xor eax, eax
xor ecx, esp
xor edx, edx
call fcn.0051dca8
add esp, 0x101c
ret 4
Function at 0x483b80
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x120c], eax
mov eax, dword [esp + 0x1214]
lea ecx, [esp + 0x20c]
push 0x800
push ecx
push eax
call fcn.00494910
push 0x105
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x483c68
mov ecx, 0x552118
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x483c0a
test dx, dx
je 0x483c06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x483c0a
add eax, 4
add ecx, 4
test dx, dx
jne 0x483be4
xor eax, eax
jmp 0x483c0f
sbb eax, eax
or eax, 1
test eax, eax
je 0x483c4f
mov ecx, str.FAT32
lea eax, [esp]
jmp 0x483c20
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x483c46
test dx, dx
je 0x483c42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x483c46
add eax, 4
add ecx, 4
test dx, dx
jne 0x483c20
xor eax, eax
jmp 0x483c4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x483c68
mov al, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor al, al
xor ecx, esp
call fcn.0051dca8
add esp, 0x1210
ret 4

Function at 0x483ca0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
lea ecx, [esp]
push 0x800
push ecx
push eax
call fcn.00494910
movzx eax, word [esp]
lea ecx, [esp]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x483d05
cmp eax, 5
je 0x483d05
xor al, al
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
mov al, 1
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4
Function at 0x483d20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push esi
call fcn.00495820
movzx eax, word [eax]
cmp eax, 0x2e
je 0x483d60
cmp eax, 0x20
je 0x483d60
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x483db5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x483de6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00494c80
test al, al
je 0x483d90
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x483de6
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00494c80
test al, al
je 0x483de6
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x483de6
cmp byte [esp + 0x1010], 0
je 0x483dcc
push dword [esp + 0x1014]
push esi
call fcn.00484430
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 2
je 0x483e14
xor eax, eax
cmp ecx, 3
pop esi
sete al
inc eax
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 0xc
mov ecx, dword [esp + 0x1004]
mov eax, 2
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 0xc
Function at 0x483e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1090
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x108c], eax
mov ecx, dword [esp + 0x1094]
mov dword [esp + 0xc], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483e66
push ebx
sub ecx, edx
mov dword [esp + 0x14], 0
push ebp
sar ecx, 1
push esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x24], 0
call fcn.004b1af0
lea ecx, [esp + 0x20]
call fcn.004b1830
mov edi, eax
mov ecx, edx
mov ebx, 0x368f0847
mov dword [esp + 0x10], edi
mul ebx
mov ebp, 0x4f8b588e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov esi, edx
mov eax, edi
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x14]
mov edx, 0x4f8b588e
mul edx
add ecx, esi
mov dword [esp + 0x28], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x28]
adc ebp, 0
mov dword [esp + 0x30], edi
xor eax, eax
add ebx, ebp
mov ebp, dword [esp + 0x10]
adc eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [esp + 0x14]
sub ebp, ecx
sbb eax, edx
shrd ebp, eax, 1
shr eax, 1
add ebp, ecx
adc eax, edx
shrd ebp, eax, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor edi, edi
mov eax, 0x4f8b588f
mov dword [esp + 0x10], ecx
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xf
imul eax, eax, 0xc350
sub ebp, eax
lea eax, [esp + 0x38]
push ebp
push ecx
push str._u._03u
push 0x32
push eax
call fcn.00402c90
lea ecx, [esp + 0x4c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483f57
mov esi, dword [esp + 0x18]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x10a8]
cmp eax, ecx
jae 0x484015
mov ebx, dword [esp + 0x1c]
cmp edi, 0x3e8
je 0x484015
sub ecx, esi
lea eax, [esp + 0x38]
push ecx
push eax
lea eax, [ebx + esi*2]
push eax
call fcn.004b0360
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x483fd3
push 0x800
lea eax, [esp + 0xa0]
push eax
push ebx
call fcn.00494c80
test al, al
je 0x484032
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484032
inc ebp
lea eax, [esp + 0x38]
push ebp
push dword [esp + 0x14]
inc edi
push str._u._03u
push 0x32
push eax
call fcn.00402c90
lea eax, [esp + 0x4c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x483ff5
mov ecx, dword [esp + 0x10a8]
sub eax, edx
sar eax, 1
add eax, esi
cmp eax, ecx
jb 0x483f80
xor eax, eax
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1090
ret 8
mov eax, ebx
jmp 0x484017
Function at 0x484040
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x48408e
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.00494c80
test al, al
je 0x48408e
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 4

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

Disassembly:
mov eax, 0x1068
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
mov ebx, dword [esp + 0x1078]
push ebp
mov ebp, dword [esp + 0x1074]
push esi
push edi
mov edi, dword [esp + 0x1080]
push ebx
push ebp
push edi
call fcn.004b0360
push 0x32
push str.temp
lea eax, [esp + 0x18]
push eax
call fcn.004b0360
xor esi, esi
lea esp, [esp]
push 0x2e
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x3e8]
push 0
push eax
call fcn.004b0130
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00495960
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x484151
push 0x800
lea eax, [esp + 0x78]
push eax
push edi
call fcn.00494c80
test al, al
je 0x48415a
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48415a
inc esi
cmp esi, 0x3e8
jb 0x484100
push edi
push ebp
call fcn.00484180
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1068
ret 0xc

Function at 0x484180
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x4841ff
push 0x800
lea eax, [esp + 0x1010]
push eax
push edi
call fcn.00494c80
test al, al
je 0x4841ff
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00494c80
test al, al
je 0x4841ff
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x484201
mov al, bl
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x2004
ret 8
Function at 0x484250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x48429c
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x4842a1
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x4842b2
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x4842b7
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x4842c7
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x4842cc
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x484300
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00494c80
test al, al
je 0x484314
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x484314
test bl, 1
je 0x484314
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.00484430
jmp 0x484319
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x48437d
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00494c80
test al, al
je 0x484408
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x484408
cmp byte [esp + 0x10], 0
je 0x484390
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004b18c0
cmp byte [esp + 0x12], 0
je 0x4843a3
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.004b18c0
cmp byte [esp + 0x11], 0
je 0x4843b8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.004b18c0
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x484408
push ebx
push esi
call fcn.00484430
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1028
ret 0x10
Function at 0x484430
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x484495
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00494c80
test al, al
je 0x484495
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x484497
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d090
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.00495040
test al, al
je 0x484649
lea ecx, [ebp - 0x1018]
call fcn.00485300
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push esi
call fcn.00485500
push 0
lea eax, [ebp - 0x2060]
mov dword [ebp - 0x1050], 0
push eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
call fcn.004853e0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.00485320
mov al, bl
jmp 0x484682
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48467f
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.00494c80
test al, al
je 0x48467c
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret 4
Function at 0x4846a0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2064], eax
push ebx
push esi
mov esi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push esi
call fcn.004840b0
test al, al
je 0x48471e
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x48471a
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.00494c80
test al, al
je 0x48471a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x48475a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x484752
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00494c80
test al, al
je 0x484752
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x48475a
xor al, al
jmp 0x48475c
mov al, 1
mov ecx, dword [esp + 0x206c]
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x2068
ret 4