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

Disassembly:
mov eax, 0x66215f1c
call fcn.6620b838
sub esp, 0x460
lea ecx, [ebp - 0xbc]
push esi
push edi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.662034b0
lea eax, [ebp - 0x46c]
push eax
push dword [ebp + 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea eax, [ebp - 0x440]
push 0
push 0
lea ecx, [ebp - 0xbc]
push 0xffffffffffffffff
push eax
push 1
call fcn.66202f40
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x21c]
push eax
call fcn.662034b0
mov esi, dword [ebp - 0xb8]
push 0x6621748c
mov byte [ebp - 4], 3
call fcn.6620b438
sub esi, eax
pop ecx
lea ecx, [ebp - 0xbc]
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.662036e0
push 1
push dword [ebp - 0x16c]
mov byte [ebp - 4], 4
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp + 8]
lea ecx, [ebp - 0xbc]
push eax
call fcn.66203280
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16c]
call fcn.66203260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
call fcn.66203260
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66201613
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203260
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203260
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x662016fc
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x66215f44
call fcn.6620b838
add esp, 0xfffffd00
lea eax, [ebp + 8]
push edi
lea ecx, [ebp - 0xbc]
push eax
mov dword [ebp - 4], 1
call fcn.662034b0
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea ecx, [ebp - 0xbc]
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
call fcn.66202f40
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xbc]
lea eax, [ebp + 8]
push eax
call fcn.66203280
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
or eax, eax
jne 0x6620173c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.66203260
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203260
lea ecx, [ebp + 0xb8]
or dword [ebp - 4], 0xffffffff
call fcn.66203260
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x662017ba
Capabilities:
Create process on windows
Create process suspended
Delete file
Set environment variable

Disassembly:
mov eax, 0x66215f6f
call fcn.6620b838
add esp, 0xfffffce8
lea ecx, [ebp - 0x274]
push ebx
call fcn.66202d60
xor ebx, ebx
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], ebx
call fcn.66202d60
lea eax, [ebp - 0x1c4]
push 0x662174ac
push eax
mov byte [ebp - 4], 1
call fcn.66203680
lea eax, [ebp - 0x274]
push ebx
push eax
push dword [ebp - 0x1c4]
call fcn.662039e0
sub esp, 0xffffffec
or eax, eax
jne 0x66201937
lea ecx, [ebp - 0xd0]
push esi
lea eax, [ebp - 0x274]
push eax
call fcn.662034b0
mov esi, 0x662174a8
lea ecx, [ebp - 0xd0]
push ebx
push 3
push 0xffffffffffffffff
push esi
push 1
mov byte [ebp - 4], 2
call fcn.66202f40
push dword [ebp + 8]
lea ecx, [ebp - 0xd0]
call fcn.66201008
mov ecx, eax
push ebx
push ebx
push 0xffffffffffffffff
push str..exe
push 1
mov dword [ebp - 0x10], ecx
call fcn.66202f40
mov ecx, dword [ebp - 0x10]
push ebx
push 3
push 0xffffffffffffffff
push esi
push 1
call fcn.66202f40
lea eax, [ebp - 0x114]
push 0x44
pop esi
push esi
push ebx
push eax
call fcn.6620b860
lea eax, [ebp - 0x20]
sub esp, 0xfffffff4
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xd0]
mov dword [ebp - 0x114], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662018d2
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp - 0xd0]
cmp word [eax], 0x22
pop esi
jne 0x6620191c
lea ecx, [ebp - 0xd0]
push 1
push 0x22
call fcn.66202a70
cmp eax, 0xffffffff
je 0x6620191c
lea ecx, [ebp - 0xd0]
dec eax
push eax
lea eax, [ebp - 0x324]
push 1
push eax
call fcn.662013ca
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x324]
call fcn.66203260
push ebx
push 0x662174ac
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.66203260
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662019fb
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
jne 0x66201a19
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66201a91
push edi
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66201a38
push 1
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66201a89
and dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
mov ebx, dword [ebp + 0x10]
jmp 0x66201a5f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x96
je 0x66201a6b
mov ecx, dword [edi]
mov eax, dword [ebx]
push eax
push ecx
call esi
or eax, eax
je 0x66201a48
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
or eax, eax
je 0x66201a8e
mov ecx, esi
push edi
call fcn.66203280
xor eax, eax
inc eax
jmp 0x66201a90
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x66201a94
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66215fc7
call fcn.6620b838
lea ecx, [ebp + 8]
sub esp, 0x168
push ebx
push esi
push edi
or edi, 0xffffffff
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.66202ae0
lea ecx, [ebp + 8]
push eax
call fcn.66202ec0
push eax
lea ecx, [ebp + 8]
call fcn.66203610
lea ecx, [ebp - 0xc4]
lea eax, [ebp + 8]
push eax
call fcn.662034b0
push ebx
lea ecx, [ebp - 0xc4]
mov esi, 0x66217544
push ebx
push edi
push esi
push 1
mov byte [ebp - 4], 1
call fcn.66202f40
lea ecx, [ebp - 0xc4]
push ebx
push ebx
push edi
push str..ase
push 1
call fcn.66202f40
add esp, 0xffffff50
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.662034b0
sub esp, 0xb0
mov dword [ebp - 0x10], esp
mov ecx, esp
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.662034b0
mov byte [ebp - 4], 1
call fcn.662016fc
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc4]
sub esp, 0xfffffea0
push eax
call fcn.66203280
lea ecx, [ebp - 0xc4]
push ebx
push ebx
push edi
push esi
push 1
call fcn.66202f40
push ebx
push ebx
push edi
push str..asd
lea ecx, [ebp - 0xc4]
push 1
call fcn.66202f40
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.662034b0
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esp
push eax
call fcn.662034b0
mov byte [ebp - 4], 1
call fcn.662016fc
add esp, 0x160
lea ecx, [ebp - 0x174]
call fcn.66202d60
push str.TS_UPDATE_COMPLETE
lea eax, [ebp - 0x174]
push eax
mov byte [ebp - 4], 4
call fcn.66203680
pop esi
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.66203260
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.66203260
mov dword [ebp - 4], edi
lea ecx, [ebp + 8]
call fcn.66203260
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x662022af
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
mov eax, 0x66216092
push ebp
add esp, 0xffffffac
call fcn.6620b838
lea ecx, [ebp - 0xbc]
sub esp, 0x368
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp + 0x60]
call fcn.66203530
mov esi, dword [ebp + 0x68]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x57], bl
cmp dword [esi + 4], ebx
je 0x662022fa
lea ecx, [ebp - 0x374]
mov eax, dword [esi]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.6620b8fb
or eax, eax
pop ecx
pop ecx
je 0x6620230f
mov byte [ebp + 0x57], 1
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x374]
push ebx
neg eax
push ebx
push ebx
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.66206640
sub esp, 0xffffffec
cmp al, bl
je 0x66202440
lea eax, [ebp]
push 0x44
pop esi
push esi
push ebx
push eax
call fcn.6620b860
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]
lea ecx, [ebp - 0x16c]
push 0xffffffffffffffff
mov esi, eax
push esi
call fcn.66203530
mov byte [ebp - 4], 1
cmp byte [ebp + 0x57], bl
jne 0x662023c4
movzx eax, word [esi]
cmp ax, 0x22
jne 0x662023a4
jmp 0x66202389
push 0x22
pop ecx
cmp cx, ax
je 0x66202395
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x66202381
jmp 0x662023a9
inc esi
inc esi
jmp 0x662023a9
cmp ax, 0x20
je 0x662023a9
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x66202399
push esi
push dword [ebp - 0xbc]
lea eax, [ebp - 0x16c]
push str.__ls__ls
push eax
call fcn.66203680
sub esp, 0xfffffff0
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 0x66202406
push dword [ebp - 0xbc]
push str.TS_UPDATED_DATFILE
call esi
lea esi, [ebp + 0x44]
push esi
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 0x66202421
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 0x66202432
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], bl
call fcn.66203260
lea ecx, [ebp - 0xbc]
or dword [ebp - 4], 0xffffffff
call fcn.66203260
mov ecx, dword [ebp - 0xc]
add ebp, 0x58
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x66202460
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x662160a7
call fcn.6620b838
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66202d60
xor ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], ebx
call fcn.66203610
mov esi, str.TS_UPDATED_DATFILE
lea eax, [ebp - 0xbc]
push ebx
push eax
push esi
call fcn.662039e0
sub esp, 0xfffffff4
cmp eax, ebx
jl 0x662024be
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
lea ecx, [ebp - 0xbc]
or dword [ebp - 4], 0xffffffff
call fcn.66203260
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x66203b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x662161e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
push ebp
call fcn.66206c20
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ebp, [esp + 0x10]
push ebp
mov ecx, dword [esp + 0x30]
push edx
push edi
push eax
or ecx, 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebp, eax
test ebp, ebp
jne 0x66203bf6
mov ebp, dword [esp + 0x20]
push edi
push edi
push str.Error__ld__08lX
push ebp
call fcn.662036b0
add esp, 0x10
jmp 0x66203cc9
xor eax, eax
or ebp, ebp
push esi
jbe 0x66203c96
mov esi, dword [esp + 0xc]
push ebx
movzx ecx, word [esi + eax*2]
cmp cx, 0xd
je 0x66203c19
cmp cx, 0xa
je 0x66203c19
inc eax
jmp 0x66203c6a
lea ebx, [eax + 1]
mov ecx, ebx
cmp ecx, ebp
jae 0x66203c37
movzx edx, word [esi + ecx*2]
cmp dx, 0xd
je 0x66203c32
cmp dx, 0xa
jne 0x66203c37
inc ecx
cmp ecx, ebp
jb 0x66203c22
mov edx, 0x20
sub ecx, eax
mov word [esi + eax*2], dx
sub ebp, ecx
lea esi, [ecx + eax]
mov edx, dword [esp + 0x10]
lea esi, [edx + esi*2]
mov ecx, ebp
lea edx, [edx + eax*2 + 2]
sub ecx, eax
add ecx, ecx
push ecx
push esi
push edx
call fcn.6620be20
mov eax, ebx
mov esi, dword [esp + 0x1c]
sub esp, 0xfffffff4
inc ebp
cmp eax, ebp
jb 0x66203c06
pop ebx
or ebp, ebp
jbe 0x66203c9a
jmp 0x66203c79
mov esi, dword [esp + 0xc]
movzx esi, word [esi + ebp*2 - 2]
push esi
call fcn.6620c2f4
sub esp, 0xfffffffc
or eax, eax
jne 0x66203c91
cmp si, 0x2e
jne 0x66203c96
sub ebp, 1
jne 0x66203c75
mov esi, dword [esp + 0xc]
push 0
push 0
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ecx, ebp
push 1
call fcn.66202f40
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push edi
push str.___ld__08lX_
push ebp
call fcn.662036b0
sub esp, 0xfffffff0
pop esi
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
push eax
call fcn.66206c30
mov eax, ebp
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
sub esp, 0xffffffec
mov dword fs:[0], ecx
ret
Function at 0x662044c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, ebx
add ecx, edx
adc eax, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x16c]
cmp edi, eax
jg 0x662044fe
jl 0x662044f0
mov edi, dword [esi + 0x168]
cmp edi, ecx
jae 0x662044fe
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
sub esp, 0xfffffff8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x66204524
add eax, edx
mov ecx, dword [esp + 0x20]
push ebx
push eax
push ecx
call fcn.6620b9c0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
sub esp, 0xfffffff8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x6620453b
pop edi
pop esi
pop ebx
mov eax, 0xc0000008
sub esp, 0xfffffff8
ret 0x14
cmp byte [esi + 0x18c], 0
mov dword [esp + 0x24], 0
je 0x66204581
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x6620456d
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 0x66204574
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jge 0x66204583
pop edi
pop esi
pop ebx
sub esp, 0xfffffff8
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 0x662045cf
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
or esi, esi
je 0x662045cb
jl 0x662045de
mov esi, 0xc0000001
jmp 0x662045de
mov esi, dword [esp + 0xc]
test esi, esi
jl 0x662045de
cmp dword [esp + 0x10], ebx
je 0x662045de
mov esi, 0xc000007b
mov eax, dword [esp + 0x24]
or eax, eax
je 0x662045ed
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 0x66205530
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x6621636b
push eax
mov dword fs:[0], esp
add esp, 0xffffff18
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esi + 0x178]
push edi
call fcn.66209310
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x6620565f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x66205628
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.6620a050
sub esp, 0xfffffff8
lea ecx, [esp + 0x48]
call fcn.66202e50
lea ecx, [esp + 0x10]
xor edx, edx
lea edi, [esi + 0x170]
cmp byte [esi + 0x18c], bl
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], ebx
setne dl
dec edx
mov dword [esp + 0x1c], 0x40
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 0x66205614
lea ecx, [esp + 0x48]
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
call fcn.66203260
mov eax, ebp
jmp 0x662056f3
lea ecx, [esp + 0x48]
mov dword [esp + 0x100], 0xffffffff
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 0x662056f3
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], edi
mov ecx, esi
call fcn.66204c50
mov edi, eax
cmp edi, ebx
jge 0x66205682
lea ecx, [esi + 0x178]
call fcn.66209310
mov ecx, esi
call fcn.66204440
mov eax, edi
jmp 0x662056f3
cmp byte [esp + 0x108], bl
je 0x6620568f
xor eax, eax
jmp 0x662056f3
mov ebp, dword [esi + 0x178]
mov ecx, ebp
call fcn.66205790
or al, al
je 0x6620568b
cmp byte [esp + 0x10c], bl
je 0x6620568b
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0x110]
cmp eax, ebx
mov dword [esi + 0x174], edx
mov dword [esi + 0x170], ebx
push 0xffffffffffffffff
je 0x662056d2
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x662056e8
mov ecx, ebp
call fcn.662057b0
push eax
mov ecx, esi
call fcn.662037f0
mov ecx, eax
call fcn.66201025
mov ecx, esi
push ebx
push ebx
push 1
call fcn.66205530
mov edx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
sub esp, 0xffffff0c
mov dword fs:[0], edx
ret 0xc
Function at 0x66205bf0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push 0x11c
push ebx
mov esi, ecx
lea edi, [esi + 4]
push edi
call fcn.6620b860
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [esi + 8], 5
jne 0x66205c73
cmp dword [esi + 0xc], ebx
jne 0x66205c73
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
cmp edx, ebx
je 0x66205c6d
cmp word [eax + 0x1dc], bx
je 0x66205c6d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
sub eax, 0xfffffffe
cmp cx, bx
jne 0x66205c42
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
lea edx, [esi + 0x18]
push edx
call fcn.6620b9c0
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 0x66205fe0
Capabilities:
Get system information on windows

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

Disassembly:
push ebx
mov ebx, esp
push 0xffffffffffffffff
push 0x6621a798
push 0x6620ca04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push ebp
push edi
mov dword [ebx - 0x18], esp
mov edi, ecx
mov dword [ebx - 0x20], edi
mov ebp, dword [ebx + 8]
mov eax, ebp
mov esi, dword [ebx + 0xc]
or eax, esi
je 0x6620788d
cmp ebp, 0xffffffff
jne 0x662076c8
test esi, esi
je 0x6620788d
mov ecx, ebp
and ecx, esi
cmp ecx, 0xffffffff
je 0x6620788d
cmp dword [ebx + 0x20], 0
ja 0x662076eb
jb 0x66207875
cmp dword [ebx + 0x1c], 0x40
jb 0x66207875
lea edx, [ebx - 0x1c]
mov dword [ebx - 4], 0
push edx
mov ecx, edi
push esi
push ebp
call fcn.66207400
or eax, eax
jge 0x6620771d
mov dword [ebx - 4], 0xffffffff
mov edx, dword [ebx - 0x10]
mov dword fs:[0], edx
pop edi
pop ebp
pop esi
mov esp, ebx
pop ebx
ret 0x1c
mov eax, 0x5a4d
cmp word [ebx - 0x1c], ax
jne 0x6620786e
lea ecx, [ebx - 0x24]
mov eax, esi
mov edx, ebp
push ecx
mov ecx, edi
add edx, 0x3c
adc eax, 0
push eax
push edx
call fcn.66207420
test eax, eax
jl 0x66207703
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx - 0x24]
xor edi, edi
cmp edi, ecx
ja 0x6620786e
jb 0x66207762
cmp eax, dword [ebx + 0x1c]
jae 0x6620786e
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x6620786e
xor edx, edx
cmp edx, ecx
ja 0x6620786e
jb 0x66207785
lea ecx, [eax + 0x18]
cmp ecx, dword [ebx + 0x1c]
jae 0x6620786e
cmp eax, 0x10000000
jae 0x6620786e
add eax, ebp
lea edx, [ebx - 0x28]
adc edi, esi
push edx
push edi
push eax
mov ecx, dword [ebx - 0x20]
call fcn.66207420
test eax, eax
jl 0x66207703
cmp dword [ebx - 0x28], 0x4550
jne 0x6620786e
xor esi, esi
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx - 0x24]
add edi, ebp
adc esi, dword [ebx + 0xc]
or eax, eax
je 0x662077cd
mov dword [eax], edi
mov dword [eax + 4], esi
mov ebp, dword [ebx + 0x18]
or ebp, ebp
je 0x66207849
mov dword [ebp + 0x108], edi
mov dword [ebp + 0x10c], esi
mov eax, dword [ebx + 8]
mov dword [ebp + 0x110], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0x114], ecx
mov dl, byte [ebx + 0x10]
mov byte [ebp + 0x118], dl
push 0
push 0x18
push ebp
push esi
push edi
mov ecx, dword [ebx - 0x20]
call fcn.662071f0
or eax, eax
jl 0x66207703
movzx eax, word [ebp + 0x14]
mov edx, 0xf0
movzx ecx, ax
cmp dx, cx
jae 0x66207827
mov eax, edx
jmp 0x6620782a
movzx eax, ax
push 0
push eax
sub ebp, 0xffffffe8
push ebp
add edi, 0x18
adc esi, 0
push esi
push edi
mov ecx, dword [ebx - 0x20]
call fcn.662071f0
or eax, eax
jl 0x66207703
xor eax, eax
mov dword [ebx - 4], 0xffffffff
mov edi, dword [ebx - 0x10]
mov dword fs:[0], edi
pop edi
pop ebp
pop esi
mov esp, ebx
pop ebx
ret 0x1c
mov dword [ebx - 4], 0xffffffff
mov edx, dword [ebx - 0x10]
mov dword fs:[0], edx
mov eax, 0xc000007b
pop edi
pop ebp
pop esi
mov esp, ebx
pop ebx
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebx - 0x10]
mov dword fs:[0], ecx
pop edi
pop ebp
pop esi
mov esp, ebx
pop ebx
ret 0x1c
Function at 0x66208050
Capabilities:
Enumerate pe sections

Disassembly:
add esp, 0xffffffc4
push ebx
push edi
mov ebx, ecx
mov edi, dword [esp + 0x48]
cmp byte [edi + 0x118], 0
jne 0x66208071
mov eax, 0xc000000d
pop edi
pop ebx
sub esp, 0xffffffc4
ret 4
cmp word [edi + 0x14], 2
mov edx, dword [edi + 0x114]
mov ecx, dword [edi + 0x110]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jb 0x66208091
mov eax, 0x10b
mov ecx, dword [edi + 0x54]
mov dword [esp + 0xc], ecx
lea eax, [esp + 8]
mov ecx, 0x6621ddb8
push eax
mov eax, dword [ebx + 0x48]
push 2
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.6620ac30
or eax, eax
jl 0x66208182
movzx eax, word [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10c]
cdq
push esi
mov esi, eax
add esi, dword [edi + 0x108]
adc ebp, edx
mov dword [esp + 0x50], 0
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620817e
push 0
mov ecx, ebx
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
call fcn.662071f0
test eax, eax
jl 0x66208180
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.66207ff0
test eax, eax
jl 0x66208180
mov edx, dword [esp + 0x48]
push edx
call fcn.66207380
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
mov ecx, 0x6621ddb8
push edx
mov dword [esp + 0x2c], 0
call fcn.6620ac30
test eax, eax
jl 0x66208180
movzx edx, word [edi + 6]
mov eax, dword [esp + 0x50]
inc eax
add esi, 0x28
adc ebp, 0
mov dword [esp + 0x50], eax
cmp eax, edx
jb 0x662080f8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4