joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406805
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], eax
cmp dword [ebx], esi
jbe 0x40682f
lea edi, [ebx + 4]
mov edx, dword [edi]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40684d
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x406813
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40683a
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40685b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x406ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004982c0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x38], 0x1440
call fcn.00406c50
test al, al
je 0x406d47
or dword [ebp - 0x38], 0x1000
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
test al, al
je 0x406d47
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d20
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x406faf
lea esi, [ebp - 0x4d10]
call fcn.00410680
call fcn.00410720
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004982c0
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x210]
mov edx, str.7CF4158BB8E292F27389C3E4FC1B7B06488DC207FAE47A9A391003EC39EC492EF4C66E05EC5DBAEBE9489A5F80A37BBD9D16C4BDA491EB79
call fcn.00411490
mov ecx, 0x10
mov esi, str.C435D7366E0385E2CD67BFE1B01C21C0
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x1c6
lea eax, [ebp - 0x5de]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004982c0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x416]
push edx
mov word [ebp - 0x418], cx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x418]
lea edx, [ebp - 0x620]
call fcn.00411490
lea ecx, [ebp - 0x4d1c]
push ecx
lea edx, [ebp - 0x4d14]
push edx
lea eax, [ebp - 0x4d18]
push eax
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4d18], 0
mov dword [ebp - 0x4d14], 0
mov dword [ebp - 0x4d1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x4070b0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4d14]
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x407210
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40723f
lea esi, [ebp - 0x4d10]
call fcn.00410680
call fcn.00410720
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.004982c0
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00411490
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF726088A95E9AE71F
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004982c0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00411490
jmp 0x4072f4
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x407317
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 0x2a
push edx
call fcn.004070d0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x407340
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40736f
lea esi, [ebp - 0x4d10]
call fcn.00410680
call fcn.00410720
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.004982c0
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00411490
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF56E31B3E50449DC6
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004982c0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00411490
jmp 0x407424
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x407447
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 0xd
push edx
call fcn.004070d0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x407470
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4d10
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x40749f
lea esi, [ebp - 0x4d10]
call fcn.00410680
call fcn.00410720
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.004982c0
add esp, 0xc
mov edx, esi
push edx
lea ecx, [ebp - 0x418]
mov edx, str.02D0D3B17D64A874
call fcn.00411490
mov ecx, 0x20
mov esi, str.EE9E757CEA16CAF1CFDB93D3E775370BC1D4E864E95820BF56E31B3E50449DC6
lea edi, [ebp - 0x620]
rep movsd dword es:[edi], dword [esi]
push 0x186
lea eax, [ebp - 0x59e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004982c0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x4d10]
push eax
lea ecx, [ebp - 0x210]
lea edx, [ebp - 0x620]
call fcn.00411490
jmp 0x407554
lea ecx, [ebp - 0x418]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
jne 0x407577
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
push eax
lea edx, [ebp - 0x210]
push 1
push edx
call fcn.004070d0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x4076a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc601
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x407810
test esi, esi
je 0x407810
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004982c0
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x407733
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407810
lea edx, [ebp - 0x244]
push edx
mov ecx, str.QHWatchdog.exe
call fcn.00425750
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.00411720
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x218]
call fcn.00425750
lea ecx, [ebp - 0x240]
push ecx
mov byte [ebp - 4], 2
call fcn.00414e00
push eax
call fcn.00414e90
lea edi, [ebp - 0x240]
call fcn.00411720
mov edx, edi
push edx
lea eax, [ebp - 0x244]
call fcn.00411b20
add esp, 4
test al, al
jne 0x40782e
push 0x22c
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.004982c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407753
lea ecx, [ebp - 0x244]
call fcn.004064a0
lea esi, [ebp - 0x248]
call fcn.004045d0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.004064a0
lea ecx, [ebp - 0x244]
call fcn.004064a0
lea esi, [ebp - 0x248]
call fcn.004045d0
mov eax, edi
jmp 0x407813
Function at 0x407c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc566
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x220], 0
call fcn.004982c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x407cd2
push esi
mov ecx, 0x4c561c
call fcn.00425750
jmp 0x407da2
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x218]
call fcn.00425750
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea eax, [ebp - 0x220]
call fcn.00411780
mov eax, dword [eax]
push 0x4ce6b0
push eax
call fcn.00492756
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407d55
lea ecx, [ebp - 0x21c]
push ecx
mov edx, 0x4ccd44
jmp 0x407d61
lea edx, [ebp - 0x21c]
push edx
mov edx, str.explorer.exe
call fcn.00411be0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00425a60
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407da2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x407e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc528
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x407fe1
cmp dword [ebp + 0xc], ebx
je 0x407fe1
lea ecx, [ebp - 0x14]
push ecx
push 0xf00ff
push eax
mov dword [ebp - 0x14], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407fcd
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x407fcd
lea edi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00407bf0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407fc7
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x407fc7
push 1
push eax
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x407f35
mov esi, 0x400
jmp 0x407f38
mov dword [ebp + 8], ebx
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004982c0
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
xor ecx, ecx
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x68], str.winsta0default
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00425750
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x70]
push eax
push ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
push ebx
push ebx
lea esi, [ebp - 0x18]
call fcn.004254c0
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x407fa9
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp esi, ebx
je 0x407fb9
mov ecx, dword [ebp - 0x24]
push ecx
call edi
mov edx, dword [ebp - 0x28]
push edx
call edi
mov eax, dword [ebp - 0x10]
push eax
call edi
lea ecx, [ebp - 0x18]
call fcn.004064a0
mov ecx, dword [ebp - 0x14]
push ecx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
mov dword [ebp - 0x210], 0
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0x104
mov word [ebp - 0x20c], ax
call fcn.004982c0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x4ce6b4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40afa0
xor edx, edx
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x4c561c
mov word [esi + 4], dx
call fcn.00411ed0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x214], 1
mov eax, esi
mov edx, 0x4c561c
jne 0x40afb6
lea edx, [ebp - 0x20c]
call fcn.00411e00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x40afd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b74eb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x238], ebx
cmp esi, 0x23
je 0x40b022
cmp esi, 0x1a
je 0x40b022
mov edx, 0x4c561c
mov eax, edi
call fcn.00411e00
jmp 0x40b158
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.004982c0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40b077
push ebx
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0x4c561c
mov esi, edi
mov word [edi + 4], ax
call fcn.00411ed0
jmp 0x40b158
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b0a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea esi, [ebp - 0x234]
call fcn.00411ed0
push 0x11
push str.360TotalSecurity
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.00415390
cmp byte [ebp + 8], bl
jne 0x40b10f
push 0xffffffffffffffff
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov ecx, esi
mov word [edi + 4], ax
push ecx
mov eax, edi
call fcn.00415470
cmp dword [ebp - 0x21c], 8
jb 0x40b158
mov edx, dword [ebp - 0x230]
push edx
call fcn.00491da6
add esp, 4
jmp 0x40b158
lea eax, [ebp - 0x234]
call fcn.00427d90
test al, al
je 0x40b141
push 0xffffffffffffffff
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea ecx, [ebp - 0x234]
mov word [edi + 4], ax
push ecx
mov eax, edi
call fcn.00415470
jmp 0x40b14d
mov edx, 0x4c561c
mov eax, edi
call fcn.00411e00
lea esi, [ebp - 0x234]
call fcn.00411e70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x40b340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd052
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov esi, edx
push 0x4ce6b0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
call fcn.0041c1c0
add esp, 4
mov dword [ebp - 4], edi
mov ebx, 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40b39e
mov edx, 0x4cdae8
jmp 0x40b3b7
lea eax, [ebp - 0x14]
push eax
call fcn.004069a0
add esp, 4
mov dword [ebp - 4], ebx
mov edx, dword [eax]
mov ebx, 3
mov dword [ebp - 0x10], ebx
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b3c0
sub eax, edi
sar eax, 1
push eax
push edx
mov eax, esi
call fcn.00415390
mov dword [ebp - 4], 0
test bl, 2
je 0x40b409
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x10], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], 0
je 0x40b436
cmp dword [esi + 0x18], 8
jb 0x40b41a
mov ebx, dword [esi + 4]
jmp 0x40b41d
lea ebx, [esi + 4]
test ebx, ebx
je 0x40b436
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b436
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Administrators
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
call fcn.0041c1c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40b7b2
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x28]
jae 0x40b799
lea esi, [ebp - 0x28]
test esi, esi
je 0x40b7b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b7b2
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0xa
push str._virusscan
lea eax, [ebp - 0x2c]
call fcn.00415390
mov ecx, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x40b7d1
lea ecx, [ebp - 0x28]
push edi
call fcn.00425750
cmp dword [ebp - 0x14], esi
jb 0x40b7e8
mov eax, dword [ebp - 0x28]
push eax
call fcn.00491da6
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x40d320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x211], bl
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d476
push edi
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push esi
push eax
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x210], dx
call fcn.004982c0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x21c]
push eax
push esi
push str.svcVersion
push ecx
mov dword [ebp - 0x220], 0x208
call edi
lea ebx, [esi + 1]
test eax, eax
jne 0x40d3e3
cmp dword [ebp - 0x21c], ebx
jne 0x40d3e3
xor edx, edx
mov word [ebp - 8], dx
jmp 0x40d419
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
push str.Version
push eax
call edi
test eax, eax
jne 0x40d452
cmp dword [ebp - 0x21c], ebx
jne 0x40d452
xor ecx, ecx
mov word [ebp - 8], cx
lea eax, [ebp - 0x210]
mov byte [ebp - 0x211], bl
lea edx, [eax + 2]
jmp 0x40d430
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40d430
mov esi, dword [ebp - 0x224]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00411ed0
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x211]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x40d490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 1
call fcn.004982c0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x4ce6b4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360zip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
test eax, eax
jne 0x40d53e
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d525
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40d54a
xor eax, eax
push eax
mov word [esi + 4], ax
push 0x4c561c
call fcn.00411ed0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret