joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4817c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48182e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4817ff
cmp eax, 2
jne 0x48181a
test esi, esi
mov eax, dword [esp]
je 0x481828
test eax, eax
je 0x481823
test al, 1
jne 0x48181a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x481828
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x485270
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58e988
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
test esi, esi
mov dword [esp + 0x24], 0
je 0x485364
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x485364
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x48535d
add eax, 1
push eax
call fcn.00548a37
mov esi, eax
add esp, 4
test esi, esi
je 0x48535d
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485354
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esi + edx], 0
call fcn.004856e0
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
add esp, 8
push ecx
mov ecx, ebp
call fcn.00484f30
mov dword [esp + 0x14], eax
push esi
call fcn.005649af
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x4853b0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58e958
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x5f7780
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], ebp
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
cmp esi, ebp
mov byte [esp + 0x2c], 1
je 0x4854da
mov ecx, esi
call fcn.004b4630
cmp eax, ebp
je 0x4854da
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4854da
mov edi, dword [esp + 0x34]
lea esi, [esp + 0x34]
call fcn.00485190
lea edi, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00480f90
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
je 0x4854d3
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.00485540
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx - 0xc]
add esp, 8
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4854d3
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0xfffffff0
mov byte [esp + 0x2c], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4854fb
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48551f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x486790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58b4ea
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor eax, eax
mov byte [esi], al
mov dword [esi + 0x254], 0xffffffff
mov edx, 7
mov dword [esi + 0x270], edx
mov dword [esi + 0x26c], eax
mov word [esi + 0x25c], ax
mov dword [esp + 0x18], eax
mov byte [esi + 0x274], al
mov ecx, 2
mov dword [esi + 0x278], ecx
mov dword [esi + 0x294], edx
mov dword [esi + 0x290], eax
mov word [esi + 0x280], ax
lea edi, [esi + 0x298]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push 0x250
push eax
lea eax, [esi + 4]
push eax
mov byte [esp + 0x24], cl
call fcn.005695a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov eax, edi
call fcn.00486e10
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x487bd0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x5f8928], 0
jne 0x487bf4
push 0x208
call fcn.00548a37
add esp, 4
test eax, eax
mov dword [0x5f8928], eax
je 0x487c43
mov word [eax], 0
mov eax, dword [0x5f8928]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x487c43
mov ecx, dword [0x5f8928]
movzx edx, word [ecx + eax*2 - 2]
cmp dx, 0x2f
je 0x487c20
cmp dx, 0x5c
jne 0x487c2d
mov word [ecx + eax*2 - 2], 0
mov ecx, dword [0x5f8928]
mov edx, 0x103
sub edx, eax
push edx
push 0x5b28b8
push ecx
call fcn.0056712b
add esp, 0xc
ret

Function at 0x487c50
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x428
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x424], eax
push 0x206
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.005695a0
push 0x206
lea ecx, [esp + 0x22e]
push 0
push ecx
mov word [esp + 0x234], 0
call fcn.005695a0
add esp, 0x18
cmp dword [0x5f8928], 0
jne 0x487cc5
push 0x208
call fcn.00548a37
add esp, 4
test eax, eax
mov dword [0x5f8928], eax
je 0x487d81
mov word [eax], 0
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x487d81
movzx ecx, word [esp + eax*2 + 0x12]
cmp cx, 0x2f
lea eax, [esp + eax*2 + 0x12]
je 0x487cf2
cmp cx, 0x5c
jne 0x487cf7
mov word [eax], 0
movzx eax, word [esp + 0x14]
push eax
push 0x5b28d4
lea edx, [esp + 8]
call fcn.00487f20
add esp, 8
push 0x104
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x487d81
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.005670b1
push 0x5b28b8
lea edx, [esp + 0x22c]
push 0x104
push edx
call fcn.005670b1
mov edx, dword [0x5f8928]
add esp, 0x18
lea ecx, [esp + 0x21c]
jmp 0x487d70
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x487d70
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00564207
add esp, 0x428
ret
Function at 0x488b20
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x488b3f
push str.wintrust.dll
call edi
cmp eax, ebx
mov dword [esi], eax
je 0x488c6b
cmp dword [esi + 4], ebx
jne 0x488b56
push str.Crypt32.dll
call edi
cmp eax, ebx
mov dword [esi + 4], eax
je 0x488c6b
cmp dword [esi + 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x488b76
mov eax, dword [esi]
push str.CryptCATAdminAcquireContext
push eax
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x488c6b
cmp dword [esi + 0xc], ebx
jne 0x488b90
mov ecx, dword [esi]
push str.CryptCATAdminReleaseContext
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x488c6b
cmp dword [esi + 0x14], ebx
jne 0x488baa
mov edx, dword [esi]
push str.CryptCATCatalogInfoFromContext
push edx
call edi
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x488c6b
cmp dword [esi + 0x10], ebx
jne 0x488bc4
mov eax, dword [esi]
push str.CryptCATAdminReleaseCatalogContext
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x488c6b
cmp dword [esi + 0x18], ebx
jne 0x488bde
mov ecx, dword [esi]
push str.CryptCATAdminCalcHashFromFileHandle
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x488c6b
cmp dword [esi + 0x1c], ebx
jne 0x488bf4
mov edx, dword [esi]
push str.CryptCATAdminEnumCatalogFromHash
push edx
call edi
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x488c6b
cmp dword [esi + 0x20], ebx
jne 0x488c0a
mov eax, dword [esi]
push str.WinVerifyTrustEx
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x488c6b
cmp dword [esi + 0x24], ebx
jne 0x488c20
mov ecx, dword [esi]
push str.WTHelperProvDataFromStateData
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x488c6b
cmp dword [esi + 0x28], ebx
jne 0x488c36
mov edx, dword [esi]
push str.WTHelperGetProvSignerFromChain
push edx
call edi
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x488c6b
cmp dword [esi + 0x2c], ebx
jne 0x488c4c
mov eax, dword [esi]
push str.WTHelperGetProvCertFromChain
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x2c], eax
je 0x488c6b
cmp dword [esi + 0x30], ebx
jne 0x488c63
mov ecx, dword [esi + 4]
push str.CertNameToStrW
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x488c6b
pop edi
mov eax, 1
pop ebx
ret
mov eax, dword [esi]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
je 0x488c9d
push eax
call edi
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x488caa
push eax
call edi
mov dword [esi + 4], ebx
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x48e950
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xa18
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0xa10], eax
mov eax, dword [0x5f8b48]
push edi
push 0x5bd704
mov dword [esi], eax
mov dword [0x5f8b48], esi
mov dword [esi + 4], 0x5bd704
mov dword [esi + 8], str.waveOutWrite
mov dword [esi + 0x10], 0x540560
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.waveOutWrite
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x48ea01
push 0x104
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.waveOutWrite
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__4u____s__impossible_to_find__S_r_n
mov ecx, 0x400
lea edi, [esp + 0x220]
call fcn.0048e8f0
add esp, 0x10
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
pop edi
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.00564207
add esp, 0xa18
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
push ecx
push eax
push edx
call fcn.0048ea70
mov ecx, dword [esp + 0xa14]
pop edi
xor ecx, esp
mov eax, esi
call fcn.00564207
add esp, 0xa18
ret

Function at 0x48ea70
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [esp + 0x18]
push eax
push fcn.0048ea70
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], 0x428
call fcn.005695a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push eax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x48eb17
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x48eb04
mov ecx, dword [ebp + 0xc]
push eax
push ebx
push ecx
push edi
call fcn.0048eb40
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x48eaf0
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x48eb27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48ee60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x591388
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
xor edi, edi
or esi, 0xffffffff
cmp ebp, edi
jne 0x48eea6
or eax, esi
jmp 0x48eff0
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
lea ebx, [esp + 0x4c]
mov dword [esp + 0x74], edi
call fcn.0048ec90
cmp eax, edi
mov ebx, 8
je 0x48efdb
push 0xb
push 0x5b26b8
lea ecx, [esp + 0x54]
call fcn.0043a690
push 1
push 0x5aeae8
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
call fcn.0043a8d0
push edi
lea eax, [esp + 0x50]
push eax
or eax, 0xffffffff
mov byte [esp + 0x7c], 1
call fcn.0043a790
push 1
push 0x5aeae8
mov ecx, esi
call fcn.0043a690
push 6
push str._aurl:
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.0043a8d0
mov eax, ebp
mov byte [esp + 0x74], 2
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x48ef50
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.0043a690
cmp dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x18]
jae 0x48ef78
lea ecx, [esp + 0x18]
cmp dword [esp + 0x48], ebx
mov eax, dword [esp + 0x34]
jae 0x48ef86
lea eax, [esp + 0x34]
push 1
push edi
push ecx
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
sub ecx, 1
cmp dword [esp + 0x2c], ebx
mov esi, ecx
jb 0x48efb7
mov edx, dword [esp + 0x18]
push edx
call fcn.00563626
add esp, 4
cmp dword [esp + 0x48], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jb 0x48efdb
mov eax, dword [esp + 0x34]
push eax
call fcn.00563626
add esp, 4
cmp dword [esp + 0x64], ebx
jb 0x48efee
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00564207
add esp, 0x64
ret
Function at 0x48f0c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x214
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x20c], eax
test esi, esi
jne 0x48f0f0
or eax, 0xffffffff
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00564207
add esp, 0x214
ret
push esi
call fcn.0048ee60
add esp, 4
test eax, eax
je 0x48f161
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.005695a0
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48f15c
push str.Internet_Exploreriexplore.exe
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, esi
lea ecx, [esp]
call fcn.0048f180
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00564207
add esp, 0x214
ret
mov eax, 0xfffffffa
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00564207
add esp, 0x214
ret
Function at 0x48f760
Capabilities:
Modify service

Disassembly:
sub esp, 0x28
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x48f7d6
push esi
push 2
push str.seclogon
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x48f7ce
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x48f7b1
cmp dword [esp + 0x14], 3
je 0x48f7c7
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x28
ret
Function at 0x48f7e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x591340
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor eax, eax
or edi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x48f9a6
xor ecx, ecx
cmp ecx, str.minisite
je 0x48f9a6
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
lea ebx, [esp + 0x34]
mov dword [esp + 0x60], eax
call fcn.0048ec90
mov edx, ebx
push edx
lea esi, [esp + 0x1c]
call fcn.0048f9d0
add esp, 4
push edi
push 0
mov ecx, ebx
mov byte [esp + 0x68], 1
call fcn.0043a9a0
mov esi, 8
mov byte [esp + 0x60], 0
cmp dword [esp + 0x30], esi
jb 0x48f88f
mov eax, dword [esp + 0x1c]
push eax
call fcn.00563626
add esp, 4
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x48f89d
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48f998
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x10]
push ecx
push str.minisite
push str._openurl__from:_s__url:__s_
lea edi, [esp + 0x20]
call fcn.00481690
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x60], 3
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x48f90d
lea eax, [esp + 0x38]
push eax
push str.__s_
lea edi, [esp + 0x18]
call fcn.00481690
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, ebx
mov ecx, esi
call fcn.0048f180
mov edi, eax
push 1
push edi
call fcn.0048f010
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f95b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f97c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x48f994
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00563626
add esp, 4
mov eax, edi
jmp 0x48f9a9
push 2
push 0xffffffffffffffff
call fcn.0048f010
add esp, 8
jmp 0x48f981
or eax, 0xffffffff
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret
Function at 0x48f9d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5958e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.0043a9a0
mov eax, str.rcmdhelper.exe
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x48fa27
sub eax, edx
sar eax, 1
push eax
push str.rcmdhelper.exe
lea ecx, [esp + 0x14]
call fcn.0043a690
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.0043a9a0
cmp dword [esp + 0x24], 8
jb 0x48fa71
mov eax, dword [esp + 0x10]
push eax
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x48fdb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48fe57
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.ProgramPath
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48fe57
cmp dword [esp + 0xc], 1
jne 0x48fe57
cmp dword [esp + 0x10], 6
jb 0x48fe57
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48fe20
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x48fe52
cmp ax, 0x2f
je 0x48fe52
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x5aeb10
call fcn.0048e600
add esp, 4
mov esi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x48fe66
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret