joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
jmp 0x4d1362
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
nop
call 0x7c801a28
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d141a
lea ecx, [ebp - 0x10]
push ecx
push ebx
nop
call 0x7c810aa9
test eax, eax
je 0x4d1405
mov eax, dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 0x10]
jg 0x4d1405
jl 0x4d13a9
cmp eax, 0x6400000
ja 0x4d1405
push eax
nop
call 0x77c2c407
mov esi, eax
add esp, 4
test esi, esi
je 0x4d1405
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push 0
push edx
push eax
push esi
push ebx
nop
call 0x7c801812
test eax, eax
je 0x4d1405
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x4d13e9
mov cl, byte [edi + esi]
dec cl
xor cl, 0x55
mov byte [edi + esi], cl
mov eax, dword [ebp - 4]
inc edi
cmp edi, eax
jb 0x4d13d6
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.004d12a0
add esp, 0xc
test eax, eax
je 0x4d1405
mov dword [ebp - 8], 1
push ebx
nop
call 0x7c809be7
test esi, esi
je 0x4d141a
push esi
nop
call 0x77c2c21b
add esp, 4
jmp 0x4d142a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1810
Capabilities:
Decompress data using quicklz

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
call fcn.004d1760
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
push ebp
add esi, ebp
mov edi, 1
lea ecx, [ebx + eax - 1]
mov dword [esp + 0x20], ecx
call fcn.004d1710
add esp, 8
cmp edi, 1
jne 0x4d184a
mov edi, dword [esi]
add esi, 4
mov eax, dword [esi]
mov edx, edi
and edx, 1
cmp dl, 1
jne 0x4d18ff
shr edi, 1
test al, 3
mov dword [esp + 0x14], edi
jne 0x4d1874
shr eax, 2
and eax, 0x3f
inc esi
mov ecx, eax
mov eax, 3
jmp 0x4d18db
test al, 2
jne 0x4d188c
shr eax, 2
and eax, 0x3fff
add esi, 2
mov ecx, eax
mov eax, 3
jmp 0x4d18db
test al, 1
mov ecx, eax
jne 0x4d18a9
shr eax, 2
shr ecx, 6
and eax, 0xf
and ecx, 0x3ff
add eax, 3
add esi, 2
jmp 0x4d18db
and ecx, 0x7f
cmp cl, 3
mov ecx, eax
je 0x4d18ca
shr eax, 2
shr ecx, 7
and eax, 0x1f
and ecx, 0x1ffff
add eax, 2
add esi, 3
jmp 0x4d18db
shr eax, 7
and eax, 0xff
shr ecx, 0xf
add eax, 3
add esi, 4
mov edx, ebx
xor edi, edi
sub edx, ecx
mov ecx, ebx
sub edx, ebx
mov ebp, dword [edx + ecx]
add edi, 3
mov dword [ecx], ebp
add ecx, 3
cmp edi, eax
jb 0x4d18e5
mov edi, dword [esp + 0x14]
add ebx, eax
jmp 0x4d1840
mov edx, dword [esp + 0x18]
lea ecx, [edx - 0xa]
cmp ebx, ecx
jae 0x4d1923
mov edx, edi
and edx, 0xf
mov ecx, dword [edx*4 + 0x597994]
mov dword [ebx], eax
shr edi, cl
add ebx, ecx
add esi, ecx
jmp 0x4d1840
cmp ebx, edx
ja 0x4d1940
cmp edi, 1
jne 0x4d1934
add esi, 4
mov edi, 0x80000000
mov al, byte [esi]
mov byte [ebx], al
inc ebx
inc esi
shr edi, 1
cmp ebx, edx
jbe 0x4d1927
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d8f00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
push 0x5988e8
call fcn.004d8e20
push 0x16
call fcn.0051f336
add esp, 0x14
push 3
call fcn.0041ed72
nop
nop
nop
nop
nop
nop
Function at 0x5183a4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.0041ea50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x51836b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x51837d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x518523
push esi
call fcn.004f1800
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x5183b3
push 0x5b5808
push 0x68
push 0x5b57f0
call fcn.004d8f00
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x518410
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.004f5d50
add esp, 0xc
test eax, eax
je 0x518516
mov eax, dword [esp + 0x98]
push ebp
push eax
push edi
call fcn.004f5f00
add esp, 0xc
test eax, eax
je 0x518516
lea esi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
push esi
push ecx
push edi
call fcn.004f5f20
add esp, 0xc
test eax, eax
je 0x518516
jmp 0x51844f
test ebp, ebp
jl 0x51841c
cmp ebp, 0x80
jle 0x518430
push 0x5b57c8
push 0x75
push 0x5b57f0
call fcn.004d8f00
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x518474
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x51847d
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x1c]
push ebp
push esi
push edi
call fcn.004f5d50
add esp, 0xc
test eax, eax
je 0x518516
push esi
call fcn.004f1800
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.004f5f00
add esp, 0x10
test eax, eax
je 0x518516
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x5184c4
lea edi, [ebx + 0x34]
push ebp
push esi
push edi
call fcn.004f5d50
add esp, 0xc
test eax, eax
je 0x518516
push esi
call fcn.004f1800
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.004f5f00
add esp, 0x10
test eax, eax
je 0x518516
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.004f5fc0
add esp, 8
test eax, eax
jne 0x51852c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x518502
jmp 0x51847b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x4017ee
Capabilities:
Hash data with crc32

Disassembly:
push 0x14
push 0x4074f0
call fcn.0040647c
or ebx, 0xffffffff
xor edx, edx
mov esi, dword [ebp + 0x10]
mov dword [esi], edx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp + 0xc]
jae 0x401821
mov ah, byte [edx + edi]
mov byte [ebp - 0x19], ah
cmp ah, byte [ebp + 0x14]
jne 0x401830
inc edx
mov dword [ebp - 0x20], edx
mov dword [esi], edx
mov dword [ebp - 4], 0xfffffffe
not ebx
mov eax, ebx
jmp 0x401866
mov al, ah
sub al, 0x41
cmp al, 0x19
ja 0x40183e
add ah, 0x20
mov byte [ebp - 0x19], ah
movzx ecx, bl
movzx eax, ah
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x408060]
mov dword [ebp - 0x24], ebx
inc edx
jmp 0x40180a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4018e0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebx], esi
call fcn.00401a0c
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x22
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jns 0x401924
lfence
jmp 0x401986
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0x14]
or dword [eax + 0x1c], 4
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
lfence
test edi, edi
jns 0x40197e
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
and dword [esi], 0
jmp 0x401983
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401fc0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x408a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push edi
xor ebx, ebx
push esi
push eax
mov dword [0x408bac], ebx
mov dword [0x408ba8], ebx
mov dword [0x408ba4], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x18
pop edi
push ebx
push ebx
push 0x20
push 1
push ebx
push 0x80
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
push eax
push 0x80000000
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0x40
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x4020ac
push 5
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x4020a3
mov eax, dword [ebp - 0x14]
mov edi, 0x46696c65
mov dword [0x408ba8], eax
add eax, 4
push edi
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [0x408bac], eax
test eax, eax
je 0x4020a3
push ebx
push ebx
push dword [0x408ba8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x4020a3
push edi
push dword [0x408bac]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x408bac], ebx
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [0x408bac], ebx
je 0x4020d8
push esi
call fcn.004029be
test eax, eax
je 0x4020c4
push esi
call fcn.00402cb6
push ebx
push 1
push 0x408ba8
push 0x408bac
call fcn.00403d28
mov bl, al
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406896
leave
ret 4

Function at 0x4020ec
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x408bc0]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
test eax, eax
je 0x402189
mov ecx, dword [0x408bcc]
test ecx, ecx
je 0x402173
mov edx, dword [0x408bc8]
test edx, edx
je 0x402173
push esi
push edi
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push esi
push edx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov eax, dword [0x408bc8]
push 0x14
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push eax
push dword [0x408bc0]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push 0x46696c65
push dword [0x408bcc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x408bcc], edi
pop esi
push dword [0x408bc0]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [0x408bc0], edi
mov al, 1
jmp 0x40218b
xor al, al
pop edi
leave
ret
Function at 0x40218e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x408a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4084b0]
xor edi, edi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [0x408bcc], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x60
push 3
push 1
push 0xc0000000
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402748
mov ecx, dword [ebp - 0x20]
mov dword [0x408bc0], ecx
test eax, eax
js 0x402250
push 5
push 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x402250
mov esi, dword [ebp - 0x14]
test esi, esi
jle 0x402250
mov ebx, 0x46696c65
lea eax, [esi + 4]
push ebx
push eax
push edi
lfence
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [0x408bcc], eax
test eax, eax
je 0x402250
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
lfence
push dword [ebp - 0x20]
call fcn.004028c0
test eax, eax
jns 0x402261
push ebx
push dword [0x408bcc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x408bcc], edi
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406896
leave
ret
mov ecx, dword [ebp - 0x24]
push 0x408bc4
push ecx
push dword [0x408bcc]
mov dword [0x408bc8], ecx
call fcn.00402712
mov al, 1
jmp 0x402252

Function at 0x402280
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x402306
mov edi, dword [ebp + 8]
test edi, edi
je 0x402306
mov eax, dword [0x408bcc]
test eax, eax
je 0x4022ab
push 0x46696c65
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [0x408bc4], eax
mov eax, dword [0x408bc0]
mov dword [0x408bcc], edi
mov dword [0x408bc8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
test eax, eax
je 0x40230e
push edx
lea ecx, [ebp - 8]
push ecx
push esi
push edi
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edx
push eax
lfence
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push 0x14
push 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [0x408bc0]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov al, 1
pop edi
pop esi
leave
ret 0xc
xor al, al
jmp 0x402308
Function at 0x4023d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [0x408bac], 0
push esi
je 0x402485
xor esi, esi
push esi
push 1
push 0x408ba8
push 0x408bac
call fcn.00403d28
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push esi
push 0x20
push 3
push 3
push 0x80
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], esi
push eax
push 0x40000000
lea eax, [ebp - 4]
mov dword [ebp - 0x28], 0x40
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x402485
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push dword [0x408ba8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esi
push dword [0x408bac]
push ecx
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x402487
xor al, al
pop esi
leave
ret 4

Function at 0x402836
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push ebx
push ebx
push 0x20
push 1
push ebx
push 0x80
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
push eax
push 0x80000000
lea eax, [ebp - 4]
mov dword [ebp - 0x20], 0x240
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x4028b9
cmp dword [ebp + 0xc], ebx
je 0x4028ae
push 4
push 0x28
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x4028b0
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
pop ebx
leave
ret 8
Function at 0x402918
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [ebp + 0xc], 0
push esi
je 0x4029b7
cmp dword [ebp + 8], 0
je 0x4029b7
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor esi, esi
mov dword [ebp - 0x34], 0x18
push esi
push esi
push 0x20
push 3
push 3
push 0x80
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 0x240
push eax
push 0x40000000
lea eax, [ebp - 4]
mov dword [ebp - 0x24], esi
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x4029b7
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
inc eax
jmp 0x4029b9
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x402a2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x402a39
xor al, al
jmp 0x402a6a
mov ecx, dword [ebp + 0x10]
xor edx, edx
test ecx, ecx
jne 0x402a5c
mov ecx, esi
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x402a48
sub ecx, edi
sar ecx, 1
pop edi
test ecx, ecx
je 0x402a68
mov eax, dword [ebp + 0xc]
xor word [esi + edx*2], ax
inc edx
cmp edx, ecx
jb 0x402a5f
mov al, 1
pop esi
pop ebp
ret 0xc
Function at 0x403088
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x408a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x408b74]
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], 0x18
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
cmp dword [ebp + 8], ebx
je 0x403149
mov eax, dword [0x40864c]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00402836
test al, al
je 0x4031fd
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
mov dword [0x408a48], eax
mov eax, dword [ebp - 0x18]
push ebx
mov dword [0x408a4c], eax
lea eax, [ebp - 0x54]
push ebx
push eax
push 0x10000000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x4031fd
push dword [0x4087fc]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 8
push 0x408a48
push 0xb
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4031f4
mov bl, 1
jmp 0x4031f4
lea eax, [ebp - 0x54]
push eax
push 0xf003f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x4031fd
push dword [0x4087fc]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
jne 0x4031f4
mov eax, dword [ebp - 0x34]
push esi
push edi
mov edi, 0x5075626c
add eax, 8
push edi
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x4031f2
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push esi
push 2
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x4031ea
mov eax, dword [esi + 0xc]
mov bl, 1
mov dword [0x408a48], eax
mov eax, dword [esi + 0x10]
mov dword [0x408a4c], eax
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00406896
leave
ret 4
Function at 0x40421c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
push ebx
push dword [ebp + 8]
inc eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push ebx
push eax
push 0x10000000
lea eax, [ebp - 4]
mov dword [ebp - 0x34], ebx
push eax
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x4043d5
push esi
push dword [0x408768]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp + 0xc]
push 2
pop esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x404294
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
push dword [0x4087fc]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x4042db
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
push dword [0x4087e0]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x404322
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push esi
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
push dword [0x40881c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 4
pop esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
push dword [0x408830]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
push dword [0x408840]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x4043cb
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
mov al, bl
pop ebx
leave
ret 0x10
Function at 0x405354
Capabilities:
Encode data using xor

Disassembly:
call fcn.004055dc
call fcn.00401c54
jmp 0x4059aa
xor ecx, ecx
mov eax, ecx
xor byte [eax + 0x408970], 0x4b
inc eax
cmp eax, 0x3d
jb 0x4059ae
mov dword [0x408b40], ecx
mov dword [0x408b54], ecx
mov dword [0x408b50], ecx
ret

Function at 0x409000
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00409010
pop ebp
jmp fcn.004011c4