joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3ebc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x4b406b
mov eax, dword [ebp - 4]
call fcn.004576c4
test al, al
je 0x4b406b
mov eax, dword [ebp - 4]
mov byte [eax + 0x221], 1
mov eax, dword [ebp - 4]
call fcn.004573c0
push eax
call sub.user32.dll_HideCaret
mov eax, dword [ebp - 4]
call fcn.004573c0
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b404c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b4025
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045053c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004504f8
inc eax
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b4007
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov ebx, eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00455354
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20c], 1
jne 0x4b3fba
push 0xcc0020
push 2
push 2
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045053c
push eax
mov eax, dword [ebp - 4]
call fcn.004504f8
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x4b3fe6
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045053c
push eax
mov eax, dword [ebp - 4]
call fcn.004504f8
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b400e
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5f70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e6117
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x11b], 0x12
test byte [ebx + 0x1c], 0x10
jne 0x4e60f9
mov eax, ebx
call fcn.004f0034
test byte [eax + 0x2f4], 8
jne 0x4e60f9
push 0
mov eax, ebx
call fcn.004f0058
push eax
push 0x4514
mov eax, ebx
call fcn.004f0058
push eax
call sub.user32.dll_SendMessageA
dec eax
je 0x4e60f9
cmp word [ebx + 0x1ba], 0
je 0x4e6002
mov byte [ebp - 1], 1
lea ecx, [ebp - 1]
mov edx, ebx
mov eax, dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
cmp byte [ebp - 1], 0
je 0x4e60f9
mov eax, ebx
call fcn.004f0034
test eax, eax
je 0x4e60f9
mov al, byte [ebx + 0x50]
cmp al, 4
je 0x4e60ee
mov byte [ebx + 0xa1], al
mov byte [ebx + 0x50], 4
cmp byte [ebx + 0x51], 0
jne 0x4e605a
mov al, byte [ebx + 0xa1]
cmp al, 2
je 0x4e605a
cmp al, 1
je 0x4e605a
cmp al, 3
je 0x4e605a
mov eax, ebx
call fcn.004f0034
lea edx, [ebp - 0x14]
call fcn.00450494
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x91]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x64], 0
je 0x4e60a2
lea edx, [ebp - 0x18]
mov eax, dword [0x555af8]
mov eax, dword [eax]
call fcn.00470f68
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xbc]
mov ecx, 0x3f
call fcn.00409e5c
mov eax, dword [0x555af8]
mov eax, dword [eax]
call fcn.00470d7c
push 0
mov eax, dword [0x555af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e60de
mov eax, ebx
call fcn.004f0034
test eax, eax
je 0x4e60cf
mov eax, ebx
call fcn.004f0034
lea edx, [ebp - 0x1c]
call fcn.00450af4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0xbc]
mov ecx, 0x3f
call fcn.00409e5c
push 0
mov eax, ebx
call fcn.004f0058
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebx + 0xa4]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
jmp 0x4e60f5
mov eax, ebx
call fcn.004e5a08
mov byte [ebx + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e611e
lea eax, [ebp - 0x1c]
call fcn.004046f0
lea eax, [ebp - 0x18]
call fcn.004046f0
ret
Function at 0x4fab78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fab9f
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fabb1
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x4fabbd
add word [ebp - 6], 0x8000
mov byte [ebp - 0xd], 0
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004faa08
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4fac0a
xor eax, eax
push ebp
push 0x4fac03
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 4]
xor edx, edx
call fcn.004faa38
pop ecx
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fac0a
ret
cmp byte [ebp - 0xd], 2
je 0x4fabbd
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5297b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x529925
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x529900
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004048d8
lea eax, [ebp - 0x118]
mov edx, 0x52993c
call fcn.004049b8
mov eax, dword [ebp - 0x118]
call fcn.00404bb0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x529872
lea eax, [ebp - 0x111]
call fcn.00409d98
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004047e0
jmp 0x529879
mov eax, esi
call fcn.004046f0
cmp bl, 0x61
jae 0x52989a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040de5c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404744
jmp 0x5298b4
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ddd0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404744
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x529948
call fcn.0040a4fc
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529907
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x531a8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x531bfd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x531bd8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004048d8
lea eax, [ebp - 0x118]
mov edx, 0x531c14
call fcn.004049b8
mov eax, dword [ebp - 0x118]
call fcn.00404bb0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x531b4a
lea eax, [ebp - 0x111]
call fcn.00409d98
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004047e0
jmp 0x531b51
mov eax, esi
call fcn.004046f0
cmp bl, 0x61
jae 0x531b72
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040de5c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404744
jmp 0x531b8c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040ddd0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404744
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x531c20
call fcn.0040a4fc
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531bdf
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x535d4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x535f1b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x40], 0
je 0x535d87
cmp byte [ebx + 0x41], 0
jne 0x535d87
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x535db3
cmp byte [ebx + 0x41], 1
jne 0x535da1
lea eax, [ebp - 0x24]
push eax
push 0x12
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004a8880
jmp 0x535db3
lea eax, [ebp - 0x24]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004a8880
xor edx, edx
push ebp
push 0x535ef6
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x48]
mov edx, 0x104
call fcn.00404d3c
mov eax, dword [ebx + 0x48]
call fcn.00404bb0
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x44], 0
je 0x535dec
mov eax, dword [ebx + 0x44]
call fcn.00404bb0
mov dword [ebp - 0x1c], eax
jmp 0x535df1
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x41], 1
jne 0x535e00
mov dword [ebp - 0x18], 0x1000
jmp 0x535e07
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], 0x535974
mov dword [ebp - 0x10], ebx
mov eax, dword [0x555af8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00535f2c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x535edb
xor eax, eax
push ebp
push 0x535ed4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x41], 0
jne 0x535ea1
lea eax, [ebp - 0x12d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x535e6f
call fcn.0040e750
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x12d]
call fcn.00409fe4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00536084
mov edx, dword [ebp - 0x134]
lea eax, [ebx + 0x50]
call fcn.00404744
jmp 0x535eac
lea eax, [ebx + 0x50]
mov edx, dword [ebx + 0x48]
call fcn.00404744
lea eax, [ebx + 0x4c]
mov edx, dword [ebx + 0x50]
call fcn.00404744
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535edb
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535efd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x535ef5
push eax
call sub.ole32.dll_CoTaskMemFree
ret

Function at 0x5360e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x536135
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x536119
test al, 0x10
jne 0x53611d
xor ebx, ebx
jmp 0x53611f
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53613c
lea eax, [ebp - 4]
call fcn.004046f0
ret
Function at 0x53eb0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x53eba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404dfc
mov eax, 0x104
call fcn.00409ff8
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x53eb67
mov eax, esi
mov edx, ebx
call fcn.00404f24
mov eax, ebx
call fcn.0040a054
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.004171f0
test al, al
je 0x53eb8d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ebaa
lea eax, [ebp - 0xc]
call fcn.00406560
ret

Function at 0x5401ac
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x5402fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0054000c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404bb0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5402d9
xor eax, eax
push ebp
push 0x5402d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5402bb
xor eax, eax
push ebp
push 0x5402b4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x54029d
xor eax, eax
push ebp
push 0x540296
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00540044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54029d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5402bb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5402d9
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.005400c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540301
lea eax, [ebp - 4]
call fcn.004046f0
ret
Function at 0x540684
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x5553d0]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x5406c0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x5406d8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x5406d1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004032dc
xor edx, edx
mov eax, 0x5555d0
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x540742
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x5406f6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x540980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x540999
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x540992
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x5409ab
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x5409a4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.00540574
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x5409c5
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.00540684
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x540a4a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x540a67
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.00540604
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x540a90
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x540aa8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x540ac1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x540aba
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x540ad5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0054046c
test bl, bl
jne 0x540ba8
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x56efbc
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x540b0c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x540b20
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00540980
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x540b52
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x540b01
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x540b75
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x540b86
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x540b9a
jmp 0x540c63
cmp bl, 1
jne 0x540c63
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x56f016
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x540bc8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x540bdc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00540980
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x540c0e
sub ebx, 6
inc dword [ebp - 8]
jne 0x540bbd
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x540c35
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x540c46
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x540c5a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.005404f0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x5433ec
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
xor eax, eax
push ebp
push 0x543527
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x2c]
call fcn.00543204
mov edx, dword [ebp - 0x2c]
mov eax, 0x543540
call fcn.00404cf4
dec eax
jne 0x543502
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x543456
push 0
push 0x54354c
push 0x543568
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x543511
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x543483
push 0
push 0x54354c
push 0x543568
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x543511
lea eax, [ebp - 0x14]
push eax
push 0x543574
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x5434ac
push 0
push 0x543588
push 0x543568
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x543511
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test al, al
je 0x5434f1
push 0
push 0x5435a8
push 0x543568
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x543511
push 0
push 0xc
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x543511
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54352e
lea eax, [ebp - 0x2c]
call fcn.004046f0
ret

Function at 0x544f0c
Capabilities:
Create process on windows

Disassembly:
push 3
push 0
push 0
push eax
push 0x544f20
push 0
call sub.shell32.dll_ShellExecuteA
ret

Function at 0x549aac
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x549ab5
mov eax, dword [ebp - 4]
add esp, 0xfffffffc
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004046f0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x549b2c
cmp dword [ebp - 4], 0
jbe 0x549b2c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x4005]
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 4], 0
jbe 0x549b2c
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x4005], 0
mov eax, esi
lea edx, [ebp - 0x4005]
mov ecx, 0x4001
call fcn.00404960
pop esi
pop ebx
mov esp, ebp
pop ebp
ret