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
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
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
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.66202f40
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.662034b0
mov esi, dword [ebp - 0xb8]
push 0x6621748c
mov byte [ebp - 4], 3
call fcn.6620b438
pop ecx
sub esi, eax
push esi
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0xbc]
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]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203280
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.66203260
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
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
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
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
sub esp, 0x300
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
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
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.66202f40
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203280
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x6620173c
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
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
sub esp, 0x318
push ebx
lea ecx, [ebp - 0x274]
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
push ebx
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x1c4]
call fcn.662039e0
add esp, 0x14
test eax, eax
jne 0x66201937
push esi
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0xd0]
call fcn.662034b0
push ebx
push 3
push 0xffffffffffffffff
mov esi, 0x662174a8
push esi
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.66202f40
push dword [ebp + 8]
lea ecx, [ebp - 0xd0]
call fcn.66201008
push ebx
push ebx
push 0xffffffffffffffff
push str..exe
mov ecx, eax
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
push 0x44
pop esi
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.6620b860
add esp, 0xc
lea eax, [ebp - 0x20]
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
push 1
push 0x22
lea ecx, [ebp - 0xd0]
call fcn.66202a70
cmp eax, 0xffffffff
je 0x6620191c
dec eax
push eax
push 1
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0xd0]
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]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
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 edi
mov edi, dword [ebp + 8]
cmp dword [edi + 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 esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66201a38
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66201a89
and dword [ebp - 4], 0
mov edi, 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 eax, dword [ebx]
mov ecx, dword [esi]
push eax
push ecx
call edi
test eax, eax
je 0x66201a48
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
test eax, eax
je 0x66201a8e
push esi
mov ecx, edi
call fcn.66203280
xor eax, eax
inc eax
jmp 0x66201a90
xor eax, eax
pop esi
pop edi
leave
ret

Function at 0x66201a94
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66215fc7
call fcn.6620b838
sub esp, 0x168
push ebx
push esi
push edi
or edi, 0xffffffff
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.66202ae0
push eax
lea ecx, [ebp + 8]
call fcn.66202ec0
push eax
lea ecx, [ebp + 8]
call fcn.66203610
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.662034b0
push ebx
push ebx
push edi
mov esi, 0x66217544
push esi
push 1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.66202f40
push ebx
push ebx
push edi
push str..ase
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.662034b0
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 2
call fcn.662034b0
mov byte [ebp - 4], 1
call fcn.662016fc
add esp, 0x160
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66203280
push ebx
push ebx
push edi
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
push ebx
push ebx
push edi
push str..asd
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.662034b0
mov byte [ebp - 4], 3
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
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
lea eax, [ebp - 0x174]
push str.TS_UPDATE_COMPLETE
push eax
mov byte [ebp - 4], 4
call fcn.66203680
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.66203260
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.66203260
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
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:
push ebp
sub esp, 0x54
mov eax, 0x66216092
call fcn.6620b838
sub esp, 0x368
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp + 0x60]
lea ecx, [ebp - 0xbc]
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
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.6620b8fb
pop ecx
pop ecx
test eax, eax
je 0x6620230f
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.66206640
add esp, 0x14
cmp al, bl
je 0x66202440
push 0x44
pop esi
push esi
lea eax, [ebp]
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]
mov esi, eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x16c]
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
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 0x66202406
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 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
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 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
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.66203610
push ebx
lea eax, [ebp - 0xbc]
push eax
mov esi, str.TS_UPDATED_DATFILE
push esi
call fcn.662039e0
add esp, 0xc
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
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 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 ebp
push esi
call fcn.66206c20
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 0x66203bf6
mov esi, dword [esp + 0x20]
push ebp
push ebp
push str.Error__ld__08lX
push esi
call fcn.662036b0
add esp, 0x10
jmp 0x66203cc9
xor eax, eax
push edi
test esi, esi
jbe 0x66203c96
mov edi, dword [esp + 0xc]
push ebx
movzx ecx, word [edi + 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, esi
jae 0x66203c37
movzx edx, word [edi + ecx*2]
cmp dx, 0xd
je 0x66203c32
cmp dx, 0xa
jne 0x66203c37
inc ecx
cmp ecx, esi
jb 0x66203c22
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.6620be20
mov edi, dword [esp + 0x1c]
add esp, 0xc
inc esi
mov eax, ebx
cmp eax, esi
jb 0x66203c06
pop ebx
test esi, esi
jbe 0x66203c9a
jmp 0x66203c79
mov edi, dword [esp + 0xc]
movzx edi, word [edi + esi*2 - 2]
push edi
call fcn.6620c2f4
add esp, 4
test eax, eax
jne 0x66203c91
cmp di, 0x2e
jne 0x66203c96
sub esi, 1
jne 0x66203c75
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.662036b0
add esp, 0x10
pop edi
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
push eax
call fcn.66206c30
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x662044c0
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 0x662044fe
jl 0x662044f0
mov eax, dword [esi + 0x168]
cmp eax, ecx
jae 0x662044fe
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x66204524
mov ecx, dword [esp + 0x20]
push ebx
add eax, edx
push eax
push ecx
call fcn.6620b9c0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x6620453b
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 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
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 0x662045cf
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test 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]
test 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
sub esp, 0xe8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x178]
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
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 0x66205614
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x662056f3
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 0x662056f3
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.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 edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205790
test al, al
je 0x6620568b
cmp byte [esp + 0x10c], bl
je 0x6620568b
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 0x662056d2
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x662056e8
mov ecx, edi
call fcn.662057b0
push eax
mov ecx, esi
call fcn.662037f0
mov ecx, eax
call fcn.66201025
push ebx
push ebx
push 1
mov ecx, esi
call fcn.66205530
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 0x66205bf0
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.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]
add eax, 2
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 esi
mov esi, ecx
call fcn.66205a20
test al, al
je 0x6620604b
push edi
mov ecx, esi
call fcn.66205bf0
push 0x2c
lea edi, [esi + 0x120]
push 0
push edi
call fcn.6620b860
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.66205c80
mov ecx, esi
call fcn.66205cd0
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
pop edi
pop esi
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621a798
push 0x6620ca04
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 0x6620788d
cmp esi, 0xffffffff
jne 0x662076c8
test edi, edi
je 0x6620788d
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x6620788d
cmp dword [ebp + 0x20], 0
ja 0x662076eb
jb 0x66207875
cmp dword [ebp + 0x1c], 0x40
jb 0x66207875
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
mov ecx, ebx
call fcn.66207400
test eax, eax
jge 0x6620771d
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 0x6620786e
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.66207420
test eax, eax
jl 0x66207703
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov ebx, dword [ebp + 0x20]
cmp ecx, ebx
ja 0x6620786e
jb 0x66207762
cmp eax, dword [ebp + 0x1c]
jae 0x6620786e
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x6620786e
xor edx, edx
cmp edx, ebx
ja 0x6620786e
jb 0x66207785
lea edx, [eax + 0x18]
cmp edx, dword [ebp + 0x1c]
jae 0x6620786e
cmp eax, 0x10000000
jae 0x6620786e
lea edx, [ebp - 0x28]
push edx
add eax, esi
adc ecx, edi
push ecx
push eax
mov ecx, dword [ebp - 0x20]
call fcn.66207420
test eax, eax
jl 0x66207703
cmp dword [ebp - 0x28], 0x4550
jne 0x6620786e
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 0x662077cd
mov dword [eax], edi
mov dword [eax + 4], ebx
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x66207849
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.662071f0
test eax, eax
jl 0x66207703
movzx eax, word [esi + 0x14]
movzx ecx, ax
mov edx, 0xf0
cmp dx, cx
jae 0x66207827
mov eax, edx
jmp 0x6620782a
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.662071f0
test eax, eax
jl 0x66207703
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 0x66208050
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 0x66208071
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 0x66208091
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, 0x6621ddb8
mov dword [esp + 0x24], 0
call fcn.6620ac30
test 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]
mov dword [esp + 0x50], 0
adc ebp, edx
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620817e
push 0
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
mov ecx, ebx
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
push edx
mov ecx, 0x6621ddb8
mov dword [esp + 0x2c], 0
call fcn.6620ac30
test eax, eax
jl 0x66208180
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 0x662080f8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4