joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493830
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x493847
add esp, 0xfffffff0
call fcn.0040580c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00441454
mov eax, dword [0x560a20]
cmp byte [eax], 0
jne 0x493874
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x560efc]
cmp word [eax + 2], 0
jne 0x49388e
mov eax, dword [0x560efc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00495928
mov eax, dword [0x5610a8]
cmp word [eax + 2], 0
jne 0x4938a8
mov eax, dword [0x5610a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00495b38
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x446cdc]
call fcn.0044d218
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4960e8
mov dl, 1
mov eax, dword [0x42a47c]
call fcn.004052a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42a47c]
call fcn.004052a8
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44b3dc]
call fcn.00456a28
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x493a88
mov eax, dword [0x560d0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00456ebc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4963d0
mov dl, 1
mov eax, dword [0x42a47c]
call fcn.004052a8
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x560d0c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004147dc
test eax, eax
je 0x4939b9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041456c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004147c0
test eax, eax
je 0x4939d1
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004071f4
push ebx
push 0x4952f8
call fcn.00489520
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x560a20]
cmp byte [eax], 0
jne 0x493a22
mov eax, ebx
call fcn.00493bfc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004965fc
mov eax, ebx
call fcn.00497230
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x493a7f
call fcn.00405864
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493ed0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x493f72
cmp dword [ebx + 0x94], 0
jne 0x493f6c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x493e1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x493f6c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x493f32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x493f6c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00435618
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x493f41
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x494190
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5671e0]
cmp dword [eax + 0x170], 0
je 0x4942f5
test bl, bl
jne 0x494243
cmp dword [esi + 0x9c], 0
jne 0x494238
mov eax, esi
call fcn.00497080
push eax
push 0x49409c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x494209
mov eax, dword [0x5671e0]
cmp byte [eax + 0xd3], 0
je 0x494209
mov eax, dword [esi + 0xd8]
call fcn.004087f0
mov edi, eax
cmp edi, 0
jl 0x494209
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4941f2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x494238
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00435618
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x494218
inc dword [esi + 0x9c]
jmp 0x4942f5
cmp dword [esi + 0x9c], 0
jle 0x4942f5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4942f5
cmp dword [esi + 0x44], 0
je 0x4942a0
mov eax, dword [0x5671e0]
cmp byte [eax + 0xd3], 0
je 0x4942a0
mov eax, dword [esi + 0xd8]
call fcn.004087f0
mov edi, eax
cmp edi, 0
jl 0x4942a0
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x494289
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4942cf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00435618
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4942af
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4873f8]
call fcn.004089b0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x494f44
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x494faf
cmp byte [ebx + 0xd3], 0
jne 0x494faf
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407138
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x494f9c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x494fbc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406ffc
jmp 0x494fbc
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406ffc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4967e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x496852
mov eax, esi
call fcn.004b9924
test al, al
je 0x496852
mov eax, dword [ebx + 0x84]
call fcn.004b9578
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x496852
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x496846
push 0
mov eax, dword [ebx + 0x84]
call fcn.004b9578
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004b0514
jmp 0x496852
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0049661c
pop esi
pop ebx
ret

Function at 0x49a018
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406ffc
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x49a05f
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004071f4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x49f85c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49f995
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4435b0]
call fcn.004447b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x49f96b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0044489c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004071f4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x49f9b0
call fcn.004074c8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00444b18
test al, al
je 0x49f955
lea ecx, [ebp - 4]
mov edx, 0x49fa24
mov eax, dword [ebp - 0xc]
call fcn.00445414
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041b7a8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x49f94e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x49fa3c
mov eax, dword [ebp - 8]
push eax
call fcn.0040bc10
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x55dfdc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f955
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f972
mov eax, dword [ebp - 0xc]
call fcn.004052d8
ret

Function at 0x49faa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x49fae7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49faca
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49fadb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x49fae7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4adb5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x567264], 0
je 0x4adc9d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x561054]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4adc9d
mov eax, dword [0x567268]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x567264]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4adc6c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x567264]
call fcn.00435618
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4adc64
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4adc64
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4adc64
mov eax, dword [ebp - 0x14]
call fcn.004b9578
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4adc64
push ebp
call fcn.004adb18
pop ecx
test al, al
jne 0x4adc64
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405564
test al, al
je 0x4adc64
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00405564
cmp byte [ebp - 1], 0
je 0x4adc64
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040ad6c
test al, al
je 0x4adc64
mov edx, dword [ebp - 0x14]
mov eax, dword [0x567268]
call fcn.004ad274
inc edi
dec ebx
jne 0x4adbc1
mov eax, dword [0x567268]
cmp dword [eax + 8], 0
jle 0x4adc84
mov eax, dword [0x567268]
call fcn.004ad32c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4adc9d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004ad97c
pop ecx
test al, al
jne 0x4adc9d
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b60ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040ad54
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004b0124
test ebx, ebx
jne 0x4b613f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004b5f68
mov ebx, eax
test ebx, ebx
je 0x4b6235
cmp esi, ebx
je 0x4b6168
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4b617d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4b61b5
add eax, 0xffffff5f
sub eax, 2
jb 0x4b61cd
dec eax
sub eax, 2
jb 0x4b61e1
dec eax
sub eax, 2
jb 0x4b61d7
jmp 0x4b61eb
add eax, 0xfffffdff
sub eax, 2
jb 0x4b61cd
dec eax
sub eax, 2
jb 0x4b61e1
dec eax
sub eax, 2
jb 0x4b61d7
jmp 0x4b61eb
mov byte [esp + 0x120], 0
jmp 0x4b61f3
mov byte [esp + 0x120], 2
jmp 0x4b61f3
mov byte [esp + 0x120], 1
jmp 0x4b61f3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004895d0
mov esi, eax
call fcn.004ac960
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004b1ae4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4b6237
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x545e1c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40cc1c]
call fcn.00407cdc
xor eax, eax
push ebp
push 0x545f66
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5603e0], 0
jne 0x545e70
mov ecx, dword [0x560a50]
mov dl, 1
mov eax, dword [0x40de68]
call fcn.00418c30
call fcn.00405db0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404b40
mov eax, ebx
call fcn.00406e40
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x545f74
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409e1c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x545eb7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x545f0c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x545f05
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.0040725c
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.004071f4
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00412e68
test eax, eax
jne 0x545f05
mov ebx, 0x15
jmp 0x545f11
mov ebx, 0x10
jmp 0x545f11
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x5603e0]
call fcn.00545c88
mov eax, dword [ebp - 4]
call fcn.00545c88
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545f6d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406ff4
lea eax, [ebp - 0xc]
mov edx, dword [0x40cc1c]
call fcn.00407db4
ret
Function at 0x5471bc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5472d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dword [ebp - 0x238], 0x22c
xor edx, edx
mov eax, 2
call fcn.005470a0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0xc]
call fcn.005470c0
test eax, eax
je 0x5472ae
mov eax, dword [0x561054]
mov eax, dword [eax]
call fcn.004954ec
push 0xa
call sub.kernel32.dll_Sleep_2
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.004071f4
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebp - 4]
call fcn.00412b48
test eax, eax
jne 0x547298
xor edx, edx
push ebp
push 0x54728e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x230]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5472ae
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0xc]
call fcn.005470e0
test eax, eax
jne 0x547214
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5472d7
lea eax, [ebp - 0x23c]
call fcn.00406fec
ret

Function at 0x5472e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x214], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x54739b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00406ffc
xor edx, edx
push ebp
push 0x547378
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
push eax
push esi
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x54736e
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x54736e
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.004071f4
mov edx, dword [ebp - 0x214]
mov eax, ebx
mov ecx, 0x5473b8
call fcn.004074c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x547382
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5473a2
lea eax, [ebp - 0x214]
call fcn.00406fec
ret
Function at 0x5480e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x30
add esp, 0xfffff004
push eax
dec eax
jne 0x5480e9
mov eax, dword [ebp - 4]
add esp, 0xfffff2bc
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x54815e
cmp dword [ebp - 4], 0
jbe 0x54815e
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x30d46]
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 4], 0
jbe 0x54815e
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x30d46], 0
mov eax, esi
lea edx, [ebp - 0x30d46]
mov ecx, 0x186a1
call fcn.004071f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x548164
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406fe4
xor eax, eax
push ebp
push 0x5483cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x8c], 0xc
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0xffffffff
push 0x186a0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x548224
xor eax, eax
push ebp
push 0x548203
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x186a0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x548224
xor eax, eax
push ebp
push 0x548380
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0x44
call fcn.00404b40
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x101
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x28
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 4]
call fcn.00407088
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x548362
mov dword [ebp - 0x2c], 0x103
mov eax, dword [0x56135c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00492a84
xor eax, eax
push ebp
push 0x54835b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x561054]
mov eax, dword [eax]
call fcn.004954ec
lea edx, [ebp - 8]
lea eax, [ebp - 0x20]
call fcn.005480e0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.005480e0
cmp dword [ebp - 0x2c], 0x103
je 0x5482bc
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x548314
cmp dword [ebp - 0x2c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548362
mov eax, dword [0x56135c]
mov eax, dword [eax]
xor edx, edx
call fcn.00492a84
cmp dword [ebp - 0x2c], 0x103
jne 0x548343
push 1
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x3c], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548387
lea eax, [ebp - 0x20]
call fcn.005480b8
lea eax, [ebp - 0x28]
call fcn.005480b8
ret