joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc78
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450fee
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0041695e
and dword [esp + 0x30], 0
lea edi, [esi + 0x78]
push edi
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00416e8b
lea ebx, [esi + 0x38]
push ebx
mov ecx, edi
call fcn.00417188
push eax
mov eax, dword [esi + 0x30]
call fcn.00418bff
mov dword [esp + 0x14], eax
test al, 1
je 0x42ce73
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00416ebc
lea edi, [esi + 0x70]
push edi
mov dword [esp + 0x34], 1
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a1cf
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0041a24d
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x34], 2
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a71a
mov eax, edi
call fcn.0041a248
lea ecx, [esi + 0x78]
mov dword [esi + 0x98], eax
lea edi, [esi + 0x88]
call fcn.0041719b
push eax
call fcn.0041b03c
lea ecx, [esi + 0x78]
call fcn.00417193
push eax
call fcn.00419ffc
lea ecx, [esi + 0x78]
call fcn.0041a3e2
push eax
call fcn.0041b04a
push 0x10
lea eax, [esi + 0xe8]
push 0
push eax
call fcn.0043dae0
lea edi, [esi + 0x80]
add esp, 0xc
mov ecx, edi
call fcn.0041a759
and dword [esi + 0x108], 0
mov ecx, edi
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], edx
call fcn.0041a74b
mov ecx, edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.0041a759
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x50]
push edi
mov dword [esi + 0x64], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
push dword [ebx + 8]
call dword [edx + 0x1c]
mov dword [esp + 0x14], eax
test al, 1
je 0x42ce73
xor eax, eax
push eax
push 1
push dword [edi]
lea ebx, [esi + 0xa0]
push ebx
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
call fcn.0042e351
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004172c3
test eax, eax
jne 0x42ce4a
mov eax, ebx
call fcn.0042e3d2
push dword [eax + 8]
lea eax, [esi + 0xbc]
push 3
push dword [esi + 0x54]
push eax
call fcn.0042e351
mov dword [esi + 0xdc], 1
jmp 0x42ce5d
push 0
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042e351
mov ecx, edi
call fcn.0041729b
test eax, eax
je 0x42ce73
mov ecx, dword [esi + 0x28]
push dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d138
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451021
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0041695e
lea ebx, [esi + 0x78]
xor edi, edi
push ebx
mov dword [esp + 0x3c], edi
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00416e8b
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00416ebc
lea ecx, [esi + 0x70]
push ecx
mov dword [esp + 0x3c], 1
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a1cf
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x70]
push eax
call fcn.0041a24d
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x3c], 2
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041a71a
push 0x10
lea eax, [esi + 0xe8]
push edi
push eax
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
call fcn.0043dae0
add esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0041a74b
mov dword [esi + 0x100], eax
mov eax, 0x8000
mov ecx, ebx
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
call fcn.0041707f
push edi
push 1
push dword [esi + 0x50]
mov dword [esi + 0xd8], eax
lea eax, [esi + 0xa0]
push eax
call fcn.0042e351
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esi + 0x80]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0041a76f
push edx
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x24]
call fcn.0041aa52
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d410
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451021
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0041695e
lea ebx, [esi + 0x78]
xor edi, edi
push ebx
mov dword [esp + 0x3c], edi
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00416e8b
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00416ebc
lea ecx, [esi + 0x70]
push ecx
mov dword [esp + 0x3c], 1
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a1cf
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x70]
push eax
call fcn.0041a24d
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x3c], 2
call fcn.0040c44e
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041a71a
lea ecx, [esi + 0x80]
call fcn.0041a789
mov dword [esi + 0xd8], eax
lea eax, [esi + 0x70]
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
call fcn.0041a248
push 0x10
mov dword [esi + 0x98], eax
lea eax, [esi + 0xe8]
push edi
push eax
call fcn.0043dae0
add esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0041a74b
push edi
mov dword [esi + 0x100], eax
mov eax, 0x4000
push 1
lea ecx, [esi + 0xa0]
push eax
push ecx
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0042e351
mov ecx, ebx
call fcn.004172c3
test eax, eax
jne 0x42d56a
lea eax, [esi + 0xa0]
call fcn.0042e3d2
push dword [eax + 8]
push 3
jmp 0x42d56d
push edi
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042e351
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esi + 0x80]
call fcn.0041a76f
push edx
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x24]
call fcn.0041aa52
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d6df
Capabilities:
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450fee
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.0041695e
and dword [esp + 0x30], 0
lea edi, [esi + 0x78]
push edi
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00416e8b
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00416ebc
lea edi, [esi + 0x70]
push edi
mov dword [esp + 0x34], 1
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a1cf
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0041a24d
lea ebx, [esi + 0x80]
push ebx
mov dword [esp + 0x34], 2
call fcn.0040c44e
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a71a
mov ecx, ebx
call fcn.0041a789
and dword [esi + 0xf8], 0
and dword [esi + 0xfc], 0
mov dword [esi + 0xd8], eax
mov eax, edi
call fcn.0041a248
push 0x10
mov dword [esi + 0x98], eax
lea eax, [esi + 0xe8]
push 0
push eax
call fcn.0043dae0
add esp, 0xc
mov ecx, ebx
call fcn.0041a74b
mov dword [esi + 0x100], eax
xor eax, eax
mov dword [esi + 0x104], edx
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e213
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not dword [ecx]
xor edx, edx
cmp dword [esp + 8], edx
jbe 0x42e248
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [esp + 0xc]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x45a478]
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0x10]
jb 0x42e21f
pop edi
pop esi
not dword [ecx]
ret

Function at 0x42e24b
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x42e280
movzx eax, word [edx]
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
movzx edi, al
shr ax, 8
xor esi, edi
xor ax, word [esi*2 + 0x45a878]
inc ecx
movzx eax, ax
cmp ecx, dword [esp + 0x10]
jb 0x42e258
pop edi
mov word [edx], ax
pop esi
ret

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

Disassembly:
push 0x40
mov eax, 0x452b6f
call fcn.00441ba8
mov eax, dword [ebp + 8]
push eax
lea edi, [ebp - 0x4c]
call fcn.004091a8
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00413345
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x42e406
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e419
test al, 0x10
je 0x42e419
xor esi, esi
inc esi
lea edi, [ebp - 0x4c]
call fcn.004080f1
mov eax, esi
call fcn.00441c2b
ret
Function at 0x42e54a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x42e60f
cmp ebx, esi
je 0x42e60f
lea ecx, [ebx + 0x18]
call fcn.0042e4ce
push esi
or eax, 0x2000000
push eax
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x42e60f
mov eax, dword [ebx]
or eax, dword [ebx + 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x42e5b5
lea edi, [ebp - 0x1c]
mov esi, ebx
call fcn.0042e49e
mov eax, edi
mov dword [ebp - 0xc], eax
lea esi, [ebx + 8]
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42e5cc
lea edi, [ebp - 0x24]
call fcn.0042e49e
mov eax, edi
mov dword [ebp - 4], eax
lea esi, [ebx + 0x10]
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42e5e3
lea edi, [ebp - 0x2c]
call fcn.0042e49e
mov eax, edi
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
xor eax, eax
inc eax
jmp 0x42e614
mov eax, 0x200
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e619
Capabilities:
Create directory

Disassembly:
push 0x6c
mov eax, 0x4534e3
call fcn.00441ba8
mov esi, ecx
push esi
lea edi, [ebp - 0x68]
call fcn.004091a8
xor edi, edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], edi
call fcn.00413345
push esi
call fcn.0042e3d6
pop ecx
test eax, eax
je 0x42e65b
xor esi, esi
inc esi
lea edi, [ebp - 0x68]
call fcn.004080f1
mov eax, esi
call fcn.00441c2b
ret
lea eax, [ebp - 0x68]
push eax
lea esi, [ebp - 0x30]
call fcn.0040124e
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], edi
jbe 0x42e692
lea eax, [ebp - 0x68]
call fcn.00408932
cmp word [eax], 0x2f
jne 0x42e68c
lea eax, [ebp - 0x68]
call fcn.0040127b
push 0x5c
pop ecx
mov word [eax], cx
inc edi
cmp edi, dword [ebp - 0x54]
jb 0x42e670
push 0x5c
pop ebx
xor esi, esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x74], ebx
push 1
lea eax, [ebp - 0x74]
push eax
mov eax, esi
lea ecx, [ebp - 0x68]
call fcn.00404e5a
or esi, 0xffffffff
cmp eax, esi
je 0x42e6ba
mov esi, eax
cmp dword [ebp - 0x6c], 0
je 0x42e70c
cmp dword [ebp - 0x54], 2
jbe 0x42e70b
xor edi, edi
lea eax, [ebp - 0x68]
call fcn.0040127b
cmp word [eax], bx
jne 0x42e70b
inc edi
lea eax, [ebp - 0x68]
call fcn.0040127b
cmp word [eax], bx
jne 0x42e70b
push 1
push 1
lea eax, [ebp - 0x70]
push eax
push 2
pop eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
call fcn.00404e5a
lea ecx, [ebp - 0x78]
push ecx
inc eax
lea ecx, [ebp - 0x68]
call fcn.00404e5a
mov esi, eax
inc esi
cmp esi, 0xffffffff
je 0x42e76c
mov edi, esi
lea eax, [ebp - 0x30]
call fcn.0040127b
movzx ebx, word [eax]
lea eax, [ebp - 0x30]
call fcn.0040127b
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42e737
lea eax, [ebp - 0x2c]
push eax
call fcn.0042e3d6
pop ecx
test eax, eax
jne 0x42e75b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42e74e
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x42e796
mov edi, esi
lea eax, [ebp - 0x30]
call fcn.0040127b
push 0x5c
mov word [eax], bx
inc esi
pop ebx
cmp dword [ebp - 0x6c], 0
je 0x42e777
dec esi
and dword [ebp - 0x6c], 0
cmp esi, 0xffffffff
je 0x42e785
cmp esi, dword [ebp - 0x54]
jb 0x42e6a1
push 0
push 1
lea esi, [ebp - 0x30]
call fcn.00401464
jmp 0x42e648
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042e429
push 0
push 1
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.00401464
mov esi, edi
jmp 0x42e64b
Function at 0x42e83a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx + 0x80]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x42e9a9
cmp dword [ecx + 0x24], 2
jne 0x42e86a
mov eax, 0x300
jmp 0x42e9ae
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
test byte [esi], 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
je 0x42e8bb
lea eax, [esi + 8]
lea ecx, [esp + 0x10]
call fcn.0042ec05
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test byte [esi], 4
je 0x42e8e4
lea eax, [esi + 0x10]
lea ecx, [esp + 0x30]
call fcn.0042ec05
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
inc ebx
test byte [esi], 8
je 0x42e90d
lea eax, [esi + 0x18]
lea ecx, [esp + 0x30]
call fcn.0042ec05
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
inc edi
test eax, eax
jne 0x42e919
test ebx, ebx
jne 0x42e919
test edi, edi
je 0x42e95d
neg ebx
sbb ebx, ebx
lea edx, [esp + 0x18]
and ebx, edx
neg edi
sbb edi, edi
lea edx, [esp + 0x20]
and edi, edx
neg eax
push ebx
sbb eax, eax
lea edx, [esp + 0x2c]
push edi
and eax, edx
push eax
push dword [ecx + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
jne 0x42e959
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042ee51
jmp 0x42e9ae
mov ecx, dword [esp + 0xc]
test byte [esi], 0x10
je 0x42e995
test byte [ecx + 0x24], 5
je 0x42e995
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.0042f1b4
cmp eax, dword [esi + 0x20]
jne 0x42e94a
cmp edx, dword [esi + 0x24]
jne 0x42e94a
mov eax, dword [esp + 0xc]
push dword [eax + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x42e94a
mov ecx, dword [esp + 0xc]
test byte [esi], 1
je 0x42e9a4
or dword [ecx + 0x50], 1
mov eax, dword [esi + 4]
mov dword [ecx + 0x54], eax
xor eax, eax
inc eax
jmp 0x42e9ae
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e9b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ecx + 0x80]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ecx
cmp eax, ebx
je 0x42eade
mov esi, dword [ebp + 8]
mov edi, dword [esi]
and edi, 2
jne 0x42e9e9
cmp edi, ebx
je 0x42ea81
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x20]
and ecx, edx
push ecx
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x1c]
and ecx, edx
push ecx
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x18]
and ecx, edx
push ecx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
jne 0x42ea45
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042ee51
jmp 0x42eae3
cmp edi, ebx
je 0x42ea81
lea eax, [esp + 0x10]
push eax
call fcn.0042eb95
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
cmp edi, ebx
je 0x42ea81
lea eax, [esp + 0x18]
push eax
call fcn.0042eb95
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp edi, ebx
je 0x42ea81
lea eax, [esp + 0x20]
push eax
call fcn.0042eb95
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
test byte [esi], 0x10
je 0x42ea95
mov ecx, dword [esp + 0xc]
call fcn.0042f1af
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
test byte [esi], 1
je 0x42eabf
mov eax, dword [esp + 0xc]
call fcn.0042f21a
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x42ea33
lea ecx, [esp + 0x10]
call fcn.0042eaec
mov dword [esi + 4], eax
test byte [esi], 0x20
je 0x42ead9
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x20], 8
jb 0x42ead3
mov eax, dword [eax + 0xc]
jmp 0x42ead6
add eax, 0xc
mov dword [esi + 0x28], eax
xor eax, eax
inc eax
jmp 0x42eae3
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ec60
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x42ec72
xor eax, eax
xor edx, edx
jmp 0x42ec95
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0042f1c8
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
ret 8

Function at 0x42ed1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x42ed80
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42ed5a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042ee51
mov dword [esi + 0x4c], eax
jmp 0x42ed7d
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x42ed6a
mov dword [esi + 0x4c], 0x1000c00
jmp 0x42ed7d
lea eax, [esi + 0x88]
add dword [eax], ecx
mov dword [esi + 0x4c], 1
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x42ed85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x42eddc
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x42edc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042ee51
mov dword [esi + 0x4c], eax
jmp 0x42edd9
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x88]
add dword [eax], ecx
mov dword [esi + 0x4c], 1
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x42f02d
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x42f076
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [esi + 0x50]
test byte [edi], 1
je 0x42f06e
lea ecx, [esi + 0x54]
call fcn.0042e4ce
push eax
mov eax, esi
call fcn.0042f21a
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0x30
push 0
push edi
call fcn.0043dae0
add esp, 0xc
and dword [esi + 0x80], 0
pop edi
pop esi
ret
Function at 0x42f2b6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452b39
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4691c0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.0042f5af
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x42f327
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.0042ee51
jmp 0x42f49c
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x4411
push 0x2b4
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor edi, edi
cmp eax, edi
je 0x42f315
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x48], edi
test al, 1
je 0x42f363
mov dword [ebx + 0x48], 0x80
test al, 0x20
je 0x42f36b
or dword [ebx + 0x48], 2
mov ecx, 0x800
test ecx, eax
je 0x42f378
or dword [ebx + 0x48], 4
test eax, 0x4000
je 0x42f383
or dword [ebx + 0x48], 8
test al, 2
je 0x42f38b
or dword [ebx + 0x48], 0x10
test al, al
jns 0x42f393
or dword [ebx + 0x48], 0x20
test al, 4
je 0x42f39e
or dword [ebx + 0x48], 0x400
test eax, 0x100
je 0x42f3a8
or dword [ebx + 0x48], ecx
test al, 0x10
je 0x42f3b0
or dword [ebx + 0x48], 1
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.0042f4f2
push dword [esp + 0x5c]
mov dword [ebx + 0x58], eax
push dword [esp + 0x5c]
mov dword [ebx + 0x5c], edx
call fcn.0042f4f2
push dword [esp + 0x64]
mov dword [ebx + 0x60], eax
push dword [esp + 0x64]
mov dword [ebx + 0x64], edx
call fcn.0042f4f2
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x6c], edx
mov edx, edi
mov cl, 0x20
call fcn.0044ce20
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x6c]
add dword [ebx + 8], eax
lea eax, [esp + 0x4b0]
push eax
mov dword [ebx + 0xc], edx
adc dword [ebx + 0xc], edi
lea eax, [esp + 0x18]
call fcn.0040122e
lea esi, [esp + 0x30]
call fcn.0040805a
mov dword [esp + 0x568], edi
lea esi, [ebx + 0x10]
lea edi, [esp + 0x14]
call fcn.004132e8
call fcn.004080f1
mov eax, dword [esp + 0x2a0]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4010
mov dword [ebx + 0x50], eax
mov edi, 0x2b4
push edi
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x20]
call esi
test eax, eax
je 0x42f473
mov eax, dword [esp + 0x2a0]
mov dword [ebx + 0x54], eax
push 0x4012
push edi
lea eax, [esp + 0x2a4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x20]
call esi
test eax, eax
je 0x42f499
mov eax, dword [esp + 0x2a0]
mov dword [ebx + 0x4c], eax
xor eax, eax
inc eax
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.0043d493
mov esp, ebp
pop ebp
ret 4