joyce8/EMBER2024-capa huggingface dataset:
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.00421161
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 0x40a440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 4
jb 0x40a4a9
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 + 0x467230]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467230]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467230]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467230]
sub edi, 1
jne 0x40a452
pop edi
test esi, esi
je 0x40a4ca
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 + 0x467230]
sub esi, 1
jne 0x40a4b0
not ecx
mov eax, ecx
pop esi
ret 4
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.00421161
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 0x40f120
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 [0x46eca4]
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 0x40f18f
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 0x40f19f
cmp esi, 0xc0000004
jne 0x40f1b3
push edi
push 0
push dword [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
jmp 0x40f138
cmp esi, 0x80000006
je 0x40f227
test esi, esi
js 0x40f229
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 [0x441280]
nop
call dword [esp + 0x3c]
test al, al
je 0x40f229
mov eax, dword [ebp]
test eax, eax
je 0x40f219
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 [0x441280]
call dword [esp + 0x3c]
test al, al
jne 0x40f1e8
jmp 0x40f229
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1c], 0
jmp 0x40f150
xor esi, esi
push edi
push 0
push dword [0x46eca4]
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 0x4103e0
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 0x410426
mov esi, dword [edx]
test esi, esi
je 0x410426
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 0x41042f
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 [0x46eca4]
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 0x4104c3
push edi
push 0
cmp esi, 0x80000005
jne 0x4104a5
push dword [0x46eca4]
nop dword [eax]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x14]
push 4
push dword [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
je 0x4104c3
mov esi, dword [esp + 0x14]
jmp 0x410450
lfence
push dword [0x46eca4]
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 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.00421161
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.00421161
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.00422e10
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.00422f70
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 0x4112e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [0x46dd6c]
mov ebp, edx
push edi
push esi
push 4
push dword [0x46eca4]
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 0x41137e
cmp esi, 8
jae 0x411384
push ebx
push 0
push dword [0x46eca4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x46eca4]
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 0x411332
nop
test edi, edi
jns 0x4113a3
push ebx
push 0
lfence
push dword [0x46eca4]
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 0x4113b8
mov dword [0x46dd6c], 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 0x411940
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ef90]
test ecx, ecx
je 0x41195f
mov eax, dword [0x46ef8c]
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 0x411990
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x50]
cmp dword [eax], 0
je 0x411990
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0x50]
add esi, 0x1e
jmp 0x411995
mov esi, 0x7ffe0030
mov ecx, esi
call fcn.00406640
lea ecx, [eax + eax]
movzx eax, word [ecx + esi - 2]
mov edx, ecx
mov ebx, eax
cmp eax, 0x5c
jne 0x4119b0
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 [0x46ef8c], eax
lea eax, [esp + 0xc]
lock or dword [eax], ecx
pop edi
mov dword [0x46ef90], esi
pop esi
pop ebx
pop ecx
ret

Function at 0x412380
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
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.0041e3a0
pop edi
ret 4
push dword [esp + 8]
lea ecx, [edi + 4]
call fcn.0041fcc0
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.0041e140
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.00414d20
xor al, al
test al, al
je 0x412be7
call fcn.00418b40
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], 0x420040
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.00421161
add esp, 0xc8
ret
Function at 0x412f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x46ec9c]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push eax
push 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xa
push eax
push ebx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x412f94
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lfence
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x412f94
test edi, edi
je 0x412f74
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
je 0x412f7e
mov eax, dword [esp + 0x14]
mov dword [esi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00421161
add esp, 0x1c
ret 0xc
mov ecx, dword ds:[esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421161
add esp, 0x1c
ret 0xc

Function at 0x412fc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 8
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [0x46ec9c]
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x41300f
nop dword [eax]
test esi, esi
je 0x413033
cmp dword [eax + 0x18], esi
je 0x413033
mov eax, dword [eax]
cmp eax, ecx
jne 0x413004
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x41308a
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x41300f
movzx ecx, word ds:[eax + 0x24]
mov edx, ecx
test cx, cx
jne 0x41304e
call fcn.00406c20
mov esi, eax
jmp 0x413011
mov ebx, dword ds:[eax + 0x28]
mov edi, edx
mov edx, dword [0x46ec98]
lea ecx, [edi + 0xa]
call fcn.00405ce0
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov word [eax + edi], cx
test ebx, ebx
je 0x413011
push edi
push ebx
push dword [esi + 4]
call fcn.00422f70
add esp, 0xc
jmp 0x413011
mov ecx, esi
call fcn.0040f9c0
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4130a8
call fcn.00405dc0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4130c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 0xc
mov eax, dword [eax + 0x30]
push ebx
push ebp
push esi
push edi
push dword [eax + 0xa0]
mov ebx, edx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x46dac0], 0x3e
jb 0x413122
test ebx, ebx
je 0x413122
push ecx
mov dl, 1
mov ecx, ebx
call fcn.00407640
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [ecx]
cmp esi, ecx
je 0x41311e
nop dword [eax + eax]
cmp dword [esi + 0x90], eax
je 0x413174
mov esi, dword [esi]
cmp esi, ecx
jne 0x413110
xor esi, esi
jmp 0x413174
mov eax, dword fs:[0x18]
xor esi, esi
mov eax, dword [eax + 0x30]
mov ebp, dword [eax + 0xc]
add ebp, 0xc
mov edi, dword [ebp]
cmp edi, ebp
je 0x413174
nop word [eax + eax]
movzx ecx, word [edi + 0x2c]
mov eax, dword [edi + 0x30]
test ebx, ebx
je 0x413172
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
cmp ecx, eax
jb 0x41316a
push 1
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.00406740
test al, al
jne 0x413172
mov edi, dword [edi]
cmp edi, ebp
jne 0x413140
jmp 0x413174
mov esi, edi
test esi, esi
je 0x41317d
mov esi, dword [esi + 0x18]
jmp 0x41317f
xor esi, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret