joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d40
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edx
push eax
push 0x43f53c
push 1
push 0
push 0x43f58c
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404eec
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x43f55c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x43f268]
call esi
test eax, eax
js 0x404eec
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x43f56c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x43f268]
call esi
test eax, eax
js 0x404e78
mov ecx, ebx
call fcn.004065a0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x20], eax
add esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x1f
mov word [ebp - 0x20], ax
lea eax, [esi + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x404e48
lea ecx, [esi + 2]
push ecx
push 0
push eax
call fcn.00421e90
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x18]
call fcn.00421ff0
mov eax, dword ds:[ebp - 0xc]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x46309c
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x43f268]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x43f268]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43f268]
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 8]
push dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x43f268]
call esi
mov eax, dword ds:[ebp - 8]
mov ebx, dword [ebp - 0x28]
push 0
push ebx
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x43f268]
call esi
mov eax, dword [ebp - 8]
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x43f268]
call esi
lea esp, [esp]
test eax, eax
js 0x404eec
mov ecx, edi
call fcn.00410a00
test al, al
je 0x404ed6
mov ecx, edi
call fcn.00410aa0
mov eax, dword [ebp - 0x10]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x43f268]
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x404f08
mov eax, dword ds:[ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x43f268]
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x404f1f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x43f268]
call esi
push 0
push edi
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret 8
Function at 0x404fe0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x46a040]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], str.SiMutant_
mov dword [esp + 8], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
jb 0x40502f
push 1
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.004066a0
test al, al
jne 0x4050ad
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1c
mov dword [esp + 0xc], str.SiSetupMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1c
jb 0x405069
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.004066a0
test al, al
jne 0x4050ad
cmp dword [esi], 0x1e
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1e
mov dword [esp + 0xc], str.SiViewerMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1e
jb 0x4051b0
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.004066a0
test al, al
je 0x4051b0
movzx eax, word [esi]
mov word [esp + 0x3c], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x3e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
ja 0x4051b0
mov dword [esp + 0x24], 0x18
call fcn.00412c40
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x40
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
test eax, eax
js 0x4051b0
push 0
push 8
lea eax, [esp + 0x24]
push eax
push 1
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x4051a6
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp ecx, dword [eax + 0x20]
je 0x4051a6
push ecx
mov edx, 0x1001
lea ecx, [esp + 0x14]
call fcn.0040f100
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004146c0
test eax, eax
je 0x405186
push 0
push 0x1388
push 1
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4051a6
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4051a6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x44]
mov al, 1
pop esi
xor ecx, esp
call fcn.00420226
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4052a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
push edi
test ecx, ecx
je 0x4052ce
mov ecx, dword [ecx + 4]
jmp 0x4052d0
xor ecx, ecx
sub esp, 8
lea edx, [ebp - 0x24]
call fcn.0040ff40
jmp 0x4052e0
test eax, eax
js 0x4053a6
push 0
push 0
push 0x60
push 5
push 7
push 0x80
lea eax, [ebp - 0x24]
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 - 0x28]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x405368
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]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test esi, esi
js 0x4053a6
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0
push 0
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x2c]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x40539a
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x40539a
mov bl, 1
test esi, esi
je 0x4053a6
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.00420226
mov esp, ebp
pop ebp
ret 4
Function at 0x4053c0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x115c
call fcn.0043d310
mov eax, dword [0x46a040]
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 0x4053fb
mov edx, dword [ecx + 4]
jmp 0x4053fd
xor edx, edx
push ecx
push 0x60
push 1
push 7
push 0x80
push 0
push 0x120089
lea ecx, [ebp - 0x1138]
call fcn.004107a0
mov ebx, dword [ebp - 0x1138]
test eax, eax
js 0x4054da
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 0x4054da
mov esi, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1130]
mov edi, dword [ebp - 0x101c]
call fcn.004125b0
mov eax, esi
or eax, edi
je 0x4054be
jmp 0x405470
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 0x4054da
push dword [ebp - 0x100c]
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1130]
call fcn.00412600
sub esi, dword [ebp - 0x100c]
mov eax, esi
sbb edi, 0
or eax, edi
jne 0x405470
mov edx, dword [ebp - 0x1140]
lea ecx, [ebp - 0x1130]
sub esp, 8
call fcn.004126a0
mov byte [ebp - 0x1131], al
jmp 0x4054e0
mov al, byte [ebp - 0x1131]
test ebx, ebx
je 0x4054f1
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.00420226
mov esp, ebp
pop ebp
ret

Function at 0x406060
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46aad0], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46be64]
jae 0x40608a
cmp ecx, 0x40
jae 0x40608a
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x406093
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40609c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x4060b0
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
ret
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x4060df
push 0x100
push 4
push dword [0x46bcf4]
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 0x406124
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x40610d
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x40611c
push ecx
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
ret
Function at 0x4063c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x24]
push esi
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push eax
push 0x406340
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0
push eax
push 0x1fffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10003
mov dword [ebp - 0x10], 8
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov esi, eax
test esi, esi
js 0x40646d
mov eax, dword ds:[ebp - 0x1c]
test eax, eax
je 0x40646b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420226
mov esp, ebp
pop ebp
ret 0x20

Function at 0x407760
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46aad0], 0xffffffff
push ebx
push esi
push edi
jae 0x40787f
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 0x40781c
jmp 0x4077b0
cmp dword [esi + 0xf94], 0
jne 0x40783f
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 0x2000
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 0x40787f
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 0x4077b0
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 0x40787f
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 0x40a390
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x40a3fb
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 + 0x464ed0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464ed0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464ed0]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464ed0]
sub edi, 1
jne 0x40a3a4
pop edi
test esi, esi
je 0x40a41a
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464ed0]
sub esi, 1
jne 0x40a400
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x40f1a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x46aad0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x40f1d5
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x13
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x40f270
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lfence
push edi
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x40f26e
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
push 0x10000
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0x18
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x40f26e
test eax, eax
js 0x40f26e
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f3e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, 0x400
mov byte [ebp - 0x10], 1
push ebx
push 4
push dword [0x46bcf4]
mov esi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
push dword ds:[ebp - 0x10]
lea eax, [ebp - 0x18]
push 0
push 0
push 1
push ebx
push edi
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x40f445
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x18]
cmp esi, 0x80000005
je 0x40f455
cmp esi, 0xc0000004
jne 0x40f47c
push edi
push 0
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 4]
jmp 0x40f406
lea esp, [esp]
cmp esi, 0x80000006
je 0x40f4ee
test esi, esi
js 0x40f4f0
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 4]
lfence
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call dword [0x43f268]
call dword [ebp + 8]
test al, al
je 0x40f4f0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40f4e2
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], ecx
lea eax, [ecx + edi]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [0x43f268]
call dword [ebp + 8]
test al, al
jne 0x40f4b0
mov edi, edi
jmp 0x40f4f0
mov esi, dword [ebp - 4]
mov byte [ebp - 0x10], 0
jmp 0x40f408
xor esi, esi
push edi
push 0
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4106a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
push ebx
mov ebx, 0x10
push esi
push edi
test edx, edx
je 0x4106e5
mov esi, dword [edx]
test esi, esi
je 0x4106e5
movzx eax, si
mov word [ebp - 0x10], ax
add eax, 2
mov word [ebp - 0xe], ax
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp esi, 0xfffe
jbe 0x4106f3
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x100
push 4
push dword [0x46bcf4]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x41075e
push edi
push 0
cmp esi, 0x80000005
jne 0x41076e
push dword [0x46bcf4]
mov edi, edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
jne 0x410710
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lfence
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4110c0
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
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, [ebp - 0x50]
call fcn.004107a0
test eax, eax
jns 0x41110f
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420226
mov esp, ebp
pop ebp
ret 4
mov ebx, dword ds:[ebp - 0x50]
lea eax, [ebp - 0x4c]
push 4
push 0x28
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x41125a
push 5
push 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x41125a
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
push ecx
push 0x64
push 2
push 1
push 0x80
push eax
mov dword [ebp - 0x64], edx
mov edx, esi
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x50]
push 0x120116
call fcn.004107a0
mov edi, eax
test edi, edi
js 0x41125a
call fcn.00406520
mov edi, eax
test edi, edi
jne 0x41119d
mov edi, 0xc0000017
jmp 0x41125a
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov dword [ebp - 0x50], ecx
test esi, esi
js 0x411219
lfence
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x411219
push 0
push 0
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x411219
cmp dword [ebp - 0x54], 0
je 0x411219
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x50]
mov esi, eax
test esi, esi
jns 0x4111c7
mov ecx, edi
call fcn.00406560
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
mov esi, dword [ebp - 0x50]
test edi, edi
js 0x41124c
push 4
push 0x28
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x411253
mov ecx, esi
call fcn.0040f1a0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret 4
Function at 0x411520
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46ad7c]
push ebx
push esi
push edi
push eax
push 4
push dword [0x46bcf4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 4
mov dword [ebp - 4], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x4115ba
cmp esi, 8
jae 0x4115be
push ebx
push 0
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x411572
test edi, edi
jns 0x4115db
push ebx
push 0
lfence
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x4115ef
mov dword [0x46ad7c], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411b60
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x46bfd8]
push edi
test ecx, ecx
je 0x411b82
mov eax, dword [0x46bfd4]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x7ffe0030
call fcn.004065a0
lea ecx, [eax + eax]
movzx eax, word [ecx + 0x7ffe002e]
mov edx, ecx
mov edi, eax
cmp eax, 0x5c
jne 0x411ba2
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [esi], edx
cmp edi, 0x5c
mov dword [esi + 4], 0x7ffe0030
cmovne eax, ecx
xor ecx, ecx
mov dword [0x46bfd4], eax
lea eax, [ebp - 4]
lock or dword [eax], ecx
pop edi
mov dword [0x46bfd8], 0x7ffe0030
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4125b0
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