joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce9ad
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5000a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 0
mov dword [esi + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x140], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00403180
cmp dword [esi + 0x170], 0
movups xmm0, xmmword [ebp + 0x14]
movups xmmword [esi + 0x148], xmm0
movups xmm0, xmmword [ebp + 0x24]
movups xmmword [esi + 0x158], xmm0
movq xmm0, qword [ebp + 0x34]
movq qword [esi + 0x168], xmm0
jne 0x44f9f3
push 0
push 0
push esi
push 0x44f8f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x170], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44fa15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x34
Function at 0x4510a0
Capabilities:
Create process on windows
Create process suspended
Get explorer pid
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cebb5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5000a8]
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], 1
xor edi, edi
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x45110b
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d976
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
mov edi, eax
cmovae ecx, dword [ebp + 0x20]
push ecx
push esi
push edi
call fcn.004b1d3b
add esp, 0x10
push 0x44
lea eax, [ebp - 0x64]
mov dword [ebp - 0x6c], 0
push 0
push eax
mov dword [ebp - 0x68], 0
call fcn.0049edd0
add esp, 0xc
mov dword [ebp - 0x38], 1
xorps xmm0, xmm0
mov eax, 1
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x34], ax
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x70]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x74], eax
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x6c]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0x20
push edi
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov ecx, dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x78], eax
test ecx, ecx
je 0x4511c2
push ecx
call esi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4511cc
push eax
call esi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4511d6
push eax
call esi
test edi, edi
je 0x4511e3
push edi
call fcn.0049d4f5
add esp, 4
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x451219
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45120f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451281
push edx
push ecx
call fcn.0049cf77
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x451263
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451259
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451281
push edx
push ecx
call fcn.0049cf77
add esp, 8
mov eax, dword [ebp - 0x78]
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.0049d3ed
mov esp, ebp
pop ebp
ret
call fcn.004a1aff
int3
Function at 0x452830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5000a8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.00477930
cmp dword [0x5153cc], 0
mov ecx, 0x101
mov eax, 0x201
cmovne eax, ecx
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push str.CLSID1F23370B_625A_453E_9D2C_1FAF54061C85InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4529b6
push 0x208
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0049edd0
add esp, 0xc
mov dword [esp + 0x10], 0x208
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4529b6
call fcn.00477930
cmp dword [0x5153cc], esi
lea edx, [edi + 0x124]
mov ecx, str.ISShellPicExts32.dll
mov eax, str.ISShellPicExts64.dll
cmove eax, ecx
lea ecx, [esp + 0x18]
push eax
call fcn.004572e0
lea ecx, [esp + 0x34]
add esp, 4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452920
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x18]
mov edi, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x28]
sar ecx, 1
cmp ebx, 8
cmovae esi, edi
cmp edx, ecx
jne 0x45296d
lea ecx, [esp + 0x30]
test edx, edx
je 0x452966
mov eax, ecx
sub esi, eax
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x45296d
add ecx, 2
sub edx, 1
jne 0x452955
mov esi, 1
jmp 0x45296f
xor esi, esi
cmp ebx, 8
jb 0x45299f
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x452995
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4529cd
push ecx
push edi
call fcn.0049cf77
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x23c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret
call fcn.004a1aff
int3
Function at 0x453590
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefb6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5000a8]
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.00453320
mov dword [ebp - 4], 0
cmp dword [ebp - 0x70], 0
jne 0x45367f
mov esi, dword [0x51539c]
test esi, esi
je 0x4535ee
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 0x453620
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.004263f0
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 0x45365d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45367f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45367f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45367f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x6c], 8
lea edi, [ebp - 0x80]
push 0xf003f
cmovae edi, dword [ebp - 0x80]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4536f8
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4536bb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4536f8
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x4536e5
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.00460c70
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.00426390
lea ecx, [ebp - 0x68]
call fcn.00426390
lea ecx, [ebp - 0x80]
call fcn.00426390
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.0049d3ed
mov esp, ebp
pop ebp
ret
Function at 0x4562f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x5000a8]
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 0x456436
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0049edd0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x456346
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x456356
push esi
push 0x4e8dec
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 0x456436
cmp dword [ebp + 0x10], 0
je 0x456409
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.0049d3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x457db0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x5000a8]
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 0x457e1b
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x457e1b
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049edd0
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 0x457e34
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.0049d3ed
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.00457ea0
nop dword [eax + eax]
push edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x457e61
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004583b0
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x457e40
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.0049d3ed
mov esp, ebp
pop ebp
ret 8
Function at 0x45a170
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 0x45a180
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 0x45a1b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5000a8]
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 [0x51539c]
mov edi, 0x80004005
mov dword [ebp - 0x94], 0
test esi, esi
je 0x45a201
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 0x45a267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45a291
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45a291
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x45a291
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x9c], 0
jne 0x45a2a1
xor edi, edi
jmp 0x45a3be
mov esi, dword [0x51539c]
test esi, esi
je 0x45a2b5
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 0x45a320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45a342
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45a342
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x45a342
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x98], 0
jne 0x45a3be
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0049edd0
push 0
call fcn.004b2020
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4e9f34
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 0x45a385
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.0049d3ed
mov esp, ebp
pop ebp
ret
Function at 0x45a3f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf83b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5000a8]
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 [0x51539c]
mov dword [ebp - 0x94], 0
test esi, esi
je 0x45a43c
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 0x45a49e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45a4c8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45a4c8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x45a4c8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x45a57b
mov esi, dword [0x51539c]
test esi, esi
je 0x45a4e4
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 0x45a54b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x45a56d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45a56d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x45a56d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test ebx, ebx
je 0x45a57b
mov eax, 0x80004005
jmp 0x45a5fc
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0049edd0
push 0
call fcn.004b2020
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4e9f34
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 0x45a5b5
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]
neg eax
sbb esi, esi
and esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0049d3ed
mov esp, ebp
pop ebp
ret
Function at 0x45a620
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5000a8]
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 0x45a7b9
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 0x45a6f1
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0049edd0
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x45a6f1
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 0x45a6e8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x45a6c0
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.0049edd0
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004b1d3b
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0049f217
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45a761
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.0049f217
mov esi, eax
add esp, 8
test esi, esi
je 0x45a7b6
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x45a7c9
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 0x45a7ae
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.0049d3ed
mov esp, ebp
pop ebp
ret 4
call fcn.0049d61c
int3
Function at 0x45ab90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf91d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5000a8]
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.00472490
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x45abe7
xor edi, edi
jmp 0x45acac
push str.config.ini
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.00452b50
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ac3a
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 0x45ad08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.004b09f7
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.0045ad10
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 0x45ac8e
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 0x45acac
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 0x45acca
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 0x45ace9
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.0049d3ed
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x45ac8e