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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ce18
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d404c]
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
push ecx
push 0x4b99d0
call fcn.0040ce80
cmp eax, 0xffffffff
jne 0x40c915
mov ecx, esi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c910
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c740
test al, al
je 0x40c8fe
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
cmp edi, 0xffffffff
setne al
jmp 0x40c944
lea ecx, [ebp - 0x68]
call fcn.0041b1e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0041b750
add esp, 8
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret

Function at 0x40cf80
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.004070b0
test al, al
jne 0x40cfa7
mov ecx, dword [esp + 8]
call fcn.004070c0
jmp 0x40cfa9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40cfd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x40cfd3
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x40d030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cef8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d404c]
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 0x40d076
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.0041eee0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40d09f
lea ebx, [esi + 8]
jmp 0x40d0a1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.004070b0
test al, al
jne 0x40d0b7
mov ecx, dword [ebp - 0x18]
call fcn.004070c0
jmp 0x40d0b9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40d0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d0da
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40d103
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 0x40d118
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00477a12
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.00477737
mov esp, ebp
pop ebp
ret 4
Function at 0x40d150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cef8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4d404c]
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 0x40d193
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.0041efa0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40d1c0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x40d1c7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.004070b0
test al, al
jne 0x40d1db
mov ecx, ebx
call fcn.004070c0
jmp 0x40d1dd
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 0x40d22e
call ecx
cmp eax, 5
jne 0x40d228
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.004070b0
test al, al
jne 0x40d218
mov ecx, ebx
call fcn.004070c0
jmp 0x40d21a
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 0x40d24c
call ecx
cmp eax, 0xb7
jne 0x40d241
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0041dc20
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40d272
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 0x40d287
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00477a12
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.00477737
mov esp, ebp
pop ebp
ret 4
Function at 0x410cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d358
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d404c]
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 esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00410220
test al, al
jne 0x410d3f
xor bl, bl
jmp 0x410e9e
lea ecx, [ebp - 0x58]
call fcn.0040e440
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x410d5e
push ecx
lea ecx, [ebp - 0x58]
call fcn.004112c0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040f9f0
test al, al
jne 0x410d76
xor bl, bl
jmp 0x410e92
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x58]
call fcn.0040f000
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x410e84
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 0
push 0
push 0
call fcn.0041bac0
test al, al
je 0x410e84
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.0041b9c0
test al, al
je 0x410e84
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ebp - 0x14], eax
jne 0x410e84
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub edi, ebx
mov eax, dword [esi]
mov dword [ebp - 0x30], edi
test eax, eax
je 0x410e84
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x410e84
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410e84
cmp dword [ebp - 0x14], 4
jne 0x410e84
cmp ebx, dword [ebp - 0x28]
je 0x410e51
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push edi
push ebx
call fcn.0041b9c0
test al, al
je 0x410e84
cmp dword [ebp - 0x14], edi
jne 0x410e84
cmp dword [esi], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
je 0x410e80
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 1
push 0
push 0
call fcn.0041bac0
test al, al
je 0x410e80
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x60]
call fcn.0041bb50
mov bl, 1
jmp 0x410e86
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004128c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00411190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004128c0
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.00477737
mov esp, ebp
pop ebp
ret 4
Function at 0x411040
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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 eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x80
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x41111e
call eax
cmp eax, 5
jne 0x411119
push 0x80
mov ecx, edi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x4110fe
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x4110ef
push 0x80
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x41112a
cmp eax, 0x20
jne 0x41116b
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x411165
cmp eax, 0x20
jne 0x41116b
inc esi
cmp esi, 0x28
jb 0x411130
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.00477737
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4157c0
Capabilities:
Check if file exists

Disassembly:
cmp dword [ecx + 0x38], 0
jge fcn.00415940
jmp fcn.004157d0

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

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x4c6d88
push 0x479170
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d404c]
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 - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.0047a5f0
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004155e0
cmp byte [edi + 0x30], bl
je 0x415882
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4158a7
test al, 0x10
jne 0x4158a7
call fcn.0041fd80
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00420070
test al, al
je 0x4158a7
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 0x4158ab
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x41590c
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4158da
mov dword [edi + 0x34], esi
push edi
push 0x415480
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
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 0x4158ff
test esi, esi
je 0x41590a
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.00477737
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x415940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x4c6da8
push 0x479170
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d404c]
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 - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.0047a5f0
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004155e0
cmp byte [edi + 0x30], bl
je 0x4159f2
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415a17
test al, 0x10
jne 0x415a17
call fcn.0041fd80
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00420070
test al, al
je 0x415a17
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 0x415a1b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x415a7f
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415a4d
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x415480
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
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 0x415a72
test esi, esi
je 0x415a7d
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.00477737
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x419430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e818
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d404c]
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.0041bac0
test al, al
jne 0x419490
mov eax, 1
jmp 0x41960d
push 0x10000
call fcn.00477e6b
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.0047a5f0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4195e6
test ebx, ebx
je 0x4195e6
cmp dword [eax], 0xffffffff
je 0x4195e6
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 0x4195e6
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 0x4195dc
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.0042c2f0
test al, al
je 0x4195cf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x419582
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x419571
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4195dc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x41958c
add ebx, eax
cmp ebx, 0x8000
je 0x41959c
cmp dword [ebp - 0x28], 0xf
ja 0x4195c5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x419520
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4195be
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4195a6
mov esi, 4
jmp 0x4195f7
mov esi, 5
jmp 0x4195f7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4195f7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4195f1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4195f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41960b
push ebx
call fcn.00477c6b
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.00477737
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b980
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41b9b8
mov edx, dword [esp + 4]
test edx, edx
je 0x41b9b8
cmp dword [eax], 0xffffffff
je 0x41b9b8
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 0x41b9b8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41b9c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x41b9fa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41b9fa
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b9fa
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 0x41b9fa
cmp edi, dword [esi]
jne 0x41b9fa
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x41ba40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d404c]
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 0x41baa3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41baa3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ba7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41baa3
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.00477737
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00477737
add esp, 8
ret 4

Function at 0x41bb50
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 0x41bbfe
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041bac0
test al, al
je 0x41bbfe
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.0041bac0
test al, al
je 0x41bbfe
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x41bbd4
cmp dword [esp + 0x14], edi
jne 0x41bbd4
mov eax, dword [esi]
test eax, eax
jne 0x41bbc1
xor bl, bl
jmp 0x41bbd4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bbbd
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.0041bac0
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 0x41bc10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bc59
mov al, 1
jmp 0x41bca1
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041c740
test al, al
je 0x41bc8e
push esi
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bc8e
mov bl, 1
jmp 0x41bc90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bd3e
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041c740
test al, al
je 0x41bd2d
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret