joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490bf6
Capabilities:
Terminate thread

Disassembly:
push 0x18
mov eax, 0x50d049
call fcn.004d0de3
mov eax, dword [ebp + 8]
xor edi, edi
or dword [ebp - 0x1c], 0xffffffff
mov esi, 0x538b1c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push edi
push edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.0049fcfd
mov ecx, dword [ebp - 0x20]
call fcn.00490a36
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], edi
je 0x490c86
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x490c7d
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x490c7d
cmp dword [ebp + 8], 0x103
jne 0x490c7d
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004d0dac
ret 4
Function at 0x491d0d
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x50d282
call fcn.004d0de3
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x491d2e
xor eax, eax
jmp 0x491e01
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x527e68
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x491de5
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov ebx, dword [ebp + 0x10]
add eax, edi
and dword [ebp - 0x20], 0
sub ebx, edi
push 0
push ecx
push eax
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x491de5
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.0044d10e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x491db1
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040cf6c
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491dd9
cmp dword [ebp - 0x10], 0
je 0x491dd9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.0049b082
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x527e68
test esi, esi
je 0x491dff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004d0dac
ret 0xc

Function at 0x493f16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x493f7c
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d06d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.00410e9b
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.004103fe
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493f8a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x50d945
call fcn.004d0e17
mov esi, ecx
mov dword [ebp - 0x294], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004740e0
lea ecx, [ebp - 0x288]
call fcn.0040c77f
lea eax, [ebp - 0x288]
xor ebx, ebx
push eax
push dword [ebp - 0x28c]
inc ebx
lea eax, [ebp + 8]
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call fcn.004069f3
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.00494206
test al, al
je 0x49404b
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046f320
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046f5f0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0046c410
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040ca45
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049432f
test al, al
je 0x49404b
xor ebx, ebx
jmp 0x494052
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x494059
mov edi, ebx
jmp 0x4941af
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004d39c0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.004069f3
mov esi, 0x5325a0
mov byte [ebp - 4], 4
push esi
call fcn.004d5c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.004106c3
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x4940ba
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040cf6c
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x29c], 0x5325ac
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, 0xffffffff
je 0x49417f
lea ecx, [ebp - 0x27c]
call fcn.004941dd
test al, al
je 0x494169
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.0045015c
pop ecx
push dword [ebp - 0x290]
lea eax, [edi - 1]
mov byte [ebp - 4], 6
push dword [ebp - 0x28c]
push eax
push ecx
lea eax, [ebp - 0x280]
mov dword [ebp - 0x2a0], esp
mov ecx, esp
push eax
call fcn.004069f3
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.00493f8a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x4941d4
call fcn.0040ca45
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x4940f5
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x5325ac
test esi, esi
je 0x4941a1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x298], 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], bl
call fcn.0040ca45
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040ca45
mov eax, edi
call fcn.004d0dc1
ret 0x10
call fcn.0040ca45
xor edi, edi
jmp 0x494181
Function at 0x494463
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x50da2a
call fcn.004d0de3
cmp byte [ebp + 0x10], 0
jne 0x4944b3
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004943dd
mov dword [ebp - 0x18], 0x533de0
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
cmp byte [ebp + 0x14], 0
je 0x49449b
test eax, eax
setne bl
jmp 0x4944a0
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004709e0
mov al, bl
jmp 0x494565
mov edi, dword [ebp + 8]
push 0x5c
push dword [edi]
call fcn.004d3e4b
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x494553
sub esi, dword [edi]
sar esi, 1
js 0x494553
push esi
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0040684b
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x10]
mov dl, byte [ebp + 0xc]
call fcn.004943dd
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], 0x533de0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49453b
lea edx, [esi + 1]
mov ecx, edi
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.00406713
xor eax, eax
mov byte [ebp - 4], bl
push eax
push eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.0040ca45
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004709e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0040ca45
cmp byte [ebp + 0x14], 0
je 0x494560
test ebx, ebx
sete al
jmp 0x494565
test ebx, ebx
setne al
call fcn.004d0dac
ret 0x10
Function at 0x494a14
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x494a3c
xor al, al
jmp 0x494b60
movzx edx, word [ecx]
lea esi, [esp + 0x20]
test dx, dx
je 0x494a5d
mov eax, esi
sub ecx, eax
mov word [esi], dx
add esi, 2
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x494a4c
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x494a91
cmp word [esp + 0x22], di
jne 0x494a91
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x494a9d
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x494abe
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x494ab2
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x494ac8
test al, al
je 0x494adb
jmp 0x494ad3
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x494b48
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x494b20
cmp word [esi], cx
je 0x494b28
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x494b18
cmp esi, edi
jb 0x494a35
cmp byte [esp + 0xf], 0
jne 0x494b3b
cmp esi, edi
jne 0x494b3e
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x494ae4
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x494b5c
jb 0x494b5e
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x494b5e
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0217
mov esp, ebp
pop ebp
ret
Function at 0x495181
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004d1530
push 0xffffffffffffffff
push 0x50dc0e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x4951d6
xor al, al
jmp 0x49524e
mov ecx, eax
call fcn.0045265f
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x495240
mov esi, dword [ebp - 0x10]
call fcn.0040cc51
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406935
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0046c410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ca45
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x4951df
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x8004]
pop ebp
ret 4

Function at 0x495455
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x50dc92
call fcn.004d0de3
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xc8
push eax
jmp 0x49547c
add dword [ebp - 0x10], 2
push esi
call fcn.004d0936
and dword [ebp - 0x14], 0
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00487823
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x495477
test eax, eax
je 0x4954b7
xor bl, bl
jmp 0x495534
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x4954e4
cmp eax, 2
je 0x4954e4
cmp eax, 7
je 0x4954e4
cmp eax, 4
jne 0x4954b3
push dword [esi]
push 0x536088
push dword [ebp + 8]
call fcn.00410eb2
add esp, 0xc
jmp 0x495534
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x4954fd
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x4954f9
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040cc51
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406935
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0044d0c3
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d0936
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004d0dac
ret
Function at 0x4955e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x573590
call fcn.0040d657
cmp byte [0x573598], 0
je 0x49560f
push dword [0x573594]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49563f
cmp dword [0x573594], 0
je 0x49563f
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x57358c
push 0x495661
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x57359c
call fcn.0042ce14
pop ebp
ret 4

Function at 0x49570c
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x50dcc5
call fcn.004d0de3
push edx
lea ecx, [ebp - 0x10]
call fcn.004069f3
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x5c
push dword [ebp - 0x10]
call fcn.004d3e4b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4957e1
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x4957e1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406713
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.0046fc50
mov dword [ebp - 0x1c], 0x533de0
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004709c0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x18], 0
je 0x4957ca
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x4957d1
inc edi
call fcn.004709e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040ca45
jmp 0x495728
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004709e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov eax, edi
call fcn.004d0dac
ret

Function at 0x4958ba
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x509f68
call fcn.004d0de3
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x527e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x4958f7
mov edi, ebx
jmp 0x495901
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x527e68
test esi, esi
je 0x49591a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004d0dac
ret
Function at 0x495922
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x50dd1d
call fcn.004d0de3
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004d39c0
mov dword [ebp - 0x6c], edi
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
add esp, 0xc
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x495968
lea ecx, [ebp - 0x18]
call fcn.0049ce21
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [edx]
xor eax, eax
cmp dword [ecx - 0xc], ebx
push ebx
push ebx
push dword [ebp + 0xc]
cmovne eax, ecx
push ebx
push ebx
push ebx
push eax
xor eax, eax
cmp dword [edx - 0xc], ebx
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4959ac
mov esi, dword [ebp + 8]
test esi, esi
je 0x4959d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4959d4
cmp dword [ebp + 8], 0
je 0x4959c9
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0049cdd1
mov al, bl
call fcn.004d0dac
ret
Function at 0x4959e8
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x50dd72
call fcn.004d0de3
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004d39c0
mov edi, dword [edi]
mov eax, 0x400
mov dword [ebp - 0x54], esi
add esp, 0xc
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.00476000
test al, al
je 0x495a39
add edi, 8
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x495a7b
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00474870
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x495a8e
push ecx
lea ecx, [ebp + 0x10]
call fcn.004069f3
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.004069f3
mov dword [ebp - 4], 3
test bl, 2
je 0x495aae
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040ca45
mov byte [ebp - 4], 4
test bl, 1
je 0x495abf
lea ecx, [ebp + 0x18]
call fcn.0040ca45
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00476000
test al, al
je 0x495ad1
add edi, 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x495af2
test esi, esi
je 0x495aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x495b22
test esi, esi
je 0x495b11
cmp dword [ebp - 0x1c], 0
je 0x495b20
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], 0
je 0x495b20
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040ca45
mov al, bl
call fcn.004d0dac
ret
Function at 0x495e3b
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x50de33
call fcn.004d0e17
xor ebx, ebx
mov dword [ebp - 0x24], 0x527e68
mov dword [ebp - 0x20], ebx
xor al, al
mov dword [ebp - 4], ebx
je 0x495e66
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x495e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x495f3b
mov esi, ebx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x495edb
call ebx
cmp eax, 0x7a
jne 0x495f28
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.0048fb3d
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x495f28
cmp dword [ebp - 0x1c], 0
je 0x495f28
xor ecx, ecx
mov word [ebp - 0x14], 0x500
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x495f2a
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x495f2c
call ebx
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004d0936
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x527e68
je 0x495f59
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d0dc1
ret

Function at 0x495f61
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x570074]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x495fd0
push ebp
mov ebp, 0x22c
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call fcn.004d39c0
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
pop ebp
jmp 0x495fc6
cmp dword [esp + 0x24], ebx
je 0x495fcc
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x495fb4
jmp 0x495fd0
mov esi, dword [esp + 0x14]
test edi, edi
je 0x495fdb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0217
add esp, 0x230
ret