joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662022e9
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b589
call fcn.6620d084
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.662037d0
push eax
lea ecx, [ebp + 8]
call fcn.66204280
push eax
lea ecx, [ebp + 8]
call fcn.66203cb0
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.66203f20
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.662045b0
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.66203f20
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.6620d510
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.6620d510
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.6620d6b0
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 0x66204bc0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b79b
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 0x66204bf4
mov byte [ebp + 0xb], 1
cmp esi, 0xffffffff
je 0x66204bf8
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 0x66204c4d
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.66208b10
mov edi, eax
test edi, edi
js 0x66204d68
lea ecx, [ebp - 0x1a4]
call fcn.66208cf0
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 0x66204d68
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 0x66204cfb
cmp byte [ebp + 0xb], 0
je 0x66204d06
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.66208770
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x66204d2d
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 0x66204d68
test ebx, ebx
je 0x66204d2d
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
je 0x66204d21
push dword [ebp - 0x10]
push eax
push ebx
call fcn.6620b550
add esp, 0x10
jmp 0x66204d2d
push ebx
push dword [ebp - 0x10]
call fcn.6620d6b0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x66204d3f
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x66204d44
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x66204d58
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66204d5d
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x66204d66
mov dword [eax], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.66207f10
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 0x66205600
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6621b85b
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 0x6620575d
cmp dword [edi + 4], 0
je 0x66205715
lea ecx, [ebp - 0xfc]
call fcn.662031a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xfc]
push eax
push dword [edi]
call fcn.6620aea0
add esp, 8
lea ecx, [ebp - 0xfc]
call fcn.66204330
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 0x66205703
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 0x66205819
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.662059e0
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x66205792
lea ecx, [edi + 0x178]
call fcn.66207630
mov ecx, edi
call fcn.66204b30
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 0x662057ac
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.66204970
test al, al
je 0x66205798
cmp byte [ebp + 0xc], 0
je 0x66205798
mov eax, dword [edi + 0x170]
mov dword [edi + 0x174], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x170], 0
test eax, eax
je 0x662057ec
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.662041d0
jmp 0x6620580c
mov ecx, esi
call fcn.66204950
mov ecx, edi
mov esi, eax
call fcn.66203eb0
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.66205600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x662058a0
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 0x662058d8
jl 0x662058cb
cmp dword [esi + 0x168], ecx
jae 0x662058d8
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x662058fb
push ebx
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.6620d6b0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x66205911
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 0x66205954
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x66205940
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 0x66205947
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x66205956
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 0x662059aa
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x662059a7
js 0x662059b9
mov esi, 0xc0000001
jmp 0x662059b9
mov esi, dword [ebp - 8]
test esi, esi
js 0x662059b9
cmp dword [ebp - 4], ebx
mov eax, 0xc000007b
cmovne esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662059c7
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 0x66206a10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
setne al
ret
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.66203cb0
push 0
push 0
push 0xffffffffffffffff
push 0x7ffe0030
push 1
mov ecx, esi
call fcn.662033b0
push str.System32
push esi
call fcn.6620ae10
push dword [ebp + 8]
push esi
call fcn.6620ae10
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0xc000000d
pop esi
pop ebp
ret
Function at 0x66209a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662236d0
push 0x6620ecb8
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 0x66209cae
cmp esi, 0xffffffff
jne 0x66209ac6
test edi, edi
je 0x66209cae
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x66209cae
cmp dword [ebp + 0x20], 0
ja 0x66209afb
jb 0x66209ae3
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x40
jae 0x66209afe
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.66208f40
test eax, eax
jns 0x66209b32
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 0x66209c8f
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.66208f40
test eax, eax
js 0x66209b18
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
ja 0x66209c8f
jb 0x66209b7b
cmp eax, ebx
jae 0x66209c8f
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x66209c8f
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x20], ecx
ja 0x66209c8f
jb 0x66209ba0
cmp edx, ebx
jae 0x66209c8f
cmp eax, 0x10000000
jae 0x66209c8f
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.66208f40
test eax, eax
js 0x66209b18
cmp dword [ebp - 0x24], 0x4550
jne 0x66209c8f
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 0x66209bf3
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x66209c6a
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.66208f40
test eax, eax
js 0x66209b18
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x14]
mov eax, edx
mov edi, 0xf0
cmp di, ax
jae 0x66209c49
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.66208f40
test eax, eax
js 0x66209b18
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 0x6620b9f0
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 0x6620ba33
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 0x6620ba5e
cmp dword [ebp + 0x10], 0
jbe 0x6620ba5e
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 0x6620ba21
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 0x6620ba81
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 0x6620baa7
mov edi, dword [ebp - 0x10]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620ba9c
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620baaf
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x6620bac8
add dword [esp], 5
retf

Function at 0x6620bb20
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.6620bb32

Function at 0x6620c140
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 0x6620c177
cmp bl, 0xd7
je 0x6620c177
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
test edx, edx
je 0x6620c1e9
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 0x6620c167
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.6620c3d0
cmp bl, 0xd8
jne 0x6620c1e9
mov edx, dword [ebp + 0x10]
xor eax, eax
test edx, edx
je 0x6620c1e9
cmp edx, 0x20
jb 0x6620c1d7
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 0x6620c1b0
pop edi
cmp eax, edx
jae 0x6620c1e9
jmp 0x6620c1e0
xor byte [eax + esi], 0xf0
inc eax
cmp eax, edx
jb 0x6620c1e0
pop esi
pop ebx
pop ebp
ret
Function at 0x113110c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
push 4
push dword [ebp + 0x10]
add eax, edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, edi
mov dword [ebp + 0xc], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x11311b9
push ebx
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [esi + 0x10]
mov edx, eax
mov eax, dword [esi]
add ebx, edi
mov dword [ebp - 0xc], edx
mov edi, ebx
test eax, eax
je 0x1131160
mov edi, dword [ebp - 4]
add edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x11311a8
mov esi, dword [ebp - 4]
jns 0x1131187
mov eax, dword [edx + 0x3c]
movzx ecx, cx
mov eax, dword [eax + edx + 0x78]
sub ecx, dword [eax + edx + 0x10]
mov eax, dword [eax + edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x1131197
lea eax, [esi + 2]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0xc]
add edi, 4
mov dword [ebx], eax
add ebx, 4
mov ecx, dword [edi]
test ecx, ecx
jne 0x1131169
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
add esi, 0x14
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], esi
test eax, eax
jne 0x1131140
pop ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x11311d2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov ebx, edx
push eax
push 0x40
mov esi, ecx
mov dword [ebp - 0x18], ebx
push ebx
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x1131024]
lea eax, [ebx - 1]
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x1131254
mov ebx, dword [ebp - 0x10]
lea eax, [esi + 1]
mov dword [ebp - 4], eax
sub edi, esi
lea ecx, [edi + eax]
mov eax, edx
xor edx, edx
div ecx
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov al, byte [edx + esi]
mov esi, dword [ebp - 4]
mov byte [esi], al
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, 0xffffcfc7
mov byte [edx + esi], cl
imul edx, eax, 0xeeb9eb65
mov eax, dword [ebp - 4]
and edx, 0x7fffffff
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
dec ebx
jne 0x1131214
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x113257c
Capabilities:
Encode data using xor

Disassembly:
test byte [0x11d8e0c], 1
mov ecx, 0x8707
jne 0x1132603
or dword [0x11d8e0c], 1
lea eax, [ecx + 0x1b]
mov edx, eax
add eax, 0x39
mov word [0x11d29d4], ax
mov word [0x11d29c8], dx
add edx, 0x31
lea eax, [ecx + 0x5c]
mov word [0x11d29d6], ax
add eax, 0xf
mov word [0x11d29d8], ax
mov word [0x11d29ca], dx
lea edx, [ecx + 0x3b]
lea eax, [ecx + 0x63]
mov word [0x11d29da], ax
mov word [0x11d29cc], dx
add edx, 8
add eax, 0xd
mov word [0x11d29dc], ax
lea eax, [ecx + 0x51]
mov word [0x11d29de], ax
mov eax, ecx
mov word [0x11d29ce], dx
mov dword [0x11d29d0], 0x87228757
mov word [0x11d29e0], ax
xor eax, eax
mov edx, ecx
xor dx, word [eax + 0x11d29c8]
add eax, 2
mov word [eax + 0x11d3072], dx
cmp eax, 0x1a
jb 0x1132605
mov eax, 0x11d3074
ret

Function at 0x1132623
Capabilities:
Encode data using xor

Disassembly:
test byte [0x11d8e04], 1
jne 0x1132651
or dword [0x11d8e04], 1
mov dword [0x11d29f0], 0x63686a3b
mov dword [0x11d29f4], 0x38626b72
mov dword [0x11d29f8], 0x7393838
xor eax, eax
mov cl, byte [eax + 0x11d29f0]
xor cl, 7
mov byte [eax + 0x11d309c], cl
inc eax
cmp eax, 0xc
jb 0x1132653
mov eax, 0x11d309c
ret

Function at 0x113266e
Capabilities:
Encode data using xor

Disassembly:
test byte [0x11d8e00], 1
mov edx, 0x8707
jne 0x113272e
push esi
lea ecx, [edx + 0x1e]
mov eax, ecx
mov word [0x11d29fc], ax
add eax, 2
or dword [0x11d8e00], 1
mov word [0x11d29fe], ax
lea eax, [edx + 0x23]
mov esi, eax
mov word [0x11d2a00], si
mov word [0x11d2a02], ax
add eax, 0x3a
mov word [0x11d2a04], ax
lea eax, [edx + 0x6e]
mov esi, eax
mov word [0x11d2a06], si
add esi, 0xfffffff1
mov word [0x11d2a08], si
lea esi, [edx + 0x6d]
mov word [0x11d2a0a], si
add esi, 0xfffffffb
mov word [0x11d2a0c], si
lea esi, [edx + 0x51]
mov word [0x11d2a0e], si
mov esi, eax
mov word [0x11d2a10], si
add esi, 0xffffffed
add eax, 0xfffffffe
mov word [0x11d2a12], si
lea esi, [edx + 0x70]
mov word [0x11d2a1a], ax
mov eax, edx
mov word [0x11d2a14], si
mov dword [0x11d2a16], 0x87758768
mov dword [0x11d2a1c], 0x8725873a
mov word [0x11d2a20], ax
pop esi
xor eax, eax
mov ecx, edx
xor cx, word [eax + 0x11d29fc]
add eax, 2
mov word [eax + 0x11d30a6], cx
cmp eax, 0x26
jb 0x1132730
mov eax, 0x11d30a8
ret