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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5786e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x5786c4
mov dl, 1
mov eax, dword [0x4e3548]
call fcn.004efcc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.005367e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5786b3
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.0059e6bc
test al, al
je 0x5786a6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5786f4
lea eax, [ebp - 0x394]
call fcn.0051c0a8
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x5786a6
xor eax, eax
push ebp
push 0x57869f
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 - 0x314]
push eax
push 0
push 0
push 0x578764
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x578688
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00537548
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x578688
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00537548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5786a6
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5785a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004efc00
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5786ea
lea eax, [ebp - 0x3a0]
call fcn.005367e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x62fc6c]
cmp byte [eax + 0xad], 0
jne 0x5792b2
cmp dword [0x62fc84], 0
jne 0x579272
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x62409c]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x62fc84], eax
cmp dword [0x62fc80], 0
jne 0x57928d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x62fc80], eax
cmp dword [0x62fc88], 0
jne 0x5792b2
push esp
push 0
push 0
mov eax, dword [0x6241a4]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x62fc88], eax
pop edx
ret
Function at 0x5795c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5795df
add esp, 0xfffffff0
call fcn.00535360
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004f8570
mov eax, dword [0x62a33c]
cmp byte [eax], 0
jne 0x57960c
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x62a384]
cmp word [eax + 2], 0
jne 0x579626
mov eax, dword [0x62a384]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0057b690
mov eax, dword [0x62a388]
cmp word [eax + 2], 0
jne 0x579640
mov eax, dword [0x62a388]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0057b894
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x57be0c
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
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 [0x55a1cc]
call fcn.0056558c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x579820
mov eax, dword [0x62a334]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00565a20
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x57c0f4
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x98], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x62a334]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0051bed0
test eax, eax
je 0x579751
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0051bc84
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0051beb4
test eax, eax
je 0x579769
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00537548
push ebx
push 0x57b07c
call fcn.0056f2d0
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x62a33c]
cmp byte [eax], 0
jne 0x5797ba
mov eax, ebx
call fcn.00579994
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.0057c320
mov eax, ebx
call fcn.0057cf50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x579817
call fcn.005353b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x579c60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x579d02
cmp dword [ebx + 0x94], 0
jne 0x579cfc
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x579bac
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x579cfc
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 0x579cc2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x579cfc
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.004ec0e0
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x579cd1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x62fc6c]
cmp dword [eax + 0x170], 0
je 0x57a085
test bl, bl
jne 0x579fd3
cmp dword [esi + 0x9c], 0
jne 0x579fc8
mov eax, esi
call fcn.0057cda0
push eax
push 0x579e2c
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x44], 0
je 0x579f99
mov eax, dword [0x62fc6c]
cmp byte [eax + 0xd3], 0
je 0x579f99
mov eax, dword [esi + 0xd8]
call fcn.005384b4
mov edi, eax
cmp edi, 0
jl 0x579f99
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 0x579f82
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x579fc8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004ec0e0
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x579fa8
inc dword [esi + 0x9c]
jmp 0x57a085
cmp dword [esi + 0x9c], 0
jle 0x57a085
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x57a085
cmp dword [esi + 0x44], 0
je 0x57a030
mov eax, dword [0x62fc6c]
cmp byte [eax + 0xd3], 0
je 0x57a030
mov eax, dword [esi + 0xd8]
call fcn.005384b4
mov edi, eax
cmp edi, 0
jl 0x57a030
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 0x57a019
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x57a05f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004ec0e0
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x57a03f
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 [0x56d1a8]
call fcn.00538674
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x57acc8
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 0x57ad33
cmp byte [ebx + 0xd3], 0
jne 0x57ad33
push 0x100
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.0053694c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x57ad20
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x57ad40
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00536ba4
jmp 0x57ad40
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00536ba4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x57c508
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x57c576
mov eax, esi
call fcn.00598608
test al, al
je 0x57c576
mov eax, dword [ebx + 0x84]
call fcn.0059825c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x57c576
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x57c56a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0059825c
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0058f1d8
jmp 0x57c576
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0057c340
pop esi
pop ebx
ret

Function at 0x57f8f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x57f930]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x57f90c
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x57f91c
or bx, 4
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x57f92c
or bx, 2
mov eax, ebx
pop ebx
ret
Function at 0x58c878
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x62fd34], 0
je 0x58c9b9
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x62a370]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x58c9b9
mov eax, dword [0x62fd38]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x62fd34]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x58c988
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x62fd34]
call fcn.004ec0e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x58c980
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x58c980
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x58c980
mov eax, dword [ebp - 0x14]
call fcn.0059825c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x58c980
push ebp
call fcn.0058c834
pop ecx
test al, al
jne 0x58c980
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.005350b8
test al, al
je 0x58c980
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.005350b8
cmp byte [ebp - 1], 0
je 0x58c980
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00530b10
test al, al
je 0x58c980
mov edx, dword [ebp - 0x14]
mov eax, dword [0x62fd38]
call fcn.0058bf8c
inc edi
dec ebx
jne 0x58c8dd
mov eax, dword [0x62fd38]
cmp dword [eax + 8], 0
jle 0x58c9a0
mov eax, dword [0x62fd38]
call fcn.0058c044
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x58c9b9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0058c698
pop ecx
test al, al
jne 0x58c9b9
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x594dd4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00530af8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0058edf8
test ebx, ebx
jne 0x594e27
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00594c50
mov ebx, eax
test ebx, ebx
je 0x594f1d
cmp esi, ebx
je 0x594e50
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x594e65
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x594e9d
add eax, 0xffffff5f
sub eax, 2
jb 0x594eb5
dec eax
sub eax, 2
jb 0x594ec9
dec eax
sub eax, 2
jb 0x594ebf
jmp 0x594ed3
add eax, 0xfffffdff
sub eax, 2
jb 0x594eb5
dec eax
sub eax, 2
jb 0x594ec9
dec eax
sub eax, 2
jb 0x594ebf
jmp 0x594ed3
mov byte [esp + 0x120], 0
jmp 0x594edb
mov byte [esp + 0x120], 2
jmp 0x594edb
mov byte [esp + 0x120], 1
jmp 0x594edb
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0056f380
mov esi, eax
call fcn.0058b72c
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005907d0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x594f1f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x5a3504
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5a3532
mov eax, ebx
call fcn.005a3fb8
cmp dword [ebx + 0x40], 0
je 0x5a352b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5a35a3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5a3595
cmp dword [ebx + 8], 0
je 0x5a3554
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 0x5a3566
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5a3595
cmp dword [ebx + 8], 0
je 0x5a3547
cmp eax, 3
je 0x5a3579
dec eax
jne 0x5a3547
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 0x5a3547
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5a3547
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5a35c1
cmp dword [ebx + 0x14], 0xcc
je 0x5a35c1
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.005a35cc
pop ebx
ret
Function at 0x5b9620
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x62fdcc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5b9642
shr eax, 1
xor eax, 0xedb88320
jmp 0x5b9644
shr eax, 1
dec edx
jne 0x5b9630
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5b9629
mov byte [0x6301cc], 1
pop esi
pop ebx
ret

Function at 0x5b9660
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6301cc], 0
jne 0x5b9677
call fcn.005b9620
mov eax, edi
dec eax
test eax, eax
jl 0x5b969f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x62fdcc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5b9681
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5bc42c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5bc4c6.0
jmp dword [ecx*4 + 0x5bc45f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bc491
sub dl, 8
je 0x5bc4a0
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc0d4
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc12c
jmp case.0x5bc4c6.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5bc4c6.0
movzx ecx, byte [ecx + 0x5bc4cd]
jmp dword [ecx*4 + 0x5bc4de]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc1d8
jmp case.0x5bc4c6.0
cmp dl, 3
jne 0x5bc50b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc230
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc1ec
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc274
jmp case.0x5bc4c6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bc536
sub dl, 8
je 0x5bc542
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc2a0
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc30c
jmp case.0x5bc4c6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5bc561
sub dl, 8
je 0x5bc56d
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc3c8
jmp case.0x5bc4c6.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5bc3f0
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x5bc60f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005bb5d8
test eax, eax
je 0x5bc60f
mov eax, ebx
call fcn.005bc618
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5bc5a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5bc618
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 0x5bc649
dec al
je 0x5bc684
dec al
je 0x5bc6c9
dec al
je 0x5bc732
jmp 0x5bc7bc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5bc7bc
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 0x5bc659
jmp 0x5bc7bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bc7bc
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 0x5bc694
jmp 0x5bc7bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bc7bc
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 0x5bc6f8
xor ebp, ebp
jmp 0x5bc708
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 0x5bc711
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 0x5bc6d9
jmp 0x5bc7bc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5bc7bc
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 0x5bc78b
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.005b96a8
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 0x5bc746
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5ccfc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5ccfe0
call fcn.005ce390
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x5ccfff
test bl, 1
je 0x5ccfff
call fcn.005d5790
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret