joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561eea
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 4
lea edi, [esi + 0x38]
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x57fd50
mov dword [esi + 0x24], 0x57fd4c
mov dword [esi + 0x28], 0x59020c
mov dword [esi], 0x590254
mov dword [esi + 0x20], 0x590264
mov dword [esi + 0x24], 0x57fdb8
mov dword [esi + 0x28], 0x590230
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp + 8], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d1a59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
lea edi, [esi + 0x3c]
mov dword [ebp + 8], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d1a63
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
lea ecx, [esi + 0x40]
mov dword [ebp + 8], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xb
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], eax
mov byte [ebp - 4], 0xd
lea edi, [ecx + 0x28]
mov dword [ecx], 0x5901fc
mov dword [ecx + 0x24], 0
mov dword [ebp - 0x14], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d1a6d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
lea edi, [esi + 0x94]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 1
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov byte [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [ebp + 8], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d1a77
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x98]
mov dword [ebp + 8], edi
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d1a81
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0xa0]
call fcn.004d68e0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x4d4490
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
jne 0x4d469a
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp ecx, 0x110
jne 0x4d44e2
sub esp, 8
mov dword [edi + 0x40], 1
mov ecx, edi
call fcn.004d4840
mov dword [esi], eax
cmp dword [edi + 0x40], 0
je 0x4d45f3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x111
jne 0x4d45f3
movzx ecx, bx
mov eax, 1
cmp ax, cx
jne 0x4d4577
sub esp, 0x10
lea eax, [edi + 0x44]
lea ecx, [edi + 0x40]
push eax
push 0x425
call fcn.004d4a00
sub esp, 0x10
lea eax, [edi + 0x48]
lea ebx, [edi + 0x40]
mov ecx, ebx
push eax
push 0x426
call fcn.004d4a00
mov ecx, 4
lea eax, [ebx - 0x3c]
test ebx, ebx
push 0x427
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 2
cmp ax, cx
jne 0x4d459f
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, ebx
mov dword [esp + 0xc], 0x300
shr eax, 0x10
cmp word [esp + 0xc], ax
jne 0x4d45f3
mov eax, 0x425
cmp cx, ax
jne 0x4d45ed
sub esp, 0x10
lea esi, [edi + 0x44]
lea ecx, [edi + 0x40]
push esi
push eax
call fcn.004d4a00
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
lea edx, [edi + 0x20]
cmp eax, 5
jne 0x4d4666
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x4d4637
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp ebx, 2
jne 0x4d4628
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4d463c
test ebx, ebx
jne 0x4d4637
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4d463c
cmp ebx, 1
je 0x4d4686
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.004d4f80
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x24
jne 0x4d469a
cmp dword [edx + 0x14], 0xffffffff
je 0x4d4686
cmp dword [edx + 0x18], 0xffffffff
je 0x4d4686
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d4a00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 1
push edi
push dword [ebp + 8]
lea eax, [esi - 0x40]
neg esi
sbb esi, esi
and esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
js 0x4d4af4
mov edi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or ecx, eax
jge 0x4d4a60
push ebx
mov ecx, edi
call fcn.00412580
mov edx, dword [edi]
cmp ebx, dword [edx - 8]
jg 0x4d4af4
mov dword [edx - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
lea eax, [ebx + 1]
push eax
push edx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, eax
mov eax, dword [edi]
mov dword [esp + 0x14], edx
test eax, eax
jne 0x4d4a93
xor ecx, ecx
jmp 0x4d4aa9
push dword [eax - 8]
push eax
call fcn.005295a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4d4af4
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4d4af4
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edi, edi
mov word [eax + ecx*2], di
cmp edx, ebx
jge 0x4d4ae7
push 0xffffffffffffffff
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
lea ecx, [esi + 0x40]
neg ecx
sbb ecx, ecx
and ecx, esi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.004126a0
int3
Function at 0x4d65a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562a38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0x57dd34
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
call dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4d6651
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d6651
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4d6651
mov bl, 1
jmp 0x4d6653
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x57dd34
test eax, eax
je 0x4d6676
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x4de3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5634b2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 6
lea esi, [edi + 0x58]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004244a0
mov dword [esi], eax
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.004de710
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureInfoW]
cmp eax, 0xffffffff
jne 0x4de4c4
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [edi + 0x4c], 1
jmp 0x4de4cb
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], esi
test esi, esi
jne 0x4de4d5
mov dword [edi + 0x54], esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4dec00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563680
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x57dd34
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4dec4f
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x4dec7b
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [edx + 4]
mov dword [ebp - 0x1c], edi
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push ecx
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.00416cc0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
nop dword [eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4decd5
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x4deca0
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
test esi, esi
je 0x4ded21
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4ded02
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ded58
push ecx
push esi
call fcn.005214f2
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x57dd34
test ecx, ecx
je 0x4ded44
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00526969
int3
Function at 0x4e54c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5649cf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.00406ba0
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
lea ecx, [ebx + 0x18]
push eax
call fcn.00406ba0
mov byte [ebp - 4], 1
lea eax, [edi + 0x30]
lea ecx, [ebx + 0x30]
push eax
call fcn.00406ba0
mov byte [ebp - 4], 2
lea esi, [ebx + 0x48]
mov eax, dword [edi + 0x48]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [edi + 0x4c]
push eax
mov dword [ebp + 8], esi
call fcn.00406ba0
mov byte [ebp - 4], 3
lea eax, [edi + 0x64]
lea ecx, [esi + 0x1c]
push eax
call fcn.00406ba0
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x88]
mov dword [esi + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4e71a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564fdc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
push esi
call fcn.00406ba0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
push eax
call fcn.00406ba0
mov byte [ebp - 4], 1
add ebx, 0x30
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
lea esi, [ebx + 4]
mov dword [ebp + 8], ebx
push 0
mov dword [ebx], eax
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e7980
mov dword [esi], eax
mov byte [ebp - 4], 4
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 5
mov ecx, ebx
push edi
call fcn.004e7840
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4eacc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56585b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, 0x811c9dc5
lea ecx, [edi + 8]
lea edx, [ecx + 4]
mov esi, ecx
cmp edx, ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 8]
cmp ecx, edx
ja 0x4ead27
mov edx, dword [ebp - 0x10]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
inc ebx
imul eax, ecx, 0x1000193
cmp ebx, edx
jne 0x4ead14
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x18]
and ecx, eax
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x4ead5d
cmp dword [ecx], edi
jne 0x4ead55
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x4ead65
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4ead65
cmp dword [ecx], edi
jne 0x4ead65
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea eax, [edi + 8]
dec dword [edx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 4]
call fcn.00423830
push 0x18
push edi
call fcn.005214f2
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb370
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4eb3ac
mov al, 1
jmp 0x4eb461
mov al, byte [ebp + 8]
lea edx, [esi + 0x20]
mov byte [esi + 0x1d], al
cmp edx, ecx
je 0x4eb3ce
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4eb3c3
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edx
push eax
call fcn.00407880
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ebbd0
mov dword [ebp - 4], 0
mov al, byte [esi + 0x1d]
test al, al
je 0x4eb41d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x1388
push 0x400
push 0x400
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4eb44a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
jne 0x4eb44a
xor bl, bl
jmp 0x4eb450
mov byte [esi + 0x1c], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407b40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb7c0
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a61
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [ebx + 0x10]
xor edx, edx
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], 0
test al, al
jne 0x4eb842
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4eb82f
mov edx, 1
jmp 0x4eb83f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x217
sete dl
mov al, byte [ebx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
test edx, edx
jne 0x4eb898
test al, al
jne 0x4eb898
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
jmp 0x4eb9aa
xor eax, eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], eax
add esi, 0x3c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4eb8b1
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x40]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4eb8dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4eb98d
mov ecx, dword [ebp - 0x40]
mov eax, esi
add dword [ebp - 0x34], ecx
cmp dword [esi + 0x14], 8
jb 0x4eb8ec
mov eax, dword [esi]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4eb8fe
mov edx, dword [esi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x44], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb906
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00418ac0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x30]
ja 0x4eb8a7
cmp dword [ebp - 0x48], 0
je 0x4eb98d
cmp dword [ebp - 0x34], 0
je 0x4eb98d
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
jmp 0x4eb9aa
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2c]
call fcn.00407b40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4eb9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544e59
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4eba49
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, eax
cmp dword [ecx + 0x14], 8
jb 0x4eba59
mov ecx, dword [ecx]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4eba9f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.004eb7c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ebad0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x4ebae4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
ret 4

Function at 0x4ebb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 5
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push 0x58fd38
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407880
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407b40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret