joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b770
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00404c10
test al, al
jne 0x40b797
mov ecx, dword [esp + 8]
call fcn.00404c20
jmp 0x40b799
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40b7c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x40b7c3
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x40b820
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaa78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53a098]
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 0x40b866
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.004179d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40b88f
lea ebx, [esi + 8]
jmp 0x40b891
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00404c10
test al, al
jne 0x40b8a7
mov ecx, dword [ebp - 0x18]
call fcn.00404c20
jmp 0x40b8a9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40b8ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b8ca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40b8f3
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 0x40b908
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004c2dc6
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.004c2d85
mov esp, ebp
pop ebp
ret 4
Function at 0x40b940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x53a098]
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 [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40b983
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00417a90
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40b9b0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x40b9b7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00404c10
test al, al
jne 0x40b9cb
mov ecx, ebx
call fcn.00404c20
jmp 0x40b9cd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x40ba1e
call ecx
cmp eax, 5
jne 0x40ba18
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00404c10
test al, al
jne 0x40ba08
mov ecx, ebx
call fcn.00404c20
jmp 0x40ba0a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x40ba3c
call ecx
cmp eax, 0xb7
jne 0x40ba31
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00416430
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40ba62
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 0x40ba77
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004c2dc6
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.004c2d85
mov esp, ebp
pop ebp
ret 4
Function at 0x40eaf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x5225c8
push 0x4c45a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x53a098]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004c5400
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040e910
cmp byte [edi + 0x30], bl
je 0x40eb99
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ebbe
test al, 0x10
jne 0x40ebbe
call fcn.004196f0
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004199e0
test al, al
je 0x40ebbe
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x40ebc2
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x40ec25
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ebf3
mov dword [edi + 0x34], esi
push edi
push 0x40e810
push 0x50fac0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x40ec18
test esi, esi
je 0x40ec23
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004c2d85
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x40ec50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x5225e8
push 0x4c45a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x53a098]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004c5400
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040e910
cmp byte [edi + 0x30], bl
je 0x40ecf9
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ed1e
test al, 0x10
jne 0x40ed1e
call fcn.004196f0
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004199e0
test al, al
je 0x40ed1e
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x40ed22
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x40ed88
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ed56
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x40e810
push 0x50fac0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x40ed7b
test esi, esi
je 0x40ed86
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004c2d85
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x4126a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53a098]
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 edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.00418cd0
test al, al
jne 0x412700
mov eax, 1
jmp 0x41287d
push 0x10000
call fcn.004c35ed
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004c5400
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x412856
test ebx, ebx
je 0x412856
cmp dword [eax], 0xffffffff
je 0x412856
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412856
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x41284c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.0042c800
test al, al
je 0x41283f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4127f2
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4127e1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x41284c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x4127fc
add ebx, eax
cmp ebx, 0x8000
je 0x41280c
cmp dword [ebp - 0x28], 0xf
ja 0x412835
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x412790
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41282e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x412816
mov esi, 4
jmp 0x412867
mov esi, 5
jmp 0x412867
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x412867
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x412861
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x412867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41287b
push ebx
call fcn.004c33ed
add esp, 4
mov eax, esi
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.004c2d85
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4128a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebc68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53a098]
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]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00404d60
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x511a4e
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.00406d00
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.0042b590
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404e30
test bl, bl
jne 0x412963
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x412a1e
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0042b160
test al, al
jne 0x412990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x412a1e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x412a0b
cmp eax, 0xce
je 0x412a0b
cmp eax, 0x12e
jne 0x412a3f
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x4129d3
push 0x800
call fcn.004c35ed
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.004c5400
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0042b1d0
test al, al
je 0x412a3f
push esi
call fcn.004051b0
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00405050
mov ebx, dword [ebp - 0x38]
jmp 0x412a2f
cmp dword [ebp + 0x14], 0
ja 0x412a17
cmp dword [ebp + 0x10], 0
jbe 0x412a43
cmp eax, 0xce
je 0x412a43
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x412a3f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x412903
xor bl, bl
jmp 0x412a4f
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x412a60
push esi
call fcn.004c33ed
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004049a0
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.004c2d85
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414a30
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0040a4e0

Function at 0x414a40
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0041d500

Function at 0x414f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, ecx
call fcn.00404e90
mov dword [esp + 4], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x414f43
mov eax, dword [eax]
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00405420
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004c5400
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x414f8e
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004c2d85
add esp, 0x41c
ret
cmp eax, 0x208
jae 0x414f76
xor eax, eax
mov word [esp + 0x418], ax
lea eax, [esp + 8]
push eax
call fcn.004051b0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00405050
mov ecx, dword [esp + 0x41c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004c2d85
add esp, 0x41c
ret

Function at 0x415410
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004c2d96
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004c5400
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 0x41546c
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.004c2d85
add esp, 0x120
ret
Function at 0x418b60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x418b98
mov edx, dword [esp + 4]
test edx, edx
je 0x418b98
cmp dword [eax], 0xffffffff
je 0x418b98
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b98
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x418ba0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x418bda
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x418bda
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x418bda
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418bda
cmp edi, dword [esi]
jne 0x418bda
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x418c50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x53a098]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x418cb3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x418cb3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418cb3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c2d85
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c2d85
add esp, 8
ret 4

Function at 0x418db0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x418e5e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.00418cd0
test al, al
je 0x418e5e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00418cd0
test al, al
je 0x418e5e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x418e34
cmp dword [esp + 0x14], edi
jne 0x418e34
mov eax, dword [esi]
test eax, eax
jne 0x418e21
xor bl, bl
jmp 0x418e34
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x418e1d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.00418cd0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b820
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ece08
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53a098]
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 ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.00404c10
test al, al
jne 0x41b87a
cmp byte [ebp + 8], al
jne 0x41b881
mov eax, dword [ebx]
test eax, eax
je 0x41b9e1
cmp byte [eax + 0xa5], 0
je 0x41b9e1
xor al, al
jmp 0x41b9f7
mov ecx, esi
call fcn.00404c10
test al, al
jne 0x41b9e1
push esi
call fcn.00409bb0
add esp, 4
test al, al
je 0x41b8a9
push esi
push edi
call fcn.0041b450
jmp 0x41b9dd
push 0xb
mov ecx, esi
call fcn.00404c20
push eax
mov ecx, edi
call fcn.00404c20
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x41b8ce
mov al, 1
jmp 0x41b9dd
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.00404d40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0041d9b0
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.00404d40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0041d9b0
test al, al
jne 0x41b91b
cmp byte [ebp - 0x60], al
je 0x41b957
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00404c20
push eax
lea ecx, [ebp - 0x58]
call fcn.00404c20
push eax
call ebx
test eax, eax
je 0x41b957
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004049a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004049a0
mov al, 1
jmp 0x41b9dd
mov ecx, esi
call fcn.0041d350
cmp eax, 0xffffffff
je 0x41b9c0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041d770
test al, al
je 0x41b9b4
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041d3f0
test al, al
je 0x41b9b4
mov edx, esi
mov ecx, edi
call fcn.0041d3f0
lea ecx, [ebp - 0x28]
test al, al
je 0x41b9ad
call fcn.0041d500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004049a0
jmp 0x41b935
mov edx, esi
call fcn.0041d3f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004049a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004049a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004049a0
xor al, al
test al, al
jne 0x41b9f5
push edi
call fcn.00409bb0
add esp, 4
test al, al
je 0x41b9f5
mov ecx, edi
call fcn.0041d500
mov al, 1
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.004c2d85
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d2a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec278
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53a098]
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.00404c20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41d2e9
mov al, 1
jmp 0x41d331
lea ecx, [ebp - 0x28]
call fcn.00404d40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041d9b0
test al, al
je 0x41d31e
push esi
lea ecx, [ebp - 0x28]
call fcn.00404c20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41d31e
mov bl, 1
jmp 0x41d320
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004049a0
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.004c2d85
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec278
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53a098]
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.00404c20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d3ce
lea ecx, [ebp - 0x28]
call fcn.00404d40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041d9b0
test al, al
je 0x41d3bd
lea ecx, [ebp - 0x28]
call fcn.00404c20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004049a0
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.004c2d85
mov esp, ebp
pop ebp
ret