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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 0
jne 0x468975
mov eax, 0x57
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
jb 0x468983
mov eax, dword [esi]
jmp 0x468985
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46899a
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4689a9
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xe
push 0x3ffe
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x4689dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x468a12
mov ecx, dword [ebp - 8]
cmp ecx, 1
je 0x4689f0
cmp ecx, 5
jne 0x468a12
push ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004688f0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov esi, 0x32
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x470f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov edi, ecx
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x470fe1
jmp 0x470f58
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], eax
test ecx, ecx
je 0x470f80
push 1
push ecx
call fcn.00499db8
mov eax, dword [ebp - 0xc]
add esp, 8
mov dword [edi + 0x1c], 0
test eax, eax
je 0x470fe1
push eax
call fcn.004996e0
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x470fa9
mov eax, 0xc0000017
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [ebp - 0xc]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x4744c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9953
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51c0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov dword [edi], vtable.CNamedPipeHandler.0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [ebp - 4], eax
lea esi, [edi + 0x24]
mov dword [edi], vtable.CProxyHandler.0
mov dword [ebp + 8], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00474e20
mov dword [esi], eax
mov byte [ebp - 4], 3
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x474620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9953
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51c0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [edi], vtable.CNamedPipeHandler.0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [ebp - 4], eax
lea esi, [edi + 0x24]
mov dword [edi], vtable.CProxyHandler.0
mov dword [ebp + 8], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00474e20
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x474850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x4748d2
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xde55adff
push eax
push dword [esi + 0x20]
mov dword [ebp - 8], 0x55adffde
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4748ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x30]
mov byte [esi + 0x2c], 0
test eax, eax
je 0x4748d2
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x4756c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 0
jne 0x4756d5
mov eax, 0x57
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
jb 0x4756e3
mov eax, dword [esi]
jmp 0x4756e5
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4756fa
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x475709
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
push 0x3ffe
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x47573c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
je 0x4757be
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x47574f
cmp eax, 5
jne 0x4757be
push str.TrustedPeople
push 0x20000
push 0
push dword [ebp - 8]
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x475784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0
push 3
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
je 0x47576c
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test eax, eax
je 0x47576c
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov esi, 0x32
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x476aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca158
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x51c0b0]
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
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x4dd804
mov dword [ebp - 0x34], 0x4dcac4
call edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00404040
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [esi + 8]
push 1
push 0x64
push dword [ebp + 0xc]
add ecx, 0x14
push dword [eax]
call fcn.00459400
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00404db0
movzx ecx, word [ebp - 0x60]
lea eax, [ebp - 0x64]
push 0
push eax
xor edx, edx
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], dl
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [ebx + 0x20]
cmovne edx, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x18], dx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x2c], 0xde55adff
mov dword [ebp - 0x20], 0x55adffde
mov dword [ebp - 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x476bce
call edi
test eax, eax
jne 0x476be9
push 0
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x476be9
call edi
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 - 0x10]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x51c0b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
test eax, eax
je 0x4798c3
lea esi, [eax + 0x20]
jmp 0x4798c5
xor esi, esi
call fcn.00404040
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 8]
push dword [eax]
add ecx, 0x14
push esi
call fcn.004591c0
mov ecx, dword [esp + 0x10]
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], esi
push eax
mov word [esp + 0x20], ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ecx
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x38], 0xde55adff
mov dword [esp + 0x44], 0x55adffde
mov dword [esp + 0x3c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47993f
call edi
test eax, eax
jne 0x47995c
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47995c
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x479980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x51c0b0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 0xc]
call fcn.00404040
lea ecx, [esp + 8]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esi + 8]
push dword [ebp + 0x14]
add ecx, 0x14
push dword [ebp + 0x10]
push dword [eax]
call fcn.00459400
mov cx, word [esp + 8]
mov esi, eax
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
push eax
push 0x10
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 0x20]
mov word [esp + 0x28], cx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0xde55adff
mov dword [esp + 0x3c], 0x55adffde
mov dword [esp + 0x34], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x479a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x479a4c
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x479a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47c870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x51c0b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
test eax, eax
je 0x47c8a3
lea esi, [eax + 0x20]
jmp 0x47c8a5
xor esi, esi
call fcn.00404040
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 8]
push dword [eax]
add ecx, 0x14
push esi
call fcn.004591c0
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], esi
push eax
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ecx
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xde55adff
mov dword [esp + 0x38], 0x55adffde
mov dword [esp + 0x30], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47c91d
call edi
test eax, eax
jne 0x47c93a
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea eax, [esp + 0x34]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47c93a
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47c950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x51c0b0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 0xc]
call fcn.00404040
lea ecx, [esp + 8]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esi + 8]
push dword [ebp + 0x14]
add ecx, 0x14
push dword [ebp + 0x10]
push dword [eax]
call fcn.00459400
mov cx, word [esp + 8]
mov esi, eax
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
push eax
push 0x10
lea eax, [esp + 0x1c]
mov word [esp + 0x30], cx
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xde55adff
mov dword [esp + 0x30], 0x55adffde
mov dword [esp + 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47c9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47ca14
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47ca14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47ca30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbac8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x51c0b0]
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 ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.0045ea90
test eax, eax
jns 0x47cab7
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.MsiParcelHandler.cpp
push str.Failed_to_convert_string_to_safe_array__error__x
push eax
mov dword [ebp - 0x34], 0x12b
call fcn.0040b080
add esp, 0xc
mov edx, dword [edi + 8]
test edx, edx
je 0x47cac3
lea esi, [edx + 0x20]
jmp 0x47cac5
xor esi, esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x48]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0xc], eax
lea ecx, [edx + 0x14]
call fcn.004655f0
mov ecx, dword [ebp - 0x30]
mov edi, eax
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], edi
push eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push eax
push dword [ebx + 0x20]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0xde55adff
mov dword [ebp - 0x14], 0x55adffde
mov dword [ebp - 0x1c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47cb44
call esi
test eax, eax
jne 0x47cb5f
push 0
lea eax, [ebp - 0x34]
push eax
push 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47cb5f
call esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, edi
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.004996ca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x486b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce2fb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
push ecx
lea ecx, [ebp - 0x40]
call fcn.00406f50
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00486900
add eax, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x486bb3
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x84], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00404940
cmp byte [0x522581], 0
jne 0x486c5e
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x74]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x486c34
cmp dword [ebp - 0x74], 2
jne 0x486c34
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x522581], al
jmp 0x486c39
mov al, byte [0x522581]
test al, al
jne 0x486c57
push 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x522581], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x80]
push 0
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
test esi, esi
je 0x486ca8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x486ca8
push esi
call eax
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00404940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x487990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce66b
mov eax, dword fs:[0]
push eax
mov eax, 0x804c
call fcn.0049aa90
mov eax, dword [0x51c0b0]
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 dword [ebp - 0x8058], ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
xor edi, edi
mov dword [ebp - 0x801c], esi
mov eax, fcn.0043c9a0
mov dword [ebp - 4], edi
test eax, eax
jne 0x4879ea
lea eax, [edi + 0x57]
jmp 0x487bd7
sub esp, 8
mov dword [ebp - 0x8034], 0
lea ecx, [ebp - 0x8054]
mov dword [ebp - 0x8030], 0
mov dword [ebp - 0x802c], 0
mov dword [ebp - 0x8050], 0
mov dword [ebp - 0x8054], 0
call fcn.00487cb0
add esp, 8
test eax, eax
jne 0x487bd7
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x487a40
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8018], eax
cmp eax, 0xffffffff
je 0x487bd1
mov esi, eax
mov dword [ebp - 0x801c], esi
mov eax, dword [ebp - 0x8058]
push dword [eax + 4]
lea eax, [ebp - 0x8050]
push eax
push 0x4000
lea eax, [ebp - 0x4010]
push eax
call fcn.0043c9a0
test eax, eax
je 0x487bc6
cmp dword [ebp - 0x8050], 0
je 0x487b46
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x8054], eax
jmp 0x487ac0
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8044], 0x4000
lea ecx, [ebp - 0x8054]
mov dword [ebp - 0x8048], eax
call fcn.00487e30
mov edi, eax
cmp edi, 2
je 0x487bbf
cmp edi, 0xfffffffb
jbe 0x487af6
cmp edi, 0xfffffffd
jbe 0x487b74
push 0
lea eax, [ebp - 0x8014]
mov dword [ebp - 0x8014], 0
push eax
mov ebx, 0x4000
lea eax, [ebp - 0x8010]
sub ebx, dword [ebp - 0x8044]
push ebx
push eax
push dword [ebp - 0x8018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487b6c
cmp dword [ebp - 0x8014], ebx
jne 0x487b67
cmp dword [ebp - 0x8044], 0
je 0x487ac0
cmp edi, 1
jne 0x487a70
lea ecx, [ebp - 0x8054]
call fcn.004894e0
push dword [ebp - 0x8018]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x487bd9
or edi, 0xffffffff
jmp 0x487b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x8038]
test eax, eax
je 0x487bd9
mov ecx, dword [ebp - 0x8030]
test ecx, ecx
je 0x487bd9
mov edx, dword [eax + 0x34]
test edx, edx
je 0x487ba7
push edx
push dword [ebp - 0x802c]
call ecx
mov ecx, dword [ebp - 0x8030]
add esp, 8
mov eax, dword [ebp - 0x8038]
push eax
push dword [ebp - 0x802c]
call ecx
add esp, 8
mov dword [ebp - 0x8038], 0
jmp 0x487bd9
mov edi, 0xfffffffd
jmp 0x487b74
lea ecx, [ebp - 0x8054]
call fcn.004894e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x487bfb
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x487bfb
push esi
call eax
mov dword [ebp - 0x801c], 0xffffffff
mov eax, edi
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.004996ca
mov esp, ebp
pop ebp
ret 8