joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push edi
test ecx, ecx
je 0x40556e
mov ecx, dword [ecx + 4]
jmp 0x405570
xor ecx, ecx
sub esp, 8
lea edx, [ebp - 0x2c]
call fcn.0040ffa0
nop dword [eax + eax]
test eax, eax
js 0x40563f
push 0
push 0
push 0x60
push 5
push 7
push 0x80
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0x40
push eax
push 0x120116
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov ecx, dword [ebp - 0x28]
mov esi, eax
test ecx, ecx
je 0x405602
push ecx
mov ecx, dword fs:[0x18]
push 0
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
test esi, esi
js 0x40563f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0
push 0
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x405634
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x405634
mov bl, 1
test esi, esi
je 0x40563f
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421733
mov esp, ebp
pop ebp
ret 4
Function at 0x405660
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0043f2f0
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor al, al
mov dword [ebp - 0x1140], edx
mov byte [ebp - 0x1131], al
mov dword [ebp - 0x1138], 0
push esi
push edi
test ecx, ecx
je 0x40569b
mov edx, dword [ecx + 4]
jmp 0x40569d
xor edx, edx
push ecx
push 0x60
push 1
push 7
push 0x80
push 0
push 0x120089
lea ecx, [ebp - 0x1138]
call fcn.00410800
mov ebx, dword [ebp - 0x1138]
test eax, eax
js 0x40579a
push 5
push 0x18
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x113c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x40579a
movq xmm0, qword [ebp - 0x1018]
lea ecx, [ebp - 0x1130]
movups xmm1, xmmword [ebp - 0x1028]
movq qword [ebp - 0x1018], xmm0
call fcn.00412920
movaps xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 8
movd esi, xmm0
movd edi, xmm1
mov eax, esi
or eax, edi
je 0x40577e
nop dword [eax + eax]
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x40579a
push dword [ebp - 0x100c]
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1130]
call fcn.00412980
sub esi, dword [ebp - 0x100c]
mov eax, esi
sbb edi, 0
or eax, edi
jne 0x405730
mov edx, dword [ebp - 0x1140]
lea ecx, [ebp - 0x1130]
sub esp, 8
call fcn.00412a20
mov byte [ebp - 0x1131], al
jmp 0x4057a0
mov al, byte [ebp - 0x1131]
test ebx, ebx
je 0x4057b1
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov al, byte [ebp - 0x1131]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421733
mov esp, ebp
pop ebp
ret
Function at 0x4057e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
sub esp, 8
call fcn.00413000
add esp, 4
mov ecx, eax
call fcn.0040f2c0
mov ecx, esi
call fcn.00404400
test al, al
jne 0x405844
push 0
push 0
push 0x8007
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00421733
mov esp, ebp
pop ebp
ret 4
call fcn.00404680
call fcn.00404c00
mov ecx, dword [esi + 0x18]
mov edx, str._systeminformer_setup.exe
call fcn.00405480
mov edi, eax
test edi, edi
je 0x405869
mov ecx, dword [edi + 4]
jmp 0x40586b
xor ecx, ecx
lea edx, [esp + 0x18]
call fcn.00410a40
or ebx, 0xffffffff
test eax, eax
jns 0x40588e
nop dword [eax + eax]
cmp eax, 0xc0000043
je 0x40588e
cmp eax, 0xc0000022
jne 0x4058cc
call fcn.00411e20
mov dword [esp + 0xc], eax
test eax, eax
je 0x4058a2
mov edx, dword ds:[eax + 4]
jmp 0x4058a4
xor edx, edx
test edi, edi
je 0x4058ad
mov ecx, dword [edi + 4]
jmp 0x4058af
xor ecx, ecx
push 0
call fcn.004113a0
mov ecx, dword [esp + 0xc]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4058cc
call fcn.004060e0
lea ecx, [edi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4058de
call fcn.004060e0
nop
call fcn.00403c00
mov ecx, dword [esi + 0x18]
call fcn.004110e0
test eax, eax
jns 0x4059c2
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push 0x46dd08
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x465468
call fcn.004070a0
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push 0x46dd10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x465468
call fcn.004070a0
mov edi, eax
test edi, edi
je 0x405949
mov edx, dword [edi + 4]
jmp 0x40594b
xor edx, edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405958
mov ecx, dword [eax + 4]
jmp 0x40595a
xor ecx, ecx
push 0
call fcn.004113a0
test edi, edi
je 0x40596e
mov eax, dword [edi + 4]
jmp 0x405970
xor eax, eax
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword ds:[esi + 0x18]
test eax, eax
je 0x405989
mov eax, dword [eax + 4]
jmp 0x40598b
xor eax, eax
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4059a8
call fcn.004060e0
mov ecx, dword [esp + 0xc]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4059be
call fcn.004060e0
mov byte [esi + 0x6c], 1
test byte [esi + 0x10], 1
je 0x405a08
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
push ecx
mov ecx, 0x46541c
mov dword [esp + 0x1c], str.SystemInformer_
call fcn.00411ec0
mov edi, eax
test edi, edi
je 0x405a08
mov ecx, edi
call fcn.004110e0
lea ecx, ds:[edi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x405a08
call fcn.004060e0
push 0
push 0
push 0x8006
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421733
mov esp, ebp
pop ebp
ret 4
Function at 0x406400
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46dad8], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ee30]
jae 0x40642a
cmp ecx, 0x40
jae 0x40642a
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x406433
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40643c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x406450
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
ret
mov ecx, dword ds:[esi + 0x10c]
push ebx
mov ebx, dword [0x46ecc0]
test ecx, ecx
jne 0x406484
push 0x100
push 4
push ebx
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x4064c1
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
je 0x4064b0
push ecx
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x4064b9
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
pop ebx
mov dword [ecx + eax*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
ret

Function at 0x406760
Capabilities:
Create thread

Disassembly:
sub esp, 0x40
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push esi
mov dword [esp + 0x34], ecx
xorps xmm0, xmm0
lea ecx, [esp + 0x28]
movlpd qword [esp + 0x20], xmm0
push ecx
push 0
push 0
push 0
push 0
push eax
push 0x4066e0
push 0xffffffffffffffff
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x18
push eax
push 0x1fffff
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x58], 0x10003
mov dword [esp + 0x5c], 8
mov dword [esp + 0x64], 0
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov esi, eax
test esi, esi
js 0x406815
mov eax, dword [esp + 4]
test eax, eax
je 0x406813
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword ds:[esp + 0x3c]
pop esi
xor ecx, esp
call fcn.00421733
add esp, 0x40
ret 0x20
Function at 0x407b40
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46dad8], 0xffffffff
push ebx
push esi
push edi
jae 0x407c5f
mov esi, dword fs:[0x18]
mov eax, dword fs:[0x18]
mov ebx, dword [esi + 0x30]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407bfc
nop word [eax + eax]
cmp dword [esi + 0xf94], 0
jne 0x407c1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword fs:[0x18]
push 0x1000
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0xf94], eax
test eax, eax
je 0x407c5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
je 0x407b90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov dword [esi + edi*4 + 0xe10], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0
push 1
push dword [ebx + 0x150]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov ecx, dword fs:[0x18]
mov edi, eax
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp edi, 0xffffffff
je 0x407c5f
mov ecx, dword [esi + 0xf94]
lea eax, [edi + 0x40]
mov dword [ecx + edi*4], 0
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x40a760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 4
jb 0x40a7c9
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467430]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467430]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467430]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467430]
sub edi, 1
jne 0x40a772
pop edi
test esi, esi
je 0x40a7ea
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467430]
sub esi, 1
jne 0x40a7d0
not ecx
mov eax, ecx
pop esi
ret 4
Function at 0x40f160
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x30
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push 5
push 0x18
lea eax, [esp + 0x18]
mov esi, edx
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edx, eax
test edx, edx
js 0x40f1b3
movups xmm1, xmmword [esp + 0x10]
movq xmm0, qword [esp + 0x20]
movq qword [esp + 0x20], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
movd dword [esi], xmm0
movd dword [esi + 4], xmm1
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.00421733
add esp, 0x30
ret

Function at 0x40f1e0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
cmp dword [0x46dad8], 0x6a
push esi
push edi
mov edi, ecx
jb 0x40f215
push 0x40
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x13
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x40f2b8
push 0xd
push 1
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1c]
push eax
lfence
push edi
mov byte [esp + 0x1f], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x40f2b6
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x40], eax
xorps xmm0, xmm0
push 0
lea eax, [esp + 0x34]
movlpd qword [esp + 0x2c], xmm0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edi
push eax
push 0x10000
lea eax, [esp + 0x34]
mov dword [esp + 0x54], 0x40
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x40f2b6
nop
test eax, eax
js 0x40f2b6
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
add esp, 0x34
ret
mov eax, esi
pop edi
pop esi
add esp, 0x34
ret
Function at 0x40f440
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov byte [esp + 0x1c], 1
mov ebx, 0x400
mov dword [esp + 0x14], ebp
push ebx
push 4
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop dword [eax + eax]
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 0
push 0
push 1
push ebx
push edi
push eax
push 0
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x40f4af
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x20]
cmp esi, 0x80000005
je 0x40f4bf
cmp esi, 0xc0000004
jne 0x40f4d3
push edi
push 0
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
jmp 0x40f458
cmp esi, 0x80000006
je 0x40f547
test esi, esi
js 0x40f549
push dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov ebp, edi
push edi
push dword [esp + 0x1c]
lfence
mov dword [esp + 0x24], 0
call dword [0x44127c]
nop
call dword [esp + 0x3c]
test al, al
je 0x40f549
mov eax, dword [ebp]
test eax, eax
je 0x40f539
mov ecx, dword [esp + 0x18]
push dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x1c], ecx
lea ebp, [ecx + edi]
mov ecx, dword [esp + 0x34]
push ebp
push dword [esp + 0x1c]
call dword [0x44127c]
call dword [esp + 0x3c]
test al, al
jne 0x40f508
jmp 0x40f549
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
jmp 0x40f470
xor esi, esi
push edi
push 0
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8

Function at 0x410700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, 0x10
push ebp
mov ebp, ecx
push esi
push edi
test edx, edx
je 0x410746
mov esi, dword [edx]
test esi, esi
je 0x410746
movzx eax, si
mov word [esp + 0x18], ax
add eax, 2
mov word [esp + 0x1a], ax
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
cmp esi, 0xfffe
jbe 0x41074f
mov eax, 0xc0000106
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov esi, 0x100
push esi
push 4
push dword [0x46ecc0]
mov dword [esp + 0x20], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop dword [eax]
lea eax, ds:[esp + 0x14]
push eax
push esi
push edi
push 2
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x4107e3
push edi
push 0
cmp esi, 0x80000005
jne 0x4107c5
push dword [0x46ecc0]
nop dword [eax]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x14]
push 4
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
je 0x4107e3
mov esi, dword [esp + 0x14]
jmp 0x410770
lfence
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4111a0
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
push ecx
push 0x64
push 1
push 7
push 0x80
mov esi, edx
mov edx, ecx
push 0
push 0x100081
lea ecx, [esp + 0x30]
call fcn.00410800
test eax, eax
jns 0x4111ee
lfence
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00421733
add esp, 0x68
ret 4
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push 4
push 0x28
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x41136c
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x41136c
movups xmm1, xmmword [esp + 0x30]
mov eax, 5
cmp byte [esp + 0x7c], 0
movq xmm0, qword [esp + 0x40]
mov edx, esi
movq qword [esp + 0x40], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
psrldq xmm1, 0xc
movd dword [esp + 0x24], xmm1
push ecx
mov dword [esp + 0x24], ecx
mov ecx, 2
push 0x64
cmovne eax, ecx
lea ecx, [esp + 0x1c]
push eax
push 1
push 0x80
lea eax, [esp + 0x34]
push eax
push 0x120116
call fcn.00410800
mov edi, eax
test edi, edi
js 0x41136c
call fcn.004068e0
mov edi, eax
test edi, edi
jne 0x4112ae
mov edi, 0xc0000017
jmp 0x41136c
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, dword [esp + 0x14]
mov esi, eax
test esi, esi
js 0x41132c
lfence
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41132c
push 0
push 0
push eax
push edi
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x41132c
cmp dword [esp + 0x1c], 0
je 0x41132c
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
jns 0x4112d7
mov ecx, edi
call fcn.00406920
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
js 0x41135b
push 4
push 0x28
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x411365
mov ecx, ebp
call fcn.0040f1e0
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x74]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421733
add esp, 0x68
ret 4
Function at 0x4113a0
Capabilities:
Get number of processors
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebp, edx
sub esp, 8
mov esi, ecx
lea edx, [esp + 0x20]
mov ecx, ebp
call fcn.0040ffa0
test eax, eax
jns 0x4113ca
lfence
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push ecx
push 0x64
push 1
push 7
push 0x80
push 0
push 0x110081
mov edx, esi
lea ecx, [esp + 0x2c]
call fcn.00410800
mov esi, eax
lfence
test esi, esi
jns 0x41141a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x41140e
mov eax, dword fs:[0x18]
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
movzx esi, word [esp + 0x18]
add esi, 0x12
push esi
push 4
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x20], ebx
call fcn.004233f0
add esp, 0xc
mov dword [ebx + 4], 0
cmp byte [esp + 0x34], 0
sete cl
mov byte [ebx], cl
movzx eax, word [esp + 0x18]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x20]
lea eax, [ebx + 0xc]
push eax
call fcn.00423550
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x41149d
push eax
mov eax, dword fs:[0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push 0xa
push esi
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
cmp edi, 0xc00000d4
jne 0x4115d2
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.0040f160
mov edi, eax
test edi, edi
js 0x4115d2
cmp byte [esp + 0x34], 0
mov eax, 5
push ecx
push 0x64
mov ecx, 2
mov edx, ebp
cmovne eax, ecx
lea ecx, [esp + 0x18]
push eax
push 1
push 0x80
lea eax, [esp + 0x3c]
push eax
push 0x120116
lfence
call fcn.00410800
mov edi, eax
test edi, edi
js 0x4115d2
call fcn.004068e0
mov edi, eax
test edi, edi
jne 0x411528
mov edi, 0xc0000017
jmp 0x4115d2
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebp, dword [esp + 0x10]
mov esi, eax
test esi, esi
js 0x4115ac
lfence
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4115ac
push 0
push 0
push eax
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ebp
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x4115ac
cmp dword ds:[esp + 0x24], 0
je 0x4115ac
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
jns 0x411553
mov ecx, edi
call fcn.00406920
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
je 0x4115cb
mov ecx, ebp
call fcn.0040f1e0
push ebp
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x14]
push 0
push dword [0x46ecc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4