joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067db
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
cmp dword [eax + 0x18], 8
jb 0x4067ef
mov eax, dword [eax + 4]
jmp 0x4067f2
add eax, 4
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40695b
push ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x406952
push esi
lea esi, [eax + 1]
push edi
push esi
call fcn.00411c7f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x406950
push esi
push ebx
push edi
call fcn.00413a00
mov esi, dword [ebp - 0xc]
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406949
cmp dword [ebp - 8], esi
jne 0x406949
push edi
lea ecx, [ebp - 0x2c]
call fcn.004060ab
push ebx
push str._mkndcbhcgphcfkkddanakjiepeknbgle_:
lea ecx, [ebp - 0x2c]
call fcn.00403731
cmp eax, 0xffffffff
je 0x40693e
cmp eax, ebx
je 0x40693e
dec eax
mov cl, byte [eax + edi]
cmp cl, 0x20
je 0x40689b
cmp cl, 9
je 0x40689b
cmp cl, 0xd
je 0x40689b
cmp cl, 0xa
je 0x40689b
inc eax
push eax
push 0x428988
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.00403731
cmp eax, 0xffffffff
je 0x40693e
mov dword [ebp + 8], 1
lea esi, [eax + 1]
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040ddfe
mov al, byte [eax]
cmp al, 0x7b
jne 0x4068e8
inc dword [ebp + 8]
jmp 0x4068ef
cmp al, 0x7d
jne 0x4068ef
dec dword [ebp + 8]
cmp dword [ebp + 8], ebx
je 0x4068fb
cmp al, bl
je 0x4068fb
inc esi
jmp 0x4068d4
push ebx
cmp al, 0x7d
jne 0x40693f
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
cmp eax, 0xffffffff
je 0x40693f
lea eax, [esi + 1]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
sub esi, eax
push esi
add eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40693e
cmp esi, dword [ebp - 8]
jne 0x40693e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403cab
push edi
call fcn.00412857
pop ecx
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret
Function at 0x406f3e
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x4264c6
call fcn.0041362c
sub esp, 0x288
push ebx
push esi
push edi
push 7
pop esi
xor edi, edi
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
call fcn.00402f02
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
call fcn.00402f02
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00405e34
mov esi, 0x4283ec
push esi
lea ecx, [ebp - 0x44]
call fcn.00405e34
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.00405e34
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x406fa5
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004038ff
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.004038ff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00404c0f
push esi
lea ecx, [ebp - 0x28]
call fcn.00405e34
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e34
cmp word [ebp - 0x268], 0x2e
jne 0x407032
cmp word [ebp - 0x266], di
je 0x407049
cmp word [ebp - 0x266], 0x2e
jne 0x407032
cmp word [ebp - 0x264], di
je 0x407049
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40703e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407069
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406fe9
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406fc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40705d

Function at 0x407073
Capabilities:
Delete directory
Delete registry value

Disassembly:
mov eax, 0x4264e0
call fcn.0041362c
sub esp, 0x21c
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040cbeb
pop ecx
test eax, eax
jne 0x407137
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x10]
call fcn.004029c3
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004015be
test eax, eax
jne 0x407137
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
mov esi, str.UpgradeTempDirectory
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x105
call fcn.00401637
test eax, eax
jne 0x40712e
lea eax, [ebp - 0x228]
push eax
push 0x428c1c
call fcn.0040192d
lea eax, [ebp - 0x228]
push 0x428c18
push eax
call fcn.00406f3e
add esp, 0x10
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x18]
call fcn.004015a3
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x18]
call fcn.004015a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x407154
Capabilities:
Delete directory

Disassembly:
mov eax, 0x42650a
call fcn.0041362c
sub esp, 0x74
mov eax, dword [ebp + 0xc]
test byte [eax], 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x4072b7
add eax, 0x2c
push eax
lea ecx, [ebp - 0x64]
call fcn.004057c9
xor ebx, ebx
push 0x428d4c
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0040361a
test eax, eax
je 0x4072ac
push 0x428d44
lea ecx, [ebp - 0x64]
call fcn.0040361a
test eax, eax
je 0x4072ac
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.004057c9
push 0x4283ec
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00405e34
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404c74
push str.AppDataRoamingOpera_SoftwareOpera_Stable_
lea ecx, [ebp - 0x48]
call fcn.00405e34
push str.Preferences
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00406a01
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.004067db
push 0x428c78
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406a01
add esp, 0x1c
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x40722a
lea edi, [ebp - 0x28]
cmp edi, ebx
je 0x40723d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x407241
xor eax, eax
jmp 0x40725a
lea esi, [eax + eax]
mov eax, esi
call fcn.00413ec0
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004012b1
push 1
push 0x428c74
push eax
call fcn.004114f6
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x407276
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407287
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004038ff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004038ff
push ebx
push esi
jmp 0x4072af
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004038ff
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4078e5
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x426530
call fcn.0041362c
sub esp, 0x47c
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push eax
call fcn.00413a00
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x10], 0x105
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x4079ac
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004057c9
and dword [ebp - 4], 0
push 0x428d50
lea ecx, [ebp - 0x2c]
call fcn.00405e34
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40795b
lea eax, [ebp - 0x28]
push esi
lea ecx, [ebp - 0x488]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40799f
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00407154
pop ecx
pop ecx
lea eax, [ebp - 0x488]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407971
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004038ff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40b52f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
xor eax, eax
cmp byte [0x434044], bl
je 0x40b5de
push 0x206
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.00413a00
add esp, 0xc
push ebx
push 0x17
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b5ac
push esi
push edi
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x40b584
push 8
pop ecx
push ebx
lea eax, [ebp - 0x208]
push ebx
mov esi, str.Google_Chrome_
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040b041
add esp, 0xc
pop edi
pop esi
xor eax, eax
push ebx
mov word [ebp - 0x208], ax
push 0x19
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b5db
push ebx
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040b041
add esp, 0xc
xor eax, eax
inc eax
pop ebx
leave
ret
Function at 0x40c47e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.00406e4a
mov eax, dword [ebp + 8]
dec eax
pop ecx
pop ecx
je 0x40c51c
sub eax, 4
je 0x40c504
sub eax, 3
je 0x40c4b5
push str.OSSService:_No_action_performed_for_session_change_event
call fcn.0040192d
pop ecx
jmp 0x40c58a
xor edi, edi
cmp dword [0x43402c], edi
jle 0x40c4c6
push str.OSSService:__Session_unlock_event_detected_while_a_valid_ProxyMonitor_is_running.__Ignoring.
jmp 0x40c4aa
push str.OSSService:_WTS_SESSION_UNLOCK_event_detected__spawning_ProxyMonitor
call fcn.0040192d
push dword [esi + 4]
push str.OSSService:_SessionID___d
call fcn.0040192d
add esp, 0xc
call fcn.004064e6
push dword [0x433df0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40c55a
xor edi, edi
cmp dword [0x43402c], edi
jle 0x40c515
push str.OSSService:__Session_logon_event_detected_after_session_connect_event.__Ignoring.
jmp 0x40c4aa
push str.OSSService:_Session_logon_event_detected__spawning_ProxyMonitor
jmp 0x40c4cb
push str.OSSService:_WTS_CONSOLE_CONNECT_event_detected__spawning_ProxyMonitor
call fcn.0040192d
push dword [esi + 4]
push str.OSSService:_SessionID___d
call fcn.0040192d
add esp, 0xc
call fcn.004064e6
push dword [0x433df0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edi, edi
cmp eax, edi
je 0x40c58a
mov ecx, dword [esi + 4]
push edi
push edi
push eax
push 0x40ba34
push edi
push edi
mov dword [eax], ecx
call fcn.0041374c
add esp, 0x18
cmp eax, edi
je 0x40c58a
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x434038
call fcn.004037fc
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40c903
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4342a8]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 2
mov dword [ebp - 8], eax
jge 0x40c945
push 0
push 0x433e20
push str.OSSService_n_nUsage:_OSSService_.exe___install____remove____service_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40c9f1
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x433e20
push ebx
mov dword [ebp - 0xc], 0x104
call fcn.0040cfb9
pop ecx
pop ecx
test eax, eax
jge 0x40c969
or eax, 0xffffffff
jmp 0x40ca05
push edi
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jle 0x40c9f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x40c98e
cmp cx, 0x2f
jne 0x40c9e9
push str.install
add eax, 2
push eax
call esi
test eax, eax
jne 0x40c9a2
call fcn.00401717
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
inc eax
push str.remove
inc eax
push eax
call esi
test eax, eax
jne 0x40c9bb
call fcn.004017b9
mov eax, dword [ebp - 8]
mov eax, dword [eax + edi*4]
inc eax
push str.service
inc eax
push eax
call esi
test eax, eax
jne 0x40c9e9
and dword [ebp - 0x14], eax
and dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x40c5c7
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
inc edi
cmp edi, dword [ebp - 4]
jl 0x40c979
pop esi
pop edi
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop ebx
leave
ret
Function at 0x40ce54
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x426b64
call fcn.0041362c
sub esp, 0x21c
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0x104
cmp dword [ebp + 8], edi
jne 0x40cea5
lea ecx, [ebp - 0x18]
call fcn.004015a3
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push edi
call esi
mov eax, 0x80004003
jmp 0x40cfab
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040cbeb
mov ebx, eax
cmp ebx, edi
pop ecx
jge 0x40cebb
lea ecx, [ebp - 0x18]
jmp 0x40cee6
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x10]
call fcn.004029c3
push 0x2001f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004015be
mov ebx, eax
cmp ebx, edi
lea ecx, [ebp - 0x18]
jge 0x40cf00
call fcn.004015a3
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push dword [ebp - 0x10]
call esi
mov eax, ebx
jmp 0x40cfaa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
mov ebx, str.UpgradeRunLine
push ebx
call fcn.00401637
cmp eax, edi
mov dword [ebp - 0x1c], eax
jge 0x40cf36
lea ecx, [ebp - 0x18]
call fcn.004015a3
lea ecx, [ebp - 0x18]
call fcn.004015a3
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
jmp 0x40cf76
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
call fcn.004029c3
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040ca77
cmp eax, edi
mov dword [ebp - 0x1c], eax
jge 0x40cf82
lea ecx, [ebp - 0x18]
call fcn.004015a3
lea ecx, [ebp - 0x18]
call fcn.004015a3
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x40cfaa
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.004015a3
lea ecx, [ebp - 0x18]
call fcn.004015a3
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40d644
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 3
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 4]
call fcn.00411c7f
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 3
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40d698
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.00412857
mov eax, esi
jmp 0x40d702
lea eax, [ebp - 0x10]
push eax
push str.SeTcbPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [edi]
xor ecx, ecx
cmp edx, ebx
jbe 0x40d6dd
lea eax, [edi + 4]
mov esi, dword [eax + 4]
cmp esi, dword [ebp - 0xc]
jne 0x40d6c2
mov esi, dword [eax]
cmp esi, dword [ebp - 0x10]
je 0x40d6cc
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x40d6b3
jmp 0x40d6dd
inc ecx
imul ecx, ecx, 0xc
lea eax, [ecx + edi]
or dword [eax], 2
mov dword [ebp - 8], 1
push ebx
push ebx
push ebx
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
call fcn.00412857
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d7d7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40d8eb
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40d7f3
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x40d8eb
push ebx
push str._s
mov esi, 0x104
lea eax, [ebp - 0x660]
push esi
push eax
call fcn.00412ba0
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8ee
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00413a00
lea eax, [ebp - 0x42c]
push eax
push ebx
push str._s_s
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00412ba0
add esp, 0x20
test byte [ebp - 0x458], 0x10
je 0x40d8bd
lea eax, [ebp - 0x458]
push eax
call fcn.0040d7a9
pop ecx
test eax, eax
jne 0x40d8ca
lea eax, [ebp - 0x208]
push eax
call fcn.0040d708
lea eax, [ebp - 0x208]
push eax
call fcn.0040d7d7
pop ecx
pop ecx
test eax, eax
jne 0x40d8e0
jmp 0x40d8ca
lea eax, [ebp - 0x208]
push eax
call fcn.0040d708
pop ecx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d84b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40d8ee
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d8f3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x114
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00413a00
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d94c
cmp dword [ebp - 0x110], 6
jne 0x40d946
cmp dword [ebp - 0x10c], 2
jae 0x40d948
cmp dword [ebp - 0x110], 6
jbe 0x40d94c
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40d9ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [eax]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jle 0x40d9f9
push esi
inc bl
movzx ebx, bl
mov edx, dword [eax + ebx*4 + 8]
add cl, dl
movzx ecx, cl
lea esi, [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [esi]
mov dword [eax + ebx*4 + 8], ecx
add cl, dl
mov dword [esi], edx
mov esi, dword [ebp + 0xc]
movzx ecx, cl
mov cl, byte [eax + ecx*4 + 8]
add esi, edi
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x40d9c2
pop esi
pop edi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
pop ebp
ret

Function at 0x40de88
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x40deb0
mov al, 1
jmp 0x40ded5
push edi
push 0x434240
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413a7a
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
jne 0x40ded8
mov al, 1
pop edi
pop esi
leave
ret
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x40defb
mov bl, 1
push edi
call fcn.00412857
pop ecx
mov al, bl
pop ebx
jmp 0x40ded4
mov byte [ebp - 1], 0
cmp dword [ebp - 8], esi
jbe 0x40df6f
push 0x105
lea eax, [ebp - 0x318]
push eax
push dword [edi + esi*4]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40df63
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
call fcn.00403887
push dword [eax]
lea eax, [ebp - 0x318]
push eax
call fcn.00413ffd
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x108]
pop ecx
inc bl
pop ecx
cmp dword [ebp - 0x10c], eax
je 0x40df5f
push dword [ebp - 0x10c]
call fcn.00412862
pop ecx
test bl, bl
jne 0x40df6b
inc esi
cmp esi, dword [ebp - 8]
jb 0x40df04
jmp 0x40df6f
mov byte [ebp - 1], 1
mov bl, byte [ebp - 1]
jmp 0x40deef
Function at 0x40e33f
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x120]
call fcn.00403887
mov eax, dword [eax]
push 0x24
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x40e381
push dword [ebp - 0x120]
call fcn.00412862
pop ecx
test edi, edi
jne 0x40e38c
xor al, al
pop edi
leave
ret 8
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor bl, bl
test eax, eax
jne 0x40e3ac
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
jmp 0x40e387
push esi
xor esi, esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40e3d9
cmp dword [ebp - 0x18], 1
je 0x40e3d7
inc esi
cmp esi, 0xa
jb 0x40e3af
jmp 0x40e3d9
mov bl, 1
pop esi
jmp 0x40e3a0