joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c57d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4c57eb
add esp, 0xfffffff0
call fcn.00405930
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004425b4
mov eax, dword [0x5b18e8]
cmp byte [eax], 0
jne 0x4c5818
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5b1eec]
cmp word [eax + 2], 0
jne 0x4c5832
mov eax, dword [0x5b1eec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c78cc
mov eax, dword [0x5b2108]
cmp word [eax + 2], 0
jne 0x4c584c
mov eax, dword [0x5b2108]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c7adc
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44f3a0]
call fcn.00455674
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4c808c
mov dl, 1
mov eax, dword [0x42af78]
call fcn.004053cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42af78]
call fcn.004053cc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x453838]
call fcn.0045eb4c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4c5a2c
mov eax, dword [0x5b1c7c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045efe0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4c8374
mov dl, 1
mov eax, dword [0x42af78]
call fcn.004053cc
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5b1c7c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00414a64
test eax, eax
je 0x4c595d
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004146f8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00414a48
test eax, eax
je 0x4c5975
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004075ec
push ebx
push 0x4c729c
call fcn.004bb284
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x5b18e8]
cmp byte [eax], 0
jne 0x4c59c6
mov eax, ebx
call fcn.004c5ba0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004c85a0
mov eax, ebx
call fcn.004c91d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c5a23
call fcn.00405988
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5e74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c5f16
cmp dword [ebx + 0x94], 0
jne 0x4c5f10
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c5dc0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c5f10
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4c5ed6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c5f10
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00436370
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c5ee5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c6134
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5b828c]
cmp dword [eax + 0x170], 0
je 0x4c6299
test bl, bl
jne 0x4c61e7
cmp dword [esi + 0x9c], 0
jne 0x4c61dc
mov eax, esi
call fcn.004c9024
push eax
push 0x4c6040
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c61ad
mov eax, dword [0x5b828c]
cmp byte [eax + 0xd3], 0
je 0x4c61ad
mov eax, dword [esi + 0xd8]
call fcn.00408ac0
mov edi, eax
cmp edi, 0
jl 0x4c61ad
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c6196
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c61dc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436370
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c61bc
inc dword [esi + 0x9c]
jmp 0x4c6299
cmp dword [esi + 0x9c], 0
jle 0x4c6299
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c6299
cmp dword [esi + 0x44], 0
je 0x4c6244
mov eax, dword [0x5b828c]
cmp byte [eax + 0xd3], 0
je 0x4c6244
mov eax, dword [esi + 0xd8]
call fcn.00408ac0
mov edi, eax
cmp edi, 0
jl 0x4c6244
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c622d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c6273
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436370
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c6253
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b915c]
call fcn.00408c80
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c6ee8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c6f53
cmp byte [ebx + 0xd3], 0
jne 0x4c6f53
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.00407528
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c6f40
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c6f60
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004073ec
jmp 0x4c6f60
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004073ec
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c8788
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c87f6
mov eax, esi
call fcn.0049feac
test al, al
je 0x4c87f6
mov eax, dword [ebx + 0x84]
call fcn.0049fb00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c87f6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c87ea
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049fb00
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00496ad8
jmp 0x4c87f6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c85c0
pop esi
pop ebx
ret
Function at 0x4ccdc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4ccdee
mov eax, ebx
call fcn.004cd874
cmp dword [ebx + 0x40], 0
je 0x4ccde7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cce5f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cce51
cmp dword [ebx + 8], 0
je 0x4cce10
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cce22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cce51
cmp dword [ebx + 8], 0
je 0x4cce03
cmp eax, 3
je 0x4cce35
dec eax
jne 0x4cce03
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cce03
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cce03
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cce7d
cmp dword [ebx + 0x14], 0xcc
je 0x4cce7d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cce88
pop ebx
ret

Function at 0x4fd5d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004fe1c8
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 0x4fe0c4
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0x40
jle 0x4fe109
lea eax, [ebp - 0x64]
call fcn.004fd5d4
mov edx, ebx
lea eax, [ebp - 0x64]
mov ecx, dword [ebp + 0xc]
call fcn.004fd600
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004fd6ec
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x4fe10b
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0xe4]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x4fe134
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 0x4fe13a
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x4fe119
lea eax, [ebp - 0x64]
call fcn.004fd5d4
lea edx, [ebp - 0xa4]
lea eax, [ebp - 0x64]
mov ecx, 0x40
call fcn.004fd600
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
call fcn.004fdf98
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004fd6ec
lea eax, [ebp - 0x64]
call fcn.004fd5d4
lea edx, [ebp - 0xe4]
lea eax, [ebp - 0x64]
mov ecx, 0x40
call fcn.004fd600
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x64]
mov ecx, 0x10
call fcn.004fd600
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004fd6ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5007e4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5007ed
push ecx
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 0x5009b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00500b48
xor eax, eax
push ebp
push 0x500984
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x50083d
call fcn.00405fc8
jmp 0x50098b
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 8
je 0x500912
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
je 0x500892
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x500892
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0050073c
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004079a4
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 + 0x34], 4
je 0x5008d1
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0050073c
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004079a4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00407478
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 2
je 0x50096e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0050073c
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x5009d0
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004079a4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00500760
jmp 0x50096e
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
je 0x500935
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x500935
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 + 0x34], 4
je 0x50094b
mov eax, ebx
call fcn.00407478
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 2
je 0x50096e
lea eax, [ebp - 0x28]
mov ecx, 0x5009d0
mov edx, ebx
call fcn.004078c0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00500760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50098b
mov eax, dword [ebp - 4]
call fcn.00500b58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5009ba
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004073e4
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004073e4
ret
Function at 0x505fa4
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 0x505fbd
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x505fbc
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.00406f78
xor ebx, ebx
cmp esi, dword [ebp - 8]
jge 0x506136
inc ebx
mov eax, edi
call fcn.00406f0c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x5b09a8]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [ebp - 8]
jge 0x5060ed
inc ebx
mov eax, edi
call fcn.00406f0c
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 + 0x5b09a8]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [ebp - 8]
jge 0x5060b9
inc ebx
mov eax, edi
call fcn.00406f0c
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 + 0x5b09a8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406f0c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x5b09a8]
mov byte [eax + ebx - 1], dl
jmp 0x50612a
inc ebx
mov eax, edi
call fcn.00406f0c
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 + 0x5b09a8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406f0c
mov byte [eax + ebx - 1], 0x3d
jmp 0x50612a
inc ebx
mov eax, edi
call fcn.00406f0c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x5b09a8]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406f0c
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00406f0c
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [ebp - 8]
jl 0x505ff1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x507e54
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, 0xffffffa0
mov dword [esp + 8], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x5b0b08
mov ecx, dword [esp]
lea edx, [esp + 0x10]
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 0x507e73
mov esi, 1
mov edx, 0x5b0c10
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 + 0x10]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x15]
add edi, ebx
movzx ebx, byte [esp + eax + 0x11]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0x12]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0x13]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x14]
add ebx, eax
mov dword [esp + 0xc], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x507eec
dec ebx
je 0x507f0e
dec ebx
je 0x507f30
dec ebx
je 0x507f51
jmp 0x507f6b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 0xc]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3f], bl
jmp 0x507f6b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 0xc]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3f], bl
jmp 0x507f6b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 0xc]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3f], bl
jmp 0x507f6b
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 0xc]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3f], bl
inc eax
cmp eax, 5
jne 0x507edc
inc esi
add edx, 0x40
cmp esi, 9
jne 0x507e8f
mov esi, 0x20
mov eax, 0x5b0b38
mov edx, dword [esp + 8]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3f]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x507f90
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x507fcc
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x5b0bbf]
test bl, bl
jbe 0x508001
lea eax, [esi + 0x3e0]
call fcn.00507fa8
lea eax, [esi + 0x3fc]
call fcn.00507fa8
dec bl
jne 0x507fe7
mov cl, 0x30
mov edx, 0x5b0b90
mov eax, dword [ebp - 8]
movzx ebx, byte [edx]
mov byte [ebp - 9], bl
cmp byte [ebp - 9], 0x1c
ja 0x508027
movzx ebx, byte [ebp - 9]
movzx ebx, byte [esi + ebx + 0x3df]
mov byte [eax], bl
jmp 0x508035
movzx ebx, byte [ebp - 9]
movzx ebx, byte [esi + ebx + 0x3df]
mov byte [eax], bl
inc eax
inc edx
dec cl
jne 0x50800b
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508044
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x429]
mov eax, edi
mov edx, ebx
call fcn.00507dec
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x508060
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x49]
movzx edx, byte [esi]
mov eax, dword [ebp - 0x10]
call fcn.00507dec
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00507dec
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x50807c
mov bl, 1
lea esi, [ebp - 0x3a9]
mov ecx, esi
lea eax, [ebp - 0x429]
mov edx, ebx
call fcn.00507fcc
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x5080a6
mov bl, 1
mov eax, 0x5b0a88
lea edx, [ebp - 0xa9]
cmp bl, 0x20
ja 0x5080df
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x42a]
mov byte [edx], cl
jmp 0x5080ec
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x42a]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x5080cb
mov byte [ebp - 0x11], 1
lea esi, [ebp - 0x3a9]
cmp byte [ebp + 8], 0
je 0x508116
lea ecx, [ebp - 0x69]
mov edx, esi
lea eax, [ebp - 0x89]
call fcn.00507e54
jmp 0x50813d
movzx eax, byte [ebp - 0x11]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d9]
lea ecx, [ebp - 0x69]
lea eax, [ebp - 0x89]
call fcn.00507e54
mov bl, 0x20
lea eax, [ebp - 0xa9]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x508145
push esi
lea esi, [ebp - 0x89]
lea edi, [ebp - 0xa9]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x69]
lea edi, [ebp - 0x89]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 0x11]
add esi, 0x30
cmp byte [ebp - 0x11], 0x11
jne 0x5080fe
mov bl, 0x40
mov esi, 0x5b0ac8
lea eax, [ebp - 0x3e9]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x5081ab
movzx edx, dl
movzx edx, byte [ebp + edx - 0x8a]
mov byte [eax], dl
jmp 0x5081b8
movzx edx, dl
movzx edx, byte [ebp + edx - 0xca]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x508194
mov bl, 1
lea esi, [ebp - 0x3e9]
movzx ecx, byte [esi]
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00507e14
inc ebx
inc esi
cmp bl, 0x41
jne 0x5081c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50840c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [ebp - 0x18], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [ebp - 0x17], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [ebp - 0x16], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [ebp - 0x15], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [ebp - 0x14], 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 - 0x13], 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 - 0x12], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [ebp - 0x11], al
mov edi, 8
lea eax, [ebp - 0x18]
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 0x5084b7
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x5084b2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.00406f78
push 1
mov eax, dword [ebp - 0x10]
call fcn.00406f0c
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00508044
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret