joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466b44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x466bc7
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x466bc7
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x466bc7
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x466bc7
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x466bc7
xor edx, edx
push ebp
push 0x466bbd
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0041ae48
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466bc7
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x466cc4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x466cd7
add ebx, 0x20
test byte [esp], 2
je 0x466ce0
add ebx, 2
test byte [esp], 4
je 0x466ce7
inc ebx
test byte [esp], 8
je 0x466cf0
add ebx, 4
test byte [esp], 0x10
je 0x466cfc
add ebx, 0x100
test byte [esp], 0x20
je 0x466d08
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.00404664
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret
Function at 0x467c4c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404654
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x467dd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x467df0
call fcn.004047a8
test eax, eax
jne 0x467c97
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x467dfc
call fcn.004044b0
mov eax, esi
mov edx, 0x3c
call fcn.00466bfc
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402784
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402784
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402784
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402784
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402784
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402784
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404464
push eax
mov eax, dword [ebp - 4]
call fcn.00404664
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x467d8d
mov eax, edi
mov edx, dword [esi + 4]
call fcn.0040439c
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.0040439c
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.0040439c
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.0040439c
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.0040439c
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.0040439c
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.004027a4
mov eax, dword [esi + 0x2c]
call fcn.004027a4
mov eax, dword [esi + 0x24]
call fcn.004027a4
mov eax, dword [esi + 0x1c]
call fcn.004027a4
mov eax, dword [esi + 0x10]
call fcn.004027a4
mov eax, dword [esi + 4]
call fcn.004027a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467dda
lea eax, [ebp - 4]
call fcn.004041a4
ret

Function at 0x467ff4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x46800d
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x46801a
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x468038
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46805c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4680a3
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404408
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404408
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468404
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x468421
add esp, 0xfffffff0
call fcn.004036d4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x468520
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x46846e
mov eax, esi
call fcn.00404664
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x46845f
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x46846e
push 0x20
mov eax, esi
call fcn.00404664
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x498a68]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404664
push eax
call sub.kernel32.dll_CreateFileA
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.0041afd4
cmp dword [ebx + 4], 0
jge 0x4684f1
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00408e58
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040b7d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x49e68c]
mov dl, 1
mov eax, dword [0x415bac]
call fcn.0040c0dc
call fcn.00403b3c
cmp byte [ebp + 8], 0
je 0x468505
push edi
mov eax, esi
call fcn.00404664
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468527
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004041c8
ret
Function at 0x468dc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x468edd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.00468c88
pop ecx
test al, al
je 0x468eb8
mov eax, dword [ebp + 8]
push eax
call fcn.00468acc
pop ecx
test al, al
jne 0x468eb8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x468eb8
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.00468b0c
pop ecx
test al, al
je 0x468eb8
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404414
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040882c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x468e83
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x468eb8
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.00468b0c
pop ecx
test al, al
je 0x468eb8
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404414
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040882c
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.00468acc
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468ee4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041c8
ret
Function at 0x46e1ac
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e300
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x49fc68]
call fcn.00404664
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46e273
mov dl, 1
mov eax, dword [0x4168e0]
call fcn.00403380
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46e263
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x46e30c
mov edx, 0x46e30c
mov eax, dword [0x49f668]
call fcn.00466b44
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e26a
mov eax, dword [ebp - 0x10]
call fcn.004033b0
ret
push 1
push dword [0x49fc68]
push 0x46e31c
lea edx, [ebp - 0x1c]
mov eax, dword [0x49e4e0]
mov eax, dword [eax]
call fcn.0045c274
push dword [ebp - 0x1c]
push 0x46e328
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404524
mov eax, dword [ebp - 0x18]
call fcn.00404664
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x46e2e0
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x46e2e5
call fcn.00466bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e307
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004041c8
ret

Function at 0x46e3d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x46e4bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x49e4e0]
mov eax, dword [eax]
call fcn.0045c274
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00408da4
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040ccc4
lea eax, [ebp - 0x144]
mov edx, 0x46e4d0
call fcn.0040446c
mov eax, dword [ebp - 0x144]
call fcn.00404664
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46e49d
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404414
mov eax, dword [ebp - 0x150]
call fcn.00408d0c
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x46e465
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e4c2
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.004041c8
ret
Function at 0x473dfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x473e26
cmp dword [ebx + 0x64], 0
jne 0x473e26
cmp dword [ebx + 0x6c], 0
jne 0x473e26
mov esi, edi
jmp 0x473eb4
cmp esi, 0xffffffff
jne 0x473e31
dec esi
jmp 0x473eb4
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x473eb4
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.00473460
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x473e7c
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x473e81
mov word [edx], 0
dec eax
test eax, eax
jne 0x473e62
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x473ea8
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x473ead
mov word [edx], 0
dec eax
test eax, eax
jne 0x473e8e
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x473f12
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00473b84
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x473efd
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x473f12
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x473e06
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x478a04
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4a0da8
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x478a26
shr eax, 1
xor eax, 0xedb88320
jmp 0x478a28
shr eax, 1
dec edx
jne 0x478a14
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x478a0d
mov byte [0x4a11a8], 1
pop esi
pop ebx
ret

Function at 0x478a44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4a11a8], 0
jne 0x478a5b
call fcn.00478a04
mov eax, edi
dec eax
test eax, eax
jl 0x478a84
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a0da8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x478a65
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x47b5ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x47b5dd
dec al
je 0x47b619
dec al
je 0x47b65d
dec al
je 0x47b6c8
jmp 0x47b752
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x47b752
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47b5ed
jmp 0x47b752
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47b752
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47b629
jmp 0x47b752
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47b752
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x47b68b
xor ebp, ebp
jmp 0x47b69c
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x47b6a5
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47b66d
jmp 0x47b752
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47b752
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47b720
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00478a8c
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47b6dc
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4864c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x4864ea
cmp dword [ebx + 0x64], 0
jne 0x4864ea
cmp dword [ebx + 0x6c], 0
jne 0x4864ea
mov edi, esi
jmp 0x486571
cmp edi, 0xffffffff
jne 0x4864f2
dec edi
jmp 0x486571
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x486571
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004858bc
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48653f
mov cx, word [esp]
sub cx, si
jmp 0x486541
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x486528
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x486567
mov cx, word [esp]
sub cx, si
jmp 0x486569
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x486550
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4865ce
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0048625c
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4865b9
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4865ce
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4864ca
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48c824
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4a1280
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x48c846
shr eax, 1
xor eax, 0xedb88320
jmp 0x48c848
shr eax, 1
dec edx
jne 0x48c834
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x48c82d
mov byte [0x4a1680], 1
pop esi
pop ebx
ret

Function at 0x48c864
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4a1680], 0
jne 0x48c87b
call fcn.0048c824
mov eax, edi
dec eax
test eax, eax
jl 0x48c8a4
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a1280]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x48c885
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48ee40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x48ee71
dec al
je 0x48eead
dec al
je 0x48eef1
dec al
je 0x48ef5c
jmp 0x48efe6
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48efe6
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48ee81
jmp 0x48efe6
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48efe6
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48eebd
jmp 0x48efe6
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48efe6
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x48ef1f
xor ebp, ebp
jmp 0x48ef30
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x48ef39
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48ef01
jmp 0x48efe6
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48efe6
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x48efb4
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0048c8ac
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48ef70
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret