joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7f48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x64a3a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x3c]
call fcn.0042e9f6
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0042ea2a
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x407a78
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407af3
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.WorthyShop
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x407a4e
push dword [ebp + 0xc]
call esi
jmp 0x407af3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call esi
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407af3
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.WorthyShop
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407aee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042ea09
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8108
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x658288], 0
jne 0x40a13a
call fcn.00409f40
mov ecx, dword [0x658288]
call fcn.00406760
mov edx, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40a164
xor ecx, ecx
jmp 0x40a17f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a170
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404c50
push 7
push str.Buy.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004047d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a1c9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004284a3
add esp, 4
lea ecx, [esi - 0x3a4]
call fcn.0044cf19
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a1e9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 8]
push 0
push 0x5d9890
mov dword [ebp - 0xa38], eax
call fcn.00404c50
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00492030
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x40bfad
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x40c001
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426add
push esi
mov esi, eax
mov dword [ebp - 0xa34], eax
push 0
push esi
call fcn.00492030
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x40c016
push esi
call fcn.00426ae6
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5da768]
mov dword [ebp - 0xc], eax
mov ax, word [0x5da76c]
push 0x208
mov word [ebp - 8], ax
call fcn.00426add
add esp, 4
mov ebx, eax
mov cx, word [esi]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push ebx
push eax
mov word [ebp - 0xc], cx
call edi
test eax, eax
jne 0x40c09a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40c129
push ebx
call fcn.00426ae6
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426add
add esp, 8
mov ebx, eax
lea eax, [ebp - 0xc]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x40c129
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40c0a0
sub edi, ecx
lea eax, [ebp - 0x218]
sar edi, 1
push edi
push ebx
push eax
call fcn.00494c46
add esp, 0xc
test eax, eax
je 0x40c0d9
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c0c4
cmp word [esi], ax
je 0x40c129
jmp 0x40c037
lea eax, [ebp - 0x218]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5da770
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0040c530
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.004020e0
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.004029e0
lea ecx, [ebp - 0xa30]
call fcn.00402650
mov eax, dword [ebp - 0xa34]
push eax
call fcn.00426ae6
push ebx
call fcn.00426ae6
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov al, 1
pop edi
pop ebx
pop esi
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 8
Function at 0x40c160
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], 0
call fcn.00492030
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c1e8
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40c1e1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x40c208
xor ecx, ecx
jmp 0x40c220
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c211
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404c50
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 8
Function at 0x40c250
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c82e6
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x478], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], 0
push eax
push 0x5d9890
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00404c50
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00492030
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c30e
push 0x5d9890
mov ecx, ebx
call fcn.004020e0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40c4cd
inc ecx
push ecx
jmp 0x40c4bc
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c487
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x450], ax
jne 0x40c35a
xor ecx, ecx
jmp 0x40c372
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c363
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404c50
mov esi, dword [ebp - 0x46c]
mov byte [ebp - 4], 1
cmp esi, dword [ebp + 0xc]
je 0x40c3d0
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40c3b6
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404da0
lea eax, [ebp - 0x474]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c330
jmp 0x40c487
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00492030
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c475
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b310
lea eax, [ebp - 0x230]
push 0x5d9890
push eax
call fcn.0040b1a0
add esp, 8
test al, al
je 0x40c475
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.0040bf40
lea eax, [ebp - 0x230]
push 0x5d9890
push eax
call fcn.0040b1a0
add esp, 8
test al, al
je 0x40c475
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b310
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x248]
call fcn.00402650
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00403e60
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40c4cd
inc eax
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00404da0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret 8
Function at 0x412180
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x184]
push eax
push 0
push esi
push 0x411f30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x188], eax
pop esi
ret
Function at 0x4148c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8d36
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x184]
test ecx, ecx
je 0x414a57
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push 0
push edx
call dword [eax + 0x3c]
push dword [eax]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004020e0
mov esi, dword [ebp - 0x44]
add esi, 0xfffffff4
mov byte [ebp - 4], 3
cmp esi, dword [0x64a3f8]
je 0x41493d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41493d
push esi
call fcn.00426a57
add esp, 4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x28]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414950
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jle 0x414a26
push 3
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004086e0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
neg esi
sbb esi, esi
and esi, 1
cmp ecx, 8
jb 0x4149a8
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00404da0
test esi, esi
je 0x414a26
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042f7d1
add esp, 4
test eax, eax
je 0x414a26
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x4149e0
push 0
push 1
call fcn.00446508
push 0
mov ecx, edi
call fcn.004477ce
mov eax, dword [edi + 0x174]
xor ecx, ecx
mov esi, dword [edi + 0x170]
mov ebx, eax
sub ebx, esi
xor edi, edi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x414a42
mov edx, dword [esi]
test edx, edx
je 0x414a1c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, edx
call dword [eax + 8]
inc edi
add esi, 4
cmp edi, ebx
jne 0x414a03
jmp 0x414a42
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x414a42
push 0
push 0
call fcn.00446508
push 0
mov ecx, edi
call fcn.004477ce
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x414a57
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret
Function at 0x414c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414cd7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x414cd7
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426a9d
mov esp, ebp
pop ebp
ret
Function at 0x423802
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x423826
cmp dword [esi + 8], edi
jge 0x42381e
push esi
call fcn.00420826
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x42384f
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x423832
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x423869
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x42385a
xor dl, dl
jmp 0x42385f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x423851
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x42389d
mov dword [0x658328], str.zlib_corrupt
xor eax, eax
jmp 0x4238df
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4238b2
mov dword [0x658328], str.read_past_buffer
jmp 0x423899
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4238c9
push edi
push esi
call fcn.00425d25
pop ecx
pop ecx
test eax, eax
je 0x423899
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00491ab0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x42831b
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x5c9961
call fcn.0042735d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.00492030
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.00492030
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x4283f9
cmp word [edi], dx
jne 0x42838a
mov eax, edx
jmp 0x428391
push edi
call fcn.00499b3f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00404c50
cmp dword [ebp - 0x30], 0
je 0x4283f9
mov edi, 0x5d9c94
push edi
call fcn.00499b3f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00404c50
xor edi, edi
cmp word [esi], di
jne 0x4283c2
mov eax, edi
jmp 0x4283c9
push esi
call fcn.00499b3f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004047d0
mov esi, 0x5dcc70
push esi
call fcn.00499b3f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004047d0
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004046c0
jmp 0x428415
xor edi, edi
cmp word [esi], di
jne 0x428404
mov eax, edi
jmp 0x42840b
push esi
call fcn.00499b3f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404c50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.CreateRunProcess__s_
call fcn.004436e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42845a
mov esi, edi
jmp 0x428485
cmp byte [ebp + 0x10], 0
je 0x428472
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00427fb1
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00427fb1
mov eax, esi
call fcn.00427318
ret
Function at 0x4284c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.00426ab0
mov eax, dword [0x64a3a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [ebp + 0x10], 0
push edi
mov edi, dword [ebp + 8]
je 0x4286b5
push 0x2000
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2010], esi
push esi
push eax
mov dword [ebp - 0x2008], esi
call fcn.00492030
push ebx
push edi
lea eax, [ebp - 0x2004]
push str.__s___s
push eax
call fcn.00405460
push str.EXPLORER.EXE
call fcn.00428902
add esp, 0x20
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x428680
lea eax, [ebp - 0x2010]
mov edi, 0xf01ff
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x428680
lea eax, [ebp - 0x2008]
push eax
push 1
push 1
push esi
push edi
push dword [ebp - 0x2010]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x428680
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4285d4
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4285cd
call eax
push 4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
push 0xc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x428680
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2068]
push esi
push eax
call fcn.00492030
push 0x10
lea eax, [ebp - 0x2024]
push esi
push eax
call fcn.00492030
add esp, 0x18
mov dword [ebp - 0x2068], edi
mov dword [ebp - 0x2060], str.WinSta0Default
mov dword [ebp - 0x203c], 1
mov dword [ebp - 0x200c], esi
push 5
pop eax
push esi
push dword [ebp - 0x2008]
mov word [ebp - 0x2038], ax
lea eax, [ebp - 0x200c]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x428680
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2068]
push eax
push esi
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push 0x430
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x428680
cmp dword [ebp - 0x200c], esi
je 0x428680
push dword [ebp - 0x200c]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x2008]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x428698
cmp eax, 0xffffffff
je 0x428698
push eax
call edi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x4286aa
cmp eax, 0xffffffff
je 0x4286aa
push eax
call edi
test ebx, ebx
jne 0x4286b1
push esi
call edi
xor al, al
jmp 0x4286c6
push esi
push esi
push ebx
push edi
call fcn.0042831b
add esp, 0x10
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426a9d
mov esp, ebp
pop ebp
ret
Function at 0x428902
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5c99dd
call fcn.0042735d
mov eax, dword [ebp + 8]
test eax, eax
je 0x4289fe
push eax
lea ecx, [ebp - 0x40]
call fcn.004020e0
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00429c7a
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.00492030
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4289ef
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4289e4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x42898e
mov eax, ebx
jmp 0x42899b
lea eax, [ebp - 0x248]
push eax
call fcn.00499b3f
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00429c7a
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00428cac
test eax, eax
je 0x428a04
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00427fb1
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428971
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00427fb1
mov eax, esi
call fcn.00427318
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00427fb1
jmp 0x4289f1