joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx], 0
push esi
mov esi, dword [ebp + 0xc]
jne 0x100554bf
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
lea eax, [ecx + 0x78]
mov edx, 0x10
push 0x20
push eax
lea ecx, [ebp - 0x90]
call fcn.10060570
push 0x20
mov edx, esi
lea ecx, [ebp - 0x90]
call fcn.10061d60
push 0x10
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x90]
call fcn.10061e10
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ebx, 0x10
add esp, 0x10
xor edi, edi
lea edx, [ebx - 0xc]
nop dword [eax]
mov ecx, dword [esi]
sub ebx, 4
xor ecx, dword [eax]
add esi, 4
or edi, ecx
add eax, 4
sub edx, 1
jne 0x10055510
test ebx, ebx
je 0x10055545
nop dword [eax + eax]
movzx edx, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [eax]
lea eax, [eax + 1]
xor edx, ecx
or edi, edx
sub ebx, 1
jne 0x10055530
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
sete al
xor ecx, ebp
pop ebx
pop esi
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8

Function at 0x10055ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x1010f16c]
xor eax, esp
mov dword [esp + 0x1a8], eax
sub dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x10055fd1
xor eax, eax
lea edi, [esp + 0x10]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov eax, SysReAllocString
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
xor ecx, ecx
mov dword [edi + 0xc], edx
mov edi, dword [esp + 0x10]
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp edi, 1
jb 0x10055f83
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x1c]
mov dword [0x1011581c], eax
mov eax, dword [esp + 0x18]
mov dword [0x10115820], eax
cmp edi, 7
jb 0x10055fad
mov eax, 7
lea edi, [esp + 0x10]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x14]
mov dword [0x10115824], eax
push 0x190
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.100a8dc0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x1b4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10055ff0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x10056012
push 0x2d
call fcn.100abd2b
mov edi, eax
add esp, 4
test edi, edi
jne 0x10056012
pop edi
pop esi
pop ebp
ret
push ebx
lea ebx, [esi + 0x1d]
mov eax, edi
cmp esi, ebx
ja 0x1005607e
nop dword [eax]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
add esi, 3
add edx, ecx
mov ecx, edx
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jbe 0x10056020
lea ecx, [ebx + 2]
cmp esi, ecx
jne 0x100560b9
movzx edx, byte [esi]
shl edx, 4
mov ecx, edx
mov word [eax + 2], 0x3d3d
shr ecx, 6
and edx, 0x3f
pop ebx
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
add eax, 4
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
lea ecx, [ebx + 1]
cmp esi, ecx
jne 0x10056103
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov byte [eax + 3], 0x3d
shl edx, 2
mov ecx, edx
shr ecx, 0xc
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
add eax, 4
pop ebx
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10056230
Capabilities:
Generate random numbers via rtlgenrandom
Terminate process

Disassembly:
mov eax, dword [0x101160c8]
push esi
mov esi, edx
push edi
mov edi, ecx
test eax, eax
jne 0x1005625f
push str.SystemFunction036
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101160c8], eax
test eax, eax
je 0x10056269
push esi
push edi
call eax
pop edi
pop esi
test al, al
jne 0x10056271
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x100578c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2c], 0x10
mov ecx, dword [esi + 0x30]
jge 0x100579f8
mov edx, dword [sym.imp.WS2_32.dll_WSASendTo]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
test ecx, ecx
jne 0x1005792f
cmp dword [esi + 8], ecx
lea ebx, [esi + 8]
je 0x100579f8
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebx]
push edi
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], ebx
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100579f8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov edx, dword [sym.imp.WS2_32.dll_WSASendTo]
mov eax, dword [ecx + 0x1c]
mov edi, ecx
add dword [esi + 0x40], eax
xorps xmm0, xmm0
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
lea ecx, [edi + 0x28]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0x1c]
mov byte [edi + 0x24], 2
mov dword [edi + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
cmp word [ecx], 2
jne 0x1005797e
push 0
push edi
push 0x10
push ecx
push 0
push 0
push 1
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x18]
jmp 0x100579b6
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x1005799d
push str.UdpSocketWin32:_unavailable_ipv6_socket
call fcn.10056110
add esp, 4
push edi
push 0x10115c70
call ebx
jmp 0x100579e4
push 0
push edi
push 0x1c
push ecx
push 0
push 0
push 1
lea ecx, [esp + 0x2c]
mov dword [esi + 0x20], 0x10
push ecx
push eax
call edx
test eax, eax
je 0x100579e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100579e1
push eax
push str.UdpSocketWin32:_WSASendTo_failed_0x_X
call fcn.10056110
add esp, 8
push edi
push 0x10115c70
call ebx
jmp 0x100579e4
inc dword [esi + 0x2c]
cmp dword [esi + 0x2c], 0x10
mov ecx, dword [esp + 0xc]
mov edx, dword [sym.imp.WS2_32.dll_WSASendTo]
jl 0x100578e7
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x34]
mov dword [esi + 0x30], ecx
test eax, eax
je 0x10057a24
push dword [esi + 0x3c]
mov ecx, dword [esi + 0x14]
push dword [esi + 0x38]
push eax
call fcn.100583e0
mov dword [edi], 0
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
mov ecx, esi
call fcn.10057530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005b3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e015e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1010f16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
mov dword [ecx], 0x100f75b4
mov word [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
movups xmmword [ecx + 0x14], xmm0
movups xmmword [ecx + 0x24], xmm0
mov dword [ebp - 4], 0
lea edi, [ecx + 0x48]
mov eax, dword [ebp + 8]
mov dword [ecx], 0x100f7570
mov dword [ecx + 0x40], eax
mov byte [edi + 0xc], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea esi, [ecx + 0x58]
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 2
lea eax, [esi + 0x14]
push eax
mov word [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x10]
push 2
lea esi, [edi + 0x74]
mov dword [ebp + 8], esi
push esi
mov dword [ebp - 0x14], esi
call fcn.10079b82
mov byte [ebp - 4], 5
lea eax, [esi + 0x30]
push eax
call fcn.1007b0c7
add esp, 0xc
mov byte [ebp - 4], 6
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
mov byte [ebp - 4], 7
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0xf
mov byte [esi + 0x74], 0
mov byte [ebp - 4], 8
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0xf
mov byte [esi + 0x8c], 0
mov byte [ebp - 4], 9
xor eax, eax
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov byte [esi + 0x58], 4
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0x10
mov dword [esi + 0xd0], eax
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x17c]
mov dword [ebp + 8], 2
nop word [eax + eax]
xor edi, edi
mov eax, dword [edi + 0x100f7534]
push 0x78
push 4
mov dword [esi], 0
mov byte [esi + 0xc], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0x14], 0x78
call fcn.100b888a
mov dword [esi + 0x10], eax
add edi, 4
mov dword [esi + 0x18], 0
add esp, 8
add esi, 0x1c
cmp edi, 0x10
jne 0x1005b512
sub dword [ebp + 8], 1
jne 0x1005b510
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x10]
push 0xf8
push 0
lea eax, [esi + 0x260]
mov dword [esi + 0x25c], 0
push eax
call fcn.100a8dc0
add esp, 0xc
lea ecx, [esi + 0x44]
xor eax, eax
xchg dword [ecx], eax
cmp byte [0x101160cc], 0
mov dword [esi + 0x34], 0
jne 0x1005b5aa
push 0x10115c70
mov byte [0x101160cc], 1
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
mov dword [esi + 0x38], 0
mov dword [esi + 0x178], 0
mov byte [esi + 0x3c], 0
mov byte [esi + 0x358], 0
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10060570
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
push 0x7c
mov edi, ecx
push 0
push edi
call fcn.100a8dc0
mov byte [edi], bl
movzx eax, bl
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x74], eax
lea eax, [ebp - 0x44]
mov byte [edi + 1], bl
mov word [edi + 2], 0x101
xor dword [edi], 0x6a09e667
xor dword [edi + 4], 0xbb67ae85
xor dword [edi + 8], 0x3c6ef372
xor dword [edi + 0xc], 0xa54ff53a
xor dword [edi + 0x10], 0x510e527f
xor dword [edi + 0x14], 0x9b05688c
xor dword [edi + 0x18], 0x1f83d9ab
xor dword [edi + 0x1c], 0x5be0cd19
push 0x40
push 0
push eax
call fcn.100a8dc0
push ebx
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.100a82c0
push 0x40
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.10061d60
add esp, 0x28
lea edi, [ebp - 0x44]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100908e7
mov esp, ebp
pop ebp
ret

Function at 0x10061e70
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x7c
push ebx
mov ebx, edx
push esi
mov esi, ecx
test eax, eax
je 0x10061e94
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.10060570
add esp, 8
jmp 0x10061ee0
push 0x7c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.100a8dc0
movzx eax, bl
add esp, 0xc
mov dword [ebp - 8], eax
xor eax, eax
mov byte [ebp - 0x7c], bl
mov word [ebp - 0x7b], 0x100
mov byte [ebp - 0x79], 1
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x7c]
movups xmm1, xmmword [eax + 0x100f31dc]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x7c], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x10061ec0
nop dword [eax]
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.10061d60
push ebx
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.10061e10
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 4
jb 0x10062285
push edi
mov edi, esi
shr edi, 2
mov eax, dword [edx]
sub esi, 4
xor dword [ecx], eax
add edx, 4
add ecx, 4
sub edi, 1
jne 0x10062272
pop edi
test esi, esi
je 0x1006229e
sub edx, ecx
nop dword [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x10062290
pop esi
pop ebp
ret

Function at 0x100622b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 4
jb 0x100622d9
mov esi, edi
shr esi, 2
mov eax, dword [ecx]
sub edi, 4
xor eax, dword [edx]
add ecx, 4
or ebx, eax
add edx, 4
sub esi, 1
jne 0x100622c5
test edi, edi
je 0x100622f9
sub ecx, edx
mov dword [ebp + 8], ecx
movzx esi, byte [ecx + edx]
lea edx, [edx + 1]
movzx ecx, byte [edx - 1]
xor esi, ecx
mov ecx, dword [ebp + 8]
or ebx, esi
sub edi, 1
jne 0x100622e2
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x10064870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, edx
mov dword [ebp - 4], edi
test ebx, ebx
je 0x10064920
mov eax, dword [ebp + 8]
cmp edi, eax
je 0x100648a0
push ebx
push eax
push edi
call fcn.100a82c0
add esp, 0xc
cmp ebx, 0x40
jb 0x10064904
mov eax, ebx
shr eax, 6
mov dword [ebp + 0xc], eax
nop dword [eax]
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.10062300
mov esi, 0x40
lea edx, [ebp - 0x48]
mov eax, edi
lea edi, [esi - 0x30]
mov ecx, dword [edx]
sub esi, 4
xor dword [eax], ecx
add edx, 4
add eax, 4
sub edi, 1
jne 0x100648c7
test esi, esi
je 0x100648ef
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
xor byte [eax], cl
lea eax, [eax + 1]
sub esi, 1
jne 0x100648e0
mov edi, dword [ebp - 4]
sub ebx, 0x40
mov esi, dword [ebp - 8]
add edi, 0x40
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], edi
jne 0x100648b0
test ebx, ebx
je 0x10064920
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.10062300
push ebx
lea edx, [ebp - 0x48]
mov ecx, edi
call fcn.10062260
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10064dc0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov dword [ecx], 0x61707865
mov dword [ecx + 4], 0x3320646e
mov dword [ecx + 8], 0x79622d32
mov dword [ecx + 0xc], 0x6b206574
mov eax, dword [edx]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x7c], 0
pop ebp
ret

Function at 0x10065180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
cmp esi, 0x10
jae 0x1006519c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
lea eax, [esi - 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.10065080
mov ebx, 0x10
lea eax, [ebp - 0x10]
add esi, 0xfffffff0
add esp, 0x1c
add esi, edi
xor edi, edi
lea edx, [ebx - 0xc]
nop dword [eax]
mov ecx, dword [eax]
sub ebx, 4
xor ecx, dword [esi]
add eax, 4
or edi, ecx
add esi, 4
sub edx, 1
jne 0x100651d0
test ebx, ebx
je 0x10065206
nop dword [eax + eax]
movzx edx, byte [eax]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
lea eax, [eax + 1]
xor edx, ecx
or edi, edx
sub ebx, 1
jne 0x100651f0
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, dword [eax]
test edi, edi
je 0x100652ca
push esi
nop
test ebx, ebx
jne 0x10065268
push 0x40
lea esi, [eax + 4]
push ebx
push esi
call fcn.100a8dc0
mov ecx, dword [ebp - 4]
mov edx, esi
push 0x40
push esi
lea ecx, [ecx + 0x44]
call fcn.10064870
add esp, 0x14
mov ebx, 0x40
mov edx, dword [ebp - 4]
cmp ebx, edi
mov eax, ebx
mov ecx, ebx
cmova ecx, edi
mov esi, edi
sub edx, eax
sub edi, ecx
mov eax, dword [ebp - 8]
sub ebx, ecx
add dword [ebp - 8], ecx
add edx, 0x44
mov dword [ebp + 8], edi
cmp esi, 4
jb 0x100652a7
mov edi, esi
shr edi, 2
mov ecx, dword [edx]
sub esi, 4
xor dword [eax], ecx
add edx, 4
add eax, 4
sub edi, 1
jne 0x10065292
mov edi, dword [ebp + 8]
test esi, esi
je 0x100652be
sub edx, eax
nop dword [eax]
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x100652b0
mov eax, dword [ebp - 4]
test edi, edi
jne 0x10065240
pop esi
pop edi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100683a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x1010f16c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push esi
push 0x20
push edx
lea eax, [esp + 0x1a4]
mov esi, ecx
push eax
call fcn.100a82c0
mov al, byte [esp + 0x1c7]
lea ecx, [esp + 0x14]
mov edx, dword [ebp + 8]
and al, 0x3f
and byte [esp + 0x1a8], 0xf8
add esp, 0xc
or al, 0x40
mov byte [esp + 0x1bb], al
call fcn.10065ec0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1a0]
push eax
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x60]
call fcn.10066ca0
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x10]
call fcn.10067010
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x10c]
call fcn.10065350
add esp, 0xc
lea ecx, [esp + 0x100]
call fcn.10065820
lea ecx, [esp + 0x100]
call fcn.10065900
movups xmm0, xmmword [esp + 0x100]
lea ecx, [esp + 0xa8]
movups xmmword [esp + 0xa8], xmm0
movups xmm0, xmmword [esp + 0x110]
movups xmmword [esp + 0xb8], xmm0
movups xmm0, xmmword [esp + 0x120]
movups xmmword [esp + 0xc8], xmm0
movups xmm0, xmmword [esp + 0x130]
movups xmmword [esp + 0xd8], xmm0
movups xmm0, xmmword [esp + 0x140]
movups xmmword [esp + 0xe8], xmm0
call fcn.10065900
lea edx, [esp + 0xa8]
mov ecx, esi
call fcn.100661c0
mov ecx, dword [esp + 0x1bc]
pop esi
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
Function at 0x10068690
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100686e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.10005c70
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10068720
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.OpenService__s_failed___d__n
call fcn.10036dd0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1006874d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.10005c70
add esp, 8
jmp 0x10068787
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x1006877a
cmp eax, 3
je 0x1006877a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
push str.service_is_stop_n
call fcn.10005c70
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100908e7
mov esp, ebp
pop ebp
ret