joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080966
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x100ac724], 0
je 0x1008097e
cmp dword [0x100ac728], 0
jne 0x100809bf
mov dl, 1
mov eax, dword [0x100aac7c]
call fcn.10076b96
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x100809c6
mov eax, dword [0x100ac720]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x100809c6
push eax
call dword [0x100ac728]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10083546
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x10083631
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call fcn.1007eb9a
xor eax, eax
push ebp
push 0x10083614
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.10072d5e
test al, al
je 0x10083601
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.1007ef9a
test al, al
je 0x10083601
cmp dword [ebp - 0xc], 0
jne 0x100835a7
cmp dword [ebp - 0x10], 0
je 0x10083601
call fcn.10078192
lea eax, [ebp - 0x18]
push eax
push 0x40
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10083601
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, ebx
call fcn.1007d386
test al, al
jne 0x100835e5
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
mov edx, 8
mov eax, ebx
call fcn.10080666
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 8
push ebx
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008361b
call fcn.1007ed2a
ret
Function at 0x10084d96
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x10084f00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, esi
mov edx, 0x10084f16
call fcn.1006fc2e
mov eax, dword [ebp - 0x14]
call fcn.1006fbb2
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10084ee8
mov eax, dword [ebx]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.1006e5f6
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x10084e3c
inc edi
xor esi, esi
mov al, byte [ebp - 0xc]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x10084e29
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
sub edx, 0x18
mov ebx, dword [ebp - 0x10]
add ebx, 0x18
mov eax, ebx
call fcn.1007c152
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
sub edi, 0x18
dec edi
test edi, edi
jl 0x10084e9c
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x10084e74
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x10084eea
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10084f07
lea eax, [ebp - 0x14]
call fcn.1006fa0a
ret
Function at 0x10084f22
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x10084f7f
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x10084f5b
mov edx, ebx
mov eax, dword [esp]
call fcn.10084f22
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x10084f50
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10085c76
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x10085d1d
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10085d17
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10085d11
push 0
push edi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x10085ce8
cmp ebx, dword [ebp - 8]
jbe 0x10085ce8
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.1007c152
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [ebp - 0x20]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10086d4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x10086eb1
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.KERNEL32.dll_lstrlenW
mov edx, eax
cmp byte [ebp - 1], 0
je 0x10086d9b
mov eax, edx
sub eax, 2
cmp eax, 1
jl 0x10086d9b
cmp word [ebx + eax*2], 0x5c
jne 0x10086d96
mov word [ebx + eax*2], 0
mov edx, eax
jmp 0x10086d9b
dec eax
test eax, eax
jne 0x10086d85
test edx, edx
jle 0x10086db4
cmp word [ebx + edx*2 - 2], 0x5c
je 0x10086db4
mov word [ebx + edx*2], 0x5c
mov word [ebx + edx*2 + 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
jne 0x10086df2
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.1007cf86
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, ebx
call fcn.1007cf86
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.1006f6d6
jmp 0x10086e2e
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
call fcn.1006f62e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dl, 1
call fcn.1007cfda
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, ebx
call fcn.1007cf86
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.1006f6d6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.1006f68a
cmp eax, 6
jle 0x10086e7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x3a
je 0x10086e69
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax], 0x5c
jne 0x10086e7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x5c
jne 0x10086e7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x10086e80
xor ebx, ebx
jmp 0x10086e82
mov bl, 1
test bl, bl
je 0x10086e96
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10086eb8
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.1006f45a
ret
Function at 0x10086ec2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor edx, edx
xor eax, eax
call fcn.10086d4e
pop ecx
test al, al
jne 0x10086f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.10086d4e
pop ecx
test al, al
jne 0x10086f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x100ac658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.10086d4e
pop ecx
test al, al
jne 0x10086f7d
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.10086d4e
pop ecx
test al, al
jne 0x10086f7d
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.10086d4e
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10087a56
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x10087aed
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100879a2
test al, al
je 0x10087aed
cmp word [ebp - 2], 0x5a4d
jne 0x10087aed
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100879a2
test al, al
je 0x10087aed
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100879a2
test al, al
je 0x10087aed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x10087aed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x10087af1
xor eax, eax
jmp 0x10087af3
mov al, 1
test al, al
je 0x10087b10
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x100881ba
Capabilities:
Get number of processors

Disassembly:
mov eax, dword gs:[0x60]
mov edx, dword gs:[0x64]
ret
Function at 0x10089d8a
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.100889de
mov ebx, eax
test bl, bl
je 0x10089de4
test esi, 4
jne 0x10089def
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x10089def
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1008c62a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
xor eax, eax
mov dword [ebp - 0x154], eax
xor eax, eax
push ebp
push 0x1008c6d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x154]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.1006f62e
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
xor ecx, ecx
call fcn.1008a8ae
mov ebx, eax
test bl, bl
je 0x1008c6bd
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x1008c6a5
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x148]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008c6dd
lea eax, [ebp - 0x154]
call fcn.1006f436
ret
Function at 0x1008c962
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x1008cb4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100abd0c], 0
jne 0x1008cb31
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1008cb2a
xor eax, eax
push ebp
push 0x1008cb23
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x1008cb0c
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1008cb06
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x100aad40]
call fcn.10072b16
mov eax, dword [ebp - 0x24]
call fcn.1006f88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008ca3a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x100aad44]
call fcn.10072b16
mov eax, dword [ebp - 0x28]
call fcn.1006f88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008ca6d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x100aad48]
call fcn.10072b16
mov eax, dword [ebp - 0x2c]
call fcn.1006f88a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008caa0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1008caf2
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x1008cabd
cmp eax, dword [ebp - 0x10]
je 0x1008caee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x1008cad2
cmp eax, dword [ebp - 0x18]
je 0x1008caee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1008cae7
cmp eax, dword [ebp - 0x20]
je 0x1008caee
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1008caaa
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008cb2a
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x100abd0c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008cb53
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1006f45a
ret
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x813ebc], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813ebc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813ec0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813ec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ecc], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ec8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x813ebc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x813ec8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x813ecc], edi
je 0x40d2e5
push eax
call ebx
push dword [0x813ecc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x813ec0]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x813ec4]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813ebc]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x40199b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor ecx, ecx
mov dword [ebp - 4], ecx
cld

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0xd513bd5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x1c7a0934
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1e2f4290
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4164056a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1000ef98
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x1003ef89
call fcn.10019d19
mov dword [ebp - 0x14], ecx
mov eax, dword fs:[0x2c]
mov ebx, 0x100784c0
mov ecx, dword [0x10077c88]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100784b8]
cmp eax, dword [ecx + 4]
jle 0x1000f006
mov edi, 0x100784b8
push edi
call fcn.10019322
cmp dword [0x100784b8], 0xffffffff
pop ecx
jne 0x1000f006
and dword [ebp - 4], 0
mov ecx, ebx
push 0x1006e2d0
call fcn.1000c8be
push 0x1003fe17
call fcn.100198f2
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
call fcn.100192d8
pop ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000f010
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000f0b6
cmp dword [0x100784d4], 8
mov ecx, esi
mov edi, dword [esi + 0x14]
cmovae ebx, dword [0x100784c0]
cmp edi, 8
jb 0x1000f03a
mov ecx, dword [esi]
push dword [ebp - 0x14]
mov edx, dword [esi + 0x10]
push dword [0x100784d0]
push ebx
push ecx
call fcn.100104d3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000f0a6
and dword [ebp - 0x2c], 0
and dword [ebp - 0x1c], 0
xor ecx, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x10], eax
mov word [ebp - 0x2c], cx
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [ebp - 0x18], 7
cmp edi, 8
jb 0x1000f07e
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000bedd
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 2
call fcn.1000ef98
lea ecx, [ebp - 0x2c]
call fcn.1000be69
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x1000f0ad
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.10019ce7
ret 4