joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537638
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 0x5377e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5377c4
mov dl, 1
mov eax, dword [0x43c5b8]
call fcn.0044aab4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00407648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5377b3
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.004a0588
test al, al
je 0x5377a6
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, 0x5377f4
lea eax, [ebp - 0x394]
call fcn.004218bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5377a6
xor eax, eax
push ebp
push 0x53779f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x537864
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x537788
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408300
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x537788
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5377a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5376a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044a9f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5377ea
lea eax, [ebp - 0x3a0]
call fcn.00407648
ret

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

Disassembly:
push ecx
mov eax, dword [0x56e36c]
cmp byte [eax + 0xb1], 0
jne 0x53840e
cmp dword [0x56e38c], 0
jne 0x5383ce
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x567f90]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x56e38c], eax
cmp dword [0x56e388], 0
jne 0x5383e9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x56e388], eax
cmp dword [0x56e390], 0
jne 0x53840e
push esp
push 0
push 0
mov eax, dword [0x567f8c]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x56e390], eax
pop edx
ret
Function at 0x538724
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x53873b
add esp, 0xfffffff0
call fcn.00406018
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004534f4
mov eax, dword [0x568188]
cmp byte [eax], 0
jne 0x538768
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x5684c4]
cmp word [eax + 2], 0
jne 0x538782
mov eax, dword [0x5684c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0053a8b0
mov eax, dword [0x568614]
cmp word [eax + 2], 0
jne 0x53879c
mov eax, dword [0x568614]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0053aab4
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x4646d8]
call fcn.0046a6d8
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x53b02c
mov dl, 1
mov eax, dword [0x438e44]
call fcn.004059dc
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x438e44]
call fcn.004059dc
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x468fb8]
call fcn.00473c48
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x538980
mov eax, dword [0x568384]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004740dc
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x53b314
mov dl, 1
mov eax, dword [0x438e44]
call fcn.004059dc
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x568384]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004216bc
test eax, eax
je 0x5388b0
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0042146c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004216a0
test eax, eax
je 0x5388c8
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 + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00408300
push ebx
push 0x53a294
call fcn.0052e3b8
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x568188]
cmp byte [eax], 0
jne 0x538919
mov eax, ebx
call fcn.00538b40
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0053b548
mov eax, ebx
call fcn.0053c174
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x538976
call fcn.00406070
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x538e68
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x538f0a
cmp dword [ebx + 0x98], 0
jne 0x538f04
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x538da4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x538f04
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 0x538eca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x538f04
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00446444
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x538ed9
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x56e36c]
cmp dword [eax + 0x178], 0
je 0x53928d
test bl, bl
jne 0x5391db
cmp dword [esi + 0xa0], 0
jne 0x5391d0
mov eax, esi
call fcn.0053bfc4
push eax
push 0x539034
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x5391a1
mov eax, dword [0x56e36c]
cmp byte [eax + 0xd7], 0
je 0x5391a1
mov eax, dword [esi + 0xdc]
call fcn.00409428
mov edi, eax
cmp edi, 0
jl 0x5391a1
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x53918a
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5391d0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00446444
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5391b0
inc dword [esi + 0xa0]
jmp 0x53928d
cmp dword [esi + 0xa0], 0
jle 0x53928d
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x53928d
cmp dword [esi + 0x48], 0
je 0x539238
mov eax, dword [0x56e36c]
cmp byte [eax + 0xd7], 0
je 0x539238
mov eax, dword [esi + 0xdc]
call fcn.00409428
mov edi, eax
cmp edi, 0
jl 0x539238
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x539221
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x539267
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00446444
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x539247
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x52ad7c]
call fcn.004095d4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x539ee0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x539f4b
cmp byte [ebx + 0xd7], 0
jne 0x539f4b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004077d0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x539f38
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x539f58
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407a28
jmp 0x539f58
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407a28
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x53b730
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x53b79e
mov eax, esi
call fcn.0049a5b4
test al, al
je 0x53b79e
mov eax, dword [ebx + 0x88]
call fcn.0049a208
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x53b79e
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x53b792
push 0
mov eax, dword [ebx + 0x88]
call fcn.0049a208
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.00491070
jmp 0x53b79e
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0053b568
pop esi
pop ebx
ret
Function at 0x541f1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x541f96
mov eax, dword [ebx + 8]
call fcn.0049a208
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a8c28]
call fcn.00494690
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004b0edc
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x541830
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0049a208
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0049a208
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x54200c
mov eax, dword [ebx + 8]
call fcn.0049a208
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a8c28]
call fcn.00494690
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004b0edc
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x54187c
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0049a208
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0049a208
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x542078
mov eax, dword [ebx + 8]
call fcn.0049a208
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a9664]
call fcn.00494690
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0049a208
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0049a208
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x544564
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040772c
xor eax, eax
push ebp
push 0x544635
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov ax, 0x5c
call fcn.005444fc
mov esi, eax
test esi, esi
jle 0x54461a
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00408620
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00408254
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x54461a
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5445df
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00408620
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00408254
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54463c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004076a8
ret

Function at 0x544648
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040772c
xor eax, eax
push ebp
push 0x544711
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov ax, 0x5c
call fcn.005444fc
mov esi, eax
test esi, esi
jle 0x5446f6
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00408620
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.00408254
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5446f6
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5446c3
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00408620
mov eax, dword [ebp - 8]
call fcn.00408254
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544718
lea eax, [ebp - 8]
mov edx, 2
call fcn.004076a8
ret

Function at 0x548918
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x56e3a4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x54893a
shr eax, 1
xor eax, 0xedb88320
jmp 0x54893c
shr eax, 1
dec edx
jne 0x548928
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x548921
mov byte [0x56e7a4], 1
pop esi
pop ebx
ret
Function at 0x548958
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x56e7a4], 0
jne 0x54896f
call fcn.00548918
mov eax, edi
dec eax
test eax, eax
jl 0x548997
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56e3a4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x548979
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x54b66c
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.0x54b706.0
jmp dword [ecx*4 + 0x54b69f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54b6d1
sub dl, 8
je 0x54b6e0
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b338
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b38c
jmp case.0x54b706.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x54b706.0
movzx ecx, byte [ecx + 0x54b70d]
jmp dword [ecx*4 + 0x54b71e]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b42c
jmp case.0x54b706.0
cmp dl, 3
jne 0x54b74b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b484
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b440
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b4c8
jmp case.0x54b706.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54b776
sub dl, 8
je 0x54b782
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b4f4
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b558
jmp case.0x54b706.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x54b7a1
sub dl, 8
je 0x54b7ad
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b608
jmp case.0x54b706.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x54b630
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 0x54b84f
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.0054a874
test eax, eax
je 0x54b84f
mov eax, ebx
call fcn.0054b858
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 0x54b7e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x54b858
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 0x54b889
dec al
je 0x54b8c4
dec al
je 0x54b909
dec al
je 0x54b972
jmp 0x54b9fc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x54b9fc
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 0x54b899
jmp 0x54b9fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54b9fc
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 0x54b8d4
jmp 0x54b9fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54b9fc
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 0x54b938
xor ebp, ebp
jmp 0x54b948
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 0x54b951
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 0x54b919
jmp 0x54b9fc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x54b9fc
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 0x54b9cb
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.005489a0
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 0x54b986
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x552808
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffdc
xor ebx, ebx
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x55287e
lea eax, [esp + 8]
push eax
push 0x552888
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x552875
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [esp]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, ebx
add esp, 0x24
pop ebx
ret

Function at 0x5528ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x552939
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x20e]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x20e]
call fcn.004217a4
mov ebx, dword [ebp - 0x214]
lea edx, [ebp - 4]
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x218]
call fcn.004272e8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407a28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552940
lea eax, [ebp - 0x214]
call fcn.00407648
lea eax, [ebp - 4]
call fcn.00407648
ret

Function at 0x5529dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x552a69
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x20e]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x20e]
call fcn.004217a4
mov ebx, dword [ebp - 0x214]
lea edx, [ebp - 4]
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x218]
call fcn.004272e8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407a28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552a70
lea eax, [ebp - 0x214]
call fcn.00407648
lea eax, [ebp - 4]
call fcn.00407648
ret