joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1876
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], edi
test eax, eax
je 0x4131c7
cmp word [eax], di
je 0x4131c7
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push edi
push eax
call fcn.00478480
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x41309a
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00412620
jmp 0x4130c4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41310a
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00412620
test esi, esi
je 0x4130c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x248]
test edx, edx
je 0x4131db
mov ecx, dword [ebp - 0x240]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4130fb
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4131f9
push ecx
push edx
call fcn.00475cfa
add esp, 8
jmp 0x4131db
mov ebx, dword [ebp - 0x240]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
push eax
call fcn.004819c0
add esp, 8
test eax, eax
jne 0x41315f
cmp edi, ebx
je 0x413140
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x244], edi
jmp 0x41315f
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x248]
call fcn.00402e30
mov edi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413110
mov ebx, dword [ebp - 0x250]
lea eax, [ebp - 0x248]
push eax
mov ecx, ebx
call fcn.00412620
test esi, esi
je 0x41318f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x248]
test edx, edx
je 0x4131db
mov ecx, dword [ebp - 0x240]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4130fb
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4131f9
jmp 0x4130fb
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret
call fcn.00481379
int3
Function at 0x413240
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x41326a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x41339b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.00475d08
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x41333c
mov esi, dword [ebx]
test esi, esi
je 0x41333c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41333c
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41333c
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00475d11
add esp, 4
test esi, esi
je 0x413345
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00475d11
add esp, 4
push 0x220
mov ecx, edi
call fcn.004133b0
test eax, eax
je 0x41338d
mov ecx, edi
call fcn.00412f00
cmp eax, 3
je 0x413374
mov ecx, edi
call fcn.00412f50
cmp eax, 0x2000
mov eax, 2
jne 0x413379
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00475f67
mov esp, ebp
pop ebp
ret
Function at 0x4133b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x41355b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41355b
push esi
mov ecx, edi
xor esi, esi
call fcn.00412f00
cmp eax, 3
jne 0x4134e0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.00412c70
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x413533
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x413472
test esi, esi
je 0x413472
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x413472
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x413533
jmp 0x413474
xor esi, esi
test edi, edi
je 0x41353e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x413533
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4134d0
test esi, esi
je 0x4134d0
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4134d0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x18]
jmp 0x4134d2
xor esi, esi
test ebx, ebx
je 0x4134dd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x413533
mov eax, dword [edi]
test eax, eax
je 0x41353e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41353e
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x413531
test esi, esi
je 0x413531
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x413531
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x413533
xor esi, esi
test edi, edi
je 0x41353e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00475f67
mov esp, ebp
pop ebp
ret 4
Function at 0x413cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00413570
test al, al
jne 0x413cd2
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x413d1d
call fcn.00413570
test al, al
je 0x413d1d
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413d1d
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x413d13
cmp eax, 3
jne 0x413d1d
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00413570
test al, al
je 0x413cc2
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413d7d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x414b10
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.00413f50
test eax, eax
je 0x414b4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push edi
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x414cb8
cmp edi, 0xffffffff
je 0x414cb8
push 0x34
push 0x4bb4e8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x414c96
cmp esi, 0xffffffff
je 0x414c96
xor eax, eax
mov ebx, 0x12c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x414c1a
nop
test ebx, ebx
jle 0x414c1a
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x414bd4.3
movzx eax, byte [eax + 0x414cfc]
jmp dword [eax*4 + 0x414cf0]
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x414bd4.3
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x414c8d
push 0xc8
dec ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x414bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 6
test bx, bx
jne 0x414ca4
xor eax, eax
mov dword [ebp - 0x24], 0x12c
mov dword [ebp - 0x20], eax
mov ebx, 0x16
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x414ca4
nop
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x414ca4
cmp dword [ebp - 0x1c], 1
je 0x414c91
dec eax
push 0xc8
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x414c60
jmp 0x414ca4
xor ebx, ebx
jmp 0x414c28
mov ebx, dword [ebp - 0x14]
jmp 0x414ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
test esi, esi
je 0x414cc8
cmp esi, 0xffffffff
je 0x414cc8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x414cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 8
jmp 0x414cce
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x414cda
cmp edi, 0xffffffff
je 0x414cda
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475f67
mov esp, ebp
pop ebp
ret 8
Function at 0x415990
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4159ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x415a02
cmp esi, edi
ja 0x415a02
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4159d3
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00475f67
mov esp, ebp
pop ebp
ret 8
Function at 0x415f00
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x415f9b
cmp edi, 0xffffffff
je 0x415f9b
push 0xf01ff
push 0x4bb4e8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x415f79
cmp esi, 0xffffffff
je 0x415f79
push 0x1388
push esi
mov ecx, ebx
call fcn.00415990
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test ecx, ecx
jne 0x415f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
xor eax, eax
mov ebx, 0x50005
test ecx, ecx
cmovne ebx, eax
jmp 0x415f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x415fab
cmp esi, 0xffffffff
je 0x415fab
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x415fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
jmp 0x415fb1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x415fbd
cmp edi, 0xffffffff
je 0x415fbd
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x416bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push esi
test eax, eax
je 0x416c86
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x416c86
xor ecx, ecx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416c14
call edi
cmp eax, 0x3e5
jne 0x416c66
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416c52
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x416c45
push 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x416c7c
call edi
test eax, eax
jle 0x416c4a
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x417140
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
push esi
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
jne 0x4171cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4171b3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test ebx, ebx
je 0x417171
pop edi
pop esi
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x4171cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4171cd
push ebx
push esi
mov ecx, edi
call fcn.004171e0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4171e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x90
push 0
mov dword [ebp + 8], 0
push dword [esi + 0x18]
mov dword [esi + 0x14], 2
call fcn.00478480
add esp, 0xc
lea eax, [ebp + 8]
push esi
push eax
push 0x90
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41724f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41724f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41724f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, ebx
call fcn.00417140
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417a70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
test esi, esi
je 0x417c54
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x417c4b
mov eax, dword [edi + 0x14]
dec eax
cmp eax, 4
ja case.default.0x417ad9
jmp dword [eax*4 + 0x417c5c]
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.004171e0
jmp case.default.0x417ad9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
jne 0x417c0b
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x417b1e
push edx
push edi
mov ecx, esi
call fcn.00417260
jmp case.default.0x417ad9
lea ecx, [eax + 0x90]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax]
test eax, eax
je 0x417c0b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push edi
add ecx, 0x90
mov dword [edi + 0x14], 3
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne case.default.0x417ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je case.default.0x417ad9
jmp 0x417c0b
push dword [ebp - 4]
mov ecx, esi
push edi
call fcn.00417260
jmp case.default.0x417ad9
cmp dword [ebp - 4], 0x90
mov eax, dword [edi + 0x18]
jne 0x417c0b
cmp dword [eax + 0x8c], 0
je 0x417c07
push edi
lea edx, [ebp - 0x1c]
mov dword [edi + 0x14], 5
lea ecx, [eax + 0x90]
mov dword [ebp - 0x1c], 0
push edx
push dword [eax + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x417be3
xor eax, eax
jmp 0x417bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne case.default.0x417ad9
cmp eax, 0x3e5
je case.default.0x417ad9
jmp 0x417c0b
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x8c]
jne 0x417c0b
push dword [esi]
call edx
push dword [esi]
call ebx
push 0
push edi
mov ecx, esi
call fcn.00417140
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
jne 0x417ac1
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2420
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ee05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.00439bd0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00439bd0
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41c8dc
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41c8ed
push 0x40
push esi
call fcn.00475cfa
add esp, 8
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