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

Disassembly:
push 0xffffffffffffffff
push 0x5e4988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.00402580
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.00429af0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x42a697
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a6be
test al, 0x10
je 0x42a6be
cmp dword [esp + 0x20], esi
jb 0x42a6ba
mov eax, dword [esp + 0xc]
push eax
call fcn.0059b877
add esp, 4
mov al, 1
jmp 0x42a6d3
cmp dword [esp + 0x20], esi
jb 0x42a6d1
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x2c
ret

Function at 0x42a6f0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x42a6fe
mov eax, dword [esi]
jmp 0x42a700
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x42a714
mov ecx, dword [esi]
jmp 0x42a716
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x42a726
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret
Function at 0x42ac50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5e4f48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x42ad6d
lea ebp, [ebx + 4]
cmp edi, dword [ebx + 0x14]
jbe 0x42ac9f
call fcn.005b8b18
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x42acae
mov eax, dword [ebp]
jmp 0x42acb0
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x42acd8
cmp edi, dword [ebx + 0x14]
jbe 0x42acc1
call fcn.005b8b18
cmp dword [ebx + 0x18], esi
jb 0x42accb
mov eax, dword [ebp]
jmp 0x42accd
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x42ad60
push edi
push ebx
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.0040b160
xor esi, esi
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x28], esi
je 0x42ad33
lea ecx, [esp + 0x14]
push ecx
call fcn.0042a480
add esp, 4
test al, al
jne 0x42ad33
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x42ad11
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ad33
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x42ad4f
mov edx, dword [esp + 0x18]
push edx
jmp 0x42ad47
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x42ad4f
mov eax, dword [esp + 0x18]
push eax
call fcn.0059b877
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x42ac95
push ebx
call fcn.0042a480
add esp, 4
test al, al
jne 0x42ad99
cmp dword [ebx + 0x18], 8
jb 0x42ad85
mov eax, dword [ebx + 4]
jmp 0x42ad88
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42ad99
xor al, al
jmp 0x42ada2
push ebx
call fcn.0042a620
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b88a9
add esp, 0x30
ret
Function at 0x42d070
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x5dcb48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x14], esi
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x28], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push esi
mov dword [esp + 0x20], 0x7d0
call edi
push 4
lea ecx, [esp + 0x14]
push ecx
push 3
push esi
mov dword [esp + 0x20], 3
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0042d4a0
add esp, 0x10
test esi, esi
mov bl, al
je 0x42d10b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x42f7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.0042e570
mov dword [esp + 0x30], 0
mov edx, dword [esi + 0x24]
mov edx, dword [edx + 0x40]
lea ecx, [esi + 0x24]
lea eax, [esp + 0xc]
push eax
call edx
test al, al
jne 0x42f875
mov eax, dword [esp + 0x20]
cmp eax, 0x65a768
je 0x42f837
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x65a768
je 0x42f84b
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x65a768
je 0x42f85f
push eax
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov esi, dword [ebp + 8]
call fcn.0042dd60
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esi + 8]
push ecx
add eax, 8
push eax
push edx
call fcn.005c3120
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x65a768
je 0x42f8ae
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x65a768
je 0x42f8c2
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x65a768
je 0x42f8d6
push eax
call fcn.0059b877
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4303f0
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x4303fd
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x4303f9
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x4302f0
push 0
push 0
call fcn.005bacd5
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x430452
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x430442
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x430474
mov esi, dword [edi]
call fcn.00430380
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret

Function at 0x4304d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.005be600
add esp, 0xc
push edi
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
jne 0x43052f
push edi
push 0x6190bc
jmp 0x43054b
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x430536
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00402770
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005b88a9
add esp, 0x210
ret
Function at 0x430570
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5e47e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
mov edi, ecx
xor ebp, ebp
push eax
lea ebx, [ebp + 1]
xor eax, eax
mov edx, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 0x25
call fcn.0040b4d0
push 0xffffffffffffffff
cmp eax, 0xffffffff
push ebp
mov eax, edi
jne 0x4305e6
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov ecx, esi
mov word [esi + 4], bp
call fcn.00402580
jmp 0x4306db
mov ebx, 7
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
call fcn.00402580
mov dword [esp + 0x40], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x430614
mov eax, dword [eax]
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x430650
push 0xffffffffffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push ebp
mov eax, edi
mov ecx, esi
mov word [esi + 4], bp
call fcn.00402580
cmp dword [esp + 0x30], 8
jb 0x4306db
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x4306d3
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059b872
add esp, 4
cmp dword [edi + 0x18], 8
mov ebx, eax
mov eax, dword [esp + 0x10]
jb 0x43067a
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jbe 0x4306a2
cmp eax, edi
ja 0x4306a2
lea edx, [esp + 0x18]
push edx
mov edx, ebx
mov word [ebx + eax*2], bp
call fcn.00403990
push ebx
call fcn.0059b877
add esp, 4
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push ebp
lea eax, [esp + 0x20]
mov ecx, esi
mov word [esi + 4], bp
call fcn.00402580
cmp dword [esp + 0x30], 8
jb 0x4306db
mov eax, dword [esp + 0x1c]
push eax
call fcn.0059b877
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005b88a9
add esp, 0x34
ret
Function at 0x431360
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e474b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x10], bl
jne 0x4314ff
cmp dword [edi + 0x34], 8
mov dword [esp + 0x18], ebx
jb 0x4313b9
mov eax, dword [edi + 0x20]
jmp 0x4313bc
lea eax, [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x431503
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [edi + 0x14], eax
je 0x431503
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [edi + 0x18], eax
je 0x431503
cmp dword [edi + 0x34], 8
jb 0x431402
mov ecx, dword [edi + 0x20]
jmp 0x431405
lea ecx, [edi + 0x20]
mov edx, dword [esp + 0x18]
push eax
push esi
push edx
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push edx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test dword [esp + 0x10], 0xfffffffc
mov dword [esp + 0x14], ebx
jbe 0x4314fb
xor esi, esi
push 0x7e
lea eax, [esp + 0x42]
push ebx
push eax
mov word [esp + 0x48], bx
call fcn.005be600
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04x
lea eax, [esp + 0x54]
push 0x3f
push eax
call fcn.005bad83
lea eax, [esp + 0x5c]
add esp, 0x20
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x431490
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x28]
call fcn.00402770
mov edx, esi
push edx
mov esi, edi
mov dword [esp + 0xd4], ebx
call fcn.0040fe40
mov dword [esp + 0xd0], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4314de
mov eax, dword [esp + 0x24]
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 1
movzx esi, ax
shr ecx, 2
cmp esi, ecx
mov dword [esp + 0x14], eax
jb 0x431442
mov byte [edi + 0x10], 1
mov al, 1
jmp 0x431505
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret

Function at 0x431680
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x43168c
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4316af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4316af
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.005c0590
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x432a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dcab8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x18], 8
jb 0x432a5a
mov eax, dword [eax + 4]
jmp 0x432a5d
add eax, 4
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x432ac4
lea edi, [esp + 0x1c]
lea eax, [esp + 0x18]
call fcn.00431680
mov edi, dword [esp + 0x1c]
call fcn.0042dd60
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ecx
je 0x432abd
push ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x432ad9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x432ae2
mov eax, ecx
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438e50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.005be600
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x438ee2
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438eb0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.00402770
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.005b88a9
add esp, 0x210
ret

Function at 0x438f60
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x438f6f
mov eax, dword [eax + 4]
jmp 0x438f72
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x438f88
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
Function at 0x438fa0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5e4348
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, 8
cmp dword [esi + 0x18], ebp
lea edi, [esi + 4]
jb 0x438fe4
mov ecx, dword [edi]
jmp 0x438fe6
mov ecx, edi
cmp dword [ebx + 0x18], ebp
jb 0x438ff0
mov eax, dword [ebx + 4]
jmp 0x438ff3
lea eax, [ebx + 4]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x439080
cmp dword [esi + 0x18], ebp
jb 0x439008
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43909e
xor edi, edi
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.00402580
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x3c], edi
call fcn.004396b0
add esp, 4
test al, al
je 0x43908b
lea eax, [esp + 0x10]
mov ecx, esi
call fcn.00438f60
test al, al
je 0x43908b
mov eax, esi
mov ecx, ebx
call fcn.00438f60
test al, al
lea ecx, [esp + 0x10]
je 0x439084
push ecx
call fcn.004390c0
add esp, 4
lea esi, [esp + 0x10]
call fcn.00405c10
mov al, 1
jmp 0x4390a0
mov eax, esi
call fcn.00438f60
cmp dword [esp + 0x28], ebp
jb 0x43909e
mov edx, dword [esp + 0x14]
push edx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x2c
ret

Function at 0x4390c0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea edi, [ebp + 4]
jb 0x4390d7
mov edx, dword [edi]
jmp 0x4390d9
mov edx, edi
push ebx
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4390f2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x18]
call fcn.00402770
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x43911f
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esp + 0x28], esi
jb 0x43913f
mov eax, dword [esp + 0x14]
push eax
call fcn.0059b877
add esp, 4
test bl, bl
pop ebx
je 0x43914d
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x439167
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
Function at 0x439180
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x64f43c], edi
mov esi, ecx
je 0x4391c8
push 0xffffffffffffffff
push edi
mov eax, 0x64f428
call fcn.00402580
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.005b88a9
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.005be600
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4392b3
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.005be600
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x439275
cmp eax, edi
je 0x439275
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.00403990
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.005b88a9
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439280
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00402770
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.005b88a9
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.005b88a9
add esp, 0x624
ret

Function at 0x4392d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call fcn.005be600
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x43931c
mov edi, dword [edi + 4]
jmp 0x43931f
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x439329
mov ebx, dword [ebx + 4]
jmp 0x43932c
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x439384
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439350
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00402770
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.005b88a9
add esp, 0x210
ret
Function at 0x439600
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, esi
call fcn.0042a090
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.005be600
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x43965f
xor al, al
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x420
ret
cmp eax, 0x208
jae 0x439647
lea ecx, [esp + 4]
push ecx
push 0x209
call edi
test eax, eax
je 0x439647
cmp eax, 0x208
jae 0x439647
push esi
lea edx, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00403990
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
mov al, 1
call fcn.005b88a9
add esp, 0x420
ret