joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495a17
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.0046f980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x404d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x404d75
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046f980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404d75
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404e10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
Function at 0x4059f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
lea esi, [edi + 4]
push esi
call fcn.00401730
cmp dword [ebp - 0x18], 0
je 0x405b0d
cmp dword [edi + 0x34], 0xffffffff
je 0x405b0d
lea ecx, [ebp - 0x28]
call fcn.004022a0
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0x15555555
mov eax, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
je 0x405b60
mov dword [ebp - 0x34], ebx
push 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
call fcn.0046d9cd
mov edx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 8], edi
inc dword [ebx + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push 0x406240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x405b04
cmp dword [ebx + 0x24], 0x15555555
lea edi, [ebx + 0x20]
mov ebx, dword [edi]
je 0x405b6a
mov dword [ebp - 0x40], edi
push 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
call fcn.0046d9cd
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [eax + 8], ecx
inc dword [edi + 4]
mov ecx, dword [ebx + 4]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebx + 4], eax
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x405b42
lea ecx, [ebp - 0x28]
call fcn.004022a0
test edi, edi
je 0x405b42
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x405b29
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov ecx, esi
mov dword [edi + 0x4c], 0
call fcn.00405580
push 0x50
push edi
call fcn.0046d9fd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call fcn.0046bebe
push str.list_too_long
call fcn.0046bebe
int3
Function at 0x405f60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495c2b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x406069
mov edi, dword [esi + 0x34]
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401730
mov dword [ebp - 4], 0
test edi, edi
je 0x40605c
cmp dword [ebp - 0x48], 0
je 0x40605c
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
push edi
lea ecx, [ebp - 0xb0]
call fcn.004131b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x406032
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406028
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061c5
push edx
push ecx
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00414b40
lea ecx, [ebp - 0xb0]
call fcn.00413420
lea ecx, [ebp - 0x58]
call fcn.004022a0
jmp 0x4061aa
cmp dword [esi + 0x3c], 0
je 0x4061aa
lea ecx, [ebp - 0xd4]
call fcn.00406ed0
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [esi + 0x1c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x70]
call fcn.00401730
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00408240
lea ecx, [ebp - 0x70]
call fcn.004022a0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test esi, esi
je 0x406176
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x406136
nop
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x406119
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40610f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061ca
mov eax, edx
push ecx
push eax
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4060e0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40616c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061ca
push ecx
push esi
call fcn.0046d9fd
add esp, 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00407220
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.004022a0
lea ecx, [ebp - 0xd4]
call fcn.00407000
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.0046dc6a
mov esp, ebp
pop ebp
ret
call fcn.00478f8e
call fcn.00478f8e
int3
Function at 0x40dc40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4966d0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call fcn.0046f980
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x40dca0
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x40de48
cmp ecx, 0x104
ja 0x40dd0c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dcf0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x40de67
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x40ddc5
cmp eax, 0x7fffffff
ja 0x40de8c
push eax
lea ecx, [ebp - 0x230]
call fcn.00402bd0
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x40dda6
push edx
push 0
push edi
call fcn.0046f980
add esp, 0xc
jmp 0x40ddb7
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40ddda
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de01
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402db0
test edi, edi
je 0x40de6e
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x40de3c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de91
push ebx
push edi
call fcn.0046d9fd
add esp, 8
jmp 0x40de6e
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x49f6a8
mov ecx, esi
call fcn.00402db0
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 - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
call fcn.00402a00
call fcn.00478f8e
int3
Function at 0x40e0c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496776
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 3
jb 0x40e2d1
mov edi, dword [esi + 0x14]
mov eax, esi
cmp edi, 8
jb 0x40e107
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40e2d1
mov eax, esi
cmp edi, 8
jb 0x40e11b
mov eax, dword [esi]
cmp word [eax + 4], 0x5c
je 0x40e136
mov eax, esi
cmp edi, 8
jb 0x40e12b
mov eax, dword [esi]
cmp word [eax + 4], 0x2f
jne 0x40e2d1
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x648]
push eax
call fcn.0046f980
push 0x20a
lea eax, [ebp - 0x43c]
push 0
push eax
call fcn.0046f980
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0046f980
add esp, 0x24
mov eax, esi
cmp edi, 8
jb 0x40e18b
mov eax, dword [esi]
push 0x105
lea ecx, [ebp - 0x230]
push ecx
push 0x105
lea ecx, [ebp - 0x43c]
push ecx
push 0x105
lea ecx, [ebp - 0x648]
push ecx
push 0xa
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0047a6c3
lea ecx, [ebp - 0x24]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1c4
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40e2d1
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40e1f0
add word [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40e22e
cmp word [ebp - 0x22], 0x3a
jne 0x40e22e
push 0x49f9a0
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.0047a062
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40e227
cmp eax, 6
jne 0x40e22e
mov al, 1
jmp 0x40e2d3
lea eax, [ebp - 0x690]
push esi
push eax
call fcn.00465910
push eax
lea eax, [ebp - 0x678]
mov dword [ebp - 4], 0
push eax
call fcn.00465610
push eax
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 1
push eax
call fcn.00466540
add esp, 0x18
lea ecx, [ebp - 0x678]
call fcn.004022a0
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 4
call fcn.004022a0
cmp dword [ebp - 0x64c], 8
lea eax, [ebp - 0x6a8]
push 1
lea esi, [ebp - 0x660]
cmovae esi, dword [ebp - 0x660]
push eax
call fcn.00461af0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40e2aa
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
lea ecx, [ebp - 0x6a8]
setne bl
call fcn.004022a0
lea ecx, [ebp - 0x660]
call fcn.004022a0
mov al, bl
jmp 0x40e2d3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
Function at 0x40f050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x40f081
cmp esi, 0xffffffff
je 0x40f081
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x40f0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40f19e
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsoftwpscloudperfinfoc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f19e
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x40f15d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub ecx, 0xd53e8000
push 0
push 0x2710
sbb eax, 0x19db1de
push eax
push ecx
call fcn.0046dfc0
jmp 0x40f161
xor eax, eax
xor edx, edx
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0xb
push 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 8
Function at 0x410dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496c05
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x3c]
push eax
call fcn.00405c60
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 4], 0
mov edx, 4
mov dword [ebp - 0x34], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046da0b
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov edx, eax
mov dword [ebp - 0x2c], edx
mov esi, dword [ecx]
cmp esi, ecx
je 0x410f39
mov ebx, edx
jmp 0x410e50
lea ecx, [esi + 8]
mov dword [ebx], 0
call fcn.00405e00
test eax, eax
jne 0x410f25
lea ecx, [esi + 8]
call fcn.00405de0
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x410f25
lea ecx, [esi + 8]
call fcn.00405df0
test eax, eax
jne 0x410fd0
lea ecx, [esi + 8]
call fcn.00405c50
test eax, eax
je 0x410fd0
call fcn.004042e0
mov ecx, eax
call fcn.00404320
mov dword [ebp - 0x40], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00405dc0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x410ece
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00411dd0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x410f20
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410f16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410fe1
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov edi, dword [ebp - 0x30]
mov dword [ebx], edi
mov esi, dword [esi]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jne 0x410e50
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
push 0x2710
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test ebx, ebx
jle 0x410fa1
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x410f9b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push eax
call ebx
test eax, eax
je 0x410f90
cmp dword [ebp - 0x30], 0x103
jne 0x410f90
mov eax, dword [ebp - 0x2c]
push 0
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x2c]
push dword [eax + esi*4]
call edi
mov ecx, dword [ebp - 0x2c]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x410f60
push dword [ebp - 0x2c]
call fcn.0046da14
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00405530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x410f23
call fcn.00478f8e
int3
Function at 0x413130
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0046f980
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403330
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 4
Function at 0x413b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.00413db0
cmp eax, 3
jne 0x413b24
push dword [ebp + 8]
mov ecx, esi
call fcn.00413aa0
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004140e0
test al, al
jne 0x413b3d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x413bf7
cmp dword [esi], 0
je 0x413b82
call fcn.004140e0
test al, al
je 0x413b82
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413b82
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x413bff
cmp eax, 3
je 0x413bff
call fcn.004140e0
test al, al
jne 0x413b98
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x413bf7
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413bef
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
test eax, eax
je 0x413c7f
mov ecx, esi
call fcn.00413db0
cmp eax, 2
jne 0x413c7f
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x413c7f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x413c7f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push 0x2000
mov dword [ebp - 0x18], eax
call fcn.00414a80
test eax, eax
je 0x413c71
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x413c60
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x413c7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413db0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x413dda
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x413f0b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.0046da0b
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x413eac
mov esi, dword [ebx]
test esi, esi
je 0x413eac
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x413eac
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x413eac
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.0046da14
add esp, 4
test esi, esi
je 0x413eb5
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0046da14
add esp, 4
push 0x220
mov ecx, edi
call fcn.00413f20
test eax, eax
je 0x413efd
mov ecx, edi
call fcn.00413c90
cmp eax, 3
je 0x413ee4
mov ecx, edi
call fcn.00413ce0
cmp eax, 0x2000
mov eax, 2
jne 0x413ee9
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret