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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459d47
add esp, 0xfffffff0
call fcn.00403b54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041de8c
mov eax, dword [0x489d04]
cmp word [eax + 2], 0
jne 0x459d6f
mov eax, dword [0x489d04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b4b0
mov eax, dword [0x489dbc]
cmp word [eax + 2], 0
jne 0x459d89
mov eax, dword [0x489dbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b6a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415e28]
call fcn.00403800
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415e28]
call fcn.00403800
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4203d8]
call fcn.0042779c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459f10
mov eax, dword [0x489c18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427b6c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bc58
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x489c18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d740
test eax, eax
je 0x459e7e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040978c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d768
test eax, eax
je 0x459e92
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048b4
mov eax, dword [0x489ae0]
cmp byte [eax], 0
jne 0x459ec6
mov eax, ebx
call fcn.0045a038
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045be34
mov eax, ebx
call fcn.0045c7f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459f06
call fcn.00403bac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a2b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48abe0]
cmp dword [eax + 0x30], 0
je 0x45a362
cmp dword [ebx + 0x94], 0
jne 0x45a35c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a248
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a35c
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_GetWindowLongA
test al, 8
je 0x45a322
pop es
Function at 0x45aec4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45aef9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404734
jmp 0x45af06
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404698
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c010
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c051
mov eax, esi
call fcn.00442704
test al, al
je 0x45c051
mov eax, dword [ebx + 0x84]
call fcn.00442400
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c051
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442400
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45daa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x45db26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.004077a4
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x414
lea eax, [ebp - 0x28]
mov ecx, 0x45db3c
mov edx, dword [ebp - 4]
call fcn.0040496c
mov eax, dword [ebp - 0x28]
call fcn.00404b20
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45db2d
lea eax, [ebp - 0x28]
call fcn.00404644
lea eax, [ebp - 4]
call fcn.00404644
ret

Function at 0x45f024
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x45f086
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404698
mov eax, ebx
call fcn.00404b70
mov eax, dword [ebx]
call fcn.00404920
test eax, eax
jle 0x45f070
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x45f065
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f08d
lea eax, [ebp - 4]
call fcn.00404644
ret
Function at 0x462a04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x462ad8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b20
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x462aba
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00404cac
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b20
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x462aba
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x462aec
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x462aba
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462adf
lea eax, [ebp - 0x1c]
call fcn.00404644
lea eax, [ebp - 4]
call fcn.00404644
ret

Function at 0x462c48
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x462c90
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x462c86
cmp word [edi], 0x5a4d
jne 0x462c86
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x462c86
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x462c9c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x462e2c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x462e72
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x462ea3
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x462f00
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x462ece
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x462ee0
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x462efa
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x465fd0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x46604c
cmp dword [esp + 0x10], 0x1000
jne 0x46604c
cmp dword [esp + 4], 0
je 0x46604c
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x46604c
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x46604c
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x46604c
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x468730
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4688d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x4688a4
cmp word [edi + 0x1e], 2
jb 0x4688a4
movzx edx, word [edi + 0x1e]
sub edx, 2
sar edx, 1
jns 0x468790
adc edx, 0
mov eax, esi
call fcn.004050ec
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x1e]
sub eax, 2
push eax
mov eax, dword [esi]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4687c5
mov eax, dword [ebp - 8]
add eax, 2
movzx edx, word [edi + 0x1e]
cmp eax, edx
je 0x4687c9
xor ebx, ebx
jmp 0x4687cb
mov bl, 1
test bl, bl
je 0x4688a4
mov eax, dword [esi]
call fcn.00404f0c
mov edx, eax
mov eax, esi
call fcn.00404ea4
lea eax, [ebp - 0x218]
mov edx, dword [esi]
call fcn.004048e8
mov edx, dword [ebp - 0x218]
mov eax, 0x4688ec
call fcn.0045e634
test al, al
je 0x46881a
mov eax, esi
mov ecx, 4
mov edx, 1
call fcn.0040505c
jmp 0x4688a4
lea eax, [ebp - 0x21c]
mov edx, dword [esi]
call fcn.004048e8
mov edx, dword [ebp - 0x21c]
mov eax, 0x4688fc
call fcn.0045e6a4
test al, al
je 0x468891
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x220]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, 0x15
call fcn.00405010
mov eax, dword [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00404ee0
mov edx, dword [ebp - 0x224]
mov eax, esi
pop ecx
call fcn.00404f28
jmp 0x4688a4
mov eax, dword [esi]
call fcn.00404f0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4688d9
lea eax, [ebp - 0x224]
mov edx, 2
call fcn.00404dac
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00404668
ret
Function at 0x468914
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x468a74
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404b20
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and edx, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.00402fcc
lea eax, [ebp - 0x174]
mov edx, ebx
and edx, 0xff00
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.00402f9c
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
call fcn.004048a8
mov eax, dword [ebp - 8]
mov edx, 0x468a8c
call fcn.00404a6c
jne 0x4689d5
mov bl, 1
jmp 0x468a4e
mov eax, dword [ebp - 8]
mov edx, 0x468a98
call fcn.00404a6c
jne 0x4689e8
mov bl, 2
jmp 0x468a4e
mov eax, dword [ebp - 8]
mov edx, 0x468aa4
call fcn.00404a6c
jne 0x468a07
mov eax, ebx
call fcn.00407798
test ax, ax
jne 0x468a07
mov bl, 3
jmp 0x468a4e
mov eax, dword [ebp - 8]
mov edx, 0x468aa4
call fcn.00404a6c
jne 0x468a26
mov eax, ebx
call fcn.00407798
test ax, ax
jbe 0x468a26
mov bl, 4
jmp 0x468a4e
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 4]
call fcn.00409604
mov eax, dword [ebp - 0x178]
mov edx, 0x468ab0
call fcn.0045e338
test al, al
je 0x468a4c
mov bl, 1
jmp 0x468a4e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468a7b
lea eax, [ebp - 0x178]
call fcn.00404644
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404668
ret
Function at 0x468ac0
Capabilities:
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x468bb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4010
cmp byte [ebp - 5], 0
je 0x468aff
or esi, 1
jmp 0x468b02
or esi, 0
test bl, bl
je 0x468b49
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040963c
mov edx, 0x468bcc
mov eax, dword [ebp - 0xc]
call fcn.0045e338
test al, al
jne 0x468b37
mov edx, 0x468bdc
mov eax, dword [ebp - 0xc]
call fcn.0045e338
test al, al
jne 0x468b37
xor ebx, ebx
jmp 0x468b39
mov bl, 1
test bl, bl
je 0x468b49
or esi, 0x100
or esi, 0x8000
push esi
push 0x160
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b20
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
push eax
push edi
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x468b77
xor ebx, ebx
jmp 0x468b94
test bl, bl
je 0x468b83
mov ebx, dword [ebp - 0x16c]
jmp 0x468b94
push 0
mov eax, dword [ebp - 0x168]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIcon
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468bb9
lea eax, [ebp - 0xc]
call fcn.00404644
lea eax, [ebp - 4]
call fcn.00404644
ret
Function at 0x4726cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00460684
test al, al
je 0x472792
mov eax, dword [ebp - 4]
cmp byte [eax + 0x79], 0
jne 0x472780
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x54]
xor eax, eax
push ebp
push 0x472779
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0
je 0x472755
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x472755
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov edx, dword [eax]
call dword [edx + 0x80]
test eax, eax
je 0x472763
mov eax, dword [ebp - 4]
push eax
push 0x4725cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov edx, dword [eax]
call dword [edx + 0x80]
push eax
call sub.user32.dll_EnumThreadWindows
jmp 0x472763
mov eax, dword [ebp - 4]
push eax
push 0x4725cc
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472792
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x58]
ret
mov ecx, 0x4727a4
mov edx, 0x30000
mov eax, dword [ebp - 4]
call fcn.0046003c
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x477c34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x477c3c
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x477dab
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x4c], 0
jne 0x477d74
mov eax, ebx
call fcn.00460684
test al, al
je 0x477d74
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x80]
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
cmp esi, eax
je 0x477c9c
lea eax, [ebp - 0x30]
call fcn.004622dc
cmp byte [ebp - 0x20], 0
je 0x477cac
cmp dword [ebx + 0x34], 0x80000000
jb 0x477cac
mov eax, dword [ebx + 0x34]
call fcn.00462c48
mov dword [ebx + 0x4c], eax
jmp 0x477d60
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x30]
call fcn.004061c4
lea ecx, [ebp - 0x10]
mov edx, 0x10
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xa8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x477d3f
push 2
lea ecx, [ebp - 2]
mov edx, dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x104]
test al, al
je 0x477d60
cmp word [ebp - 2], 0x5a4d
jne 0x477d60
push 4
lea ecx, [ebp - 8]
mov edx, dword [ebx + 0x34]
add edx, 0x3c
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x104]
test al, al
je 0x477d60
mov eax, dword [ebx + 0x34]
add eax, dword [ebp - 8]
mov dword [ebx + 0x4c], eax
push 4
lea ecx, [ebp - 8]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x104]
test al, al
je 0x477d38
cmp dword [ebp - 8], 0x4550
je 0x477d60
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x477d60
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0046003c
cmp dword [ebx + 0x4c], 0
jne 0x477d74
xor ecx, ecx
mov edx, 2
mov eax, ebx
call fcn.0046003c
mov ebx, dword [ebx + 0x4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477db2
lea eax, [ebp - 0x34]
call fcn.00404644
lea eax, [ebp - 0x30]
mov edx, dword [0x4621ec]
call fcn.00405200
lea eax, [ebp - 0x10]
call fcn.004061ac
lea eax, [ebp - 0xc]
call fcn.004061ac
ret
Function at 0x47ae30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x47af32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x489b98]
mov byte [eax], 1
mov eax, 8
call fcn.00402714
mov ebx, eax
mov dword [ebx], esi
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0x47ada4
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x47aecf
mov edx, 8
mov eax, ebx
call fcn.00402734
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x469e94]
call fcn.0046c134
mov edx, eax
test edx, edx
je 0x47aec6
sub edx, 0xffffff98
mov eax, edi
call fcn.004061c4
jmp 0x47af14
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, esi
call fcn.0046e184
mov edx, dword [ebp - 0x10]
mov al, 5
call fcn.0046ba84
mov ebx, eax
mov byte [ebx + 0x44], 1
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x14]
call fcn.00480b98
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x64]
call fcn.004061c4
mov eax, edi
mov edx, ebx
test edx, edx
je 0x47af0f
sub edx, 0xffffff98
call fcn.004061c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47af39
lea eax, [ebp - 0x14]
call fcn.004061ac
lea eax, [ebp - 0x10]
call fcn.004061ac
ret
Function at 0x4843a8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b10
xor eax, eax
push ebp
push 0x48458c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x24], 0xffffffff
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x484566
mov eax, 0x100001
call fcn.00408994
mov ebx, eax
lea eax, [ebp - 0x70]
xor ecx, ecx
mov edx, 0x44
call fcn.004030e8
mov dword [ebp - 0x70], 0x44
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x101
mov word [ebp - 0x40], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x8000020
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b20
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x48453b
xor edi, edi
xor esi, esi
inc edi
push 0x64
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0x18], eax
mov eax, dword [0x489da0]
mov eax, dword [eax]
call fcn.0045b204
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x100000
lea eax, [ebx + esi]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x4844f4
cmp dword [ebp - 0x14], 0
jbe 0x4844e0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebx + esi]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
add esi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0x102
jne 0x4844f4
cmp edi, 0x96
jle 0x484486
mov byte [ebx + esi], 0
push ebx
push ebx
call sub.user32.dll_OemToCharA
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.0040993c
mov edx, dword [ebp - 0x88]
pop eax
call fcn.00404928
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.00402734
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484593
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.00404668
lea eax, [ebp - 4]
call fcn.00404644
ret