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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49d513
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49d4fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d01de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a47e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6eeb64
call fcn.004c2159
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a3f53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c2159
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a3f4c
push 0
mov ecx, eax
call fcn.0049afc0
mov dword [esi + 0xc], eax
jmp 0x4a3f55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a3f55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4c47e6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c481e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c2873
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c284b
jmp 0x4c482a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c5ed8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c5f1a
call fcn.004cb990
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c5f1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c5f11
xor eax, eax
jmp 0x4c5f22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c5f28
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cbec0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cbeee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cbf0c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cbe26
jmp 0x4cbf0c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cbf0c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cbe26
test edi, edi
mov eax, edi
jne 0x4cbef6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x43d1f1
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.0055ab90
mov dword [section..data], 0x1500189
mov dword [section..data], 0x150018a
mov dword [esp], 0
mov dword [section..data], 0x150018b
mov dword [esp + 4], 0
mov dword [section..data], 0x150018c
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov dword [section..data], 0x150018d
mov ebx, dword [esp]
and ebx, ebx
je 0x43d2a3
mov dword [section..data], 0x150018e
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x43d287
mov dword [section..data], 0x150018f
mov dword [esp + 4], 1
mov dword [section..data], 0x1500190
mov dword [section..data], 0x1500191
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0x1500192
mov dword [section..data], 0x1500193
mov eax, dword [esp + 4]
jmp 0x43d2c9
add esp, 8
pop ebx
ret 4
Function at 0x43faf0
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x43faf8
call fcn.0055ab90
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [section..data], 0xa001b7
mov dword [section..data], 0xa001bd
mov dword [esp + 0x14], 1
mov dword [section..data], 0xa001c0
call sub.KERNEL32.dll_GetLogicalDrives
mov dword [esp + 4], eax
mov dword [section..data], 0xa001c2
cmp dword [esp + 4], 0
je 0x43fca9
mov dword [section..data], 0xa001c5
mov dword [esp + 8], 1
mov dword [section..data], 0xa001c7
mov dword [esp + 0xc], 0
jmp 0x43fb85
mov dword [section..data], 0xa001c7
mov eax, 0x19
cmp eax, dword [esp + 0xc]
jl 0x43fc9d
mov dword [section..data], 0xa001c8
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ecx, edi
mov eax, 1
shl eax, cl
mov edi, eax
and ebx, edi
and ebx, ebx
je 0x43fc7f
mov dword [section..data], 0xa001c9
push edx
call fcn.0055a9f0
pop edx
push eax
push edx
call fcn.0055a9f0
pop edx
push eax
mov ebx, dword [esp + 0x14]
add ebx, 0x41
push ebx
call fcn.00549810
mov edx, 0x659eee
push edx
call fcn.0055aac0
lea eax, [esp + 0x14]
push eax
call fcn.0055aa30
mov dword [section..data], 0xa001cc
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 0x18], eax
mov dword [section..data], 0xa001ce
mov ebx, dword [esp + 0x18]
cmp ebx, 5
je 0x43fc2d
mov dword [section..data], 0xa001d0
jmp 0x43fc75
mov dword [section..data], 0xa001d0
mov dword [section..data], 0xa001d3
push dword [esp]
call fcn.0054a898
mov dword [section..data], 0xa001d4
mov edx, dword [esp + 0x10]
push edx
call fcn.0055a9f0
pop edx
push eax
push edx
call fcn.0055aac0
mov eax, dword [esp + 4]
mov ebp, dword [eax + 8]
lea eax, [ebp + 8]
push eax
call fcn.0055aa30
mov dword [section..data], 0xa001d6
mov dword [section..data], 0xa001d7
mov dword [section..data], 0xa001d8
inc dword [esp + 0xc]
jno 0x43fb7b
mov dword [section..data], 0xa001d9
jmp 0x43fcc5
mov dword [section..data], 0xa001d9
mov dword [section..data], 0xa001da
mov dword [esp + 0x14], 0
mov dword [section..data], 0xa001db
mov dword [section..data], 0xa001dd
mov eax, dword [esp + 0x14]
jmp 0x43fceb
push dword [esp + 0x10]
call fcn.0055abf0
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4406ce
Capabilities:
Get disk size

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4406d4
call fcn.0055ab90
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.004f4000
mov dword [section..data], 0xa00112
mov dword [section..data], 0xa0011b
push edx
call fcn.0055a9f0
pop edx
push eax
push edx
call fcn.0055a9f0
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.00549920
mov edx, 0x654898
push edx
call fcn.0055aac0
lea eax, [esp + 4]
push eax
call fcn.0055aa30
mov dword [section..data], 0xa0011d
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x44080f
mov dword [section..data], 0xa0011f
push dword [esp + 0x28]
mov dword [section..data], 0xa00120
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4407a9
mov dword [section..data], 0xa00121
lea eax, [esp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 4
jmp 0x44083d
mov dword [section..data], 0xa00123
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4407e1
mov dword [section..data], 0xa00124
lea eax, [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 4
jmp 0x44083d
mov dword [section..data], 0xa00126
mov dword [section..data], 0xa00127
mov edx, 0xffffffff
mov eax, 0xfffffffe
add esp, 4
jmp 0x44083d
mov dword [section..data], 0xa00129
mov dword [section..data], 0xa0012b
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x44083d
push edx
push dword [esp + 4]
call fcn.0055abf0
pop edx
add esp, 0x1c
pop ebx
ret 8
Function at 0x47eac0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x47eac6
call fcn.0055ab90
mov dword [section..data], 0x99
mov dword [section..data], 0x9b
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [section..data], 0x9c
lea ebp, [esp]
cmp word [ebp], 0
je 0x47eb1a
mov dword [section..data], 0x9d
mov eax, 1
jmp 0x47eb30
mov dword [section..data], 0x9e
mov dword [section..data], 0x9f
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x49b06c
Capabilities:
Enumerate processes

Disassembly:
push ebp
push ebx
mov edx, 0x8d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x49b073
call fcn.0055ab90
mov dword [section..data], 0x160011d
mov dword [section..data], 0x1600126
push dword [0x672458]
mov edx, 0x6355da
pop ecx
call fcn.004f4370
je 0x49b272
mov dword [section..data], 0x1600127
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp + 0x230], eax
mov dword [section..data], 0x1600129
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x22c], eax
mov dword [section..data], 0x160012a
mov ebx, dword [esp + 0x22c]
cmp ebx, 0xffffffff
je 0x49b268
mov dword [section..data], 0x160012b
lea ebp, [esp]
mov dword [ebp], 0x22c
mov dword [section..data], 0x160012c
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x49b1a1
mov dword [section..data], 0x160012d
mov dword [section..data], 0x160012e
lea ebp, [esp]
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x230]
jne 0x49b177
mov dword [section..data], 0x160012f
lea ebp, [esp]
push dword [ebp + 0x18]
pop eax
mov dword [0x672454], eax
mov dword [section..data], 0x1600131
jmp 0x49b1a1
mov dword [section..data], 0x1600132
mov dword [section..data], 0x1600133
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32NextW
mov ebx, eax
and ebx, ebx
jne 0x49b132
mov dword [section..data], 0x1600134
mov dword [section..data], 0x1600136
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x49b25e
mov dword [section..data], 0x1600137
mov dword [section..data], 0x1600138
lea ebp, [esp]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x672454]
jne 0x49b230
mov dword [section..data], 0x1600139
push edx
call fcn.0055a9f0
pop edx
push eax
push edx
call fcn.0055a9f0
pop edx
push eax
lea ebp, [esp + 8]
push ebp
pop ebp
lea eax, [ebp + 0x24]
push eax
call fcn.0055a830
lea eax, [0x672458]
push eax
call fcn.0055aa30
mov dword [section..data], 0x160013b
jmp 0x49b25e
mov dword [section..data], 0x160013c
mov dword [section..data], 0x160013d
lea eax, [esp]
push eax
push dword [esp + 0x230]
call sub.KERNEL32.dll_Process32NextW
mov ebx, eax
and ebx, ebx
jne 0x49b1cd
mov dword [section..data], 0x160013e
mov dword [section..data], 0x160013f
mov dword [section..data], 0x1600140
mov dword [section..data], 0x1600142
push edx
call fcn.0055a9f0
pop edx
push eax
push edx
call fcn.0055a9f0
pop edx
push eax
push dword [0x672458]
call fcn.00548f90
call fcn.0055ab20
mov edx, str.cmd.exe
pop ecx
push ecx
call fcn.004f4360
mov ecx, eax
call fcn.004f4370
je 0x49b2c2
mov eax, 1
jmp 0x49b2c4
xor eax, eax
jmp 0x49b2d2
add esp, 0x234
pop ebx
pop ebp
ret
Function at 0x49b528
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x49b530
call fcn.0055ab90
mov dword [section..data], 0x16000d5
mov dword [section..data], 0x16000d9
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
and ebx, ebx
jl 0x49b570
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp + 2]
and ebx, ebx
jl 0x49b570
jmp 0x49b577
mov eax, 1
jmp 0x49b579
xor eax, eax
and eax, eax
je 0x49b58e
mov dword [section..data], 0x16000da
xor eax, eax
jmp 0x49b660
mov dword [section..data], 0x16000db
mov dword [section..data], 0x16000dd
push 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [esp + 0x18], eax
mov dword [section..data], 0x16000de
lea eax, [esp]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
mov dword [section..data], 0x16000e0
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp + 2]
lea ebp, [esp]
cmp bx, word [ebp + 2]
jge 0x49b5f5
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
lea ebp, [esp]
cmp bx, word [ebp]
jge 0x49b5f5
jmp 0x49b5fc
mov eax, 1
jmp 0x49b5fe
xor eax, eax
and eax, eax
je 0x49b610
mov dword [section..data], 0x16000e1
xor eax, eax
jmp 0x49b660
mov dword [section..data], 0x16000e2
mov dword [section..data], 0x16000e4
mov ebp, dword [esp + 0x2c]
movsx ebx, word [ebp]
mov ebp, dword [esp + 0x2c]
movsx edi, word [ebp + 2]
shl edi, 0x10
add ebx, edi
push ebx
push dword [esp + 0x1c]
call sub.KERNEL32.dll_SetConsoleCursorPosition
mov dword [section..data], 0x16000e6
mov eax, 1
jmp 0x49b660
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret 4
Function at 0x49c034
Capabilities:
Enumerate processes

Disassembly:
push ebp
push ebx
mov edx, 0x8d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x49c03b
call fcn.0055ab90
mov dword [section..data], 0x1600300
mov dword [section..data], 0x1600304
mov dword [esp], 1
mov dword [section..data], 0x1600305
mov dword [esp + 4], 0
mov dword [section..data], 0x1600308
mov dword [section..data], 0x160030a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [section..data], 0x160030c
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
jne 0x49c0fa
mov dword [section..data], 0x160030d
push 0
mov eax, str.ERROR___invalid_handle
push eax
mov eax, str._GetParentPid
push eax
mov eax, str.common_console
push eax
call fcn.004967c8
mov dword [section..data], 0x160030e
mov dword [esp], 0xfffff570
mov dword [section..data], 0x160030f
jmp 0x49c215
mov dword [section..data], 0x1600310
mov dword [section..data], 0x1600312
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [section..data], 0x1600314
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x49c1b4
mov dword [section..data], 0x1600315
mov dword [section..data], 0x1600316
lea ebp, [esp + 8]
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x240]
jne 0x49c175
mov dword [section..data], 0x1600318
lea ebp, [esp + 8]
push dword [ebp + 0x18]
mov ebp, dword [esp + 0x248]
pop eax
mov dword [ebp], eax
mov dword [section..data], 0x1600319
mov dword [section..data], 0x160031a
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x49c19f
xor eax, eax
jmp 0x49c1a4
mov eax, 1
and eax, eax
je 0x49c135
mov dword [section..data], 0x160031b
jmp 0x49c201
mov dword [section..data], 0x160031b
mov dword [section..data], 0x160031c
push 0
mov eax, str.ERROR___Process32First_failed
push eax
mov eax, str._GetParentPid
push eax
mov eax, str.common_console
push eax
call fcn.004967c8
mov dword [section..data], 0x160031d
mov dword [esp], 0xfffff572
mov dword [section..data], 0x160031e
jmp 0x49c215
mov dword [section..data], 0x160031f
mov dword [section..data], 0x1600321
mov dword [section..data], 0x1600323
cmp dword [esp + 4], 0
je 0x49c239
mov dword [section..data], 0x1600324
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0x1600325
mov dword [section..data], 0x1600327
mov eax, dword [esp]
jmp 0x49c25e
add esp, 0x234
pop ebx
pop ebp
ret 8
Function at 0x4f45b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0xb], al
cmp esi, eax
jbe 0x4f45ee
lea ecx, [ecx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor ecx, edx
movzx edx, byte [ebp + 0xb]
or edx, ecx
inc eax
mov byte [ebp + 0xb], dl
cmp eax, esi
jb 0x4f45d0
mov al, byte [ebp + 0xb]
movzx eax, al
dec eax
sar eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f4650
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x673abc], eax
cmp eax, 0x10
jb 0x4f4672
cmp eax, 4
jae 0x4f4677
call fcn.004f44b0
push 0x10
push 0x673aac
call fcn.004f4b60
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4f67b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x67018c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0x20
push ebx
push esi
call fcn.00505d30
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
lea ecx, [ebp - 0xa4]
or al, 0x40
push esi
push ecx
mov byte [esi + 0x1f], al
call fcn.0050a720
lea edx, [ebp - 0xa4]
push edx
push edi
call fcn.005146e0
push 0x20
push ebx
push esi
call sub.MSVCRT.dll_memmove
push 0x20
push edi
add esi, 0x20
push esi
call sub.MSVCRT.dll_memmove
mov ecx, dword [ebp - 4]
add esp, 0x38
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005230e3
mov esp, ebp
pop ebp
ret
Function at 0x4f68c0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x67018c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x194]
push edx
mov dword [ebp - 0x238], eax
call fcn.004f6880
push 0
push 0x20
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00505d30
push 0
push 0x20
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x194]
push edx
call fcn.00505a70
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x194]
push edi
push edx
call fcn.00505a70
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.00505cc0
add esp, 0x40
push 0x20
lea eax, [esi + 0x20]
add ebx, 0x20
push ebx
push eax
mov dword [ebp - 0x23c], eax
call sub.MSVCRT.dll_memmove
lea edx, [ebp - 0x84]
push edx
call fcn.005121f0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.0050a720
lea edx, [ebp - 0x234]
push edx
push esi
call fcn.005146e0
mov eax, dword [ebp + 0x20]
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.004f6880
push 0
push 0x40
lea edx, [ebp - 0x194]
push esi
push edx
call fcn.00505a70
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x194]
push edi
push edx
call fcn.00505a70
add esp, 0x48
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.00505cc0
lea edx, [ebp - 0xc4]
push edx
call fcn.005121f0
mov al, byte [ebp - 0x25]
and byte [ebp - 0x44], 0xf8
and al, 0x3f
or al, 0x40
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x44]
mov byte [ebp - 0x25], al
push edx
lea eax, [ebp - 0xc4]
push eax
push ecx
call fcn.0050e5f0
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.004f4590
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004f4590
mov eax, dword [ebp - 0x238]
add esp, 0x2c
pop edi
pop esi
pop ebx
test eax, eax
je 0x4f6a40
mov dword [eax], 0x40
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005230e3
mov esp, ebp
pop ebp
ret

Function at 0x4f7040
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
lea ecx, [edx + 0x18]
lea eax, [esi + 8]
sub edx, esi
push edi
mov esi, 0x20
mov edi, dword [ecx - 0x18]
xor dword [eax - 8], edi
mov edi, dword [ecx - 0x14]
xor dword [eax - 4], edi
mov edi, dword [edx + eax]
xor dword [eax], edi
mov edi, dword [edx + eax + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx - 8]
xor dword [eax + 8], edi
mov edi, dword [ecx - 4]
xor dword [eax + 0xc], edi
mov edi, dword [ecx]
xor dword [eax + 0x10], edi
mov edi, dword [ecx + 4]
xor dword [eax + 0x14], edi
add eax, 0x20
add ecx, 0x20
dec esi
jne 0x4f7051
pop edi
pop esi
ret
Function at 0x4fbf30
Capabilities:
Hash data using sha256

Disassembly:
push 0x125
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
add eax, 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
ret
Function at 0x4ff420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67018c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov eax, dword [ebp + 8]
mov esi, 0x62c5b0
push edi
sub esi, eax
mov edi, 0x1f
mov edi, edi
mov cl, byte [eax]
movzx edx, byte [esi + eax - 0x20]
xor dl, cl
or byte [ebp - 0xc], dl
movzx edx, byte [esi + eax]
xor dl, cl
or byte [ebp - 0xb], dl
movzx edx, byte [esi + eax + 0x20]
xor dl, cl
or byte [ebp - 0xa], dl
movzx edx, byte [esi + eax + 0x40]
xor dl, cl
or byte [ebp - 9], dl
movzx edx, byte [esi + eax + 0x60]
xor dl, cl
or byte [ebp - 8], dl
movzx edx, byte [esi + eax + 0x80]
xor dl, cl
or byte [ebp - 7], dl
movzx edx, byte [esi + eax + 0xa0]
xor dl, cl
or byte [ebp - 6], dl
inc eax
dec edi
jne 0x4ff450
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x1f]
mov cl, byte [ebp - 0xc]
mov dl, byte [ebp - 9]
and al, 0x7f
or byte [ebp - 0xb], al
or byte [ebp - 0xa], al
mov bl, al
or cl, al
xor al, 0x7f
or byte [ebp - 8], al
or byte [ebp - 7], al
movzx esi, byte [ebp - 7]
xor bl, 0x57
or dl, bl
mov bl, byte [ebp - 6]
or bl, al
movzx eax, bl
dec eax
dec esi
or eax, esi
movzx esi, byte [ebp - 8]
movzx edx, dl
dec edx
dec esi
or eax, esi
or eax, edx
movzx edx, byte [ebp - 0xa]
dec edx
or eax, edx
movzx edx, byte [ebp - 0xb]
movzx ecx, cl
dec edx
or eax, edx
dec ecx
or eax, ecx
mov ecx, dword [ebp - 4]
pop edi
shr eax, 8
pop esi
xor ecx, ebp
and eax, 1
pop ebx
call fcn.005230e3
mov esp, ebp
pop ebp
ret

Function at 0x4ffb00
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x28], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x2c], ecx
ret

Function at 0x5003b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x28], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x2c], ecx
ret