joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f470
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x50a124]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x1ff
mov edi, ecx
mov byte [esp + 0x14], 0
lea eax, [esp + 0x15]
mov dword [esp + 0xc], edi
push 0
push eax
mov dword [esp + 0x14], edi
call fcn.00482150
mov eax, dword [0x50abb0]
add esp, 0xc
cmp eax, 0x270
jne 0x41f502
mov edx, 0x50abb8
mov esi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x41f4c2
mov eax, dword [0x50abb0]
jmp 0x41f5df
cmp eax, 0x4e0
jb 0x41f5df
xor edx, edx
nop
mov eax, dword [edx + 0x50b574]
mov ecx, dword [edx + 0x50b578]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x50bba8]
xor eax, ecx
mov dword [edx + 0x50abb4], eax
add edx, 4
cmp edx, 0x38c
jb 0x41f510
mov edx, 0x38c
nop word [eax + eax]
mov eax, dword [edx + 0x50b574]
mov ecx, dword [edx + 0x50b578]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x50a828]
xor eax, ecx
mov dword [edx + 0x50abb4], eax
add edx, 4
cmp edx, 0x9bc
jb 0x41f560
mov ecx, dword [0x50abb4]
mov eax, dword [0x50bf30]
and ecx, 0x7fffffff
and eax, 0x80000000
or ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, ecx
xor eax, dword [0x50b1e4]
mov dword [0x50b570], eax
xor eax, eax
mov dword [0x50abb0], eax
mov ecx, dword [eax*4 + 0x50abb4]
inc eax
mov dword [0x50abb0], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x50bf34]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
push 0
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._d__lld
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0041f140
xorps xmm0, xmm0
lea ecx, [esp + 0x28]
movups xmmword [edi], xmm0
add esp, 0x18
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f653
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00404380
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x420f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de76d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50a124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.0047f342
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x422000
push 0
push 0
call fcn.004a99a1
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x420fea
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 8
push 6
mov dword [edi], 0
call fcn.0046029f
int3

Function at 0x422820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x4228ae
nop dword [eax + eax]
lea ecx, [edi + edi]
push ecx
call fcn.00425da0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4228a4
push ebx
push edi
call esi
mov esi, eax
test esi, esi
je 0x422860
cmp esi, edi
jb 0x422877
push ebx
call fcn.00425c40
add esp, 4
mov edi, esi
test esi, esi
je 0x4228ae
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x422840
cmp word [ebx + esi*2 - 2], 0x5c
jne 0x422893
cmp esi, 3
jne 0x42288b
cmp word [ebx + 2], 0x3a
je 0x422893
xor ecx, ecx
mov word [ebx + esi*2 - 2], cx
dec esi
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffff027
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x422990
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4229bf
mov eax, 0xfffff019
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4229fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push dword [ebp - 0x20c]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x422a50
call ebx
push dword [ebp - 0x20c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042bce0
add esp, 4
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
add eax, eax
push edi
push eax
call fcn.00425da0
mov edi, eax
add esp, 4
test edi, edi
jne 0x422a8a
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 0xfffff027
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x20c]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x422ad2
call ebx
push dword [ebp - 0x20c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00425c40
push esi
call fcn.0042bce0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x101
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x422b30
call ebx
push edi
mov esi, eax
call fcn.00425c40
add esp, 4
cmp esi, 0x7a
je 0x422a74
push esi
call fcn.0042bce0
add esp, 4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x10]
mov dword [ebx], 0
push ebx
push 0xffffffffffffffff
push edi
call fcn.004226b0
push edi
mov dword [ebp - 0x214], eax
call fcn.00425c40
mov eax, dword [ebp - 0x214]
add esp, 0x10
test eax, eax
jne 0x422ba9
push esi
mov dword [esi], eax
lea eax, [ebp - 0x208]
push 0xffffffffffffffff
push eax
call fcn.004226b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x422b92
push dword [ebx]
call fcn.00425c40
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x423d30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x410], ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40c], edi
test eax, eax
je 0x423ee6
test ecx, ecx
je 0x423ee6
test edi, edi
je 0x423ee6
cmp dword [edi], 0
je 0x423ee6
lea ecx, [ebp - 0x408]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00422770
add esp, 0xc
test eax, eax
jne 0x423eeb
push ebx
push esi
push eax
lea esi, [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x200
mov eax, esi
push eax
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp ebx, 0x200
jb 0x423e0b
lea eax, [ebp - 0x404]
cmp esi, eax
je 0x423dd4
push esi
call fcn.00425c40
add esp, 4
lea edi, [ebx + 1]
lea eax, [edi + edi]
push eax
call fcn.00425da0
mov esi, eax
add esp, 4
test esi, esi
je 0x423e39
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push esi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp ebx, edi
jae 0x423dc1
mov edi, dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.00425c40
add esp, 4
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x423e53
call ebx
test eax, eax
je 0x423e53
push eax
call fcn.0042bce0
add esp, 4
mov edi, eax
jmp 0x423ec0
mov edi, 0xfffff027
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x423ec0
push eax
call fcn.00425c40
add esp, 4
jmp 0x423ec0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x423e7e
call ebx
push eax
call fcn.0042bce0
add esp, 4
mov edi, eax
jmp 0x423ec0
mov ecx, dword [edi]
cmp eax, ecx
jbe 0x423e8d
mov dword [edi], eax
mov edi, 0xfffff024
jmp 0x423ec0
push 0
push 0
push ecx
push dword [ebp - 0x410]
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x423ebb
call ebx
push eax
call fcn.0042bce0
add esp, 4
mov edi, eax
jmp 0x423ec0
dec eax
mov dword [edi], eax
xor edi, edi
lea eax, [ebp - 0x404]
cmp esi, eax
je 0x423ed3
push esi
call fcn.00425c40
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff019
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x424040
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4240a8
cmp dword [ebp - 0x124], edi
je 0x4240a2
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x424087
jmp 0x4240a8
mov ebx, dword [ebp - 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret

Function at 0x4250c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x42513e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42513e
mov edx, dword [eax + 8]
cmp edx, 0xc
jne 0x4250e1
mov eax, dword [eax + 0x90]
jmp 0x4250e9
cmp edx, 0xf
jne 0x425137
mov eax, dword [eax + 0x38]
cmp dword [ecx], 0
mov dword [ebp + 8], 4
jne 0x42510b
lea edx, [ebp + 8]
push edx
push ecx
push dword [ebp + 0xc]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
jmp 0x42511d
push 4
push ecx
push dword [ebp + 0xc]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x425133
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop ebp
ret
xor eax, eax
pop ebp
ret
mov eax, 0xfffff02f
pop ebp
ret
mov eax, 0xfffff019
pop ebp
ret
Function at 0x4252c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00424d80
push 1
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, dword [ebp + 8]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4252f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042bce0
push ebx
push 0x30
push 1
call fcn.00425b40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42530d
pop ebx
mov eax, 0xfffff027
pop esi
pop ebp
ret
lea eax, [ebx + 0x18]
mov dword [esi + 0x14], ebx
push edi
push eax
call fcn.0042c800
mov edi, eax
add esp, 4
test edi, edi
jne 0x425469
push esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
call fcn.00425af0
lea eax, [esi + 0x70]
mov dword [esi + 0x10], edi
mov dword [eax], eax
mov dword [esi + 0x74], eax
lea eax, [esi + 8]
push 8
mov dword [eax], eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.00425da0
add esp, 8
mov dword [ebp + 8], eax
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42536d
mov edi, 0xfffff027
jmp 0x42545d
push eax
call fcn.004249f0
xorps xmm0, xmm0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x78]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
movups xmmword [esi + 0x4c], xmm0
push eax
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x18], 0
call fcn.0042c800
mov edi, eax
add esp, 8
test edi, edi
jne 0x42544b
push 0x42cfe0
lea eax, [esi + 0x90]
push eax
push esi
call fcn.0042bb80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42543f
mov ecx, dword [esi + 0xbc]
mov eax, ecx
test cl, 8
je 0x425422
and eax, 0xfffffff7
mov dword [esi + 0xbc], eax
test al, 1
jne 0x425422
test cl, 4
je 0x425422
mov eax, dword [esi + 0x94]
dec dword [eax + 4]
mov eax, dword [esi + 0xbc]
or eax, 0x10
push esi
mov dword [esi + 0xbc], eax
call fcn.00424c00
mov edi, eax
add esp, 4
test edi, edi
jne 0x42543f
pop edi
pop ebx
pop esi
pop ebp
ret
lea eax, [esi + 0x78]
push eax
call fcn.0042c7f0
add esp, 4
push dword [ebp + 8]
call fcn.00425c40
add esp, 4
mov dword [esi + 0x30], 0
lea eax, [ebx + 0x18]
push eax
call fcn.0042c7f0
add esp, 4
push ebx
call fcn.00425c40
add esp, 4
mov dword [esi + 0x14], 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 0x1c], 0xffffffff
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x428c80
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
shr ecx, 4
and ecx, 1
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov edx, ecx
or edx, 2
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
test bl, 0x20
push esi
cmove edx, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, edx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
or edi, 0x40000000
test bl, 0x40
mov dword [ebp - 0x48], 0xffffffff
mov ecx, eax
cmove edi, edx
and ecx, 0x10
or edi, 0x40000
test al, 0x20
je 0x428cf4
mov esi, 0xc0000000
mov eax, 0x40000080
jmp 0x428cfe
mov esi, 0x80000100
mov eax, 0x180
push dword [ebp - 0x50]
test ecx, ecx
push 0x40
cmove esi, eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00429d80
mov edi, dword [ebp - 0x48]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x428daf
mov eax, dword [ebp + 0x18]
or esi, 0x40000
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
push 0
and eax, 0x40
mov dword [ebp - 0x64], 0xc
shl eax, 0x18
push eax
push 3
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0
push eax
push 0
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x428db2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x428d92
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x217
je 0x428d92
call ebx
mov ebx, eax
jmp 0x428db2
mov eax, dword [ebp - 0x54]
mov dword [eax], esi
mov eax, dword [ebp - 0x58]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x428dc4
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x428dcc
push esi
call eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x4296f0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
jne 0x42972d
push 0
push esi
push edi
push ebx
call fcn.004288d0
add esp, 0x10
test eax, eax
jne 0x42972d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jg 0x429729
call eax
jmp 0x429799
call eax
jmp 0x429791
lea eax, [esi + 0x20]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push eax
mov dword [eax + 0x10], 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4297c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4297c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x429769
xor eax, eax
jmp 0x429799
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x42978b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x429799
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4297c1
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x429840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test dword [esi + 0x2c], 0x1000000
lea edi, [esi + 0x44]
je 0x42988c
push 0x10
push edi
push 0x42b490
mov dword [esi + 0x138], 0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x42997d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jg 0x429925
call ebx
jmp 0x42992f
lea ecx, [edi + 0x20]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
lea eax, [edi + 0x3c]
test dword [esi + 0x2c], 0x80000
mov dword [ebp + 0xc], eax
je 0x4298b5
mov eax, dword [eax]
or eax, 1
mov dword [edi + 0x30], eax
jmp 0x4298b8
mov dword [ebp + 0xc], eax
push ecx
push 0
push 0
push 0x50d508
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4298eb
call ebx
cmp eax, 0x3e5
je 0x4298eb
call ebx
test eax, eax
jg 0x429925
call ebx
jmp 0x42992f
test dword [esi + 0x2c], 0x80000
je 0x42997d
cmp dword [edi + 0x40], 0xffffffff
lea ecx, [edi + 0x40]
jne 0x42997d
mov eax, dword [ebp + 0xc]
push 4
push 0xffffffffffffffff
push edi
push 0x428a70
push dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x42997d
call ebx
test eax, eax
jg 0x429925
call ebx
jmp 0x42992f
call ebx
movzx eax, ax
or eax, 0x80070000
mov ecx, edi
mov edx, 0x20
mov dword [ecx + edx], eax
mov ecx, dword [ebp + 8]
mov dword [edi + 0x38], 0
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x429968
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ecx + 0x28]
mov dword [eax + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi + 0x38], edi
mov dword [ecx + 0x28], edi
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.004287e0
or dword [esi + 0x2c], 0x10000
add esp, 4
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4299a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0
call fcn.004261d0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [esi + 0x34]
push esi
mov dword [ebp - 8], edx
call eax
mov edx, dword [ebp - 8]
add esp, 0x14
test edx, edx
je 0x429a2f
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x429a2f
mov eax, dword [ebp + 0x14]
cmp eax, ecx
push 0
cmova eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x429a17
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebp + 8]
call fcn.00429ac0
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov eax, dword [esi + 0x38]
push esi
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x38]
push 0xfffff024
push esi
call eax
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x429b35
mov ebx, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429b3c
add esi, dword [ebp + 0x10]
cmp esi, edi
jb 0x429b12
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x429d80
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push esi
push ebx
call fcn.0042aab0
mov eax, dword [ebp + 0xc]
add esp, 0xc
or eax, 0x80000
mov dword [ebp + 0xc], eax
push 0
push 0
push 0x10000
push 0x10000
push 1
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xe7
je 0x429dda
cmp edi, 5
jne 0x429e1a
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
inc ebx
push esi
push ebx
call fcn.0042aab0
add esp, 0xc
push 0
push 0
push 0x10000
push 0x10000
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x429dc5
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
cmp esi, 0xffffffff
je 0x429e26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret