joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405afb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405b1d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405b1f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405bbe
jg 0x405b3c
test esi, esi
je 0x405bbe
test ecx, ecx
jl 0x405b89
jg 0x405b46
test eax, eax
je 0x405b89
cmp ebx, ecx
jg 0x405b5a
jl 0x405b50
cmp esi, eax
jae 0x405b5a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004576b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405b90
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405bbe
jg 0x405b9a
test esi, esi
je 0x405bbe
cmp dword [edi + 0x4c], 0
je 0x405bbe
mov ecx, edi
call fcn.00406e90
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045b896
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ed0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405f00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455748
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f3d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f3d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455748
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406032
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f65
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405f99
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045a997
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455748
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406032
cmp eax, 1
jle 0x406001
cmp eax, 3
jne 0x406032
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045a997
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455748
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406020
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045b2bc
add esp, 0x10
cmp edi, eax
jne 0x406032
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f27
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455748
add esp, 0x30
ret 4
Function at 0x407490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c720
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a8098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045575e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0045395c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d068
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40cf70
xor al, al
jmp 0x40d0a6
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419300
test al, al
je 0x40cfd2
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp eax, 2
jbe 0x40d08f
lea ecx, [ebp - 0x2c]
call fcn.004069e0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406730
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d017
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d036
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp dword [esi + 0x14], 8
jb 0x40d02e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d08f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d093
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419300
test al, al
je 0x40d07e
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp esi, 0xffffffff
jne 0x40d093
xor bl, bl
jmp 0x40d095
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d068
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40d110
xor al, al
jmp 0x40d24c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d17f
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419300
test al, al
je 0x40d16e
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d188
test bl, 0x10
je 0x40d239
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp eax, 2
jbe 0x40d235
lea ecx, [ebp - 0x2c]
call fcn.004069e0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406730
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d1b8
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d1d7
lea ecx, [ebp - 0x2c]
call fcn.004069e0
cmp dword [esi + 0x14], 8
jb 0x40d1cf
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d235
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052a0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d230
lea ecx, [ebp - 0x44]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419300
test al, al
je 0x40d21f
lea ecx, [ebp - 0x44]
call fcn.004052a0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d235
test bl, 0x10
je 0x40d239
xor bl, bl
jmp 0x40d23b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret
Function at 0x40d270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405290
test al, al
je 0x40d2af
xor al, al
jmp 0x40d33a
push esi
lea ecx, [ebp - 0x28]
call fcn.00405420
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004052a0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d31e
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419300
test al, al
je 0x40d30d
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052e0
cmp ebx, 0xffffffff
je 0x40d327
test bl, 0x10
je 0x40d327
mov bl, 1
jmp 0x40d329
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d210
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
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 edi, dword [ebp + 8]
mov ecx, edi
call fcn.00405290
test al, al
je 0x40dc80
xor al, al
jmp 0x40de3b
push edi
call fcn.0040d270
add esp, 4
test al, al
je 0x40dc94
mov al, 1
jmp 0x40de3b
push 0
mov ecx, edi
call fcn.004052a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dce3
lea ecx, [ebp - 0x28]
call fcn.00405400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00419300
test al, al
je 0x40dcd4
push 0
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
push edi
call fcn.0040d270
add esp, 4
test al, al
jne 0x40dc8d
mov ecx, edi
call fcn.004069e0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dddc
mov ecx, edi
call fcn.00406730
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dd1c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40dd3f
mov eax, ebx
cmp ecx, 8
jb 0x40dd35
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40ddcc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00405240
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405290
test al, al
jne 0x40ddbd
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf30
add esp, 4
test al, al
jne 0x40ddbd
push 0
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ddbd
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419300
test al, al
je 0x40ddb1
push 0
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dd10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cf30
add esp, 4
test al, al
jne 0x40de32
push 0
mov ecx, edi
call fcn.004052a0
push eax
call ebx
test eax, eax
jne 0x40de32
lea ecx, [ebp - 0x40]
call fcn.00405400
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00419300
test al, al
je 0x40de23
push 0
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052e0
push edi
call fcn.0040d270
add esp, 4
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.00455748
mov esp, ebp
pop ebp
ret
Function at 0x417e30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8098]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x417e76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041cd90
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417e9f
lea ebx, [esi + 8]
jmp 0x417ea1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405290
test al, al
jne 0x417eb7
mov ecx, dword [ebp - 0x18]
call fcn.004052a0
jmp 0x417eb9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x417eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417eda
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417f03
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417f18
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0045578e
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.00455748
mov esp, ebp
pop ebp
ret 4

Function at 0x4189a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d448
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4189e9
mov al, 1
jmp 0x418a31
lea ecx, [ebp - 0x28]
call fcn.00405400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00419300
test al, al
je 0x418a1e
push esi
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a1e
mov bl, 1
jmp 0x418a20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret
Function at 0x418a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d448
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418ace
lea ecx, [ebp - 0x28]
call fcn.00405400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00419300
test al, al
je 0x418abd
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455748
mov esp, ebp
pop ebp
ret

Function at 0x418c00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a8098]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.004052a0
push eax
mov ecx, edi
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418c52
mov al, 1
jmp 0x418d40
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00405400
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.00419300
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.00419300
test al, al
jne 0x418c98
test bl, bl
je 0x418cb6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
lea ecx, [ebp - 0x58]
call fcn.004052a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418d0a
mov ecx, esi
call fcn.00418a50
cmp eax, 0xffffffff
je 0x418d21
push esi
lea ecx, [ebp - 0x28]
call fcn.00405420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00418f50
test al, al
je 0x418d15
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00418af0
test al, al
je 0x418d15
mov edx, esi
mov ecx, edi
call fcn.00418af0
lea ecx, [ebp - 0x28]
test al, al
je 0x418d0e
call fcn.00418d60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov bl, 1
jmp 0x418d23
mov edx, esi
call fcn.00418af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052e0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004052e0
mov al, bl
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.00455748
mov esp, ebp
pop ebp
ret
Function at 0x418d60
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e938
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a8098]
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, ecx
call fcn.004052a0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x418da6
mov al, 1
jmp 0x418ef8
mov ecx, esi
call fcn.004052a0
push eax
lea ecx, [ebp - 0x28]
call fcn.004053c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00418a50
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
cmp ebx, 0xffffffff
jne 0x418de5
xor al, al
jmp 0x418ef8
mov ecx, esi
call fcn.004052a0
push eax
lea ecx, [ebp - 0x28]
call fcn.004053c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.004052a0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x418e17
xor bl, bl
jmp 0x418e61
lea ecx, [ebp - 0x40]
call fcn.00405400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419300
test al, al
je 0x418e53
push 0
lea ecx, [ebp - 0x40]
call fcn.004052a0
push eax
call ebx
test eax, eax
je 0x418e53
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052e0
xor bl, bl
jmp 0x418e61
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052e0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
test bl, bl
jne 0x418dde
mov ecx, esi
call fcn.004052a0
push eax
call edi
test eax, eax
jne 0x418d9f
lea ecx, [ebp - 0x28]
call fcn.00405400
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00419300
test al, al
je 0x418eba
lea ecx, [ebp - 0x28]
call fcn.004052a0
push eax
call edi
test eax, eax
je 0x418eba
mov bl, 1
jmp 0x418ee7
mov ecx, esi
call fcn.004052a0
push eax
lea ecx, [ebp - 0x40]
call fcn.004053c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.004189a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004052e0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052e0
mov al, bl
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.00455748
mov esp, ebp
pop ebp
ret
Function at 0x41a920
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0045575e
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00457c30
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41a97c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00455748
add esp, 0x120
ret