joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16bd64e4
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd66e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x16bd66fc
call fcn.16bd43bc
mov eax, 0x16bd6710
call fcn.16bd7838
test al, al
je 0x16bd6557
lea eax, [ebp - 0xc]
mov edx, 0x16bd6724
call fcn.16bd43bc
jmp 0x16bd6572
mov eax, 0x16bd6738
call fcn.16bd7838
test al, al
je 0x16bd6572
lea eax, [ebp - 0xc]
mov edx, 0x16bd6750
call fcn.16bd43bc
mov edx, dword [ebp - 4]
mov eax, 0x16bd6768
call fcn.16bd5e9c
test al, al
je 0x16bd65bc
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.16bd450c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.16bd45cc
mov eax, dword [ebp - 0x114]
call fcn.16bd4790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x16bd6605
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
movzx edx, byte [ebp - 0x110]
call fcn.16bd450c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.16bd45cc
mov eax, dword [ebp - 0x118]
call fcn.16bd4790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.16bd4594
mov eax, dword [ebp - 0x11c]
call fcn.16bd7838
test al, al
jne 0x16bd6638
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.16bd3068
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.16bd4594
push dword [ebp - 0x120]
push 0x16bd6774
mov eax, 0x270f
call fcn.16bd3090
lea edx, [ebp - 0x124]
call fcn.16bd6c04
push dword [ebp - 0x124]
push 0x16bd6780
lea eax, [ebp - 8]
mov edx, 4
call fcn.16bd4694
push 9
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.16bd71a4
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd66ea
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.16bd4348
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.16bd4348
ret

Function at 0x16bd6800
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd6854
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.16bd4790
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd685b
lea eax, [ebp - 4]
call fcn.16bd4324
ret
Function at 0x16bd6864
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x16bd68bd
lea eax, [esp + 0xc]
push eax
push 0x16bd68c4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
add esp, 0x18
ret

Function at 0x16bd6a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
pop ecx
pop ebp
ret 8

Function at 0x16bd6a50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd6ac2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x48000080
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp ebx, 0xffffffff
jne 0x16bd6a9f
xor esi, esi
cmp esi, 0xffffffff
jne 0x16bd6aa6
xor esi, esi
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd6ac9
lea eax, [ebp - 4]
call fcn.16bd4324
ret

Function at 0x16bd6ad0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
mov eax, dword [ebp - 8]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd6bc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x16bd6b23
lea eax, [ebp - 0x24]
mov edx, dword [0x16c02c14]
call fcn.16bd451c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.16bd732c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x16bd6b95
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd6bcb
lea eax, [ebp - 0x24]
call fcn.16bd4324
lea eax, [ebp - 8]
mov edx, 2
call fcn.16bd4348
ret
Function at 0x16bd70b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd7191
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x16bd70ec
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x16bd716e
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.16bd47f0
mov eax, dword [ebp - 0xc]
call fcn.16bd4790
mov ebx, eax
mov eax, esi
test eax, eax
je 0x16bd711b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
test edi, edi
jl 0x16bd715b
inc edi
xor esi, esi
movzx eax, byte [ebx + esi]
cmp al, 0x5c
je 0x16bd7131
cmp al, 0x2f
jne 0x16bd7157
mov byte [ebx + esi], 0
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.16bd451c
mov eax, dword [ebp - 0x10]
call fcn.16bd7838
test al, al
je 0x16bd716e
mov byte [ebx + esi], 0x5c
inc esi
dec edi
jne 0x16bd7125
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp - 4]
call fcn.16bd7838
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd7198
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.16bd4348
lea eax, [ebp - 4]
call fcn.16bd4324
ret

Function at 0x16bd71b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x16bd728b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, 0x104
call fcn.16bd31b0
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
lea edx, [ebp - 0x104]
mov eax, ebx
call fcn.16bd4414
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call dword [0x16c02c60]
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.16bd6d10
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebx]
call dword [0x16c02c5c]
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.16bd6eec
mov edx, dword [ebp - 0x110]
mov eax, ebx
pop ecx
call fcn.16bd4618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd7292
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.16bd4348
ret
Function at 0x16bd7468
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd74da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x16bd74b8
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x16bd74bc
xor ebx, ebx
jmp 0x16bd74be
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd74e1
lea eax, [ebp - 4]
call fcn.16bd4324
ret

Function at 0x16bd74e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.16bd4780
mov eax, dword [ebp + 0xc]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd7598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x16c02c50], 0
je 0x16bd757d
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x16bd757d
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp + 8]
mov edx, 0x16bd75b0
call fcn.16bd45cc
mov esi, dword [ebp + 8]
test esi, esi
je 0x16bd7561
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
call fcn.16bd4790
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd759f
lea eax, [ebp + 8]
mov edx, 2
call fcn.16bd4348
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.16bd4790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x16bd7851
test al, 0x10
jne 0x16bd7855
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x16bd785c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd78fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x16bd78e5
test edi, edi
je 0x16bd78e5
mov eax, dword [ebp - 4]
call fcn.16bd6800
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x16bd78c6
cmp dword [ebp - 0x10], 0xffffffff
je 0x16bd78e5
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
mov ebx, dword [ebp - 0x10]
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp edi, dword [ebp - 0x14]
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd7902
lea eax, [ebp - 4]
call fcn.16bd4324
ret
Function at 0x16bd790c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
mov eax, dword [ebp - 8]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd797b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.16bd6ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd7982
lea eax, [ebp - 8]
mov edx, 2
call fcn.16bd4348
ret

Function at 0x16bd7b08
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x16bd7b11
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd7bee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [edi], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.16bd4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x16bd7bd8
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [edi], eax
cmp dword [edi], 0
jne 0x16bd7b86
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x16bd7bd8
mov eax, dword [edi]
call fcn.16bd2c94
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x16bd7bd8
xor ebx, ebx
jmp 0x16bd7bce
push 0
lea eax, [ebp - 0xc]
push eax
push 0x2000
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0xc], 0
je 0x16bd7bd2
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.16bd59a8
add ebx, dword [ebp - 0xc]
cmp ebx, dword [edi]
jb 0x16bd7b9a
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd7bf5
lea eax, [ebp - 4]
call fcn.16bd4324
ret

Function at 0x16bd8608
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
call fcn.16bd6f2c
test eax, eax
je 0x16bd868a
xor esi, esi
lea ecx, [ebp - 0x400]
mov eax, esi
mov edx, 8
test eax, 1
jbe 0x16bd8641
shr eax, 1
xor eax, 0xedb88320
jmp 0x16bd8643
shr eax, 1
dec edx
jne 0x16bd8630
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x16bd8629
mov ebx, 8
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x16bd8688
inc eax
xor esi, esi
mov edx, dword [ebp + 8]
movzx edx, byte [edx + esi]
xor dl, bl
movzx edx, dl
mov edx, dword [ebp + edx*4 - 0x400]
shr ebx, 8
and ebx, 0xffffff
xor edx, ebx
mov ebx, edx
inc esi
dec eax
jne 0x16bd8664
not ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x16bd8694
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov dword [esp], eax
xor edi, edi
cmp dword [esp], 0
je 0x16bd86e6
test ebx, ebx
je 0x16bd86e6
mov eax, ebx
call fcn.16bd2c94
mov edi, eax
test edi, edi
je 0x16bd86e6
mov esi, ebx
dec esi
test esi, esi
jb 0x16bd86e6
inc esi
xor eax, eax
mov edx, ebx
dec edx
sub dl, al
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
add dl, 0xda
mov ecx, ebx
dec ecx
sub ecx, eax
mov ebp, dword [esp]
xor dl, byte [ebp + ecx]
mov byte [edi + eax], dl
inc eax
dec esi
jne 0x16bd86c1
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x16bd87f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd88df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.16bd4378
lea edx, [ebp - 8]
mov eax, 0x16bd88f8
call fcn.16bd62dc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x16bd8843
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
call fcn.16bd8608
mov ebx, eax
test ebx, ebx
jne 0x16bd885d
mov ebx, 0x12345678
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.16bd6d94
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x16bd887a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
lea ecx, [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.16bd7fd4
test esi, esi
jle 0x16bd88c4
mov ebx, 1
mov eax, edi
call fcn.16bd47e8
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [edi]
movzx eax, byte [eax + ebx - 1]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + ebx - 1]
xor al, dl
movzx eax, al
mov ecx, 0x1a
xor edx, edx
div ecx
add dl, 0x61
pop eax
mov byte [eax], dl
inc ebx
dec esi
jne 0x16bd8891
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd88e6
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.16bd4348
ret
Function at 0x16bd8b80
Capabilities:
Switch active desktop

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x16bd8d7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.16bd4324
mov eax, esi
call fcn.16bd4324
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov byte [edi], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov edx, dword [ebx]
mov eax, 0x16bd8d94
call fcn.16bd5e9c
test al, al
je 0x16bd8bf3
mov eax, dword [ebp + 0x10]
mov word [eax], 5
mov edx, dword [ebx]
mov eax, 0x16bd8da4
call fcn.16bd4830
test eax, eax
je 0x16bd8d15
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
mov edx, 0x16bd8da4
xor ecx, ecx
call fcn.16bd61cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov ecx, 0x16bd8da4
xor edx, edx
call fcn.16bd61cc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.16bd4378
mov edx, dword [ebp - 4]
mov eax, 0x16bd8db4
call fcn.16bd5e9c
test al, al
je 0x16bd8cb8
lea eax, [ebp - 0x10]
push eax
mov edx, 0x16bd8db4
mov ecx, 0x16bd8dc4
mov eax, dword [ebp - 4]
call fcn.16bd61cc
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.16bd4378
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x16bd8c77
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x16bd8cb8
push 0
push 0x10000000
push 0
push 0
push 0
mov eax, dword [esi]
call fcn.16bd4790
push eax
call sub.user32.dll_CreateDesktopA
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x16bd8cb8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetThreadDesktop
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.user32.dll_SwitchDesktop
mov edx, dword [ebp - 4]
mov eax, 0x16bd8dd0
call fcn.16bd5e9c
test al, al
je 0x16bd8d15
lea eax, [ebp - 0x18]
push eax
mov edx, 0x16bd8dd0
mov ecx, 0x16bd8dc4
mov eax, dword [ebp - 4]
call fcn.16bd61cc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.16bd4378
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x16bd8cfe
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x16bd8d15
lea eax, [ebp - 0x1c]
call fcn.16bd71b4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.16bd4378
call fcn.16bd84b8
test al, al
je 0x16bd8d2b
mov eax, esi
mov edx, dword [0x16c02c3c]
call fcn.16bd451c
mov edx, dword [ebp - 4]
mov eax, 0x16bd8de0
call fcn.16bd5e9c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov eax, 0x16bd8df0
call fcn.16bd5e9c
mov byte [edi], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd8d83
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.16bd4348
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.16bd4348
lea eax, [ebp - 4]
call fcn.16bd4324
ret
Function at 0x16bd8f64
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd9085
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x16bd90a0
call fcn.16bd4830
test eax, eax
jg 0x16bd906a
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.16bd8efc
mov esi, eax
test esi, esi
jle 0x16bd906a
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.16bd47f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x16bd906a
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x16bd9003
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.16bd47f0
cmp dword [ebp - 8], 0
jne 0x16bd903c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x16bd9061
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd908c
lea eax, [ebp - 8]
mov edx, 2
call fcn.16bd4348
ret
Function at 0x16bd90a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.16bd4780
xor eax, eax
push ebp
push 0x16bd91d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.16bd8efc
mov esi, eax
test esi, esi
jle 0x16bd91be
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.16bd47f0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.16bd4790
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x16bd91be
mov edi, dword [ebp - 4]
test edi, edi
je 0x16bd9128
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.16bd47f0
cmp dword [ebp - 8], 0
jne 0x16bd9145
xor edi, edi
jmp 0x16bd914f
mov eax, dword [ebp - 8]
call fcn.16bd4790
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x16bd91b5
mov eax, dword [ebp - 0x18]
call fcn.16bd2c94
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x16bd91ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x16bd91a5
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x16bd91b5
mov eax, esi
call fcn.16bd2cb0
jmp 0x16bd91b5
mov eax, esi
call fcn.16bd2cb0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x16bd91e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.16bd4348
ret