joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e9b0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8a88
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x38]
push eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea ecx, [ebp - 0x290]
call fcn.00479d20
mov esi, eax
lea edi, [ebp - 0x168]
mov ecx, 0x47
mov eax, 0x4f6b5c
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x4e], 1
mov ecx, 0x4f409c
cmove eax, ecx
sub esp, 0x18
cmp word [ebp - 0x38], 9
mov edx, esp
mov dword [ebp - 0x40], esp
mov ecx, 0x4f6b70
push eax
mov eax, str.AMD64
cmovne eax, ecx
movzx ecx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
push dword [ebp - 0x160]
push dword [ebp - 0x164]
push str.win__d__d__d__d__d__s_s
push edx
call fcn.0042bde0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42eaac
mov eax, dword [ecx]
jmp 0x42eaae
mov eax, ecx
push 2
xor edx, edx
push 0x4f6ba8
mov word [eax], dx
call fcn.00415880
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e430
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42fb90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91d9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x42fbcf
mov eax, dword [esi]
jmp 0x42fbd1
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4f409c
push str.stats10
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x42fc1a
cmp dword [esi + 0x14], 8
jb 0x42fc05
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004304b0
add esp, 8
jmp 0x42fd41
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x23c]
call fcn.0042ffa0
add esp, 4
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00419140
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42fc95
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00415a10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00415980
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.0042eaf0
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42fcde
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00415a10
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x42fd41
push dword [ebp - 0x240]
mov edx, dword [ebp - 0x220]
push ecx
call fcn.004190a0
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00417f10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x42fd56
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00415a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret 0x18
Function at 0x430bd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d92ef
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
mov dword [ebp - 0x18], 0
call fcn.00493c02
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00415530
lea ecx, [edi + 0x18]
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041a090
lea ecx, [edi + 0x30]
xor eax, eax
lea edx, [esi + 0x30]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edx
mov word [ecx], ax
call fcn.00415340
mov dword [ebx], edi
mov eax, ebx
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 0x4366b0
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004ad5f0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x24
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x43675b
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
je 0x436736
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x43f3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da8a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00493c02
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00490b66
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441ec0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x214], eax
test esi, esi
je 0x442052
test eax, eax
je 0x442052
push ebx
push 4
push 0x4f8b84
push esi
call fcn.004bf9a4
add esp, 0xc
test eax, eax
je 0x441f50
push 4
push 0x4f8bb4
push esi
call fcn.004bf9a4
add esp, 0xc
test eax, eax
je 0x441f50
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x441f7f
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x441f7f
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b8830
add esp, 0xc
lea ebx, [ebp - 0x20c]
xor eax, eax
mov word [ebp - 0xa], ax
jmp 0x441f9e
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b8830
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.004ac7c3
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x441f99
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov eax, 4
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x214]
mov word [ebx], cx
lea ecx, [ebp - 0x210]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x442013
cmp eax, edi
jae 0x442013
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441fd0
sub ecx, edx
sar ecx, 1
je 0x442013
lea eax, [ebp - 0x210]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x441ff3
sub edx, ebx
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
cmp eax, edi
jbe 0x442026
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004b8830
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x4422a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
mov ebx, ecx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov edi, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
mov dword [ebp - 0x38], ebx
call fcn.0044bfc0
test al, al
je 0x4423f0
mov eax, 0x5a4d
cmp word [ebp - 0xc], ax
jne 0x4423f0
push 4
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0
push 0x3c
call fcn.0044bfc0
test al, al
je 0x4423f0
push 4
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push 0
push dword [ebp - 0x10]
call fcn.0044bfc0
test al, al
je 0x4423f0
cmp dword [ebp - 0x14], 0x4550
jne 0x4423f0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x14
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0044bc60
test al, al
je 0x4423f0
cmp dword [ebp - 0x30], 0x14
je 0x442354
mov dword [ebx + 0x60], 0x1e
jmp 0x4423f0
mov eax, dword [ebp - 0x10]
mov edx, 0x8664
mov cx, word [ebp - 0x2c]
add eax, 0x98
cmp cx, dx
je 0x44237e
mov edx, 0x200
cmp cx, dx
je 0x44237e
mov edx, 0x284
cmp cx, dx
jne 0x442381
add eax, 0x10
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
mov ecx, ebx
call fcn.0044bfc0
test al, al
je 0x4423f0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4423f0
mov edi, eax
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
ja 0x4423ad
cmp edi, 7
jbe 0x4423ee
mov ebx, 7
mov ecx, dword [ebp - 0x38]
mov esi, eax
push 1
dec ebx
lea eax, [ebp - 5]
sub edi, 1
push eax
sbb esi, 0
push esi
push edi
call fcn.0044bfc0
test al, al
je 0x4423df
cmp byte [ebp - 5], 0
jne 0x4423df
mov eax, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jmp 0x4423e5
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
test ebx, ebx
jne 0x4423b2
mov esi, dword [ebp - 0x34]
jmp 0x4423f0
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x445240
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x526170], esi
jne 0x4452fd
cmp dword [0x526110], esi
jne 0x4452f5
lea ecx, [esi + 1]
call fcn.00457630
test eax, eax
jne 0x4453d4
mov ecx, 0x526170
call fcn.0045b8e0
test eax, eax
jne 0x4453d4
call fcn.0044ff50
lea ecx, [esi + 1]
call fcn.004440a0
test eax, eax
jne 0x4453d4
call fcn.004451f0
call fcn.0045b160
mov esi, dword [0x526114]
mov ecx, esi
call fcn.00415220
test eax, eax
je 0x4452f5
mov ecx, esi
call fcn.00415220
cmp eax, 1
jb 0x4452e7
push 0x4f407c
push 1
mov ecx, esi
call fcn.00415220
dec eax
mov ecx, esi
push eax
call fcn.0044fe70
test eax, eax
je 0x4452f5
push 1
push 0x4f407c
mov ecx, esi
call fcn.004150b0
inc dword [0x526110]
xor esi, esi
mov eax, dword [0x526170]
test eax, eax
je 0x44530d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x526168]
mov ecx, eax
inc eax
mov dword [0x526168], eax
test ecx, ecx
jne 0x4453c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004bfc84
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x445369
mov ecx, 0x25
cmp cx, ax
jne 0x44538d
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 4
call fcn.00457710
mov esi, eax
test esi, esi
jne 0x4453bd
or dword [0x52616c], 1
mov cl, 1
call fcn.00444230
mov esi, eax
test esi, esi
jne 0x4453bd
call fcn.004447f0
call fcn.00444f60
jmp 0x4453c2
call fcn.004453f0
mov eax, dword [0x526170]
test eax, eax
je 0x4453d2
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x44b9e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
call fcn.004159e0
mov esi, dword [0x527d18]
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebx], 0
mov dword [ebp - 8], 1
test esi, esi
je 0x44ba27
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44ba3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x527d18]
test esi, esi
je 0x44ba54
push dword [ebp - 8]
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x4567e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc9ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.00452060
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
push dword [esi + 0xc]
mov dword [esi], vtable.CryptoPP::MontgomeryRepresentation.0
push 0
call fcn.004550b0
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [esi + 0xc]
mov edx, 4
lea eax, [eax + eax*4]
mov dword [esi + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00494103
add esp, 4
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 2
push dword [esi + 0xc]
mov edx, dword [esi + 0x40]
push dword [esi + 0x10]
mov ecx, dword [esi + 0x34]
call fcn.004540f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x457e60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00494a60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
mov dword [ebp - 0x400c], 0
mov word [ebp - 0x4008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x4018]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x457ef4
cmp dword [0x527d24], 0xd
jl 0x457f05
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4010], 0
push eax
push 4
lea eax, [ebp - 0x4010]
push eax
push 0x14
push dword [ebp - 0x4018]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x457ee8
cmp dword [ebp - 0x4010], 0
jne 0x457f05
push dword [ebp - 0x4018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493bec
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4014]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push 2
push dword [ebp - 0x4018]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x457ee8
push esi
push dword [ebp - 0x4018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x401c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x400c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor esi, esi
cmp dword [ebp - 0x4004], esi
jbe 0x457f94
nop word [eax + eax]
push dword [ebp + esi*8 - 0x4000]
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x457f92
inc esi
cmp esi, dword [ebp - 0x4004]
jb 0x457f70
jmp 0x457f94
mov bl, 1
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x458e20
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, ecx
push edi
test edx, 0x400
je 0x458e37
or dword [esi], 0x80
test edx, 0x800
je 0x458e45
or dword [esi], 0x100
test dl, 1
je 0x458e50
or dword [esi], 0x80000000
test edx, 0x100
je 0x458e5e
or dword [esi], 0x20000000
test edx, 0x200
je 0x458e6c
or dword [esi], 0x10000
test dl, 2
je 0x458e79
or dword [esi], 0x40000000
jmp 0x458e8d
test dl, 4
je 0x458e8d
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
or ecx, 0x100
mov dword [esi], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
test dl, 8
je 0x458ea6
mov dword [esi], 2
mov dword [edi], 5
jmp 0x458ec4
test dl, dl
jns 0x458eb8
mov dword [esi], 4
mov dword [edi], 3
jmp 0x458ec4
mov dword [esi], 3
mov dword [edi], 1
mov eax, dword [ebp + 0xc]
test dl, 0x10
je 0x458ecf
or dword [eax], 1
test dl, 0x20
je 0x458ed7
or dword [eax], 2
test dl, 0x40
je 0x458edf
or dword [eax], 4
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
test edx, edx
jns 0x458ef5
or dword [eax], 0x4000000
or dword [ecx], 0x1000
test edx, 0x10000000
je 0x458f09
or dword [eax], 0x2000000
or dword [ecx], 0x4000
test edx, 0x20000000
je 0x458f22
cmp dword [esi], 2
jne 0x458f22
mov dword [esi], 1
mov dword [edi], 2
pop edi
pop esi
test edx, 0x8000000
je 0x458f35
or dword [eax], 0x2000000
or dword [ecx], 1
test edx, 0x40000
je 0x458f49
or dword [eax], 0x200000
or dword [ecx], 0x200000
and edx, 0x7000000
je 0x458fa6
cmp edx, 0x6000000
ja 0x458f95
je 0x458f8a
cmp edx, 0x4000000
je 0x458f79
cmp edx, 0x5000000
jne 0x458fa6
or dword [eax], 0x10000000
or dword [ecx], 0x800
pop ebp
ret
or dword [eax], 0x2100
mov eax, dword [ebp + 0x20]
or dword [eax], 0x2100
pop ebp
ret
or dword [eax], 0x8000000
or dword [ecx], 4
pop ebp
ret
cmp edx, 0x7000000
jne 0x458fa6
or dword [eax], 0x80000000
or dword [ecx], 2
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x527d18]
mov ebx, edx
push edi
mov eax, ecx
mov dword [ebp - 8], 1
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebx], 0
test esi, esi
je 0x459f34
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x459f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x527d18]
test esi, esi
je 0x459f61
push dword [ebp - 8]
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret
Function at 0x459f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.00494a60
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x527d18]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x459fbc
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x459fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x45a014
cmp word [ebp - 0x10004], di
jne 0x459fe9
xor ecx, ecx
jmp 0x45a001
lea ecx, [ebp - 0x10004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459ff2
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push eax
call fcn.00415880
mov esi, dword [0x527d18]
test esi, esi
je 0x45a029
push ebx
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret