joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf04dc70
Capabilities:
Create thread
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0f00ff55
test eax, eax
je 0xf04ddae
push ebx
push edi
xor edi, edi
push edi
push 0x100
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
jne 0xf04dccd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04ddac
push esi
push 0x244
call fcn.0f0070c9
mov esi, eax
cmp esi, edi
pop ecx
jne 0xf04dcfd
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04ddab
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
jne 0xf04dd19
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
jmp 0xf04dd7b
lea ecx, [esi + 0x44]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x200
mov dword [esi + 0x20], edi
mov dword [esi + 4], ecx
mov eax, dword [ebx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0xf04d941
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0xf04dd92
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x10]
call edi
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0f0058e2
pop ecx
jmp 0xf04dcf6
mov eax, dword [0xf0784d0]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [0xf0784d0], esi
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x20], esi
inc eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0xf04ec88
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0xf09cf9c], eax
mov eax, dword [ebp + 0xc]
mov dword [0xf09cfa4], eax
mov eax, dword [0xf071970]
push ebx
movzx ecx, ax
push esi
push edi
mov ebx, 0xffff0000
inc ecx
and eax, ebx
or ecx, eax
xor edi, edi
push edi
mov dword [0xf071970], ecx
call fcn.0f03b94c
mov eax, dword [0xf09cf8c]
mov dword [0xf09cfa8], eax
mov dword [0xf0784a8], 1
call sym.ntvdm.exe_getSS
movzx esi, ax
shl esi, 4
call sym.ntvdm.exe_getBP
movzx eax, ax
add esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0xf04ea85
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0xf04ed2a
push edi
call sym.ntvdm.exe_setCF
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03bb39
push dword [0xf09cfa8]
call fcn.0f0330e7
mov dword [0xf0784a8], edi
jmp 0xf04ed91
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x28
mov edx, 0xf09ce80
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov word [0xf09cf18], 0xc0
call sub.KERNEL32.dll_GetNextVDMCommand
xor esi, esi
cmp word [0xf09cf10], si
jbe 0xf04ed68
inc esi
push esi
call sym.ntvdm.exe_setCF
mov dword [0xf0784a0], esi
jmp 0xf04ed91
push esi
call sym.ntvdm.exe_setCF
xor eax, eax
mov al, byte [0xf09cf98]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03bb39
push dword [0xf09cfa8]
call fcn.0f0330e7
mov dword [0xf0784a8], esi
mov eax, dword [0xf071970]
movzx ecx, ax
and eax, ebx
pop edi
dec ecx
or ecx, eax
pop esi
mov dword [0xf071970], ecx
pop ebx
pop ebp
ret 8
Function at 0xf04f23d
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 0xf04f294
cmp eax, 0x80000005
jne 0xf04f284
push 0xce
jmp 0xf04f28c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04f2e6
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 0xf04f284
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 0xf04f2ea
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 0xf04f35e
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 0xf04f33c
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 0xf04f33c
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 0xf04f664
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 0xf04f6b6
cmp eax, 0x80000005
jne 0xf04f6a4
push 0xce
jmp 0xf04f6ac
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04f6c2
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
leave
ret 8
Function at 0xf04f731
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 0xf04f778
cmp eax, 0x80000005
jne 0xf04f797
push 0xce
jmp 0xf04f79f
cmp dword [ebp + 0xc], 0
je 0xf04f7a9
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 0xf04f7ad
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf04f7cf
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 0xf04f7cd
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 0xf04fd29
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 0xf04fd61
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf04fd92
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 0xf04fd96
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 0xf04fdcd
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 0xf050133
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xf0a51f8]
mov edx, dword [ebp + 8]
mov ecx, dword [0xf0784ec]
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 0xf0501bd
test byte [ebp - 0x12], 1
mov eax, dword [ebp - 0x18]
je 0xf050187
cmp esi, eax
jbe 0xf05019b
mov ecx, dword [ebp - 0x24]
add ecx, eax
cmp ecx, dword [0xf0a5200]
jae 0xf0501bd
mov eax, dword [0xf0a51f8]
jmp 0xf050155
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 0xf0501bd
mov eax, dword [ebp - 4]
jmp 0xf0501bf
xor eax, eax
pop esi
leave
ret 4

Function at 0xf05028d
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 0xf050316
jb 0xf050316
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 0xf050312
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 0xf0502e8
mov dword [ebp + 0x14], esi
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call fcn.0f0501ea
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 0xf050320
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 0xf05032c
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 0xf05039f
test esi, esi
je 0xf05039f
cmp word [ebp + 0xc], 2
jne 0xf050369
lea ecx, [esi + 8]
jmp 0xf05036b
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 0xf050417
lea eax, [edi + 0x10]
push ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.0f0070c9
mov ebx, eax
test ebx, ebx
pop ecx
je 0xf050416
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 0xf05040c
mov ecx, dword [0xf09cc30]
and ecx, 0xf
cmp cl, 2
jb 0xf050402
push eax
push 0xf003bf8
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
push ebx
call fcn.0f0058e2
xor eax, eax
jmp 0xf050415
push ebx
call fcn.0f0058e2
xor eax, eax
inc eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0xf05090d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0xf0784fc]
mov word [ebp - 4], ax
jmp 0xf05098d
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 0xf05093d
cmp byte [eax + 7], 0x80
je 0xf050985
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 0xf050985
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 0xf050985
movzx eax, byte [eax + 5]
movzx ecx, byte [ebp + 0xc]
xor eax, ecx
test eax, 0xfffffffe
je 0xf05099d
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
cmp ax, word [0xf0784f8]
jb 0xf050920
xor ax, ax
leave
ret 8
mov eax, dword [ebp - 4]
or eax, 7
jmp 0xf050999
Function at 0xf05475f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0xf062038]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
push 9
xor edi, edi
push edi
push 0xf003c38
push 0x80000002
mov dword [ebp - 0x88], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf054874
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 0xf054858
test eax, eax
jne 0xf05481b
cmp dword [ebp - 0x8c], 3
jbe 0xf05481b
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 0xf05481b
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 0xf0547e5
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.0f01b9b9
leave
ret
Function at 0xf05d40f
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0xf079ae4], 0
je 0xf05d484
push 0
push dword [ebp + 8]
call fcn.0f00f745
and dword [ebp - 8], 0
push 0x40
push 0x40000000
push 2
mov dword [ebp - 4], eax
mov eax, dword [0xf09bc30]
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 [0xf079ae8]
push dword [0xf0799d8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf05d48a
push 0x1b5
push 0xf004108
push eax
push 0x3e9
call fcn.0f034a13
xor eax, eax
leave
ret 4
xor eax, eax
inc eax
jmp 0xf05d486

Function at 0xf05d494
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 [0xf079ae4], edi
je 0xf05d553
push edi
push dword [ebp + 0xc]
call fcn.0f00f745
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.0f05c8e1
push dword [ebp + 0xc]
push dword [0xf079ae8]
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp eax, edi
jge 0xf05d4fc
push 0x1f0
push 0xf004108
push eax
push 0x3e9
call fcn.0f034a13
xor eax, eax
jmp 0xf05d556
mov eax, dword [0xf079ae8]
cmp eax, edi
jne 0xf05d512
push 0x1f6
push 0xf004108
push edi
jmp 0xf05d549
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 [0xf0799d8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, edi
jge 0xf05d4f8
push 0x209
push 0xf004108
push eax
push 0x3e9
call fcn.0f034a13
or eax, 0xffffffff
pop edi
leave
ret 8
Function at 0xf05d993
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, 0xf0799e0
mov dword [0xf079ae0], 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 [0xf09bc30], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xa
or edi, 0xffffffff
push 0xf0799d8
mov dword [0xf079ae8], 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 0xf05da48
push 4
push esi
push 2
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0xf079ae4
push dword [0xf079ae8]
mov dword [0xf079ae4], esi
push dword [0xf0799d8]
mov dword [ebp + 8], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf05da48
call fcn.0f03d0ec
test eax, eax
jne 0xf05da4c
call fcn.0f05d37c
mov eax, edi
jmp 0xf05da80
push ebx
call fcn.0f05c905
mov ebx, eax
jmp 0xf05da78
xor eax, eax
mov al, bl
dec al
push eax
call fcn.0f05c911
cmp ax, 0xa000
jbe 0xf05da72
push eax
call fcn.0f05d40f
test eax, eax
je 0xf05da86
add ebx, 0xffff
cmp bx, si
jne 0xf05da56
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
mov eax, edi
jmp 0xf05da7f
Function at 0xf05df68
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 [0xf079d64]
jae 0xf05e0c3
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0xf079d80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0xf05e0c3
push 1
push esi
push ebx
call fcn.0f0587a0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0xf05e0cd
push 2
push esi
push ebx
call fcn.0f0587a0
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05e0cd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0xf05e070
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 0xf05e006
mov dword [0xf066a7c], 0xc
or esi, 0xffffffff
jmp 0xf05e0b0
push 0x8000
push ebx
call fcn.0f05e0d9
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0xf05e021
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.0f01d9f5
add esp, 0xc
cmp eax, 0xffffffff
je 0xf05e03b
sub edi, eax
test edi, edi
jg 0xf05e016
jmp 0xf05e051
cmp dword [0xf066a80], 5
jne 0xf05e04e
mov dword [0xf066a7c], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.0f05e0d9
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 0xf05e0b0
jge 0xf05e0b0
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0f0587a0
push ebx
call fcn.0f01e4a0
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 0xf05e0b0
mov dword [0xf066a7c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xf066a80], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0f0587a0
add esp, 0xc
mov eax, esi
pop edi
jmp 0xf05e0d0
mov dword [0xf066a7c], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x437e00
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push esi
push edi
push 0x200
push eax
call fcn.00437d90
add esp, 8
lea ecx, [esp + 0x208]
lea edx, [esp + 8]
push ecx
push 0
push 0x455264
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x208]
push 0x32
push eax
call fcn.004379f0
mov esi, eax
push esi
call fcn.00437ae0
lea ecx, [esp + 0x214]
push ecx
call fcn.00437b40
add esp, 0x10
cmp esi, 0xffffffff
jne 0x437eac
push ebx
push 1
lea edx, [esp + 0x10]
push 0x1a
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x455258
or ecx, esi
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebx
mov esi, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
lea ecx, [esp + 8]
push esi
push ecx
push edi
call fcn.00438390
add esp, 0xc
mov byte [edi + esi - 1], 0
pop edi
pop esi
add esp, 0x400
ret
Function at 0x402390
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ecx
push ebp
push edi
push 0x48d1c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x48d510]
xor ecx, ecx
test eax, eax
je 0x4023d0
lea esp, [esp]
cmp eax, esi
je 0x4023be
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x4023b0
jmp 0x4023d0
test ecx, ecx
je 0x4023c8
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x4023d0
mov ecx, dword [eax]
mov dword [0x48d510], ecx
cmp dword [esi + 0x24], 0
je 0x402447
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x37c], 0
je 0x402400
mov byte [eax + 0x308], 1
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x37c]
push 0xdead
push eax
call ebp
mov edi, dword [esi + 0x24]
mov eax, edi
xor ecx, ecx
test eax, eax
je 0x402441
jmp 0x402410
cmp eax, edi
je 0x40241e
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x402410
jmp 0x402441
test ecx, ecx
je 0x402428
mov edx, dword [eax]
mov dword [ecx], edx
jmp 0x40242d
mov eax, dword [eax]
mov dword [esi + 0x24], eax
test edi, edi
je 0x402441
mov eax, edi
call fcn.00402d60
push edi
call fcn.0042f8ec
add esp, 4
cmp dword [esi + 0x24], 0
jne 0x4023dc
cmp dword [esi + 0x18], 0
je 0x40248a
mov edi, dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 0x30]
je 0x40247c
mov ecx, dword [edi + 0x2c]
push 0xdead
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x402483
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
jmp 0x402483
mov dword [edi + 0x28], 1
mov dword [esi + 0x18], 0
cmp dword [0x48d510], 0
jne 0x4024ac
mov eax, dword [0x48d514]
test eax, eax
je 0x4024ac
push 0
push 0
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x48d1c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ecx
ret