joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4e98
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], 0x4e7a18
mov dword [ebp - 0x34], 0x4e86a8
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.00461290
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 0x47f23e
call edi
test eax, eax
jne 0x47f259
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 0x47f259
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.004a0eca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x481f00
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.00461050
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 0x481fad
call edi
test eax, eax
jne 0x481fca
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 0x481fca
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x481fe0
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.00461290
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 0x48208b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4820ac
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 0x4820ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x484f00
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.00461050
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 0x484fab
call edi
test eax, eax
jne 0x484fc8
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 0x484fc8
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x484fe0
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.00461290
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 0x485083
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4850a4
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 0x4850a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4850c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6808
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.00466a60
test eax, eax
jns 0x485147
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.0046db40
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 0x4851d4
call esi
test eax, eax
jne 0x4851ef
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 0x4851ef
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.004a0eca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48e1c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8cdb
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.0048df60
add eax, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48e213
mov eax, dword [eax]
push 0
push pe_nt_image_headers32
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 [0x530562], 0
jne 0x48e2be
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 0x48e294
cmp dword [ebp - 0x74], 2
jne 0x48e294
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x530562], al
jmp 0x48e299
mov al, byte [0x530562]
test al, al
jne 0x48e2b7
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 [0x530562], 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 0x48e308
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48e308
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.004a0eca
mov esp, ebp
pop ebp
ret
Function at 0x48ebf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f5b
mov eax, dword fs:[0]
push eax
mov eax, 0x804c
call fcn.004a22e0
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.0048f000
add esp, 8
test eax, eax
jne 0x48ee16
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x48ec7b
mov eax, dword [eax]
push 0
push pe_nt_image_headers32
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 0x48ee10
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.00443fe0
test eax, eax
je 0x48ee05
cmp dword [ebp - 0x8054], 0
je 0x48ed8e
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x8058], eax
jmp 0x48ed00
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8048], 0x4000
lea ecx, [ebp - 0x8058]
mov dword [ebp - 0x804c], eax
call fcn.0048f190
mov edi, eax
cmp edi, 2
je 0x48edf3
cmp edi, 0xfffffffb
jbe 0x48ed3a
cmp edi, 0xfffffffd
jbe 0x48edf8
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 0x48edde
cmp dword [ebp - 0x8014], ebx
jne 0x48edce
cmp dword [ebp - 0x8048], 0
je 0x48ed00
cmp edi, 1
jne 0x48ecb0
lea ecx, [ebp - 0x8058]
call fcn.00490970
mov ebx, dword [ebp - 0x8018]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp edi, 1
jne 0x48edc4
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 0x48ee18
lea ecx, [ebp - 0x8058]
or edi, 0xffffffff
call fcn.00490970
jmp 0x48ee18
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8058]
mov edi, eax
call fcn.00490970
jmp 0x48ee18
mov edi, 0xfffffffd
lea ecx, [ebp - 0x8058]
call fcn.00490970
jmp 0x48ee18
lea ecx, [ebp - 0x8058]
call fcn.00490970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x48ee3a
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48ee3a
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.004a0eca
mov esp, ebp
pop ebp
ret 8
Function at 0x4925f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4925fb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00492610
Function at 0x4950ab
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4d9063
call fcn.004a185e
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 0x495123
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x5271e0
lea eax, [ebp - 0x90]
push eax
call fcn.004a304a
mov eax, dword [ebp - 0x94]
call fcn.004a1808
ret 8

Function at 0x49547e
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 0x49550f
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 0x495506
test esi, esi
je 0x495506
mov ecx, dword [edi]
test ecx, ecx
je 0x495501
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4954f7
cmp eax, 2
jbe 0x4954e9
cmp eax, 7
jne 0x4954f7
test cl, 1
jne 0x4954f7
shr ecx, 1
cmp ecx, 1
jb 0x4954f7
cmp word [esi + ecx*2 - 2], bx
jne 0x4954f7
cmp ecx, 1
jbe 0x495506
cmp word [esi + ecx*2 - 4], bx
jmp 0x4954f5
test cl, 1
jne 0x4954f7
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x495506
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x495508
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 0x495594
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x4955e9
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x4955b5
cmp eax, 0xffffffff
jne 0x4955c4
push 0x57
pop eax
jmp 0x4955e3
cmp eax, 0xffffffff
jne 0x4955c4
push dword [ebp + 8]
call fcn.004aa564
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 0x49643c
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4d91d7
call fcn.004a182a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x496468
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 0x4964b5
push pe_nt_image_headers32
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov edi, 0x4e7a18
mov esi, 0x4e86a8
mov dword [ebp + 0x38], ecx
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00406fd0
call fcn.00499ea4
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.004963bb
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
call fcn.004a17f3
ret
Function at 0x4964c5
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4d9218
call fcn.004a185e
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x496529
lea ecx, [ebp + 8]
call fcn.0042cb40
test al, al
je 0x496529
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
call fcn.004966ba
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
jmp 0x4966b4
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
call fcn.00497440
add esp, 0x30
cmp eax, 0xffffffff
je 0x496570
test byte [ebp + 0x38], 4
je 0x496562
test al, 0x10
je 0x49656c
test byte [ebp + 0x38], 8
je 0x49651a
test al, 0x10
je 0x49651a
mov bl, 1
jmp 0x49651a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4966aa
cmp esi, 3
je 0x4966aa
cmp esi, 5
jne 0x49665e
lea ecx, [ebp - 0xcc]
call fcn.00495187
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
push eax
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd4], ecx
push ebx
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
call fcn.004971cb
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x496635
lea ecx, [ebp - 0xd0]
call fcn.00411790
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x496601
test byte [ebp - 0xcc], 0x10
je 0x496610
test byte [ebp + 0x38], 8
je 0x496612
test byte [ebp - 0xcc], 0x10
je 0x496612
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00411790
lea ecx, [ebp - 0x70]
call fcn.00404c20
lea ecx, [ebp - 0xa0]
call fcn.00404c20
jmp 0x49651a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00411790
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00404c20
lea ecx, [ebp - 0xa0]
call fcn.00404c20
test byte [ebp + 0x38], 0x20
je 0x49651a
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x40], 0x4e7a18
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406fd0
push 1
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f420
push 0x5271e0
lea eax, [ebp - 0x90]
push eax
call fcn.004a304a
lea ecx, [ebp + 8]
call fcn.00404c20
xor al, al
call fcn.004a1808
ret
Function at 0x49824f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x498285
push 0x4dd8d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x498285
call eax
jmp 0x49833a
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x1c], 0xa
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysFreeString
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
jne 0x4982cf
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4e2398
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49831b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysFreeString
call esi
mov esi, eax
test esi, esi
jne 0x498308
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00438c50
test esi, esi
je 0x49831b
mov esi, 0x409
jmp 0x49832d
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004a8447
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x18]
call fcn.00438c50
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0eca
mov esp, ebp
pop ebp
ret