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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], ecx
push edi
mov dword [ebp - 0x18], eax
mov esi, dword [ebx + 0x10]
dec esi
neg esi
sbb esi, esi
add esi, 3
cmp byte [ebx + 0x14], 0
je 0x407830
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
je 0x407830
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call fcn.00407702
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x40792f
mov ecx, dword [ebx + 4]
xor edx, edx
neg ecx
push edx
sbb ecx, ecx
xor eax, eax
push 0x80
and ecx, 4
cmp dword [ebx], edx
push esi
push edx
setne al
or ecx, eax
push ecx
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40792f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
je 0x4078dc
cmp esi, 0x7b
je 0x4078dc
cmp esi, 3
jne 0x407921
cmp dword [ebx + 8], 0
je 0x40792a
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
push dword [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00414245
lea ecx, [ebp - 0x10]
call fcn.0040825a
add esp, 0xc
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00414365
cmp edi, 0xffffffff
jne 0x40792f
jmp 0x407921
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x407921
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40792f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40792a
mov esi, 0xa0000031
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret

Function at 0x407940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x4079a2
and dword [ebp - 8], 0
test edi, edi
jne 0x407973
mov ebx, esi
cmp esi, 0x1000000
jbe 0x407978
mov ebx, 0x1000000
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4079b8
cmp ebx, dword [ebp - 8]
jne 0x4079b8
sub esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
sbb edi, 0
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, esi
or eax, edi
jne 0x407961
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret
xor eax, eax
jmp 0x4079a9
Function at 0x4079bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
and dword [eax], 0
and dword [eax + 4], 0
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jmp 0x407a34
and dword [ebp - 8], 0
test ebx, ebx
jne 0x4079fc
mov edi, esi
cmp esi, 0x1000000
jbe 0x407a01
mov edi, 0x1000000
push 0
lea eax, [ebp - 8]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407a4c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add dword [ecx], eax
adc dword [ecx + 4], 0
cmp eax, edi
jb 0x407a3a
mov edx, dword [ebp - 0xc]
sub esi, eax
mov ecx, dword [ebp - 0x14]
sbb ebx, 0
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, esi
or eax, ebx
jne 0x4079ea
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret
xor eax, eax
jmp 0x407a3d
Function at 0x408b9a
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x408cdb
test edx, edx
je 0x408cdb
test eax, eax
je 0x408cdb
mov eax, dword [0x4426c4]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
mov esi, eax
lea ecx, [ebp - 0x10]
push esi
call fcn.0041455b
mov ecx, dword [ebp - 0x10]
xor edx, edx
test al, al
cmove ecx, edx
push ecx
push esi
call edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004145c5
test esi, esi
je 0x408ccf
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.00408b4b
push ebx
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
test edi, edi
jne 0x408cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x408c80
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.00414245
lea ecx, [ebp - 0x1c]
call fcn.0040825a
add esp, 0xc
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00414365
jmp 0x408cc4
cmp eax, 0x7b
jne 0x408cc4
mov ecx, esi
call fcn.0040924e
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.0040924e
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408cb9
test esi, esi
je 0x408cb2
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042976f
pop ecx
test esi, esi
je 0x408cc4
push esi
call fcn.0042976f
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, edi
lea ecx, [ebp - 0x10]
call fcn.00414365
mov eax, ebx
jmp 0x408cdd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret
Function at 0x409455
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x4094cc
cmp word [esi], 0
je 0x4094cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00429e24
mov edi, eax
pop ecx
test edi, edi
je 0x4094cc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, edi
call fcn.004084bd
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0040880c
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x4094c0
test bl, 7
je 0x4094c0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.0042976f
mov eax, dword [ebp - 4]
pop ecx
jmp 0x4094ce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4094d3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
or esi, 0xffffffff
cmp ecx, esi
je 0x409502
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409502
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jmp 0x409504
mov edx, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004219ad
leave
ret
Function at 0x40ea93
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 8]
cmp dword [eax + 0x60], 0
je 0x40eb0a
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x40eb0a
mov edi, dword [ebp + 8]
jg 0x40eb0a
cmp edi, 0x1000
jbe 0x40eb0a
test esi, esi
jg 0x40eb0a
jl 0x40eac6
cmp edi, 0x40000000
ja 0x40eb0a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x4c]
or eax, edx
jne 0x40eb0a
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x48]
cmp eax, edi
jne 0x40eb0a
cmp edx, esi
jne 0x40eb0a
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40eaf6
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x48]
or eax, edx
je 0x40eb0a
xor eax, eax
jmp 0x40eb0d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x40eff2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x4c]
and dword [ebx], 0
cmp dword [esi + 0xc], 0xffffffff
je 0x40f021
mov eax, dword [esi]
call dword [eax + 0x2c]
mov eax, dword [esi + 0x50]
mov ecx, edi
push dword [eax + 0x84]
push dword [ebp + 0x14]
push ebx
push dword [ebp - 8]
call fcn.0040ed40
add esp, 0x10
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x40f047
xor eax, eax
jmp 0x40f0a3
mov ecx, eax
call fcn.004094d3
push edi
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.0040f782
test edi, edi
je 0x40f0a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x40f0a0
push 0x3a
pop ecx
cmp word [edi + 2], cx
jne 0x40f0a0
push 0x5c
pop edx
cmp word [edi + 4], dx
jne 0x40f0a0
mov ax, word [edi]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], cx
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret 0x10
Function at 0x40fa28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x20], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x24], eax
call fcn.0040924e
mov esi, eax
test esi, esi
je 0x40fb8e
mov eax, dword [ebx + 0x140]
xor edi, edi
cmp dword [eax + 0x24], edi
je 0x40fac8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40fa73
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x40fac8
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.00414245
lea ecx, [ebp - 0x18]
call fcn.0040825a
add esp, 0xc
push dword [ebp - 0x18]
call fcn.0042adbc
pop ecx
test eax, eax
je 0x40fabe
push esi
mov esi, eax
call fcn.0042976f
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00414365
xor edi, edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x40fad6
push edi
mov ecx, ebx
call fcn.0040fcdf
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40faec
push 0xffffffffffffffff
push esi
push dword [ebp + 0x18]
push eax
call fcn.0042c187
add esp, 0x10
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.004077e1
mov dword [ebx + 0xc], eax
pop ecx
cmp eax, 0xffffffff
jne 0x40fb30
mov edx, dword [ebx + 0x140]
mov ecx, esi
push dword [ebp - 0x1c]
mov edx, dword [edx + 0x24]
call fcn.0040880c
pop ecx
test eax, eax
je 0x40fb81
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.004077e1
mov dword [ebx + 0xc], eax
pop ecx
cmp eax, 0xffffffff
je 0x40fb81
push esi
call fcn.0042adbc
mov dword [ebx + 0x14], eax
pop ecx
test esi, esi
je 0x40fb7e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x40fb7e
push 0x3a
pop ecx
cmp word [esi + 2], cx
jne 0x40fb7e
push 0x5c
pop edx
cmp word [esi + 4], dx
jne 0x40fb7e
mov ax, word [esi]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], cx
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebx + 0x38], eax
xor edi, edi
inc edi
test esi, esi
je 0x40fb8c
push esi
call fcn.0042976f
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret 0x18
Function at 0x40fcdf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [0x4426c4]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
push esi
xor esi, esi
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp dword [ebx + 0x14], esi
je 0x40fd31
push dword [ebx + 0x14]
lea ecx, [esp + 0x1c]
call fcn.0041438e
push dword [ebx + 0x14]
call fcn.0042976f
mov eax, dword [esp + 0x1c]
pop ecx
mov dword [esp + 0x10], eax
cmp dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], esi
jne 0x40fd42
xor esi, esi
inc esi
jmp 0x40fdbd
mov ecx, ebx
call fcn.0040fb9f
neg eax
push ecx
push dword [ebx + 0xc]
sbb esi, esi
mov ecx, ebx
and esi, 1
push esi
call fcn.0040fe9f
push edx
push eax
lea ecx, [ebx + 0x148]
call fcn.0040eb14
mov ecx, dword [ebx + 0xc]
lea edi, [ebx + 0x18]
neg eax
sbb eax, eax
and eax, esi
mov dword [esp + 0x14], eax
cmp ecx, 0xffffffff
je 0x40fd92
mov edx, edi
call fcn.0040ec5a
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0xc], 0xffffffff
and dword [ebx + 0x38], 0
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], eax
je 0x40fdb2
cmp dword [esp + 0x1c], eax
je 0x40fdb2
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebx + 0x144], 0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00414365
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004219ad
mov esp, ebp
pop ebp
ret 4

Function at 0x40fe38
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret 4

Function at 0x40fe8e
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
call fcn.0040fb9f
mov ecx, dword [esi + 0xc]
pop esi
jmp fcn.004094d3
Function at 0x410143
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x43ab16
call fcn.00438496
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
call fcn.0040924e
mov ebx, eax
test ebx, ebx
je 0x410249
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x78], 0xffffffff
je 0x41018b
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x24]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4101a1
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x14]
push eax
call fcn.0042c187
add esp, 0x10
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x1c]
push ebx
call fcn.00410251
test eax, eax
jne 0x4101dd
mov edx, dword [esi + 0x98]
mov ecx, ebx
push dword [ebp - 0x1c]
mov edx, dword [edx + 0x24]
call fcn.0040880c
pop ecx
test eax, eax
je 0x410240
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x1c]
push ebx
call fcn.00410251
test eax, eax
je 0x410240
push ebx
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
call fcn.0042adbc
lea ecx, [esi + 0x6c]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp], 0x8000
call fcn.004069fb
test eax, eax
jne 0x41021d
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x68], 8
mov dword [eax], 0xa0000063
jmp 0x410240
cmp dword [esi + 0xc], edi
jne 0x41023d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push edi
push esi
push 0x4106d8
push edi
push edi
call fcn.0042b272
add esp, 0x18
mov dword [esi + 0xc], eax
xor edi, edi
inc edi
push ebx
call fcn.0042976f
pop ecx
mov eax, edi
call fcn.00438445
ret 0x14

Function at 0x410251
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x448008]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
inc ecx
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x98]
push edi
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
push edx
lea edx, [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004077e1
mov esi, dword [esp + 0x38]
pop ecx
mov dword [esi + 0x78], eax
cmp eax, 0xffffffff
je 0x4102fc
test ebx, ebx
je 0x4102fc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x4102fc
push 0x3a
pop ecx
cmp word [ebx + 2], cx
jne 0x4102fc
push 0x5c
pop edx
cmp word [ebx + 4], dx
jne 0x4102fc
mov ax, word [ebx]
mov word [esp + 0x34], ax
xor eax, eax
mov word [esp + 0x3a], ax
lea eax, [esp + 0x34]
push eax
mov word [esp + 0x3a], cx
mov word [esp + 0x3c], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0xa8], eax
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp dword [esi + 0x78], 0xffffffff
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.004219ad
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410319
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x64], 1
je 0x410369
call fcn.0040ec9d
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp edi, edx
jb 0x410385
ja 0x410342
cmp ebx, eax
jbe 0x410385
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
je 0x410369
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x78]
push edi
push ebx
call fcn.00407940
pop ecx
pop ecx
test eax, eax
jne 0x410374
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x68], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0xa0], ebx
adc dword [esi + 0xa4], edi
xor eax, eax
inc eax
jmp 0x41036b
lea eax, [esi + 0x40]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea ecx, [esi + 0x18]
push ebx
push dword [ebp + 8]
call fcn.00408f50
test eax, eax
jne 0x4103ab
mov dword [esi + 0x64], 1
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0040ec9d
cmp dword [esi + 0x3c], edx
jb 0x4103c8
ja 0x4103c5
cmp dword [esi + 0x38], eax
jbe 0x4103c8
xor edi, edi
inc edi
and dword [esi + 0x14], 0
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xbb8
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
movlpd qword [esp + 0x18], xmm0
test edi, edi
je 0x410488
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x41047d
test edi, edi
je 0x410417
push 0xa
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x64], 0
jne 0x41047d
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], eax
call fcn.0040ec9d
mov ecx, dword [esp + 0xc]
cmp ecx, edx
jb 0x41046d
ja 0x410448
cmp edi, eax
jbe 0x41046d
mov eax, dword [esp + 0x18]
xor edi, edi
inc edi
cmp dword [esp + 0x10], eax
jne 0x41045e
cmp dword [esp + 0x14], ecx
jne 0x41045e
dec ebx
jmp 0x41046f
mov dword [esp + 0x10], eax
mov ebx, 0xbb8
mov dword [esp + 0x14], ecx
jmp 0x41046f
xor edi, edi
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x410404
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x64], 1
je 0x410369
test eax, eax
jle 0x410369
add dword [esi + 0xa0], ebx
mov eax, dword [ebp + 0x10]
adc dword [esi + 0xa4], eax
jmp 0x410380

Function at 0x410673
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret 4
Function at 0x4106e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
and dword [esp + 8], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x70]
lea ebx, [esi + 0x40]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x41074d
test eax, eax
jne 0x41074d
test edi, edi
jne 0x410744
cmp ebx, 0x8000
jae 0x410744
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x410759
mov ebx, 0x8000
xor edi, edi
jmp 0x410759
test edi, edi
jne 0x41076d
cmp ebx, 0x8000
jae 0x41076d
mov eax, ebx
or eax, edi
jne 0x410774
test ecx, ecx
je 0x41078d
mov dword [esp + 0x14], 1
jmp 0x41078d
mov ebx, 0x8000
xor edi, edi
push 1
push edi
push ebx
push dword [esp + 0x1c]
lea ecx, [esi + 0x18]
call fcn.0040905d
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
or eax, edi
je 0x4107d1
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
push edi
push ebx
call fcn.00407940
pop ecx
pop ecx
test eax, eax
jne 0x4107dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
jmp 0x4107dc
push 2
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x18], 0
lea ebx, [esi + 0x40]
je 0x410811
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x64], 0
jne 0x4107fd
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x41080a
push dword [esi + 0x5c]
and dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x14], 0
je 0x410706
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41083b
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x78]
pop esi
jmp fcn.004094d3
Function at 0x414160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41420d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
je 0x4141a5
cmp esi, 2
je 0x4141a5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x4141ff
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
call fcn.00414245
lea ecx, [ebp - 0x10]
call fcn.00413fab
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, 0xffffffff
je 0x4141ed
test bl, 0x10
jne 0x4141ed
lea ecx, [ebp - 0x10]
call fcn.00414365
xor eax, eax
inc eax
jmp 0x414215
lea ecx, [ebp - 0x10]
call fcn.00414365
cmp esi, 2
je 0x414209
cmp esi, 3
je 0x414209
cmp esi, 0x7b
je 0x414209
cmp esi, 0x35
jne 0x4141e8
xor eax, eax
jmp 0x414215
shr eax, 4
not eax
and eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004219ad
leave
ret