joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662022ad
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x66216342
call fcn.6620bae8
sub esp, 0x368
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp + 0x60]
lea ecx, [ebp - 0xbc]
call fcn.66203690
mov esi, dword [ebp + 0x68]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x57], bl
cmp dword [esi + 4], ebx
je 0x662022f8
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x374]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.6620bbab
pop ecx
pop ecx
test eax, eax
je 0x6620230d
mov byte [ebp + 0x57], 1
mov eax, dword [esi + 4]
push ebx
neg eax
push ebx
sbb eax, eax
lea ecx, [ebp - 0x374]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.66206770
add esp, 0x14
cmp al, bl
je 0x6620243e
push 0x44
pop esi
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.6620bb10
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x16c]
call fcn.66203690
mov byte [ebp - 4], 1
cmp byte [ebp + 0x57], bl
jne 0x662023c2
movzx eax, word [esi]
cmp ax, 0x22
jne 0x662023a2
jmp 0x66202387
push 0x22
pop ecx
cmp cx, ax
je 0x66202393
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x6620237f
jmp 0x662023a7
inc esi
inc esi
jmp 0x662023a7
cmp ax, 0x20
je 0x662023a7
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x66202397
push esi
push dword [ebp - 0xbc]
lea eax, [ebp - 0x16c]
push str.__ls__ls
push eax
call fcn.66203840
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push str.TS_SOURCE
call esi
push ebx
push str.TS_ORIGIN
call esi
cmp byte [ebp + 0x57], bl
je 0x66202404
push dword [ebp - 0xbc]
push str.TS_UPDATED_DATFILE
call esi
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x16c]
push dword [ebp + 0x64]
jmp 0x6620241f
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x16c]
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x66202430
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x58
leave
ret
Function at 0x6620245e
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66216357
call fcn.6620bae8
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66202d60
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.662037d0
push ebx
lea eax, [ebp - 0xbc]
push eax
mov esi, str.TS_UPDATED_DATFILE
push esi
call fcn.66203ba0
add esp, 0xc
cmp eax, ebx
jl 0x662024bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203280
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x66203d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66216498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
call fcn.66206d50
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebp
push eax
or ecx, 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, eax
test esi, esi
jne 0x66203db6
mov esi, dword [esp + 0x20]
push ebp
push ebp
push str.Error__ld__08lX
push esi
call fcn.66203870
add esp, 0x10
jmp 0x66203e89
xor eax, eax
push edi
test esi, esi
jbe 0x66203e56
mov edi, dword [esp + 0xc]
push ebx
movzx ecx, word [edi + eax*2]
cmp cx, 0xd
je 0x66203dd9
cmp cx, 0xa
je 0x66203dd9
inc eax
jmp 0x66203e2a
lea ebx, [eax + 1]
mov ecx, ebx
cmp ecx, esi
jae 0x66203df7
movzx edx, word [edi + ecx*2]
cmp dx, 0xd
je 0x66203df2
cmp dx, 0xa
jne 0x66203df7
inc ecx
cmp ecx, esi
jb 0x66203de2
sub ecx, eax
mov edx, 0x20
mov word [edi + eax*2], dx
mov edx, dword [esp + 0x10]
lea edi, [ecx + eax]
sub esi, ecx
mov ecx, esi
sub ecx, eax
add ecx, ecx
lea edi, [edx + edi*2]
push ecx
lea edx, [edx + eax*2 + 2]
push edi
push edx
call fcn.6620c0d0
mov edi, dword [esp + 0x1c]
add esp, 0xc
inc esi
mov eax, ebx
cmp eax, esi
jb 0x66203dc6
pop ebx
test esi, esi
jbe 0x66203e5a
jmp 0x66203e39
mov edi, dword [esp + 0xc]
movzx edi, word [edi + esi*2 - 2]
push edi
call fcn.6620c5a4
add esp, 4
test eax, eax
jne 0x66203e51
cmp di, 0x2e
jne 0x66203e56
sub esi, 1
jne 0x66203e35
mov edi, dword [esp + 0xc]
push 0
push 0
push esi
mov esi, dword [esp + 0x30]
push edi
push 1
mov ecx, esi
call fcn.66202f40
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push ebp
push str.___ld__08lX_
push esi
call fcn.66203870
add esp, 0x10
pop edi
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
push eax
call fcn.66206d60
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x66204660
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
xor eax, eax
mov ecx, ebx
add ecx, edx
adc eax, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x16c]
cmp edi, eax
jg 0x6620469e
jl 0x66204690
mov eax, dword [esi + 0x168]
cmp eax, ecx
jae 0x6620469e
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x662046c4
mov ecx, dword [esp + 0x20]
push ebx
add eax, edx
push eax
push ecx
call fcn.6620bc70
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x662046db
pop edi
pop esi
mov eax, 0xc0000008
pop ebx
add esp, 8
ret 0x14
cmp byte [esi + 0x18c], 0
mov dword [esp + 0x24], 0
je 0x66204721
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x6620470d
push edi
push edi
push edi
push 0x100002
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [esp + 0x24]
jmp 0x66204714
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jge 0x66204723
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
xor edi, edi
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x170]
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push edi
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x6620476f
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x6620476b
jl 0x6620477e
mov esi, 0xc0000001
jmp 0x6620477e
mov esi, dword [esp + 0xc]
test esi, esi
jl 0x6620477e
cmp dword [esp + 0x10], ebx
je 0x6620477e
mov esi, 0xc000007b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6620478d
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x662055c0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x662165fb
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x178]
call fcn.66209400
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x662056ef
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x662056b8
lea ecx, [esp + 0x48]
call fcn.66202d60
mov dword [esp + 0x100], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.6620a140
add esp, 8
lea ecx, [esp + 0x48]
call fcn.66202e50
xor edx, edx
cmp byte [esi + 0x18c], bl
mov dword [esp + 0x18], eax
setne dl
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
lea edi, [esi + 0x170]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x40
dec edx
and edx, 0x20
or edx, 0x40
push edx
mov edx, dword [esi + 0x188]
push 1
push eax
push ecx
push edx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebp, eax
cmp ebp, ebx
jge 0x662056a4
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x66205783
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov edx, dword [esi + 0x170]
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x66205783
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
mov ecx, esi
call fcn.66204db0
mov edi, eax
cmp edi, ebx
jge 0x66205712
lea ecx, [esi + 0x178]
call fcn.66209400
mov ecx, esi
call fcn.662045e0
mov eax, edi
jmp 0x66205783
cmp byte [esp + 0x108], bl
je 0x6620571f
xor eax, eax
jmp 0x66205783
mov edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205820
test al, al
je 0x6620571b
cmp byte [esp + 0x10c], bl
je 0x6620571b
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0x110]
mov dword [esi + 0x174], edx
mov dword [esi + 0x170], ebx
push 0xffffffffffffffff
cmp eax, ebx
je 0x66205762
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x66205778
mov ecx, edi
call fcn.66205840
push eax
mov ecx, esi
call fcn.662039b0
mov ecx, eax
call fcn.66201025
push ebx
push ebx
push 1
mov ecx, esi
call fcn.662055c0
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 0xc
Function at 0x66205cd0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x11c
xor ebx, ebx
lea edi, [esi + 4]
push ebx
push edi
call fcn.6620bb10
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [esi + 8], 5
jne 0x66205d53
cmp dword [esi + 0xc], ebx
jne 0x66205d53
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
cmp edx, ebx
je 0x66205d4d
cmp word [eax + 0x1dc], bx
je 0x66205d4d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x66205d22
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
lea edx, [esi + 0x18]
push edx
call fcn.6620bc70
add esp, 0xc
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret
xor eax, eax
mov word [esi + 0x18], ax
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret

Function at 0x662060c0
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
call fcn.66205ab0
test al, al
je 0x6620612b
push edi
mov ecx, esi
call fcn.66205cd0
push 0x2c
lea edi, [esi + 0x120]
push 0
push edi
call fcn.6620bb10
add esp, 0xc
push 0
push 0x2c
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
call edi
xor ecx, ecx
push ecx
lea eax, [esi + 0x14c]
push 0xc
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
push 1
mov dword [eax + 8], ecx
call edi
mov ecx, esi
call fcn.66205d60
mov ecx, esi
call fcn.66205db0
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
pop edi
pop esi
ret
Function at 0x66206d80
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 0x662077b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621a6f8
push 0x6620ccb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x662079bd
cmp esi, 0xffffffff
jne 0x662077f8
test edi, edi
je 0x662079bd
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x662079bd
cmp dword [ebp + 0x20], 0
ja 0x6620781b
jb 0x662079a5
cmp dword [ebp + 0x1c], 0x40
jb 0x662079a5
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
mov ecx, ebx
call fcn.66207530
test eax, eax
jge 0x6620784d
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 - 0x1c], ax
jne 0x6620799e
lea ecx, [ebp - 0x24]
push ecx
mov edx, esi
add edx, 0x3c
mov eax, edi
adc eax, 0
push eax
push edx
mov ecx, ebx
call fcn.66207550
test eax, eax
jl 0x66207833
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov ebx, dword [ebp + 0x20]
cmp ecx, ebx
ja 0x6620799e
jb 0x66207892
cmp eax, dword [ebp + 0x1c]
jae 0x6620799e
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x6620799e
xor edx, edx
cmp edx, ebx
ja 0x6620799e
jb 0x662078b5
lea edx, [eax + 0x18]
cmp edx, dword [ebp + 0x1c]
jae 0x6620799e
cmp eax, 0x10000000
jae 0x6620799e
lea edx, [ebp - 0x28]
push edx
add eax, esi
adc ecx, edi
push ecx
push eax
mov ecx, dword [ebp - 0x20]
call fcn.66207550
test eax, eax
jl 0x66207833
cmp dword [ebp - 0x28], 0x4550
jne 0x6620799e
mov edi, dword [ebp - 0x24]
xor ebx, ebx
add edi, esi
adc ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x662078fd
mov dword [eax], edi
mov dword [eax + 4], ebx
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x66207979
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x110], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x114], ecx
mov dl, byte [ebp + 0x10]
mov byte [esi + 0x118], dl
push 0
push 0x18
push esi
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.66207320
test eax, eax
jl 0x66207833
movzx eax, word [esi + 0x14]
movzx ecx, ax
mov edx, 0xf0
cmp dx, cx
jae 0x66207957
mov eax, edx
jmp 0x6620795a
movzx eax, ax
push 0
push eax
add esi, 0x18
push esi
add edi, 0x18
adc ebx, 0
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.66207320
test eax, eax
jl 0x66207833
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 0x66208140
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edi, dword [esp + 0x48]
cmp byte [edi + 0x118], 0
mov ebx, ecx
jne 0x66208161
pop edi
mov eax, 0xc000000d
pop ebx
add esp, 0x3c
ret 4
cmp word [edi + 0x14], 2
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jb 0x66208181
mov edx, 0x10b
mov eax, dword [edi + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x48]
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, 0x66242058
mov dword [esp + 0x24], 0
call fcn.6620ad90
test eax, eax
jl 0x66208272
movzx eax, word [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10c]
cdq
push esi
mov esi, eax
add esi, dword [edi + 0x108]
mov dword [esp + 0x50], 0
adc ebp, edx
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620826e
push 0
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
mov ecx, ebx
call fcn.66207320
test eax, eax
jl 0x66208270
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.662080e0
test eax, eax
jl 0x66208270
mov edx, dword [esp + 0x48]
push edx
call fcn.662074b0
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, 0x66242058
mov dword [esp + 0x2c], 0
call fcn.6620ad90
test eax, eax
jl 0x66208270
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
inc eax
add esi, 0x28
adc ebp, 0
mov dword [esp + 0x50], eax
cmp eax, ecx
jb 0x662081e8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4
Function at 0x6620a8b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 8], 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 - 0x34], 0
jmp 0x6620a8f3
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x34], 4
jae 0x6620a91e
cmp dword [ebp + 0x10], 0
jbe 0x6620a91e
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
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 0x6620a8e1
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x6620a941
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6620a967
mov edi, dword [ebp - 0xc]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620a95c
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620a96f
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call fcn.6620a988

Function at 0x6620a9d0
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.6620a9e2

Function at 0x6620af70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
cmp bl, 0xd8
je 0x6620afa1
cmp bl, 0xd7
je 0x6620afa1
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jbe 0x6620afc9
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x6620af93
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
push esi
inc eax
push eax
call fcn.6620b1d0
cmp bl, 0xd8
jne 0x6620afc9
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x6620afc9
lea esp, [esp]
xor byte [eax + esi], 0xf0
inc eax
cmp eax, ecx
jb 0x6620afc0
pop esi
pop ebx
ret

Function at 0x6620f04b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66241028]
jne 0x6620f055
repz ret
jmp fcn.66213267
Function at 0x662150c8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d1d6
and dword [ebp - 4], 0
cmp dword [0x66242a30], 0
mov ebx, eax
jne 0x66215179
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621522a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621522a
push eax
call fcn.6620d164
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a30], eax
call esi
push eax
call fcn.6620d164
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a34], eax
call esi
push eax
call fcn.6620d164
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a38], eax
call esi
push eax
call fcn.6620d164
pop ecx
mov dword [0x66242a40], eax
test eax, eax
je 0x66215179
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d164
pop ecx
mov dword [0x66242a3c], eax
mov eax, dword [0x66242a3c]
cmp eax, ebx
je 0x662151d1
cmp dword [0x66242a40], ebx
je 0x662151d1
push eax
call fcn.6620d1df
push dword [0x66242a40]
mov esi, eax
call fcn.6620d1df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662151d1
test edi, edi
je 0x662151d1
call esi
test eax, eax
je 0x662151c8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662151c8
test byte [ebp - 0xc], 1
jne 0x662151d1
or dword [ebp + 0x10], 0x200000
jmp 0x6621520a
mov eax, dword [0x66242a34]
cmp eax, ebx
je 0x6621520a
push eax
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621520a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621520a
mov eax, dword [0x66242a38]
cmp eax, ebx
je 0x6621520a
push eax
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621520a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a30]
call fcn.6620d1df
pop ecx
test eax, eax
je 0x6621522a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621522c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401380
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00401000
add esp, 4
test eax, eax
je 0x4013c9
push edi
push 0
push 0
push 0
push 1
push esi
call fcn.004010b0
mov edi, dword [esp + 0x20]
add esp, 8
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_InvalidateRgn]
pop edi
pop esi
ret