joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6db51d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x6db52f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x6db5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x6db52f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x6db5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x6db5310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x6db51d0
xor eax, eax
push ebp
push 0x6db51c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.06db4f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x6db51ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x6db5330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x6db51ae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db51d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x6db52ea
cmp byte [ebp - 0xd], 0
jne 0x6db5217
cmp byte [ebp - 0x12], 0
je 0x6db52ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x6db5230
dec ebx
cmp byte [ebx], 0x2e
je 0x6db523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x6db522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x6db52ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x6db527c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x6db52ea
cmp byte [ebp - 0xd], 0
je 0x6db52ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x6db52ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6db59f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ecx, 0x6dca7b0
mov ebx, ecx
cmp dword [ecx + 0x18448], 0
je 0x6db5a2d
mov edx, ecx
xor eax, eax
mov esi, eax
add esi, esi
add esi, esi
inc esi
imul esi, dword [ecx + 0x18448]
xor dword [edx], esi
add edx, 4
inc eax
cmp eax, 0x6112
jne 0x6db5a0a
xor eax, eax
mov dword [ecx + 0x18448], eax
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x6db5d44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, edx
mov ebp, eax
xor edi, edi
call fcn.06db5b68
test esi, esi
je 0x6db5d92
test ebp, ebp
je 0x6db5d92
mov eax, esi
call fcn.06db2c94
mov edi, eax
test edi, edi
je 0x6db5d92
mov edx, esi
dec edx
test edx, edx
jb 0x6db5d92
inc edx
xor eax, eax
mov ecx, esi
dec ecx
sub ecx, eax
movzx ecx, byte [ebp + ecx]
mov ebx, eax
imul bx, word [0x6de2c58]
add bl, 0xda
xor cl, bl
mov byte [edi + eax], cl
inc eax
dec edx
jne 0x6db5d72
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6db62dc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x104
call fcn.06db31b0
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.06db4790
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.06db4414
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x6db64e4
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.06db4780
xor eax, eax
push ebp
push 0x6db66e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x6db66fc
call fcn.06db43bc
mov eax, 0x6db6710
call fcn.06db7838
test al, al
je 0x6db6557
lea eax, [ebp - 0xc]
mov edx, 0x6db6724
call fcn.06db43bc
jmp 0x6db6572
mov eax, 0x6db6738
call fcn.06db7838
test al, al
je 0x6db6572
lea eax, [ebp - 0xc]
mov edx, 0x6db6750
call fcn.06db43bc
mov edx, dword [ebp - 4]
mov eax, 0x6db6768
call fcn.06db5e9c
test al, al
je 0x6db65bc
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.06db450c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.06db45cc
mov eax, dword [ebp - 0x114]
call fcn.06db4790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x6db6605
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
movzx edx, byte [ebp - 0x110]
call fcn.06db450c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.06db45cc
mov eax, dword [ebp - 0x118]
call fcn.06db4790
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.06db4594
mov eax, dword [ebp - 0x11c]
call fcn.06db7838
test al, al
jne 0x6db6638
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.06db3068
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.06db4594
push dword [ebp - 0x120]
push 0x6db6774
mov eax, 0x270f
call fcn.06db3090
lea edx, [ebp - 0x124]
call fcn.06db6c04
push dword [ebp - 0x124]
push 0x6db6780
lea eax, [ebp - 8]
mov edx, 4
call fcn.06db4694
push 9
mov eax, dword [ebp - 8]
call fcn.06db4790
push eax
mov eax, dword [ebp - 4]
call fcn.06db4790
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.06db71a4
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db66ea
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.06db4348
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.06db4348
ret

Function at 0x6db6800
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.06db4780
xor eax, eax
push ebp
push 0x6db6854
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.06db4790
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 0x6db685b
lea eax, [ebp - 4]
call fcn.06db4324
ret
Function at 0x6db6864
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 0x6db68bd
lea eax, [esp + 0xc]
push eax
push 0x6db68c4
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 0x6db6a30
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 0x6db6a50
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.06db4780
xor eax, eax
push ebp
push 0x6db6ac2
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.06db4790
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 0x6db6a9f
xor esi, esi
cmp esi, 0xffffffff
jne 0x6db6aa6
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 0x6db6ac9
lea eax, [ebp - 4]
call fcn.06db4324
ret

Function at 0x6db6ad0
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.06db4780
mov eax, dword [ebp - 8]
call fcn.06db4780
xor eax, eax
push ebp
push 0x6db6bc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x6db6b23
lea eax, [ebp - 0x24]
mov edx, dword [0x6de2c14]
call fcn.06db451c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.06db732c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.06db4790
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.06db4790
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 0x6db6b95
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 0x6db6bcb
lea eax, [ebp - 0x24]
call fcn.06db4324
lea eax, [ebp - 8]
mov edx, 2
call fcn.06db4348
ret
Function at 0x6db70b0
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.06db4780
xor eax, eax
push ebp
push 0x6db7191
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 0x6db70ec
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x6db716e
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.06db47f0
mov eax, dword [ebp - 0xc]
call fcn.06db4790
mov ebx, eax
mov eax, esi
test eax, eax
je 0x6db711b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
test edi, edi
jl 0x6db715b
inc edi
xor esi, esi
movzx eax, byte [ebx + esi]
cmp al, 0x5c
je 0x6db7131
cmp al, 0x2f
jne 0x6db7157
mov byte [ebx + esi], 0
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.06db451c
mov eax, dword [ebp - 0x10]
call fcn.06db7838
test al, al
je 0x6db716e
mov byte [ebx + esi], 0x5c
inc esi
dec edi
jne 0x6db7125
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp - 4]
call fcn.06db7838
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db7198
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.06db4348
lea eax, [ebp - 4]
call fcn.06db4324
ret

Function at 0x6db71b4
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 0x6db728b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, 0x104
call fcn.06db31b0
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.06db4414
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call dword [0x6de2c60]
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.06db6d10
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebx]
call dword [0x6de2c5c]
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.06db6eec
mov edx, dword [ebp - 0x110]
mov eax, ebx
pop ecx
call fcn.06db4618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db7292
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.06db4348
ret
Function at 0x6db7468
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.06db4780
xor eax, eax
push ebp
push 0x6db74da
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.06db4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x6db74b8
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x6db74bc
xor ebx, ebx
jmp 0x6db74be
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 0x6db74e1
lea eax, [ebp - 4]
call fcn.06db4324
ret

Function at 0x6db74e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.06db4780
mov eax, dword [ebp + 0xc]
call fcn.06db4780
xor eax, eax
push ebp
push 0x6db7598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x6de2c50], 0
je 0x6db757d
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
call fcn.06db4790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6db757d
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp + 8]
mov edx, 0x6db75b0
call fcn.06db45cc
mov esi, dword [ebp + 8]
test esi, esi
je 0x6db7561
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
call fcn.06db4790
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 0x6db759f
lea eax, [ebp + 8]
mov edx, 2
call fcn.06db4348
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.06db4790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x6db7851
test al, 0x10
jne 0x6db7855
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x6db785c
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.06db4780
xor eax, eax
push ebp
push 0x6db78fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x6db78e5
test edi, edi
je 0x6db78e5
mov eax, dword [ebp - 4]
call fcn.06db6800
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.06db4790
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 0x6db78c6
cmp dword [ebp - 0x10], 0xffffffff
je 0x6db78e5
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 0x6db7902
lea eax, [ebp - 4]
call fcn.06db4324
ret
Function at 0x6db790c
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.06db4780
mov eax, dword [ebp - 8]
call fcn.06db4780
xor eax, eax
push ebp
push 0x6db797b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.06db4790
push eax
mov eax, dword [ebp - 4]
call fcn.06db4790
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.06db6ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db7982
lea eax, [ebp - 8]
mov edx, 2
call fcn.06db4348
ret

Function at 0x6db7b08
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 0x6db7b11
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.06db4780
xor eax, eax
push ebp
push 0x6db7bee
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.06db4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x6db7bd8
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [edi], eax
cmp dword [edi], 0
jne 0x6db7b86
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x6db7bd8
mov eax, dword [edi]
call fcn.06db2c94
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6db7bd8
xor ebx, ebx
jmp 0x6db7bce
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 0x6db7bd2
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.06db59a8
add ebx, dword [ebp - 0xc]
cmp ebx, dword [edi]
jb 0x6db7b9a
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db7bf5
lea eax, [ebp - 4]
call fcn.06db4324
ret

Function at 0x6db8608
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.06db6f2c
test eax, eax
je 0x6db868a
xor esi, esi
lea ecx, [ebp - 0x400]
mov eax, esi
mov edx, 8
test eax, 1
jbe 0x6db8641
shr eax, 1
xor eax, 0xedb88320
jmp 0x6db8643
shr eax, 1
dec edx
jne 0x6db8630
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x6db8629
mov ebx, 8
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x6db8688
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 0x6db8664
not ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x6db8694
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 0x6db86e6
test ebx, ebx
je 0x6db86e6
mov eax, ebx
call fcn.06db2c94
mov edi, eax
test edi, edi
je 0x6db86e6
mov esi, ebx
dec esi
test esi, esi
jb 0x6db86e6
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 0x6db86c1
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6db87f4
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.06db4780
xor eax, eax
push ebp
push 0x6db88df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.06db4378
lea edx, [ebp - 8]
mov eax, 0x6db88f8
call fcn.06db62dc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x6db8843
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.06db4790
push eax
call fcn.06db8608
mov ebx, eax
test ebx, ebx
jne 0x6db885d
mov ebx, 0x12345678
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.06db6d94
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x6db887a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
lea ecx, [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.06db7fd4
test esi, esi
jle 0x6db88c4
mov ebx, 1
mov eax, edi
call fcn.06db47e8
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 0x6db8891
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db88e6
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.06db4348
ret
Function at 0x6db8b80
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 0x6db8d7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.06db4324
mov eax, esi
call fcn.06db4324
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, 0x6db8d94
call fcn.06db5e9c
test al, al
je 0x6db8bf3
mov eax, dword [ebp + 0x10]
mov word [eax], 5
mov edx, dword [ebx]
mov eax, 0x6db8da4
call fcn.06db4830
test eax, eax
je 0x6db8d15
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
mov edx, 0x6db8da4
xor ecx, ecx
call fcn.06db61cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov ecx, 0x6db8da4
xor edx, edx
call fcn.06db61cc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.06db4378
mov edx, dword [ebp - 4]
mov eax, 0x6db8db4
call fcn.06db5e9c
test al, al
je 0x6db8cb8
lea eax, [ebp - 0x10]
push eax
mov edx, 0x6db8db4
mov ecx, 0x6db8dc4
mov eax, dword [ebp - 4]
call fcn.06db61cc
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.06db4378
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x6db8c77
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x6db8cb8
push 0
push 0x10000000
push 0
push 0
push 0
mov eax, dword [esi]
call fcn.06db4790
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 0x6db8cb8
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, 0x6db8dd0
call fcn.06db5e9c
test al, al
je 0x6db8d15
lea eax, [ebp - 0x18]
push eax
mov edx, 0x6db8dd0
mov ecx, 0x6db8dc4
mov eax, dword [ebp - 4]
call fcn.06db61cc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.06db4378
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x6db8cfe
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x6db8d15
lea eax, [ebp - 0x1c]
call fcn.06db71b4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.06db4378
call fcn.06db84b8
test al, al
je 0x6db8d2b
mov eax, esi
mov edx, dword [0x6de2c3c]
call fcn.06db451c
mov edx, dword [ebp - 4]
mov eax, 0x6db8de0
call fcn.06db5e9c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov eax, 0x6db8df0
call fcn.06db5e9c
mov byte [edi], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6db8d83
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.06db4348
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.06db4348
lea eax, [ebp - 4]
call fcn.06db4324
ret