joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484f70
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.004610b0
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 0x48501b
call edi
test eax, eax
jne 0x485038
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 0x485038
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x485050
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.004612f0
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 0x4850f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x485114
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 0x485114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x485130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6948
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.00466ac0
test eax, eax
jns 0x4851b7
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.0046dbb0
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 0x485244
call esi
test eax, eax
jne 0x48525f
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 0x48525f
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.004a103a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48e210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e1b
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.0048dfb0
add eax, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48e263
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 0x48e30e
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 0x48e2e4
cmp dword [ebp - 0x74], 2
jne 0x48e2e4
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x530566], al
jmp 0x48e2e9
mov al, byte [0x530566]
test al, al
jne 0x48e307
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 0x48e358
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48e358
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.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x48ec40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d909b
mov eax, dword fs:[0]
push eax
mov eax, 0x804c
call fcn.004a23f0
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.0048f050
add esp, 8
test eax, eax
jne 0x48ee66
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x48eccb
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 0x48ee60
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 0x48ee55
cmp dword [ebp - 0x8054], 0
je 0x48edde
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x8058], eax
jmp 0x48ed50
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8048], 0x4000
lea ecx, [ebp - 0x8058]
mov dword [ebp - 0x804c], eax
call fcn.0048f1e0
mov edi, eax
cmp edi, 2
je 0x48ee43
cmp edi, 0xfffffffb
jbe 0x48ed8a
cmp edi, 0xfffffffd
jbe 0x48ee48
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 0x48ee2e
cmp dword [ebp - 0x8014], ebx
jne 0x48ee1e
cmp dword [ebp - 0x8048], 0
je 0x48ed50
cmp edi, 1
jne 0x48ed00
lea ecx, [ebp - 0x8058]
call fcn.004909c0
mov ebx, dword [ebp - 0x8018]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp edi, 1
jne 0x48ee14
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 0x48ee68
lea ecx, [ebp - 0x8058]
or edi, 0xffffffff
call fcn.004909c0
jmp 0x48ee68
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8058]
mov edi, eax
call fcn.004909c0
jmp 0x48ee68
mov edi, 0xfffffffd
lea ecx, [ebp - 0x8058]
call fcn.004909c0
jmp 0x48ee68
lea ecx, [ebp - 0x8058]
call fcn.004909c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x48ee8a
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48ee8a
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.004a103a
mov esp, ebp
pop ebp
ret 8
Function at 0x492640
Capabilities:
Hash data with crc32

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

Disassembly:
push 0x88
mov eax, 0x4d91a3
call fcn.004a19ce
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 0x4951bd
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406fd0
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x527208
lea eax, [ebp - 0x90]
push eax
call fcn.004a315a
mov eax, dword [ebp - 0x94]
call fcn.004a1978
ret 8

Function at 0x4954d4
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 0x495565
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 0x49555c
test esi, esi
je 0x49555c
mov ecx, dword [edi]
test ecx, ecx
je 0x495557
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49554d
cmp eax, 2
jbe 0x49553f
cmp eax, 7
jne 0x49554d
test cl, 1
jne 0x49554d
shr ecx, 1
cmp ecx, 1
jb 0x49554d
cmp word [esi + ecx*2 - 2], bx
jne 0x49554d
cmp ecx, 1
jbe 0x49555c
cmp word [esi + ecx*2 - 4], bx
jmp 0x49554b
test cl, 1
jne 0x49554d
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x49555c
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x49555e
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 0x4955ea
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x49563f
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x49560b
cmp eax, 0xffffffff
jne 0x49561a
push 0x57
pop eax
jmp 0x495639
cmp eax, 0xffffffff
jne 0x49561a
push dword [ebp + 8]
call fcn.004aa644
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 0x496492
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4da3ef
call fcn.004a199a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x4964be
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 0x49650b
push 0x80
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov edi, 0x4e7908
mov esi, 0x4e793c
mov dword [ebp + 0x38], ecx
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00406fd0
call fcn.00499fcb
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.00496411
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
call fcn.004a1963
ret
Function at 0x49651b
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4d9350
call fcn.004a19ce
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x49657f
lea ecx, [ebp + 8]
call fcn.0042cb40
test al, al
je 0x49657f
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
call fcn.00496710
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
jmp 0x49670a
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
call fcn.00497496
add esp, 0x30
cmp eax, 0xffffffff
je 0x4965c6
test byte [ebp + 0x38], 4
je 0x4965b8
test al, 0x10
je 0x4965c2
test byte [ebp + 0x38], 8
je 0x496570
test al, 0x10
je 0x496570
mov bl, 1
jmp 0x496570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x496700
cmp esi, 3
je 0x496700
cmp esi, 5
jne 0x4966b4
lea ecx, [ebp - 0xcc]
call fcn.00495221
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
call fcn.00497221
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x49668b
lea ecx, [ebp - 0xd0]
call fcn.00411790
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x496657
test byte [ebp - 0xcc], 0x10
je 0x496666
test byte [ebp + 0x38], 8
je 0x496668
test byte [ebp - 0xcc], 0x10
je 0x496668
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 0x496570
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 0x496570
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
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 0x527208
lea eax, [ebp - 0x90]
push eax
call fcn.004a315a
lea ecx, [ebp + 8]
call fcn.00404c20
xor al, al
call fcn.004a1978
ret
Function at 0x4982a5
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 0x4982db
push 0x4dd8d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4982db
call eax
jmp 0x498390
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 0x498325
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4e23a8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x498371
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 0x49835e
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 0x498371
mov esi, 0x409
jmp 0x498383
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004a8527
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.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x4991ab
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4d994b
call fcn.004a19ce
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x49930f
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x49930f
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4992f3
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004a3000
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x4992f3
cmp dword [ebp - 0x494], 0
je 0x4992f3
lea ecx, [ebp - 0x444]
call fcn.0049529f
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x43c]
push 0x4e23a8
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00404140
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
call fcn.00495267
push dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
push 0
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
call fcn.00494f57
lea ecx, [ebp - 0x474]
call fcn.00404c20
lea ecx, [ebp - 0x440]
call fcn.00404c20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00411800
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x49920a
call fcn.004a1978
ret

Function at 0x499486
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0049877b
test al, al
je 0x4994f5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4994f5
push esi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x499a72
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.00413a60
mov esi, eax
test esi, esi
jne 0x499abe
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x52f8c4], esi
call fcn.00413b10
lea ecx, [ebp + 0xc]
call fcn.00404c20
lea ecx, [ebp + 0x3c]
call fcn.00404c20
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x499b37
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x4d9aaa
call fcn.004a19ce
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp dword [ebp + 0x24], 8
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x40]
cmovae ecx, dword [ebp + 0x10]
or eax, 0x20019
push eax
push ecx
push edx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00413a60
mov esi, eax
test esi, esi
jne 0x499c14
push 0
lea eax, [ebp - 0x41]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404a90
mov eax, 0x105
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x64]
push eax
call fcn.00409470
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00403f10
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push dword [eax]
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
call fcn.00409a90
cmp dword [ebp - 0x48], 0
jne 0x499bfd
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0040c2b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404c20
inc edi
cmp dword [ebp - 0x48], 0
je 0x499b83
lea ecx, [ebp - 0x58]
mov dword [0x52f8c4], esi
call fcn.00413b10
lea ecx, [ebp + 0xc]
call fcn.00404c20
test esi, esi
sete al
call fcn.004a1978
ret

Function at 0x499c35
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x499c67
xor al, al
jmp 0x499c80
cmp dword [ebp - 0x108], 2
jne 0x499c7e
cmp dword [ebp - 0x114], 5
jb 0x499c7e
xor eax, eax
inc eax
jmp 0x499c80
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret