joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6e70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6b33

Function at 0x4b6e7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b6cb4

Function at 0x4b801a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7cda

Function at 0x4c2231
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x405080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6a8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40509f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6a4], 1
mov byte [0x40a6a0], bl
jne 0x4050f9
mov ecx, dword [0x40aa28]
test ecx, ecx
je 0x4050e7
mov esi, dword [0x40aa24]
sub esi, 4
cmp esi, ecx
jb 0x4050e7
mov eax, dword [esi]
test eax, eax
je 0x4050e0
call eax
mov ecx, dword [0x40aa28]
sub esi, 4
cmp esi, ecx
jae 0x4050d2
push 0x407014
push 0x407010
call fcn.00405130
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405130
add esp, 8
test ebx, ebx
jne 0x405120
push ebp
mov dword [0x40a6a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x42db00
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.0042deb0
ret 0x18

Function at 0x42dd90
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x42ddb0
test ecx, 0x10000000
je 0x42ddad
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42ddc0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x42ddea
test ecx, 0x40000000
je 0x42dddd
or eax, 0x80000000
test ecx, 0x80000000
je 0x42dde7
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x42ddf0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x42de2e
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x42de29
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x42de40
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x42de55
add eax, ecx
jo 0x42de66
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x42de66
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x42de70
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x42dea7
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x42dea2
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x43f8297e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x3e60032a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x29db12f2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4b650c98
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4012f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x414548
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x41d1e0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x41d1e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
je 0x401391
push 0x19
push str.Failed_to_NetWkstaGetInfo
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004015d0
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402590
push 0x41bb44
lea eax, [esp + 0x28]
push eax
call fcn.0040689d
mov eax, dword [esp + 0x34]
push eax
mov esi, dword [eax + 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 0xa
sete al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040688e
mov esp, ebp
pop ebp
ret

Function at 0x4020a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push esi
mov esi, dword [ecx]
test esi, esi
jne 0x4020e1
mov edx, 0x10dd
lea ecx, [esp + 0x18]
call fcn.004024b0
cmp dword [eax + 0x14], 0x10
jb 0x4020c6
mov eax, dword [eax]
mov dword [esp + 4], eax
lea ecx, [esp + 8]
lea eax, [esp + 4]
push eax
call fcn.00407be0
cmp dword [esp + 0x2c], 0x10
jb 0x402119
jmp 0x40210d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x4020ef
mov ecx, dword [ecx]
mov eax, dword [edx + 8]
sub eax, dword [edx + 4]
push eax
push dword [edx + 4]
push dword [edx]
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0x18]
call fcn.00405d93
add esp, 4
push 0x41bb9c
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0x10dd
push eax
mov dword [esp + 0x10], vtable.Win32::InvalidOperationException.0
call fcn.0040689d
int3
Function at 0x4036e0
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147a0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x41d1e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
jb 0x403726
mov eax, dword [esi]
jmp 0x403728
mov eax, esi
push str.LocalService
push eax
call fcn.004074ec
test eax, eax
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x2c]
sete byte [ebp - 0x2d]
push str.cmd.exe__c
push eax
call fcn.00402b70
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
call fcn.004032e0
add esp, 0x1c
cmp dword [ebp - 0x18], 0x10
jb 0x403770
push dword [ebp - 0x2c]
call fcn.00405d93
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 3
jne 0x403790
xor ecx, ecx
jmp 0x40379b
cmp dword [esi + 0x44], 0x10
lea ecx, [esi + 0x30]
jb 0x40379b
mov ecx, dword [ecx]
cmp dword [esi + 0x2c], 0x10
lea edx, [esi + 0x18]
jb 0x4037a6
mov edx, dword [edx]
cmp dword [esi + 0x14], 0x10
jb 0x4037b0
mov ebx, dword [esi]
jmp 0x4037b2
mov ebx, esi
cmp byte [ebp - 0x2d], 0
lea edi, [esi + 0x60]
push edi
push 0
mov eax, 2
mov dword [ebp - 0x50], 5
cmovne eax, dword [ebp - 0x50]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x4037f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push 0x41b444
push eax
call fcn.0040689d
push dword [edi]
call fcn.004036a0
add esp, 4
mov dword [edi], eax
lea ebx, [esi + 0x64]
push 1
push eax
push ebx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x403824
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push 0x41b444
push eax
call fcn.0040689d
lea eax, [esi + 0x68]
push eax
push dword [ebp - 0x38]
push 0
push dword [ebx]
push 0x8000400
push 1
push 0
push 0
push dword [ebp - 0x34]
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x4038a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 0x41b444
push eax
call fcn.0040689d
mov eax, dword [ebp - 0x3c]
add eax, 0x68
push eax
push dword [ebp - 0x44]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40389e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 0x41b444
push eax
call fcn.0040689d
mov eax, 0x4038a4
ret
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4038b4
push eax
call fcn.004074e7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040688e
mov esp, ebp
pop ebp
ret 4
Function at 0x404290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 4], edi
cmp ecx, 0x10
jb 0x4042b3
mov esi, dword [eax]
jmp 0x4042b5
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4042d1
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4042c0
mov ecx, dword [ebx + 0x14]
mov edi, ecx
and edi, edx
cmp dword [ebx + 0x18], edi
ja 0x4042e6
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 8]
lea eax, [edi + edi]
mov edx, dword [ebx]
lea eax, [eax + 1]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + edi*8]
mov edi, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp edi, edx
jne 0x40430f
mov eax, edx
jmp 0x404313
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x404433
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x40432b
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x40432e
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x40433c
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x4043a3
sub edx, 4
jb 0x404361
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404366
add ecx, 4
add edi, 4
sub edx, 4
jae 0x404350
cmp edx, 0xfffffffc
je 0x40439a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x404393
cmp edx, 0xfffffffd
je 0x40439a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x404393
cmp edx, 0xfffffffe
je 0x40439a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x404393
cmp edx, 0xffffffff
je 0x40439a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x40439a
sbb eax, eax
or eax, 1
jmp 0x40439c
xor eax, eax
test eax, eax
jne 0x4043b3
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x4043b3
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x4043c3
mov esi, dword [esi]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x404307
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
jb 0x4043d1
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x4043df
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.00402630
add esp, 0xc
test eax, eax
jne 0x40441a
cmp ebx, edi
jb 0x40441a
cmp ebx, edi
setne al
test eax, eax
jne 0x40441a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x405760
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
push eax
movq qword [ebp - 8], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
or dword [ebx + 0x2c], 0x100
mov dword [ebx + 0x3c], 0xffffffff
lea edi, [esi + 0x110c]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
push dword [esi + 0x1108]
mov dword [ebp - 4], 1
push edi
push str.RemCom_stdout
push str..pipe_s_s_d
push 0x41e758
call fcn.0040799e
push dword [esi + 0x1108]
push edi
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x41e860
call fcn.0040799e
push dword [esi + 0x1108]
push edi
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x41e968
call fcn.0040799e
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [ebp - 0xc]
add esp, 0x3c
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x41e758
call esi
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 2
push 0x41e968
call esi
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 4
push 1
push 0x41e860
call esi
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], eax
cmp ecx, 0xffffffff
je 0x4058b9
cmp dword [ebx + 0x40], 0xffffffff
je 0x4058b9
cmp eax, 0xffffffff
je 0x4058b9
mov esi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call esi
push 0
push dword [ebx + 0x38]
call esi
push 0
push dword [ebx + 0x40]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push dword [ebx + 0x40]
call esi
push dword [ebx + 0x38]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410925
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408845
mov dword [ebp - 0x14], eax
cmp dword [0x41fa68], esi
jne 0x410a18
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4109a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410af8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410af8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410af8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41fa68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41fa6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41fa70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41fa78], eax
test eax, eax
je 0x410a15
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41fa74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410a3d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410a30
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410a52
push 4
pop eax
jmp 0x410afa
cmp dword [ebp - 0x14], esi
je 0x410a52
push dword [0x41fa68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410a37
mov eax, dword [0x41fa74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410ab0
cmp dword [0x41fa78], edi
je 0x410ab0
push eax
call ebx
push dword [0x41fa78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410ab0
test eax, eax
je 0x410ab0
call ecx
test eax, eax
je 0x410aa5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410aa5
test byte [ebp - 8], 1
jne 0x410ab0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410ae0
mov eax, dword [0x41fa6c]
cmp eax, edi
je 0x410add
push eax
call ebx
test eax, eax
je 0x410add
call eax
mov esi, eax
test esi, esi
je 0x410add
mov eax, dword [0x41fa70]
cmp eax, edi
je 0x410add
push eax
call ebx
test eax, eax
je 0x410add
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41fa68]
call ebx
test eax, eax
je 0x410af8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410afa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040688e
mov esp, ebp
pop ebp
ret