joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47db70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0a50
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
test byte [0x547898], 1
jne 0x47dc40
or dword [0x547898], 1
mov dword [ebp - 4], 0
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47dbd4
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x547894], eax
mov ecx, 0x50206c
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x47dc13
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
test eax, eax
je 0x47dc30
push esi
push eax
mov ecx, 0x547894
call fcn.00422eb3
jmp 0x47dc30
push 0x50206c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50206c
mov ecx, 0x547894
call fcn.00423404
push 0x4f8f30
call fcn.004cd8dc
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [0x547894]
cmp dword [ecx - 0xc], 0
jne 0x47dd4b
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
sub edx, 0x514
or eax, edx
jge 0x47dc7a
push 0x514
mov ecx, 0x547894
call fcn.0042052a
mov ecx, dword [0x547894]
push 0x514
push ecx
push str._USERPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [0x547894]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004cccfb
add esp, 8
test eax, eax
jl 0x47dd72
mov ecx, dword [0x547894]
cmp eax, dword [ecx - 8]
jg 0x47dd72
mov dword [ecx - 0xc], eax
mov edx, dword [0x547894]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
jbe 0x47dcfb
mov eax, dword [0x547894]
cmp dword [eax - 0xc], ecx
jle 0x47dcfb
push 0x7e
push eax
call fcn.004cdc18
add esp, 8
test eax, eax
je 0x47dcfb
sub eax, dword [0x547894]
sar eax, 1
cmp eax, ebx
je 0x47dcfb
push 0x547894
call fcn.0047a4d0
add esp, 4
mov eax, dword [0x547894]
push eax
lea ecx, [ebp - 0x10]
push str.ReplaceUserProfile:_CurProfile_s
push ecx
call fcn.004777e0
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00475890
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x47dd45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x547894]
lea eax, [ecx - 0x10]
push eax
call fcn.00423475
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00420000
int3
Function at 0x47dd80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaf80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x47def3
push 0x25
push ecx
call fcn.004cdc18
add esp, 8
cmp eax, ebx
je 0x47def3
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x47def3
call fcn.004bdbe3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47ddf7
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x47de2d
push 0x514
lea ecx, [ebp - 0x10]
call fcn.0042052a
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 0x514
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cccfb
add esp, 8
cmp eax, ebx
jl 0x47df44
cmp eax, dword [esi - 8]
jg 0x47df44
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jbe 0x47ded4
add esi, 0xfffffff0
push esi
call fcn.00423475
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47de9a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47dec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47def3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00423475
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47df30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00420000
int3
Function at 0x47df50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecb08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.004bdbe3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47df9a
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x47dfc9
push edi
lea ecx, [ebp - 0x10]
call fcn.0042052a
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cccfb
add esp, 8
cmp eax, ebx
jl 0x47e13b
cmp eax, dword [esi - 8]
jg 0x47e13b
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x47e0d1
call fcn.004bdbe3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47e020
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x50206c
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47e05d
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
cmp eax, ebx
je 0x47e077
mov ecx, dword [ebp + 8]
push edi
push eax
call fcn.00422eb3
jmp 0x47e077
push 0x50206c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50206c
mov ecx, edi
call fcn.00423404
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e0bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
push esi
call fcn.00423475
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e101
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00420000
int3
Function at 0x47e340
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec8f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e389
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
je 0x47e3fa
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x47e453
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47e3eb
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x47e3eb
push eax
call fcn.00423475
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x47e3e3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x47e453
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.00423404
jmp 0x47e453
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x47e41a
push esi
lea ecx, [ebp + 8]
call fcn.0042052a
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.004cff24
add esp, 8
test esi, esi
jl 0x47e4cf
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x47e4cf
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebp + 8]
mov word [edx + esi*2], cx
push eax
lea ecx, [ebp - 0x18]
call fcn.00422f41
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x47e150
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e495
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e4bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00420000
int3
Function at 0x481700
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52f970
push 0x4d3930
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x4818e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4817ba
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4817ba
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x4817ce
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x541100
call fcn.004dd8c0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x4818d4
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x48182c
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x541100
call fcn.004dd8c0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4817a7
cmp dword [ebp - 0x54], edi
je 0x4818a8
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x481805
cmp dword [ebp - 0x54], edi
je 0x4818a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x481848
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x541100
call fcn.004dd8c0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.004818cc
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x4817d3
mov dword [ebp - 4], 0xfffffffe
call fcn.004818fa
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481a60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2138
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push edx
push esi
push str.MatrixFileIpc.SaveToDisk_sync_d_:_saving_tree_and_emptying_DataIntegrity_value_____s
push ecx
call fcn.004777e0
add esp, 0x10
call fcn.00481910
add esp, 4
test esi, esi
je 0x481ab9
mov ecx, ebx
call fcn.004af4a0
mov edi, dword [ebx + 0x1c]
call fcn.004997f0
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push str.MatrixFileIpc.SaveToDisk__:_about_to_save_tree
push eax
call fcn.004777e0
add esp, 8
call fcn.00481910
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ecx]
mov edi, esp
mov dword [ebp + 8], esp
mov dword [ebp + 8], edi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x481b01
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x481b41
test esi, 0xffff0000
jne 0x481b38
movzx esi, si
push esi
call fcn.004c5d7f
test eax, eax
je 0x481b4a
push esi
push eax
mov ecx, edi
call fcn.00422eb3
jmp 0x481b4a
push esi
call fcn.004ccd1a
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.00423404
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x1c]
call fcn.00483b90
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x481b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str._Lock:_failed_releasing__LE_d
push edx
call fcn.004777e0
add esp, 0xc
call fcn.00499640
add esp, 4
mov eax, dword [ebx + 0x14]
push str.DataIntegrity
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.MatrixFileIpc.SaveToDisk__:_out
push ecx
call fcn.004777e0
add esp, 8
call fcn.00481910
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48dac0
Capabilities:
Hash data using sha256

Disassembly:
test ebx, ebx
je 0x48daee
push esi
push edi
push 0x40
lea eax, [ebx + 0x28]
push 0
mov ecx, 8
mov esi, 0x524468
mov edi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004cd900
add esp, 0xc
xor eax, eax
pop edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
pop esi
ret
Function at 0x48e060
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x541100]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push esi
push edi
push 0x48
push eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004cd900
add esp, 0xc
mov ecx, 8
mov esi, 0x524468
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 0x40
xor edi, edi
lea ecx, [ebp - 0x4c]
push edi
push ecx
call fcn.004cd900
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
add esp, 0xc
cmp dword [ecx - 4], 1
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
jle 0x48e0d8
mov edx, esi
push edx
lea ecx, [ebp + 8]
call fcn.0042454a
mov ecx, dword [ebp + 8]
cmp esi, edi
je 0x48e0e9
mov eax, esi
lea esi, [ebp - 0x74]
call fcn.0048dd30
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.004d1089
add esp, 8
cmp eax, edi
jl 0x48e14b
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x48e14b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
cmp ebx, edi
je 0x48e11c
push ebx
lea esi, [ebp - 0x74]
call fcn.0048de10
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48e13b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004cc3b2
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00420000
int3
Function at 0x48e970
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f08a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x48e9dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push edx
push str.OpenWrite__s_:_error_opening__LE_d
push ecx
call fcn.004777e0
add esp, 0x10
jmp 0x48eaeb
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 8
lea edi, [esi + 0x14]
push edi
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48eac8
cmp dword [ebp - 0x10], 8
jne 0x48eac8
mov edx, dword [edi]
push edx
call fcn.0048e550
add esp, 4
push ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x1c], esp
cmp eax, ebx
jne 0x48ea51
mov ecx, dword [ebp + 8]
mov eax, esp
push ecx
push str._OpenWrite__s_:_unknown_encoder_
push eax
call fcn.004777e0
add esp, 0xc
call fcn.0048e880
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48eb0a
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, esp
push edx
push eax
push str.OpenWrite__s_:__s_encoding
push ecx
call fcn.004777e0
add esp, 0x10
call fcn.0048e880
mov edx, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi + 0xc], ecx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48eab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push str.OpenWrite__s_:_cant_read_header__Read_only__d_bytes__LE_d
push ecx
call fcn.004777e0
add esp, 0x14
call fcn.0048e880
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48eb16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4