joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490a10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x57b922
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
push esi
push edi
mov edi, ecx
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x54], ebp
je 0x490a50
mov ecx, eax
call sub.MFC42.DLL_CMetaFileDC::CMetaFileDC
mov esi, eax
jmp 0x490a52
xor esi, esi
cmp esi, ebp
mov dword [esp + 0x54], 0xffffffff
je 0x490b95
mov eax, dword [edi + 8]
push ebx
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [edi + 8]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], 1
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CDC::SetMapMode
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CDC::DPtoHIMETRIC
push 1
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CDC::SetMapMode
mov eax, dword [esp + 0x14]
mov bl, byte [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
test bl, bl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x3c]
je 0x490af9
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x1c]
neg eax
sbb eax, eax
push 0x68e298
push edx
and eax, ecx
push ebp
jmp 0x490b11
mov ecx, dword [esp + 0x40]
push 0x68e298
neg eax
sbb eax, eax
lea edx, [edi + 0x14]
and eax, ecx
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, dword [esi + 4]
push esi
mov dword [esi + 8], ecx
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
call dword [edx + 0xf8]
mov ecx, esi
call sub.MFC42.DLL_CDC::Detach
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
test bl, bl
mov ebp, eax
pop ebx
je 0x490b74
mov edi, dword [edi + 8]
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 0xe
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x490b7b
push ebp
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0xffffffff
call fcn.004eaedc
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x4972c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
xor al, al
mov byte [esp + 5], 0x10
mov byte [esp + 4], al
mov byte [esp + 3], al
mov eax, dword [esp + 0x28]
mov byte [esp + 6], 0x18
and eax, 0xffff
mov byte [esp + 7], 0x20
mov ecx, eax
mov byte [esp + 8], 0x28
and ecx, 0x1f
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov dl, byte [esp + ecx + 4]
mov ecx, eax
shr ecx, 5
shr eax, 0xa
and ecx, 0x1f
and eax, 0x1f
mov byte [esp], dl
mov dl, byte [esp + ecx + 4]
mov al, byte [esp + eax + 4]
mov byte [esp + 1], dl
mov byte [esp + 2], al
mov eax, dword [esp]
add esp, 0x24
ret
Function at 0x498130
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00418180
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.00499790
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x498174
push edi
call fcn.00435ba0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.00498270
mov dword [esi + 4], fcn.004983c0
mov dword [esi + 8], fcn.00498470
mov dword [esi + 0xc], fcn.00498520
mov dword [esi + 0x10], 0x4985d0
mov dword [esi + 0x14], 0x498640
mov dword [esi + 0x18], 0x4986b0
mov dword [esi + 0x1c], 0x498830
mov dword [esi + 0x20], 0x498a20
mov dword [esi + 0x24], fcn.00498c10
mov dword [esi + 0x28], 0x498d10
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4981d6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x498268
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x498268
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x498231
cmp al, 0x4d
jne 0x498255
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49f0ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, dword [esp + 0x18]
mov ebp, esp
sub esp, 0xcd4
mov dword [ecx], 0
push ebx
push esi
mov eax, dword [ebp + 0x10]
push edi
cmp eax, 1
mov dword [ebp - 8], 0xc30
je 0x49f0e1
cmp eax, 2
je 0x49f125
mov eax, 0xe
jmp 0x49f2e5
push 0
mov esi, dword [ebp + 8]
push esi
call sub.MSVCRT.dll__access
add esp, 8
cmp eax, 0xffffffff
jne 0x49f217
test byte [ebp + 0xc], 8
je 0x49f2e0
mov eax, dword [ebp + 0xc]
and eax, 7
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
call fcn.004a3339
cmp eax, 1
je 0x49f217
jmp 0x49f2e5
xor edi, edi
mov esi, dword [ebp + 8]
mov al, byte [edi + esi]
test al, al
je 0x49f149
movsx eax, al
push eax
inc edi
call sub.MSVCRT.dll_toupper
add esp, 4
add al, 7
mov byte [ebp + edi - 0x41], al
cmp edi, 0x32
jl 0x49f12a
push str.softwareclasses_vdsp
lea eax, [ebp - 0xa4]
mov byte [ebp + edi - 0x40], 0
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp byte [esi], 0x3a
jne 0x49f19c
xor eax, eax
cmp byte [esi + 4], 0x3a
je 0x49f182
mov cl, byte [eax + esi + 4]
inc eax
cmp byte [eax + esi + 4], 0x3a
mov byte [ebp + eax - 0xa5], cl
jne 0x49f16f
mov byte [ebp + eax - 0xa4], 0
add eax, esi
lea ecx, [ebp - 0x40]
add eax, 5
push eax
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 4]
lea ecx, [ebp - 0xa4]
push eax
push ecx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49f1ef
lea eax, [ebp - 8]
lea ecx, [ebp - 0xcd4]
push eax
lea edx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x40]
push edx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49f1ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49f217
mov eax, 0x2c
jmp 0x49f2e5
test byte [ebp + 0xc], 8
je 0x49f2d7
mov eax, dword [ebp + 0xc]
and eax, 7
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
call fcn.004a3339
cmp eax, 1
jne 0x49f2e5
push 0x1ae
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x49f234
mov eax, 0x10
jmp 0x49f2e5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push 0
push esi
push ebx
call fcn.004a32ec
add esp, 0xc
cmp dword [ebp + 0x10], 3
jne 0x49f253
push 0x11
jmp 0x49f25f
cmp dword [ebp + 0x10], 4
jne 0x49f25d
push 0x1a
jmp 0x49f25f
push 0
push dword [ebp + 0x14]
lea ecx, [ebx + 0x104]
push ecx
call fcn.004a32ec
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0x181], cl
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x182], ecx
push edi
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x186], ecx
mov dword [ebx + 0x1a6], ecx
mov dword [ebx + 0x1a2], ecx
mov dword [ebx + 0x1aa], edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xcd4]
push eax
push edi
call fcn.0049f2ee
add esp, 8
mov esi, eax
cmp esi, 1
je 0x49f2cb
push edi
call fcn.004a098b
mov eax, esi
jmp 0x49f2e5
mov ecx, dword [ebp + 0x18]
mov eax, 1
mov dword [ecx], edi
jmp 0x49f2e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a39b0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4a3a4c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ecx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x16], ax
push esi
mov word [ebp - 0x12], dx
mov ecx, dword [ecx + 8]
mov word [ebp - 0x18], cx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov word [ebp - 0x10], ax
mov ecx, dword [ecx + 8]
mov word [ebp - 0xe], dx
lea eax, [ebp - 8]
mov word [ebp - 0xc], cx
push eax
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
mov eax, 0
je 0x4a3acc
lea eax, [ebp - 8]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a3b75
Capabilities:
Delete file

Disassembly:
push 0
push dword [esp + 8]
call fcn.004a39a1
add esp, 8
test eax, eax
mov eax, 0xf
je 0x4a3ba2
push dword [esp + 4]
call sub.MSVCRT.dll_remove
add esp, 4
cmp eax, 1
sbb eax, eax
and al, 0xf7
add eax, 0xa
ret 4
Function at 0x4afc16
Capabilities:
Encrypt data using speck

Disassembly:
or al, 0x80
mov byte [eax], 0x66
and ecx, ecx
and byte [ebp + ebx], al
jb 0x4ca6d4
jmp dword [esi]
retf
jb 0x4a69bb
push esi
pop esi
mov eax, dword [esi + 4]
mov eax, dword [ebp + eax]
mov ebx, dword [esi + 8]
mov eax, dword [eax]
lea esi, [esi + 0xc]
cmp ch, ch
jno 0x4c4db5
jo 0x4a6985
mov ecx, 0x800fa93e
sub ah, ah
add dword [eax], eax
jo 0x4c4db5
jne 0x4bd88f
je 0x4a6996
xlatb
jnp 0x4a6920
je 0x4bd88f
and eax, 0x24448f9f
cld
ret
sbb al, byte [ecx + ecx*4]
pop eax
jns 0x4a9cad
invalid
test byte [ebp - 4], 0x10
jb 0x4b09c1
je 0x4ca556
shr ebx, 0x40
mov esi, esi
jne 0x4a9cc6
adc dword [ecx], eax
mov eax, 1
shr bp, 0x40
pop edi
shl dx, 0x20
pop esi
jmp 0x4c081d
push ebp
shr edx, 0x40
mov edx, dword [esp + 8]
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, eax
mov eax, ecx
dec ecx
or ch, ch
stc
jb 0x4afc34
sar dl, 0xf
sub byte [esi], 0x50
add al, byte [eax]
jb 0x4d4c68
add eax, 0xff8166fc
sbb eax, dword [eax]
cwde
mov cs, word [edi]
test dword [edx + 0x74000061], edx
add al, 0x9d
pop es
xlatb
int3
mov ebx, dword [esi + 4]
mov ax, ax
lea esi, [esi + 8]
shr bl, 0x40
lea ecx, [ecx]
shr dword [ebx], cl
shl bp, 0x20
jmp dword [esi]
mov cl, byte [ebp + 0x54]
jmp 0x4b4228
pop ebp
ret
mov esp, ebp
js 0x4c0313
jns 0x4c082b
nop
cpuid
ret 0x890f
jns 0x4c0313
mov dword [ecx], 0xffe592e8
inc dword [edx + 0x56db89af]
and dword [ebp + ebx], eax
jb 0x4ba2dd
jmp dword [esi]
push ebp
pop ebp
mov eax, esi
pop edi
mov eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edx], al
inc edx
shr ax, 0x40
mov eax, ecx
dec ecx
test eax, eax
jb 0x4a6965
xchg si, cx
xchg cx, si
jne 0x4d4c7d
je 0x4caeec
lahf
jmp 0x4caf20
pop esi
mov bl, bl
pop ebp
ret
cmp dword [ebp + 0x7000002d], 0x41d64e04
or ch, ch
test eax, eax
jb 0x4a6933
je 0x4caeec
jne 0x4d4c7d
neg bl
mov al, byte [esi]
inc esi
ja 0x4caec9
jbe 0x4d4c8c
cmp edi, eax
mov esp, ecx
jbe 0x4caec9
invalid
Function at 0x4c42be
Capabilities:
Packed with generic packer

Disassembly:
mov esi, dword [ebp + 8]
xor edi, edi
jb 0x4ca024
xchg ebx, eax
xchg ebx, eax
mov al, byte [esi]
push eax
push edx
pop edx
push ebp
mov bp, bp
mov ebp, esp
lea ebx, [ebx]
push ebx
xor bx, bx
jb 0x4ca00c
jmp 0x4c42d4
push esi
jmp 0x4c42d7
push edi
ja 0x4bd9b3
jbe 0x4c42e3
pop ds
xchg ebx, eax
jbe 0x4bd9b3
fnstenv [edi + ecx - 0x1a5907f]
push dword [eax + 4]
or eax, 0xf20b43a
and byte [ebx + 0x5a], 0xfe
inc dword [edx - 0x643ca25d]
adc dl, byte [ebp - 0x77]
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0xefc16626
inc eax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [ebp + eax]
jne 0x4d1120
je 0x4ca027
test byte [ebp - 0x69], dh
je 0x4d1120
lea esi, [esi + 0xc]
cmp cl, bl
ja 0x4bc9af
jbe 0x4d1136
sal byte [edx], 1
aad 0xf
xchg byte [ebx - 0x48], dh
invalid
jbe 0x4bc9af
xor al, 0x67
add eax, 0
cmp al, 0x49
jne 0x4ae70a
je 0x4d4d2d
mov ebx, 0xc03113c2
xor eax, eax
jb 0x4d1129
call fcn.004ae6f8
and byte [esi], 0xc1
call 0xc4cb383
js 0x4bb23e
jns 0x4d4d4e
dec esi
xor al, 0x66
jns 0x4bb23e
or byte [0x8b0f098d], 0x26
mov edx, 0x8966fffe
ror byte [ebp - 0x77f0f78a], 0x23
or eax, 0x368dffff
jns 0x4d4d70
lcall 0xff0d, 0x17890f3b
push dword [esi + ebp*4]
jns 0x4c5a8d
Function at 0x4ce710
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
sub dx, dx
div cx
mov ch, ch
mov bx, 0xa
mov cl, dl
mov ax, word [ebp - 2]
add dx, 0
add cl, 0x30
sub dx, dx
mov byte [esi + edi + 8], cl
div bx
mov word [ebp - 2], ax
js 0x4ceb6d
mov di, di
jns 0x4aa38f
pop ecx
and eax, 0xd8890fcf
inc edi
add al, byte [eax]
jns 0x4ceb6d
add eax, 0x22fd6857
imul eax, dword [eax], 0xff40e9c0
shr di, 0x40
mov bh, bh
mov edx, eax
mov cl, cl
shr edx, 0x1c
call fcn.004ce710
sbb byte [esi], 0x68
outsb dx, byte [esi]
jne 0x4b845f
add bl, al
xor al, 0x8e
add byte [eax - 0x7c], ch
dec ebx
add byte [edi], bh
jb 0x4b846f
invalid
add byte [eax], dl
add byte [eax], al
mov esi, 0x58004d46
add byte [eax], al
add byte [eax], bl
add byte [eax], al
add byte [ecx + 0x64004b], 0
add byte [ecx + 0x4c1d], bh
inc edx
add byte [eax], al
push eax
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
popal
add byte [eax + 0x54], al
add byte [ecx], ah
add byte [eax], al
add dword [eax], eax
add byte [eax], al
invalid
lea esp, [esp + 4]
shl eax, 4
and dl, 0xf
jb 0x4d62d4
clc
add edx, 0x517f7220
sub edx, 0x517f7220
cmp dl, 9
jbe 0x4ce745
ja 0x4ce73b
mov ch, 0xd8
pop edx
add dl, 0x37
jmp 0x4ce74a
add dl, 0x30
lea ecx, [ecx]
mov byte [esi + ecx], dl
mov esi, esi
inc ecx
cmp ecx, 8
jb 0x4b83fe
jae 0x4ce762
cmp bh, ch
scasb al, byte es:[edi]
or eax, 0x5bf9797
add byte [eax], al
add byte [esi - 0x47], ah
or al, byte [eax]
xchg edi, eax
xchg edi, eax
mov edi, 5
mov cx, 0xa
mov ax, word [ebp - 2]
jno 0x4aa359
loop 0x4ce730
std
push dword [eax + 4]
jo 0x4ce77d
jecxz 0x4ce773
pop ebp
nop
jo 0x4aa359
fsubr dword [ecx + 0xf085e8b]
test dword [edx + 0x74ffff2e], ecx
add edx, dword [edi - 0x4b]
in eax, 0xf
test byte [edi + 0x2e], bh
invalid
dec edi
jne 0x4ce769
je 0x4ceb79
jbe 0x4cebcf
push ebp
xor edi, edi
jb 0x4d62dd
lea eax, [esi + 0xf]
ja 0x4b3e17
jbe 0x4ceb90
pop es
rcl byte [edx - 0x7e79f011]
push edx
invalid
jbe 0x4b3e17
invalid
pop eax
stosd dword es:[edi], eax
test al, 0x88
in al, 0xe8
invalid
ficomp dword [esi - 0x18]
lodsb al, byte [esi]
and al, 0xfd
inc dword [ecx + 0xc1]
add byte [ecx + 0x4c4], al
add al, al
jecxz 0x4d6313
add al, 0
add byte [eax], al
Function at 0x4d7760
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebx
mov dword [eax], 0
cmp dword [esp + 0x1c], 1
push esi
push edi
push ebp
jae 0x4d7782
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
xor edi, edi
mov ebp, dword [esp + 0x28]
cmp ebp, edi
je 0x4d7880
lea eax, [edi*4]
mov ecx, 3
sub edx, edx
xor ebx, ebx
div ecx
mov edx, dword [esp + 0x1c]
lea esi, [edx + eax]
mov eax, dword [esp + 0x24]
add eax, edi
inc esi
inc esi
mov dword [esp + 0x10], eax
mov al, byte [eax]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x14], al
mov dl, byte [ecx + 1]
and al, 3
xor ecx, ecx
mov bl, al
mov al, dl
shl ebx, 4
and dl, 0xf
shr al, 4
mov cl, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
or ebx, ecx
mov cl, byte [eax + 2]
xor eax, eax
and ebx, 0x3f
mov al, dl
mov dl, cl
shl eax, 2
and cl, 0x3f
shr dl, 6
mov byte [esp + 0x10], dl
xor edx, edx
or eax, dword [esp + 0x10]
mov dl, cl
mov dword [esp + 0x10], 0
mov cl, byte [esp + 0x14]
shr cl, 2
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 2], cl
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 1], cl
cmp ebp, 3
mov ecx, ebp
jb 0x4d7839
mov ecx, 3
cmp ecx, 1
jne 0x4d7847
mov byte [esi], 0x3d
mov byte [esi + 1], 0x3d
jmp 0x4d7869
and eax, 0x3f
inc esi
cmp ecx, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi - 1], al
jne 0x4d785e
mov byte [esi], 0x3d
jmp 0x4d7869
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
sub ebp, 3
mov eax, dword [esp + 0x20]
add edi, 3
add dword [eax], 4
cmp edi, dword [esp + 0x28]
jb 0x4d7790
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4d82f0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
cmp dword [esp + 0x10c], 0
push ebx
push esi
push edi
push ebp
jne 0x4d8314
mov eax, 0xc9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
cmp dword [esp + 0x124], 0
jne 0x4d832e
mov eax, 0xc9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
xor eax, eax
mov edx, dword [esp + 0x11c]
mov ax, word [edx]
add eax, 7
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x11c]
sar eax, 3
mov si, ax
lea eax, [esp + 0x18]
movzx ebp, si
push ebp
push edx
push eax
call fcn.004e4be0
add esp, 0xc
cmp si, 0xfc
jbe 0x4d8379
mov eax, 0xc9
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x124]
push eax
call fcn.004e19d0
mov esi, dword [esp + 0x124]
add esp, 4
test esi, esi
jne 0x4d8427
xor cx, cx
mov eax, dword [esp + 0x124]
add eax, 0x5c
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
movsx eax, cx
mov byte [eax + edx], cl
inc cx
cmp cx, 0x100
jl 0x4d83a9
xor di, di
xor edx, edx
mov byte [esp + 0x13], dl
xor ebx, ebx
mov esi, dword [esp + 0x14]
movsx eax, di
inc di
mov bl, dl
add esi, eax
mov edx, dword [esp + 0x11c]
xor eax, eax
mov cl, byte [esi]
mov al, byte [ebx + edx + 2]
xor edx, edx
mov dl, cl
sub eax, edx
xor edx, edx
mov dl, byte [esp + 0x13]
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], al
xor eax, eax
mov al, byte [esp + 0x13]
add edx, eax
mov al, byte [edx]
mov byte [esi], al
lea eax, [ebx + 1]
mov byte [edx], cl
cdq
idiv ebp
cmp di, 0x100
jl 0x4d83c5
jmp 0x4d84ea
mov edx, dword [esp + 0x11c]
push ebp
lea eax, [esp + 0x1c]
push edx
push eax
add esi, 2
call fcn.004e4be0
lea eax, [esp + ebp + 0x24]
add esp, 0xc
push 4
push esi
push eax
call fcn.004e4be0
xor cx, cx
mov eax, dword [esp + 0x130]
add esp, 0xc
add eax, 0x5c
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
movsx eax, cx
mov byte [eax + edx], cl
inc cx
cmp cx, 0x100
jl 0x4d8461
xor di, di
xor edx, edx
add ebp, 4
mov byte [esp + 0x13], dl
xor ebx, ebx
mov esi, dword [esp + 0x14]
movsx eax, di
inc di
mov bl, dl
add esi, eax
xor edx, edx
xor eax, eax
mov cl, byte [esi]
mov al, byte [esp + ebx + 0x18]
mov dl, cl
sub eax, edx
xor edx, edx
mov dl, byte [esp + 0x13]
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], al
xor eax, eax
mov al, byte [esp + 0x13]
add edx, eax
mov al, byte [edx]
mov byte [esi], al
lea eax, [ebx + 1]
mov byte [edx], cl
cdq
idiv ebp
cmp di, 0x100
jl 0x4d8480
lea eax, [esp + 0x18]
push 0
push 0x100
push eax
call fcn.004e4bc0
add esp, 0xc
mov edx, dword [esp + 0x14]
push 0x100
mov eax, dword [esp + 0x128]
push edx
push eax
call fcn.004e1a20
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x4d8650
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x174
push esi
push edi
mov esi, dword [esp + 0x194]
mov dword [esi], 0
mov ecx, dword [eax]
test ecx, ecx
jne 0x4d867c
mov ax, 0xcc
pop edi
pop esi
add esp, 0x174
ret
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x184]
push eax
push edx
push ecx
call fcn.004d82f0
add esp, 0xc
test ax, ax
jne 0x4d87c8
xor eax, eax
mov al, byte [esp + 0x190]
test eax, eax
je 0x4d86c4
cmp eax, 1
je 0x4d873e
mov ax, 0xa
pop edi
mov dword [esi], 0
pop esi
add esp, 0x174
ret
mov eax, dword [esp + 0x188]
test eax, eax
je 0x4d86e5
mov ecx, dword [esp + 0x18c]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004e1a20
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
xor edi, edi
push ecx
call fcn.004e1b80
add esp, 8
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [esp + eax + 0xc]
inc eax
mov cl, byte [esp + ecx + 0x7c]
and cl, 0x18
shr cl, 3
mov dl, cl
lea ecx, [eax*2 - 2]
shl edx, cl
or edi, edx
cmp eax, 0x10
jb 0x4d86fb
xor eax, eax
mov dword [esp + 8], edi
lea ecx, [esp + 0xb]
mov dl, byte [esp + eax + 0x1c]
sub ecx, eax
inc eax
xor byte [ecx], dl
cmp eax, 4
jb 0x4d8726
mov eax, dword [esp + 8]
jmp 0x4d87af
mov eax, dword [esp + 0x188]
test eax, eax
je 0x4d875f
mov ecx, dword [esp + 0x18c]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004e1a20
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
xor edi, edi
push ecx
call fcn.004e1b80
add esp, 8
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [esp + eax + 0xc]
inc eax
mov cl, byte [esp + ecx + 0x7c]
and cl, 3
mov dl, cl
lea ecx, [eax*2 - 2]
shl edx, cl
or edi, edx
cmp eax, 0x10
jb 0x4d8775
xor eax, eax
mov dword [esp + 8], edi
mov cl, byte [esp + eax + 0x1c]
xor byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jb 0x4d879d
mov eax, dword [esp + 8]
push 0
mov dword [esi], eax
lea eax, [esp + 0x24]
push 0x15c
push eax
call fcn.004e4bc0
xor ax, ax
add esp, 0xc
pop edi
pop esi
add esp, 0x174
ret