joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
call fcn.004f785e
mov edi, dword [ebp + 0x10]
mov ebx, edi
sar ebx, 0x10
mov ecx, edi
and ebx, 0xff
and ecx, 0xf
lea esi, [eax + 0x40]
mov dword [ebp + 0x10], ecx
lea eax, [ebp - 0x100]
cmp dword [ebx*4 + 0x587e00], ecx
jge 0x42b1f5
test edi, 0x300
je 0x42b2f6
cmp dword [0x588200], 0
je 0x42b21e
call fcn.0042b650
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004f1160
mov cx, word [0x515468]
add esp, 8
mov word [eax], cx
inc eax
lea ecx, [ebx + ebx*2]
push dword [ecx*4 + 0x57031c]
push eax
call fcn.004f1160
movzx ecx, word [0x515468]
mov word [eax], cx
inc eax
mov ecx, dword [ebp + 0x10]
push dword [ecx*4 + 0x56f404]
push eax
call fcn.004f1160
movzx ecx, word [0x5137e8]
mov ebx, eax
mov word [ebx], cx
mov cl, byte [0x5137ea]
mov byte [ebx + 2], cl
add ebx, 2
lea ecx, [ebp - 1]
sub ecx, ebx
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.004f1020
add esp, 0x1c
lea ecx, [ebp - 1]
push esi
push 1
cmp eax, ecx
jae 0x42b297
mov byte [eax], 0xa
lea ecx, [ebp - 0x100]
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
call fcn.004f7e29
add esp, 0x10
jmp 0x42b2bd
lea eax, [ebp - 0x100]
sub ebx, eax
push ebx
push eax
call fcn.004f7e29
push esi
push dword [ebp + 0xc]
call fcn.004f8dbb
push esi
push 0x5125d8
call fcn.004f8dbb
add esp, 0x20
mov eax, dword [0x56f400]
cmp eax, 0xffffffff
jne 0x42b2db
push esi
call fcn.004f4c50
push eax
call fcn.004f51f0
add esp, 8
mov dword [0x56f400], eax
test eax, eax
je 0x42b2e5
or edi, 0x2000
test edi, 0x2000
je 0x42b2f6
push esi
call fcn.004f7b93
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42bb80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bb90

Function at 0x42bb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.004f51e0
push 0
push 2
mov edi, eax
call sub.x_CreateToolhelp32Snapshot
push eax
call fcn.004f5de0
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x42bc64
push 0x22c
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004f7a50
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
lea eax, [ebp - 0x234]
push eax
push esi
call sub.x_Process32FirstW
test eax, eax
je 0x42bc4f
lea esi, [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
add esi, 0xfffffffc
lea ebx, [ebx]
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00428660
push dword [eax]
push ebx
call fcn.004f5e40
add esp, 0x10
test eax, eax
jne 0x42bc36
mov eax, dword [ebp - 0x22c]
cmp eax, edi
jne 0x42bc4b
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 4]
call sub.x_Process32NextW
test eax, eax
jne 0x42bc10
jmp 0x42bc4e
mov dword [ebp - 8], eax
pop ebx
lea eax, [ebp - 4]
push eax
call fcn.00431d60
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x515568
push 0x400000
call fcn.0042ae10
int3
Function at 0x42bd70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x42bee0
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00428190
mov edi, dword [ebp + 0x14]
or ebx, 0xffffffff
test edi, edi
mov dword [ebp - 0xc], eax
push 0x104
cmove edi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
call fcn.0042a960
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x42bdfc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.x_WTSGetActiveConsoleSessionId]
push eax
call fcn.004f0a48
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42bdfc
push 0x51560c
push edi
call fcn.0042a0a0
push dword [edi]
push 0x610003
call fcn.0042ab50
add esp, 0x10
jmp 0x42be8b
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push 0
push dword [ebp - 8]
push ebx
push 0
call dword [0x51035c]
test eax, eax
je 0x42be34
push ebx
push 0x515630
push edi
call fcn.0042a180
push dword [edi]
push 0x610003
call fcn.0042ab50
add esp, 0x14
or ebx, 0xffffffff
jmp 0x42be8b
push esi
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.0042a270
mov edx, dword [esi]
add esp, 8
test edx, edx
je 0x42be6c
cmp byte [edx], 0
je 0x42be6c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42be54
sub ecx, esi
cmp byte [edx + ecx - 1], 0x5c
jne 0x42be68
mov byte [edx + ecx - 1], al
xor ebx, ebx
jmp 0x42be8a
push ebx
push 0x51564c
push edi
call fcn.0042a180
push dword [edi]
push 0x610003
call fcn.0042ab50
add esp, 0x14
or ebx, 0xffffffff
pop esi
cmp dword [ebp + 0x10], 0
je 0x42be9d
lea eax, [ebp - 8]
push eax
call fcn.00431d60
add esp, 4
lea eax, [ebp - 4]
push eax
call fcn.0042a8d0
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42bf10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x42bf20
call dword [sym.imp.x_GetCommandLineW]
push ebx
push esi
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [0x510360]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 1
lea esi, [ecx*4]
lea ecx, [esi + 4]
push ecx
call fcn.004f76d9
push esi
mov ebx, eax
push edi
push ebx
call fcn.004f8270
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.00429270
push ebx
call fcn.004f7492
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42bf70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
test esi, esi
je 0x42bf94
lea eax, [ebp + 4]
sub eax, 4
push esi
push eax
call fcn.00428840
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x18], eax
jmp 0x42bf9b
mov dword [ebp + 0x18], 0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x42bfb9
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.00428840
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
jmp 0x42bfc0
mov dword [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42bfde
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00428840
add esp, 8
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
jmp 0x42bfe5
mov dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42c000
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00428840
add esp, 8
mov eax, dword [eax]
jmp 0x42c002
xor eax, eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [0x510358]
mov dword [ebp + 0x18], eax
cmp eax, 0x20
ja 0x42c059
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x42c037
call fcn.004f7685
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp + 0xc]
mov dword [eax], ecx
push 0x5155b0
push 0x610003
call fcn.0042ab50
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42c160
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x200
push dword [ebx]
mov edi, 0x80
call fcn.004f7719
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 8]
push ecx
push 0x200
push eax
call fcn.0050fc94
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
je 0x42c1d9
jmp 0x42c1a0
mov eax, dword [ebp + 8]
shr eax, 2
cmp edi, eax
jg 0x42c206
lea edi, [eax + eax]
lea esi, [edi*4]
push esi
push dword [ebx]
call fcn.004f7719
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 8]
push ecx
push esi
push eax
call fcn.0050fc94
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42c1a0
mov eax, dword [ebx]
test eax, eax
je 0x42c1ee
push eax
call fcn.004f7492
add esp, 4
mov dword [ebx], 0
push edi
push 0x5157bc
push 0x650003
call fcn.0042ab50
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebx]
pop edi
pop esi
pop ebx
mov dword [ecx + eax*4], 0xffffffff
pop ebp
ret
Function at 0x42c2a0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x42c3ff
push esi
call fcn.0042bcc0
add esp, 4
test eax, eax
je 0x42c3ff
mov edi, dword [sym.imp.x_OpenProcess]
push esi
push 0
push 1
call edi
push eax
call fcn.004f5de0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c362
cmp dword [ebp + 0xc], eax
je 0x42c34b
call dword [sym.imp.x_GetLastError]
cmp eax, 5
jne 0x42c34b
lea eax, [ebp - 0x14]
push eax
push 0x515588
call fcn.0042cdd0
add esp, 8
test eax, eax
jne 0x42c401
push esi
push eax
push 1
call edi
push eax
call fcn.004f5de0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c362
push 0x515674
push 0x650003
call fcn.0042ab50
lea eax, [ebp - 0x14]
push eax
call fcn.0042cec0
add esp, 0xc
jmp 0x42c401
push 0x515674
push 0x650003
call fcn.0042ab50
add esp, 8
jmp 0x42c401
push 0xffffffffffffffff
push eax
call dword [sym.imp.x_TerminateProcess]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42c38c
push 0x51568c
push 0x650003
call fcn.0042ab50
add esp, 8
jmp 0x42c401
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x42c3ff
cmp eax, 0xffffffff
je 0x42c3a4
imul eax, eax, 0x3e8
cmp edi, eax
jge 0x42c3e6
push esi
call fcn.0042bcc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42c3ff
cmp edi, 0xa
jge 0x42c3bf
mov esi, 1
jmp 0x42c3cf
cmp edi, 0x64
mov esi, 0x32
mov eax, 0xa
cmovl esi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.0042bd20
mov eax, dword [ebp + 0x10]
add esp, 8
add edi, esi
mov esi, dword [ebp + 8]
jmp 0x42c395
test ebx, ebx
je 0x42c3ff
push esi
push 0x5156a8
push 0x650003
call fcn.0042ab50
add esp, 0xc
jmp 0x42c401
xor ebx, ebx
lea eax, [ebp - 4]
push eax
call fcn.00431d60
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push fcn.0042a8d0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
lea esi, [ebp + 4]
xorps xmm0, xmm0
push eax
add esi, 0xfffffffc
push esi
movdqu xmmword [ebp - 0x18], xmm0
call fcn.00428190
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 1
push dword [ebp + 8]
push eax
call fcn.004f0a42
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42c7ce
push 0x515838
push 0x650003
call fcn.0042ab50
add esp, 8
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004f7a50
mov eax, dword [ebp + 0x10]
mov ecx, 0x51095b
test eax, eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], 0x515850
cmovne ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x511394
push esi
call fcn.004284c0
push dword [eax]
push dword [ebp - 4]
call fcn.0042a900
add esp, 0x24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
push 0
push dword [ebp - 8]
push 0x400
push 0
push 0
push 0
push dword [eax]
push 0
push dword [ebp + 8]
call dword [0x510030]
push eax
call fcn.004f5db0
add esp, 4
pop esi
test eax, eax
jne 0x42c85e
push 0x515870
push 0x650003
call fcn.0042ab50
add esp, 8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
call fcn.00431d60
lea eax, [ebp - 0x18]
push eax
call fcn.00431d60
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42d030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0042a1a0
add esp, 0xc
call dword [sym.imp.x_IsDebuggerPresent]
test eax, eax
je 0x42d085
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.0042a900
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.x_OutputDebugStringW]
lea eax, [ebp - 8]
push eax
call fcn.0042a8d0
add esp, 4
call fcn.004f785e
add eax, 0x40
push eax
push dword [ebp - 4]
call fcn.004f8dbb
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x42d0a9
push eax
call fcn.004f7492
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x42d210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, 0x40
push edi
xor edi, edi
cmp esi, eax
cmovle esi, eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x42d240
call fcn.004f7685
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
push esi
push ebx
mov dword [ebp + 0x14], eax
call fcn.0042a2c0
push dword [ebp + 0xc]
lea eax, [esi + 1]
push eax
push 1
push dword [ebx]
call fcn.004f81c2
add esp, 0x18
test eax, eax
jle 0x42d29c
add edi, eax
cmp eax, esi
jle 0x42d29c
add esi, esi
lea eax, [edi + 1]
add eax, esi
cmp eax, 0x40000000
jg 0x42d2cb
push eax
push dword [ebx]
call fcn.004f7719
push dword [ebp + 0xc]
lea ecx, [esi + 1]
mov dword [ebx], eax
push ecx
add eax, edi
push 1
push eax
call fcn.004f81c2
add esp, 0x18
test eax, eax
jg 0x42d266
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42d2ae
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b38]
test eax, eax
jne 0x42d2c0
call fcn.004f7685
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x1b
jmp 0x42d29f

Function at 0x42d660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.0042e070
push eax
push dword [ebp + 8]
call fcn.0042d9b0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x42d68b
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x42d6a9
mov edi, edx
lea ebx, [edi + 1]
lea ecx, [ecx]
mov al, byte [edi]
inc edi
test al, al
jne 0x42d6a0
sub edi, ebx
push ecx
push edi
push 1
push edx
call fcn.004f7e29
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x42d752
push esi
call fcn.0042dde0
add esp, 4
test eax, 0x1000
jne 0x42d731
push esi
call fcn.0042dde0
and eax, 0xf
add esp, 4
cmp al, 6
jg 0x42d752
push esi
call fcn.0042dde0
and eax, 0xf
add esp, 4
cmp al, 5
jle 0x42d731
push esi
call fcn.0042dde0
add esp, 4
test eax, 0x1300
jne 0x42d731
push esi
call fcn.0042dde0
push dword [ebp + 0x14]
mov esi, eax
and esi, 0xb70000
or esi, 0x480000
sar esi, 0x10
call fcn.0042dde0
and eax, 0xf
add esp, 8
cmp dword [esi*4 + 0x587e00], eax
jl 0x42d752
mov esi, dword [ebp + 0x14]
push ebx
push edi
push dword [ebp + 8]
push 0x515ac4
push esi
call fcn.0042dde0
add esp, 4
or eax, 0x480000
push eax
call fcn.0042ab50
add esp, 0x14
push dword [ebp - 4]
call fcn.004f4be0
add esp, 4
sub ebx, edi
neg ebx
sbb ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42db20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push fcn.0042a8d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00428190
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [0x583924]
test eax, eax
jne 0x42dc7b
push esi
push 0x515aec
call fcn.004f4cd0
add esp, 4
test eax, eax
jne 0x42dc0a
push 0x515af4
call fcn.004f4cd0
add esp, 4
test eax, eax
jne 0x42dc0a
push dword [ebp - 4]
call fcn.0042a940
mov eax, dword [ebp - 4]
add esp, 4
push dword [eax]
push 0
call dword [sym.imp.x_GetTempPathW]
mov esi, eax
test esi, esi
je 0x42dbc0
push esi
push dword [ebp - 4]
call fcn.0042a960
mov ecx, dword [ebp - 4]
add esp, 8
push dword [ecx]
push esi
call dword [sym.imp.x_GetTempPathW]
mov eax, dword [ebp - 4]
push dword [eax]
push 0x583924
call fcn.0042a270
jmp 0x42dc15
push 0x5152bc
call fcn.004f4cd0
add esp, 4
test eax, eax
je 0x42dc7f
mov dl, byte [eax]
movzx ecx, dl
test byte [ecx*2 + 0x55ef88], 4
je 0x42dc7f
cmp byte [eax + 1], 0x3a
jne 0x42dc7f
movsx eax, dl
push eax
push 0x515b18
push 0x583924
call fcn.0042a180
add esp, 0xc
jmp 0x42dc18
push eax
push 0x583924
call fcn.0042a0a0
add esp, 8
lea eax, [ebp - 0x3c]
push eax
push dword [0x583924]
call fcn.004f57f0
add esp, 8
pop esi
test eax, eax
jne 0x42dc4a
movzx ecx, word [ebp - 0x36]
test ecx, ecx
je 0x42dc4a
and ecx, 0xf000
cmp ecx, 0x4000
sete al
test eax, eax
jne 0x42dc76
push dword [0x583924]
push 0x515b24
push 0x480004
call fcn.0042ab50
push 0x1ff
push dword [0x583924]
call fcn.004f5260
add esp, 0x14
test eax, eax
jne 0x42dc8e
mov eax, dword [0x583924]
mov esp, ebp
pop ebp
ret
push 0x515af8
push 0x480000
call fcn.0042ae10
push 0x515b40
push 0x480000
call fcn.0042ae10
int3
Function at 0x42f0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push fcn.00429230
lea eax, [ebp - 8]
lea ebx, [ebp + 4]
add ebx, 0xfffffffc
push eax
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00428190
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0x42f8f0
push eax
push ebx
call fcn.00428190
mov ebx, dword [ebp + 0x1c]
add esp, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
test ebx, ebx
je 0x42f130
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.x_WTSGetActiveConsoleSessionId]
push eax
call fcn.004f0a48
test eax, eax
jne 0x42f130
push 0x515eb4
push 0x550003
call fcn.0042ab50
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x42f143
xor eax, eax
cmp dword [edi], eax
cmove edi, eax
mov dword [ebp + 0x10], edi
push 1
push edi
call fcn.0042f920
add esp, 8
test eax, eax
je 0x42f16a
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
add eax, 0x1d20
push eax
push 0x515ed8
jmp 0x42f257
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42f178
xor eax, eax
cmp dword [esi], eax
cmove esi, eax
cmp dword [ebp + 0x14], 0
je 0x42f221
test esi, esi
jne 0x42f1a5
test ebx, ebx
je 0x42f221
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call fcn.004f0a42
test eax, eax
jne 0x42f1b4
mov dword [ebp - 4], eax
jmp 0x42f201
test ebx, ebx
jne 0x42f18e
call dword [sym.imp.x_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
jmp 0x42f1b7
mov eax, dword [ebp - 4]
test eax, eax
je 0x42f201
mov edi, dword [ebp - 0x14]
mov edi, edi
cmp word [eax], 0
je 0x42f1fe
push eax
push edi
call fcn.00428660
push 0
push dword [eax]
push dword [ebp - 8]
call fcn.00428ad0
mov edx, dword [ebp - 4]
add esp, 0x14
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f1e4
sub eax, ebx
sar eax, 1
inc eax
lea eax, [edx + eax*2]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f1c0
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x42f21c
mov eax, dword [esi]
test eax, eax
je 0x42f21c
push eax
push dword [ebp - 8]
call fcn.0042f280
add esp, 8
add esi, 4
jne 0x42f205
mov eax, dword [ebp - 8]
mov esi, dword [eax]
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.004323e0
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x18]
push 1
push edi
push esi
push 0
push dword [eax]
call fcn.0042f610
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x42f266
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x515eec
push 0x550003
call fcn.0042ab50
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.00431d60
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push fcn.0042a8d0
lea ecx, [ebp - 8]
lea eax, [ebp + 4]
add eax, 0xfffffffc
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00428190
mov edi, eax
lea eax, [ebp - 0x5c]
push 0x44
push 0
push eax
mov dword [ebp - 8], edi
call fcn.004f7a50
mov eax, dword fs:[0x2c]
add esp, 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0x44
mov ecx, 1
movdqu xmmword [ebp - 0x18], xmm0
mov ebx, dword [eax]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x1d10]
neg eax
movq qword [esi], xmm0
mov dword [esi + 8], 0
sbb eax, eax
mov dword [ebp - 0x30], ecx
and eax, 5
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42f698
push eax
push edi
call fcn.0042f350
mov ecx, dword [ebp - 0x30]
add esp, 8
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x42f6ec
or ecx, 0x100
push 0
push edi
mov dword [ebp - 0x30], ecx
call fcn.0042f920
add esp, 8
test eax, eax
je 0x42f6d5
lea eax, [ebx + 0x1d20]
push eax
push 0x515dac
push 0x550003
call fcn.0042ab50
add esp, 0xc
jmp 0x42f7f0
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x1d14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1d18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
je 0x42f775
mov dword [ebp - 0x54], 0x515850
test eax, eax
je 0x42f714
push eax
push ebx
call fcn.00428840
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x1c], eax
jmp 0x42f71b
mov dword [ebp + 0x1c], 0
push dword [ebp + 8]
push ebx
call fcn.00428840
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 8]
push dword [ecx]
push 0x400
push dword [ebp + 0x18]
push 0
push 0
push dword [eax]
push 0
push dword [ebp + 0x20]
call dword [0x510030]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42f7e4
push 0x515dc0
push 0x550003
call fcn.0042ab50
add esp, 8
jmp 0x42f7f0
test eax, eax
je 0x42f78a
push eax
push ebx
call fcn.00428840
add esp, 8
mov eax, dword [eax]
mov dword [ebp + 0x1c], eax
jmp 0x42f791
mov dword [ebp + 0x1c], 0
push dword [ebp + 8]
push ebx
call fcn.00428840
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 8]
push dword [ecx]
push 0x400
push dword [ebp + 0x18]
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.x_CreateProcessW]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x42f7e4
push 0x515de0
push 0x550003
call fcn.0042ab50
add esp, 8
jmp 0x42f7f0
lea eax, [ebp - 0x14]
push eax
call fcn.00431d60
add esp, 4
test edi, edi
je 0x42f80f
mov edi, 3
lea esp, [esp]
push esi
call fcn.00431d60
add esp, 4
add esi, 4
dec edi
jne 0x42f800
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret