joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018b0
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x214
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push 0x53ef00
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
cmp eax, 8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
jle 0x401907
push 9
push ebx
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
mov word [esp + 0x30], dx
jmp 0x40190f
push ebx
lea eax, [esp + 0x1c]
push eax
call ebp
mov ecx, 0x3a
cmp cx, word [esp + 0x22]
jne 0x401922
xor edx, edx
mov word [esp + 0x24], dx
push ebx
call edi
cmp eax, 1
jne 0x401936
push 0x53ef0c
lea eax, [esp + 0x1c]
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0x80002004
push esi
call edi
test eax, eax
jne 0x4019c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401a1e
test ebp, ebp
je 0x4019c4
push 0
lea eax, [esp + 0x24]
push eax
push 2
call dword [0x5784e0]
test eax, eax
je 0x4019c4
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0x800024dc
push esi
call edi
movzx esi, word [ebx]
shl esi, 0x10
or esi, 0x8004
call fcn.00401350
lea eax, [esp + 0x18]
call fcn.0040cde0
lea ecx, [esp + 0x18]
call fcn.00404eb0
mov eax, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x214
ret
Function at 0x402000
Capabilities:
Modify service
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1810
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x180c], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x402188
push ebx
push 0xf003f
push 0x53ef14
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x402180
push 0xfff
lea eax, [esp + 0x819]
push 0
push eax
mov byte [esp + 0x820], 0
call fcn.004d5720
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x81c]
push edx
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x402179
push ebp
push edi
push str.SystemCurrentControlSetServices_
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x53ef14
lea ecx, [esp + 0x20]
push ecx
call esi
push str.Instances
lea edx, [esp + 0x20]
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x53efd0
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push 0x53efd0
push 1
push str.DefaultInstance
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.Top
lea ecx, [esp + 0x20]
push ecx
call esi
push str.586333
call ebp
add eax, eax
push eax
push str.586333
push 1
push str.Altitude
lea edx, [esp + 0x2c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.Flags
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
call edi
cmp dword [esp + 0x81c], 2
pop edi
pop ebp
je 0x402175
push 0
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
push 0
push 1
push 1
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, dword [esp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [esp + 0x1810]
pop esi
xor ecx, esp
call fcn.004d6555
add esp, 0x1810
ret
Function at 0x4021a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x51f0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
xor ebp, ebp
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebp
call fcn.00401050
mov dword [esp + 0x2c], ebp
mov edi, dword [eax]
cmp edi, ebp
je 0x4021fa
cmp dword [edi + 4], ebp
jne 0x4021f5
mov ecx, dword [edi]
push ecx
call fcn.0050ee30
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x4021fc
xor edi, edi
mov esi, dword [sym.imp.imagehlp.dll_ImageLoad]
push ebp
push edi
call esi
mov dword [esp + 0x2c], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40225a
mov edi, eax
add eax, 8
push eax
call ebx
cmp eax, ebp
jne 0x402256
cmp edi, ebp
je 0x402256
mov eax, dword [edi]
cmp eax, ebp
je 0x40223d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x40224d
push eax
call fcn.004910f4
add esp, 4
push edi
call fcn.004910f4
add esp, 4
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401050
mov dword [esp + 0x2c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x40228b
cmp dword [edi + 4], ebp
jne 0x402286
mov eax, dword [edi]
push eax
call fcn.0050ee30
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x40228d
xor edi, edi
push ebp
push edi
call esi
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4022d5
mov edi, eax
add eax, 8
push eax
call ebx
test eax, eax
jne 0x4022d1
cmp edi, ebp
je 0x4022d1
mov eax, dword [edi]
cmp eax, ebp
je 0x4022b8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x4022c8
push eax
call fcn.004910f4
add esp, 4
push edi
call fcn.004910f4
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.imagehlp.dll_ImageUnload]
cmp eax, ebp
je 0x402302
cmp esi, ebp
je 0x4022ff
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
mov dx, word [edx + 4]
cmp dx, word [ecx + 4]
jne 0x4022ff
mov dword [esp + 0x1c], 1
push eax
call edi
cmp esi, ebp
je 0x402309
push esi
call edi
cmp dword [esp + 0x1c], ebp
je 0x402342
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
call fcn.00403190
test eax, eax
je 0x402342
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x402360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x80c
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
push edi
push 0
call fcn.004013b0
add esp, 4
cmp eax, 0xffffffff
jne 0x40239e
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004d6555
add esp, 0x80c
ret
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push 0x200
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Drivers_
lea ecx, [esp + 0xc]
push ecx
call esi
push str.Estdlock.SYS
lea edx, [esp + 0xc]
push edx
call esi
push 0x200
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x408]
push 0x5c
push ecx
call fcn.004d659c
add esp, 8
test eax, eax
je 0x40244e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [eax + 2]
push 0x53f064
push esi
call edi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x40c]
push eax
call fcn.004021a0
add esp, 8
test eax, eax
jne 0x402449
push 0x53f080
push esi
call edi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x40c]
push edx
call fcn.004021a0
add esp, 8
test eax, eax
je 0x40244e
call fcn.00402000
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004d6555
add esp, 0x80c
ret
Function at 0x403190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x4031bd
push esi
call edi
test eax, 0x10000
je 0x4031e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4031e3
mov eax, 1
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004d6555
add esp, 0x414
ret
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040b300
add esp, 4
test eax, eax
je 0x4031c8
lea ecx, [esp + 0x20c]
push ecx
mov ecx, ebx
call fcn.0040b300
add esp, 4
test eax, eax
je 0x4031c8
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x210]
call fcn.0040b4d0
mov ecx, dword [esp + 0x418]
dec eax
add esp, 4
neg eax
sbb eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.004d6555
add esp, 0x414
ret
Function at 0x403250
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x51eedb
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x854]
push str.SystemCurrentControlSetServices_
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebp
lea ecx, [esp + 0x40]
push ecx
call esi
push str.Instances
lea edx, [esp + 0x40]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x53efd0
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push 0x53efd0
push 1
push str.DefaultInstance
lea eax, [esp + 0x4c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.Top
lea ecx, [esp + 0x40]
push ecx
call esi
push str.586333
call ebx
add eax, eax
push eax
push str.586333
mov esi, 1
push esi
push str.Altitude
lea edx, [esp + 0x4c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 4
lea eax, [esp + 0x24]
push eax
push 4
push str.Flags
lea ecx, [esp + 0x4c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], esi
call edi
lea edx, [esp + 0x1c]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40339c
lea eax, [esp + 0x24]
push eax
push str.SeLoadDriverPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40339c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0x10
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], 2
mov dword [esp + 0x4c], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.FltLib
mov esi, 0x45a
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403409
push str.FilterLoad
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x403402
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401050
mov dword [esp + 0x84c], 0
mov eax, dword [eax]
test eax, eax
je 0x4033e3
mov eax, dword [eax]
jmp 0x4033e5
xor eax, eax
push eax
call edi
test eax, eax
jg 0x4033f0
mov esi, eax
jmp 0x4033f9
movzx esi, ax
or esi, 0x80070000
lea ecx, [esp + 0x18]
call fcn.00401100
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x403428
cmp esi, 0xb7
je 0x403428
cmp esi, 0x420
je 0x403428
xor eax, eax
jmp 0x403432
call fcn.00404260
mov eax, 1
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.004d6555
add esp, 0x83c
ret
Function at 0x403460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [esp + 0x62]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004d5720
add esp, 0xc
test ebx, ebx
je 0x403530
push ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403530
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.Start
mov edi, 4
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x403530
cmp dword [esp + 0xc], edi
jne 0x403530
lea eax, [edi - 3]
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004d6555
add esp, 0x21c
ret
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004d6555
add esp, 0x21c
ret

Function at 0x403550
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [esp + 0x5a]
push 0
push eax
mov dword [esp + 0x18], 1
movsw word es:[edi], word [esi]
call fcn.004d5720
add esp, 0xc
test ebx, ebx
jne 0x4035b1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004d6555
add esp, 0x214
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
push 2
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403598
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push str.Start
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004d6555
add esp, 0x214
ret
Function at 0x403a00
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x38]
push esi
test ebp, ebp
je 0x403a14
mov dword [ebp], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x403a33
pop esi
pop ebp
add esp, 0x2c
ret
push edi
push 0xf003f
push 0x53ef14
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x403a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x424
jne 0x403a76
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2c
ret
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret
cmp dword [esp + 0x3c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x403b0a
lea eax, [esp + 0x44]
call fcn.00401510
test eax, eax
je 0x403b0a
cmp dword [esp + 0x44], 0
jne 0x403aff
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403ac3
call ebx
cmp eax, 0x426
jne 0x403aff
cmp dword [esp + 0x1c], 1
je 0x403b0a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x403af8
mov dword [esp + 0x1c], 4
jmp 0x403aff
cmp dword [esp + 0x1c], 1
je 0x403b0a
test ebp, ebp
je 0x403b0a
mov dword [ebp], 1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
call ebx
mov ebx, eax
test esi, esi
jne 0x403b33
cmp ebx, 0x430
jne 0x403b33
test ebp, ebp
je 0x403b2e
mov dword [ebp], 1
mov esi, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret

Function at 0x405230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405263
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40528e
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40528e
cmp esi, dword [esp + 4]
jne 0x40528e
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x4052a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4052d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4052fe
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4052fe
cmp esi, dword [esp + 4]
jne 0x4052fe
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x4054b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor edx, edx
div dword [esi + 8]
push edi
mov ebp, 1
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.004053b0
mov ecx, dword [esi + 8]
mov ebx, eax
mov eax, dword [esp + 0x3c]
xor edx, edx
div ecx
add esp, 8
sub ecx, edx
mov edi, ecx
cmp edi, ebp
jbe 0x4054f6
mov edi, ebp
test ebx, ebx
jne 0x405511
mov ecx, dword [esp + 0x30]
mov ebx, edi
shl ebx, 9
push ebx
push 0
push ecx
call fcn.004d5720
add esp, 0xc
jmp 0x405572
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
lea eax, [edx + ebx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405547
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40558d
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x1c]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40558d
cmp ebx, dword [esp + 0x18]
jne 0x40558d
mov dword [esp + 0x1c], 1
add dword [esp + 0x34], edi
add dword [esp + 0x30], ebx
inc dword [esp + 0x14]
sub ebp, edi
test ebp, ebp
je 0x405597
mov esi, dword [esp + 0x2c]
jmp 0x4054d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4055b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push 1
push eax
mov esi, ebp
call fcn.004053b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40567b
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
sub edi, edx
cmp edi, eax
jbe 0x4055fa
mov edi, eax
mov esi, dword [ebp]
lea eax, [edx + ecx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40562d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40567b
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40567b
cmp ebx, dword [esp + 0x14]
jne 0x40567b
mov eax, dword [esp + 0x34]
add dword [esp + 0x30], edi
add dword [esp + 0x2c], ebx
inc dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4055c8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x405690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push 0x19000
call fcn.004910ff
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4056b6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
push esi
push edi
push 0x19000
push 0
push ebx
call fcn.004d5720
mov esi, dword [esp + 0x38]
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
test ebp, ebp
je 0x405756
mov ecx, 0x200
mul ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov edi, ebp
cmp ebp, 0xc8
jbe 0x4056f5
mov edi, 0xc8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
push eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40572b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4057c5
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov esi, edi
shl esi, 9
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4057c5
cmp esi, dword [esp + 0x10]
jne 0x4057c5
sub ebp, edi
jne 0x4056e6
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [ebx + 4]
mov dword [ebx], 0xfffffff8
mov dword [eax], 0xffffffff
add eax, 4
mov ecx, 2
cmp edx, 0x6400
jbe 0x405794
push ebx
call fcn.0049110a
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
test edx, edx
je 0x4057a3
mov dword [eax], ecx
dec edx
add eax, 4
inc ecx
test edx, edx
jne 0x405798
mov eax, dword [esi + 8]
mov ecx, 0xc8
cmp eax, ecx
jae 0x4057b1
mov ecx, eax
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x28]
push ebx
call fcn.004052a0
add esp, 4
test eax, eax
jne 0x4057e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.0049110a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebx
call fcn.0049110a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x40786c
Capabilities:
Set file attributes

Disassembly:
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
je 0x40788a
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret

Function at 0x407c46
Capabilities:
Set file attributes

Disassembly:
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x407c67
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x2200]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret