joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e760
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e797
test al, 3
je 0x45e787
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
jne 0x45e797
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x45e7a0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e800
test al, 3
je 0x45e7c8
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
jne 0x45e800
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e7eb
test al, 3
je 0x45e7eb
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
jne 0x45e800
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, 1
pop edi
sete al
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x45eea0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45efe5
call fcn.00480170
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45efcd
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push str.StringFileInfo040904b0OriginalFilename
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45efcd
mov ecx, dword [ebp + 0xc]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45ef15
sub edx, esi
mov esi, dword [ebp - 8]
sar edx, 1
lea eax, [edx + 1]
cmp esi, eax
jne 0x45efcd
mov edx, dword [ebp - 0xc]
add esi, esi
sub esi, 4
jb 0x45ef51
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x45ef56
add edx, 4
add ecx, 4
sub esi, 4
jae 0x45ef40
cmp esi, 0xfffffffc
je 0x45ef83
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45efcd
cmp esi, 0xfffffffd
je 0x45ef83
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45efcd
cmp esi, 0xfffffffe
je 0x45ef83
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45efcd
cmp esi, 0xffffffff
je 0x45ef83
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x45efcd
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5b1814
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45efcd
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45efcd
cmp dword [ebp - 8], 0x34
jb 0x45efcd
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [eax + 8]
or ecx, esi
mov byte [ebp - 1], 1
mov dword [edx], 0
mov dword [edx + 4], esi
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.00480170
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4608c0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x460929
and dword [ebp - 0x48], 0xff0fffff
push str.m_hService__NULL
mov byte [ebp - 0x45], al
and dword [ebp - 0x48], 0xfff00000
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
push 1
push 1
push 1
push 4
push 0
push 0
mov dword [ebp - 0x30], 3
call fcn.0045e5e0
add esp, 0x20
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460947
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x46099f
cmp eax, 4
je 0x46099f
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor esi, esi
push esi
push esi
push dword [ebx + 4]
call edi
test eax, eax
jne 0x460999
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x460999
cmp eax, 0x41d
je 0x460999
cmp eax, 0x41f
jne 0x4609e6
cmp esi, 5
je 0x4609e6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [ebx + 4]
inc esi
call edi
test eax, eax
je 0x460960
cmp byte [ebp + 8], 0
jne 0x4609aa
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4609f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.0045ac20
push esi
push str.Failed_to_query_service__GLE__u_
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e5e0
add esp, 0x24
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp ecx, 4
je 0x460a85
jmp 0x460a10
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 4]
shr edx, 3
cmp edx, 0x3e8
jae 0x460a2f
mov edx, 0x3e8
jmp 0x460a38
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460a7f
cmp dword [ebp - 8], edi
jbe 0x460a5f
call esi
mov edi, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x460a69
call esi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
ja 0x460a7f
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
jne 0x460a10
pop edi
cmp ecx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x460aa0
Capabilities:
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x460b89
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460acf
cmp dword [ebp - 0x18], 1
je 0x460b7e
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne al
cmp byte [ebp + 8], 0
je 0x460b8b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x32
xor eax, eax
dec esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [ebp - 0x3c], 1
je 0x460b7e
push 0x64
call edi
test esi, esi
jg 0x460af8
cmp byte [ebp + 0xc], 0
je 0x460b89
test byte [ebp - 0x20], 1
jne 0x460b89
push dword [ebp - 0x24]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x460b89
push 0xf00d
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460ba0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590f75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x460c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x50], 0xff0fffff
xor ecx, ecx
push eax
push str.Failed_to_open_service_control_manager__GLE__u_
lea eax, [ebp - 0x54]
mov byte [ebp - 0x4d], 0
and dword [ebp - 0x50], 0xfff00000
push eax
push 1
push 1
push 1
push 4
push ecx
push ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call fcn.0045e5e0
add esp, 0x24
xor bl, bl
jmp 0x460cfa
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, 0x593544
mov dword [ebp - 0x18], 0x4000000
cmovne eax, ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00459950
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp byte [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
je 0x460c95
push dword [ebp - 0x24]
call fcn.0056baf4
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x460ca6
push dword [ebp - 0x20]
call fcn.0056baf4
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x460cb7
push dword [ebp - 0x1c]
call fcn.0056baf4
add esp, 4
test edi, edi
je 0x460cf8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x460cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.0045ac20
push esi
push str.Failed_to_delete_service__GLE__u_
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e5e0
mov esi, dword [ebp - 0x14]
add esp, 0x24
xor bl, bl
jmp 0x460cfa
mov bl, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x460d0b
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x460d12
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461df0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x5b2a68
push 1
push 0
push 0x5b2a58
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x461e92
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
push edi
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
je 0x461e6d
push 0x5b2abc
push 0xc0
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1_smartptr.h
call fcn.004774e0
add esp, 0xc
test al, al
jne 0x461e6d
int3
lea eax, [ebp - 0x10]
push eax
push esi
call edi
pop edi
test eax, eax
js 0x461e92
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x461e92
cmp dword [esi], 0
setne bl
jmp 0x461e94
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x461eac
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 5
test eax, eax
je 0x461ec7
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4626a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push 0x103
lea eax, [ebp - 0x23b]
mov byte [ebp - 0x23c], 0
push 0
push eax
call fcn.0056d4c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0xc], 0
xor bl, bl
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x46283a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x462831
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x462831
push edi
xor edi, edi
test eax, eax
je 0x462830
mov edi, edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x138]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x462812
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 8
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4627fc
push eax
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.SymbolicLinkValue
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4627f6
cmp dword [ebp - 0x10], 6
je 0x46282e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
call fcn.004626a0
add esp, 8
test al, al
jne 0x46282e
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x462780
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59113d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x11], 0xf
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jg 0x462e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__1__res__d_GLE__d
push 0xec9
push str.C:_buildworker_steam_rel_client_win32_build_srccommonwindowshelper.cpp
call fcn.004774f0
add esp, 0x14
test al, al
jne 0x462f10
int3
mov al, byte [ebp - 0x11]
push edi
mov edi, 0xf
test al, al
jns 0x462e2d
mov ecx, dword [ebp - 0x1c]
jmp 0x462e34
movzx eax, al
mov ecx, edi
sub ecx, eax
push esi
push 1
push ecx
lea ecx, [ebp - 0x20]
call fcn.00463e40
mov al, byte [ebp - 0x11]
mov esi, edi
test al, al
cmovs esi, dword [ebp - 0x18]
jns 0x462e86
test al, 0x40
je 0x462e70
push str._m_data.HasError__
push 0x39d
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlstring.h
call fcn.004774e0
add esp, 0xc
test al, al
jne 0x462e6d
int3
mov al, byte [ebp - 0x11]
test al, al
jns 0x462e86
test al, 0x40
jne 0x462e82
test al, al
jns 0x462e86
cmp dword [ebp - 0x18], 0
jne 0x462e86
xor ecx, ecx
jmp 0x462e8f
test al, al
lea ecx, [ebp - 0x20]
cmovs ecx, dword [ebp - 0x20]
push esi
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jle 0x462eba
cmp byte [ebp - 0x11], 0
cmovl edi, dword [ebp - 0x18]
cmp esi, edi
ja 0x462eba
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x20]
call fcn.0046b350
jmp 0x462f0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__2__res__d_GLE__d
push 0xed5
push str.C:_buildworker_steam_rel_client_win32_build_srccommonwindowshelper.cpp
call fcn.004774f0
add esp, 0x14
test al, al
jne 0x462ede
int3
mov al, byte [ebp - 0x11]
test al, al
jns 0x462f00
test al, 0x40
jne 0x462f0f
test al, al
jns 0x462f00
call fcn.00480170
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x11], 0xf
pop edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
call fcn.0046ab20
cmp byte [ebp - 0x11], 0
mov dword [ebp - 4], 1
jge 0x462f3a
call fcn.00480170
push 0
push dword [ebp - 0x20]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x462f50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x462f71
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
xor esi, esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x462fcc
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00579a81
add esp, 8
test eax, eax
jne 0x462fb6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x120]
mov dword [ecx + esi*4], eax
inc esi
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x462fcb
cmp esi, ebx
jl 0x462f93
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x463df0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x90
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0056d4c0
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
seta al
mov esp, ebp
pop ebp
ret

Function at 0x463ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x463f9e
mov word [ebp - 0x404], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp + 0xc], 0
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464018
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x463f20
cmp eax, 2
jne 0x463fd1
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x464011
mov eax, esi
mov ecx, 2
shr eax, 1
or edi, 0xffffffff
inc eax
mul ecx
cmovb eax, edi
push eax
call fcn.0056baeb
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
xor edx, edx
shr ecx, 1
mov word [edi + ecx*2], dx
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x463f85
cmp ecx, 2
jne 0x463fc8
cmp eax, 0xea
jne 0x463fdc
push edi
call fcn.0056baf4
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x463f26
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x463edb
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.0056baf4
add esp, 4
pop edi
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret
push 0xa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0046db10
push edi
mov esi, eax
call fcn.0056baf4
add esp, 0x14
test esi, esi
jne 0x463ffe
cmp word [edi], si
jne 0x463fd1
xor eax, eax
mov ecx, 0xea
cmp esi, dword [ebp + 0x14]
pop edi
cmovg eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xe
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5907bd
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
push edi
test eax, eax
jne 0x464100
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov edi, 0x593544
test eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmovne edi, eax
mov dword [ebp - 0x10], 0x4000100
mov dword [ebp - 0x1c], edi
push 4
push 0
push 0
push edi
mov dword [ebp - 4], 0
call fcn.0046dcd0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056baeb
push 0
mov ebx, eax
push esi
push ebx
push edi
call fcn.0046dcd0
mov ecx, ebx
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4640b6
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push 1
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0056baf4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x464053
mov ecx, dword [ebp - 0xc]
mov eax, 0x57
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4641d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4641e0
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
not eax
test edi, edi
je 0x464222
lea ecx, [ecx]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x5b3428]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x5b3428]
sub edi, 1
jne 0x4641f0
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x4649c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x464aa0
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x464aa0
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ecx + 0x10]
jae 0x464aa0
cmp dword [ecx + 0x14], 1
jne 0x464aa0
mov eax, dword [edx + 0x10]
mov edi, dword [eax + ebx*4]
add edi, dword [edx]
je 0x464aa0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x464aa0
mov dword [esi], ebx
mov eax, dword [ecx + 0x38]
push 0
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
movzx eax, word [edi + 4]
mov word [esi + 8], ax
movzx eax, word [edi + 6]
mov word [esi + 0xa], ax
movzx eax, word [edi + 8]
mov word [esi + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [esi + 0xe], ax
movzx eax, word [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
call fcn.00464230
mov dword [esi + 0x10], eax
add esp, 0xc
mov eax, dword [edi + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
movzx eax, word [edi + 0x24]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x26]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2a]
pop edi
mov dword [esi + 0x30], eax
mov eax, 1
mov dword [esi + 0x34], 0
mov byte [esi + 0x3c], 0
mov byte [esi + 0x140], 0
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret