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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46d040]
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 0x44155c
push 1
push 0
push 0x4415ac
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404f48
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x44157c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
js 0x404f48
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x44158c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
js 0x404ed2
mov ecx, ebx
call fcn.00406640
mov esi, eax
xorps xmm0, xmm0
add esi, esi
mov eax, 0x1f
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
lea eax, [esi + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword ds:[ebp - 0x18], eax
test eax, eax
je 0x404e9c
lea ecx, [esi + 2]
push ecx
push 0
push eax
call fcn.00422df0
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x18]
call fcn.00422f50
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x4653f8
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x441280]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x441280]
call esi
mov eax, dword ds:[ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x441280]
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 [0x441280]
call esi
mov eax, dword [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 [0x441280]
nop
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 [0x441280]
call esi
test eax, eax
js 0x404f48
mov ecx, edi
call fcn.004107c0
test al, al
je 0x404f30
mov ecx, edi
call fcn.00410860
mov eax, dword ds:[ebp - 0x10]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x441280]
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x404f5f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x441280]
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x404f76
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x441280]
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.00421141
mov esp, ebp
pop ebp
ret 8
Function at 0x405020
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 [0x46d040]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x12
mov dword [esp + 8], str.SiMutant_
mov dword [esp + 0x30], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
jb 0x40506f
push 1
lea edx, [esp + 8]
lea ecx, [esp + 0x34]
call fcn.00406740
test al, al
jne 0x4050ed
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 0x1c
mov dword [esp + 0x34], str.SiSetupMutant_
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1c
jb 0x4050a9
push 1
lea edx, [esp + 0x34]
lea ecx, [esp + 8]
call fcn.00406740
test al, al
jne 0x4050ed
cmp dword [esi], 0x1e
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 0x1e
mov dword [esp + 0x34], str.SiViewerMutant_
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1e
jb 0x405215
push 1
lea edx, [esp + 0x34]
lea ecx, [esp + 8]
call fcn.00406740
test al, al
je 0x405215
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 0x405215
mov dword [esp + 0x18], 0x18
call fcn.00412a60
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0x40
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
test eax, eax
js 0x405215
push 0
push 8
lea eax, [esp + 0x18]
push eax
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x40520b
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0
cmp ecx, dword [eax + 0x20]
je 0x40520b
push ecx
mov edx, 0x101001
lea ecx, [esp + 8]
call fcn.0040eda0
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00414440
test eax, eax
je 0x4051c6
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 + 4]
test eax, eax
je 0x40520b
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xfd050f80
push eax
push 0
push dword [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov eax, dword ds:[esp + 4]
test eax, eax
je 0x40520b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x44]
mov al, 1
pop esi
xor ecx, esp
call fcn.00421141
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405300
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 0x40532e
mov ecx, dword [ecx + 4]
jmp 0x405330
xor ecx, ecx
sub esp, 8
lea edx, [ebp - 0x2c]
call fcn.0040fc80
nop dword [eax + eax]
test eax, eax
js 0x4053ff
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 0x4053c2
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 0x4053ff
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 0x4053f4
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x4053f4
mov bl, 1
test esi, esi
je 0x4053ff
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.00421141
mov esp, ebp
pop ebp
ret 4
Function at 0x405420
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0043ece0
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 0x40545b
mov edx, dword [ecx + 4]
jmp 0x40545d
xor edx, edx
push ecx
push 0x60
push 1
push 7
push 0x80
push 0
push 0x120089
lea ecx, [ebp - 0x1138]
call fcn.004104e0
mov ebx, dword [ebp - 0x1138]
test eax, eax
js 0x40555a
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 0x40555a
movq xmm0, qword [ebp - 0x1018]
lea ecx, [ebp - 0x1130]
movups xmm1, xmmword [ebp - 0x1028]
movq qword [ebp - 0x1018], xmm0
call fcn.00412380
movaps xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 8
movd esi, xmm0
movd edi, xmm1
mov eax, esi
or eax, edi
je 0x40553e
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 0x40555a
push dword [ebp - 0x100c]
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1130]
call fcn.004123e0
sub esi, dword [ebp - 0x100c]
mov eax, esi
sbb edi, 0
or eax, edi
jne 0x4054f0
mov edx, dword [ebp - 0x1140]
lea ecx, [ebp - 0x1130]
sub esp, 8
call fcn.00412480
mov byte [ebp - 0x1131], al
jmp 0x405560
mov al, byte [ebp - 0x1131]
test ebx, ebx
je 0x405571
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.00421141
mov esp, ebp
pop ebp
ret

Function at 0x4060e0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46dac0], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ee14]
jae 0x40610a
cmp ecx, 0x40
jae 0x40610a
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x406113
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40611c
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x406130
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 [0x46eca4]
test ecx, ecx
jne 0x406164
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 0x4061a1
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
je 0x406190
push ecx
push 4
push ebx
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x406199
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 0x406440
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 0x4063c0
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 0x4064f5
mov eax, dword [esp + 4]
test eax, eax
je 0x4064f3
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.00421141
add esp, 0x40
ret 0x20

Function at 0x407820
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46dac0], 0xffffffff
push ebx
push esi
push edi
jae 0x40793f
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 0x4078dc
nop word [eax + eax]
cmp dword [esi + 0xf94], 0
jne 0x4078ff
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 0x40793f
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 0x407870
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 0x40793f
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 0x40ee40
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 0x40ee93
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.00421141
add esp, 0x30
ret

Function at 0x40eec0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x34
cmp dword [0x46dac0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x40eef5
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 0x40ef98
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 0x40ef96
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 0x40ef96
nop
test eax, eax
js 0x40ef96
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 0x410e80
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.004104e0
test eax, eax
jns 0x410ece
lfence
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00421141
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 0x41104c
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 0x41104c
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.004104e0
mov edi, eax
test edi, edi
js 0x41104c
call fcn.004065c0
mov edi, eax
test edi, edi
jne 0x410f8e
mov edi, 0xc0000017
jmp 0x41104c
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 0x41100c
lfence
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41100c
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 0x41100c
cmp dword [esp + 0x1c], 0
je 0x41100c
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 0x410fb7
mov ecx, edi
call fcn.00406600
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
js 0x41103b
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 0x411045
mov ecx, ebp
call fcn.0040eec0
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.00421141
add esp, 0x68
ret 4
Function at 0x411080
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.0040fc80
test eax, eax
jns 0x4110aa
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.004104e0
mov esi, eax
lfence
test esi, esi
jns 0x4110fa
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4110ee
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 [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x20], ebx
call fcn.00422df0
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.00422f50
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x41117d
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 0x4112b2
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.0040ee40
mov edi, eax
test edi, edi
js 0x4112b2
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.004104e0
mov edi, eax
test edi, edi
js 0x4112b2
call fcn.004065c0
mov edi, eax
test edi, edi
jne 0x411208
mov edi, 0xc0000017
jmp 0x4112b2
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 0x41128c
lfence
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41128c
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 0x41128c
cmp dword ds:[esp + 0x24], 0
je 0x41128c
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 0x411233
mov ecx, edi
call fcn.00406600
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
test edi, edi
je 0x4112ab
mov ecx, ebp
call fcn.0040eec0
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 [0x46eca4]
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 0x4123e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 3
ja case.default.0x4123ea
jmp dword [eax*4 + 0x412468]
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041e380
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041fca0
pop edi
ret 4
mov eax, dword ds:[edi + 4]
push esi
mov esi, dword [esp + 0xc]
not eax
test esi, esi
je 0x41243e
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4692a0]
sub esi, 1
jne 0x412424
not eax
pop esi
mov dword [edi + 4], eax
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041e120
pop edi
ret 4
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
int1
and eax, dword [ecx]
add esp, dword [ecx + eax*2]
add byte [ebx], dl
and al, 0x41
add byte [eax + 0x24], cl
inc ecx
add ah, cl
int3

Function at 0x412a60
Capabilities:
Create directory

Disassembly:
sub esp, 0xc8
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0xc0], eax
test byte [0x46ddcc], 1
push ebx
push esi
push edi
jne 0x412be7
mov edi, 0x46ddcc
lock bts dword [edi], 0x1f
setb al
test al, al
jne 0x412a9b
mov al, 1
jmp 0x412aad
test byte [0x46ddcc], 1
jne 0x412aab
mov ecx, edi
call fcn.00414d00
xor al, al
test al, al
je 0x412be7
call fcn.00418b20
mov esi, eax
lea eax, [esp + 0x30]
push 1
push eax
mov bl, byte [esi + 1]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
movzx ecx, bl
lea eax, [esp + 0x44]
push 2
lea ecx, [ecx*4 + 0x4c]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x467970
push 0xf000f
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push esi
push 0xf000f
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x46797c
push 7
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
lea eax, [esp + 0x48]
push eax
push 1
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
cmp dword [0x46dac0], 0x64
mov dword [esp + 0x10], fcn.00420040
sbb eax, eax
mov dword [esp + 0x14], str.BaseNamedObjectsSystemInformer
and eax, 0xfffff000
mov dword [esp + 0x18], 0x18
add eax, 0x1080
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x2000000
push 0x46ef84
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
lock bts dword [edi], 0
setb al
test al, al
jne 0x412be7
mov esi, dword [0x46ddd0]
test esi, esi
je 0x412bbd
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x412be7
test esi, esi
je 0x412be7
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46ddd0], 0
mov ecx, dword [esp + 0xcc]
mov eax, dword [0x46ef84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421141
add esp, 0xc8
ret