joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe8f69c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0xe91168
sub eax, eax
test esi, esi
je 0xe8f774
sub eax, 1
test ecx, ecx
je 0xe8f772
test esi, 3
je 0xe8f6da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xe8f6bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0xe8f759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xe8f6e4
mov ecx, edx
test ecx, ecx
je 0xe8f772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xe8f75f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0xe8f77c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00e8f7ff
jae 0xe8f78a
xor ecx, ecx
call fcn.00e8f7ff
jae 0xe8f7b9
xor eax, eax
call fcn.00e8f7ff
jae 0xe8f7c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00e8f7ff
adc al, al
jae 0xe8f7ab
jne 0xe8f7f5
stosb byte es:[edi], al
jmp 0xe8f78d
call fcn.00e8f80b
sub ecx, ebx
jne 0xe8f7d2
call fcn.00e8f809
jmp 0xe8f7f1
lodsb al, byte [esi]
shr eax, 1
je 0xe8f81b
adc ecx, ecx
jmp 0xe8f7ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00e8f809
cmp eax, 0x7d00
jae 0xe8f7ee
cmp ah, 5
jae 0xe8f7ef
cmp eax, 0x7f
ja 0xe8f7f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe8f78d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0xe9014c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xe93000]
jne 0xe90156
repz ret
jmp fcn.00e903fd
Function at 0x4014b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b71a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0042e00f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401570
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004305b3
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x460e5c
push eax
call fcn.00431acc
push edi
push esi
call fcn.0042e357
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 4

Function at 0x403020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x403035
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403040
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x403070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x403089
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403095
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x403090
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4030d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x46400c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, ecx
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edi
push edx
mov edi, dword [eax + 4]
xorps xmm0, xmm0
or edi, 0x2001f
movq qword [esp + 0x18], xmm0
push edi
push 0
push ecx
push dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x403209
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
je 0x403164
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x20]
and edi, 0x300
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
test esi, esi
jne 0x403209
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x100
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4031df
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004030d0
mov esi, eax
test esi, esi
jne 0x403209
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x30]
call edi
test eax, eax
je 0x4031a6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4031f2
push eax
call ebx
mov dword [esp + 0x14], 0
push dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
call fcn.00402e10
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403214
push eax
call ebx
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 4
Function at 0x403700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b933
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00431b40
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4037c1
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4037c1
call fcn.00402740
mov esi, eax
jmp 0x4038ae
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4037e4
call fcn.00402740
jmp 0x4038a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x403802
call fcn.00402740
jmp 0x4038a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x403823
mov esi, 0x8007000e
jmp 0x4038a3
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.004239a0
jmp 0x40384d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x403864
mov esi, 0x8007000e
jmp 0x4038a3
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x403884
call fcn.00402740
jmp 0x4038a1
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.004044d0
mov esi, eax
test edi, edi
je 0x4038ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4038d0
lea ecx, [ebp - 0x424]
call fcn.00424100
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40aec0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40aecc
xor al, al
pop esi
ret
push ebx
push edi
push 0x2000
call fcn.0042cfa7
add esp, 4
mov edi, eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x40af00
push edi
call fcn.0042cfa2
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
ret
push dword [esi]
call fcn.0042cfa2
add esp, 4
mov dword [esi], edi
lea eax, [ebx - 1]
mov dword [esi + 4], eax
mov al, 1
pop edi
pop ebx
pop esi
ret

Function at 0x40d540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004058e0
mov eax, dword [ebx]
test eax, eax
je 0x40d613
lea edi, [esi + 4]
push edi
push 0
lea ecx, [esi + 8]
push ecx
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d613
mov eax, dword [edi]
test eax, eax
je 0x40d621
add eax, 4
push eax
call fcn.0042cfa7
mov dword [esi], eax
add esp, 4
mov ecx, dword [edi]
push edi
mov byte [eax + ecx], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 2], 0
mov eax, dword [esi]
mov ecx, dword [edi]
mov byte [ecx + eax + 3], 0
lea eax, [esi + 8]
push dword [esi]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 8], 7
jne 0x40d627
mov ecx, dword [edi]
cmp ecx, 4
jbe 0x40d627
mov edx, dword [esi]
xor eax, eax
shr ecx, 1
sub ecx, 1
je 0x40d5ff
lea ebx, [eax + 0xa]
xor ecx, ecx
cmp cx, word [edx + eax*2]
jne 0x40d5f5
cmp word [edx + eax*2 + 2], cx
je 0x40d5f5
mov word [edx + eax*2], bx
mov ecx, dword [edi]
inc eax
shr ecx, 1
dec ecx
cmp eax, ecx
jb 0x40d5e2
mov eax, dword [edi]
shr eax, 1
xor ecx, ecx
pop edi
mov word [edx + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x40d695
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
push edi
test eax, eax
mov edi, 0x455d58
mov ecx, esi
cmovne edi, eax
call fcn.0040ac20
mov eax, dword [ebx]
test eax, eax
je 0x40d73e
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d73e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40d6e9
cmp eax, 2
je 0x40d6e9
cmp eax, 7
jne 0x40d73e
mov ebx, dword [ebp - 8]
mov ecx, esi
add ebx, 4
mov dword [ebp - 8], ebx
push 0
shr ebx, 1
push ebx
call fcn.0040afa0
lea eax, [ebx - 1]
mov ecx, esi
push eax
call fcn.0040ad50
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx - 2]
push eax
mov ecx, esi
call fcn.0040ad50
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0040ad30
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d753
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0xc], 7
jne 0x40d789
cmp ebx, 3
jbe 0x40d789
mov ecx, esi
call fcn.0040ad30
lea edx, [ebx - 1]
xor ecx, ecx
test edx, edx
je 0x40d789
lea edi, [ecx + 0xa]
xor esi, esi
cmp si, word [eax + ecx*2]
jne 0x40d784
cmp word [eax + ecx*2 + 2], si
je 0x40d784
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x40d771
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8

Function at 0x40d830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040d380
cmp dword [edi], 0
je 0x40d8a3
push 0x1fe
mov dword [ebp - 8], 0x1fe
call fcn.0042cfa7
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 8]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d895
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
jmp 0x40d89c
mov dword [esi + 4], 0xfffffffe
mov dword [esi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8
Function at 0x40d8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040d380
cmp dword [edi], 0
je 0x40d92b
push ebx
push 0x7ffe
mov dword [ebp - 8], 0x7ffe
call fcn.0042cfa7
add esp, 4
mov dword [esi], eax
lea ebx, [esi + 8]
lea ecx, [esi + 4]
push ebx
push 0
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40d92a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
mov dword [ebx], ecx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 8

Function at 0x40d9a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x40da1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40da1c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x40d9d2
cmp edx, 1
jae 0x40d9d2
mov edx, edi
call fcn.0040dd60
mov edx, eax
cmp edi, 7
jne 0x40d9fe
cmp edx, 2
jbe 0x40d9fe
push esi
mov esi, edx
xor eax, eax
shr esi, 1
sub esi, 1
je 0x40d9fd
cmp word [ecx + eax*2], 0xa
jne 0x40d9f5
xor ebx, ebx
mov word [ecx + eax*2], bx
inc eax
cmp eax, esi
jb 0x40d9e8
mov ebx, dword [ebp + 8]
pop esi
mov eax, dword [ebp - 4]
push edx
push ecx
push edi
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40db90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c220
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
call fcn.0040aae0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
call fcn.0040d3f0
push 0x20019
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040d4f0
mov ecx, edi
call fcn.0040d940
test eax, eax
je 0x40dc75
lea esi, [eax - 1]
test esi, esi
js 0x40dc75
push esi
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0040d830
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x3c]
call fcn.0040d470
cmp dword [ebp - 0x38], 0xffffffff
je 0x40dc70
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
push 0x45876c
push ebx
call fcn.0040acd0
lea ecx, [ebp - 0x24]
call fcn.0040ad30
push eax
mov ecx, edi
call fcn.0040db90
sub esi, 1
jns 0x40dc11
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
push ebx
movq qword [ebp - 0x1c], xmm0
call fcn.0040ab20
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040ae00
test al, al
jne 0x40dc9c
xor bl, bl
jmp 0x40dcff
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
push ebx
movq qword [ebp - 0x2c], xmm0
call fcn.0040ab20
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040ac70
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b620
push 0x20019
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
push eax
mov ecx, edi
call fcn.0040d4f0
test al, al
jne 0x40dce1
xor bl, bl
jmp 0x40dcf7
lea ecx, [ebp - 0x1c]
call fcn.0040ad30
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x2c]
call fcn.0040ac10
lea ecx, [ebp - 0x1c]
call fcn.0040ac10
lea ecx, [ebp - 0x3c]
call fcn.0040ac10
lea ecx, [ebp - 0x24]
call fcn.0040ac10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret 4
Function at 0x40dfd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040ab20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
call fcn.0040dda0
mov esi, eax
test esi, esi
jne 0x40e02f
xor bl, bl
jmp 0x40e044
lea ecx, [ebp - 0x18]
call fcn.0040ad30
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x18]
call fcn.0040ac10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret
Function at 0x40e620
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
xor edi, edi
push 0xf01ff
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e789
push ebx
push 0x44e798
push 0x94
mov dword [esi], 0x94
call fcn.0042d302
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40e788
push 0x44e798
push dword [esi]
call fcn.0042d302
mov edi, eax
add esp, 8
test edi, edi
je 0x40e77f
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea ecx, [ebx + 4]
push ecx
push str.SeRestorePrivilege
push 0
mov dword [ebx], 0xc
call esi
lea eax, [ebx + 0x10]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [ebx + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [ebx + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [ebx + 0x34]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [ebx + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [ebx + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [ebx + 0x58]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [ebx + 0x64]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [ebx + 0x70]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [ebx + 0x7c]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [ebx + 0x88]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [ebx + 0xc]
mov ecx, 0xc
nop dword [eax]
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x40e750
mov eax, dword [ebp - 0xc]
push eax
push edi
push dword [eax]
push ebx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40e77f
push edi
call fcn.0042cfa2
add esp, 4
xor edi, edi
push ebx
call fcn.0042cfa2
add esp, 4
pop ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e797
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042cf3b
mov esp, ebp
pop ebp
ret