joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4558d0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x84]
push eax
call fcn.00455630
mov dword [ebp - 4], 0
cmp dword [ebp - 0x70], 0
jne 0x4559bf
mov esi, dword [0x51649c]
test esi, esi
je 0x45592e
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x88]
mov eax, dword [ecx]
push edx
call dword [eax + 0x6c]
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455960
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00454eb0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x88]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45599d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4559bf
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4559bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4559bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x6c], 7
lea edi, [ebp - 0x80]
push 0xf003f
cmova edi, dword [ebp - 0x80]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x455a38
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4559fb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x455a38
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x455a25
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x28]
push 1
push edi
call fcn.00462c60
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x50]
call fcn.00425dd0
lea ecx, [ebp - 0x68]
call fcn.00425dd0
lea ecx, [ebp - 0x80]
call fcn.00425dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret
Function at 0x458810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x458956
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004a15c0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x458866
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x458876
push esi
push 0x4e9080
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x84c], 0x44
push eax
lea eax, [ebp - 0x84c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x804]
movlpd qword [ebp - 0x848], xmm0
push eax
push 0
movlpd qword [ebp - 0x840], xmm0
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x830], xmm0
movlpd qword [ebp - 0x828], xmm0
movlpd qword [ebp - 0x820], xmm0
movlpd qword [ebp - 0x818], xmm0
movlpd qword [ebp - 0x810], xmm0
movups xmmword [ebp - 0x85c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458956
cmp dword [ebp + 0x10], 0
je 0x458929
push dword [ebp + 0x14]
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x85c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x858]
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45a230
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x5010c0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x45a29b
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x45a29b
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004a15c0
add esp, 0xc
mov dword [esp + 0x18], 0x22c
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x45a2b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.0045a320
nop dword [eax + eax]
push edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x45a2e1
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0045a720
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45a2c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 8
Function at 0x45c370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c380
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
and eax, 0x80004005
pop ebx
pop ebp
ret
Function at 0x45c3b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d37fb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5010c0]
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, dword [0x51649c]
mov edi, 0x80004005
mov dword [ebp - 0x94], 0
test esi, esi
je 0x45c401
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
lea ecx, [ebp - 0x94]
push ecx
push 0xf003f
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x98]
or ebx, 0xffffffff
mov dword [ebp - 0x9c], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c467
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45c491
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45c491
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x45c491
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x9c], 0
jne 0x45c4a1
xor edi, edi
jmp 0x45c5be
mov esi, dword [0x51649c]
test esi, esi
je 0x45c4b5
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 4], 1
lea edx, [ebp - 0x9c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
push 0
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x98], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c520
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45c542
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45c542
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x45c542
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x98], 0
jne 0x45c5be
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004a15c0
push 0
call fcn.004b60af
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4ea41c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x90]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c585
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb edi, edi
and edi, 0x80004005
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0049fb4b
mov esp, ebp
pop ebp
ret
Function at 0x45c5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d384b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5010c0]
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, dword [0x51649c]
mov dword [ebp - 0x94], 0
test esi, esi
je 0x45c63c
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
lea ecx, [ebp - 0x94]
push ecx
push 0xf003f
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x98]
or edi, 0xffffffff
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45c6c8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45c6c8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x45c6c8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x45c77b
mov esi, dword [0x51649c]
test esi, esi
je 0x45c6e4
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], 1
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
push 0
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x98]
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c74b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45c76d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45c76d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45c76d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test ebx, ebx
je 0x45c77b
mov eax, 0x80004005
jmp 0x45c7fe
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004a15c0
push 0
call fcn.004b60af
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4ea41c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x90]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c7b5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x94]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0x80004005
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.0049fb4b
mov esp, ebp
pop ebp
ret
Function at 0x45c820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45c9b9
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45c8f1
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004a15c0
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x45c8f1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x45c8e8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x45c8c0
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.004a15c0
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004b5d9b
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004a19fc
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45c961
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.004a19fc
mov esi, eax
add esp, 8
test esi, esi
je 0x45c9b6
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x45c9c9
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45c9ae
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 4
call fcn.0049fd7a
int3
Function at 0x45cbf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3900
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5010c0]
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, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a15c0
mov esi, dword [0x51649c]
add esp, 0xc
test esi, esi
je 0x45cc52
lock inc dword [esi + 4]
mov esi, dword [0x51649c]
mov ecx, dword [0x516498]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 0xec]
push dword [ebp + 8]
lea ecx, [ebp - 0x218]
push 0x104
push ecx
push 0x4ea3d0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ccb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
je 0x45ccdd
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45ccdd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x45ccdd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x45cd19
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45ccf4
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00404b80
mov esi, 1
jmp 0x45cd1b
xor esi, esi
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cd39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x45cd58
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.0049fb4b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45cd80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d394d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00474580
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x45cdd7
xor edi, edi
jmp 0x45ce9c
push str.config.ini
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.004140d0
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ce2a
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x45cef8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.004b48b5
cdq
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0
call fcn.0045cf00
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push str.act_time
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x1c]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45ce7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ce9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ceba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45ced9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x45ce7e
Function at 0x45d280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push edx
push ecx
lea ecx, [ebp - 0x10]
call fcn.0045d0b0
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x45d2fd
test ebx, ebx
jne 0x45d2d0
lea esi, [ebx + 0xd]
jmp 0x45d2fd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d2d5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x45d308
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 8
Function at 0x45f3a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3d48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
mov edx, esi
movq qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x48]
call fcn.0045f5a0
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0045f640
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
push ecx
lea eax, [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00462380
push fcn.00403400
push 2
push 4
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.0049f6b9
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], eax
cmp eax, ecx
je 0x45f51a
mov esi, dword [eax]
xorps xmm0, xmm0
push 1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
push eax
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0x40000
push esi
push SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0045d1a0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x45f501
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x45f53d
cmp dword [edi], 0
je 0x45f4e1
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f4f3
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45f4f3
push 0
push dword [edi]
push 0
push 0
push 0x4e5478
push esi
call eax
jmp 0x45f4f3
cmp dword [edi + 4], 0
je 0x45f4f3
push 0x4e5478
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x4c]
jne 0x45f438
lea ecx, [ebp - 0x28]
call fcn.00454e50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret
cmp byte [0x516528], 0
jne 0x45f57d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f56f
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51652c], eax
mov byte [0x516528], 1
jmp 0x45f582
mov eax, dword [0x51652c]
mov byte [0x516528], 1
jmp 0x45f582
mov eax, dword [0x51652c]
test eax, eax
je 0x45f4e7
push 0
push dword [ebp - 0x18]
push 0x4e5478
push esi
call eax
jmp 0x45f4f3