joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a28c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c1bdb
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x4a2a64
push ebx
call fcn.0044fa0c
add esp, 4
test eax, eax
je 0x4a2a64
push ebx
lea ecx, [esp + 0x18]
call fcn.0059dc03
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], ebp
cmp esi, ebp
je 0x4a2931
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a2a50
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x4a2a04
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a2967
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x623bf4]
cmp eax, 0xffffffff
jne 0x4a29a2
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x623bf4], eax
test eax, eax
je 0x4a29bb
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x4a29e9
push ebx
lea ecx, [esp + 0x14]
call fcn.00462e50
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00463660
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x4a294e
cmp edi, 0xffffffff
je 0x4a2a9a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x4a2a1c
or ebp, eax
jmp 0x4a2a1e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x4a2a30
or ebx, eax
jmp 0x4a2a32
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x4a2a9a
mov eax, dword [esp + 0x144]
test eax, eax
je 0x4a2a80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.0059db8f
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.004a25a0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.0059db8f
mov eax, edi
jmp 0x4a2a67
Function at 0x4a76c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x4a76fb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4a76ee
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4a76fb
push eax
call edi
mov dword [esi + 0xc], ebx
cmp dword [0x64597c], ebx
jne 0x4a774a
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov ebp, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [0x64597c], ebp
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
je 0x4a774a
pop edi
mov dword [0x645980], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret 8
cmp dword [0x645980], ebx
jne 0x4a78a7
mov edx, dword [str..PipeOCULAR_]
cmp edx, ebx
je 0x4a78a7
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x124]
push edx
push ecx
stosw word es:[edi], ax
call fcn.0044f9e7
mov eax, dword [esp + 0x360]
add esp, 8
cmp eax, ebx
je 0x4a77b0
push 0x104
lea edx, [esp + 0x128]
push eax
push edx
call fcn.0054fede
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
lea eax, [esp + 0x124]
push 0x7d0
push eax
inc ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4a77d6
cmp dword [esi + 0x14], 2
je 0x4a7827
push ebx
push 0x40000000
push 3
push ebx
push ebx
lea ecx, [esp + 0x138]
push 0xc0000000
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4a77fe
cmp ebp, 0xa
jg 0x4a7827
jmp 0x4a77b8
cmp dword [esp + 0x35c], 2
jne 0x4a7839
push ebx
lea edx, [esp + 0x360]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4a7839
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret 8
mov ecx, dword [esp + 0x35c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x18], ecx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
cmp ecx, ebx
je 0x4a787a
cmp eax, ebx
je 0x4a787a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x344
ret 8
mov eax, dword [esi + 4]
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x4a78a7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4a789a
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4a78a7
push eax
call edi
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret 8
Function at 0x4a78c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x344
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x4a78fb
push eax
call ebp
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4a78ee
push eax
call ebp
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4a78fb
push eax
call ebp
mov dword [esi + 0xc], ebx
cmp dword [0x64597c], ebx
jne 0x4a794d
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x64597c], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
je 0x4a794d
pop edi
pop esi
pop ebp
mov dword [0x645980], 1
xor eax, eax
pop ebx
add esp, 0x344
ret 8
cmp dword [0x645980], ebx
jne 0x4a7ac8
mov edx, dword [str..PipeOCULAR_]
cmp edx, ebx
je 0x4a7ac8
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x124]
push edx
push ecx
stosw word es:[edi], ax
call fcn.0044f9e7
mov eax, dword [esp + 0x360]
add esp, 8
cmp eax, ebx
je 0x4a79b3
push 0x104
lea edx, [esp + 0x128]
push eax
push edx
call fcn.0054fede
add esp, 0xc
mov edi, dword [esp + 0x35c]
cmp edi, ebx
jne 0x4a79e1
call fcn.00480610
push eax
push ebx
push 0x8000
push 0x8000
push 1
push ebx
lea eax, [esp + 0x13c]
push 0x40000003
push eax
jmp 0x4a7a06
call fcn.00480610
push eax
push ebx
push 0x1000
push 0x1000
push 0xff
push 6
lea ecx, [esp + 0x13c]
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4a7a26
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret 8
push ebx
push ebx
mov dword [esi + 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
cmp ecx, ebx
je 0x4a7aa1
cmp eax, ebx
je 0x4a7aa1
lea eax, [esi + 0x1c]
xor edx, edx
mov ecx, eax
push eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push eax
mov dword [esi + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4a7a8c
cmp eax, 0x3e5
je 0x4a7a8c
cmp eax, 0x217
jne 0x4a7ac8
mov eax, 1
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ebp
pop ebx
add esp, 0x344
ret 8
mov eax, dword [esi + 4]
mov dword [esi + 4], ebx
cmp eax, ebx
je 0x4a7ac8
push eax
call ebp
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4a7abb
push eax
call ebp
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4a7ac8
push eax
call ebp
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret 8
Function at 0x4a7bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x4a7d5b
cmp dword [esi + 8], ebx
je 0x4a7d5b
cmp dword [esi + 0x10], ebx
je 0x4a7c62
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x4a7c47
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a7c36
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x4a7d5b
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, ebx
je 0x4a7ccc
cmp dword [esp + 0x10], ebx
je 0x4a7ccc
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x4a7ce8
cmp eax, ebx
je 0x4a7ce8
cmp eax, 0x3e5
je 0x4a7ce8
cmp eax, 0x217
jne 0x4a7d5b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x4a7d20
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x4a7d5b
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 8]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4a7d70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x4a7efb
cmp dword [esi + 0xc], ebx
je 0x4a7efb
cmp dword [esi + 0x10], ebx
je 0x4a7e02
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x4a7de7
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a7dd6
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x4a7efb
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x4a7e6c
cmp dword [esp + 0x10], ebx
jbe 0x4a7e6c
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x4a7e88
cmp eax, ebx
je 0x4a7e88
cmp eax, 0x3e5
je 0x4a7e88
cmp eax, 0x217
jne 0x4a7efb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x4a7ec0
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x4a7efb
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 0xc]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4a7f10
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c1f07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 0xc]
mov ecx, ebx
call fcn.0059cc55
xor ebp, ebp
mov dword [esi + 0x68], 0x5d50cc
mov dword [esp + 0x44], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x70], ebp
lea edi, [esi + 0x7c]
push ebp
mov ecx, edi
mov byte [esp + 0x48], 1
call fcn.00447287
mov dword [edi], 0x5cdc18
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x10
xor eax, eax
lea edi, [esi + 0x24]
mov dword [esi], 0x5d50c8
mov dword [esi + 4], ebp
mov dword [esi + 0x64], ebp
rep stosd dword es:[edi], eax
push 0x24
mov byte [esp + 0x48], 2
call fcn.0059e258
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
mov byte [esp + 0x44], 3
je 0x4a7fbd
mov ecx, edi
call fcn.00551960
mov dword [edi], 0x5d50b8
mov dword [edi + 0x20], esi
jmp 0x4a7fbf
xor edi, edi
mov dword [esi + 8], edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x44], 2
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x24
call fcn.0059e258
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
mov byte [esp + 0x44], 4
je 0x4a800e
mov ecx, edi
call fcn.00551960
mov dword [edi], 0x5d50a8
mov dword [edi + 0x20], esi
jmp 0x4a8010
xor edi, edi
cmp edi, ebp
mov byte [esp + 0x44], 2
je 0x4a8025
mov ecx, dword [ebx + 8]
push edi
push ecx
mov ecx, ebx
call fcn.0059ce79
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x20], ebp
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4a9070
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c2008
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
cmp ebp, 0x640
push edi
mov esi, ecx
ja 0x4a9151
xor edi, edi
cmp ebp, edi
jbe 0x4a9151
lea eax, [esi + 0x7c]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.0044746e
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x2c], edi
lea ecx, [eax + eax*2]
shl ecx, 4
add ebx, ecx
cmp dword [ebx + 0x28], edi
jne 0x4a9168
mov esi, dword [esp + 0x38]
mov edi, dword [ebx + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [ebx]
push ecx
push ebp
xor esi, esi
push edx
push eax
mov dword [ebx + 0x28], 1
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x4a9133
cmp dword [esp + 0x38], ebp
jne 0x4a911b
mov dword [ebx + 0x28], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004474aa
mov eax, 1
jmp 0x4a9153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4a911b
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004474aa
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push ebp
mov dword [esp + 0x18], edi
call fcn.0059e258
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [esp + 0x3c], edx
je 0x4a9140
mov esi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x2c]
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
test eax, eax
jne 0x4a91d5
mov ecx, dword [esi + 0x18]
push 0x10
lea edx, [esi + 0x14]
push ecx
push edx
call fcn.0059cc1f
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x4a91d1
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x4a91c3
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
lea ecx, [eax + 8]
mov dword [esi + 0xc], edi
mov ebx, ecx
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a9209
mov dword [ecx], eax
jmp 0x4a920c
mov dword [esi + 4], eax
lea ecx, [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004474aa
mov eax, 1
jmp 0x4a9153
Function at 0x4a9230
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c2028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0x7c]
lea ecx, [esp + 0x10]
push eax
call fcn.0044746e
mov eax, dword [esp + 0x28]
xor edi, edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x6c]
shl ecx, 4
add eax, ecx
mov edx, dword [eax + 0x20]
mov dword [edx], edi
mov ecx, dword [eax + 0x20]
mov dword [ecx + 4], edi
mov edx, dword [eax + 0x20]
mov dword [edx + 8], edi
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0xc], edi
mov dword [esp + 8], edi
mov edx, dword [eax + 0x20]
lea ecx, [esp + 8]
push edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax]
push ecx
push 0x640
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
pop edi
pop esi
jne 0x4a92e2
cmp eax, 0x3e5
je 0x4a92e2
cmp eax, 0x218
je 0x4a92e2
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004474aa
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004474aa
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x4a9310
Capabilities:
Access peb ldr_data
Connect pipe
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5c2048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x7c]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.0044746e
mov eax, dword [esp + 0x38]
mov esi, dword [ebx + 0x6c]
xor edi, edi
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], edi
shl ecx, 4
add esi, ecx
mov edx, dword [esi + 0x20]
mov dword [edx + 8], edi
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x20]
mov dword [ecx], edi
mov edx, dword [esi + 0x20]
mov dword [edx + 4], edi
mov eax, dword [esi + 0x24]
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x24]
mov dword [ecx + 0xc], edi
mov edx, dword [esi + 0x24]
mov dword [edx], edi
mov eax, dword [esi + 0x24]
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x4a93f3
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov dword [esp + 0x28], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x217
call fcn.004a8940
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004474aa
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
cmp eax, edi
je 0x4a93fe
cmp eax, 0x3e5
jne 0x4a9403
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004474aa
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4aad30
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5c22f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x91c
push esi
push edi
mov esi, dword [esp + 0x938]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x6459c4]
test esi, esi
je 0x4aae1c
test eax, eax
jne 0x4aaddb
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x6459c4], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x4aadcf
cmp dword [esp + 0x14], 5
jb 0x4aadcf
mov ecx, dword [str.GlobalOCULAR_]
mov dword [0x6459c8], ecx
jmp 0x4aaddb
mov edx, dword [0x623c70]
mov dword [0x6459c8], edx
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x623c70]
jne 0x4aadf0
mov eax, dword [0x6459c8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x134]
push str._s__s__08x__08x
push eax
call fcn.004505f9
add esp, 0x18
jmp 0x4aaeab
test eax, eax
jne 0x4aae70
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x6459c4], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x4aae66
cmp dword [esp + 0x14], 5
jb 0x4aae66
mov edx, dword [str.GlobalOCULAR_]
mov dword [0x6459c8], edx
jmp 0x4aae70
mov eax, dword [0x623c70]
mov dword [0x6459c8], eax
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x623c70]
jne 0x4aae85
mov eax, dword [0x6459c8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push eax
lea eax, [esp + 0x130]
push str._s___08x__08x
push eax
call fcn.004505f9
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0xc]
call fcn.0059dc03
mov esi, dword [esp + 0x934]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x930], 1
call fcn.0059d8fc
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x92c], 0
call fcn.0059db8f
mov ecx, dword [esp + 0x924]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x928
ret