joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fd9f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.0048a830
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43fe2b
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x4df93c
call fcn.0044a8d7
add esp, 0xc
jmp 0x43fea3
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x43fe5e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x43fe86
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x43fe95
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4df93c
call fcn.0044a8d7
add esp, 0xc
jmp 0x43fe9c
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x440910
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 6
pop ecx
xor esi, esi
push 1
push esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
je 0x44097a
push ebx
push 0x14
push str.kxescore
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x440976
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x440973
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov dword [ebp - 4], 1
push ebx
call esi
push edi
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x441064
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [esi], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4410ed
push ebx
call fcn.0048979d
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4410de
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4bcc40
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4410de
cmp dword [ebp - 0xc], ebx
je 0x4410de
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi], ecx
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4410ed
push dword [ebp - 4]
call fcn.0048a8aa
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x4410f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, eax
mov ecx, 0x4de4b4
call fcn.004016ab
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.0048a830
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00401af8
push esi
call fcn.00487245
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x44121e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048a830
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x441277
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x441328
mov eax, dword [ebp - 0x94]
dec eax
je 0x441314
dec eax
jne 0x441328
mov eax, dword [ebp - 0xa0]
xor ecx, ecx
inc ecx
cmp eax, 6
jne 0x4412c4
cmp dword [ebp - 0x9c], ecx
jne 0x4412ae
xor eax, eax
cmp byte [ebp + 0x76], cl
setne al
add eax, 8
jmp 0x441310
cmp dword [ebp - 0x9c], edi
jne 0x4412fd
xor eax, eax
cmp byte [ebp + 0x76], cl
setne al
lea eax, [eax + eax + 7]
jmp 0x441310
cmp eax, 5
jne 0x4412ee
cmp dword [ebp - 0x9c], 2
jne 0x4412d5
push eax
jmp 0x4412f5
cmp dword [ebp - 0x9c], 1
jne 0x4412e2
push 6
jmp 0x4412f5
cmp dword [ebp - 0x9c], edi
jne 0x441328
push 3
jmp 0x4412f5
cmp eax, 4
ja 0x4412f8
push 4
pop edi
jmp 0x441328
cmp eax, 6
jb 0x441328
cmp dword [ebp - 0x9c], 2
jb 0x441328
cmp byte [ebp + 0x76], cl
jne 0x441328
call fcn.00441152
mov edi, eax
jmp 0x441328
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x4413a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x441431
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4413da
cmp dword [ebp - 8], 2
jne 0x441430
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015cc
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401871
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x441418
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x441428
push eax
call fcn.0048ab31
pop ecx
mov edx, esi
call fcn.0040160c
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x441b61
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4df900], esi
mov dword [ebp - 4], esi
je 0x441b7d
xor eax, eax
inc eax
jmp 0x441c3d
push edi
push str.C16A0C4F_108B_4580_A7A0_8DEF25D2E9EF
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
push str.GlobalE02A6D98_80B3_4a54_89E3_116EB96D0664_EXIST
push esi
push 1
push esi
mov dword [0x4df5a8], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
lea edi, [ebp - 4]
mov dword [0x4df5ac], eax
call fcn.004417ca
test eax, eax
jge 0x441bb8
xor eax, eax
jmp 0x441c3c
cmp dword [ebp - 4], esi
je 0x441c3a
mov eax, dword [0x4df8f8]
push ebx
mov ebx, dword [eax]
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x441c36
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
call ebx
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
xor esi, esi
inc esi
pop ebx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4424c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
call dword [section..data]
mov eax, dword [ebp + 8]
xor edi, edi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x40c], edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 0xc], ebx
jne 0x44250a
call fcn.004439c9
mov esi, eax
jmp 0x4425e9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x442527
call fcn.004439c9
jmp 0x4425de
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x44251d
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x44256a
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x442560
lea eax, [ebp - 0x40c]
call fcn.00434e05
mov eax, 0x8007000e
jmp 0x442604
push 2
push eax
call fcn.00437eb3
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x44258a
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.004433f9
jmp 0x442596
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov ebx, dword [ebp - 0x40c]
cmp ebx, edi
jne 0x4425a7
mov esi, 0x8007000e
jmp 0x4425e0
call dword [section..data]
push esi
push ebx
push esi
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, edi
je 0x44251d
mov ecx, dword [ebp - 0x40c]
push dword [ebp + 0x18]
mov word [ecx + eax*2], di
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.0044260b
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x442602
lea eax, [ebp - 0x40c]
call fcn.00434e05
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x44341a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x44342d
push 0x80004005
call fcn.00401970
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x443434
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x443978
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x443a9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and dword [ebp - 8], 0
test eax, eax
je 0x443b4f
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edi, 0x4ba534
push edi
push eax
mov dword [ebp - 4], 0x40
call esi
xor ecx, ecx
inc ecx
cmp dword [ebp - 0xc], ecx
jne 0x443b4c
test eax, eax
jne 0x443af3
and word [ebx + 0x3e], ax
mov dword [ebp - 8], ecx
jmp 0x443b4c
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.0048c2d5
mov ebx, eax
test ebx, ebx
pop ecx
je 0x443b4c
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push edi
push dword [eax + 4]
call esi
test eax, eax
jne 0x443b45
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
push 0x1f
push ebx
shr eax, 1
and word [ebx + eax*2], 0
push 0x20
push esi
call fcn.0048ea27
add esp, 0x10
and word [esi + 0x3e], 0
mov dword [ebp - 8], 1
push ebx
call fcn.0048b25e
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x443b56
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x58]
push ecx
push esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
call fcn.0048a830
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret
Function at 0x4443ae
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x58], esi
jne 0x4443de
push 0x98
call fcn.0046e739
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4443d1
call fcn.00443b56
mov eax, ebx
jmp 0x4443d3
xor eax, eax
cmp eax, esi
mov dword [edi + 0x58], eax
jne 0x4443de
xor eax, eax
jmp 0x444454
push ebp
push 0x4c3308
push dword [esp + 0x14]
call fcn.0049167a
mov ebp, eax
cmp ebp, esi
pop ecx
pop ecx
jne 0x4443f9
xor eax, eax
jmp 0x444453
cmp dword [edi + 0x5c], esi
mov ebx, 0xff
jne 0x44440d
push ebx
call fcn.0048979d
pop ecx
mov dword [edi + 0x5c], eax
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.00491929
add esp, 0x10
cmp eax, esi
je 0x44443e
push dword [edi + 0x5c]
mov esi, dword [edi + 0x58]
call fcn.00443b8e
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.00491929
add esp, 0x10
test eax, eax
jne 0x444420
push ebp
call fcn.004919b6
mov eax, dword [edi + 0x58]
pop ecx
lea esi, [edi + 4]
push esi
call fcn.00443c25
mov eax, esi
pop ebp
pop esi
pop ebx
ret 4

Function at 0x44447c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444503
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444503
cmp dword [ebp - 8], 1
jne 0x444503
cmp dword [ebp - 0xc], 6
jb 0x444503
push esi
call fcn.0048ab31
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x444500
cmp ax, 0x2f
je 0x444500
push 0x4bcc40
push esi
call fcn.00491a32
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x444511
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x44483e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
or edi, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x444857
or eax, edi
jmp 0x44490f
lea eax, [ebp - 0x54]
push esi
push eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], bx
call fcn.00444459
test eax, eax
pop ecx
je 0x444901
mov edi, 0x4ba040
mov eax, edi
lea ecx, [ebp - 0x1c]
call fcn.00401000
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x54]
lea esi, [ebp - 0x1c]
call fcn.004012ff
push edi
mov eax, esi
push eax
call fcn.0040103b
mov eax, str._aurl:
lea ecx, [ebp - 0x38]
call fcn.00401000
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0040103b
cmp dword [ebp - 0x20], 8
mov ecx, dword [ebp - 0x34]
jae 0x4448c3
lea ecx, [ebp - 0x34]
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x4448cf
lea eax, [ebp - 0x18]
push 1
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
push ebx
push 1
lea esi, [ebp - 0x38]
dec ecx
mov edi, ecx
call fcn.0040114b
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.0040114b
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x444913
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x444929
or eax, 0xffffffff
jmp 0x44498d
push dword [ebp + 8]
call fcn.0044483e
cmp eax, esi
pop ecx
je 0x44498d
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.0048a830
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44498a
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
call fcn.00444990
pop ecx
jmp 0x44498d
push 0xfffffffffffffffa
pop eax
pop esi
leave
ret
Function at 0x444e79
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x444ef4
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x444eed
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x444ed3
cmp dword [ebp - 0x2c], 3
je 0x444eea
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00401e42
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4454a8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4454a7
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.00401ea1
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4454a7
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4454a7
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x445458
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x445492
xor eax, eax
jmp 0x445499
push eax
call fcn.0048c9a0
pop ecx
mov edx, esi
call fcn.00401e81
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x4454b8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x445963
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x44597c
mov eax, dword [ebp - 4]
jmp 0x445a56
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x445a31
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4bd470]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4bd470]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4bd470]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4bd470]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4bd470]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4bd470]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4bd470]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4bd470]
dec ebp
jne 0x44599b
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x445a4d
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4bd470]
dec ecx
jne 0x445a3b
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4463be
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
push edi
mov edi, esi
jne 0x4463db
push ebp
push ebp
push 2
xor ecx, ecx
pop eax
call fcn.00447679
xor al, al
jmp 0x446454
call fcn.00445e0b
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
push 2
push ebp
push ebx
call fcn.00492483
push ebx
call fcn.00491f2d
push ebp
push ebp
push ebx
mov edi, eax
call fcn.00492483
add esp, 0x1c
cmp edi, ebp
jne 0x446410
push ebp
push ebp
push 0xd
mov edi, esi
jmp 0x4463cf
lea eax, [edi + 1]
push eax
call fcn.0048979d
push ebx
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.00491929
add esp, 0x14
cmp eax, 1
je 0x446440
push ebp
call fcn.0048a8aa
pop ecx
push 0
push 0
push 2
jmp 0x44640c
mov eax, ebp
mov ecx, esi
call fcn.00446458
push ebp
mov bl, al
call fcn.0048a8aa
pop ecx
mov al, bl
pop edi
pop ebp
pop ebx
ret
Function at 0x448a02
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
mov esi, str.Administrators
cmp eax, esi
je 0x448ac5
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x448ac5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push ebx
jmp 0x448a9f
cmp dword [ebp - 4], ebx
je 0x448a58
push dword [ebp - 4]
call fcn.0048b25e
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x448a69
push dword [ebp - 8]
call fcn.0048b25e
pop ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x448aaa
push dword [ebp - 0x10]
call fcn.0048c2d5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.0048c2d5
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x448a47
push dword [ebp - 8]
call fcn.0048b25e
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ecx
pop edi
je 0x448ac7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x448ac7
xor eax, eax
pop esi
pop ebx
leave
ret