joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x473e69
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.004f6592
add esp, 0x110
ret 0xc

Function at 0x473e90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x473f82
lea ecx, [esp + 0xc]
push ecx
push str.htmlfile
push SysReAllocStringLen
mov ecx, edi
call fcn.00473df0
test eax, eax
jne 0x473fa0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push SysReAllocStringLen
mov ecx, edi
call fcn.00473df0
test eax, eax
jne 0x473f9c
lea edx, [esp + 0x10]
push 0x546bc8
push edx
call fcn.004fb612
mov esi, eax
add esp, 8
test esi, esi
jne 0x473f5f
lea eax, [esp + 0x10]
push 0x5439a4
push eax
call fcn.004f8ea0
mov esi, eax
add esp, 8
test esi, esi
jne 0x473f5f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x473f62
mov byte [esi], 0
push 0x53db08
push esi
call ebx
push ebp
push esi
call ebx
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004f6592
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x473f81
mov eax, esi
jmp 0x473f82
Function at 0x4742b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52f6f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x7c], 0
jne 0x4743c8
call fcn.004a4f4a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4742fa
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x474338
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402300
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004f65a1
add esp, 8
test eax, eax
jl 0x4743db
cmp eax, dword [esi - 8]
jg 0x4743db
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.004028b0
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47439d
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x47439d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x7c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4743c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00401310
int3

Function at 0x475950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47595b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x475a39
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5473e0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x475975
pop edi
test edx, edx
je 0x475a5b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5473e0]
inc ecx
sub edx, 1
jne 0x475a40
not eax
pop esi
ret
Function at 0x475a80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x475aca
push ebp
push esi
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x5477e4]
shl ecx, 8
xor ecx, dword [eax*8 + 0x5477e0]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x475a94
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x476150
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jne 0x476167
xor eax, eax
pop esi
add esp, 8
ret 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 0x10

Function at 0x4761b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jne 0x4761c7
xor eax, eax
pop esi
add esp, 8
ret 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 0x10
Function at 0x476530
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
call fcn.004f67e0
mov ecx, dword [esp + 0x134]
push ecx
lea edx, [esp + 0x2c]
push str..PhysicalDrive_d
push edx
call fcn.004f726c
add esp, 0x18
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x476611
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x130]
mov dword [esp + 0x10], ecx
push esi
mov ecx, edi
mov dword [esp + 0x18], edx
call fcn.004764a0
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x138]
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ecx, edi
mov ebp, eax
call fcn.004764d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x57
jne 0x476615
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x476624
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
je 0x476611
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x114
ret 0x14
Function at 0x4774a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x150
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, dword [esp + 0x168]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x5d]
push ebx
push eax
mov byte [esp + 0x64], bl
call fcn.004f67e0
mov cl, byte [esi + 4]
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
mov byte [esp + 0x5c], cl
mov dword [esp + 0x5d], ebx
push eax
lea ecx, [esp + 0x60]
push ecx
mov dword [esi + 5], ebx
mov byte [esp + 0x65], 0x3a
mov byte [esp + 0x66], 0x5c
mov byte [esp + 0x67], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
shrd edx, eax, 9
shr eax, 9
mov dword [esi + 0x15], eax
movsx eax, byte [esi + 4]
push eax
mov dword [esi + 0xd], ecx
mov dword [esi + 0x11], edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push str.._c:
push ecx
mov dword [esi + 9], edx
call fcn.004f726c
add esp, 0xc
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x20000
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x477588
xor eax, eax
jmp 0x4775f9
push ebx
lea eax, [esp + 0x28]
push eax
push 0x20
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push 0x560000
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
je 0x477584
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x10], edx
mov edx, dword [esp + 0x40]
mov dword [edi + 4], ecx
movzx ecx, byte [edi + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x10]
push ebx
mov dword [edi + 0xc], eax
mov dword [esi], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
push eax
push ecx
call fcn.004f94b0
mov dword [esi + 0x19], eax
mov dword [esi + 0x1d], edx
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x150
ret 8
Function at 0x478d00
Capabilities:
Encode data using xor

Disassembly:
push 0x80ed40
call fcn.00478c60
mov eax, 0x400
nop
mov ecx, dword [eax + 0x80e940]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
add eax, 4
movzx edx, cl
mov dword [eax + 0x80ed3c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
movzx edx, cl
mov dword [eax + 0x80f13c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
movzx edx, cl
mov dword [eax + 0x80f53c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
movzx edx, cl
mov dword [eax + 0x80f93c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
movzx edx, cl
mov dword [eax + 0x80fd3c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
mov dword [eax + 0x81013c], ecx
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x80ed40]
mov dword [eax + 0x81053c], ecx
cmp eax, 0x800
jb 0x478d10
ret

Function at 0x478db0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
call fcn.00478d00
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test esi, esi
jbe 0x478de4
test bl, 7
je 0x478de4
movzx ecx, byte [ebx]
movzx edx, al
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x80ed40]
dec esi
inc ebx
test esi, esi
ja 0x478dc7
cmp esi, 8
jb 0x478e7c
push ebp
push edi
mov edi, esi
shr edi, 3
mov ecx, dword [ebx + 4]
xor eax, dword [ebx]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x80f140]
mov dword [esp + 0x14], ebx
mov ebp, ecx
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x80ed40]
mov ebx, ecx
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x80f540]
mov ebp, eax
shr ebp, 0x18
xor edx, dword [ebp*4 + 0x80fd40]
mov ebx, eax
shr ebx, 0x10
movzx ebp, bl
xor edx, dword [ebp*4 + 0x810140]
mov ebx, eax
shr ebx, 8
movzx ebp, bl
xor edx, dword [ebp*4 + 0x810540]
mov ebx, dword [esp + 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x80f940]
movzx eax, al
xor edx, dword [eax*4 + 0x810940]
sub esi, 8
add ebx, 8
sub edi, 1
mov eax, edx
jne 0x478df4
pop edi
pop ebp
test esi, esi
jbe 0x478e98
movzx ecx, byte [ebx]
movzx edx, al
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x80ed40]
dec esi
inc ebx
test esi, esi
ja 0x478e80
pop esi
pop ebx
ret 0xc
Function at 0x489750
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x810db4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x48977a
call edi
push eax
push 0
push 0x488940
push 0xffffffffffffffff
call esi
mov dword [0x810db4], eax
cmp dword [0x810db8], 0
jne 0x489796
call edi
push eax
push 0
push 0x489430
push 3
call esi
mov dword [0x810db8], eax
mov eax, dword [0x810dbc]
test eax, eax
jne 0x4897b2
call edi
push eax
push 0
push 0x489530
push 4
call esi
mov dword [0x810dbc], eax
cmp dword [0x810db4], 0
pop edi
pop esi
je 0x4897d0
cmp dword [0x810db8], 0
je 0x4897d0
test eax, eax
je 0x4897d0
mov eax, 1
ret
xor eax, eax
ret
Function at 0x492c70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x492c8d
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov dl, byte [esi]
xor byte [eax], dl
dec ecx
inc eax
inc esi
test ecx, ecx
jne 0x492c81
pop esi
ret
Function at 0x494090
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4940af
push 0x33
push str.._rc4s.cpp
push str.st___NULL
call fcn.004941e0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4940ca
push 0x34
push str.._rc4s.cpp
push str.in___NULL
call fcn.004941e0
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x4940e5
push 0x35
push str.._rc4s.cpp
push str.out___NULL
call fcn.004941e0
add esp, 0xc
mov ebp, dword [esp + 0x18]
mov dl, byte [esi]
mov bl, byte [esi + 4]
test ebp, ebp
je 0x49413f
push edi
inc dl
movzx eax, dl
mov cl, byte [eax + esi + 8]
lea eax, [eax + esi + 8]
add bl, cl
movzx edi, bl
lea edi, [edi + esi + 8]
mov byte [esp + 0x14], bl
mov bl, byte [edi]
mov byte [eax], bl
mov bl, byte [esp + 0x14]
mov byte [edi], cl
mov al, byte [eax]
mov edi, dword [esp + 0x18]
add al, cl
movzx ecx, al
movzx ecx, byte [ecx + esi + 8]
xor cl, byte [edi]
mov eax, dword [esp + 0x20]
dec ebp
mov byte [eax], cl
inc eax
inc edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
test ebp, ebp
jne 0x4940f3
pop edi
movzx eax, bl
movzx edx, dl
mov dword [esi + 4], eax
mov dword [esi], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x494920
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x494942
push 0x13e
push str.._sober128.cpp
push str.c___NULL
call fcn.004941e0
add esp, 0xc
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x494961
push 0x13f
push str.._sober128.cpp
push str.key___NULL
call fcn.004941e0
add esp, 0xc
mov ebx, dword [esp + 0x18]
test ebx, ebx
ja 0x494980
push 0x140
push str.._sober128.cpp
push str.keylen___0
call fcn.004941e0
add esp, 0xc
test bl, 3
je 0x49498e
pop esi
pop ebp
mov eax, 3
pop ebx
ret
lea eax, [esi + 4]
push edi
mov dword [esi], 1
mov dword [eax], 1
mov edi, 3
mov edx, dword [eax]
mov ecx, dword [eax - 4]
add ecx, edx
add edx, ecx
mov dword [eax + 4], ecx
add ecx, edx
mov dword [eax + 8], edx
add edx, ecx
mov dword [eax + 0x10], edx
add edx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], edx
add eax, 0x14
sub edi, 1
jne 0x4949a3
mov dword [esi + 0x88], 0x6996c53a
test ebx, ebx
jbe 0x4949fa
lea eax, [edi + ebp]
call fcn.00494210
add dword [esi + 0x3c], eax
mov eax, esi
call fcn.00494230
mov edx, esi
call fcn.004942b0
xor dword [esi + 0x10], eax
add edi, 4
cmp edi, ebx
jb 0x4949d7
add dword [esi + 0x3c], ebx
mov eax, esi
call fcn.004943f0
call fcn.004943d0
mov eax, esi
call fcn.004942f0
pop edi
mov dword [esi + 0x90], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x494a30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x494a52
push 0x16d
push str.._sober128.cpp
push str.c___NULL
call fcn.004941e0
add esp, 0xc
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x494a71
push 0x16e
push str.._sober128.cpp
push str.iv___NULL
call fcn.004941e0
add esp, 0xc
mov ebx, dword [esp + 0x18]
test ebx, ebx
ja 0x494a90
push 0x16f
push str.._sober128.cpp
push str.ivlen___0
call fcn.004941e0
add esp, 0xc
mov eax, esi
call fcn.00494360
test bl, 3
je 0x494aa5
pop esi
pop ebp
mov eax, 3
pop ebx
ret
push edi
xor edi, edi
test ebx, ebx
jbe 0x494ad3
lea esp, [esp]
lea eax, [edi + ebp]
call fcn.00494210
add dword [esi + 0x3c], eax
mov eax, esi
call fcn.00494230
mov edx, esi
call fcn.004942b0
xor dword [esi + 0x10], eax
add edi, 4
cmp edi, ebx
jb 0x494ab0
add dword [esi + 0x3c], ebx
mov eax, esi
call fcn.004943f0
pop edi
mov dword [esi + 0x90], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4952c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
jne 0x4952de
push 0x14
push str..chacha.cpp
push str.st___NULL
call fcn.004941e0
add esp, 0xc
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x4952fa
push 0x15
push str..chacha.cpp
push str.key___NULL
call fcn.004941e0
add esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 0x20
je 0x49531d
cmp ebx, 0x10
je 0x49531d
push 0x16
push str..chacha.cpp
push str.keylen__32__keylen__16
call fcn.004941e0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x49532a
mov ecx, 0x14
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov edx, dword [edi + 4]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 0xc]
cmp ebx, 0x20
mov dword [esi + 0x1c], edx
pop ebx
jne 0x495351
add edi, 0x10
mov eax, str.expand_32_byte_k
jmp 0x495356
mov eax, str.expand_16_byte_k
mov edx, dword [edi]
mov dword [esi + 0x20], edx
mov edx, dword [edi + 4]
mov dword [esi + 0x24], edx
mov edx, dword [edi + 8]
mov dword [esi + 0x28], edx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x2c], edx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], 0
xor eax, eax
pop esi
ret
Function at 0x495a80
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
push edi
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0xc]
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 7]
shl ecx, 8
movzx esi, byte [eax + 6]
or ecx, esi
movzx esi, byte [eax + 5]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 4]
shl ecx, 8
or ecx, esi
mov dword [edx + 8], ecx
movzx ecx, byte [eax + 0xb]
movzx esi, byte [eax + 0xa]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 9]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 8]
shl ecx, 8
or ecx, esi
mov dword [edx + 0xc], ecx
movzx ecx, byte [eax + 0xf]
movzx esi, byte [eax + 0xe]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xd]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 0xc]
shl ecx, 8
or ecx, esi
cmp dword [esp + 0x14], 0x100
mov dword [edx + 0x10], ecx
jne 0x495b25
add eax, 0x10
mov ecx, str.expand_32_byte_k
jmp 0x495b2a
mov ecx, str.expand_16_byte_k
movzx esi, byte [eax + 3]
movzx edi, byte [eax + 2]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
or esi, edi
movzx edi, byte [eax]
shl esi, 8
or esi, edi
mov dword [edx + 0x2c], esi
movzx esi, byte [eax + 7]
movzx edi, byte [eax + 6]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 5]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 4]
shl esi, 8
or esi, edi
mov dword [edx + 0x30], esi
movzx esi, byte [eax + 0xb]
movzx edi, byte [eax + 0xa]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 9]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 8]
shl esi, 8
or esi, edi
mov dword [edx + 0x34], esi
movzx esi, byte [eax + 0xf]
movzx edi, byte [eax + 0xe]
shl esi, 8
or esi, edi
movzx edi, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl esi, 8
or esi, edi
shl esi, 8
or esi, eax
mov dword [edx + 0x38], esi
movsx eax, byte [ecx + 3]
movsx esi, byte [ecx + 2]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 1]
shl eax, 8
or eax, esi
movsx esi, byte [ecx]
shl eax, 8
or eax, esi
mov dword [edx], eax
movsx eax, byte [ecx + 7]
movsx esi, byte [ecx + 6]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 5]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 4]
shl eax, 8
or eax, esi
mov dword [edx + 0x14], eax
movsx eax, byte [ecx + 0xb]
movsx esi, byte [ecx + 0xa]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 9]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 8]
shl eax, 8
or eax, esi
mov dword [edx + 0x28], eax
movsx eax, byte [ecx + 0xf]
movsx esi, byte [ecx + 0xe]
shl eax, 8
or eax, esi
movsx esi, byte [ecx + 0xd]
movsx ecx, byte [ecx + 0xc]
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
pop edi
mov dword [edx + 0x3c], eax
xor eax, eax
pop esi
ret