joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4716a4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416ccc]
call fcn.00405260
xor eax, eax
push ebp
push 0x4717e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bb124], 0
jne 0x4716f7
mov ecx, dword [0x4bc504]
mov dl, 1
mov eax, dword [0x407dd0]
call fcn.0040cbe4
call fcn.0040420c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031c8
mov eax, ebx
call fcn.00405130
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4717f8
lea edi, [ebp - 0x30]
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 edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406290
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405140
test eax, eax
jle 0x47178f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x471788
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b18
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404ae4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c94
test eax, eax
jne 0x471788
mov ebx, 0x15
jmp 0x471794
mov ebx, 0x10
jmp 0x471794
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4bb124]
call fcn.004715fc
mov eax, dword [ebp - 8]
call fcn.004715fc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004062a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4717ef
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404898
lea eax, [ebp - 0x10]
mov edx, dword [0x416ccc]
call fcn.00405330
ret
Function at 0x47ae24
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47af9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004031c8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4bb458], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4bb45c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4bb460], eax
mov eax, dword [0x4bcadc]
cmp dword [eax], 2
sete byte [0x4bb3c4]
push 0x47afa8
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.0047b474
cmp byte [0x4bb3c4], 0
jne 0x47aeb0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0047b4a4
test al, al
je 0x47aeb0
mov eax, dword [ebp - 0x4c]
mov dword [0x4be224], eax
jmp 0x47aeb7
xor eax, eax
mov dword [0x4be224], eax
call fcn.0047acbc
and eax, 0x7f
cmp eax, 0xc
ja case.0x47aec8.0
jmp dword [eax*4 + 0x47aecf]
mov byte [0x4bb3b0], 1
jmp case.0x47aec8.0
mov byte [0x4bb3b4], 1
jmp case.0x47aec8.0
mov byte [0x4bb3b8], 1
jmp case.0x47aec8.0
mov byte [0x4bb3bc], 1
jmp case.0x47aec8.0
mov byte [0x4bb3c0], 1
jmp case.0x47aec8.0
mov byte [0x4bb3c8], 1
mov byte [0x4bb3cc], 1
jmp case.0x47aec8.0
mov byte [0x4bb3c8], 1
mov byte [0x4bb3d0], 1
jmp case.0x47aec8.0
mov byte [0x4bb3c8], 1
mov byte [0x4bb3d4], 1
jmp case.0x47aec8.0
mov byte [0x4bb3d8], 1
jmp case.0x47aec8.0
mov byte [0x4bb3dc], 1
jmp case.0x47aec8.0
mov byte [0x4bb3e0], 1
jmp case.0x47aec8.0
mov byte [0x4bb3e4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47afa1
lea eax, [ebp - 4]
call fcn.00404874
ret

Function at 0x47b4a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47b54b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404d50
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x47b535
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404edc
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404d50
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47b535
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47b55c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47b535
cmp dword [ebp - 8], 0x34
jne 0x47b535
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b552
lea eax, [ebp - 0x10]
call fcn.00404874
ret
Function at 0x47bc30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47bd04
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040490c
lea eax, [ebp - 8]
call fcn.00404da0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d50
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47bcee
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47bce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d50
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47bcd1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47bd14
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47bcd1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bcee
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd0b
lea eax, [ebp - 8]
call fcn.00404874
ret

Function at 0x47f380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x47f3f3
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 4], edx
test al, al
je 0x47f3dd
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0047f1dc
cmp dword [ebp - 8], 0
je 0x47f3d2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00416fdc
test al, al
je 0x47f3dd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x47f3dd
mov eax, dword [ebp - 0xc]
call fcn.0047f2d8
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f3fa
lea eax, [ebp - 0xc]
call fcn.00404874
ret
Function at 0x47f494
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x47f54e
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
jne 0x47f4bd
mov eax, ebx
call fcn.00404874
jmp 0x47f538
mov ecx, ebx
lea edx, [ebp - 4]
call fcn.0047f1dc
cmp dword [ebp - 4], 0
je 0x47f538
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00416fd0
test al, al
je 0x47f531
xor eax, eax
push ebp
push 0x47f52a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0047f404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f538
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.00416fd0
test al, al
je 0x47f529
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
mov eax, ebx
call fcn.00404874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f555
lea eax, [ebp - 0xc]
call fcn.00406290
ret

Function at 0x481fd0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x482144
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x481ff7
mov eax, edi
call fcn.0048295c
jmp 0x481ffe
mov eax, edi
call fcn.00482988
test bl, bl
je 0x48211f
test byte [edi + 0x1c], 0x10
je 0x482019
test byte [edi + 0x2b8], 0x10
je 0x48211f
push 0
push 0x482154
call sub.user32.dll_FindWindowA
mov dword [edi + 0x2ac], eax
mov esi, dword [edi + 0x3c]
test esi, esi
je 0x48203d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x482052
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov edx, dword [eax + 0x98]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 8]
lea esi, [edi + 0x40]
mov eax, edi
call fcn.00481a90
test al, al
je 0x482072
mov dword [esi], 0x1e8
mov dword [edi + 0x1e0], 3
jmp 0x482078
mov dword [esi], 0x58
mov eax, dword [edi + 0x228]
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0x10], 0x401
cmp dword [edi + 0x3c], 0
je 0x4820a2
mov eax, dword [edi + 0x3c]
call fcn.0042cce8
mov dword [esi + 0x14], eax
jmp 0x4820b2
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov dword [edi + 0x3c], eax
lea edx, [ebp - 4]
mov eax, dword [edi + 0x22c]
call fcn.0044ced4
mov edx, dword [ebp - 4]
lea eax, [esi + 0x18]
mov ecx, 0x7f
call fcn.00409968
mov dword [esi + 0xc], 0x17
test byte [edi + 0x2b8], 8
je 0x4820fd
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x4820fd
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp byte [eax + 0x57], 0
jne 0x482106
xor edx, edx
mov eax, edi
call fcn.004829ac
mov eax, edi
call fcn.00481a90
test al, al
je 0x48212b
mov edx, 4
mov eax, edi
call fcn.004829ac
jmp 0x48212b
mov edx, 2
mov eax, edi
call fcn.004829ac
mov byte [edi + 0x38], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48214b
lea eax, [ebp - 4]
call fcn.00404874
ret
Function at 0x4821a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4821f5
mov edx, dword [0x4bc8cc]
cmp byte [eax + 0x22b], 1
je 0x4821f5
cmp byte [ebx + 0x2c0], 0
je 0x4821e9
mov edx, dword [0x4bc8cc]
xor edx, edx
call fcn.004691e8
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
call fcn.0046f64c
push 0
mov eax, dword [0x4bc8cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x260], 0
test byte [ebx + 0x2b8], 8
je 0x482220
xor edx, edx
mov eax, ebx
call fcn.004829ac
pop ebx
ret

Function at 0x484024
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00404d50
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x484055
mov eax, dword [esp + 4]
jmp 0x484057
xor eax, eax
add esp, 0x160
pop ebx
ret

Function at 0x484cb4
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00404d50
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x484ce5
mov eax, dword [esp + 4]
jmp 0x484ce7
xor eax, eax
add esp, 0x160
pop ebx
ret

Function at 0x4894fc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov al, 8
mov edx, dword [esp + 0x10]
sub edx, 1
jb 0x489521
je 0x489525
dec edx
je 0x489543
jmp 0x489570
mov al, 1
jmp 0x489570
mov edx, dword [esp + 8]
test edx, edx
jne 0x489531
mov al, 2
jmp 0x489570
cmp edx, 0xa
jne 0x48953a
mov al, 3
jmp 0x489570
cmp edx, 0x5a
jne 0x489570
mov al, 4
jmp 0x489570
cmp dword [esp + 4], 5
jne 0x489555
cmp dword [esp + 8], 0
jne 0x489555
mov al, 6
jmp 0x489570
mov edx, dword [esp + 4]
cmp edx, 5
jne 0x489569
cmp dword [esp + 8], 1
jne 0x489569
mov al, 7
jmp 0x489570
cmp edx, 4
ja 0x489570
mov al, 5
add esp, 0x94
ret

Function at 0x489668
Capabilities:
Shutdown system

Disassembly:
xor edx, edx
mov dword [eax + 0x34], edx
test byte [eax + 0x31], 1
je 0x489677
or dword [eax + 0x34], 4
test byte [eax + 0x31], 2
je 0x489681
or dword [eax + 0x34], 0
test byte [eax + 0x31], 4
je 0x48968b
or dword [eax + 0x34], 8
test byte [eax + 0x31], 8
je 0x489695
or dword [eax + 0x34], 2
test byte [eax + 0x31], 0x10
je 0x48969f
or dword [eax + 0x34], 1
push 0
mov eax, dword [eax + 0x34]
push eax
call sub.user32.dll_ExitWindowsEx
mov al, 1
ret
Function at 0x48ca3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48cab0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404ae4
mov edx, dword [ebp - 0x10c]
mov ecx, esi
mov eax, ebx
call fcn.0048cd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cab7
lea eax, [ebp - 0x10c]
call fcn.00404874
ret

Function at 0x48cac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48cb34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404ae4
mov edx, dword [ebp - 0x10c]
mov ecx, esi
mov eax, ebx
call fcn.0048cd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cb3b
lea eax, [ebp - 0x10c]
call fcn.00404874
ret

Function at 0x48cb44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48cbb8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404ae4
mov edx, dword [ebp - 0x10c]
mov ecx, esi
mov eax, ebx
call fcn.0048cd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cbbf
lea eax, [ebp - 0x10c]
call fcn.00404874
ret

Function at 0x48ceb4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48cf9f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48cf72
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4399b4]
call fcn.00439af0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48cf61
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00439b90
xor ecx, ecx
mov edx, 0x48cfb8
mov eax, dword [ebp - 8]
call fcn.00439bf8
lea eax, [ebp - 0x10]
mov edx, dword [esi*4 + 0x4bbaf8]
call fcn.00404a6c
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0043a060
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0048cd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cf68
mov eax, dword [ebp - 8]
call fcn.00403a40
ret
Function at 0x48cffc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
push 0x103
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00404d50
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, esi
mov edx, esp
mov ecx, 0x105
call fcn.00404ae4
add esp, 0x108
pop esi
pop ebx
ret

Function at 0x490a94
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x490ac2
mov eax, ebx
call fcn.00491548
cmp dword [ebx + 0x40], 0
je 0x490abb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x490b33
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x490b25
cmp dword [ebx + 8], 0
je 0x490ae4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x490af6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x490b25
cmp dword [ebx + 8], 0
je 0x490ad7
cmp eax, 3
je 0x490b09
dec eax
jne 0x490ad7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x490ad7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x490ad7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x490b51
cmp dword [ebx + 0x14], 0xcc
je 0x490b51
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00490b5c
pop ebx
ret
Function at 0x4ae480
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0xc
call fcn.004031c8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0xc
call fcn.004031c8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 8
call fcn.004031c8
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.004031c8
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], 0xc
mov eax, dword [0x4bcadc]
cmp dword [eax], 2
jne 0x4ae4ff
push 1
lea eax, [ebp - 0x34]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], eax
jmp 0x4ae504
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
push ebp
push 0x4ae62e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x4ae538
call fcn.0040e134
push 2
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x4ae566
call fcn.0040e134
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x4ae582
call fcn.0040e134
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x4ae5aa
call fcn.0040e134
push 2
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x4ae5d5
call fcn.0040e134
mov byte [ebp - 0x11], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae635
lea eax, [ebp - 0x10]
call fcn.004ae45c
lea eax, [ebp - 0xc]
call fcn.004ae45c
cmp byte [ebp - 0x11], 0
jne 0x4ae62d
mov eax, dword [ebp - 4]
call fcn.004ae45c
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004ae45c
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004ae45c
mov eax, dword [ebp - 8]
call fcn.004ae45c
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004ae45c
ret
Function at 0x4aede0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x4aef25
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4aef05
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x50]
test esi, esi
jne 0x4aee2e
call fcn.004042b8
call fcn.004042b8
jmp 0x4aef2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
test eax, eax
ja 0x4aee4a
call fcn.004042b8
call fcn.004042b8
jmp 0x4aef2c
mov ebx, eax
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4aee94
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xe8
je 0x4aee7a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x6d
jne 0x4aee85
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.004ae45c
call fcn.004042b8
call fcn.004042b8
jmp 0x4aef2c
cmp dword [ebp - 0xc], 0
ja 0x4aeea9
call fcn.004042b8
call fcn.004042b8
jmp 0x4aef2c
cmp ebx, dword [ebp - 0xc]
jbe 0x4aeec8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [eax + edx + 0x5c]
mov ecx, ebx
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, 0x5c
call fcn.004029fc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub dword [eax + 0x45c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aef0c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
setne byte [ebp - 5]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x45c], 0
jne 0x4aef04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_ResetEvent
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret