joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c8660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jne 0x7c8697
cmp dword [ebp + 8], 0
jne 0x7c8697
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004a2200
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
jne 0x7c86b4
cmp dword [ebp + 8], 0xf000
jbe 0x7c86bf
jmp 0x7c86b6
jle 0x7c86bf
mov dword [ebp - 0x1c], 0xf000
jmp 0x7c86c5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004070f4
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x7c8765
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x7c8740
mov eax, dword [ebp - 0x1c]
cdq
cmp edx, dword [ebp + 0xc]
jne 0x7c86f0
cmp eax, dword [ebp + 8]
jae 0x7c86f7
jmp 0x7c86f2
jge 0x7c86f7
mov edi, dword [ebp - 0x1c]
jmp 0x7c86fa
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov ecx, edi
mov eax, dword [ebp - 4]
call fcn.004a2564
cmp byte [ebp - 9], 0
je 0x7c872a
mov esi, edi
dec esi
test esi, esi
jl 0x7c872a
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + ebx]
xor al, 0x5a
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], al
inc ebx
dec esi
jne 0x7c8717
mov edx, dword [ebp - 0x20]
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004a25e0
mov eax, edi
cdq
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jne 0x7c86e0
cmp dword [ebp + 8], 0
jne 0x7c86e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c876c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00407110
ret
Function at 0x7e07c8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x7e07d1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e09c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x8c10a7], 0
je 0x7e085c
mov eax, dword [ebp - 4]
mov edx, 0x7e09dc
call fcn.0040bbfc
jne 0x7e0822
lea eax, [ebp - 4]
mov edx, 0x7e0a00
call fcn.0040abb8
jmp 0x7e085c
mov eax, dword [ebp - 4]
mov edx, 0x7e0a2c
call fcn.0040bbfc
jne 0x7e0840
lea eax, [ebp - 4]
mov edx, 0x7e0a4c
call fcn.0040abb8
jmp 0x7e085c
mov eax, dword [ebp - 4]
mov edx, 0x7e0a74
call fcn.0040bbfc
jne 0x7e085c
lea eax, [ebp - 4]
mov edx, 0x7e0a90
call fcn.0040abb8
lea edx, [ebp - 0x20]
mov eax, dword [0x8e0f24]
call fcn.005fb3c4
push dword [ebp - 0x20]
push dword [ebp - 4]
push 0x7e0ab4
mov eax, esi
mov edx, 3
call fcn.0040baec
cmp byte [0x8c10a0], 0
je 0x7e08e1
lea eax, [ebp - 8]
mov edx, 0xc8
call fcn.0040b98c
mov eax, dword [ebp - 8]
test eax, eax
je 0x7e08a2
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetComputerNameW
push dword [esi]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040bc34
push dword [ebp - 0x24]
push 0x7e0ab4
mov eax, esi
mov edx, 3
call fcn.0040baec
call fcn.00428164
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x16]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x12]
call fcn.00428014
test bl, bl
jne 0x7e0979
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0xc]
mov edx, dword [0x8c2498]
mov eax, 0x7e0ac4
call fcn.004278e0
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x10]
mov edx, dword [0x8c2498]
mov eax, 0x7e0ac4
call fcn.004278e0
push dword [esi]
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x12]
call fcn.00424120
push dword [ebp - 0x2c]
push 0x7e0ad8
push dword [ebp - 0xc]
push 0x7e0ad8
push dword [ebp - 0x10]
push 0x7e0ab4
mov eax, esi
mov edx, 7
call fcn.0040baec
lea edx, [ebp - 0x30]
mov eax, dword [esi]
call fcn.005fb3c4
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040ab70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e09c9
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a7f0
ret
Function at 0x7e16d8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x7e16e0
push ebx
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e18a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.0042e218
lea ecx, [ebp - 0xc]
mov edx, dword [0x8c28c4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0042e118
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x7e18c0
call fcn.0040be44
test eax, eax
jle 0x7e177e
call fcn.007e9b00
test al, al
je 0x7e177e
movzx eax, byte [0x7e18e0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
call fcn.007e785c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.005fb5d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, 0x7e18c0
call fcn.0042c58c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0040ab70
lea ecx, [ebp - 0x10]
mov edx, dword [0x8c28c4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0042e118
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x7e18f0
call fcn.0040be44
test eax, eax
jle 0x7e17ec
call fcn.007e9b00
test al, al
je 0x7e17ec
movzx eax, byte [0x7e18e0]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
call fcn.007e7944
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.005fb5d0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, 0x7e18f0
call fcn.0042c58c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0040ab70
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
mov ecx, 1
mov eax, 0x7e1928
call fcn.0040be44
test eax, eax
je 0x7e187d
lea eax, [ebp - 8]
mov edx, 0x208
call fcn.0040b98c
lea eax, [ebp - 8]
call fcn.0040ad48
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x7e1827
sub eax, 4
mov eax, dword [eax]
add eax, eax
xor ecx, ecx
xchg edx, eax
call fcn.00407f88
lea eax, [ebp - 8]
call fcn.0040ad48
mov esi, eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x7e1847
sub ebx, 4
mov ebx, dword [ebx]
push ebx
push esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
jbe 0x7e187d
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040bc34
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
call fcn.00423774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e18ac
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.0040a7f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a7f0
ret
Function at 0x7e43c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e448f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0042e218
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040abb8
cmp dword [ebp - 4], 0
je 0x7e445f
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423774
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.007e4250
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x7e44ac
call fcn.0040b04c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040b8d0
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e4496
lea eax, [ebp - 0x1c]
call fcn.0040a790
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040a820
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret

Function at 0x7e44e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e45af
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0042e218
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040abb8
cmp dword [ebp - 4], 0
je 0x7e457f
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423774
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.007e4250
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x7e45cc
call fcn.0040b04c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040b8d0
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e45b6
lea eax, [ebp - 0x1c]
call fcn.0040a790
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040a820
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret
Function at 0x7e45f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e46c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0042e218
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040abb8
cmp dword [ebp - 4], 0
je 0x7e4693
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00423774
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.007e4250
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x7e46e0
call fcn.0040b04c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040b8d0
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e46ca
lea eax, [ebp - 0x1c]
call fcn.0040a790
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040a820
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret

Function at 0x7e4708
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e47a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.006db67c
mov eax, dword [ebp - 8]
test eax, eax
je 0x7e4746
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jle 0x7e4786
push 1
push 0
push 0
push 0x7e47bc
push dword [ebp - 8]
push 0x7e4828
mov eax, dword [0x8c1afc]
push dword [eax]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040baec
mov eax, dword [ebp - 0xc]
call fcn.0040b7f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e47a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret

Function at 0x7e4838
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e48da
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.0042e218
mov eax, dword [ebp - 8]
test eax, eax
je 0x7e4874
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jle 0x7e48bf
push 1
push 0
push 0
push 0x7e48f4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0042e218
push dword [ebp - 0x10]
push 0x7e4960
mov eax, dword [0x8c1afc]
push dword [eax]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040baec
mov eax, dword [ebp - 0xc]
call fcn.0040b7f8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e48e1
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a7f0
ret
Function at 0x7e5c7c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7e5db9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x7e5dd8
call fcn.007e5bf8
mov ebx, eax
mov dword [ebp - 0x1d], ebx
test ebx, ebx
jne 0x7e5cc4
call fcn.00409f88
jmp 0x7e5dc0
push esi
push 0
push 0x1fffff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x7e5ce4
call fcn.00409f88
jmp 0x7e5dc0
push 0x40
push 0x3000
push 0xf
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7e5d0b
call fcn.00409f88
jmp 0x7e5dc0
mov byte [ebp - 0x23], 0x68
mov byte [ebp - 0x1e], 0xe8
mov word [ebp - 0x19], 0xc021
mov word [ebp - 0x17], 0xf275
mov byte [ebp - 0x15], 0xc3
mov dword [ebp - 0x22], edi
mov eax, dword [ebp - 0x1d]
sub eax, dword [ebp - 8]
sub eax, 0xa
mov dword [ebp - 0x1d], eax
lea eax, [ebp - 0x10]
push eax
push 0xf
lea eax, [ebp - 0x23]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x7e5d88
cmp dword [ebp - 0x10], 0xf
jne 0x7e5d88
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
mov ebx, eax
test ebx, ebx
je 0x7e5d88
push 0x1388
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e5dc0
cmp dword [ebp - 8], 0
je 0x7e5daf
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_VirtualFreeEx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7e6f04
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x7e6f0d
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7e70d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
call fcn.005fb798
mov eax, dword [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.0040bc34
lea eax, [ebp - 0x18]
mov edx, 0x7e70f0
call fcn.0040ba0c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
sub al, 0x40
call fcn.00425924
mov ebx, eax
imul eax, dword [ebp - 0xc], 0x190a
cdq
idiv dword [ebp - 0xc]
imul eax, eax, 0x6b
xor ebx, eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0xc8
call fcn.0040b34c
mov eax, dword [ebp - 4]
test eax, eax
je 0x7e6fa5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040b230
mov eax, dword [ebp - 4]
test eax, eax
je 0x7e6fd5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jbe 0x7e6fec
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
add ebx, ecx
inc edx
dec eax
jne 0x7e6fde
lea eax, [ebp - 0x24]
movzx edx, byte [ebp - 0xc]
add dl, 0x50
call fcn.0040b810
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00424148
mov eax, dword [ebp - 0x2c]
mov ecx, 2
mov edx, 1
call fcn.0040bc34
push dword [ebp - 0x28]
mov eax, ebx
mov ecx, 0xf4240
xor edx, edx
div ecx
mov eax, edx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00424148
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040baec
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040b3c4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0060b6f0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
mov edx, 1
call fcn.0040b230
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.0040b8d0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0042340c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040b3c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e70dc
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0040a820
lea eax, [ebp - 0x38]
mov edx, 9
call fcn.0040a7f0
lea eax, [ebp - 4]
call fcn.0040a7b4
ret
Function at 0x7e70f4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
call fcn.007f7a54
test al, al
je 0x7e71e5
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x7e7146
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 0x3f0
jne 0x7e7146
lea eax, [ebp - 8]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x7e71e5
mov eax, 0x2000
call fcn.004070f4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x2000
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
test ebx, ebx
je 0x7e71de
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x8c10c4
call sub.advapi32.dll_AllocateAndInitializeSid
mov edi, dword [esi]
dec edi
test edi, edi
jl 0x7e71d5
inc edi
xor ebx, ebx
mov eax, dword [esi + ebx*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x7e71d1
mov eax, dword [esi + ebx*8 + 8]
and eax, 0x10
cmp eax, 0x10
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x7e71d5
inc ebx
dec edi
jne 0x7e71ab
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00407110
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7e71f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
call fcn.007f7a54
test al, al
je 0x7e7251
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x8c10c4
call sub.advapi32.dll_AllocateAndInitializeSid
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7e7251
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x7e7248
cmp dword [ebp - 8], 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_FreeSid
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x7e97cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x7e9810
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x7e97fd
test al, 0x10
jne 0x7e9801
xor eax, eax
jmp 0x7e9803
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7e981a
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x7e9d2c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7e9f7c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [ebp - 9], 0
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x7e9f5c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x7e9e72
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x10000
call fcn.0040fd9c
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
push 0
call sub.advapi32.dll_OpenEventLogW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x7e9dcb
cmp dword [ebp - 0x10], 0xffffffff
jne 0x7e9ddd
call fcn.00409f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7e9f66
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetNumberOfEventLogRecords
test eax, eax
je 0x7e9df3
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0
push 9
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ReadEventLogW
test eax, eax
jne 0x7e9e4b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 9
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ReadEventLogW
test eax, eax
je 0x7e9e4b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov al, 1
call fcn.004c6c54
fstp qword [esi]
wait
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e9e79
cmp dword [ebp - 0x10], 0xffffffff
je 0x7e9e67
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseEventLog
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040fdac
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7e9f83
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x7eeb0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x7eeb25
add esp, 0xfffffff0
call fcn.0040906c
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7eeba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi + 0x30], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005fb3c4
mov edx, dword [ebp - 8]
lea eax, [esi + 4]
call fcn.0040ab70
lea eax, [esi + 8]
mov edx, dword [0x7eaaf4]
call fcn.0040d3dc
lea eax, [esi + 0xc]
mov edx, dword [0x7eab2c]
call fcn.0040d3dc
lea eax, [esi + 0x10]
mov edx, dword [0x7eab64]
call fcn.0040d3dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7eeba8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret