joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45487c
sub esp, 0x4c
mov eax, dword [0x51fd30]
mov dword [esp], eax
call fcn.0044fe30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
mov dword [esp + 4], 9
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
call fcn.0043c5b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x454876
test ecx, ecx
je 0x454868
cmp ecx, 0x3e5
jne 0x454844
mov eax, dword [0x51cd28]
mov ecx, dword [0x51cd2c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x4c
ret
mov dword [esp + 0x38], ecx
lea eax, [0x4c3480]
mov dword [esp], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call fcn.0040a380
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
jmp 0x454838
lea ecx, [0x4c2c80]
lea eax, [0x4c3480]
jmp 0x454838
xor ecx, ecx
mov eax, ecx
jmp 0x454838
call fcn.00447a60
jmp fcn.00454770
Function at 0x6620142e
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x66218d7e
call fcn.6620e5a4
sub esp, 0x36c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ebx
call fcn.66202d60
mov esi, 0x6621a488
lea eax, [ebp - 0x218]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.66203840
pop ecx
pop ecx
lea ecx, [ebp - 0x118]
call fcn.66202d60
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.66203ba0
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0xc
cmp eax, ebx
jl 0x662014f4
push 0xffffffffffffffff
push 0x6621a484
lea ecx, [ebp - 0x378]
call fcn.66203690
push ebx
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.66202c70
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x378]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call fcn.66203260
push ebx
cmp byte [ebp - 0xd], bl
je 0x662014f1
push str.AppSync
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.6620e5d0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.66203610
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x14]
lea eax, [ebp - 0x168]
push 0x6621a3c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push str.TS_PARENT_HANDLE
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x662014ea
lea ecx, [ebp - 0x2c8]
call fcn.66203260
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662015d1
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x66218dbc
call fcn.6620e5a4
sub esp, 0x460
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.66203610
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.66203610
mov esi, dword [ebp - 0xb8]
push 0x6621a4ac
mov byte [ebp - 4], 3
call fcn.6620e1a3
pop ecx
sub esi, eax
push esi
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.662038a0
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 0x66201612
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 0x662016fb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x66218de4
call fcn.6620e5a4
sub esp, 0x300
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.66203610
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 0x6620173b
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 0x662017b9
Capabilities:
Create process on windows
Create process suspended
Delete file
Set environment variable

Disassembly:
mov eax, 0x66218e0f
call fcn.6620e5a4
sub esp, 0x314
push ebx
lea ecx, [ebp - 0x270]
call fcn.66202d60
xor ebx, ebx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
call fcn.66202d60
lea eax, [ebp - 0x1c0]
push str.TS_UPDATE_THINREG
push eax
mov byte [ebp - 4], 1
call fcn.66203840
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c0]
call fcn.66203ba0
add esp, 0x14
test eax, eax
jne 0x66201935
push esi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0xcc]
call fcn.66203610
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621a4cc
push 1
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.66202f40
push dword [ebp + 8]
lea ecx, [ebp - 0xcc]
call fcn.66201008
push ebx
push ebx
push 0xffffffffffffffff
mov esi, eax
push 0x6621a4bc
push 1
mov ecx, esi
call fcn.66202f40
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621a4b8
push 1
mov ecx, esi
call fcn.66202f40
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620e5d0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xcc]
mov dword [ebp - 0x110], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662018d0
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0xcc]
cmp word [eax], 0x22
pop esi
jne 0x6620191a
push 1
push 0x22
lea ecx, [ebp - 0xcc]
call fcn.66202a70
cmp eax, 0xffffffff
je 0x6620191a
dec eax
push eax
push 1
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0xcc]
call fcn.662013c9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x320]
call fcn.66203260
push ebx
push str.TS_UPDATE_THINREG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662019f9
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 0x66201a17
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66201a8f
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66201a36
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66201a87
and dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
mov ebx, dword [ebp + 0x10]
jmp 0x66201a5d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x96
je 0x66201a69
mov eax, dword [ebx]
mov ecx, dword [esi]
push eax
push ecx
call edi
test eax, eax
je 0x66201a46
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 0x66201a8c
push esi
mov ecx, edi
call fcn.66203280
xor eax, eax
inc eax
jmp 0x66201a8e
xor eax, eax
pop esi
pop edi
leave
ret

Function at 0x66201a92
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66218e67
call fcn.6620e5a4
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.662037d0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66203610
push ebx
push ebx
push edi
mov esi, 0x6621a56c
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.66203610
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 2
call fcn.66203610
mov byte [ebp - 4], 1
call fcn.662016fb
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.66203610
mov byte [ebp - 4], 3
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66203610
mov byte [ebp - 4], 1
call fcn.662016fb
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.66203840
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 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, 0x66218f32
call fcn.6620e5a4
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.6620e66b
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.66206820
add esp, 0x14
cmp al, bl
je 0x6620243e
push 0x44
pop esi
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.6620e5d0
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, 0x66218f47
call fcn.6620e5a4
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 0x662046a0
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 0x662046de
jl 0x662046d0
mov eax, dword [esi + 0x168]
cmp eax, ecx
jae 0x662046de
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x66204704
mov ecx, dword [esp + 0x20]
push ebx
add eax, edx
push eax
push ecx
call fcn.6620e720
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x6620471b
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 0x66204761
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x6620474d
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 0x66204754
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jge 0x66204763
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 0x662047af
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x662047ab
jl 0x662047be
mov esi, 0xc0000001
jmp 0x662047be
mov esi, dword [esp + 0xc]
test esi, esi
jl 0x662047be
cmp dword [esp + 0x10], ebx
je 0x662047be
mov esi, 0xc000007b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x662047cd
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 0x66205600
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x662191eb
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.6620bcd0
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x6620572f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x662056f8
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.6620ca60
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 0x662056e4
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x662057c3
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 0x662057c3
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.66204df0
mov edi, eax
cmp edi, ebx
jge 0x66205752
lea ecx, [esi + 0x178]
call fcn.6620bcd0
mov ecx, esi
call fcn.66204620
mov eax, edi
jmp 0x662057c3
cmp byte [esp + 0x108], bl
je 0x6620575f
xor eax, eax
jmp 0x662057c3
mov edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205860
test al, al
je 0x6620575b
cmp byte [esp + 0x10c], bl
je 0x6620575b
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 0x662057a2
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x662057b8
mov ecx, edi
call fcn.66205880
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.66205600
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 0x66205d10
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.6620e5d0
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [esi + 8], 5
jne 0x66205d93
cmp dword [esi + 0xc], ebx
jne 0x66205d93
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
cmp edx, ebx
je 0x66205d8d
cmp word [eax + 0x1dc], bx
je 0x66205d8d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x66205d62
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
lea edx, [esi + 0x18]
push edx
call fcn.6620e720
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 0x66205df0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x662191eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.66202d60
xor ebx, ebx
mov dword [esp + 0xe8], ebx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.66205bb0
add esp, 8
lea ecx, [esp + 0x30]
call fcn.66202e50
mov ebp, dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
lea ecx, [esp + 0x14]
push ecx
push 0xf
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov edi, eax
cmp edi, ebx
jl 0x66205e87
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
jmp 0x66205f0d
lea ecx, [esp + 0x14]
push ecx
push 3
lea edx, [esp + 0x18]
push edx
call ebp
test eax, eax
jl 0x66205ea3
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
call ebp
cmp eax, ebx
jl 0x66205f1b
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push str.Restricted
lea ecx, [esp + 0x38]
call fcn.662032c0
lea ecx, [esp + 0x30]
call fcn.66202e50
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0xf
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0x2c]
cmp edi, ebx
jl 0x66205f1b
mov edx, dword [esp + 0x10]
mov dword [esi + 0x158], edx
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.66203260
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret
Function at 0x66206130
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
call fcn.66205af0
test al, al
je 0x6620619b
push edi
mov ecx, esi
call fcn.66205d10
push 0x2c
lea edi, [esi + 0x120]
push 0
push edi
call fcn.6620e5d0
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.66205da0
mov ecx, esi
call fcn.66205df0
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
pop edi
pop esi
ret