joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4629f3
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfa4
mov eax, dword [0x5184d0]
xor eax, esp
mov dword [esp + 0xfa0], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
push 0x42
lea eax, [esp + 0xd5c]
mov dword [esp + 0x14], ebx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xd58]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
test esi, esi
je 0x462a5a
push esi
push 0x3fb20134
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x462bcc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push 1
push dword [esp + 0x28]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov esi, eax
test esi, esi
je 0x462a86
push esi
push 0x3fb60134
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x462bc2
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 5
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov esi, eax
test esi, esi
je 0x462aba
push esi
push 0x3fbe0134
jmp 0x462a7b
cmp dword [esp + 0x14], ebx
jbe 0x462bc0
lea edi, [esp + 0x48]
lea esi, [edi + 0xc]
push dword [esi + 0x280]
push 0x411dd8
call fcn.004c5942
push esi
push 0x411e04
call fcn.004c5942
push dword [edi]
push 0x411e28
call fcn.004c5942
add esp, 0x18
push dword [edi]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x462b2b
push 0x406520
call fcn.004c5942
pop ecx
call fcn.004c73cc
push eax
push 0x3fca0134
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x462baf
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x462b9d
lea eax, [esp + 0x28]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x462b9d
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
lea eax, [esp + 0xda4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x462b9d
cmp dword [esp + 0x18], 0x104
ja 0x462b9d
lea eax, [esp + 0xda0]
push eax
push 0x408748
call fcn.004c5942
pop ecx
pop ecx
push 0x406520
call fcn.004c5942
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 0x29c
cmp ebx, dword [esp + 0x14]
jb 0x462ac8
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ecx, dword [esp + 0xfac]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005036b0
mov esp, ebp
pop ebp
ret
Function at 0x464805
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x464826
mov esi, 0x80070057
push esi
push 0x2830145
jmp 0x46487b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x4129e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jns 0x46485c
mov ecx, eax
call fcn.004c738c
mov esi, eax
push esi
push 0x2930145
jmp 0x46487b
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jns 0x464881
mov ecx, eax
call fcn.004c738c
mov esi, eax
push esi
push 0x29e0145
call dword [sym.imp.certcli.dll_Ordinal_357]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4659de
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
or dword [ebp - 0x230], 0xffffffff
push ebx
mov ebx, ecx
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
and dword [ecx], eax
mov dword [ebp - 0x248], ecx
mov ecx, dword [ebp - 0x238]
and dword [edx], eax
mov dword [ebp - 0x24c], edx
xor edx, edx
push edi
mov dword [ecx], edx
xor edi, edi
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x22c], eax
mov dword [ecx], edx
test ebx, ebx
jne 0x465ae7
lea edx, [ebp - 0x234]
mov ecx, esi
call fcn.0046588e
mov esi, eax
test esi, esi
je 0x465a7d
push esi
push 0x2320135
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 0x234]
jmp 0x465bbc
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], 0x101
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x240], 0x10
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x465adc
call fcn.004c73cc
mov esi, eax
push esi
push 0x2420135
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x465bbc
mov eax, dword [ebp - 0x22c]
lea ebx, [ebp - 0x24]
xor edx, edx
mov ecx, dword [0x5199b4]
test ecx, ecx
jne 0x465b21
lea eax, [ebp - 0x22c]
push eax
push 0x40000000
push edx
push edx
push ebx
push edx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov esi, eax
test esi, esi
je 0x465b15
push esi
push 0x2500135
jmp 0x465ad1
mov eax, dword [ebp - 0x22c]
mov ecx, dword [0x5199b4]
test eax, eax
je 0x465b27
mov ecx, dword [eax]
lea eax, [ebp - 0x230]
push eax
push 0
push ecx
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov esi, eax
test esi, esi
je 0x465b45
push esi
push 0x2590135
jmp 0x465ad1
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x465b54
mov eax, dword [eax + 0x1c]
jmp 0x465b56
mov eax, ebx
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push 1
push eax
push dword [ebp - 0x230]
call dword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
mov esi, eax
test esi, esi
je 0x465b82
push esi
push 0x2640135
jmp 0x465ad1
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x465b8f
mov ebx, dword [eax + 0x1c]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push 3
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
test eax, eax
je 0x465bba
push eax
push 0x26e0135
call dword [sym.imp.certcli.dll_Ordinal_357]
xor esi, esi
cmp dword [ebp - 0x230], 0xffffffff
je 0x465bd2
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x22c], 0
je 0x465be7
push dword [ebp - 0x22c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test edi, edi
je 0x465bf2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 0x10
Function at 0x465d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x406520
mov edi, edx
push ebx
mov esi, ecx
call fcn.004c5942
pop ecx
push edi
push esi
mov ecx, 0x821
call fcn.004cf8b9
push eax
call fcn.004c5942
push ebx
call fcn.004c5942
push edi
push 0x413040
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004444ad
add esp, 0x20
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x465e01
call fcn.004c73cc
mov esi, eax
mov edx, 0x820
push 0
push esi
xor ecx, ecx
call fcn.004cfab1
push esi
push esi
push 0x2e90135
call dword [sym.imp.certcli.dll_Ordinal_358]
jmp 0x465e5c
mov ecx, edi
call fcn.00465c0b
mov esi, eax
test esi, esi
je 0x465e2a
push 0
push esi
mov edx, 0x81e
xor ecx, ecx
call fcn.004cfab1
push esi
push esi
push 0x2f30135
call dword [sym.imp.certcli.dll_Ordinal_358]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00465405
mov edi, eax
test edi, edi
je 0x465e5c
push 0
push edi
mov edx, 0x81f
xor ecx, ecx
call fcn.004cfab1
push edi
push edi
push 0x2fc0135
call dword [sym.imp.certcli.dll_Ordinal_358]
test esi, esi
jne 0x465e5c
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 4

Function at 0x466a6a
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x466aa4
call fcn.004c73cc
mov esi, eax
cmp esi, 0x800700ea
je 0x466aa4
push esi
push 0x6f90135
jmp 0x466b19
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x466ab0
dec eax
mov dword [ebp - 4], eax
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
jne 0x466acb
mov esi, 0x8007000e
push esi
push 0x7050135
jmp 0x466b19
inc dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push edi
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x466aee
call fcn.004c73cc
mov esi, eax
push esi
push 0x70c0135
jmp 0x466b19
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x466b01
mov eax, edi
jmp 0x466b04
add eax, 2
mov edx, ebx
mov ecx, eax
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x466b1f
push esi
push 0x71b0135
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46ae8a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x5184d0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov edi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], esi
test eax, eax
je 0x46aec0
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov ebx, esi
mov dword [esp + 0x10], esi
mov ecx, 0x3e8
test edi, edi
je 0x46af93
cmp edi, 0xffffffff
je 0x46af93
mov eax, edi
mul ecx
mov dword [esp + 0x10], eax
cmp edx, esi
ja 0x46af01
jb 0x46af93
cmp eax, 0xffffffff
jbe 0x46af93
mov edi, 0x80070216
push edi
push 0x114c0136
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x46b056
lea eax, [esp + 0x44]
mov edx, 0x84b
push eax
push edi
xor ecx, ecx
call fcn.004cfab1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46b00a
cmp eax, 0xffffffff
je 0x46af48
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jae 0x46b00a
push edi
push 0x11870136
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [esp + 0x1c], 0xffffffff
je 0x46af72
mov eax, dword [esp + 0x10]
xor edx, edx
sub eax, dword [esp + 0x14]
mov ecx, 0x3e8
div ecx
cmp eax, ebx
jae 0x46af72
mov ebx, eax
cmp ebx, 1
jae 0x46af7c
xor ebx, ebx
inc ebx
jmp 0x46af84
cmp ebx, 0x1e
jbe 0x46af84
push 0x1e
pop ebx
imul eax, ebx, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebx
mov edi, dword [esp + 0x20]
mov ecx, 0x263
push edi
call fcn.004cf8b9
push eax
call fcn.004c5942
pop ecx
pop ecx
push esi
lea eax, [esp + 0x1c]
xor edx, edx
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.004eec27
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x28]
push eax
push 0x4146e4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push 0x10
push eax
call fcn.0043ec15
push 0x406520
call fcn.004c5942
add esp, 0x14
test edi, edi
jne 0x46af17
cmp dword [esp + 0x18], 1
jne 0x46b01c
xor eax, eax
mov word [esp + 0x2c], ax
jmp 0x46b034
push edi
push 0x11850136
call dword [sym.imp.certcli.dll_Ordinal_357]
mov esi, dword [esp + 0xc]
jmp 0x46b056
push dword [esp + 0x18]
lea eax, [esp + 0x30]
push 0x408abc
push 0xc
push eax
call fcn.0043ec15
add esp, 0x10
mov ecx, 0x262
call fcn.004cf8b9
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push eax
call fcn.004c5942
add esp, 0x10
push 0x406520
call fcn.004c5942
pop ecx
test esi, esi
je 0x46b06c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005036b0
mov esp, ebp
pop ebp
ret 4
Function at 0x46c5d3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00504b10
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x2014], eax
mov dword [ebp - 0x2018], ecx
mov eax, ecx
mov dword [ebp - 0x200c], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x46c644
lea eax, [ebp - 0x200c]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x46c63e
push esi
push esi
push 0x164c0136
push ebx
call dword [sym.imp.certcli.dll_Ordinal_360]
jmp 0x46c6fe
mov eax, dword [ebp - 0x200c]
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2010], 0x1ffe
push ecx
lea ecx, [ebp - 0x2004]
push ecx
lea ecx, [ebp - 0x2008]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x46c67d
push esi
push esi
push 0x16560136
push edi
jmp 0x46c633
cmp dword [ebp - 0x2008], 1
push 0xd
pop esi
je 0x46c6b3
cmp dword [ebp - 0x2008], 2
je 0x46c6b3
push dword [ebp - 0x2008]
push 0x165b0136
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
push esi
push 0x165c0136
push edi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x46c6fe
mov eax, dword [ebp - 0x2010]
mov ecx, 0x2000
cmp eax, ecx
jb 0x46c6ca
push esi
push 0x16600136
jmp 0x46c6aa
and eax, 0xfffffffe
cmp eax, ecx
jae 0x46c72f
mov edx, dword [ebp - 0x2014]
xor ecx, ecx
mov word [ebp + eax - 0x2004], cx
lea ecx, [ebp - 0x2004]
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x46c6fe
push esi
push 0x16650136
call dword [sym.imp.certcli.dll_Ordinal_357]
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x46c717
cmp dword [ebp - 0x2018], eax
je 0x46c717
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004c738c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 8
call fcn.0050393c
int3
Function at 0x46c73b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx edi, word [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov esi, edx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x46c78c
push eax
push eax
push 0x16800136
jmp 0x46c7d7
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x40e
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x405d88
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46c7d0
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x46c805
mov eax, 0x80070002
push eax
push eax
push 0x168e0136
call dword [sym.imp.certcli.dll_Ordinal_358]
cmp dword [ebp - 0x418], 0
je 0x46c7f2
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 8
cmp eax, 1
je 0x46c82f
cmp eax, 2
je 0x46c82f
push eax
push 0x16930136
push esi
call dword [sym.imp.certcli.dll_Ordinal_359]
push 0x8007000d
push 0x16940136
push esi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x46c7dd
mov eax, dword [ebp - 0x41c]
mov ecx, 0x410
cmp eax, ecx
jae 0x46c7dd
and eax, 0xfffffffe
cmp eax, ecx
jae 0x46c902
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea eax, [ebp - 0x414]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46c871
lea esi, [ebp - 0x414]
jmp 0x46c8c4
push 0x2e
pop eax
cmp di, ax
jne 0x46c8bc
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x46c8ba
cmp esi, ebx
je 0x46c8ba
movzx eax, word [esi + 2]
xor edi, edi
inc edi
jmp 0x46c8a1
inc edi
movzx eax, word [esi + edi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
jne 0x46c89c
xor eax, eax
cmp ax, word [esi + edi*2]
jne 0x46c8ba
mov word [esi], ax
mov esi, ebx
xor ebx, ebx
xor eax, eax
mov word [esi], ax
add esi, 2
push 1
mov edx, esi
mov esi, dword [ebp - 0x424]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004ca39c
test eax, eax
je 0x46c8fb
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push esi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
jne 0x46c7dd
mov bl, 1
jmp 0x46c7dd
call fcn.0050393c
int3
Function at 0x470dec
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
push 0x5c
xor ebx, ebx
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 8], ebx
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x470e1d
mov dword [ebp - 0x14], esi
jmp 0x470e23
add eax, 2
mov dword [ebp - 0x14], eax
and dword [ebp - 0x1c], ebx
mov ecx, esi
call fcn.0043ebf6
push dword [ebp - 0x14]
test eax, eax
je 0x470fa2
mov ecx, 0xa60
call fcn.004cf8b9
push eax
push 0x405980
call fcn.004c5942
add esp, 0xc
lea eax, [ebp - 0x18]
lea edx, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004f1543
mov esi, eax
test esi, esi
je 0x470e80
push esi
push 0x8000143
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ebx, dword [ebp - 8]
jmp 0x470fc7
mov ecx, 0xa59
call fcn.004cf8b9
mov ecx, 0x7d0
mov esi, eax
call fcn.004cf8b9
mov ebx, dword [ebp - 8]
push ebx
push esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x10]
push 0x415718
call fcn.004c5942
add esp, 0x18
lea eax, [ebp - 0x18]
mov edx, 0xa58
xor cl, cl
push eax
push 0
call fcn.0045fcfa
mov esi, eax
test esi, esi
je 0x470ed8
push esi
push 0x80b0143
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x470fc7
test ebx, ebx
je 0x470f3e
cmp dword [0x519960], edi
lea eax, [ebp - 0xc]
push eax
push 0
sete dl
mov ecx, ebx
call fcn.004f1378
mov esi, eax
test esi, esi
je 0x470f0c
push esi
push 0x8140143
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 0xc]
jmp 0x470fc7
mov edi, dword [ebp - 0xc]
mov edx, edi
mov esi, dword [ebp - 0x20]
mov ecx, esi
push 1
push 0xffffffffffffffff
call fcn.004ca39c
test eax, eax
je 0x470f41
mov ecx, 0xa63
call fcn.004cf8b9
push edi
push eax
push 0x41575c
call fcn.004c5942
add esp, 0xc
jmp 0x470f41
mov esi, dword [ebp - 0x20]
cmp byte [ebp - 1], 0
je 0x470f7d
mov ecx, 0xa61
call fcn.004cf8b9
push eax
push 0x41577c
call fcn.004c5942
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x470fba
call fcn.004c73cc
push eax
push 0x8270143
push esi
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x470fba
cmp dword [0x51996c], 0
je 0x470fba
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.00470ab8
mov esi, eax
test esi, esi
je 0x470fba
push esi
push 0x82d0143
jmp 0x470ecd
mov ecx, 0xa62
call fcn.004cf8b9
push eax
push 0x405980
call fcn.004c5942
add esp, 0xc
push 0x406520
call fcn.004c5942
pop ecx
xor esi, esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x470fdb
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x470fe6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473dcf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 8], ecx
mov ebx, edx
test edi, edi
je 0x473de9
mov dword [edi], esi
test ebx, ebx
je 0x473ea9
mov eax, dword [ebp + 8]
test eax, eax
je 0x473ea9
cmp dword [ebp + 0xc], esi
je 0x473ea9
test edi, edi
je 0x473ea9
lea edx, [ebp - 4]
mov dword [ebp - 4], esi
push edx
push esi
push eax
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x473e39
push 2
push esi
push 0x9110138
push ebx
call dword [sym.imp.certcli.dll_Ordinal_360]
jmp 0x473ebe
mov eax, dword [ebp - 4]
add eax, 6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
jne 0x473e61
mov esi, 0x8007000e
push esi
push 0x91a0138
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x473ebe
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x473e8a
push esi
push 0x9240138
push ebx
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x473ebe
mov ecx, dword [ebp - 4]
lea eax, [ecx + 6]
push eax
mov eax, dword [ebp + 8]
push ecx
push dword [edi]
mov ecx, ebx
mov edx, dword [eax]
call fcn.00473cef
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ecx], eax
jmp 0x473ece
mov esi, 0x80004003
push esi
push 0x9070138
call dword [sym.imp.certcli.dll_Ordinal_357]
test edi, edi
je 0x473ece
cmp dword [edi], 0
je 0x473ece
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [edi], 0
mov ecx, esi
call fcn.004c738c
pop edi
pop esi
pop ebx
leave
ret 0xc