joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c5f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c7bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48c79d
mov dl, 1
mov eax, dword [0x41f5dc]
call fcn.004044e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405450
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x48c786
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.0047bdd8
test al, al
je 0x48c77a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x48c7d0
lea eax, [ebp - 0x25c]
call fcn.0040ea54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48c77a
xor eax, eax
push ebp
push 0x48c773
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x48c808
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48c75c
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.004056c0
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48c75c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.004056c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c77a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x48c669
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.00425fdc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c7c6
lea eax, [ebp - 0x268]
call fcn.00405450
ret
Function at 0x48d320
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5877d0]
cmp byte [eax + 0xad], 0
jne 0x48d397
cmp dword [0x5877e8], 0
jne 0x48d355
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48d2dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5877e8], eax
cmp dword [0x5877e4], 0
jne 0x48d370
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5877e4], eax
cmp dword [0x5877ec], 0
jne 0x48d397
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x48d27c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5877ec], eax
pop ecx
pop ebp
ret

Function at 0x48d460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0048d3f8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x48d481
xor eax, eax
call fcn.0048d430
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x48d49b
mov al, 1
call fcn.0048d430
mov esp, ebp
pop ebp
ret

Function at 0x48dd2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x5877d0]
cmp dword [eax + 0x30], 0
je 0x48ddf6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x48dded
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x48dcac
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x48dded
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48dda7
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x48dded
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00422198
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48ddbc
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret
Function at 0x48e02c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x5877d0]
cmp dword [eax + 0x30], 0
je 0x48e137
cmp byte [ebp - 5], 0
jne 0x48e0bc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0
jne 0x48e0b1
push 0
push 0x48dfac
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
cmp dword [eax + 8], 0
jle 0x48e0b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x48e0b1
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 1
cmc
sbb eax, eax
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.00422198
push eax
call sub.user32.dll_ShowOwnedPopups
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48e089
mov eax, dword [ebp - 4]
inc dword [eax + 0x9c]
jmp 0x48e137
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0
jle 0x48e137
mov eax, dword [ebp - 4]
dec dword [eax + 0x9c]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0
jne 0x48e137
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
cmp dword [eax + 8], 0
jle 0x48e129
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x48e129
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 1
cmc
sbb eax, eax
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.00422198
push eax
call sub.user32.dll_ShowOwnedPopups
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48e101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x48ed48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xac], 0
je 0x48ed8d
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00405540
jmp 0x48ed9e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.004054a4
mov esp, ebp
pop ebp
ret

Function at 0x4905e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x49066a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00475470
test al, al
je 0x49066a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00474f28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49066a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x49065a
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00474f28
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0046ae70
jmp 0x49066a
mov cl, 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
call fcn.004903b0
pop ecx
pop ebp
ret
Function at 0x491c74
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x491c7d
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 0x491e2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00491fbc
xor eax, eax
push ebp
push 0x491e0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x491ccc
call fcn.00404e70
jmp 0x491e14
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x491d9b
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x491d21
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x491d21
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00491c1c
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004057d4
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 0x491d5a
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00491c1c
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004057d4
mov eax, dword [ebp - 0x14]
call fcn.00405914
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x491df7
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00491c1c
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x491e48
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004057d4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00491c40
jmp 0x491df7
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x491dbe
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x491dbe
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 0x491dd4
mov eax, ebx
call fcn.00405914
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x491df7
lea eax, [ebp - 0x24]
mov ecx, 0x491e48
mov edx, ebx
call fcn.00405760
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00491c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491e14
mov eax, dword [ebp - 4]
call fcn.00491fcc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491e36
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00405474
ret

Function at 0x492430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00493120
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
pop ebp
ret
Function at 0x492f6c
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x492fb1
lea eax, [ebp - 0x60]
call fcn.00492430
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.0049245c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00492548
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x492fb3
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x492fdc
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x492fe2
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x492fc1
lea eax, [ebp - 0x60]
call fcn.00492430
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0049245c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.00492df0
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00492548
lea eax, [ebp - 0x60]
call fcn.00492430
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0049245c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.0049245c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00492548
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x498450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov ebx, dword [ebp - 8]
jmp 0x498469
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x498468
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
mov edx, ebx
call fcn.00405b9c
xor ebx, ebx
cmp esi, dword [ebp - 8]
jge 0x4985e0
inc ebx
mov eax, edi
call fcn.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 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 [ebp - 8]
jge 0x498597
inc ebx
mov eax, edi
call fcn.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi]
and dl, 3
movzx edx, dl
shl edx, 4
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 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 [ebp - 8]
jge 0x498563
inc ebx
mov eax, edi
call fcn.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 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.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x4985d4
inc ebx
mov eax, edi
call fcn.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 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.0040596c
mov byte [eax + ebx - 1], 0x3d
jmp 0x4985d4
inc ebx
mov eax, edi
call fcn.0040596c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 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.0040596c
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.0040596c
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [ebp - 8]
jl 0x49849b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x498808
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, 0x57d458
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 0x498827
mov esi, 1
mov edx, 0x57d560
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 0x4988a0
dec ebx
je 0x4988c2
dec ebx
je 0x4988e4
dec ebx
je 0x498905
jmp 0x49891f
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 0x49891f
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 0x49891f
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 0x49891f
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 0x498890
inc esi
add edx, 0x40
cmp esi, 9
jne 0x498843
mov esi, 0x20
mov eax, 0x57d488
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 0x498944
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x498980
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x57d50f]
test bl, bl
jbe 0x4989b5
lea eax, [esi + 0x3e0]
call fcn.0049895c
lea eax, [esi + 0x3fc]
call fcn.0049895c
dec bl
jne 0x49899b
mov cl, 0x30
mov edx, 0x57d4e0
mov eax, dword [ebp - 4]
movzx ebx, byte [edx]
mov byte [ebp - 5], bl
cmp byte [ebp - 5], 0x1c
ja 0x4989db
movzx ebx, byte [ebp - 5]
movzx ebx, byte [esi + ebx + 0x3df]
mov byte [eax], bl
jmp 0x4989e9
movzx ebx, byte [ebp - 5]
movzx ebx, byte [esi + ebx + 0x3df]
mov byte [eax], bl
inc eax
inc edx
dec cl
jne 0x4989bf
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4989f8
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.004987a0
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x498a14
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.004987a0
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004987a0
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x498a30
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.00498980
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x498a5a
mov bl, 1
mov eax, 0x57d3d8
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x498a93
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x498aa0
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x498a7f
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x498aca
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00498808
jmp 0x498af1
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00498808
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x498af9
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x498ab2
mov bl, 0x40
mov esi, 0x57d418
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x498b5f
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x498b6c
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x498b48
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004987c8
inc ebx
inc esi
cmp bl, 0x41
jne 0x498b7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4996e8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [ebp - 0x10], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [ebp - 0xf], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [ebp - 0xe], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [ebp - 0xd], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [ebp - 0xb], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [ebp - 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [ebp - 9], al
mov edi, 8
lea eax, [ebp - 0x10]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x499793
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x49978e
mov eax, dword [ebp - 8]
mov edx, 8
call fcn.00405b9c
push 1
mov eax, dword [ebp - 8]
call fcn.0040596c
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004989f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret