joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485110
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x48517b
cmp byte [ebx + 0xcf], 0
jne 0x48517b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040632c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x485168
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x485188
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004061f0
jmp 0x485188
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004061f0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x486708
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x486776
mov eax, esi
call fcn.0046c31c
test al, al
je 0x486776
mov eax, dword [ebx + 0x80]
call fcn.0046bf70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x486776
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48676a
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046bf70
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004635cc
jmp 0x486776
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00486554
pop esi
pop ebx
ret
Function at 0x4b2c44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b2c9e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b2c38
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b00b0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004afc14
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2ca5
lea eax, [ebp - 4]
call fcn.004061e0
ret
Function at 0x4c994c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.004061f0
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4c9989
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.0040639c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9a0c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x4c99f3
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004063f0
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.00406844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9a13
lea eax, [ebp - 0x20c]
call fcn.004061e0
ret
Function at 0x4c9f04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca067
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c9f82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9fad
xor eax, eax
push ebp
push 0x4c9fef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca01a
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403430
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.0040d5b8
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004061f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca06e
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.004061e8
ret

Function at 0x4cb864
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
xor esi, esi
mov edi, 0x54df80
mov ebp, 0x54e380
mov ecx, esi
mov eax, esi
cdq
mov dword [esp], eax
mov dword [esp + 4], edx
mov ebx, 8
mov eax, ecx
and eax, 1
test al, al
je 0x4cb89b
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4cb89d
shr ecx, 1
mov eax, dword [esp]
mov edx, dword [esp + 4]
and eax, 1
xor edx, edx
cmp edx, 0
jne 0x4cb8b4
cmp eax, 0
je 0x4cb8d8
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 1
shr edx, 1
xor eax, 0xd7870f42
xor edx, 0xc96c5795
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x4cb8ec
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 1
shr edx, 1
mov dword [esp], eax
mov dword [esp + 4], edx
dec ebx
jne 0x4cb888
mov dword [edi], ecx
mov eax, dword [esp]
mov dword [ebp], eax
mov eax, dword [esp + 4]
mov dword [ebp + 4], eax
inc esi
add ebp, 8
add edi, 4
cmp esi, 0x100
jne 0x4cb877
mov byte [0x54eb80], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x4cb98f
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x54e384]
mov eax, dword [eax*8 + 0x54e380]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x4cb944
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4cb9a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x4cb9c8
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x54df80]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x4cb9aa
pop esi
pop ebx
ret
Function at 0x4cf058
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4cf089
dec al
je 0x4cf0c4
dec al
je 0x4cf109
dec al
je 0x4cf172
jmp 0x4cf1fc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4cf1fc
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, 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 0x4cf099
jmp 0x4cf1fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cf1fc
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4cf0d4
jmp 0x4cf1fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cf1fc
mov esi, 1
movzx eax, 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 0x4cf138
xor ebp, ebp
jmp 0x4cf148
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4cf151
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4cf119
jmp 0x4cf1fc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cf1fc
mov esi, 1
movzx eax, 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 0x4cf1cb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, 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
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004cb9cc
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4cf186
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e1e08
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x5479b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4e1e20
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x5479b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x5479b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x5479b4]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
jne 0x4e1e7b
mov eax, dword [0x5479b4]
mov eax, dword [eax]
mov byte [eax + 0x57], 1
mov eax, dword [0x5479b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x4e1e7b
mov edx, dword [0x5479b4]
mov dl, 1
call fcn.0047c8a4
ret
Function at 0x4e5d44
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd20
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.004061d8
xor eax, eax
push ebp
push 0x4e5f5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.004037c8
mov esi, eax
lea eax, [ebp - 0x2d0]
xor ecx, ecx
mov edx, 0x2b4
call fcn.0040372c
cmp dword [ebp + 0x20], 0
je 0x4e5dff
cmp dword [ebp - 0x10], 0
je 0x4e5dff
mov eax, dword [ebp + 0x20]
call fcn.0040d298
test al, al
jne 0x4e5db5
mov eax, dword [ebp + 0x20]
call fcn.0040d2e0
test al, al
je 0x4e5dd8
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.0040627c
push eax
call sub.shell32.dll_SHGetFileInfoW
jmp 0x4e5df9
push 0x4010
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.0040627c
push eax
call sub.shell32.dll_SHGetFileInfoW
mov esi, dword [ebp - 0x2cc]
cmp byte [ebp + 0x1c], 0
je 0x4e5e26
push 0x4000
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x4e5f6c
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
jmp 0x4e5e45
push 0x4001
push 0x2b4
lea eax, [ebp - 0x2d0]
push eax
push 0
push 0x4e5f6c
call sub.shell32.dll_SHGetFileInfoW
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call sub.comctl32.dll_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00408b04
test bl, bl
je 0x4e5e85
cmp byte [ebp + 0x14], 0
jne 0x4e5e85
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00435d8c
push eax
push esi
push edi
call sub.comctl32.dll_ImageList_Draw
test byte [ebp + 0x14], bl
je 0x4e5f44
mov dl, 1
mov eax, dword [0x4335bc]
call fcn.00439ed0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e5f3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0043a7e8
call fcn.00435d8c
push eax
push esi
push edi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2dc], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.00403524
add eax, dword [ebp - 8]
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.00403524
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp - 4]
call fcn.004e5c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5f44
mov eax, dword [ebp - 0x1c]
call fcn.00403f64
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5f61
lea eax, [ebp + 0x20]
call fcn.004061e0
ret
Function at 0x4f16dc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4f16e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4f1897
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004f1a2c
xor eax, eax
push ebp
push 0x4f1875
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x4f1734
call fcn.00404e5c
jmp 0x4f187c
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x4f1803
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4f1789
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4f1789
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f1630
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406694
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x4f17c2
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004f1630
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406694
mov eax, dword [ebp - 0x14]
call fcn.0040627c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4f185f
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004f1630
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x4f18b4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00406694
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004f1650
jmp 0x4f185f
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4f1826
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4f1826
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x4f183c
mov eax, ebx
call fcn.0040627c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x4f185f
lea eax, [ebp - 0x24]
mov ecx, 0x4f18b4
mov edx, ebx
call fcn.004065c4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004f1650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f187c
mov eax, dword [ebp - 4]
call fcn.004f1a38
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f189e
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.004061e8
ret
Function at 0x4f367c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x4f369d
inc edi
mov eax, esi
call fcn.004058f4
cmp edi, eax
jg 0x4f36af
cmp byte [esi + edi - 1], 0x20
je 0x4f369c
mov eax, esi
test eax, eax
je 0x4f36ba
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x4f377c
cmp byte [esi + edi - 1], 0x2e
je 0x4f37a0
jmp 0x4f377c
cmp byte [esi + edi - 1], 0x2e
jne 0x4f3724
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x4f37a0
cmp dword [esp + 8], 0xff
jg 0x4f37a0
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x4f3708
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x4f3710
mov bl, 1
jmp 0x4f371e
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x4f37a0
jmp 0x4f377b
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x4f3749
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x4f377b
inc edi
mov eax, esi
call fcn.004058f4
cmp edi, eax
jg 0x4f375b
cmp byte [esi + edi - 1], 0x20
je 0x4f3748
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x4f3773
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x4f37a0
jmp 0x4f378b
inc edi
mov eax, esi
call fcn.004058f4
cmp edi, eax
jle 0x4f36d2
cmp dword [esp + 4], 3
jne 0x4f37a0
cmp dword [esp + 8], 0xff
jg 0x4f37a0
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5010a8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x5010bc
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x5010bb
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00405cf8
xor ebx, ebx
cmp esi, dword [esp]
jge 0x501220
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x5011d9
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x5011a8
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x501214
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0x3d
jmp 0x501214
inc ebx
mov eax, edi
call fcn.00405c8c
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00405c8c
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x5010f0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50147c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00501f30
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x504510
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x5451e0
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x50452f
mov esi, 1
mov edx, 0x5452e8
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x5045a8
dec ebx
je 0x5045ca
dec ebx
je 0x5045ec
dec ebx
je 0x50460d
jmp 0x504627
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x504627
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x504627
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x504627
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x504598
inc esi
add edx, 0x40
cmp esi, 9
jne 0x50454b
mov esi, 0x20
mov eax, 0x545210
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x50464c
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x504688
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x545297]
test bl, bl
jbe 0x5046b9
lea eax, [esi + 0x3e0]
call fcn.00504664
lea eax, [esi + 0x3fc]
call fcn.00504664
dec bl
jne 0x50469f
mov cl, 0x30
mov edi, 0x545268
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x5046da
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x5046e7
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x5046c3
pop edx
pop edi
pop esi
pop ebx
ret