joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0ff0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x14], 0x200
call fcn.004c0ed0
add esp, 0x10
test eax, eax
jne 0x4c111f
push ebx
push esi
push edi
call fcn.004afa70
lea ebx, [esp + 0x14]
test eax, eax
je 0x4c1048
call fcn.004afad0
mov esi, eax
jmp 0x4c1068
call fcn.004afad0
mov edi, eax
test edi, edi
je 0x4c10e6
push edi
call fcn.004afc00
push edi
mov esi, eax
call fcn.0052b78a
add esp, 8
test esi, esi
je 0x4c10e6
call fcn.004afa70
test eax, eax
mov eax, esi
je 0x4c10ad
cmp word [esi], 0
je 0x4c1096
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x4c1091
add eax, 2
cmp word [eax], 0
jne 0x4c1080
jmp 0x4c1096
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4c10d7
cmp byte [esi], 0
je 0x4c10c2
cmp byte [eax], 0x5c
je 0x4c10bf
inc eax
cmp byte [eax], 0
jne 0x4c10b2
jmp 0x4c10c2
mov byte [eax], 0
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0052b78a
add esp, 4
test edi, edi
jne 0x4c1103
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0052b498
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0052b498
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.0052b498
add esp, 0x114
ret
Function at 0x4c2ca0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x4c2cad
xor eax, eax
pop ebx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x44
call fcn.004b95f0
mov edi, eax
test edi, edi
jne 0x4c2cc7
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.004bcdb0
mov dword [edi], eax
mov ecx, dword [ebx + 8]
push ebp
push ecx
push esi
call fcn.004c2a50
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ebp
push eax
push esi
call fcn.004c98a0
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push ebp
push edx
push esi
call fcn.004bcdb0
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ebp
push eax
push esi
call fcn.004c98a0
add esp, 0x44
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push ebp
push eax
push esi
call fcn.004bcdb0
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
mov byte [edi + 4], cl
mov edx, dword [ebx + 0x1c]
push ebp
push edx
push esi
call fcn.004c2ca0
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ebp
push eax
push esi
call fcn.004c98a0
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push ebp
push eax
push esi
call fcn.004c98a0
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x38
mov edx, 0xfff7
mov dword [edi + 0x24], eax
and cx, dx
or eax, 0xffffffff
pop ebp
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4cb190
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebp
jmp 0x4cb1b0
mov al, byte [ebp + 0x57f888]
mov byte [esp + 0x10], al
test edi, edi
je 0x4cb235
cmp byte [edi], 0
mov eax, edi
je 0x4cb1cb
inc eax
cmp byte [eax], 0
jne 0x4cb1c5
mov ecx, dword [esp + 0x20]
sub eax, edi
and eax, 0x3fffffff
add ecx, 0x17c
cmp dword [ecx + 0xc], 0
mov ebx, eax
je 0x4cb21d
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x4cb213
mov edi, edi
movzx edi, byte [edx]
movzx edi, byte [edi + 0x57f160]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x4cb1f0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
jmp 0x4cb21f
xor edx, edx
push edi
call fcn.004af990
add esp, 4
test eax, eax
je 0x4cb231
mov eax, dword [eax + 8]
jmp 0x4cb23c
xor eax, eax
jmp 0x4cb23c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x4cb24c
movzx ecx, byte [esp + 0x10]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x4cb26d
inc ebp
cmp ebp, 3
mov dword [esp + 0x14], ebp
jl 0x4cb1b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 0x10]
pop edi
mov dword [esi + 0x10], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4e0f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 4]
push edi
mov edi, dword [eax + 0x18]
mov eax, dword [edx]
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x38], edi
jle 0x4e0f90
add edx, 4
lea esp, [esp]
cmp dword [edx], edi
je 0x4e104c
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4e0f80
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edi
cmp edi, eax
jae 0x4e1149
mov ebx, dword [ebp + 0x18]
jmp 0x4e0fc0
fldz
mov edx, 0x100
cmp word [edi + 0x10], dx
jne 0x4e1136
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, ebx
or eax, ecx
jne 0x4e1136
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov edx, dword [ecx + 0x164]
and eax, dword [esp + 0x10]
and edx, dword [esp + 0x14]
or eax, edx
je 0x4e1136
mov esi, dword [ecx + 0x1c]
fld st(0)
mov ecx, dword [ecx + 0x14]
fst qword [esp + 0x30]
lea eax, [ecx + ecx*4]
fxch st(1)
lea eax, [esi + eax*8]
fst qword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp esi, eax
jae 0x4e10ee
mov ecx, 0x200
cmp word [esi + 0x10], cx
jne 0x4e1065
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push ebx
push edx
push eax
jmp 0x4e109f
mov eax, 1
xor edx, edx
call fcn.00530ec0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4e0f98
mov ecx, dword [esp + 0x38]
cmp dword [esi + 8], ecx
jne 0x4e10e3
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 4]
push ebx
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 8]
push ecx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x78], 0x43
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], 1
push edx
lea edi, [esp + 0x6c]
mov eax, dword [ebp + 0x10]
fstp st(1)
lea ecx, [esp + 0x4c]
fstp st(0)
xor edx, edx
call fcn.004d98f0
fld qword [esp + 0x5c]
fadd qword [esp + 0x3c]
mov ecx, dword [ebp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
fst qword [esp + 0x30]
fld qword [esp + 0x58]
fadd qword [esp + 0x20]
fst qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x4e10f1
mov eax, dword [esp + 0x2c]
add esi, 0x28
cmp esi, eax
jb 0x4e1033
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
je 0x4e1115
fstp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004b70c0
fld qword [esp + 0x28]
add esp, 8
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0x30]
fxch st(1)
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4e1134
fxch st(1)
mov dword [ecx], 0x10000000
fstp qword [ecx + 0x10]
mov dword [ecx + 8], edi
fstp qword [ecx + 0x18]
jmp 0x4e1138
fstp st(1)
fstp st(0)
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x3c]
jb 0x4e0fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x500050
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5cb2c0]
push esi
test eax, eax
je 0x50008a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x50008a
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x500073
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x50008a
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x500280
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x500308
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x500307
mov ecx, dword [0x5cb2c0]
test ecx, ecx
jne 0x5002a6
xor eax, eax
jmp 0x5002af
push ecx
call esi
mov ecx, dword [0x5cb2c0]
cmp byte [eax + 0x18], 0
je 0x500307
test ecx, ecx
je 0x500307
push ecx
call esi
test eax, eax
je 0x500307
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x5002cc
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x500307
mov eax, dword [0x5cb2c0]
test eax, eax
je 0x5002e8
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5b0bf8
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.0052b066
pop esi
pop ecx
ret

Function at 0x500a30
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x565c38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x500030
push 0x5cb2b8
call fcn.00500370
mov eax, dword [0x5cb2c0]
add esp, 8
test eax, eax
je 0x500a8a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00529305
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.0049cf40
int3
Function at 0x500ac0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x565c68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x5cb2c0]
test eax, eax
jne 0x500af2
xor esi, esi
jmp 0x500afb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x500b27
cmp dword [esi + 0x14], 0
jne 0x500b69
cmp dword [esi + 0x10], 0
jne 0x500b70
push 0
call fcn.00500a30
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x500b55
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500b55
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x500bb0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x500b9e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x500b70
cmp dword [esi + 0x14], 0
je 0x500b17
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x500bd5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x500c06
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500c06
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500c06
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x500bba
jmp 0x500b11
Function at 0x500ca0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x565cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x500c20
push 0
push 0
call fcn.00532e22
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x500d0b
lea ecx, [esp + 0x10]
call fcn.00529305
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0049cf40
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x500d31
cmp eax, 0xffffffff
je 0x500d31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x502725
Capabilities:
Create pipe

Disassembly:
push 0x44
mov eax, 0x565fc7
call fcn.0052b510
mov esi, ecx
push str..pipe_
lea ecx, [ebp - 0x50]
call fcn.0040229b
lea ecx, [esi + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040aa7f
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00402cff
cmp byte [esi + 0x18], 0
je 0x5027ff
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x28]
jae 0x50277b
lea edi, [ebp - 0x28]
call fcn.00504033
push eax
push 0x1388
mov esi, 0x200
push esi
push esi
mov ebx, 0xff
push ebx
push 6
push 0x40080003
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x5027dc
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x5027b7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.00504033
push eax
push 0x1388
push esi
push esi
push ebx
push 6
push 0x40000003
push dword [ebp - 0x30]
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x5027e5
push dword [ebp - 0x34]
call fcn.0050408d
pop ecx
xor edi, edi
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402cff
mov eax, dword [ebp - 0x34]
call fcn.0052b593
ret
mov dword [ebp - 0x30], 5
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
jae 0x502812
lea ebx, [ebp - 0x28]
push edi
push 0x40000000
push 3
call fcn.00504033
push eax
push edi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x34], 0xffffffff
mov ebx, eax
jne 0x502879
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jle 0x5027e7
push 0x64
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5027e7
cmp ebx, 2
je 0x502806
cmp ebx, 0xe7
jne 0x5027e7
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x50286e
lea eax, [ebp - 0x28]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x502806
push edi
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x5027e7
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x34], 0xffffffff
jmp 0x5027e7
Function at 0x502c99
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x14
xor esi, esi
lea eax, [ebp - 0x24]
push esi
push eax
mov edi, ecx
call fcn.0052b710
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00502725
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x502d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x502d25
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jne 0x502d17
mov ecx, edi
call fcn.00502a26
jmp 0x502cfa
cmp eax, esi
je 0x502d25
lea eax, [ebp - 4]
push eax
call fcn.0050319e
pop ecx
mov ecx, edi
call fcn.00502a26
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x5031e6
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ed52
call fcn.0052b4a7
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
test byte [0x5cb310], bl
jne 0x503289
movzx eax, word [0x5cb31c]
movzx ecx, word [0x5cb31e]
imul eax, eax, 0x9069
mov edx, dword [0x5cb320]
add eax, ecx
movzx ecx, word [0x5cb334]
or dword [0x5cb310], ebx
imul ecx, ecx, 0x4650
mov dword [0x5cb31c], eax
movzx eax, word [0x5cb336]
add ecx, eax
mov eax, dword [0x5cb324]
imul eax, eax, 0x10dcd
mov esi, edx
shl esi, 0xc
xor esi, edx
mov edi, edx
add eax, 0x12d687
shl esi, 5
shr edi, 0xd
xor esi, edi
mov dword [0x5cb324], eax
xor edx, esi
xor al, cl
add al, dl
mov dword [0x5cb334], ecx
mov dword [0x5cb320], edx
mov byte [0x5cb30d], al
xor esi, esi
jmp 0x50328e
mov al, byte [0x5cb30d]
test byte [0x5cb310], 2
jne 0x503387
or dword [0x5cb310], 2
mov cl, al
xor cl, 0x52
mov byte [0x5cb2fc], cl
mov cl, al
dec cl
xor cl, 0x31
mov byte [0x5cb2fd], cl
mov cl, al
sub cl, 2
xor cl, 0x2a
mov byte [0x5cb2fe], cl
mov cl, al
sub cl, 3
xor cl, 0x6f
mov byte [0x5cb2ff], cl
mov cl, al
sub cl, 4
xor cl, 0x23
mov byte [0x5cb300], cl
mov cl, al
sub cl, 5
xor cl, 0x24
mov byte [0x5cb301], cl
mov cl, al
sub cl, 6
xor cl, 0x64
mov byte [0x5cb302], cl
mov cl, al
sub cl, 7
xor cl, 0x2f
mov byte [0x5cb303], cl
mov cl, al
sub cl, 8
xor cl, 0x39
mov byte [0x5cb304], cl
mov cl, al
sub cl, 9
xor cl, 0x6a
mov byte [0x5cb305], cl
mov cl, al
sub cl, 0xa
xor cl, 0x6f
mov byte [0x5cb306], cl
mov cl, al
sub cl, 0xb
xor cl, 0x69
mov byte [0x5cb307], cl
mov cl, al
sub cl, 0xc
xor cl, 0x26
mov byte [0x5cb308], cl
mov cl, al
sub cl, 0xd
xor cl, 0x70
mov byte [0x5cb309], cl
mov cl, al
sub cl, 0xe
xor cl, 0x63
mov byte [0x5cb30a], cl
mov cl, al
sub cl, 0xf
xor cl, 0x2e
sub al, 0x10
xor al, 0x69
mov byte [0x5cb30b], cl
mov byte [0x5cb30c], al
mov ecx, dword [ebp - 0x14]
push esi
push 0x11
call fcn.004074dc
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov bl, byte [0x5cb30d]
mov ecx, dword [ebp - 0x14]
sub bl, al
xor bl, byte [eax + 0x5cb2fc]
push eax
call fcn.00407504
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x11
mov byte [eax], bl
jb 0x50339b
mov eax, dword [ebp - 0x14]
call fcn.0052b57f
ret
Function at 0x504f11
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x504f7e
call fcn.00500760
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
call fcn.005049fd
push ebx
push ebx
push 3
push ebx
push ebx
call fcn.0042738f
mov ecx, dword [esi]
mov dword [ebp - 8], eax
add esp, 0x14
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edx
call fcn.00504edc
test al, al
jne 0x504f6e
mov ecx, dword [esi]
push ebx
call fcn.005007f0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.005133c2
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x505b59
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x24]
mov ecx, dword [ebx]
push edi
xor edi, edi
cmp ecx, edi
jne 0x505b76
mov al, 1
jmp 0x505c2b
call fcn.00500760
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 3
push edi
push edi
call fcn.0042738f
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], edx
call fcn.00504edc
test al, al
jne 0x505bb6
mov ecx, dword [ebx]
push edi
call fcn.005007f0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.005133c2
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
lea edi, [esi + 4]
mov eax, dword [edi + 0x18]
push edi
push dword [eax]
lea ecx, [ebp - 8]
call fcn.00501f46
push edi
push dword [edi + 0x18]
jmp 0x505bfd
lea ecx, [ebp - 8]
call fcn.0041fdef
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.0045dd60
push edi
push dword [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.00501f46
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0042cb9b
test al, al
je 0x505be0
mov ecx, edi
call fcn.00505127
lea ecx, [esi + 0x74]
call fcn.005133c2
xor eax, eax
cmp dword [ebx], eax
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5071f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.005071b9
pop ecx
pop ecx
test al, al
je 0x50724c
push 1
push dword [ebp + 0xc]
call fcn.005071b9
pop ecx
pop ecx
test al, al
je 0x50724c
mov edx, dword [ebp + 0x10]
shr edx, 2
xor esi, esi
test edx, edx
jbe 0x50723d
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov esi, edx
push ebx
mov ebx, dword [ecx + eax]
xor dword [eax], ebx
add eax, 4
dec edx
jne 0x507231
pop ebx
mov eax, esi
shl eax, 2
sub dword [ebp + 0x10], eax
je 0x507263
add edi, eax
add dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x507263
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, edi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x50725a
pop edi
pop esi
pop ebp
ret