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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x61bc51
dec al
je 0x61bc8c
dec al
je 0x61bcd0
dec al
je 0x61bd42
jmp 0x61bddd
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x61bddd
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61bc61
jmp 0x61bddd
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61bddd
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x61bc9c
jmp 0x61bddd
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61bddd
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x61bd03
xor edx, edx
mov dword [esp + 4], edx
jmp 0x61bd18
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x61bd30
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x61bce0
jmp 0x61bddd
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x61bddd
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x61bda9
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00618b5c
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x61bd5e
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x623ba4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x623bbe
add esp, 0xfffffff0
call fcn.00409604
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x623cdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
shl eax, 3
call fcn.00406e80
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x623cc5
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00536110
xor eax, eax
push ebp
push 0x623cb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00536110
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea esi, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [esi], eax
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.0040b9b4
jmp 0x623c7d
lea eax, [esi + 4]
mov ecx, 1
mov edx, 1
call fcn.0040bce4
mov edi, dword [esi + 4]
mov ebx, edi
test ebx, ebx
je 0x623c89
mov ebx, dword [ebx - 4]
dec ebx
jle 0x623c95
mov eax, dword [esi + 4]
cmp word [eax], 0x5f
je 0x623c6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x623cb9
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x623ce4
lea eax, [ebp - 4]
call fcn.0040ae34
pop eax
jmp eax
Function at 0x695b74
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x695b7c
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x695d2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x695d44
call fcn.0040bb2c
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
xor edx, edx
call fcn.00693744
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x695d58
call fcn.0063d280
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x695bf5
mov eax, dword [eax - 4]
test eax, eax
jle 0x695c36
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.00693744
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x695dc0
call fcn.0063d280
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040bad4
mov eax, esi
mov edx, 0x695dec
call fcn.0040bad4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x695c4c
mov eax, dword [eax - 4]
test eax, eax
jle 0x695cb8
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x695e00
call fcn.0063d280
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040bad4
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x695c81
mov eax, dword [eax - 4]
test eax, eax
jle 0x695cac
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x695e30
call fcn.0063d280
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040bad4
mov eax, esi
mov edx, 0x695dec
call fcn.0040bad4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x695cc2
mov eax, dword [eax - 4]
test eax, eax
jle 0x695ced
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x695e5c
call fcn.0063d280
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040bad4
mov eax, esi
mov edx, 0x695dec
call fcn.0040bad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x695d32
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040ae4c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040ae4c
lea eax, [ebp - 4]
call fcn.0040adec
pop eax
jmp eax
Function at 0x6ce158
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov eax, dword [esp]
mov dword [esp + 8], eax
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp + 4]
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x6ce21b
mov edx, dword [esp + 8]
lea edi, [edx + ecx]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edi, byte [esi + ebx + 1]
shr edi, 4
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edi, byte [esi + ebx + 2]
shr edi, 6
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 2], dl
mov edx, dword [esp + 8]
lea edx, [edx + ecx + 3]
push edx
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
pop edi
mov byte [edi], dl
add ecx, 4
add ebx, 3
dec eax
jne 0x6ce18c
mov edi, dword [esp + 4]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + edx*2]
sub edi, edx
dec edi
je 0x6ce23d
dec edi
je 0x6ce282
jmp 0x6ce2e2
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx], dl
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx + 1], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 2], 0x3d
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
jmp 0x6ce2e2
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx], dl
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edx, dword [esp + 8]
mov byte [edx + ecx + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x6ce404
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x6ce423
add edx, 3
sar edx, 2
test edx, edx
jle 0x6ce530
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x6ce458
je 0x6ce49b
sub ecx, 0x2b
je 0x6ce491
sub ecx, 4
je 0x6ce496
dec ecx
sub ecx, 0xa
jb 0x6ce483
jmp 0x6ce49e
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x6ce46a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x6ce475
jmp 0x6ce49e
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x6ce49e
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x6ce49e
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x6ce49e
mov byte [eax], 0x3e
jmp 0x6ce49e
mov byte [eax], 0x3f
jmp 0x6ce49e
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x6ce43b
movzx eax, byte [esp + 4]
shl eax, 2
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x6ce4ee
cmp byte [esp + 7], 0xff
jne 0x6ce4ee
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x6ce525
cmp dl, 0xff
je 0x6ce525
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x6ce432
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x6d0b38
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
mov edx, ecx
dec edx
test edx, edx
jb 0x6d0b53
inc edx
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x6d0b48
pop edi
pop esi
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x401010
repz ret
jmp fcn.00401748

Function at 0x405478
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402f5b
and dword [ebp - 4], 0
cmp dword [0x42b430], 0
mov ebx, eax
jne 0x405529
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055da
push eax
call fcn.00402ee9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b430], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b434], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b438], eax
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42b440], eax
test eax, eax
je 0x405529
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42b43c], eax
mov eax, dword [0x42b43c]
cmp eax, ebx
je 0x405581
cmp dword [0x42b440], ebx
je 0x405581
push eax
call fcn.00402f64
push dword [0x42b440]
mov esi, eax
call fcn.00402f64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405581
test edi, edi
je 0x405581
call esi
test eax, eax
je 0x405578
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405578
test byte [ebp - 0xc], 1
jne 0x405581
or dword [ebp + 0x10], 0x200000
jmp 0x4055ba
mov eax, dword [0x42b434]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055ba
mov eax, dword [0x42b438]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b430]
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420c03
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x42cec4]
push dword [0x42cbe0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x420c92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp ebx, 0x19f
jne 0x420cab
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
xor edi, edi
test ebx, ebx
jle 0x420ce3
push esi
and dword [ebp - 8], 0
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
call fcn.00420c87
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x420cb3
pop esi
pop edi
cmp ebx, 0x2d
jne 0x420cfa
or dword [0x42ced4], 0xffffffff
mov dword [0x42ced0], 0xa62e7790
leave
ret
Function at 0x4026f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4653b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401110
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402744
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402190
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401110
cmp dword [esp + 0x24], 8
jb 0x40278a
mov eax, dword [esp + 0x10]
push eax
call fcn.0044ec2b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x404eb0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
jne 0x404ec1
xor eax, eax
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0xc]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [edi + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x134]
push 1
call edx
mov ecx, dword [0x47b798]
push 3
call fcn.00409290
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea esi, [edi + 0xfc]
push esi
call ebx
test eax, eax
je 0x404f5c
mov ebp, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
lea esp, [esp]
mov eax, dword [edi + 0xe8]
mov ecx, dword [esi]
push esi
push eax
push ecx
call ebp
test eax, eax
jne 0x404f4f
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
push esi
call ebx
test eax, eax
jne 0x404f30
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 0x104]
pop esi
pop ebp
mov dword [eax], edx
mov eax, 1
pop ebx
ret 8
Function at 0x4057d0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x860
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x85c], eax
push esi
push edi
push 0x7fe
lea eax, [esp + 0x66]
push 0
push eax
mov word [esp + 0x6c], 0
call fcn.00452a60
add esp, 0xc
xor eax, eax
jmp 0x405810
movzx ecx, word [eax + 0x469fa4]
mov word [esp + eax + 0x60], cx
add eax, 2
test cx, cx
jne 0x405810
cmp dword [esp + 0x884], 8
mov eax, dword [esp + 0x870]
jae 0x40583c
lea eax, [esp + 0x870]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405840
lea edi, [esp + 0x60]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405854
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4058ef
cmp dword [esp + 0x884], 8
jb 0x4058d6
mov edx, dword [esp + 0x870]
push edx
call fcn.0044ec2b
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x85c]
xor ecx, esp
call fcn.0044eeec
add esp, 0x860
ret
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push 0x7530
push eax
call esi
test eax, eax
jne 0x4058f5
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
cmp dword [esp + 0x884], 8
jb 0x405933
mov eax, dword [esp + 0x870]
push eax
call fcn.0044ec2b
add esp, 4
mov ecx, dword [esp + 0x864]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044eeec
add esp, 0x860
ret
Function at 0x405950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x465a76
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
lea ebp, [edi + 0x14]
mov dword [edi], vtable.CInstallProcessCtrl.0
xor ebx, ebx
mov eax, 7
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], ebx
mov word [edi + 0x40], bx
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], ebx
mov word [edi + 0x5c], bx
mov dword [edi + 0x8c], eax
mov dword [edi + 0x88], ebx
mov word [edi + 0x78], bx
mov dword [edi + 0xa8], eax
mov dword [edi + 0xa4], ebx
mov word [edi + 0x94], bx
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc0], ebx
mov word [edi + 0xb0], bx
lea esi, [edi + 0xcc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
push 0xa
push str.XYNetSetup
mov byte [esp + 0x24], 6
call fcn.00401070
push ebx
push 0x469acc
mov esi, ebp
mov dword [edi + 0xc], ebx
mov dword [edi + 0x38], ebx
call fcn.00401070
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xe8], 2
mov dword [edi + 0xec], ebx
mov dword [edi + 8], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4