joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e754
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45e78c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45e76d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45e77c
or bl, 4
test esi, 0x20000000
je 0x45e787
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45e7dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045e790
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x464e70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x464e82
add esp, 0xfffffff0
call fcn.004041f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424d2c
mov eax, dword [0x5266bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x465214
mov eax, dword [0x5266c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x465220
mov eax, ebx
call fcn.0046522c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418e8c]
call fcn.00403e50
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418e8c]
call fcn.00403e50
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418e8c]
call fcn.00403e50
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418e8c]
call fcn.00403e50
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418e8c]
call fcn.00403e50
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x461644
push eax
push 0
push 0
mov eax, dword [0x526934]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426854]
call fcn.0042808c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426854]
call fcn.0042808c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426854]
call fcn.0042808c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00465730
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4655b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4655b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4655b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464fbf
call fcn.00404250
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x465394
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46553f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x465520
mov dl, 1
mov eax, dword [0x4195a8]
call fcn.00403e50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d0c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46550f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00452c80
test al, al
je 0x465502
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x465550
lea eax, [ebp - 0x254]
call fcn.0040ada4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x465502
xor eax, eax
push ebp
push 0x4654fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x465588
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4654e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f8c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4654e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465502
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x465405
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e560
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465546
lea eax, [ebp - 0x260]
call fcn.00404d0c
ret

Function at 0x465ed0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x527b78]
cmp byte [eax + 0xa5], 0
jne 0x465f41
cmp dword [0x527b90], 0
jne 0x465f02
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x465e8c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x527b90], eax
cmp dword [0x527b8c], 0
jne 0x465f1d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x527b8c], eax
cmp dword [0x527b94], 0
jne 0x465f41
push esp
push 0
push 0
push 0x465e30
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x527b94], eax
pop edx
ret
Function at 0x4665d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x527b78]
cmp dword [eax + 0x30], 0
je 0x46667e
cmp dword [ebx + 0x94], 0
jne 0x466678
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x466564
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x466678
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_GetWindowLongA
test al, 8
je 0x46663e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x466678
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.0041b8ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46664d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4671dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x467211
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404dfc
jmp 0x46721e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d60
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x468358
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x468399
mov eax, esi
call fcn.0044e1f8
test al, al
je 0x468399
mov eax, dword [ebx + 0x84]
call fcn.0044def4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x468399
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044def4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x469164
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4182e4]
call fcn.0040588c
xor eax, eax
push ebp
push 0x4692a8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x519fe8], 0
jne 0x4691b7
mov ecx, dword [0x526574]
mov dl, 1
mov eax, dword [0x408798]
call fcn.0040d9f4
call fcn.00404660
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004036a0
mov eax, ebx
call fcn.004055d8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4692b8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406a18
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004055e8
test eax, eax
jle 0x46924f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x469248
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404fa4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404f8c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409684
test eax, eax
jne 0x469248
mov ebx, 0x15
jmp 0x469254
mov ebx, 0x10
jmp 0x469254
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x519fe8]
call fcn.00468fdc
mov eax, dword [ebp - 8]
call fcn.00468fdc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4692af
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, dword [0x4182e4]
call fcn.0040595c
ret

Function at 0x48122c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x481264]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x481242
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x481251
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x481260
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x492184
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4921e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409b08
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4921ef
lea eax, [ebp - 0xc]
call fcn.00404d0c
ret
Function at 0x4a8bb8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a8be6
mov eax, ebx
call fcn.004a966c
cmp dword [ebx + 0x40], 0
je 0x4a8bdf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a8c57
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a8c49
cmp dword [ebx + 8], 0
je 0x4a8c08
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 0x4a8c1a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a8c49
cmp dword [ebx + 8], 0
je 0x4a8bfb
cmp eax, 3
je 0x4a8c2d
dec eax
jne 0x4a8bfb
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 0x4a8bfb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a8bfb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a8c75
cmp dword [ebx + 0x14], 0xcc
je 0x4a8c75
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.004a8c80
pop ebx
ret
Function at 0x4c19c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004c15e4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004051dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4c1a1e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x526948]
mov dl, 1
mov eax, dword [0x4c1470]
call fcn.0040da30
call fcn.00404660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c1a28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004051dc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4c1a80
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x526cd4]
mov dl, 1
mov eax, dword [0x4c1470]
call fcn.0040da30
call fcn.00404660
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c1614
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c3f58
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ebx, 0xe
mov eax, 0x51b250
xor edx, edx
mov dl, byte [eax]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc eax
dec ebx
jne 0x4c3f66
xor ebx, ebx
mov ecx, 0x51ae50
mov eax, ebx
mov edx, 8
test al, 1
je 0x4c3f96
shr eax, 1
xor eax, esi
jmp 0x4c3f98
shr eax, 1
dec edx
jne 0x4c3f8c
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4c3f85
pop esi
pop ebx
ret
Function at 0x4c3fac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov ebp, 0x51ae50
test esi, esi
je 0x4c3fc1
test edi, edi
jg 0x4c3fc8
xor eax, eax
jmp 0x4c40d0
mov ebx, 0xdbc66688
cmp dword [0x51ae4c], 0
je 0x4c3fdb
call fcn.004c3f58
xor ebx, 0xffffffff
cmp edi, 8
jl 0x4c40ab
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jge 0x4c3fe7
test edi, edi
je 0x4c40cb
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
jne 0x4c40af
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c5ffc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4c6029
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4c60a8
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004c461c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4c6076
mov cx, word [esp]
sub cx, si
jmp 0x4c6078
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c605f
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4c609e
mov cx, word [esp]
sub cx, si
jmp 0x4c60a0
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c6087
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4c6105
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004c5cd0
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4c60f0
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4c6105
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4c6006
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cbc70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x4cbc90
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4cbc7e
pop edi
pop esi
pop ebx
ret
Function at 0x4cde8c
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4cdf2a
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x51f9d4]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x51f9d4]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x51f9d4]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x51f9d4]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4cdeab
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4cdf40
dec edx
je 0x4cdf75
jmp 0x4cdfc6
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x51f9d4]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x51f9d4]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4cdfc6
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x51f9d4]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x51f9d4]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x51f9d4]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ce028
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4ce047
add edx, 3
sar edx, 2
test edx, edx
jle 0x4ce154
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4ce07d
je 0x4ce0bd
sub ecx, 0x2b
je 0x4ce0b3
sub ecx, 4
je 0x4ce0b8
dec ecx
sub ecx, 0xa
jb 0x4ce0a6
jmp 0x4ce0c0
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4ce08f
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4ce099
jmp 0x4ce0c0
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4ce0c0
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4ce0c0
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4ce0c0
mov byte [eax], 0x3e
jmp 0x4ce0c0
mov byte [eax], 0x3f
jmp 0x4ce0c0
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4ce05f
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x4ce111
cmp byte [esp + 7], 0xff
jne 0x4ce111
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4ce149
cmp dl, 0xff
je 0x4ce149
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4ce056
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4cf7fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a71c
mov dword [esp], eax
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x4cf827
inc edx
xor eax, eax
mov ecx, edi
xor cl, byte [esi + eax]
mov byte [ebx + eax], cl
inc eax
dec edx
jne 0x4cf81b
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x4cf83a
inc edx
xor eax, eax
sub byte [ebx + eax], 0x20
inc eax
dec edx
jne 0x4cf832
pop edx
pop edi
pop esi
pop ebx
ret