joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43eaf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
push edi
call fcn.004178e0
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
call fcn.0040dd40
add esp, 4
mov byte [esp + 0x18], 1
call fcn.00407140
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
call fcn.0040c460
mov eax, dword [edi]
push eax
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a65b
mov bl, 1
mov eax, dword [edi]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40a67f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40a6b7
mov ecx, dword [edi]
call fcn.00406730
push 0
call fcn.00429c73
add esp, 4
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, 0x44a148
call fcn.00414080
mov byte [esp + 0x20], 2
push edi
mov byte [esp + 0x24], 0
call fcn.00404fa0
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 4

Function at 0x40a780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a799
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a7d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a7d0
lea ebx, [ebx]
cmp esi, eax
jae 0x40a7d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a7c0
cmp esi, eax
jb 0x40a7da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40afc0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43ec88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040a1e0
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ebx, str._shm
call fcn.00403740
add esp, 8
mov byte [esp + 0x1c], 1
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
call fcn.0040c460
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, str._wal
call fcn.00403740
add esp, 8
mov byte [esp + 0x1c], 2
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
call fcn.0040c460
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040c460
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40b800
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ee69
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x40b853
lea eax, [esp + 0x18]
push eax
call fcn.00424540
add esp, 4
mov dword [esp + 0x30], ebx
mov ebx, 1
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
call fcn.00414080
mov dword [esp + 0x30], 2
test bl, 1
je 0x40b87a
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040c460
mov eax, dword [ebp + 8]
test al, al
je 0x40b926
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0040bc40
add esp, 8
test al, al
jne 0x40b931
lea edx, [esp + 0x20]
push edx
mov ecx, 0x44944c
call fcn.00414080
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
call fcn.0040b4f0
mov byte [esp + 0x38], 4
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.___minimize
call fcn.00403740
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0040c460
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0040c460
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0040c460
jmp 0x40b959
push esi
push 0
call fcn.0040bc40
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040c460
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce50
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x43c570
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea eax, [esp + 4]
push eax
push 0x448414
push 1
push 0
push 0x448424
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40cf37
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x40cee4
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x40cefb
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x448434
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cf37
mov eax, dword [esp + 8]
test eax, eax
je 0x40cf37
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x14], 2
lea ecx, [esp + 0x1c]
call fcn.0040c460
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
call fcn.0040c460
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x24]
call fcn.0040c460
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0040c460
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret

Function at 0x40d510
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43bd48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x40d558
push eax
call edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x44a178
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40d5bb
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d580
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0x44a338
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x40d5bb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0xf], 1
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40d5ce
push eax
call edi
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x40dd40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43eab9
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push 0x23
mov dword [esp + 0xc], 0
call fcn.00405660
add esp, 4
mov dword [esp + 0x14], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x14], 1
call fcn.0041ec20
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ddb3
mov ecx, dword [edi]
call fcn.00406730
push 7
push str._s3.txt
push edi
call fcn.0041ec20
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x40e300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43d598
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041f9d1
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0
push 0
push 0
push 0xbb8
push ebx
call ebp
push 0
push 0
push 0
push 0
push 0x81
push ebx
mov edi, eax
call ebp
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0x18], vtable.CGdiObject.0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], 1
push edi
lea ecx, [esp + 0x1c]
call fcn.0041b4d1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
push 0x202
push ecx
push edx
push ebp
push ebp
push ebp
mov ecx, esi
call fcn.00408a7a
lea ecx, [esp + 0x18]
call fcn.00403cd6
push ebx
call fcn.0040ba10
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x18]
call fcn.004080a0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40eb50
Capabilities:
Access peb ldr_data
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cffa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ec32
lea ecx, [esp + 0x14]
push ecx
call fcn.00416c00
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub edx, esi
jne 0x40ebc5
call fcn.0042a2d1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push esi
push 3
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40ec15
xor eax, eax
cmp dword [esi], eax
jbe 0x40ebfe
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esi]
jb 0x40ebf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push esi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00423350
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_320

Function at 0x4109c0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x44a178
push SysReAllocString
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410a1c
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x44a174
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x410a1c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x410a2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x410b10
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cb71
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.0040b2f0
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410b70
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.004195d0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.0040b2f0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x410bc5
mov edx, dword [esp + 0x14]
push edx
call fcn.0041206d
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x410e80
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x43be70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x410f2f
mov eax, dword [esp + 0x28]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 1
test esi, esi
je 0x410f23
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x410f23
mov byte [esp + 0x20], 0
push esi
mov esi, ebp
call esi
mov dword [esp + 0x20], 0xffffffff
push edi
call esi
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov byte [esp + 0x20], 0
test esi, esi
je 0x410f2f
push esi
call ebp
mov dword [esp + 0x20], 0xffffffff
test edi, edi
je 0x410f3e
push edi
call ebp
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x411760
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43ca28
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov dword [esp + 0x74], 0
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042ace0
xor eax, eax
mov ecx, 1
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], dx
cmp dword [eax - 4], ecx
jle 0x4117e8
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.00404a90
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41181f
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040c460
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret
Function at 0x412780
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x34]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4127ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4127d2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
lea ecx, [esp + 8]
push ecx
push 0x24
lea edx, [esp + 0x14]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4127a3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
cmp dword [esp + 0x18], 2
mov ebp, dword [esp + 0x28]
mov edi, eax
jne 0x41286b
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x41281d
mov edx, 0x3e8
jmp 0x41282a
cmp edx, 0x2710
jbe 0x41282a
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41286b
cmp dword [esp + 0x28], ebp
jbe 0x41285a
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x412864
call ebx
sub eax, edi
cmp eax, dword [esp + 0x2c]
ja 0x41286b
cmp dword [esp + 0x18], 2
je 0x412802
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
pop ebp
pop ebx
pop edi
mov eax, 0x3e8
xor edx, edx
pop esi
add esp, 0x28
ret
Function at 0x4138d0
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x43efe0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0
mov ecx, 0x45a408
mov dword [esp + 0x1c], 0x45a408
call fcn.0040a961
mov dword [esp + 0x24], 0
push 0x4195c0
mov dword [0x45a408], 0x44a584
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.0040eb50
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00414080
mov byte [esp + 0x24], 1
push 0x67
lea edx, [esp + 0x14]
push edx
call fcn.00412920
mov byte [esp + 0x24], 2
mov eax, dword [eax]
test eax, eax
jne 0x41395e
or eax, 0xffffffff
jmp 0x413986
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jge 0x41396d
or eax, 0xffffffff
jmp 0x413986
push eax
push ecx
call fcn.0042a5b3
add esp, 8
test eax, eax
jne 0x413980
or eax, 0xffffffff
jmp 0x413986
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c460
test bl, bl
je 0x4139a5
mov byte [0x45a376], 1
push 0x69
lea eax, [esp + 0x14]
push eax
call fcn.00412920
mov byte [esp + 0x24], 3
mov eax, dword [eax]
test eax, eax
jne 0x4139c1
or eax, 0xffffffff
jmp 0x4139e9
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jge 0x4139d0
or eax, 0xffffffff
jmp 0x4139e9
push eax
push ecx
call fcn.0042a5b3
add esp, 8
test eax, eax
jne 0x4139e3
or eax, 0xffffffff
jmp 0x4139e9
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c460
test bl, bl
je 0x413a08
mov byte [0x45a377], 1
cmp byte [0x45a376], 0
je 0x413ad6
call fcn.0041fd00
test al, al
je 0x413a28
push 1
call fcn.004109c0
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.00419870
add esp, 4
mov bl, 4
mov byte [esp + 0x24], bl
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
je 0x413a4a
call fcn.0040d510
push 0x6a
lea edx, [esp + 0x18]
push edx
call fcn.00412920
mov byte [esp + 0x24], 5
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c460
push 0x6b
lea eax, [esp + 0x18]
push eax
call fcn.00412920
mov byte [esp + 0x24], 6
mov eax, dword [eax]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c460
push 0x6c
lea ecx, [esp + 0x18]
push ecx
call fcn.00412920
mov byte [esp + 0x24], 7
mov eax, dword [eax]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c460
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c460
mov eax, 0x409
mov dword [0x457354], eax
mov dword [0x457358], eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc]
call fcn.0040c460
mov dword [esp + 0x24], 0xffffffff
mov eax, 0x45a408
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x413d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 4
mov dword [esp + 8], esi
cmp eax, esi
je 0x413d9c
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x413dd2
mov eax, dword [esp + 8]
jmp 0x413da1
mov eax, SysReAllocString
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0x44a174
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413dce
cmp dword [esp + 0xc], 4
jne 0x413dce
cmp dword [esp + 0x10], esi
jne 0x413dd2
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
cmp eax, esi
pop esi
je 0x413de2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret

Function at 0x4149d0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, eax
push 0
lea ecx, [esi + 0x90]
call fcn.00418712
add esi, 0x9fc
push 5
mov ecx, esi
call fcn.00418712
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x19
push 0x77
push eax
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
push 0x41a8a0
push 0
push 0
call fcn.00429bb1
mov ecx, dword [esi + 0x20]
add esp, 0x18
push 0
push 0x1388
push 0x75
push ecx
mov dword [esi + 0x74], eax
call edi
pop edi
pop esi
ret

Function at 0x4154a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43eb79
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
push 0x23
mov dword [esp + 0x14], 0
call fcn.00405660
add esp, 4
mov dword [esp + 0x1c], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x1c], 1
call fcn.0041ec20
mov eax, dword [edi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415522
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.00406730
push 3
push 0x449b2c
push edi
call fcn.0041ec20
mov eax, dword [edi]
push eax
call ebp
test eax, eax
jne 0x415546
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.00406730
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret