joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ce2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x402d10
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x417158
call fcn.00411ff0
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.00401922
push 0
push 0x1f4
mov ecx, edi
call fcn.00405b80
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.004058ca
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.004059fb
push dword [ebp - 0x18]
call fcn.004035d9
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x402eb3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4171e2
call fcn.00411ff0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x419390
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00401bcc
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.00405999
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.00402f46
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x419360
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40351f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x40354a
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x421000]
xor eax, edi
inc edx
dec esi
jne 0x403530
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x404287
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420ff8], 0
je 0x4042aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x4042d4
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004042d8
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.004035d9
pop ecx
mov al, bl
pop ebx
leave
ret 8

Function at 0x40432a
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420ff8], 0
je 0x40434a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x404370
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004042d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.004035d9
pop ecx
mov al, bl
pop ebx
leave
ret 4
Function at 0x404389
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420ff8], 0
je 0x4043ab
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x4043cd
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004042d8
push dword [eax]
call fcn.00404374
push dword [ebp - 0xc]
mov bl, al
call fcn.004035d9
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x4045cb
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4045df
xor al, al
jmp 0x4045ef
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x4045f2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x420ff8], 0
je 0x404620
push 0
push dword [ebp + 8]
call fcn.00404287
test al, al
je 0x404642
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x404642
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004042d8
push dword [eax]
call fcn.004045cb
push dword [ebp - 0xc]
mov bl, al
call fcn.004035d9
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x404646
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x417470
call fcn.00411ff0
sub esp, 0x6c
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00401a75
mov esi, dword [ebp + 8]
push 0x5c
lea eax, [ebp - 0x18]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00404dfc
lea eax, [ebp - 0x18]
push 0x2a
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00404dfc
mov byte [ebp - 0x34], bl
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004020e6
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004035d9
pop ecx
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x38]
push eax
call fcn.004052ac
test al, al
je 0x4046fa
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.004020e6
call fcn.00404753
cmp al, bl
jne 0x4046a1
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004035d9
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00404e7f
push dword [ebp - 0x18]
call fcn.004035d9
push dword [ebp - 0x48]
call fcn.004035d9
pop ecx
xor al, al
pop ecx
jmp 0x40473e
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004035d9
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00404e7f
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40472a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
push dword [ebp - 0x18]
call fcn.004035d9
push dword [ebp - 0x48]
call fcn.004035d9
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x404bcb
Capabilities:
Delete file

Disassembly:
mov eax, 0x4174f8
call fcn.00411ff0
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00404c7c
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00404b1c
test al, al
je 0x404c59
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x404c44
push dword [esi]
call fcn.00405213
test al, al
je 0x404c28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404ba7
push dword [ebp - 0x18]
call fcn.004035d9
pop ecx
jmp 0x404bdf
push dword [esi]
call fcn.00404374
test al, al
jne 0x404c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404c59
jmp 0x404c11
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00404ba7
push dword [ebp - 0x18]
call fcn.004035d9
pop ecx
mov al, bl
jmp 0x404c6c
lea ecx, [ebp - 0x1c]
call fcn.00404ba7
push dword [ebp - 0x18]
call fcn.004035d9
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x405089
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x417550
call fcn.00411ff0
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00412490
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.00401a8d
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405142
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.00401922
push dword [ebp - 0x24]
call fcn.004035d9
push dword [ebp - 0x18]
call fcn.004035d9
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x405421
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405448
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405448
xor al, al
jmp 0x405468
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x407cab
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x417a2b
call fcn.00411ff0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x419520
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x419518
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00403d82
push dword [esi + 8]
mov ecx, ebx
call fcn.00403d82
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403d82
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403d82
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4082ea
Capabilities:
Create thread

Disassembly:
mov eax, 0x417be5
call fcn.00411ff0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x41959c
mov dword [esi + 4], 0x419590
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.00408458
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.004052d7
mov dword [esi + 0x5c], 0x419588
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.004052d7
mov dword [esi + 0x70], 0x419580
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x419578
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.00405999
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x4192e4
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.00405999
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.00405999
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x408446
push edi
push edi
mov dword [esi], 0x419564
mov dword [esi + 4], 0x419558
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x4083f4
lea eax, [ebp - 0x10]
push 0x41a1e0
push eax
mov dword [ebp - 0x10], 0x425d1
call fcn.00412054
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40872b
Capabilities:
Create thread

Disassembly:
mov eax, 0x417c7f
call fcn.00411ff0
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
push dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax]
call fcn.00407df1
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409033
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.00407f3f
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.0040345a
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004090de
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x408821
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x408806
lea eax, [ebp - 0x10]
push 0x41a1e0
push eax
mov dword [ebp - 0x10], 0x425d0
call fcn.00412054
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00407fb4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x17016
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, dword [0x2b1f4]
jne 0x17042
mov ecx, dword [ebp + 0xc]
and dword [ecx + 0x1c], 0
mov eax, 0xc00000bb
xor dl, dl
mov esi, eax
mov dword [ecx + 0x18], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x1708e
mov esi, dword [eax + 0x28]
push edi
lea edi, [esi + 0x18]
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
jne 0x17070
mov ecx, dword [ebp + 0xc]
and dword [ecx + 0x1c], 0
mov eax, 0xc0000056
xor dl, dl
mov esi, eax
mov dword [ecx + 0x18], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x1708d
mov edx, dword [ebp + 0xc]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
mov ecx, dword [esi + 0xc]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov ecx, edi
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x19716
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
movzx ebx, word [ecx]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 4]
push edi
mov edi, dword [esi + 0x80]
add dword [ebp + 0xc], edi
lea ebx, [ebx + eax - 1]
dec eax
not eax
and ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
and dword [ebp + 8], 3
je 0x19792
and dword [ebp + 0xc], 0xfffffffc
and edx, 0xfffffffc
test byte [ebp + 8], 2
mov dword [ebp - 4], edx
je 0x1976d
add edi, ebx
push edi
push edx
jmp 0x19846
cmp dword [esi + 0x68], 0
je 0x197d8
push ebx
push dword [ebp + 0xc]
lea edi, [esi + 0x1c4]
push dword [edi]
call sub.ntoskrnl.exe_memcpy
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x68], 0
je 0x197d8
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ecx]
push 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 4]
push edx
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 8]
push 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [esi + 0xa4]
call fcn.00027a3a
test eax, eax
jge 0x197fa
mov eax, 0xc000028b
jmp 0x1982e
cmp byte [esi + 0x4c], 0
je 0x197fd
movzx eax, word [ecx]
mov edi, dword [edx]
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.ntoskrnl.exe_RtlComputeCrc32]
cmp edi, eax
je 0x197fa
mov eax, 0xc000003f
jmp 0x1982e
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx]
mov edi, 0x1000
mov ecx, edi
cmp ax, cx
jae 0x19842
movzx eax, ax
push eax
push dword [ebp + 0xc]
mov eax, dword [esi + 0x94]
push edi
push edi
push dword [ebp + 0x10]
push dword [eax]
call fcn.00027fe0
cmp eax, edi
je 0x19851
mov eax, 0xc00002c4
push eax
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0001855a
jmp 0x19853
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1e254
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0001de62
test eax, eax
jl 0x1e3e2
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
add eax, dword [esi + 0x80]
push ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 4]
mov eax, dword [esi + 0x4c]
mov ebx, 0x1000
test eax, 0x800
jne 0x1e2d6
test eax, 0x40000
je 0x1e2b9
push ebx
push edi
push dword [esi + 0x1c4]
call sub.ntoskrnl.exe_memcpy
mov edi, dword [esi + 0x1c4]
add esp, 0xc
xor eax, eax
push eax
push eax
push eax
mov eax, dword [esi + 0x90]
push ebx
push edi
push ebx
push dword [ebp + 8]
push dword [eax]
call fcn.00029730
mov dword [ebp - 4], eax
jmp 0x1e2d9
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0xf80
jbe 0x1e305
test dword [esi + 0x4c], 0x400
je 0x1e2f5
mov eax, 0xc0000426
jmp 0x1e3e0
push ebx
push edi
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 4], ebx
xor eax, eax
mov edx, dword [ebp - 4]
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp edx, ebx
jae 0x1e338
mov eax, dword [ebp - 0x20]
xor eax, edx
and eax, 0xfff
xor dword [ebp - 0x20], eax
xor ecx, ecx
cmp dword [esi + 0x68], ecx
je 0x1e3b5
mov ebx, dword [esi + 0xa4]
mov eax, dword [ebx + 4]
lea edx, [eax + edx - 1]
dec eax
not eax
and edx, eax
lea eax, [esi + 0xa8]
add dword [eax], 1
lea edi, [ebp - 0x18]
push 0x10
adc dword [eax + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esi + 0xac]
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
and eax, 0xfffff
shl ecx, 0x14
or ecx, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 0x20], ecx
push dword [ebp + 8]
shr ecx, 0x14
push ebx
mov dword [ebp - 0x10], ecx
call fcn.000279f0
test eax, eax
jge 0x1e3cc
mov eax, 0xc000028a
jmp 0x1e3e0
cmp byte [esi + 0x4c], cl
je 0x1e3cf
push edx
push dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlComputeCrc32]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1e3cf
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
call fcn.0001ded6
test eax, eax
jl 0x1e3e0
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x24112
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call fcn.00023c46
sub esi, eax
mov dword [ebp + 0xc], esi
je 0x241a4
push ebx
mov esi, 0x3ffffff
push edi
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
push dword [ebp + 0x18]
and ecx, 0x3f
push dword [ebp + 0x14]
mov edx, ecx
push dword [ebp + 0xc]
xor ecx, ecx
shld ecx, edx, 0x1a
shl edx, 0x1a
and edi, esi
or edx, edi
xor ebx, ebx
or ecx, ebx
xor edi, edi
add edx, eax
mov eax, dword [ebp - 8]
adc ecx, edi
xor eax, edx
shrd edx, ecx, 0x1a
xor edx, dword [ebp - 4]
and eax, esi
xor dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
and edx, 0x3f
xor dword [ebp - 4], edx
shr ecx, 0x1a
call fcn.00023c46
sub dword [ebp + 0xc], eax
jne 0x2414c
pop edi
pop ebx
pop esi
leave
ret 0x14

Function at 0x241ae
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00024112
Function at 0x266f2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [edi + 4]
cmp byte [ecx + 1], 0
jbe reloc.ksecdd.sys_BCryptDecrypt
mov eax, dword [ecx]
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
shl edx, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
and eax, 0xffffff00
add eax, edx
xor eax, dword [ebp + 0x10]
mov edi, ecx
and eax, 0xff00
xor dword [ebp + 0x10], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lock cmpxchg dword [edi], esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp esi, eax
jne 0x26710
jmp 0x2679e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
shl eax, 0x13
xor eax, dword [ecx]
push ebx
and eax, 0x380000
xor dword [ecx], eax
mov al, byte [ebp + 0x14]
inc al
mov byte [ecx + 1], al
lea ebx, [esi + 0x50]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [esi + 0x4c]
mov ecx, dword [ecx]
mov edx, dword [edi]
shr ecx, 3
and edx, 7
lea ecx, [ecx*8 + 8]
or ecx, edx
mov dword [edi], ecx
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
and edx, 7
or edx, edi
mov dword [ecx], edx
mov dl, al
mov ecx, ebx
mov dword [esi + 0x4c], edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop ebx
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x27a84
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.ksecdd.sys_BCryptGenRandom
pop ebp
ret 8

Function at 0x28240
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esi - 0x10]
mov eax, dword [esi - 0x14]
push edi
sub ecx, 2
xor edi, edi
cmp eax, ecx
jae 0x28293
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x2cc30]
movzx edx, word [edx*2 + 0x2d030]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x2ce30]
xor edx, ebx
mov bx, word [esi + edx*2 - 0x15a5c]
mov word [esi + edi*2], bx
mov word [esi + edx*2 - 0x15a5c], di
inc eax
inc edi
cmp eax, ecx
jb 0x28251
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x282b4
sub ecx, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [esi + edi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
ret