joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eb0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x46bee7
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebp, eax
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404f1b
xor al, al
jmp 0x40508d
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40507c
nop
cmp dword [esp + 0x28], ebp
je 0x405068
xor eax, eax
push 0x206
push eax
mov word [esp + 0x45c], ax
lea eax, [esp + 0x45e]
push eax
call fcn.00451fb0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x464]
push 0x104
push eax
call fcn.0044c8b3
xor eax, eax
push 0x206
push eax
mov word [esp + 0x26c], ax
lea eax, [esp + 0x26e]
push eax
call fcn.00451fb0
push esi
lea eax, [esp + 0x274]
push 0x104
push eax
call fcn.0044c8b3
lea eax, [esp + 0x27c]
push eax
call fcn.004680fc
mov esi, eax
lea eax, [esp + 0x488]
push eax
call fcn.004680fc
add esp, 0x38
lea ecx, [ecx]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x404fe6
test cx, cx
je 0x404fe2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x404fe6
add eax, 4
add esi, 4
test cx, cx
jne 0x404fc0
xor eax, eax
jmp 0x404feb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405064
mov eax, dword [edi + 4]
lea ecx, [esp + 0x28]
cmp ecx, eax
jae 0x405046
mov ecx, dword [edi]
lea edx, [esp + 0x28]
cmp ecx, edx
ja 0x405046
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x405018
push ecx
mov ecx, edi
call fcn.00405280
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x668], 0
test ecx, ecx
je 0x405039
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
mov dword [esp + 0x668], 0xffffffff
jmp 0x405060
cmp eax, dword [edi + 8]
jne 0x405053
push ecx
mov ecx, edi
call fcn.00405280
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x405060
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
add dword [edi + 4], 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404f30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
xor eax, eax
cmp ecx, dword [edi + 4]
setne al
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.0044bab1
add esp, 0x658
ret
Function at 0x4050c0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x46bf30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 8
lea edx, [esp + 0x14]
cmovae ecx, dword [esp + 0x34]
call fcn.00404eb0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x40514f
xor bl, bl
jmp 0x40518b
mov ebx, eax
xor ecx, ecx
sub ebx, ebp
xor edi, edi
add ebx, 3
mov esi, ebp
shr ebx, 2
cmp ebp, eax
cmova ebx, ecx
test ebx, ebx
je 0x405189
push dword [esi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405181
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 4
cmp edi, ebx
jne 0x405168
mov bl, 1
mov byte [esp + 0x2c], 0
test ebp, ebp
je 0x4051b5
push ebp
call fcn.0044baac
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x4051d0
push dword [esp + 0x34]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0044bab1
add esp, 0x1c
ret

Function at 0x405480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c032
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.00447c6d
mov dword [esp + 0x2c], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [esp + 0x2c], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x2c], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [esp + 0x2c], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x2c], 6
test edi, edi
jne 0x405558
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_locale_name
push eax
lea ecx, [esp + 0x14]
call fcn.0044c946
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x48a1c0
push eax
call fcn.0044f62b
push edi
push esi
call fcn.00447f03
add esp, 8
mov dword [esp + 0x2c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044bab1
add esp, 0x24
ret 4
Function at 0x405dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c279
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x50], 0
je 0x405e21
push 2
push 0x47c384
lea ecx, [esp + 0x48]
call fcn.00403070
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405d60
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402fc0
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x405e5a
push dword [esp + 0x10]
call fcn.0044baac
add esp, 4
lea eax, [esp + 0x40]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esi], 0
call fcn.00402f20
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x405eac
push dword [esp + 0x40]
call fcn.0044baac
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x405ee0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46c2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403150
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00405dd0
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x405f65
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.0044c946
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x405f98
push dword [esp + 0x10]
call fcn.0044baac
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 0xc
Function at 0x406310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c449
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4066a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x40e
push eax
mov word [esp + 0x14], ax
mov esi, ecx
lea eax, [esp + 0x16]
push eax
call fcn.00451fb0
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406710
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x406729
mov eax, dword [esp + 8]
test eax, eax
je 0x406710
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0044bab1
add esp, 0x418
ret
cmp word [esp + 0xc], 0
jne 0x406735
xor ecx, ecx
jmp 0x40674f
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406740
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00403be0
mov eax, dword [esp + 8]
test eax, eax
je 0x40676b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x41c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0044bab1
add esp, 0x418
ret
Function at 0x406790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46c5ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, edx
push 0x47c3d0
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x406885
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x406885
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x406872
push 0xa8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00451fb0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40682e
mov eax, dword [esi]
jmp 0x406830
mov eax, esi
sub esp, 0xc
lea ecx, [esp + 0x20]
push eax
call fcn.00409920
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x14]
push 0
push edi
push ebx
call fcn.004097a0
lea ecx, [esp + 0x14]
call fcn.00409ac0
mov dword [esp + 0xc8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004068b0
mov ecx, esi
call fcn.00411540
cmp eax, edi
jne 0x406885
test edx, edx
jne 0x406885
mov al, 1
jmp 0x406887
xor al, al
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0044bab1
add esp, 0xbc
ret
Function at 0x407490
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push edi
push eax
push 0x20006
push 0
push 0x47c498
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
xor bl, bl
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, 0x48d674
test eax, eax
jne 0x407507
cmp dword [0x48d688], 8
mov eax, edi
cmovae eax, dword [0x48d674]
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x407551
cmp dword [0x48d688], 8
mov eax, edi
cmovae eax, dword [0x48d674]
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push 0x47c498
push SysReAllocString
call esi
test eax, eax
jne 0x40759b
cmp dword [0x48d688], 8
mov eax, edi
cmovae eax, dword [0x48d674]
push eax
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
test eax, eax
jne 0x4075e3
cmp dword [0x48d688], 8
cmovae edi, dword [0x48d674]
push edi
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bab1
add esp, 8
ret
Function at 0x409920
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46ccd2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
lea eax, [edi + 0x60]
mov dword [edi], 0x47c8a8
mov dword [esp + 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [esp + 0x20], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x20], 1
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0xc], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040a6b0
mov dword [esp + 0x20], 4
mov eax, dword [edi]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040af70
mov byte [esp + 0x20], 5
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x48f434]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov byte [esp + 0x20], 6
sub esp, 8
mov ecx, esi
push dword [esp + 0x30]
call fcn.0040a7b0
test eax, eax
jne 0x409a98
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x409a86
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x409a98
push 0
call fcn.00406230
mov dword [esp + 0x20], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0x10
Function at 0x40a9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cde8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40ab53
cmp byte [ebx + 0x45], 0
je 0x40ab53
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40aa20
xor al, al
jmp 0x40ab55
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
jmp 0x40aa80
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40aabb
dec eax
je 0x40aabf
sub eax, 2
je 0x40ab1d
xor bl, bl
jmp 0x40ab1f
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40aafe
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044d3f0
add esp, 0x10
cmp esi, eax
jne 0x40aab7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x40ab1d
test esi, esi
jne 0x40aa80
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040a600
jmp 0x40aa6f
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x40ab3a
push dword [esp + 0x18]
call fcn.0044baac
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x40ab55
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044bab1
mov esp, ebp
pop ebp
ret

Function at 0x40d480
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x40d492
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40d4a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d4a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x40d4d0
Capabilities:
Set registry value

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

Disassembly:
push 0xffffffffffffffff
push 0x46d42b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x24c]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x244], 0
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
or eax, 0x2001f
mov ecx, dword [ecx]
mov dword [esp + 0x24], 0
test edx, edx
je 0x40dd56
lea esi, [esp + 0x24]
push esi
push eax
push ecx
push ebp
push ecx
mov ecx, edx
call fcn.0040dbb0
jmp 0x40dd66
lea edx, [esp + 0x24]
push edx
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x40de30
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
je 0x40dd8d
push eax
call ebx
mov esi, eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
test esi, esi
jne 0x40de30
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x2c]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x100
push ecx
lea ecx, [esp + 0x48]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x40de09
lea ecx, [ecx]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040dcb0
mov esi, eax
test esi, esi
jne 0x40de30
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
je 0x40ddd0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40de1c
push eax
call ebx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x14]
push ebp
mov dword [esp + 0x20], 0
call fcn.0040df20
mov esi, eax
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40de4e
push eax
call ebx
mov dword [esp + 0x18], 0
mov eax, esi
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0044bab1
add esp, 0x234
ret 4
Function at 0x40df20
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x40df83
cmp dword [esi], 0
push edi
mov edi, dword [ecx]
je 0x40df63
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40df79
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40df79
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x1c]
push edi
call eax
pop edi
pop esi
ret 4
cmp dword [esi + 4], 0
je 0x40df79
push dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
push dword [esp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
ret 4