joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ade0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x48adf7
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x48ae22
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48ae1c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x48af3b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x48ae59
cmp byte [edi + 0x18], al
je 0x48ae4d
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0043c8f0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x48ae92
call fcn.0043c8f0
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.0048af50
test eax, eax
jns 0x48af38
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.0048aa70
mov dword [ebp - 4], eax
test eax, eax
jns 0x48aec2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.0048af50
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x48ae69
push 0
push 0
push ebx
mov ecx, esi
call fcn.0048aa70
mov edi, eax
test edi, edi
jns 0x48af00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.0048af50
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x48b250
push 0
push 0
call fcn.005c3209
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x48ae69
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48af38
call fcn.0043c8f0
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48cbb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xa8]
mov eax, dword [esi]
test ebx, ebx
je 0x48cc18
cmp ebx, eax
je 0x48cc0f
test ebp, ebp
je 0x48cd99
test edi, edi
js 0x48cd99
mov ecx, 1
mov dword [esi], ebx
jmp 0x48cc22
test eax, eax
je 0x48cd99
mov ebx, eax
test ebp, ebp
je 0x48cd90
push ebx
call fcn.0048d3f0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x48cc56
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.00491400
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x48cca7
push dword [esp + 0x10]
push ebx
push dword [esi + 4]
call fcn.004919b0
add esp, 0xc
test eax, eax
je 0x48cd99
push edi
push ebp
push dword [esi + 4]
call fcn.00491b50
add esp, 0xc
test eax, eax
je 0x48cd99
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.00491910
add esp, 0xc
test eax, eax
je 0x48cd99
mov edi, dword [esi + 0x10]
jmp 0x48ccc4
cmp edi, 0x80
ja 0x48cd99
push edi
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.005b0670
add esp, 0xc
mov dword [esi + 0x10], edi
cmp edi, 0x80
je 0x48cce4
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x14]
add eax, edi
push 0
push eax
call fcn.005b1170
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x48ccf0
push edx
push ebx
push dword [esi + 8]
call fcn.004919b0
add esp, 0xc
test eax, eax
je 0x48cd99
push ebx
call fcn.0048d3f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.00491b50
add esp, 0x10
test eax, eax
je 0x48cd99
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x48cd35
push dword [esp + 0x10]
push ebx
push dword [esi + 0xc]
call fcn.004919b0
add esp, 0xc
test eax, eax
je 0x48cd99
push ebx
call fcn.0048d3f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.00491b50
add esp, 0x10
test eax, eax
je 0x48cd99
push dword [esi + 8]
push dword [esi + 4]
call fcn.00491cc0
add esp, 8
test eax, eax
je 0x48cd99
mov eax, 1
jmp 0x48cd9b
test ecx, ecx
je 0x48cd77
jmp 0x48cce8
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052e057
add esp, 0x8c
ret
Function at 0x49db00
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, 2
je 0x49db5c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49db4d
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
call fcn.004b54e0
add esp, 0x10
cmp dword [esp + 0x1c], 0xffffffff
je 0x49db4d
push 0x2f
push str.cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.00492a30
add esp, 0x14
xor eax, eax
pop edi
pop ebx
ret
test edi, edi
je 0x49db58
cmp dword [esp + 0x18], 0x20
je 0x49db5c
push 0x35
jmp 0x49db32
push esi
push 0x3a
push str.cryptoececx_meth.c
push 0x24
call fcn.00491370
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49db92
push 0x3c
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00492a30
add esp, 0x14
xor eax, eax
pop esi
pop edi
pop ebx
ret
test ebx, ebx
jne 0x49dba9
push dword [esp + 0x1c]
push edi
push esi
call fcn.005b0670
add esp, 0xc
jmp 0x49dc53
push 0x43
push str.cryptoececx_meth.c
push 0x20
call fcn.004abd50
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x49dbec
push 0x45
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.00492a30
push 0x46
push str.cryptoececx_meth.c
push esi
call fcn.00491160
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
ret
cmp ebx, 2
jne 0x49dc39
push 0x20
push eax
call fcn.004a2810
mov ecx, dword [esi + 0x20]
add esp, 8
test eax, eax
jg 0x49dc26
push 0x4b
push str.cryptoececx_meth.c
push ecx
call fcn.004abd40
push 0x4c
push str.cryptoececx_meth.c
push esi
call fcn.00491160
add esp, 0x18
xor eax, eax
pop esi
pop edi
pop ebx
ret
and byte [ecx], 0xf8
mov eax, dword [esi + 0x20]
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x20]
or byte [eax + 0x1f], 0x40
jmp 0x49dc47
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x20]
push esi
call fcn.004b5c60
add esp, 8
push esi
push 0x40a
push dword [esp + 0x18]
call fcn.004a0860
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
ret
Function at 0x49f930
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0048ce30
add esp, 4
cmp eax, 0x72
jne 0x49fa9c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov edi, eax
push esi
push dword [esp + 0x2c]
and eax, 1
shr edi, 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
lea ebp, [eax + edi]
push ebp
push dword [esp + 0x2c]
call fcn.004bc0e0
push eax
call fcn.0049f6c0
add esp, 0x1c
test eax, eax
je 0x49f9d1
push 0xf8
push str.cryptokdf_tls1_prf.c
push esi
call fcn.00491130
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x49f9d1
mov ecx, dword [esp + 0x18]
push esi
push ebx
push dword [esp + 0x2c]
add ecx, edi
push dword [esp + 0x2c]
push ebp
push ecx
call fcn.0048c700
push eax
call fcn.0049f6c0
add esp, 0x1c
test eax, eax
jne 0x49f9d8
push 0xfd
push str.cryptokdf_tls1_prf.c
push esi
push ebx
call fcn.00491230
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor edi, edi
test esi, esi
je 0x49fa7e
mov edx, dword [esp + 0x28]
cmp esi, 0x40
jb 0x49fa5d
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, esi
cmp edx, eax
ja 0x49f9fd
cmp ecx, ebx
jae 0x49fa5d
mov ecx, esi
mov ebp, ebx
and ecx, 0xffffffc0
mov eax, edx
sub ebp, edx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + edi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + edi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + edi + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edi, ecx
jb 0x49fa10
cmp edi, esi
jae 0x49fa7e
mov ebp, ebx
lea ecx, [edi + edx]
sub ebp, edx
mov edx, esi
sub edx, edi
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x49fa70
push 0x102
push str.cryptokdf_tls1_prf.c
push esi
push ebx
call fcn.00491230
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.0049f6c0
add esp, 0x1c
test eax, eax
je 0x49f9d1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4ab6c0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4ab700
push 0xce
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.00492a30
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x4ab850
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.0052e070
push esi
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
mov eax, edi
sub eax, esi
je 0x4ab898
sub eax, 2
je 0x4ab898
sub eax, 0x15
je 0x4ab898
push 0x288
push str.crypto_bio_b_addr.c
push 0x83
push 0x87
push 0x20
call fcn.00492a30
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.004ab640
cmp eax, 1
jne 0x4ab890
cmp dword [esp + 0x34], 1
xorps xmm0, xmm0
mov eax, dword [esp + 0x3c]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0xc], edi
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], eax
jne 0x4ab8c7
or dword [esp + 8], 1
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
je 0x4ab915
push 0x2b3
push str.crypto_bio_b_addr.c
push 2
push 0x87
push 0x20
call fcn.00492a30
push edi
call fcn.004abd10
push eax
push 1
call fcn.00491f80
add esp, 0x20
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x4ade40
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.004ce200
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005b2f30
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4adedf
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00492a30
push 0x64eb5c
push esi
push 0x64eb60
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.00491f80
call fcn.005b4bb2
mov edx, 2
mov ecx, dword [eax]
xor eax, eax
cmp ecx, 2
setne al
lea eax, [eax*2 + 0x4d]
push eax
push str.crypto_bio_bss_file.c
mov eax, 0x80
cmovne eax, edx
push eax
push 0x6d
push 0x20
call fcn.00492a30
add esp, 0x40
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x64eb0c
call fcn.004990b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4adf01
push edi
call fcn.005c0386
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00498ca0
push edi
push ebx
push 0x6a
push esi
call fcn.00498cd0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4b5c60
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0x11c
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x124]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [esp + 0xdc], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [esp + 0xcc], xmm0
mov byte [esp + 0xcc], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [esp + 0xeb], al
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004b8780
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x84]
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xd4], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xd8], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0xdc], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x108], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0xe0], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0xe4], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xe8], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xec], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x118], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xf0], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xf4], eax
lea eax, [edx + ecx]
sub edx, ecx
mov dword [esp + 0xf8], eax
mov dword [esp + 0x120], edx
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004b63e0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xe0]
push eax
push eax
call fcn.004b6660
lea eax, [esp + 0xe8]
push eax
push esi
call fcn.004b7eb0
mov ecx, dword [esp + 0x140]
add esp, 0x24
pop esi
xor ecx, esp
call fcn.0052e057
add esp, 0x11c
ret
Function at 0x4dbc40
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x80
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x7c], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dbcbc
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4dbcb0
mov eax, 8
call fcn.0052e070
movsd xmm0, qword [0x66b418]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004a2790
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dbd20
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4dbd14
mov eax, 8
call fcn.0052e070
movsd xmm0, qword [0x66b418]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004a2790
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x6c04d0], 0
je 0x4dbd69
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4dbd3f
mov dword [0x6c04d0], eax
jmp 0x4dbd69
mov eax, 8
call fcn.0052e070
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movsd qword [esp], xmm0
push 8
push eax
call fcn.004a2790
add esp, 0x10
cmp dword [0x6c04d0], 0
jne 0x4dbd94
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov eax, 8
call fcn.0052e070
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 4
push eax
call fcn.004a2790
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.0052e070
movsd xmm0, qword [0x622cc0]
lea eax, [esp + 0x20]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.004a2790
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
mov eax, 8
call fcn.0052e070
movsd xmm0, qword [0x622cc0]
lea eax, [esp + 0x14]
movsd qword [esp], xmm0
push 4
push eax
call fcn.004a2790
mov ecx, dword [esp + 0x8c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x4e3bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0052e070
mov eax, dword [0x6c0924]
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 0x4e3d85
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 0x4e3d15
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.004e35f0
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 0x4e3cb0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x4e3d6c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
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 + 2], bl
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 byte [ebp + 6], dl
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.0052e057
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.0052e057
add esp, 0x28
ret
Function at 0x4e79e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0052e070
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 + 0x14], edi
test edi, edi
je 0x4e7a29
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x4e7a29
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 + 0x14], edi
jne 0x4e7a10
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + 0xc]
movzx eax, byte [ecx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x4e7af8
mov edi, ecx
nop dword [eax + eax]
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], 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 0x4e7ad6
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x4e7ac0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x4e7a60
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x4e7b66
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ecx
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 0x4e7b47
push edx
call fcn.004e7bb0
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 0x4e7b54
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4e8180
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0052e070
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x4e819f
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 0x4e8269
jb 0x4e81c4
test eax, eax
jne 0x4e8269
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [ebp + 0x16c]
mov dword [ebp + 0x34], ecx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x30], eax
test edi, edi
je 0x4e8215
nop dword [eax]
test esi, esi
je 0x4e81fa
mov al, byte [ebx]
lea ecx, [ebp + 0x40]
xor byte [ecx + edi], al
inc ebx
inc edi
mov dword [esp + 0x18], ecx
dec esi
and edi, 0xf
jne 0x4e81e0
jmp 0x4e8202
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x4e825b
lea eax, [ebp + 0x60]
push eax
push ecx
call fcn.004e95e0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x4e8219
mov dword [esp + 0x18], ecx
mov eax, esi
lea edx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x4e823b
push eax
push ebx
push edx
push ecx
call fcn.004e93b0
add ebx, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x4e825b
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x4e825b
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x4e8250
mov dword [ebp + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret