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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 2
push 0x100fc5d8
lea ecx, [ebp - 0x220]
call fcn.10008b78
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x218], 4
cmp dword [0x100fc534], 0
jne 0x100061e4
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push 0
lea ecx, [ebp + 0x10]
call fcn.10007960
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x214], eax
jmp 0x1000620b
lea edx, [ebp - 0x21c]
push edx
push 0xf033f
push 0
lea ecx, [ebp + 0x10]
call fcn.10007960
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x218], 0x200
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp + 0x18]
push eax
push 0
lea ecx, [ebp + 0x14]
call fcn.10007960
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x220]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100068f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009a9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x24c], 0
push 0x100fc5ec
lea ecx, [ebp - 0x30]
call fcn.10008b78
mov dword [ebp - 4], 1
push str.vm_samSAMDomainsAccountUsers
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x140]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x248]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x100069b0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x25c]
or ecx, 1
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x10006af6
mov byte [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov byte [ebp - 0x1f], dl
mov eax, 1
test eax, eax
je 0x10006acc
mov dword [ebp - 0x2c], 0x104
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x24c]
add ecx, 1
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10006a38
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006acc
lea eax, [ebp - 0x13c]
push eax
call fcn.10006838
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x258]
jne 0x10006ac7
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [ebp - 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x12]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x14]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x16]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1a]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
push edx
push str._d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
jmp 0x10006acc
jmp 0x100069bf
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x25c]
or edx, 1
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406274
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406299
mov eax, dword [0x40a8a8]
cmp eax, 0xffffffff
je 0x406290
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a8], 0xffffffff
jmp 0x40630c
cmp dword [0x424a60], ebx
je 0x40630c
cmp byte [0x424660], bl
je 0x4062d8
cmp dword [0x40a8a8], 0xffffffff
jne 0x4062e1
push 4
push 0x40000000
push 0x424660
call fcn.00405c50
cmp eax, 0xffffffff
mov dword [0x40a8a8], eax
je 0x40630c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a8], 0xffffffff
je 0x40630c
push esi
mov esi, 0x425280
push 0x40aaf0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42425c], 0
push esi
jne 0x4064eb
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064c5
mov dword [ecx*4 + 0x424258], eax
inc ecx
cmp ecx, 0x100
jl 0x4064c0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40651c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424258]
xor eax, esi
inc ecx
dec edx
jne 0x4064fe
pop edi
not eax
pop esi
ret 0xc

Function at 0x408d8d
Capabilities:
Get disk information

Disassembly:
xor eax, eax
lea eax, [eax + 0x40a51c]
call dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x3ca214], cl
jmp dword [sym.imp.kernel32.dll_OpenMutexW]
Function at 0x40e340
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4212d0]
jne 0x40e34a
repz ret
jmp fcn.0040f826

Function at 0x416bed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410431
and dword [ebp - 4], 0
cmp dword [0x422d04], 0
mov ebx, eax
jne 0x416c9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416d4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d944
push edi
call esi
test eax, eax
je 0x416d4f
push eax
call fcn.004103bf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422d04], eax
call esi
push eax
call fcn.004103bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422d08], eax
call esi
push eax
call fcn.004103bf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x422d0c], eax
call esi
push eax
call fcn.004103bf
pop ecx
mov dword [0x422d14], eax
test eax, eax
je 0x416c9e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004103bf
pop ecx
mov dword [0x422d10], eax
mov eax, dword [0x422d10]
cmp eax, ebx
je 0x416cf6
cmp dword [0x422d14], ebx
je 0x416cf6
push eax
call fcn.0041043a
push dword [0x422d14]
mov esi, eax
call fcn.0041043a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416cf6
test edi, edi
je 0x416cf6
call esi
test eax, eax
je 0x416ced
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416ced
test byte [ebp - 0xc], 1
jne 0x416cf6
or dword [ebp + 0x10], 0x200000
jmp 0x416d2f
mov eax, dword [0x422d08]
cmp eax, ebx
je 0x416d2f
push eax
call fcn.0041043a
pop ecx
test eax, eax
je 0x416d2f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416d2f
mov eax, dword [0x422d0c]
cmp eax, ebx
je 0x416d2f
push eax
call fcn.0041043a
pop ecx
test eax, eax
je 0x416d2f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422d04]
call fcn.0041043a
pop ecx
test eax, eax
je 0x416d4f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416d51
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a94
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1001a9e
pushal
call 0x1001aa4
pop ebp
sub ebp, 0x10
sub ebp, 0xc01a94
jmp 0x1001aba
mov eax, 0xc01a94
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a7
mov edx, 0xf4c0d003
xor byte [eax], dl
inc eax
dec ecx
jne 0x1001ad1
jmp 0x1001ae4
mov dh, cl
mov byte [edx + 0x303033f], cl
add dl, 0xfb
add eax, dword [ebx]
add eax, dword [eax]
into
mov ebx, 0x3030307
mov ecx, 0x303032b
hlt
Function at 0x41270b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add edx, edi
mov ebp, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41276c
mov edx, dword [edx + ecx*4]
add edx, edi
xor esi, esi
jmp 0x412755
movzx eax, al
or eax, 0x60
add esi, eax
inc edx
add esi, esi
mov al, byte [edx]
test al, al
jne 0x41274a
cmp esi, dword [esp + 0x10]
je 0x412776
mov edx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [esp + 0x14]
jb 0x412741
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx eax, word [ebp + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x41276e
Function at 0x41ee32
Capabilities:
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ee42
sub ecx, esi
mov esi, 0x811c9dc5
sar ecx, 1
lea ecx, [edx + ecx*2]
jmp 0x41ee69
movzx eax, word [edx]
imul esi, esi, 0x1000193
xor esi, eax
add edx, 2
cmp edx, ecx
jne 0x41ee5b
push 0x1f31d
push esi
call dword [sym.imp.msvcrt.dll_ldiv]
pop ecx
pop ecx
imul edx, edx, 0x41a7
imul ecx, eax, 0xb14
sub edx, ecx
jns 0x41ee91
add edx, 0x7fffffff
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x424b5b
Capabilities:
Get session information
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], edi
mov esi, edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
test ebx, ebx
jne 0x424ba7
mov edi, 0x80070057
mov ecx, edi
call fcn.0041b100
jmp 0x424cf7
push 0x208
lea eax, [ebp - 0x214]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x424bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov edi, eax
jmp 0x424b9b
cmp dword [ebp - 0x218], esi
je 0x424c0b
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x218], edi
lea eax, [ebp - 0x218]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424be0
push 4
pop ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], ecx
push eax
push ecx
lea eax, [ebp - 0x22c]
push eax
push 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x424be0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 5
push dword [ebp - 0x22c]
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x424be0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
push 7
push dword [ebp - 0x22c]
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x424be0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push dword [ebp - 0x220]
push 0x40b42c
push eax
call fcn.00428877
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x424cce
mov ecx, edi
call fcn.0041b100
mov esi, dword [ebp - 0x224]
jmp 0x424cf7
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x214]
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
sub eax, 2
neg eax
sbb eax, eax
inc eax
mov dword [ebx], eax
mov ecx, edi
call fcn.0041b049
test esi, esi
je 0x424d09
mov ecx, esi
call fcn.004202b8
cmp dword [ebp - 0x220], 0
je 0x424d25
push dword [ebp - 0x220]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
and dword [ebp - 0x220], 0
cmp dword [ebp - 0x21c], 0
je 0x424d41
push dword [ebp - 0x21c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
and dword [ebp - 0x21c], 0
cmp dword [ebp - 0x218], 0
je 0x424d56
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret 4
Function at 0x424e43
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 8], 0x500
push ebx
push esi
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov esi, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 8
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x424ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov ecx, eax
call fcn.0041b100
jmp 0x424f8c
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push edi
push edi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x424f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x424f64
cmp dword [ebp - 0x14], ebx
je 0x424f64
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x424f58
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x424f64
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x424f78
cmp dword [esi], ebx
jbe 0x424f4b
lea ebx, [esi + 4]
push dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x424f48
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x424f2c
mov ebx, dword [ebp - 0x1c]
jmp 0x424f4b
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor edi, edi
jmp 0x424f78
mov ecx, 0x8007000e
call fcn.0041b100
jmp 0x424f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov ecx, eax
call fcn.0041b100
test esi, esi
je 0x424f8b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
cmp dword [ebp - 0x10], 0
je 0x424f9b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x424fb3
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, 0x11c
push esi
push eax
mov dword [ebp - 0x124], eax
xor ebx, ebx
mov dword [ebp - 0x128], eax
inc ebx
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x425027
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42501c
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x425086
mov ecx, eax
call fcn.0041b100
jmp 0x425086
cmp dword [ebp - 0x11c], 6
jb 0x425086
lea eax, [ebp - 0x124]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x425059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
jmp 0x42501e
lea eax, [ebp - 0x128]
push eax
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x14
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42504a
xor ebx, ebx
cmp dword [ebp - 0x12c], ebx
setne bl
cmp dword [ebp - 0x124], 0
je 0x42509b
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret

Function at 0x4250b2
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0x40
mov eax, 0x4625de
call fcn.0044621d
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
xor edi, edi
push 0
push eax
inc edi
call sub.msvcrt.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
test ebx, ebx
jne 0x4250e8
mov esi, 0x80070057
mov ecx, esi
call fcn.0041b100
jmp 0x425131
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x44], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0x500
mov dword [ebp - 0x40], 0x40b2a0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x425184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov esi, eax
mov ecx, esi
call fcn.0041b100
test esi, esi
jns 0x425184
lea ecx, [ebp - 0x10]
call dword [0x46a52c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00425193
test eax, eax
jne 0x425155
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push 0x40b2b0
push eax
call dword [0x46a514]
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
xor edi, edi
call dword [0x46a528]
mov eax, edi
call fcn.004461f0
ret 0xc
Function at 0x425fe1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425fff
not al
movzx eax, al
shr eax, 4
and eax, 1
jmp 0x426001
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
call fcn.0041b049
xor ecx, ecx
call fcn.0041b049
xor eax, eax
pop esi
ret
Function at 0x427fe5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov edx, 0x40b650
mov dword [ebp - 4], ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call fcn.0042650d
mov edi, eax
test edi, edi
js 0x428047
xor ecx, ecx
mov dword [ebp - 0xc], ebx
call fcn.0041b049
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push 1
push ebx
push 0x40b7ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425e30
mov edi, dword [ebp - 8]
test eax, eax
jne 0x42804e
mov ecx, edi
call fcn.0041b100
mov ecx, edi
call fcn.0041b049
lea ecx, [ebp - 0xc]
call fcn.0041debe
cmp dword [ebp - 4], ebx
je 0x42806b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42aa96
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x42aafc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40c050
push 0x40bf50
push 0x8b
push edi
push 0x406890
push 0xa4000
push dword [esi + 0x10]
push 0x40c0c8
push 0x2000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
pop edi
pop esi
pop ebp
ret 4
Function at 0x42fca1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x463750
call fcn.0044621d
mov dword [ebp - 0x24], edx
mov ax, cx
mov word [ebp - 0xe], ax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test ax, ax
jne 0x42fcde
mov ecx, 0x80070057
mov edi, ecx
call fcn.0041b100
jmp 0x42fe2e
test edx, edx
je 0x42fccd
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push 0x40d96c
push eax
call fcn.00428877
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x42fd01
mov ecx, edi
jmp 0x42fcd4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42fd1d
movzx eax, al
shr eax, 4
and eax, 1
mov dword [ebp - 0x18], eax
jmp 0x42fd20
mov dword [ebp - 0x18], ebx
xor ecx, ecx
call fcn.0041b049
xor ecx, ecx
call fcn.0041b049
mov edi, ebx
cmp dword [ebp - 0x18], edi
je 0x42fde1
movzx eax, word [ebp - 0xe]
push eax
lea eax, [ebp - 0x14]
push 0x40d978
push eax
call fcn.00428877
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
jns 0x42fd67
mov ecx, edi
call fcn.0041b100
mov esi, dword [ebp - 0x14]
jmp 0x42fe2e
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], ebx
call fcn.00431b7e
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.004302be
test eax, eax
jne 0x42fd8d
mov edi, dword [ebp - 0x18]
jmp 0x42fcfd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
movzx eax, word [ebp - 0xe]
push 0x40d988
push 0x40d8e8
push 0x1dd
push ebx
mov ebx, dword [ebp - 0x20]
push 0x406890
push 0xa4000
push ebx
push eax
push 0x40d9a8
push 0x4000000
call fcn.00420037
add esp, 0x10
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov edi, dword [ebp - 0x18]
and ebx, 1
jmp 0x42fe29
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
movzx eax, word [ebp - 0xe]
push 0x40d988
push 0x40d8e8
push 0x1e5
push ebx
push 0x406890
push 0xa4000
push eax
push 0x40d9dc
push 0x4000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov ecx, edi
call fcn.0041b049
test esi, esi
je 0x42fe40
mov ecx, esi
call fcn.004202b8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42fe4e
mov ecx, eax
call fcn.004202b8
mov eax, edi
call fcn.004461f0
ret