joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416177
Capabilities:
Reference sql statements

Disassembly:
push 0x44
mov eax, 0x5c137a
call fcn.0058ec5e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
call fcn.00417200
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push str.SELECT_c_id__c_path__c_proc__c_size__c_mod__c_on__c_blocked_FROM_doc_events2_WHERE_c_blocked__1_ORDER_BY_c_on_DESC_
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0049d2f0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x416255
lea eax, [ebp - 0x50]
push eax
call fcn.00411a09
mov byte [ebp - 4], 3
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.0049c880
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov esi, ebx
call fcn.0049c900
push eax
lea eax, [ebp - 0x48]
call fcn.0040fedc
push 2
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x44]
call fcn.0040fedc
push 3
pop esi
call fcn.0049c880
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 4
pop esi
call fcn.0049c840
mov dword [ebp - 0x38], eax
push 5
pop esi
call fcn.0049c840
mov dword [ebp - 0x34], eax
push 6
pop esi
call fcn.0049c840
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00417262
mov eax, edi
push eax
call fcn.0049c980
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
call fcn.00416023
jmp 0x4161b8
mov byte [ebp - 4], bl
lea esi, [ebp - 0x28]
call fcn.0049c7f0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
call fcn.0058ed03
ret 8

Function at 0x41ce7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
cmp esi, edi
jne 0x41ce9c
mov eax, 0xa0
jmp 0x41cf5a
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x41cea5
mov dword [eax], edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 8]
mov dword [esi], edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x41ced1
cmp eax, 2
je 0x41cf19
jmp 0x41cf59
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, str.LaunchPermission
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41cef8
cmp eax, 0x7a
jne 0x41cf17
push dword [ebp - 0xc]
call fcn.005819cb
pop ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [ebp - 8], edi
je 0x41cf48
mov eax, dword [esi]
cmp eax, edi
je 0x41cf2b
push eax
call fcn.005818ee
pop ecx
mov ebx, dword [ebp + 0xc]
mov dword [esi], edi
cmp ebx, edi
je 0x41cf48
mov ecx, esi
call fcn.0041d39c
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x41cf48
mov dword [ebx], 1
cmp dword [ebp - 4], edi
je 0x41cf56
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
pop edi
leave
ret
Function at 0x41cf5d
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
mov esi, ecx
push eax
mov dword [ebp - 0x80], esi
mov edi, edx
call fcn.00586790
and dword [ebp - 0x74], 0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x78], 0xff
call fcn.0041d4e4
test eax, eax
je 0x41cfb3
xor eax, eax
jmp 0x41d01c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [edi]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
cmp eax, 0x7a
jne 0x41d019
push dword [ebp - 0x74]
and dword [ebp - 0x70], 0
call fcn.005819cb
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
push dword [ebp - 0x80]
mov dword [edi], eax
push 0
mov dword [ebp - 0x78], 0xff
call esi
test eax, eax
jne 0x41d019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00581268
add ebp, 0x198
leave
ret

Function at 0x41d330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x6810b8
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push closesocket
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x41d388
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0xc]
push 3
push esi
push str.LaunchPermission
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x41d396
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41d653
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0xa4]
push esi
push eax
mov dword [ebp - 0xa8], 0x11c
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d6d0
cmp dword [ebp - 0xa4], 5
jne 0x41d6cb
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jb 0x41d6c7
jne 0x41d6b8
cmp word [ebp + 0x6c], 2
jmp 0x41d6c5
cmp dword [ebp - 0xa0], 2
jne 0x41d6d0
cmp word [ebp + 0x6c], ax
jae 0x41d6d0
mov esi, eax
jmp 0x41d6d0
jae 0x41d6d0
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00581268
add ebp, 0x78
leave
ret
Function at 0x41d784
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x6df1d8
push 0x41d90e
push eax
push eax
call fcn.00583186
add esp, 0x18
mov dword [0x6df1f4], eax
ret
Function at 0x42052d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bde81
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
add edi, 4
cmp byte [ebp + 0x14], 0
lea esi, [esp + 0x10]
je 0x42056e
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], eax
call fcn.00407caa
and dword [esp + 0x80], 0
push dword [ebp + 0x10]
lea ecx, [esp + 0x5c]
call fcn.00407caa
mov dword [esp + 0x80], 2
push dword [esi + 4]
lea ecx, [esp + 0x40]
push dword [esi]
lea ebx, [esp + 0x18]
call fcn.0042ba24
or dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.004207d3
push dword [esp + 0x14]
mov esi, ebx
push dword [esp + 0x14]
call fcn.004180b5
sub esp, 0x1c
mov esi, eax
mov edi, esp
mov dword [esp + 0x34], esp
call fcn.004201b0
mov dword [esp + 0xa4], 3
or dword [esp + 0xa4], 0xffffffff
lea esi, [esp + 0x60]
call fcn.00431191
add esp, 0x24
mov esi, eax
mov dword [esp + 0x80], 4
push esi
lea ecx, [esp + 0x1c]
call fcn.00407caa
mov byte [esp + 0x80], 5
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], eax
mov byte [esp + 0x80], 6
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 4]
add esi, 0x20
mov ebx, eax
mov byte [esp + 0x10], 1
jmp 0x420673
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x1c]
mov ebx, edi
call fcn.0042ad9d
test eax, eax
setl byte [esp + 0x10]
cmp byte [esp + 0x10], 0
je 0x420670
mov edi, dword [edi]
jmp 0x420673
mov edi, dword [edi + 8]
cmp byte [edi + 0x31], 0
je 0x42064f
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.0042eb7a
mov byte [esp + 0x80], 4
lea eax, [esp + 0x18]
push eax
call fcn.0045b04d
or dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.0045b04d
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x420f62
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
lea edi, [ecx + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov eax, ecx
pop edi
ret
Function at 0x421431
Capabilities:
Get common file path

Disassembly:
push 0x80c
mov eax, 0x5bdd80
call fcn.0058ec94
mov eax, dword [ebp + 8]
and dword [ebp - 0x818], 0
mov dword [ebp - 0x814], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp + 0xc]
call fcn.00408830
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x421472
sub eax, edx
lea edi, [ebp - 0x810]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x421486
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x814]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004085b5
mov dword [ebp - 0x818], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004085f6
mov eax, dword [ebp - 0x814]
call fcn.0058ed17
ret
Function at 0x42174d
Capabilities:
Get disk information

Disassembly:
push 0x80c
mov eax, 0x5c1070
call fcn.0058ec94
lea eax, [ebp - 0x814]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x814], 0
lea esi, [ebp - 0x814]
je 0x4217db
lea eax, [ebp - 0x818]
push eax
call fcn.0040855f
and dword [ebp - 4], 0
push esi
push 0x68807c
lea eax, [ebp - 0x818]
call fcn.004310f7
pop ecx
pop ecx
lea eax, [ebp - 0x818]
push eax
mov eax, ebx
call fcn.00416ae3
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4217b4
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.004085f6
cmp word [esi], 0
jne 0x42177e
call fcn.0058ed17
ret

Function at 0x4217e1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c1037
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
call fcn.0042c06f
lea eax, [esp + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x14], 0
lea edi, [esp + 0x14]
je 0x4218ba
lea eax, [esp + 0xc]
push eax
call fcn.0040855f
and dword [esp + 0x828], 0
push edi
push 0x68807c
lea eax, [esp + 0x14]
call fcn.004310f7
pop ecx
pop ecx
lea esi, [esp + 0xc]
call fcn.00408830
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42188c
mov eax, esi
push eax
mov eax, dword [esp + 0x14]
call fcn.00416ae3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x421891
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004085f6
cmp word [edi], 0
jne 0x421848
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret
Function at 0x4218dd
Capabilities:
Get disk information

Disassembly:
push 0xa8c
mov eax, 0x5bdcd3
call fcn.0058ec94
mov edi, ecx
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0xa90]
call fcn.0048069e
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0xa88]
call fcn.0048069e
mov ebx, dword [ebp - 0xa84]
lea esi, [ebp - 0xa88]
call fcn.0048069e
mov ebx, dword [ebp - 0xa8c]
lea esi, [ebp - 0xa90]
call fcn.0048069e
mov eax, dword [ebp - 0xa88]
test eax, eax
je 0x42193e
cmp eax, dword [ebp - 0xa90]
je 0x421943
call fcn.0058204a
mov ecx, dword [ebp - 0xa8c]
cmp dword [ebp - 0xa84], ecx
je 0x421964
push dword [ebp - 0xa84]
push dword [edi + 0x10]
call fcn.004316b9
pop ecx
pop ecx
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x8dc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x8dc], 0
lea ebx, [ebp - 0x8dc]
je 0x421ae8
lea eax, [ebp - 0xa80]
push eax
call fcn.0040855f
and dword [ebp - 4], 0
push ebx
push 0x68807c
lea eax, [ebp - 0xa80]
call fcn.004310f7
pop ecx
pop ecx
lea esi, [ebp - 0xa80]
call fcn.00408830
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x421ab7
lea eax, [ebp - 0xa7c]
call fcn.00420902
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
xor esi, esi
lea eax, [ebp - 0xda]
push esi
push eax
call fcn.00586790
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xa94]
push eax
push 0x64
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0xa80]
mov dword [ebp - 0xa94], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x421ab9
mov eax, dword [ebp - 0xa94]
push eax
push ecx
mov dword [ebp - 0xa7c], eax
mov eax, esp
mov dword [ebp - 0xa8c], esp
lea ecx, [ebp - 0xa80]
push ecx
push eax
mov dword [ebp - 0x8e8], esi
call fcn.00408586
mov byte [ebp - 4], 1
push ecx
mov eax, esp
mov dword [ebp - 0xa84], esp
lea ecx, [ebp - 0xdc]
push ecx
push eax
call fcn.004085b5
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa98]
push eax
mov byte [ebp - 4], 0
call fcn.00421aee
add esp, 0x10
mov byte [ebp - 4], 3
mov esi, eax
call fcn.00408830
lea ecx, [ebp - 0xa78]
movzx edx, word [eax]
inc eax
mov word [ecx], dx
inc eax
inc ecx
inc ecx
test dx, dx
jne 0x421a8c
mov byte [ebp - 4], dl
lea ecx, [ebp - 0xa98]
call fcn.004085f6
lea eax, [ebp - 0xa7c]
push eax
mov eax, edi
call fcn.0042c1d4
xor esi, esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x421abe
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.004085f6
cmp word [ebx], si
jne 0x42198a
call fcn.0058ed17
ret
Function at 0x421e06
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x5ba67b
call fcn.0058ec2b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call fcn.0040844d
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push ebx
push closesocket
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421e89
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.005819cb
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov byte [esi + eax], bl
call fcn.00408519
push esi
call fcn.005818ee
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.0058ed03
ret

Function at 0x421e92
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5b61da
call fcn.0058ec2b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
mov esi, closesocket
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x421ed6
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x421f44
mov byte [ebp + 0xb], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x421f11
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x14]
call esi
cmp byte [ebp + 0xb], bl
je 0x421f27
push dword [ebp - 0x10]
call esi
push dword [0x6ddcb8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004085f6
call fcn.0058ed03
ret
mov dword [ebp - 0x10], esi
jmp 0x421ed6
Function at 0x4221aa
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x42223b
lea eax, [ebp - 8]
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x422238
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x422233
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push ebx
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x422233
mov byte [ebp - 1], 1
push dword [ebp - 8]
call esi
push edi
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422365
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, closesocket
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x422395
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4223bb
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x4223be
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x4223ae
jmp 0x4223b0
Function at 0x422402
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
jne 0x42244e
cmp dword [0x6c438c], 1
jl 0x422447
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenSCManager__i
push str.Helper::ToolsStartService
push 1
call fcn.00540a02
add esp, 0x10
xor eax, eax
jmp 0x4225d6
push 0x14
push str.TrustedInstaller
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x422492
cmp dword [0x6c438c], 1
jl 0x422489
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenService__i
push str.Helper::ToolsStartService
push 1
call fcn.00540a02
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x422447
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4224d6
cmp dword [0x6c438c], 1
jl 0x4224c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_StartService__i
push str.Helper::ToolsStartService
push 1
call fcn.00540a02
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x10]
call esi
jmp 0x422447
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call edi
test eax, eax
jne 0x42250c
cmp dword [0x6c438c], 1
jl 0x422447
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_QueryServiceStatusEx__i
jmp 0x422438
call fcn.004225db
mov ebx, dword [ebp - 0x24]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
jmp 0x42258e
mov eax, dword [ebp - 0x20]
push 0xa
xor edx, edx
pop ecx
div ecx
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
jb 0x42253b
mov eax, 0x2710
cmp esi, eax
jbe 0x42253d
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x422594
cmp dword [ebp - 0x24], ebx
jbe 0x42256e
call fcn.004225db
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 8], eax
jmp 0x422585
call fcn.004225db
xor ecx, ecx
sub eax, dword [ebp - 8]
sbb edx, ecx
cmp edx, ecx
ja 0x422594
jb 0x422585
cmp eax, dword [ebp - 0x20]
ja 0x422594
cmp dword [ebp - 4], 0xea60
ja 0x422594
cmp dword [ebp - 0x34], 2
je 0x42251d
xor eax, eax
cmp dword [ebp - 0x34], 4
sete al
cmp dword [0x6c438c], 1
mov edi, eax
jl 0x4225c4
xor eax, eax
test edi, edi
setne al
push eax
push str.WD_start_res__i
push str.Helper::ToolsStartService
push 1
call fcn.00540a02
add esp, 0x10
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4227cc
Capabilities:
Get hostname

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x5bdc3b
call fcn.0058ec2b
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x104
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp]
push eax
push esi
call fcn.004085b5
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00581268
add ebp, 0x20c
leave
ret