joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf04efda
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov esi, dword [sym.imp.ntdll.dll_RtlInitString]
lea ebx, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 8]
push eax
push ebx
call edi
test eax, eax
jge 0xf04f031
cmp eax, 0x80000005
jne 0xf04f021
push 0xce
jmp 0xf04f029
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04f083
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call esi
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call edi
xor edi, edi
cmp eax, edi
jl 0xf04f021
mov word [ebp - 0xe], 0x20a
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0xe]
mov eax, dword [eax + 0x30]
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0xf04f087
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
xor eax, eax
jmp 0xf04f0fb
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
cmp esi, edi
je 0xf04f0d9
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x105
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
cmp eax, edi
jge 0xf04f0d9
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword fs:[0x18]
push dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0xf04f401
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf04f453
cmp eax, 0x80000005
jne 0xf04f441
push 0xce
jmp 0xf04f449
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04f45f
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
leave
ret 8
Function at 0xf04f4ce
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov esi, dword [sym.imp.ntdll.dll_RtlInitString]
lea ebx, [eax + 0xbf8]
lea eax, [ebp - 0x10]
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call edi
test eax, eax
jge 0xf04f515
cmp eax, 0x80000005
jne 0xf04f534
push 0xce
jmp 0xf04f53c
cmp dword [ebp + 0xc], 0
je 0xf04f546
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call esi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jge 0xf04f54a
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04f56c
and dword [ebp - 4], 0
push 2
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0xf04f56a
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xf04fac6
Capabilities:
Get hostname
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword fs:[0x18]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [eax + 0x30]
shl ecx, 1
push ecx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0xf04fafe
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04fb2f
mov ax, word [esi]
mov word [ebp - 6], ax
mov eax, dword [ebp + 8]
push esi
push edi
mov word [ebp - 8], bx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0xf04fb33
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0xf04fb6a
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
movzx eax, word [ebp - 8]
mov dword [esi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04fed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xf0a41b8]
mov edx, dword [ebp + 8]
mov ecx, dword [0xf0774ac]
push esi
lea esi, [eax + edx - 1]
lea edx, [eax - 1]
not edx
and esi, edx
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
jl 0xf04ff5a
test byte [ebp - 0x12], 1
mov eax, dword [ebp - 0x18]
je 0xf04ff24
cmp esi, eax
jbe 0xf04ff38
mov ecx, dword [ebp - 0x24]
add ecx, eax
cmp ecx, dword [0xf0a41c0]
jae 0xf04ff5a
mov eax, dword [0xf0a41b8]
jmp 0xf04fef2
push 0x40
push 0x2000
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jl 0xf04ff5a
mov eax, dword [ebp - 4]
jmp 0xf04ff5c
xor eax, eax
pop esi
leave
ret 4

Function at 0xf05002a
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
add eax, 0xfff
lea ecx, [edi + 0xfff]
shr eax, 0xc
shr ecx, 0xc
cmp eax, ecx
je 0xf0500b3
jb 0xf0500b3
and dword [ebp + 0xc], 0
push 0x40
push 0x1000
push esi
push 0
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov ebx, eax
test ebx, ebx
jl 0xf0500af
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov esi, dword [esi]
cmp esi, edi
mov dword [ebp + 0x14], edi
ja 0xf050085
mov dword [ebp + 0x14], esi
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call fcn.0f04ff87
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 0x8000
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
mov dword [ebp + 0x14], edi
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, ebx
jmp 0xf0500bd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0xf0500c9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [sym.ntvdm.exe_ExpLdt]
push esi
movzx esi, word [ebp + 8]
push edi
movzx edi, word [ebp + 0xc]
mov eax, esi
shr eax, 3
lea eax, [ecx + eax*8]
shl edi, 3
cmp word [ebp + 0xc], 2
mov dword [ebp + 8], eax
ja 0xf05013c
test esi, esi
je 0xf05013c
cmp word [ebp + 0xc], 2
jne 0xf050106
lea ecx, [esi + 8]
jmp 0xf050108
xor ecx, ecx
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 0xa
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ntdll.dll_NtVdmControl]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0xf0501b4
lea eax, [edi + 0x10]
push ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.0f007089
mov ebx, eax
test ebx, ebx
pop ecx
je 0xf0501b3
mov ecx, edi
mov eax, ecx
mov dword [ebx], esi
mov esi, dword [ebp + 8]
mov dword [ebx + 4], edi
shr ecx, 2
lea edi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
and ecx, 3
push 0xb
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtVdmControl]
test eax, eax
jge 0xf0501a9
mov ecx, dword [0xf09bbf0]
and ecx, 0xf
cmp cl, 2
jb 0xf05019f
push eax
push 0xf003bc0
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push ebx
call fcn.0f0058a2
xor eax, eax
jmp 0xf0501b2
push ebx
call fcn.0f0058a2
xor eax, eax
inc eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0xf0506aa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0xf0774bc]
mov word [ebp - 4], ax
jmp 0xf05072a
movzx edx, word [ebp - 4]
mov eax, dword [sym.ntvdm.exe_ExpLdt]
shr edx, 3
shl edx, 3
add eax, edx
cmp byte [eax + 5], 0
jne 0xf0506da
cmp byte [eax + 7], 0x80
je 0xf050722
xor eax, eax
xor ecx, ecx
mov ax, word [ebp - 4]
or eax, 7
lsl ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xffff
jne 0xf050722
mov eax, dword [sym.ntvdm.exe_ExpLdt]
xor ecx, ecx
add eax, edx
mov ch, byte [eax + 7]
movzx edx, word [eax + 2]
mov cl, byte [eax + 4]
shl ecx, 0x10
or ecx, edx
cmp dword [ebp + 8], ecx
jne 0xf050722
movzx eax, byte [eax + 5]
movzx ecx, byte [ebp + 0xc]
xor eax, ecx
test eax, 0xfffffffe
je 0xf05073a
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
cmp ax, word [0xf0774b8]
jb 0xf0506bd
xor ax, ax
leave
ret 8
mov eax, dword [ebp - 4]
or eax, 7
jmp 0xf050736
Function at 0xf054465
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0xf061038]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
push 9
xor edi, edi
push edi
push 0xf003c00
push 0x80000002
mov dword [ebp - 0x88], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf05457a
push ebx
push esi
push 0x40
pop esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push edi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x98]
mov dword [ebp - 0x90], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x8c], esi
call edi
mov ebx, 0x103
jmp 0xf05455e
test eax, eax
jne 0xf054521
cmp dword [ebp - 0x8c], 3
jbe 0xf054521
lea eax, [ebp - 0x9c]
push eax
push 0xa
lea eax, [ebp - 0x41]
push eax
call dword [sym.imp.ntdll.dll_RtlCharToInteger]
test eax, eax
jl 0xf054521
mov ecx, dword [ebp - 0x9c]
xor eax, eax
dec ecx
inc eax
shl eax, cl
or dword [ebp - 0x88], eax
inc dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov dword [ebp - 0x94], esi
push dword [ebp - 0x98]
mov dword [ebp - 0x8c], esi
call edi
cmp eax, ebx
jne 0xf0544eb
push dword [ebp - 0x98]
and dword [ebp - 0x88], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x88]
pop edi
call fcn.0f01b780
leave
ret
Function at 0xf05d10f
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xf078aa4], 0
je 0xf05d184
push 0
push dword [ebp + 8]
call fcn.0f00f68e
and dword [ebp - 8], 0
push 0x40
push 0x40000000
push 2
mov dword [ebp - 4], eax
mov eax, dword [0xf09abf0]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov eax, 0x4000
push eax
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push dword [0xf078aa8]
push dword [0xf078998]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf05d18a
push 0x1b5
push 0xf0040d0
push eax
push 0x3e9
call fcn.0f034820
xor eax, eax
leave
ret 4
xor eax, eax
inc eax
jmp 0xf05d186

Function at 0xf05d194
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0xf078aa4], edi
je 0xf05d253
push edi
push dword [ebp + 0xc]
call fcn.0f00f68e
mov dword [ebp + 0xc], eax
movsx eax, word [ebp + 8]
shl eax, 0xe
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x4000
call fcn.0f05c5e1
push dword [ebp + 0xc]
push dword [0xf078aa8]
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp eax, edi
jge 0xf05d1fc
push 0x1f0
push 0xf0040d0
push eax
push 0x3e9
call fcn.0f034820
xor eax, eax
jmp 0xf05d256
mov eax, dword [0xf078aa8]
cmp eax, edi
jne 0xf05d212
push 0x1f6
push 0xf0040d0
push edi
jmp 0xf05d249
push 0x40
push 0x40000000
push 2
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x4000
push edi
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [0xf078998]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, edi
jge 0xf05d1f8
push 0x209
push 0xf0040d0
push eax
push 0x3e9
call fcn.0f034820
or eax, 0xffffffff
pop edi
leave
ret 8
Function at 0xf05d693
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x40
pop edx
xor eax, eax
mov edi, 0xf0789a0
mov dword [0xf078aa0], edi
mov ecx, edx
rep stosd dword es:[edi], eax
movsx eax, word [ebp + 8]
xor esi, esi
push esi
shl eax, 0x14
push 0x8000000
lea ecx, [eax + 0x4000]
push edx
mov dword [0xf09abf0], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
or edi, 0xffffffff
push 0xf078998
mov dword [0xf078aa8], edi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jl 0xf05d748
push 4
push esi
push 2
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0xf078aa4
push dword [0xf078aa8]
mov dword [0xf078aa4], esi
push dword [0xf078998]
mov dword [ebp + 8], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf05d748
call fcn.0f03cfbe
test eax, eax
jne 0xf05d74c
call fcn.0f05d07c
mov eax, edi
jmp 0xf05d780
push ebx
call fcn.0f05c605
mov ebx, eax
jmp 0xf05d778
xor eax, eax
mov al, bl
dec al
push eax
call fcn.0f05c611
cmp ax, 0xa000
jbe 0xf05d772
push eax
call fcn.0f05d10f
test eax, eax
je 0xf05d786
add ebx, 0xffff
cmp bx, si
jne 0xf05d756
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
mov eax, edi
jmp 0xf05d77f
Function at 0xf05dc68
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0xf078d24]
jae 0xf05ddc3
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0xf078d40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0xf05ddc3
push 1
push esi
push ebx
call fcn.0f0584a0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0xf05ddcd
push 2
push esi
push ebx
call fcn.0f0584a0
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05ddcd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0xf05dd70
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0xf05dd06
mov dword [0xf065a7c], 0xc
or esi, 0xffffffff
jmp 0xf05ddb0
push 0x8000
push ebx
call fcn.0f05ddd9
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0xf05dd21
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.0f01d7c5
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05dd3b
sub edi, eax
test edi, edi
jg 0xf05dd16
jmp 0xf05dd51
cmp dword [0xf065a80], 5
jne 0xf05dd4e
mov dword [0xf065a7c], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.0f05ddd9
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0xf05ddb0
jge 0xf05ddb0
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0f0584a0
push ebx
call fcn.0f01e270
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0xf05ddb0
mov dword [0xf065a7c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xf065a80], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0f0584a0
add esp, 0xc
mov eax, esi
pop edi
jmp 0xf05ddd0
mov dword [0xf065a7c], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x10002b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0xbe
mov dword [ebp - 4], 0
jmp 0x10002b22
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x10002b61
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 0x666dae97]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10002b5c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10002b19
mov eax, 1
shl eax, 4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10002b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0xe0
mov dword [ebp - 4], 0
jmp 0x10002ba2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x10002be1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x604e8c40]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x10002bdc
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x10002b99
mov eax, 1
shl eax, 3
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10003450
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1005ba98
push 0x1002b100
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
mov eax, dword [0x1005f904]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x28
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10060a28]
test eax, eax
jge 0x100034b1
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
jmp 0x1000353a
lea edx, [ebp - 0x28]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100034e0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1a], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x1a]
jmp 0x1000353a
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.10004810
add esp, 0x10
movzx eax, al
test eax, eax
je 0x10003515
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1b], 1
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x1b]
jmp 0x1000353a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10003538
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x1005f904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x340], 0
lea ecx, [ebp - 0x334]
call fcn.10002e70
mov dword [ebp - 4], 0
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x34c], ecx
cmp dword [ebp - 0x34c], 0x104
jae 0x10003c13
jmp 0x10003c18
call fcn.10028f8e
mov edx, dword [ebp - 0x34c]
mov byte [ebp + edx - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x10003c52
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002e230
add esp, 4
test eax, eax
je 0x10003c52
lea ecx, [ebp - 0x114]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x10003c8a
lea edx, [ebp - 0x334]
push edx
mov ecx, dword [ebp + 8]
call fcn.10002d00
mov eax, dword [ebp - 0x340]
or eax, 1
mov dword [ebp - 0x340], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.100030b0
mov eax, dword [ebp + 8]
jmp 0x10003e0d
mov cx, word [0x1004a414]
mov word [ebp - 0x338], cx
mov dl, byte [0x1004a416]
mov byte [ebp - 0x336], dl
mov dword [ebp - 0x348], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x33c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x33c]
mov cl, byte [eax]
mov byte [ebp + edx - 0x338], cl
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10003d97
lea ecx, [ebp - 0x218]
push ecx
call fcn.1002e230
add esp, 4
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0x104
jae 0x10003d97
mov edx, dword [ebp - 0x344]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1002e2c0
add esp, 0xc
test eax, eax
jne 0x10003d41
mov dword [ebp - 0x350], 1
jmp 0x10003d4b
mov dword [ebp - 0x350], 0
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x348], edx
cmp dword [ebp - 0x348], 0
je 0x10003d97
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x344]
push eax
lea ecx, [ebp - 0x338]
push ecx
push str._s_s
lea edx, [ebp - 0x31c]
push edx
call fcn.10002420
add esp, 0x10
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x334]
call fcn.10003160
mov ecx, dword [ebp - 0x33c]
movsx edx, byte [ecx]
mov dword [ebp - 0x354], edx
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x354], 0
je 0x10003dc0
jmp 0x10003d97
cmp dword [ebp - 0x348], 0
jne 0x10003dda
mov ecx, dword [ebp - 0x33c]
movsx edx, byte [ecx]
test edx, edx
jne 0x10003cba
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002d00
mov ecx, dword [ebp - 0x340]
or ecx, 1
mov dword [ebp - 0x340], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.100030b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10029068
mov esp, ebp
pop ebp
ret