joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a48b4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov dl, byte [eax + 8]
cmp dl, 3
je 0x4a4a41
xor esi, esi
xor edi, edi
mov ebx, dword [eax]
test dl, 2
mov dword [esp + 4], ebx
je 0x4a4905
movzx ebp, byte [ecx]
xor edx, edx
mov dl, byte [eax + 9]
mov ebx, edx
sub ebx, ebp
mov dword [esp + esi*4 + 0xc], ebx
inc esi
movzx ebp, byte [ecx + 1]
mov ebx, edx
sub ebx, ebp
mov dword [esp + esi*4 + 0xc], ebx
xor ebx, ebx
inc esi
mov bl, byte [ecx + 2]
sub edx, ebx
mov dword [esp + esi*4 + 0xc], edx
inc esi
jmp 0x4a4916
xor edx, edx
xor ebx, ebx
mov bl, byte [ecx + 3]
mov dl, byte [eax + 9]
sub edx, ebx
mov dword [esp + esi*4 + 0xc], edx
inc esi
test byte [eax + 8], 4
je 0x4a492c
xor edx, edx
mov dl, byte [eax + 9]
movzx ecx, byte [ecx + 4]
sub edx, ecx
mov dword [esp + esi*4 + 0xc], edx
inc esi
xor edx, edx
lea ecx, [esp + 0xc]
cmp esi, edx
jle 0x4a494e
mov ebx, dword [ecx]
test ebx, ebx
jg 0x4a4942
xor ebx, ebx
mov dword [ecx], ebx
jmp 0x4a4946
mov di, 1
inc edx
add ecx, 4
cmp esi, edx
jg 0x4a4936
test di, di
je 0x4a4a41
mov dl, byte [eax + 9]
sub dl, 2
je 0x4a4977
sub dl, 2
je 0x4a4997
sub dl, 4
je 0x4a49d1
sub dl, 8
je 0x4a49f5
jmp 0x4a4a41
mov ecx, dword [eax + 4]
mov eax, dword [esp]
xor edx, edx
cmp ecx, edx
jbe 0x4a4a41
shr byte [eax], 1
and byte [eax], 0x55
inc eax
inc edx
cmp ecx, edx
ja 0x4a4987
jmp 0x4a4a41
mov edx, dword [esp]
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, 0xf0
sar eax, cl
and al, 0xf0
mov ecx, dword [esp + 0xc]
mov ebx, 0xf
sar ebx, cl
or al, bl
xor ebx, ebx
cmp esi, ebx
jbe 0x4a4a41
mov ecx, dword [esp + 0xc]
inc ebx
shr byte [edx], cl
and byte [edx], al
inc edx
cmp esi, ebx
ja 0x4a49c1
jmp 0x4a4a41
mov edi, dword [esp]
mov ebp, dword [esp + 4]
imul ebp, esi
xor ebx, ebx
cmp ebp, ebx
jbe 0x4a4a41
mov eax, ebx
xor edx, edx
div esi
mov ecx, dword [esp + edx*4 + 0xc]
shr byte [edi], cl
inc edi
inc ebx
cmp ebp, ebx
ja 0x4a49e1
jmp 0x4a4a41
mov ebx, dword [esp]
mov eax, esi
imul dword [esp + 4]
mov dword [esp + 8], eax
xor ebp, ebp
mov eax, dword [esp + 8]
cmp ebp, eax
jae 0x4a4a41
movzx edi, byte [ebx]
shl edi, 8
xor eax, eax
mov al, byte [ebx + 1]
xor edx, edx
add di, ax
mov eax, ebp
div esi
inc ebp
mov ecx, dword [esp + edx*4 + 0xc]
shr di, cl
movzx eax, di
sar eax, 8
mov edx, edi
mov byte [ebx], al
inc ebx
and dl, 0xff
mov byte [ebx], dl
inc ebx
mov ecx, dword [esp + 8]
cmp ebp, ecx
jb 0x4a4a0c
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c0f60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c11c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c0fc3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c0a78
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040fa14
cmp al, 1
jne 0x4c0fc3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c0d40
test al, al
je 0x4c114f
cmp dword [ebp - 8], 0
jge 0x4c0fe1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c0a78
mov eax, dword [ebp - 0x210]
call fcn.00405338
cmp ebx, eax
jge 0x4c102b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c0a78
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5fe364]
and eax, 0xff
bt dword [edx], eax
jae 0x4c102b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c103f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c0f3c
cmp ebx, dword [ebp - 8]
je 0x4c1141
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c106b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404324
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f2690]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c112e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404324
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f2690]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00457974
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404324
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f2690]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00457974
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1135
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c11a2
cmp dword [ebp - 8], 0
jge 0x4c115a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c0a78
mov eax, dword [ebp - 0x218]
call fcn.00405338
cmp eax, dword [ebp - 8]
jg 0x4c1194
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c0a78
mov eax, dword [ebp - 0x21c]
call fcn.00405338
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c0f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c11c7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00405070
ret
Function at 0x4d04bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d056f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x105]
push eax
push ebx
push 0x4d0580
mov eax, edi
call fcn.00405538
push eax
call sub.kernel32.dll_GetTempFileNameA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
call fcn.0040b204
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x110]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0040b2c8
inc ebx
mov eax, dword [esi]
call fcn.0040af08
test al, al
jne 0x4d04ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0576
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00405070
ret
Function at 0x513e2c
Capabilities:
Open clipboard

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebx + 0x30]
call fcn.00457974
push eax
call sub.user32.dll_OpenClipboard
push 0x513ecc
call sub.user32.dll_RegisterClipboardFormatA
mov esi, eax
call sub.user32.dll_CloseClipboard
push 3
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x513e94
push 2
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x513e94
mov eax, dword [0x5fdf0c]
movzx eax, word [eax]
push eax
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x513e94
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x513e94
movzx eax, si
push eax
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
jne 0x513e94
xor eax, eax
jmp 0x513e96
mov al, 1
push eax
mov edi, dword [ebx + 0x25d]
cmp dword [edi + 0x14c], 0
je 0x513eaf
cmp dword [edi + 0x150], 0
jne 0x513eb3
xor eax, eax
jmp 0x513eb5
mov al, 1
cmp al, 1
sete cl
mov edx, ebx
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x12c]
pop edi
pop esi
pop ebx
ret

Function at 0x521194
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x5211e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5211cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5211bc
jmp 0x5211e5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5211cd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x535098
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
test dl, dl
je 0x5350ac
add esp, 0xfffffff0
call fcn.00404494
mov ebx, edx
mov esi, eax
mov byte [esi + 0x479], 1
xor edx, edx
mov eax, esi
call fcn.0051b994
call fcn.0053422c
push esi
push 0x53518c
call fcn.00467e38
mov dword [esi + 0x474], eax
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.004038a8
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [ebp - 0xa], 0x31
jne 0x535106
mov byte [esi + 0x470], 1
jmp 0x53510d
mov byte [esi + 0x470], 0
mov edx, dword [0x53514c]
mov eax, esi
call fcn.00535270
mov edx, dword [0x535150]
mov eax, esi
call fcn.00535304
mov byte [esi + 0x478], 0
mov eax, esi
test bl, bl
je 0x535143
call fcn.004044ec
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x537814
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x537893
mov eax, ebx
and eax, 0xff
bt dword [0x5f5e98], eax
jae 0x53786d
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00537808
cmp byte [ebp - 1], 0
je 0x53788e
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00537808
jmp 0x53788e
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00537808
cmp byte [ebp - 1], 0
je 0x53788e
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00537808
dec si
jne 0x537837
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x537898
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x5f5e98], edx
jae 0x5378c7
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00537808
pop ebx
ret
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.00537808
pop ebx
ret
Function at 0x539e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov ebx, eax
mov edi, esp
mov edx, 1
mov eax, dword [ebx + 0x10]
call fcn.0042b39c
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.0042b36c
mov edx, esi
mov eax, dword [ebx + 0x10]
call fcn.0042b270
dec dword [edi + 8]
dec dword [edi + 0xc]
mov edx, dword [edi]
add edx, 3
mov ecx, dword [edi + 4]
mov eax, ebx
call fcn.0042bd28
mov edx, dword [edi + 8]
sub edx, 2
mov ecx, dword [edi + 4]
mov eax, ebx
call fcn.0042bcc8
mov ecx, dword [edi + 4]
add ecx, 3
mov edx, dword [edi]
mov eax, ebx
call fcn.0042bd28
mov ecx, dword [edi + 0xc]
sub ecx, 2
mov edx, dword [edi]
mov eax, ebx
call fcn.0042bcc8
mov ecx, dword [edi + 4]
add ecx, 3
mov edx, dword [edi + 8]
mov eax, ebx
call fcn.0042bd28
mov ecx, dword [edi + 0xc]
sub ecx, 2
mov edx, dword [edi + 8]
mov eax, ebx
call fcn.0042bcc8
mov edx, dword [edi]
add edx, 3
mov ecx, dword [edi + 0xc]
mov eax, ebx
call fcn.0042bd28
mov edx, dword [edi + 8]
sub edx, 2
mov ecx, dword [edi + 0xc]
mov eax, ebx
call fcn.0042bcc8
push esi
mov byte [esp + 0x14], 0x1e
mov byte [esp + 0x15], 0x50
mov byte [esp + 0x16], 0xc8
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0xc8
mov byte [esp + 0x19], 0x3c
mov byte [esp + 0x1a], 0xc8
mov byte [esp + 0x1b], 0x3c
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x14]
push eax
push 8
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, ebx
call fcn.00539d9c
push esi
mov byte [esp + 0x14], 0xc8
mov byte [esp + 0x15], 0x50
mov byte [esp + 0x16], 0x1e
mov byte [esp + 0x17], 0x3c
mov byte [esp + 0x18], 0xc8
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0x3c
mov byte [esp + 0x1c], 0xc8
lea eax, [esp + 0x14]
push eax
push 8
mov edx, dword [edi + 8]
sub edx, 2
mov ecx, dword [edi + 4]
mov eax, ebx
call fcn.00539d9c
push esi
mov byte [esp + 0x14], 0xc8
mov byte [esp + 0x15], 0x3c
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0xc8
mov byte [esp + 0x19], 0x3c
mov byte [esp + 0x1a], 0x1e
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0xc8
lea eax, [esp + 0x14]
push eax
push 8
mov ecx, dword [edi + 0xc]
sub ecx, 2
mov edx, dword [edi]
mov eax, ebx
call fcn.00539d9c
push esi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0x3c
mov byte [esp + 0x16], 0xc8
mov byte [esp + 0x17], 0x3c
mov byte [esp + 0x18], 0xc8
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0xc8
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x1e
lea eax, [esp + 0x14]
push eax
push 8
mov ecx, dword [edi + 0xc]
sub ecx, 2
mov edx, dword [edi + 8]
sub edx, 2
mov eax, ebx
call fcn.00539d9c
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x53dc90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x53de66
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x53de4d
mov eax, dword [edi + 0x30]
call fcn.00405338
test eax, eax
jne 0x53dce6
mov eax, dword [edi + 0x34]
call fcn.00405338
test eax, eax
jne 0x53dce6
mov eax, edi
call fcn.0053df04
jmp 0x53de4d
cmp dword [edi + 0xa0], 0
jne 0x53dd1d
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.0040b7e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6010f8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x53dd54
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.0040b7e0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6010f8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0053df44
mov ebx, eax
test bl, bl
jne 0x53de02
mov eax, dword [edi + 0x30]
call fcn.00405338
test eax, eax
jne 0x53dd8c
mov eax, dword [edi + 0xc0]
call fcn.00405338
test eax, eax
je 0x53de02
mov eax, dword [edi + 0xc0]
call fcn.00405338
test eax, eax
je 0x53ddae
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.0040b7e0
jmp 0x53ddda
push dword [edi + 0x30]
push 0x53de80
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.004053f8
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.0040b7e0
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x53de02
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0053df44
mov ebx, eax
test bl, bl
jne 0x53de0f
mov eax, edi
call fcn.0053df04
jmp 0x53de4d
mov eax, dword [edi + 0x58]
test eax, eax
je 0x53de1e
mov dword [edi + 0xa8], eax
jmp 0x53de28
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.0053dfbc
test al, al
je 0x53de4d
mov eax, edi
mov si, 0xffee
call fcn.00404324
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0053e068
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53de6d
lea eax, [ebp - 0x108]
call fcn.0040504c
ret
Function at 0x54bd84
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov ebx, 0x5f5f58
lea edi, [esp + 0xc]
test esi, esi
je 0x54beb3
mov dword [esp + 8], eax
mov eax, dword [esp]
mov dword [edi], eax
mov eax, esi
mov ecx, 3
xor edx, edx
div ecx
lea edx, [eax + eax*2]
mov eax, dword [esp + 8]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jae 0x54be36
mov eax, dword [esp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + 1]
or eax, ecx
shl eax, 8
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + 2]
or eax, ecx
add dword [esp + 8], 3
mov ecx, eax
and ecx, 0x3f
mov cl, byte [ebx + ecx]
mov ebp, dword [edi]
mov byte [ebp + 3], cl
shr eax, 6
mov ecx, eax
and ecx, 0x3f
mov cl, byte [ebx + ecx]
mov ebp, dword [edi]
mov byte [ebp + 2], cl
shr eax, 6
mov ecx, eax
and ecx, 0x3f
mov cl, byte [ebx + ecx]
mov ebp, dword [edi]
mov byte [ebp + 1], cl
shr eax, 6
mov al, byte [ebx + eax]
mov ecx, dword [edi]
mov byte [ecx], al
add dword [edi], 4
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jb 0x54bdcc
sub esi, edx
dec esi
je 0x54be40
dec esi
je 0x54be6f
jmp 0x54beb3
mov eax, dword [esp + 8]
movzx eax, byte [eax]
shl eax, 4
mov edx, eax
and edx, 0x3f
mov dl, byte [ebx + edx]
mov ecx, dword [edi]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [ebx + eax]
mov edx, dword [edi]
mov byte [edx], al
mov eax, dword [edi]
mov byte [eax + 2], 0x3d
mov eax, dword [edi]
mov byte [eax + 3], 0x3d
jmp 0x54beb3
mov eax, dword [esp + 8]
movzx eax, byte [eax]
shl eax, 8
mov edx, dword [esp + 8]
movzx edx, byte [edx + 1]
or eax, edx
shl eax, 2
mov edx, eax
and edx, 0x3f
mov dl, byte [ebx + edx]
mov ecx, dword [edi]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
mov dl, byte [ebx + edx]
mov ecx, dword [edi]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [ebx + eax]
mov edx, dword [edi]
mov byte [edx], al
mov eax, dword [edi]
mov byte [eax + 3], 0x3d
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54c540
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x158
call fcn.004038a8
cmp dword [ebp - 4], 0
je 0x54c5f4
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
mov ax, word [ebp + 8]
mov edx, dword [ebp - 4]
mov dx, word [edx + 8]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x54c5b0
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.0054c4ac
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xa]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.00402f58
jmp 0x54c5c0
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.00402f58
mov dx, word [ebp - 6]
dec edx
test dx, dx
jb 0x54c5da
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x54c5d1
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 0xc]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x54c60c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x54c68e
mov dx, word [eax + 8]
mov word [esp + 4], dx
mov esi, eax
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
movzx edx, word [esp + 4]
dec edx
test edx, edx
jl 0x54c64b
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x54c644
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
movzx ecx, word [esp + 4]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0x14]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 0xa]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x14]
mov esi, dword [ebx + 0x154]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x54c6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x54c706
mov dword [ebp - 0x10], 1
jmp 0x54c854
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xa]
test ax, ax
jne 0x54c71e
mov dword [ebp - 0x10], 2
jmp 0x54c854
xor edx, edx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 4
call fcn.004038a8
movzx eax, word [ebp + 8]
dec eax
movzx edx, word [ebp - 0x14]
mov ecx, edx
cdq
idiv ecx
inc eax
test ax, ax
jbe 0x54c854
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x20]
call fcn.0054c6cc
lea eax, [ebp - 0xa8]
xor ecx, ecx
mov edx, 0x40
call fcn.004038a8
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x54c81b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 1
mov ax, word [ebp - 0xa]
push eax
lea eax, [ebp - 0x200]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0054c540
cmp dword [ebp - 0x18], 1
jne 0x54c7d0
movzx ecx, word [ebp + 0x14]
lea eax, [ebp - 0x200]
mov edx, dword [ebp + 0x18]
call fcn.0054c5fc
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x200]
mov ecx, 4
call fcn.0054c5fc
jmp 0x54c7e2
movzx ecx, word [ebp - 0x14]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x200]
call fcn.0054c5fc
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x200]
call fcn.0054c60c
mov cx, word [ebp - 0x14]
dec ecx
test cx, cx
jb 0x54c80f
inc ecx
lea eax, [ebp - 0x68]
lea edx, [ebp - 0xa8]
mov bl, byte [eax]
xor byte [edx], bl
inc edx
inc eax
dec cx
jne 0x54c804
inc dword [ebp - 0x18]
dec dword [ebp - 0x28]
jne 0x54c78d
mov cx, word [ebp - 0x14]
dec ecx
test cx, cx
jb 0x54c84a
inc ecx
lea eax, [ebp - 0xa8]
mov dx, word [ebp - 0x12]
cmp dx, word [ebp + 8]
jae 0x54c844
mov dl, byte [eax]
mov ebx, dword [ebp - 0x1c]
mov byte [ebx], dl
inc word [ebp - 0x12]
inc dword [ebp - 0x1c]
inc eax
dec cx
jne 0x54c82c
dec word [ebp - 0x22]
jne 0x54c75e
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x54c8c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [ebx], eax
add ebx, 4
add edx, 4
dec ecx
jne 0x54c8cc
mov ecx, 0x40
mov eax, dword [ebx - 0xc]
xor eax, dword [ebx - 0x20]
xor eax, dword [ebx - 0x38]
xor eax, dword [ebx - 0x40]
rol eax, 1
mov dword [ebx], eax
add ebx, 4
dec ecx
jne 0x54c8e5
pop ebx
ret