joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4ce3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52a0b0]
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.0047d750
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 0x47cf30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4ce3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52a0b0]
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.0047d750
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 0x47d170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x47d1f2
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 0x47d1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x30]
mov byte [esi + 0x2c], 0
test eax, eax
je 0x47d1f2
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.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x47dff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 0
jne 0x47e005
mov eax, 0x57
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
jb 0x47e013
mov eax, dword [esi]
jmp 0x47e015
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47e02a
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x47e039
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 0x47e06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
je 0x47e0ee
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x47e07f
cmp eax, 5
jne 0x47e0ee
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 0x47e0b4
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 0x47e09c
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test eax, eax
je 0x47e09c
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 0x47f3f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d54e8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x52a0b0]
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], 0x4e81b4
mov dword [ebp - 0x34], 0x4e8f38
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.00403f10
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.00461560
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00404c20
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 0x47f51e
call edi
test eax, eax
jne 0x47f539
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 0x47f539
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.004a14ba
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4821e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x52a0b0]
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 esi, dword [edi + 8]
call fcn.00403f10
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 8]
push dword [eax]
lea eax, [esi + 0x20]
neg esi
sbb esi, esi
add ecx, 0x14
and esi, eax
push esi
call fcn.00461320
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 0x48228d
call edi
test eax, eax
jne 0x4822aa
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 0x4822aa
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4822c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x52a0b0]
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.00403f10
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.00461560
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 0x48236b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48238c
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 0x48238c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4851d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x52a0b0]
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 esi, dword [edi + 8]
call fcn.00403f10
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 8]
push dword [eax]
lea eax, [esi + 0x20]
neg esi
sbb esi, esi
add ecx, 0x14
and esi, eax
push esi
call fcn.00461320
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 0x48527b
call edi
test eax, eax
jne 0x485298
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 0x485298
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4852b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x52a0b0]
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.00403f10
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.00461560
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 0x485353
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x485374
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 0x485374
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 0x14
Function at 0x485390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6e58
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52a0b0]
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 ebx, ecx
mov edi, 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.00466d30
test eax, eax
jns 0x485417
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.0040b3b0
add esp, 0xc
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x48]
sub esp, 0x10
mov ecx, esp
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
mov ecx, edx
neg ecx
lea eax, [edx + 0x20]
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [edx + 0x14]
call fcn.0046de10
mov ecx, dword [ebp - 0x30]
mov ebx, eax
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push eax
push dword [edi + 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 0x4854a4
call esi
test eax, eax
jne 0x4854bf
push 0
lea eax, [ebp - 0x34]
push eax
push 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4854bf
call esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
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.004a14ba
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48e480
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d932b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x52a0b0]
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.00406dd0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0048e220
add eax, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48e4d3
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.00404780
cmp byte [0x530566], 0
jne 0x48e57e
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 0x48e554
cmp dword [ebp - 0x74], 2
jne 0x48e554
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x530566], al
jmp 0x48e559
mov al, byte [0x530566]
test al, al
jne 0x48e577
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 [0x530566], 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 0x48e5c8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48e5c8
push esi
call eax
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00404780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x48eeb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d95ab
mov eax, dword fs:[0]
push eax
mov eax, 0x804c
call fcn.004a2890
mov eax, dword [0x52a0b0]
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 - 0x801c], ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
xor edi, edi
mov dword [ebp - 0x8020], esi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x8058]
sub esp, 8
mov dword [ebp - 0x8038], edi
mov dword [ebp - 0x8034], edi
mov dword [ebp - 0x8030], edi
mov dword [ebp - 0x8054], edi
mov dword [ebp - 0x8058], edi
call fcn.0048f2c0
add esp, 8
test eax, eax
jne 0x48f0d6
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x48ef3b
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 ebx, eax
mov dword [ebp - 0x8018], ebx
cmp ebx, 0xffffffff
je 0x48f0d0
mov esi, ebx
mov dword [ebp - 0x8020], esi
lea ecx, [ecx]
mov eax, dword [ebp - 0x801c]
push dword [eax + 4]
lea eax, [ebp - 0x8054]
push eax
push 0x4000
lea eax, [ebp - 0x4010]
push eax
call fcn.00444240
test eax, eax
je 0x48f0c5
cmp dword [ebp - 0x8054], 0
je 0x48f04e
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x8058], eax
jmp 0x48efc0
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8048], 0x4000
lea ecx, [ebp - 0x8058]
mov dword [ebp - 0x804c], eax
call fcn.0048f450
mov edi, eax
cmp edi, 2
je 0x48f0b3
cmp edi, 0xfffffffb
jbe 0x48effa
cmp edi, 0xfffffffd
jbe 0x48f0b8
push 0
lea eax, [ebp - 0x8014]
mov dword [ebp - 0x8014], 0
push eax
mov ebx, 0x4000
lea eax, [ebp - 0x8010]
sub ebx, dword [ebp - 0x8048]
push ebx
push eax
push dword [ebp - 0x8018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48f09e
cmp dword [ebp - 0x8014], ebx
jne 0x48f08e
cmp dword [ebp - 0x8048], 0
je 0x48efc0
cmp edi, 1
jne 0x48ef70
lea ecx, [ebp - 0x8058]
call fcn.00490be0
mov ebx, dword [ebp - 0x8018]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp edi, 1
jne 0x48f084
mov ecx, dword [ebp - 0x801c]
lea eax, [ecx + 8]
push eax
lea eax, [ecx + 0x18]
push eax
lea eax, [ecx + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffd
jmp 0x48f0d8
lea ecx, [ebp - 0x8058]
or edi, 0xffffffff
call fcn.00490be0
jmp 0x48f0d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8058]
mov edi, eax
call fcn.00490be0
jmp 0x48f0d8
mov edi, 0xfffffffd
lea ecx, [ebp - 0x8058]
call fcn.00490be0
jmp 0x48f0d8
lea ecx, [ebp - 0x8058]
call fcn.00490be0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x48f0fa
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48f0fa
push esi
call eax
mov dword [ebp - 0x8020], 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.004a14ba
mov esp, ebp
pop ebp
ret 8
Function at 0x4955c8
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4d96b3
call fcn.004a1e4e
mov esi, ecx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x94]
push 0
push eax
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0xffffffff
cmovne eax, dword [ebp + 0xc]
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x495640
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x527bb8
lea eax, [ebp - 0x90]
push eax
call fcn.004a35fa
mov eax, dword [ebp - 0x94]
call fcn.004a1df8
ret 8

Function at 0x49599b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x495a2c
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x495a23
test esi, esi
je 0x495a23
mov ecx, dword [edi]
test ecx, ecx
je 0x495a1e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x495a14
cmp eax, 2
jbe 0x495a06
cmp eax, 7
jne 0x495a14
test cl, 1
jne 0x495a14
shr ecx, 1
cmp ecx, 1
jb 0x495a14
cmp word [esi + ecx*2 - 2], bx
jne 0x495a14
cmp ecx, 1
jbe 0x495a23
cmp word [esi + ecx*2 - 4], bx
jmp 0x495a12
test cl, 1
jne 0x495a14
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x495a23
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x495a25
xor eax, eax
mov word [esi], ax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0040b310
int3

Function at 0x495ab1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x495b06
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x495ad2
cmp eax, 0xffffffff
jne 0x495ae1
push 0x57
pop eax
jmp 0x495b00
cmp eax, 0xffffffff
jne 0x495ae1
push dword [ebp + 8]
call fcn.004aaae4
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.0040b310
int3
Function at 0x49695c
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4da899
call fcn.004a1e1a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x496988
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x4969d5
push 0x80
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov edi, 0x4e81b4
mov esi, 0x4e8f38
mov dword [ebp + 0x38], ecx
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00406fd0
call fcn.0049a495
pop ecx
mov ecx, esp
lea eax, [ebp + 8]
push ebx
push eax
mov dword [ebp + 0x38], ecx
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00406fd0
call fcn.004968db
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
call fcn.004a1de3
ret