joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66201f57
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x6621b4d0
call fcn.6620d074
sub esp, 0x300
push esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xbc]
call fcn.66202f60
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.662033b0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203f30
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66201f97
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203220
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x66202017
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x6621b50e
call fcn.6620d074
sub esp, 0x460
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
inc ebx
lea ecx, [ebp - 0xbc]
push eax
mov dword [ebp - 4], ebx
call fcn.66202f60
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
push ebx
lea ecx, [ebp - 0xbc]
call fcn.662033b0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.66202f60
mov esi, dword [ebp - 0xb8]
push 0x6621c4c0
mov byte [ebp - 4], 3
call fcn.6620cd91
pop ecx
sub esi, eax
lea ecx, [ebp - 0xbc]
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.662043b0
push ebx
push dword [ebp - 0x16c]
mov byte [ebp - 4], 4
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203f30
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.66203220
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.66203220
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66202058
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.66203220
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66202141
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621b541
call fcn.6620d074
sub esp, 0x368
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.662031a0
mov esi, str.TS_UPDATE_CMDLINE
mov byte [ebp - 4], 1
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.662045c0
pop ecx
pop ecx
lea ecx, [ebp - 0x114]
call fcn.662031a0
push ebx
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x214]
call fcn.66203d90
add esp, 0xc
test eax, eax
js 0x66202205
push 0xffffffffffffffff
push 0x6621c3d8
lea ecx, [ebp - 0x374]
call fcn.66203100
push ebx
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.66203670
mov ebx, eax
mov byte [ebp - 4], 2
neg ebx
lea ecx, [ebp - 0x374]
sbb bl, bl
call fcn.66203220
inc bl
je 0x662021fb
xor esi, esi
push esi
push 0x6621c3dc
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.6620d500
add esp, 0xc
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.66202f60
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x10]
push 2
push 1
push ebx
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x164]
push 0x6621c494
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
push str.TS_PARENT_HANDLE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662022a5
push ebx
jmp 0x662021f5
lea ecx, [ebp - 0x2c4]
call fcn.66203220
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.66203220
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], bl
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x662022e9
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b579
call fcn.6620d074
sub esp, 0x168
push esi
push edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
or edi, 0xffffffff
push edi
push 0
call fcn.662037e0
push eax
lea ecx, [ebp + 8]
call fcn.66204290
push eax
lea ecx, [ebp + 8]
call fcn.66203cc0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66202f60
push 0
push 0
push edi
mov esi, 0x6621c540
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033b0
push 0
push 0
push edi
push str..ase
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033b0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66202f60
sub esp, 0xb0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.66202f60
mov byte [ebp - 4], 1
call fcn.66201f57
add esp, 0x160
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc4]
push eax
call fcn.66203f30
push 0
push 0
push edi
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033b0
push 0
push 0
push edi
push str..asd
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033b0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.66202f60
sub esp, 0xb0
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.66202f60
mov byte [ebp - 4], 1
call fcn.66201f57
add esp, 0x160
lea ecx, [ebp - 0x174]
call fcn.662031a0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 4
push str.TS_UPDATE_COMPLETE
push eax
call fcn.662045c0
pop ecx
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 1
call fcn.66203220
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.66203220
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x662024e1
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x66202500
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66202578
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6620251f
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66202570
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x66202558
mov edi, dword [ebp + 0x10]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x96
je 0x66202555
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x66202533
mov edi, dword [ebp + 8]
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x66202575
push esi
mov ecx, edi
call fcn.66203f30
xor eax, eax
inc eax
jmp 0x66202577
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x66202900
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.662029f0
test al, al
je 0x662029a2
push esi
mov ecx, edi
call fcn.66202c90
push 0x2c
lea esi, [edi + 0x120]
push 0
push esi
call fcn.6620d500
add esp, 0xc
push 0
push 0x2c
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
call esi
push 0
lea eax, [edi + 0x14c]
xorps xmm0, xmm0
push 0xc
push eax
movq qword [eax], xmm0
push 1
mov dword [eax + 8], 0
call esi
push 0
push 4
lea eax, [ebp - 4]
push eax
push 0x1a
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
pop esi
test eax, eax
js 0x6620297f
cmp dword [ebp - 4], 0
je 0x6620297f
mov eax, 1
jmp 0x66202981
xor eax, eax
mov ecx, edi
mov byte [edi + 0x164], al
mov byte [edi + 0x165], al
call fcn.66202b40
mov ecx, 2
mov eax, 1
lock cmpxchg dword [edi], ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x66202c90
Capabilities:
Check os version

Disassembly:
push esi
push edi
mov edi, ecx
push 0x11c
push 0
lea esi, [edi + 4]
push esi
call fcn.6620d500
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [edi + 8], 5
jne 0x66202d06
cmp dword [edi + 0xc], 0
jne 0x66202d06
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
test edx, edx
je 0x66202d10
cmp word [eax + 0x1dc], 0
je 0x66202d10
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x66202ce2
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [edi + 0x18]
push eax
call fcn.6620d6a0
add esp, 0xc
mov byte [edi + 0x11f], 0
pop edi
pop esi
ret
xor eax, eax
mov word [edi + 0x18], ax
mov byte [edi + 0x11f], al
pop edi
pop esi
ret
Function at 0x66204bd0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b78b
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x66204c04
mov byte [ebp + 0xb], 1
cmp esi, 0xffffffff
je 0x66204c08
mov byte [ebp + 0xb], 0
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
call fcn.66207d20
mov dword [ebp - 4], 0
cmp byte [ebp + 0xb], 0
je 0x66204c5d
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push 0
mov eax, ebx
lea ecx, [ebp - 0x84]
cdq
push edx
push eax
call fcn.66208b00
mov edi, eax
test edi, edi
js 0x66204d78
lea ecx, [ebp - 0x1a4]
call fcn.66208ce0
mov esi, dword [ebp - 0x154]
cmp byte [ebp + 0x20], 0
mov ecx, 4
push 0
push 0x8000000
mov eax, 0x40
mov dword [ebp - 0x14], 0
cmovne eax, ecx
mov dword [ebp - 0x24], esi
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x66204d78
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push 0x100000
push 2
push eax
push 0
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x66204d0b
cmp byte [ebp + 0xb], 0
je 0x66204d16
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.66208760
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x66204d3d
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d78
test ebx, ebx
je 0x66204d3d
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
je 0x66204d31
push dword [ebp - 0x10]
push eax
push ebx
call fcn.6620b540
add esp, 0x10
jmp 0x66204d3d
push ebx
push dword [ebp - 0x10]
call fcn.6620d6a0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x66204d4f
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d54
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x66204d68
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66204d6d
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x66204d76
mov dword [eax], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.66207f00
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66205610
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b84b
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x178]
call fcn.66207630
cmp dword [edi + 0x160], 0
jne 0x6620576d
cmp dword [edi + 4], 0
je 0x66205725
lea ecx, [ebp - 0xfc]
call fcn.662031a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xfc]
push eax
push dword [edi]
call fcn.6620ae90
add esp, 8
lea ecx, [ebp - 0xfc]
call fcn.66204340
mov dword [ebp - 0x24], eax
lea ecx, [edi + 0x170]
xor edx, edx
mov dword [ebp - 0x2c], 0x18
cmp byte [edi + 0x18c], dl
mov eax, 0x20
mov dword [ebp - 0x28], 0
cmovne eax, edx
mov dword [ebp - 0x20], 0x40
or eax, 0x40
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
push eax
push dword [edi + 0x188]
push ecx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x66205713
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.66203220
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.66203220
push 5
push 0x18
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
push eax
push dword [edi + 0x170]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x48], xmm0
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x66205829
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x168], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x16c], eax
mov ecx, edi
call fcn.662059f0
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x662057a2
lea ecx, [edi + 0x178]
call fcn.66207630
mov ecx, edi
call fcn.66204b40
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 8], 0
je 0x662057bc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x178]
mov ecx, esi
call fcn.66204980
test al, al
je 0x662057a8
cmp byte [ebp + 0xc], 0
je 0x662057a8
mov eax, dword [edi + 0x170]
mov dword [edi + 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x170], 0
test eax, eax
je 0x662057fc
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.662041e0
jmp 0x6620581c
mov ecx, esi
call fcn.66204960
mov ecx, edi
mov esi, eax
call fcn.66203ec0
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
mov ecx, eax
call fcn.662033b0
push 0
push 0
push 1
mov ecx, edi
call fcn.66205610
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x662058b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, ebx
add ecx, edx
adc eax, dword [ebp + 0xc]
cmp dword [esi + 0x16c], eax
jg 0x662058e8
jl 0x662058db
cmp dword [esi + 0x168], ecx
jae 0x662058e8
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x6620590b
push ebx
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.6620d6a0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x66205921
pop esi
mov eax, 0xc0000008
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x18c], 0
push edi
mov dword [ebp + 0x14], 0
je 0x66205964
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x66205950
push edi
push edi
push edi
push 0x100002
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [ebp + 0x14]
jmp 0x66205957
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x66205966
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
push 0
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push edi
push dword [esi + 0x170]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x662059ba
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x662059b7
js 0x662059c9
mov esi, 0xc0000001
jmp 0x662059c9
mov esi, dword [ebp - 8]
test esi, esi
js 0x662059c9
cmp dword [ebp - 4], ebx
mov eax, 0xc000007b
cmovne esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662059d7
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x66207410
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x6620745a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x6620745a
push 0
mov ecx, esi
call fcn.66203cc0
push 0
push 0
push 0xffffffffffffffff
push 0x7ffe0030
push 1
mov ecx, esi
call fcn.662033b0
push str.System32
push esi
call fcn.6620ae00
push dword [ebp + 8]
push esi
call fcn.6620ae00
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0xc000000d
pop esi
pop ebp
ret
Function at 0x66209a70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662236d0
push 0x6620eca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x66209c9e
cmp esi, 0xffffffff
jne 0x66209ab6
test edi, edi
je 0x66209c9e
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x66209c9e
cmp dword [ebp + 0x20], 0
ja 0x66209aeb
jb 0x66209ad3
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x40
jae 0x66209aee
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push 0
push 2
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call fcn.66208f30
test eax, eax
jns 0x66209b22
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp + 0xc], ax
jne 0x66209c7f
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
add ecx, 0x3c
mov eax, edi
adc eax, 0
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.66208f30
test eax, eax
js 0x66209b08
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
ja 0x66209c7f
jb 0x66209b6b
cmp eax, ebx
jae 0x66209c7f
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x66209c7f
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x20], ecx
ja 0x66209c7f
jb 0x66209b90
cmp edx, ebx
jae 0x66209c7f
cmp eax, 0x10000000
jae 0x66209c7f
add eax, esi
mov ecx, 0
adc ecx, edi
push 0
push 4
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.66208f30
test eax, eax
js 0x66209b08
cmp dword [ebp - 0x24], 0x4550
jne 0x66209c7f
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
add ebx, esi
adc ecx, edi
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x66209be3
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x66209c5a
mov dword [edx + 0x108], ebx
mov dword [edx + 0x10c], ecx
mov dword [edx + 0x110], esi
mov dword [edx + 0x114], edi
mov al, byte [ebp + 0x10]
mov byte [edx + 0x118], al
push 0
push 0x18
push edx
push ecx
push ebx
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.66208f30
test eax, eax
js 0x66209b08
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x14]
mov eax, edx
mov edi, 0xf0
cmp di, ax
jae 0x66209c39
mov eax, edi
push 0
push eax
lea eax, [ecx + 0x18]
push eax
add ebx, 0x18
mov eax, dword [ebp + 0x20]
adc eax, 0
push eax
push ebx
mov ecx, esi
call fcn.66208f30
test eax, eax
js 0x66209b08
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x6620b9e0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
jmp 0x6620ba23
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 8], 4
jae 0x6620ba4e
cmp dword [ebp + 0x10], 0
jbe 0x6620ba4e
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
mov dword [ebp + edx*8 - 0x30], ecx
mov eax, dword [eax - 4]
mov dword [ebp + edx*8 - 0x2c], eax
jmp 0x6620ba11
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x6620ba71
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6620ba97
mov edi, dword [ebp - 0x10]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620ba8c
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620ba9f
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x6620bab8
add dword [esp], 5
retf

Function at 0x6620bb10
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
xor edx, edx
push 0x33
call fcn.6620bb22

Function at 0x6620c130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x6620c167
cmp bl, 0xd7
je 0x6620c167
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
test edx, edx
je 0x6620c1d9
mov ecx, dword [ebp + 0xc]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x6620c157
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.6620c3c0
cmp bl, 0xd8
jne 0x6620c1d9
mov edx, dword [ebp + 0x10]
xor eax, eax
test edx, edx
je 0x6620c1d9
cmp edx, 0x20
jb 0x6620c1c7
movdqa xmm1, xmmword [0x6621d420]
mov ecx, edx
push edi
and ecx, 0x1f
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
lea ebx, [ebx]
movdqu xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x30], xmm0
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x20], xmm0
cmp eax, edi
jb 0x6620c1a0
pop edi
cmp eax, edx
jae 0x6620c1d9
jmp 0x6620c1d0
xor byte [eax + esi], 0xf0
inc eax
cmp eax, edx
jb 0x6620c1d0
pop esi
pop ebx
pop ebp
ret