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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
push edi
mov edi, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x49a023
mov esi, dword [eax]
jmp 0x49a025
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x49a041
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x49a030
mov ecx, dword [ebx + 0x14]
mov ebx, ecx
and ebx, edx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], ebx
ja 0x49a059
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add ebx, eax
mov ecx, dword [edx + 8]
lea eax, [ebx + ebx]
mov edx, dword [edx]
lea eax, [eax + 1]
mov dword [ebp - 8], edx
mov esi, dword [ecx + ebx*8]
mov ebx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edx
jne 0x49a07f
mov eax, edx
jmp 0x49a083
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x49a149
cmp dword [ebp - 4], 0x10
lea ecx, [esi + 8]
jb 0x49a09b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
jmp 0x49a09e
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov ebx, dword [ecx + 0x10]
jb 0x49a0a9
mov ecx, dword [ecx]
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.0040f240
add esp, 0xc
test eax, eax
jne 0x49a0cc
cmp ebx, edi
jb 0x49a0cc
cmp ebx, edi
setne al
test eax, eax
je 0x49a0d9
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x49a077
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov ebx, dword [ecx + 0x10]
jb 0x49a0e7
mov ecx, dword [ecx]
cmp dword [ebp - 4], 0x10
jb 0x49a0f5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
push ecx
push dword [ebp + 0xc]
call fcn.0040f240
add esp, 0xc
test eax, eax
jne 0x49a130
cmp edi, ebx
jb 0x49a130
cmp edi, ebx
setne al
test eax, eax
jne 0x49a130
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5070
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x4a5a90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x4a5aeb
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4a5aeb
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4a5ac6
xor esi, esi
jmp 0x4a5acd
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4a5ad7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4a5ae0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x4a5aa6
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x4a5d5e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4a5dfb
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4a5d96
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x4a5dfb
nop
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4a5de2
cmp dl, byte [eax]
jne 0x4a5de2
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4a5dd5
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x4a5e06
test ecx, ecx
jle 0x4a5df5
lea ebx, [esi + 4]
jmp 0x4a5df7
mov edi, esi
cmp ebx, edi
jne 0x4a5db0
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax + 4]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6d61
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004a6716
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4a6d87
mov esi, dword [ebp - 4]
jmp 0x4a6de1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a6ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a6ddc
lea eax, [ebp - 4]
push eax
call fcn.004a78ba
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4a6de2
push esi
call fcn.004a6d61
pop ecx
test eax, eax
je 0x4a6de2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a6ddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a6ddf
jmp 0x4a6de2
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004a7be5
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a9638
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a96c4
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 4], ebx
jne 0x4a96bc
cmp edi, 0x200000
ja 0x4a96bc
lea eax, [edi + 2]
push eax
call fcn.004cdcd1
pop ecx
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a96bc
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4a96bc
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a9bec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.004a7279
push eax
lea ecx, [ebp - 8]
call fcn.004a6656
call fcn.004a7279
push eax
lea ecx, [ebp - 0x10]
call fcn.004a8a4c
push ebx
push ebx
push 2
push ebx
xor eax, eax
mov edi, ebx
inc eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4a9d5e
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004a9f94
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
je 0x4a9cf8
dec eax
je 0x4a9ca6
dec eax
jne 0x4a9c9f
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 0x14], 0xfeff
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4a9d53
cmp dword [ebp - 0xc], 2
jne 0x4a9d53
mov edi, dword [esi - 0xc]
mov ecx, esi
add edi, edi
jmp 0x4a9d36
mov ecx, ebx
jmp 0x4a9d36
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0xbbef
push eax
push 3
lea eax, [ebp - 8]
mov byte [ebp - 6], 0xbf
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4a9d53
cmp dword [ebp - 0xc], 3
jne 0x4a9d53
test esi, esi
je 0x4a9d0b
push esi
call fcn.004cde96
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x4a9d0b
lea edi, [eax + eax]
mov eax, edi
call fcn.004cf680
mov eax, esp
push 0xfde9
jmp 0x4a9d1d
test esi, esi
je 0x4a9d0b
push esi
call fcn.004cde96
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x4a9d0f
mov eax, ebx
jmp 0x4a9d25
lea edi, [eax + eax]
mov eax, edi
call fcn.004cf680
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004a930d
push eax
lea ecx, [ebp - 0x10]
call fcn.004a9db5
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edi, dword [eax - 0xc]
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a9d53
cmp dword [ebp - 0xc], edi
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9d61
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004a7be5
lea ecx, [esi - 0x10]
call fcn.004a7be5
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 8
Function at 0x4ac342
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x4ac3d3
push esi
mov ecx, edi
call fcn.004ab64d
push 0x25
pop ecx
cmp cx, ax
jne 0x4ac3d3
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4ac3d3
cmp ebx, 0x8003
ja 0x4ac3d3
call fcn.004a7279
push eax
lea ecx, [ebp + 8]
call fcn.004a6656
push ebx
lea ecx, [ebp + 8]
call fcn.004a7abd
push ebx
push eax
push dword [edi]
call fcn.004ac3da
mov ebx, eax
lea ecx, [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x4ac3b0
push esi
call fcn.004a7cf7
jmp 0x4ac3c4
push 0xffffffffffffffff
call fcn.004ad5d5
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004a680f
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004a7be5
mov eax, esi
jmp 0x4ac3d5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ac738
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.004cde96
pop ecx
mov ebx, eax
lea edx, [ebp - 0x214]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
cmp eax, ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ebx
cmovae ecx, edx
push dword [ecx]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4ac792
xor eax, eax
jmp 0x4ac836
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4ac78b
push 0x53b478
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004adc14
lea eax, [ebp - 0x20c]
push eax
call fcn.004cde96
mov esi, eax
push edi
mov dword [ebp - 0x210], esi
call fcn.004cde96
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov edx, eax
sub edx, ebx
add ecx, eax
add esi, edx
mov dword [ebp - 0x214], esi
cmp ecx, ebx
jbe 0x4ac78b
lea eax, [esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x4ac78b
mov eax, dword [ebp - 0x210]
lea esi, [eax + eax]
lea eax, [edx + edx]
push eax
lea eax, [edi + ebx*2]
push eax
lea eax, [esi + edi]
push eax
call fcn.004cff50
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004cf900
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add esp, 0x18
mov word [edi + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4ad012
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4ad0d4
xor edi, edi
cmp word [esi], di
je 0x4ad0d4
push esi
call fcn.004ad36a
pop ecx
test eax, eax
jne 0x4ad0d4
push esi
call fcn.004ad3ab
pop ecx
test eax, eax
je 0x4ad0e6
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 2
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x400], edi
push eax
push eax
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3f4], edi
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x3ec], edi
call sub.MPR.dll_WNetGetResourceInformationW
test eax, eax
jne 0x4ad0e6
cmp dword [ebp - 0x3fc], edi
je 0x4ad0e6
cmp dword [ebp - 0x3fc], 3
jne 0x4ad0d4
inc eax
cmp dword [ebp - 0x400], edi
je 0x4ad0d6
cmp dword [ebp - 0x400], eax
je 0x4ad0d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad0d4
and eax, 0x10
jmp 0x4ad0d6

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad15b
cmp word [eax], 0
je 0x4ad15b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4ae374
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4ae51e
test edi, edi
je 0x4ae51e
push ebx
lea ecx, [ebp - 0x64]
call fcn.004ab39a
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 1
call fcn.004adfd5
xor ebx, ebx
test al, al
je 0x4ae511
cmp dword [ebp - 0x6c], 1
je 0x4ae41a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4ae511
cmp byte [ebp + 0x1c], bl
je 0x4ae4a4
cmp dword [esi + 8], ebx
jne 0x4ae4a4
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004ae003
test al, al
jne 0x4ae452
cmp dword [ebp - 0x6c], 1
je 0x4ae511
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ae511
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004ce800
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x4ae481
lea ecx, [ebp - 0x64]
call fcn.004aed62
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4ae4a4
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
movzx esi, al
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4ae511
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x4ae4fd
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x64]
call fcn.004ab559
mov al, bl
pop ebx
jmp 0x4ae520
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4ae650
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.004af8c4
lea ecx, [ebp - 0x1c]
call fcn.004afb69
lea ecx, [ebp - 0x1c]
call fcn.004b058c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1c]
call fcn.004aff48
mov eax, 0xc8
xor esi, esi
lea ebx, [eax + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push ebx
call fcn.004af8d2
test al, al
je 0x4ae6f3
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 4], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4ae6c4
mov eax, dword [ebp - 4]
shr eax, 2
cmp ebx, eax
jb 0x4ae684
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004af8d2
jmp 0x4ae702
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004af8d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4ae6ec
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4ae702
mov esi, 0x80004005
jmp 0x4ae702
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004af8d2
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.004afba9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae713
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004afb69
lea ecx, [ebp - 0x18]
call fcn.004b058c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004aff48
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4ae765
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ae75e
call fcn.004aba8d
mov esi, eax
jmp 0x4ae76f
mov esi, 0x80004005
jmp 0x4ae76f
mov dword [edi + 0x230], 1
lea ecx, [ebp - 0x18]
call fcn.004afba9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4aef8e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push edi
call fcn.004afb69
lea ecx, [ebp - 0x18]
call fcn.004b058c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004aff48
mov ecx, ebx
call fcn.004aef31
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4af013
cmp dword [ebx + 0x18], 0
jne 0x4aefea
push 0x5259ec
lea ecx, [ebx + 0x14]
call fcn.004af48c
mov edi, eax
test edi, edi
js 0x4af02f
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004a7abd
push edi
push eax
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.004aef55
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004ad5d5
test edi, edi
jne 0x4af02d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af026
call fcn.004aba8d
mov edi, eax
jmp 0x4af02f
mov edi, 0x80004005
jmp 0x4af02f
xor edi, edi
test esi, esi
je 0x4af03a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004afba9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4af04d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x254]
push edi
mov edi, dword [ebp + 8]
call fcn.004afb69
lea ecx, [ebp - 0x254]
call fcn.004b058c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x254]
call fcn.004aff48
call fcn.004a7279
push eax
lea ecx, [ebp - 0x23c]
call fcn.004a6656
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004af262
test eax, eax
jns 0x4af14a
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004aef8e
test eax, eax
jns 0x4af14a
and dword [ebp - 0x238], 0
mov ecx, esi
and dword [ebp - 8], 0
call fcn.004aef31
push eax
lea ecx, [ebp - 0x238]
call fcn.004aecfc
test eax, eax
jne 0x4af106
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af0ff
call fcn.004aba8d
mov esi, eax
jmp 0x4af11e
mov esi, 0x80004005
jmp 0x4af11e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004af192
mov esi, eax
test esi, esi
jns 0x4af135
cmp dword [ebp - 0x238], 0
je 0x4af165
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4af165
cmp dword [ebp - 0x238], 0
je 0x4af14a
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
call fcn.004add7a
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.004a680f
xor esi, esi
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004a7be5
lea ecx, [ebp - 0x254]
call fcn.004afba9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret 4

Function at 0x4af262
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004afb69
lea ecx, [ebp - 0x18]
call fcn.004b058c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004aff48
mov ecx, edi
call fcn.004aef31
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4af2be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af2b7
call fcn.004aba8d
mov edi, eax
jmp 0x4af315
mov edi, 0x80004005
jmp 0x4af315
cmp dword [edi + 0x18], 0
jne 0x4af2f6
push 0x5259ec
lea ecx, [edi + 0x14]
call fcn.004af48c
test eax, eax
jns 0x4af2f6
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004a7abd
push edi
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.004ad5d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af309
call fcn.004aba8d
mov edi, eax
jmp 0x4af30e
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004afba9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4