joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6090
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00520bc0
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 0x1005], dl
lea edi, [ecx + 2]
mov esi, ecx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d60b5
sub ecx, edi
sar ecx, 1
je 0x4d60ce
lea eax, [esi - 2]
lea eax, [eax + ecx*2]
jmp 0x4d60d0
mov eax, esi
movzx eax, word [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0x2e
je 0x4d60ec
cmp eax, 0x20
je 0x4d60ec
push 0
push esi
call edi
test eax, eax
jne 0x4d6145
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4d6191
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d6121
lea eax, [ebp - 0x1004]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4d6191
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d6191
push 0
lea eax, [ebp - 0x1004]
push eax
call edi
test eax, eax
je 0x4d6191
cmp byte [ebp - 0x1005], 0
je 0x4d617e
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push esi
call ebx
test eax, eax
jne 0x4d617e
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d617e
push edi
lea eax, [ebp - 0x1004]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4d61a6
cmp eax, 3
mov eax, 1
jne 0x4d61ab
mov eax, 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4d62b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00520bc0
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x4d62e0
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [ebp - 0x1009], 1
jne 0x4d62e7
mov byte [ebp - 0x1009], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d62fc
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [ebp - 0x100b], 1
jne 0x4d6303
mov byte [ebp - 0x100b], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4d6318
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [ebp - 0x100a], 1
jne 0x4d631f
mov byte [ebp - 0x100a], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d6356
push ecx
lea edx, [ebp - 0x1008]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d6395
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d6395
test bl, 1
je 0x4d6395
push 0
push esi
mov byte [ebp - 0x100c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4d639c
push ecx
lea edx, [ebp - 0x1008]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d639c
push 0
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4d639c
mov byte [ebp - 0x100c], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x4d6407
push ecx
lea edx, [ebp - 0x1008]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d64d9
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
je 0x4d64d9
cmp byte [ebp - 0x1009], 0
je 0x4d6423
mov ecx, edi
call fcn.004cb290
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], edx
cmp byte [ebp - 0x100b], 0
je 0x4d6440
mov ecx, dword [ebp + 8]
call fcn.004cb290
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1024], edx
cmp byte [ebp - 0x100a], 0
je 0x4d645d
mov ecx, dword [ebp + 0xc]
call fcn.004cb290
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], edx
mov edi, dword [ebp - 0x1010]
lea eax, [ebp - 0x1018]
xor ecx, ecx
cmp byte [ebp - 0x1009], cl
cmove eax, ecx
cmp byte [ebp - 0x100a], cl
push eax
lea eax, [ebp - 0x1020]
cmove eax, ecx
cmp byte [ebp - 0x100b], cl
push eax
lea eax, [ebp - 0x1028]
cmove eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x100c], 0
je 0x4d64d9
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
call edi
test eax, eax
jne 0x4d64d9
push ecx
lea edx, [ebp - 0x1008]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d64d9
push ebx
lea eax, [ebp - 0x1008]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4d64f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00520bc0
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4d653b
push ecx
lea edx, [ebp - 0x1004]
mov ecx, edi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4d653b
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4e1320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5598f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x8003
mov byte [esi + 0xc], 0
call fcn.004efd04
push 0x8003
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.004f32c0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [esi + 0x48], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov byte [esi + 0x5c], 0
mov byte [ebp - 4], 3
lea eax, [esi + 0x4b44]
push 0x100
push 0
push eax
call fcn.004f32c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x98d8]
mov dword [ebp - 0x14], eax
mov dword [eax + 0x4a8c], 0
mov byte [ebp - 4], 5
mov dword [eax + 0x644], 0
mov dword [eax + 0x64c], 0
mov dword [eax + 0x648], 0
mov byte [ebp - 4], 6
mov dword [esi + 0xe664], 0
mov byte [ebp - 4], 7
push 0x8003
mov byte [esi + 0xe690], 0
call fcn.004efd04
push 0x8003
push 0
push eax
mov dword [esi + 0xe694], eax
call fcn.004f32c0
add esp, 0x2c
mov byte [ebp - 4], 8
mov dword [esi + 0xe698], 0
mov dword [esi + 0xe69c], 0
mov dword [esi + 0xe6a0], 0
mov dword [esi + 0xe6a4], 0
mov byte [esi + 0xe6a8], 0
mov byte [ebp - 4], 9
mov dword [esi + 0xe6ac], 0
mov dword [esi + 0xe6b0], 0
mov dword [esi + 0xe6b4], 0
mov dword [esi + 0xe6b8], 0
mov byte [esi + 0xe6bc], 0
mov byte [ebp - 4], 0xa
mov dword [esi + 0xe6c0], 0
mov dword [esi + 0xe6c4], 0
mov dword [esi + 0xe6c8], 0
mov dword [esi + 0xe6cc], 0
mov byte [esi + 0xe6d0], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x4b40], 0
mov byte [esi + 0x4c44], 0
mov word [esi + 0x4c50], 0
mov byte [esi + 0x4c52], 0
mov dword [esi + 0x1c], 1
call fcn.004e2c90
push 0
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0xe6d8], 0
mov dword [esi + 0xe6dc], 0
call fcn.004e1ba0
push 0
mov ecx, esi
call fcn.004db900
call fcn.004db9b0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e26f0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2014
call fcn.00520bc0
mov eax, dword [0x5a9008]
xor eax, esp
mov dword [esp + 0x2010], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x4e2729
mov byte [eax], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor bl, bl
push esi
call edi
cmp eax, 0xffffffff
jne 0x4e275c
push ecx
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4e27d3
lea eax, [esp + 0x18]
push eax
call edi
cmp eax, 0xffffffff
je 0x4e27d3
test bl, bl
jne 0x4e276d
mov ecx, esi
mov bl, 1
call fcn.004e2880
test al, al
jne 0x4e2731
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x6134]
cmp eax, 2
jne 0x4e279e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e2787
mov byte [eax], 1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 0x6188], 0
jne 0x4e27cc
cmp eax, 1
je 0x4e27cc
push 0x7ff
lea eax, [esp + 0x101c]
push esi
push eax
call fcn.0053048c
add esp, 0xc
xor eax, eax
mov word [esp + 0x2016], ax
mov ecx, esi
call fcn.004d64f0
movzx edi, byte [ebp + 0x20]
mov ebx, dword [esp + 0x14]
add edi, 0x11
test ebx, ebx
je 0x4e2806
push edi
push esi
mov ecx, ebx
call fcn.004d5580
test al, al
je 0x4e2806
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004d61c0
test ebx, ebx
je 0x4e2831
push edi
push esi
mov ecx, ebx
call fcn.004d5580
mov bl, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
setne bl
test eax, eax
jne 0x4e2862
push ecx
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.004cbc50
add esp, 4
test al, al
je 0x4e2862
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
setne bl
mov ecx, dword [esp + 0x201c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4e30e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
jne 0x4e3145
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4e3144
push edi
lea edi, [esi + 4]
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4e3040
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4e31cc
mov dword [edi], eax
inc dword [esi + 0x84]
mov eax, dword [0x5ad4c0]
test eax, eax
je 0x4e313b
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4e3100
pop edi
pop ebx
mov ecx, dword [esi + 0x18c]
mov edx, dword [esi + 0x190]
lea eax, [ecx + 1]
and eax, 0x1f
cmp eax, edx
jne 0x4e319b
mov eax, ecx
sub eax, edx
and eax, 0x1f
mov dword [esi + 0x88], eax
je 0x4e319b
push dword [esi + 0x19c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push dword [esi + 0x88]
push dword [esi + 0x198]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esi + 0x19c]
call fcn.004e2f20
mov ecx, dword [esi + 0x18c]
mov eax, dword [ebp + 8]
mov dword [esi + ecx*8 + 0x8c], eax
mov ecx, dword [esi + 0x18c]
mov eax, dword [ebp + 0xc]
mov dword [esi + ecx*8 + 0x90], eax
mov eax, dword [esi + 0x18c]
inc eax
and eax, 0x1f
mov dword [esi + 0x18c], eax
pop esi
mov esp, ebp
pop ebp
ret 8
push str.CreateThread_failed
push 0x5aa7f8
call fcn.004d3010
add esp, 8
mov ecx, 0x5aa7f8
push 2
call fcn.004d3050
push 0x5a6948
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.004f2c1b
int3

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

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x4e32b3
push ebx
push esi
xor esi, esi
mov edx, esi
mov eax, esi
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
and al, 1
cmove ecx, edx
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ebx, eax
xor ebx, 0xedb88320
and dl, 1
cmove ebx, eax
mov ecx, ebx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and bl, 1
cmove eax, ecx
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0x100
jb 0x4e3211
pop esi
pop ebx
pop edi
ret
Function at 0x4e32c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ebx
test esi, esi
je 0x4e32f2
test bl, 7
je 0x4e32ef
movzx edx, byte [ebx]
inc ebx
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5ad760]
sub esi, 1
jne 0x4e32d2
mov dword [ebp - 4], ebx
cmp esi, 8
jb 0x4e3382
push edi
mov edi, esi
shr edi, 3
xor ecx, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x5adb60]
xor edx, dword [eax*4 + 0x5adf60]
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x5aeb60]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5aef60]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x5ad760]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x5ae760]
movzx eax, bl
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 4], ebx
xor edx, dword [eax*4 + 0x5ae360]
movzx eax, cl
xor edx, dword [eax*4 + 0x5af360]
mov ecx, edx
sub edi, 1
jne 0x4e3301
pop edi
test esi, esi
je 0x4e33a0
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5ad760]
sub esi, 1
jne 0x4e3386
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e3720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x10b0]
add edx, 2
push ebx
mov ebx, dword [ecx + 0x10ac]
push esi
mov esi, dword [ecx + 0x10a4]
push edi
mov edi, dword [ecx + 0x10a8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], 4
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor esi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a4], esi
movzx eax, byte [edx - 5]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
xor edi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a8], edi
movzx eax, byte [edx - 4]
xor ebx, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10ac], ebx
movzx eax, byte [edx - 3]
xor esi, dword [ecx + eax*4 + 0xba4]
sub dword [ebp + 8], 1
mov eax, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov dword [ecx + 0x10b0], eax
jne 0x4e3751
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x5a9008]
xor eax, esp
mov dword [esp + 0x1a4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
movups xmm0, xmmword [eax]
mov edi, dword [ebp + 0x14]
lea eax, [esp + 0x100]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x174]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
movups xmmword [esp + 0x174], xmm0
mov word [esp + 0x184], 0
push 0x14
lfence
push eax
mov dword [esp + 0x30], edx
mov word [esp + 0x18e], 0x100
call fcn.004e3de0
mov eax, dword [ebp + 0x1c]
add esp, 0x1c
movaps xmm0, xmmword [esp + 0x100]
dec eax
movaps xmm1, xmmword [esp + 0x110]
mov dword [esp + 0xf8], edi
xor edi, edi
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xc]
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x130], xmm1
mov dword [esp + 0xec], 0x10
mov dword [esp + 0xf0], 0x10
mov dword [esp + 0xf4], esi
mov dword [esp + 0xfc], eax
mov byte [esp + 0xb], 0
mov byte [esp + 0xa], 0
mov dword [esp + 0xc], edi
nop word [eax + eax]
mov esi, dword [esp + edi + 0xe8]
test esi, esi
je 0x4e4511
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x1c]
mov edx, edi
push eax
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x114]
push 0x20
push eax
call fcn.004e3de0
movaps xmm0, xmmword [esp + 0x15c]
add esp, 0x1c
movaps xmmword [esp + 0x100], xmm0
xor eax, eax
movaps xmm0, xmmword [esp + 0x150]
movaps xmmword [esp + 0x110], xmm0
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x120]
movups xmm1, xmmword [esp + eax + 0x100]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x120], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x4e44d0
sub esi, 1
jne 0x4e4473
movaps xmm1, xmmword [esp + 0x130]
movaps xmm0, xmmword [esp + 0x120]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + edi + 0xf4]
add edi, 4
mov dword [esp + 0xc], edi
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
cmp edi, 0xc
jb 0x4e4460
mov ecx, 0x44
lea eax, [esp + 0x160]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e4540
mov ecx, 0x20
lea eax, [esp + 0x120]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e4557
mov ecx, 0x20
lea eax, [esp + 0x100]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e4570
mov ecx, 0x20
lea eax, [esp + 0x140]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4e4587
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4e48b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5a9008]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
mov dword [esp + 0x1c], edi
cmp ecx, 2
jne 0x4e49ac
mov eax, dword [eax + 4]
lea edx, [ecx + 0x1e]
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov ecx, edi
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.004e3de0
lea edx, [esp + 0x3d]
mov dword [esp + 0x24], 1
mov ecx, 2
lea esi, [esp + 0x3d]
sub ecx, edx
xor eax, eax
mov edx, 3
mov dword [esp + 0x28], eax
add esp, 0x1c
mov dword [esp + 0x14], ecx
xor edi, edi
sub edx, esi
mov dword [esp + 0x10], edx
lea esi, [esp + 0x21]
add esi, eax
add ecx, esi
and ecx, 3
shl ecx, 3
movzx edx, byte [esi + 1]
movzx eax, byte [esi - 1]
shl edx, cl
mov ecx, dword [esp + 0xc]
and ecx, 3
shl ecx, 3
shl eax, cl
mov ecx, dword [esp + 8]
xor edx, eax
movzx eax, byte [esi]
and ecx, 3
shl ecx, 3
shl eax, cl
mov ecx, dword [esp + 0x10]
xor edx, eax
movzx eax, byte [esi + 2]
add ecx, esi
and ecx, 3
xor edi, edx
shl ecx, 3
shl eax, cl
mov ecx, dword [esp + 8]
xor edi, eax
mov eax, dword [esp + 0xc]
add ecx, 4
add eax, 4
mov dword [esp + 8], ecx
cmp ecx, 0x21
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
jb 0x4e4933
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x1c]
cmp ecx, 3
jne 0x4e49e2
push 0
push 0
push 0
lea esi, [eax + 4]
push 0
lea eax, [esp + 0x30]
push eax
push 0x20
lea edx, [ecx + 0x1d]
mov ecx, edi
push esi
call fcn.004e3de0
movups xmm0, xmmword [esp + 0x3c]
add esp, 0x1c
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.004ef615
mov esp, ebp
pop ebp
ret
Function at 0x4e6120
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov esi, dword [edi + 0x20]
mov ebx, esi
mov eax, dword [edi + 0x24]
and esi, 0x3f
shld eax, ebx, 3
shl ebx, 3
mov byte [esi + edi + 0x28], 0x80
inc esi
mov dword [ebp - 4], eax
cmp esi, 0x38
je 0x4e6191
jbe 0x4e6176
cmp esi, 0x40
jae 0x4e616d
mov eax, 0x40
lea ecx, [edi + 0x28]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.004f32c0
add esp, 0xc
mov ecx, edi
call fcn.004e5e10
xor esi, esi
mov eax, 0x38
sub eax, esi
push eax
lea eax, [edi + 0x28]
add eax, esi
push 0
push eax
call fcn.004f32c0
mov eax, dword [ebp - 4]
add esp, 0xc
bswap eax
bswap ebx
mov ecx, edi
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ebx
call fcn.004e5e10
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
bswap eax
mov dword [ecx], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e8690
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5ad724], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x4e86a7
call fcn.004e72c0
push 0xf0
push 0
push esi
call fcn.004f32c0
mov dword [esi + 0x100], 0
add esp, 0xc
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov eax, dword [esi + 0xf4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi + 0xf4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [ebp + 8]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
pop ebp
ret
Function at 0x4e9e00
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x50], edx
mov esi, dword [edi + 0x18]
mov ebx, esi
mov eax, dword [edi + 0x1c]
and esi, 0x3f
shld eax, ebx, 3
shl ebx, 3
mov byte [edi + esi + 0x20], 0x80
inc esi
mov dword [ebp - 0x4c], eax
cmp esi, 0x38
je 0x4e9e87
jbe 0x4e9e6c
cmp esi, 0x40
jae 0x4e9e57
mov eax, 0x40
lea ecx, [edi + 0x20]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.004f32c0
add esp, 0xc
lea eax, [edi + 0x20]
mov ecx, edi
push 1
push eax
lea edx, [ebp - 0x48]
call fcn.004e8dd0
add esp, 8
xor esi, esi
mov eax, 0x38
sub eax, esi
push eax
lea eax, [edi + 0x20]
add eax, esi
push 0
push eax
call fcn.004f32c0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
bswap eax
mov dword [edi + 0x58], eax
lea edx, [ebp - 0x48]
lea eax, [edi + 0x20]
mov ecx, edi
push 1
bswap ebx
push eax
mov dword [edi + 0x5c], ebx
call fcn.004e8dd0
mov eax, dword [edi]
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [edi + 0x18], 0
xor ecx, ebp
mov dword [edi + 0x1c], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
pop edi
pop esi
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret