joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405880
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x46e040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
sub esp, 8
call fcn.00413160
add esp, 4
mov ecx, eax
call fcn.0040f340
mov ecx, esi
call fcn.00404420
test al, al
jne 0x4058e4
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.004218f3
mov esp, ebp
pop ebp
ret 4
call fcn.004046a0
call fcn.00404c20
mov ecx, dword [esi + 0x18]
mov edx, str._systeminformer_setup.exe
call fcn.00405520
mov edi, eax
test edi, edi
je 0x405909
mov ecx, dword [edi + 4]
jmp 0x40590b
xor ecx, ecx
lea edx, [esp + 0x18]
call fcn.00410b20
or ebx, 0xffffffff
test eax, eax
jns 0x40592e
nop dword [eax + eax]
cmp eax, 0xc0000043
je 0x40592e
cmp eax, 0xc0000022
jne 0x40596c
call fcn.00411f00
mov dword [esp + 0xc], eax
test eax, eax
je 0x405942
mov edx, dword ds:[eax + 4]
jmp 0x405944
xor edx, edx
test edi, edi
je 0x40594d
mov ecx, dword [edi + 4]
jmp 0x40594f
xor ecx, ecx
push 0
call fcn.00411480
mov ecx, dword [esp + 0xc]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40596c
call fcn.00406180
lea ecx, [edi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40597e
call fcn.00406180
nop
call fcn.00403c20
mov ecx, dword [esi + 0x18]
call fcn.004111c0
test eax, eax
jns 0x405a62
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push 0x46ed08
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x466468
call fcn.004070e0
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push 0x46ed10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x466468
call fcn.004070e0
mov edi, eax
test edi, edi
je 0x4059e9
mov edx, dword [edi + 4]
jmp 0x4059eb
xor edx, edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4059f8
mov ecx, dword [eax + 4]
jmp 0x4059fa
xor ecx, ecx
push 0
call fcn.00411480
test edi, edi
je 0x405a0e
mov eax, dword [edi + 4]
jmp 0x405a10
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 0x405a29
mov eax, dword [eax + 4]
jmp 0x405a2b
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 0x405a48
call fcn.00406180
mov ecx, dword [esp + 0xc]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x405a5e
call fcn.00406180
mov byte [esi + 0x6c], 1
test byte [esi + 0x10], 1
je 0x405aa8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
push ecx
mov ecx, 0x46641c
mov dword [esp + 0x1c], str.SystemInformer_
call fcn.00411fa0
mov edi, eax
test edi, edi
je 0x405aa8
mov ecx, edi
call fcn.004111c0
lea ecx, ds:[edi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x405aa8
call fcn.00406180
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.004218f3
mov esp, ebp
pop ebp
ret 4
Function at 0x4064a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46ead8], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46fe30]
jae 0x4064ca
cmp ecx, 0x40
jae 0x4064ca
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4064d3
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4064dc
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x4064f0
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 [0x46fcc0]
test ecx, ecx
jne 0x406524
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 0x406579
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
test eax, eax
jne 0x406555
test ecx, ecx
je 0x406551
push ecx
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ecx, ecx
jmp 0x406573
push eax
test ecx, ecx
je 0x406568
push ecx
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x406571
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 0x406800
Capabilities:
Create thread

Disassembly:
sub esp, 0x40
mov eax, dword [0x46e040]
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 0x406780
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 0x4068b5
mov eax, dword [esp + 4]
test eax, eax
je 0x4068b3
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.004218f3
add esp, 0x40
ret 0x20
Function at 0x407ba0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46ead8], 0xffffffff
push ebx
push esi
push edi
jae 0x407cbf
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 0x407c5c
nop word [eax + eax]
cmp dword [esi + 0xf94], 0
jne 0x407c7f
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 0x407cbf
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 0x407bf0
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 0x407cbf
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 0x40a7c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 4
jb 0x40a829
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 + 0x468440]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x468440]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x468440]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x468440]
sub edi, 1
jne 0x40a7d2
pop edi
test esi, esi
je 0x40a84a
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 + 0x468440]
sub esi, 1
jne 0x40a830
not ecx
mov eax, ecx
pop esi
ret 4
Function at 0x40f1e0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x30
mov eax, dword [0x46e040]
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 0x40f233
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.004218f3
add esp, 0x30
ret

Function at 0x40f260
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
cmp dword [0x46ead8], 0x6a
push esi
push edi
mov edi, ecx
jb 0x40f295
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 0x40f338
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 0x40f336
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 0x40f336
nop
test eax, eax
js 0x40f336
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 0x40f4c0
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 [0x46fcc0]
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 0x40f52f
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 0x40f53f
cmp esi, 0xc0000004
jne 0x40f553
push edi
push 0
push dword [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
jmp 0x40f4d8
cmp esi, 0x80000006
je 0x40f5c7
test esi, esi
js 0x40f5c9
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 [0x44227c]
nop
call dword [esp + 0x3c]
test al, al
je 0x40f5c9
mov eax, dword [ebp]
test eax, eax
je 0x40f5b9
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 [0x44227c]
call dword [esp + 0x3c]
test al, al
jne 0x40f588
jmp 0x40f5c9
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
jmp 0x40f4f0
xor esi, esi
push edi
push 0
push dword [0x46fcc0]
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 0x4107e0
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 0x410826
mov esi, dword [edx]
test esi, esi
je 0x410826
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 0x41082f
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 [0x46fcc0]
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 0x4108c3
push edi
push 0
cmp esi, 0x80000005
jne 0x4108a5
push dword [0x46fcc0]
nop dword [eax]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x14]
push 4
push dword [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
je 0x4108c3
mov esi, dword [esp + 0x14]
jmp 0x410850
lfence
push dword [0x46fcc0]
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 0x411280
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x46e040]
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.004108e0
test eax, eax
jns 0x4112ce
lfence
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004218f3
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 0x41144c
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 0x41144c
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.004108e0
mov edi, eax
test edi, edi
js 0x41144c
call fcn.00406980
mov edi, eax
test edi, edi
jne 0x41138e
mov edi, 0xc0000017
jmp 0x41144c
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 0x41140c
lfence
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41140c
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 0x41140c
cmp dword [esp + 0x1c], 0
je 0x41140c
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 0x4113b7
mov ecx, edi
call fcn.004069c0
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
js 0x41143b
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 0x411445
mov ecx, ebp
call fcn.0040f260
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.004218f3
add esp, 0x68
ret 4
Function at 0x411480
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.00410080
test eax, eax
jns 0x4114aa
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.004108e0
mov esi, eax
lfence
test esi, esi
jns 0x4114fa
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4114ee
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 [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x20], ebx
call fcn.004235b0
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.00423710
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x41157d
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 0x4116b2
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.0040f1e0
mov edi, eax
test edi, edi
js 0x4116b2
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.004108e0
mov edi, eax
test edi, edi
js 0x4116b2
call fcn.00406980
mov edi, eax
test edi, edi
jne 0x411608
mov edi, 0xc0000017
jmp 0x4116b2
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 0x41168c
lfence
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41168c
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 0x41168c
cmp dword ds:[esp + 0x24], 0
je 0x41168c
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 0x411633
mov ecx, edi
call fcn.004069c0
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
je 0x4116ab
mov ecx, ebp
call fcn.0040f260
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 [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4116e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x46ed8c]
mov ebp, edx
push edi
push esi
push 4
push dword [0x46fcc0]
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push 4
lea eax, [esp + 0x24]
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x41177e
cmp esi, 8
jae 0x411784
push ebx
push 0
push dword [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x411732
nop
test edi, edi
jns 0x4117a3
push ebx
push 0
lfence
push dword [0x46fcc0]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
lfence
mov ecx, dword [esp + 0x10]
cmp ecx, 0x100000
ja 0x4117b8
mov dword [0x46ed8c], ecx
mov eax, dword [esp + 0x1c]
mov dword [ebp], ebx
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x411de0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ffa8]
test ecx, ecx
je 0x411dff
mov eax, dword [0x46ffa4]
mov dword [edi], eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x50], 0
je 0x411e30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x50]
cmp dword [eax], 0
je 0x411e30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x50]
add esi, 0x1e
jmp 0x411e35
mov esi, 0x7ffe0030
mov ecx, esi
call fcn.00406a00
lea ecx, [eax + eax]
movzx eax, word [ecx + esi - 2]
mov edx, ecx
mov ebx, eax
cmp eax, 0x5c
jne 0x411e50
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [edi], edx
cmp ebx, 0x5c
mov dword [edi + 4], esi
cmovne eax, ecx
xor ecx, ecx
mov dword [0x46ffa4], eax
lea eax, [esp + 0xc]
lock or dword [eax], ecx
pop edi
mov dword [0x46ffa8], esi
pop esi
pop ebx
pop ecx
ret

Function at 0x412a80
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 3
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x6a09e667
mov dword [ecx + 0x10], 0xbb67ae85
mov dword [ecx + 0x14], 0x3c6ef372
mov dword [ecx + 0x18], 0xa54ff53a
mov dword [ecx + 0x1c], 0x510e527f
mov dword [ecx + 0x20], 0x9b05688c
mov dword [ecx + 0x24], 0x1f83d9ab
mov dword [ecx + 0x28], 0x5be0cd19
ret