joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4445e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d12dd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x8d6bb8], 0x28
jl 0x444638
push 0x8d6bbc
call fcn.00448ff0
mov ecx, dword [0x8d6bb4]
add esp, 4
test ecx, ecx
je 0x44462a
mov eax, dword [ecx]
mov dword [0x8d6bb4], eax
mov dword [0x8d6bbc], 1
test ecx, ecx
jne 0x44464f
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x444675
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push ecx
call fcn.00444980
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.005b06c0
int3

Function at 0x444750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dcdb5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x8d6bb8], 0x28
jl 0x4447ac
push 0x8d6bbc
call fcn.00448ff0
mov esi, dword [0x8d6bb4]
add esp, 4
test esi, esi
je 0x44479e
mov eax, dword [esi]
mov dword [0x8d6bb4], eax
mov dword [0x8d6bbc], 1
test esi, esi
jne 0x4447c3
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x444801
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push ecx
mov ecx, esi
call fcn.00444980
mov byte [ebp - 4], 1
mov ecx, esi
push edi
mov dword [esi], vtable.CVolObjectArray.0
call fcn.004448f0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.005b06c0
int3

Function at 0x444ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d235d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x8d6bb8], 0xc
jl 0x444cfb
push 0x8d6bbc
call fcn.00448ff0
mov ecx, dword [0x8d6bb4]
add esp, 4
test ecx, ecx
je 0x444ced
mov eax, dword [ecx]
mov dword [0x8d6bb4], eax
mov dword [0x8d6bbc], 1
test ecx, ecx
jne 0x444d12
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x444d6f
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolUserApp.0
mov dword [0x8d6be0], ecx
mov byte [ebp - 4], 2
mov dword [ecx], vtable.CVolUserApp.0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.005b06c0
int3
Function at 0x445030
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd05b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x8d6ba0], 0x8b7c94
mov dword [0x8d6ba8], 0x8b7e94
push 0
mov dword [ebp - 0x10], 0x8d6ba0
mov dword [0x8d6bbc], 1
mov dword [0x8d6bb8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4452de
lea eax, [ecx + 0x400000]
mov dword [0x8d6bb4], ecx
mov dword [0x8d6bb0], eax
mov edx, 0x1555
mov eax, dword [0x8d6bb8]
mov dword [0x8d6bac], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x8d6bb8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x8d6bb8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x8d6bb8]
add ecx, eax
sub edx, 1
jne 0x4450c4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0x8d6bc0
mov dword [ebp - 0x18], 0x8d6bc0
mov dword [ebp - 0x1c], 0x8d6bc0
mov dword [0x8d6bc0], 0x6cc640
mov dword [0x8d6bc4], edx
mov dword [0x8d6bc8], edx
mov byte [ebp - 4], 1
mov dword [0x8d6bc0], 0x6cc5cc
mov dword [0x8d6bcc], edx
mov dword [0x8d6bd4], edx
mov dword [0x8d6bd0], edx
mov dword [0x8d6bd8], 0x40
mov byte [ebp - 4], 2
mov dword [0x8d6bd8], 0x80
mov byte [ebp - 4], 5
mov dword [0x8d6bdc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x8d6bf0
mov dword [ebp - 0x1c], 0x8d6bf0
call esi
mov byte [ebp - 4], 7
mov dword [0x8d6c08], 0
mov byte [ebp - 4], 8
push 0x8d6c14
mov dword [ebp - 0x1c], 0x8d6c14
call esi
mov byte [ebp - 4], 9
mov dword [0x8d6c2c], 0x3e8
mov dword [ebp - 0x18], 0x8d6c40
mov dword [ebp - 0x14], 0x8d6c40
mov dword [0x8d6c40], 0x6cc640
mov dword [0x8d6c44], 0
mov dword [0x8d6c48], 0
mov byte [ebp - 4], 0xa
mov dword [0x8d6c40], 0x6cc5cc
mov dword [0x8d6c4c], 0
mov dword [0x8d6c54], 0
mov dword [0x8d6c50], 0
mov dword [0x8d6c58], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x8d6c58], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov dword [0x8d6c34], 0x3e80
mov dword [0x8d6c38], 1
mov dword [0x8d6c3c], 0
lea eax, [eax*2 + 2]
mov dword [0x8d6c30], eax
mov byte [ebp - 4], 0xe
push 0x8d6c5c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x8d6c74
call fcn.00444980
mov byte [ebp - 4], 0x10
mov dword [0x8d6be0], 0
mov dword [0x8d6c9c], 0
movsd xmm0, qword [0x8bd0c8]
movsd qword [0x8d6be8], xmm0
xorps xmm0, xmm0
mov dword [0x8d6ca0], 0
mov dword [0x8d6ca4], 0
mov dword [0x8d6ca8], 0
mov dword [0x8d6be4], 0
movq qword [0x8d6c0c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x8d6ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.005b06c0
int3
Function at 0x445e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x445e4f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x445f25
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x445f25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x445f1c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x445f00
cmp edi, 1
jne 0x445ec5
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x445f17
cmp edi, 2
jne 0x445ed8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x445f17
cmp edi, 4
jne 0x445ee9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x445f17
cmp edi, 8
jne 0x445f00
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x445f17
test edi, edi
jle 0x445f17
push edi
mov ecx, esi
call fcn.00448850
push edi
push ebx
push eax
call fcn.005a8b50
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x446250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x8d6bb8]
jg 0x44628b
push 0x8d6bbc
call fcn.00448ff0
mov ecx, dword [0x8d6bb4]
add esp, 4
test ecx, ecx
je 0x44627d
mov eax, dword [ecx]
mov dword [0x8d6bb4], eax
mov dword [0x8d6bbc], 1
test ecx, ecx
jne 0x4462a1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4462a8
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.005b06c0
int3

Function at 0x446310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x8d6bac]
jb 0x446384
cmp esi, dword [0x8d6bb0]
jae 0x446384
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x8d6bb8]
jle 0x446399
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x44639d
push dword [0x8d6bb8]
push esi
push edi
call fcn.005a8b50
push 0x8d6bbc
call fcn.00448ff0
mov eax, dword [0x8d6bb4]
add esp, 0x10
mov dword [esi], eax
mov dword [0x8d6bb4], esi
mov esi, edi
mov dword [0x8d6bbc], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x44637d
push 0xffffffffffffffff
call fcn.005b06c0
int3
Function at 0x447280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd365
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x44743e
cmp word [esi], 0
je 0x44743e
lea ecx, [ebp - 0x38]
call fcn.00402730
mov dword [ebp - 4], 0
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x447417
cmp word [esi + 2], 0
je 0x447328
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4472e4
sub ecx, edi
mov eax, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x447328
cmp word [esi + ecx*2 - 4], 0x3a
je 0x447328
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00449bd0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x447325
cmp dword [ebp - 0x14], esi
je 0x447417
mov esi, dword [ebp - 0x1c]
movzx eax, word [esi]
movzx eax, ax
test ax, ax
je 0x447417
cmp eax, 0x5c
jne 0x447344
cmp word [esi + 2], 0
je 0x447417
cmp word [esi + 2], 0x3a
jne 0x447368
movzx eax, word [esi + 4]
test ax, ax
je 0x447417
cmp eax, 0x5c
jne 0x447368
cmp word [esi + 6], 0
je 0x447417
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x447417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x447417
cmp eax, 3
jne 0x447413
push 0x5c
push esi
call fcn.005a8a9d
mov edx, eax
add esp, 8
test edx, edx
je 0x447413
cmp word [edx + 2], 0
jne 0x4473c5
sub edx, 2
cmp edx, esi
jb 0x447413
cmp word [edx], 0x5c
je 0x4473c5
sub edx, 2
cmp edx, esi
jae 0x4473b4
xor esi, esi
jmp 0x44741c
lea ecx, [ebp - 0x64]
call fcn.00402730
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.00449bd0
lea ecx, [ebp - 0x64]
call fcn.00449830
mov ecx, eax
call fcn.00447280
test eax, eax
je 0x447407
push 0
push esi
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004027f0
jmp 0x44741c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004027f0
xor esi, esi
jmp 0x44741c
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004027f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x447460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d172d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x8d0d94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x447531
cmp word [edx], 0
je 0x447531
lea ecx, [ebp - 0x38]
call fcn.00402730
mov dword [ebp - 4], 0
cmp word [edx], 0
je 0x447500
cmp word [edx + 2], 0
je 0x447500
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4474c0
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x447500
cmp word [edx + ecx*2 - 4], 0x3a
je 0x447500
lea eax, [ecx - 1]
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00449bd0
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x447500
cmp dword [ebp - 0x14], 0
mov edx, 0x6cb22c
cmovne edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004027f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 8]
push eax
push 1
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44757c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp + 8]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x44922e
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4757c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4757e7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4757d6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x4dd9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005a7170
mov eax, dword [0x8d0d94]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x4ddbb5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x4ddb45
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.004dd420
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4ddae0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x4ddb9c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 6], dl
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005a6645
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005a6645
add esp, 0x28
ret
Function at 0x4e1830
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005a7170
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
je 0x4e1879
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x4e1879
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x10], edi
jne 0x4e1860
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
cmp esi, 0x10
jb 0x4e194a
nop dword [eax]
mov eax, esi
mov edx, ecx
shr eax, 4
xor edi, edi
add ecx, eax
cmp ecx, eax
cmovae edi, ecx
neg edx
mov dword [esp + 0x24], edi
cmp ecx, eax
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
cmovae edx, eax
push edx
push ebx
push ebp
mov dword [esp + 0x28], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x4e1926
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x4e1910
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, edx
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x4e18b0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
test esi, esi
je 0x4e19b8
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push edx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x4e1999
push edx
call fcn.004e1a00
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x4e19a6
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4e1ff0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005a7170
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x4e200f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x4e20df
jb 0x4e2034
test eax, eax
jne 0x4e20df
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x4e2080
nop
test esi, esi
je 0x4e20d1
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x4e2050
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call fcn.004e3690
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x4e2083
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x4e20a5
push eax
push edi
push ecx
push ebx
call fcn.004e3460
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x4e20cd
mov ecx, esi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x4e20b0
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret