joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497bbb
Capabilities:
Read file on windows

Disassembly:
push 0x18
mov eax, 0x518c81
call fcn.004db273
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x497bdc
xor eax, eax
jmp 0x497caf
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], 0x533e78
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
push 2
pop edi
cmp esi, 0xffffffff
je 0x497c93
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 0x497c93
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.0045058e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x497c5f
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040d588
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 0x497c87
cmp dword [ebp - 0x10], 0
je 0x497c87
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call fcn.004a2a11
movzx edi, al
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e78
test esi, esi
je 0x497cad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004db23c
ret 0xc

Function at 0x49ad8b
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 0x49adf1
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d689
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.00411620
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.00410b95
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49adff
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x294
mov eax, 0x519382
call fcn.004db2a7
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.00478820
lea ecx, [ebp - 0x288]
call fcn.0040cd94
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.00406ff4
mov byte [ebp - 4], 2
mov byte [ebp - 4], bl
call fcn.0049b07b
test al, al
je 0x49aec0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28]
call fcn.004736e0
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x28]
call fcn.004739b0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00470830
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040d05a
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049b202
test al, al
je 0x49aec0
xor ebx, ebx
jmp 0x49aec7
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x49aece
mov edi, ebx
jmp 0x49b024
push 0x250
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.004de4e0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x284]
push eax
call fcn.00406ff4
mov esi, 0x53e6c0
mov byte [ebp - 4], 4
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x284]
call fcn.00410e44
mov eax, dword [ebp - 0x284]
cmp dword [eax - 4], ebx
jle 0x49af2f
push dword [eax - 0xc]
lea ecx, [ebp - 0x284]
call fcn.0040d588
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], 0x53e6cc
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 0x49aff4
lea ecx, [ebp - 0x27c]
call fcn.0049b052
test al, al
je 0x49afde
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x280]
call fcn.004537a0
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.00406ff4
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0049adff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
test eax, eax
je 0x49b049
call fcn.0040d05a
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x49af6a
mov edi, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x29c], 0x53e6cc
test esi, esi
je 0x49b016
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.0040d05a
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d05a
mov eax, edi
call fcn.004db251
ret 0x10
call fcn.0040d05a
xor edi, edi
jmp 0x49aff6
Function at 0x49b336
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x519467
call fcn.004db273
cmp byte [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
jne 0x49b391
mov dl, byte [ebp + 0xc]
call fcn.0049b2b0
mov ecx, 0x53ff10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x49b370
test eax, eax
setne bl
jmp 0x49b375
test eax, eax
sete bl
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49b38a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
mov al, bl
jmp 0x49b457
push 0x5c
push dword [ecx]
call fcn.004de987
pop ecx
pop ecx
mov esi, eax
push 3
pop ebx
test esi, esi
je 0x49b445
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sar esi, 1
js 0x49b445
push esi
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ecx, eax
call fcn.00406e37
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dl, byte [ebp + 0xc]
call fcn.0049b2b0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], 0x53ff10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49b420
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00406cff
push edi
push edi
push edi
push edi
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
mov ebx, eax
call fcn.0040d05a
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x53ff10
test eax, eax
je 0x49b439
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d05a
cmp byte [ebp + 0x14], 0
je 0x49b452
test ebx, ebx
sete al
jmp 0x49b457
test ebx, ebx
setne al
call fcn.004db23c
ret 0x10
Function at 0x49b948
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x57d074]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x49b970
xor al, al
jmp 0x49ba92
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x49b98f
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x49b980
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 0x49b9c3
cmp word [esp + 0x22], di
jne 0x49b9c3
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x49b9cf
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 0x49b9f0
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49b9e4
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49b9fa
test al, al
je 0x49ba0d
jmp 0x49ba05
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 0x49ba7a
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49ba52
cmp word [esi], cx
je 0x49ba5a
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x49ba4a
cmp esi, edi
jb 0x49b969
cmp byte [esp + 0xf], 0
jne 0x49ba6d
cmp esi, edi
jne 0x49ba70
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49ba16
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x49ba8e
jb 0x49ba90
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x49ba90
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004da696
mov esp, ebp
pop ebp
ret
Function at 0x49c17c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004db9c0
push 0xffffffffffffffff
push 0x51966b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57d074]
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 0x49c1d1
xor al, al
jmp 0x49c249
mov ecx, eax
call fcn.00455f07
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 0x49c23b
mov esi, dword [ebp - 0x10]
call fcn.0040d266
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406f36
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00470830
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d05a
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x49c1da
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.004da696
lea esp, [ebp + 0x8004]
pop ebp
ret 4
Function at 0x49c450
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5196ef
call fcn.004db273
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004dadb0
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x49c48b
add dword [ebp - 0x10], 2
push esi
call fcn.004dadb0
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0048c259
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x49c47c
test eax, eax
je 0x49c4c3
xor eax, eax
mov bl, al
jmp 0x49c580
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x49c4f3
cmp eax, 2
je 0x49c4f3
cmp eax, 7
je 0x49c4f3
cmp eax, 4
jne 0x49c4ba
push dword [esi]
push 0x5421b0
push dword [ebp + 8]
call fcn.00411637
add esp, 0xc
jmp 0x49c580
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 0x49c50c
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49c508
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d266
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406f36
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x49c573
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49c567
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49c567
mov ecx, edi
call fcn.00406f9b
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d570
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x49c573
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d7d9
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004dadb0
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004db23c
ret

Function at 0x49c67c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x58059c
call fcn.0040dc67
cmp byte [0x5805a4], 0
je 0x49c6a3
push dword [0x5805a0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49c6d3
cmp dword [0x5805a0], 0
je 0x49c6d3
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x580598
push 0x49c6f5
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x5805a8
call fcn.0040df9a
pop ebp
ret 4
Function at 0x49c7a0
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x519722
call fcn.004db273
push edx
lea ecx, [ebp - 0x10]
call fcn.00406ff4
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004de987
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49c889
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x49c889
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406cff
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.00474080
and dword [ebp - 0x18], 0
mov esi, 0x53ff10
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x18], 0
je 0x49c867
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x49c86e
inc ebx
cmp dword [ebp - 0x18], eax
je 0x49c856
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d05a
jmp 0x49c7c1
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0
je 0x49c87d
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d05a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d05a
mov eax, ebx
call fcn.004db23c
ret

Function at 0x49c962
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x5158c8
call fcn.004db273
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], 0x533e78
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49c9a1
mov edi, ebx
or esi, eax
jmp 0x49c9ab
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e78
test esi, esi
je 0x49c9c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004db23c
ret
Function at 0x49c9cc
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x51977a
call fcn.004db273
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.004de4e0
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
inc ebx
cmp byte [ebp + 0x10], 0
je 0x49ca23
call fcn.004a4b86
mov eax, dword [0x580378]
test eax, eax
je 0x49ca23
lea ecx, [ebp - 0x18]
push ecx
call eax
mov byte [ebp - 0x14], bl
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], eax
push eax
push eax
push dword [ebp + 0xc]
push eax
push eax
push eax
cmovne eax, ecx
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49ca69
mov esi, dword [ebp + 8]
test esi, esi
je 0x49ca65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor bl, bl
jmp 0x49ca8f
cmp dword [ebp + 8], 0
je 0x49ca86
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 dword [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x49cab5
call fcn.004a4b86
mov ecx, dword [0x580374]
test ecx, ecx
je 0x49cab5
lea eax, [ebp - 0x18]
push eax
call ecx
mov byte [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.004db23c
ret
Function at 0x49cac1
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x5197cf
call fcn.004db273
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.004de4e0
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.0047a820
test al, al
je 0x49cb12
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 0x49cb54
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00479020
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x49cb67
push ecx
lea ecx, [ebp + 0x10]
call fcn.00406ff4
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00406ff4
mov dword [ebp - 4], 3
test bl, 2
je 0x49cb87
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040d05a
mov byte [ebp - 4], 4
test bl, 1
je 0x49cb98
lea ecx, [ebp + 0x18]
call fcn.0040d05a
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0047a820
test al, al
je 0x49cbaa
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 0x49cbcb
test esi, esi
je 0x49cbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x49cbfb
test esi, esi
je 0x49cbea
cmp dword [ebp - 0x1c], 0
je 0x49cbf9
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 0x49cbf9
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.0040d05a
mov al, bl
call fcn.004db23c
ret
Function at 0x49cf73
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x519890
call fcn.004db2a7
xor ebx, ebx
mov dword [ebp - 0x24], 0x533e78
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x49cfb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49d063
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
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x49cfff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49d04c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00495766
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x49d04c
cmp dword [ebp - 0x1c], 0
je 0x49d04c
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 0x49d052
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 0x49d054
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004dadb0
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x533e78
je 0x49d081
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004db251
ret

Function at 0x49d089
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x57d074]
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 0x49d0f8
push ebp
mov ebp, 0x22c
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call fcn.004de4e0
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 0x49d0ee
cmp dword [esp + 0x24], ebx
je 0x49d0f4
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49d0dc
jmp 0x49d0f8
mov esi, dword [esp + 0x14]
test edi, edi
je 0x49d103
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.004da696
add esp, 0x230
ret