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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5210b0]
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.00403ed0
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.0045c300
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 0x47d0fd
call edi
test eax, eax
jne 0x47d11a
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 0x47d11a
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47d130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x5210b0]
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.00403ed0
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.0045c540
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 0x47d1db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47d1fc
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 0x47d1fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x480050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5210b0]
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.00403ed0
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.0045c300
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 0x4800fb
call edi
test eax, eax
jne 0x480118
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 0x480118
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x480130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x5210b0]
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.00403ed0
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.0045c540
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 0x4801d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4801f4
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 0x4801f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x480210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf518
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5210b0]
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.00461cb0
test eax, eax
jns 0x480297
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.0040b370
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.00468ca0
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 0x480324
call esi
test eax, eax
jne 0x48033f
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 0x48033f
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.0049c22a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x489360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d19eb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5210b0]
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.00406d90
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00489100
add eax, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4893b3
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.00404740
cmp byte [0x52753e], 0
jne 0x48945e
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 0x489434
cmp dword [ebp - 0x74], 2
jne 0x489434
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x52753e], al
jmp 0x489439
mov al, byte [0x52753e]
test al, al
jne 0x489457
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 [0x52753e], 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 0x4894a8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4894a8
push esi
call eax
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00404740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret
Function at 0x489d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1c6b
mov eax, dword fs:[0]
push eax
mov eax, 0x804c
call fcn.0049d600
mov eax, dword [0x5210b0]
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.0048a1a0
add esp, 8
test eax, eax
jne 0x489fb6
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x489e1b
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 0x489fb0
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.0043fd70
test eax, eax
je 0x489fa5
cmp dword [ebp - 0x8054], 0
je 0x489f2e
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x8058], eax
jmp 0x489ea0
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8048], 0x4000
lea ecx, [ebp - 0x8058]
mov dword [ebp - 0x804c], eax
call fcn.0048a330
mov edi, eax
cmp edi, 2
je 0x489f93
cmp edi, 0xfffffffb
jbe 0x489eda
cmp edi, 0xfffffffd
jbe 0x489f98
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 0x489f7e
cmp dword [ebp - 0x8014], ebx
jne 0x489f6e
cmp dword [ebp - 0x8048], 0
je 0x489ea0
cmp edi, 1
jne 0x489e50
lea ecx, [ebp - 0x8058]
call fcn.0048bb10
mov ebx, dword [ebp - 0x8018]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp edi, 1
jne 0x489f64
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 0x489fb8
lea ecx, [ebp - 0x8058]
or edi, 0xffffffff
call fcn.0048bb10
jmp 0x489fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x8058]
mov edi, eax
call fcn.0048bb10
jmp 0x489fb8
mov edi, 0xfffffffd
lea ecx, [ebp - 0x8058]
call fcn.0048bb10
jmp 0x489fb8
lea ecx, [ebp - 0x8058]
call fcn.0048bb10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x489fda
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x489fda
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.0049c22a
mov esp, ebp
pop ebp
ret 8
Function at 0x48d790
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x48d79b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0048d7b0
Function at 0x49032b
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4d1d73
call fcn.0049cba1
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 0x4903a3
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f2e0
push 0x51e228
lea eax, [ebp - 0x90]
push eax
call fcn.0049e36a
mov eax, dword [ebp - 0x94]
call fcn.0049cb4b
ret 8

Function at 0x4906fe
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 0x49078f
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 0x490786
test esi, esi
je 0x490786
mov ecx, dword [edi]
test ecx, ecx
je 0x490781
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x490777
cmp eax, 2
jbe 0x490769
cmp eax, 7
jne 0x490777
test cl, 1
jne 0x490777
shr ecx, 1
cmp ecx, 1
jb 0x490777
cmp word [esi + ecx*2 - 2], bx
jne 0x490777
cmp ecx, 1
jbe 0x490786
cmp word [esi + ecx*2 - 4], bx
jmp 0x490775
test cl, 1
jne 0x490777
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x490786
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x490788
xor eax, eax
mov word [esi], ax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0040b2d0
int3

Function at 0x490814
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x490869
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x490835
cmp eax, 0xffffffff
jne 0x490844
push 0x57
pop eax
jmp 0x490863
cmp eax, 0xffffffff
jne 0x490844
push dword [ebp + 8]
call fcn.004a54d3
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.0040b2d0
int3
Function at 0x491632
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4d2fe7
call fcn.0049cb6d
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x49165e
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 0x4916ab
push 0x80
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov edi, 0x4e1680
mov esi, 0x4e1670
mov dword [ebp + 0x38], ecx
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00406f90
call fcn.00495173
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.00406f90
call fcn.004915b1
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00404be0
mov al, bl
call fcn.0049cb36
ret
Function at 0x4916bb
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4d1f05
call fcn.0049cba1
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x49171f
lea ecx, [ebp + 8]
call fcn.0042b410
test al, al
je 0x49171f
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], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
call fcn.004918b0
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00404be0
mov al, bl
jmp 0x4918aa
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
call fcn.00492636
add esp, 0x30
cmp eax, 0xffffffff
je 0x491766
test byte [ebp + 0x38], 4
je 0x491758
test al, 0x10
je 0x491762
test byte [ebp + 0x38], 8
je 0x491710
test al, 0x10
je 0x491710
mov bl, 1
jmp 0x491710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4918a0
cmp esi, 3
je 0x4918a0
cmp esi, 5
jne 0x491854
lea ecx, [ebp - 0xcc]
call fcn.00490407
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], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
call fcn.004923c1
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x49182b
lea ecx, [ebp - 0xd0]
call fcn.00411730
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x4917f7
test byte [ebp - 0xcc], 0x10
je 0x491806
test byte [ebp + 0x38], 8
je 0x491808
test byte [ebp - 0xcc], 0x10
je 0x491808
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00411730
lea ecx, [ebp - 0x70]
call fcn.00404be0
lea ecx, [ebp - 0xa0]
call fcn.00404be0
jmp 0x491710
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00411730
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00404be0
lea ecx, [ebp - 0xa0]
call fcn.00404be0
test byte [ebp + 0x38], 0x20
je 0x491710
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
push 1
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f3c0
push 0x51e228
lea eax, [ebp - 0x90]
push eax
call fcn.0049e36a
lea ecx, [ebp + 8]
call fcn.00404be0
xor al, al
call fcn.0049cb4b
ret
Function at 0x493445
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49347b
push 0x4d68b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49347b
call eax
jmp 0x493530
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 0x4934c5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4db368
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x493511
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 0x4934fe
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.00436580
test esi, esi
je 0x493511
mov esi, 0x409
jmp 0x493523
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004a3772
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x18]
call fcn.00436580
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret
Function at 0x494353
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4d2553
call fcn.0049cba1
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 0x4944b7
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x4944b7
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 0x49449b
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.0049e210
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 0x49449b
cmp dword [ebp - 0x494], 0
je 0x49449b
lea ecx, [ebp - 0x444]
call fcn.00490485
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x43c]
push 0x4db368
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00404100
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
call fcn.0049044d
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.0049013d
lea ecx, [ebp - 0x474]
call fcn.00404be0
lea ecx, [ebp - 0x440]
call fcn.00404be0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.004117a0
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x4943b2
call fcn.0049cb4b
ret

Function at 0x49462e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0049391b
test al, al
je 0x49469d
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 0x49469d
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.0049c22a
mov esp, ebp
pop ebp
ret