joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f60
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x46bc30
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.00404d50
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x404fef
xor bl, bl
jmp 0x40502b
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 0x405029
push dword [esi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405021
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 4
cmp edi, ebx
jne 0x405008
mov bl, 1
mov byte [esp + 0x2c], 0
test ebp, ebp
je 0x405055
push ebp
call fcn.0044b7dc
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 0x405070
push dword [esp + 0x34]
call fcn.0044b7dc
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.0044b7e1
add esp, 0x1c
ret

Function at 0x405320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bd32
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.0044799d
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 0x4053f8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], str.bad_locale_name
push eax
lea ecx, [esp + 0x14]
call fcn.0044c676
mov byte [esp + 0x2c], 7
mov dword [esp + 0x10], vtable.std::runtime_error.0
mov byte [esp + 0x2c], 6
lea eax, [esp + 0x10]
push 0x48a1a0
push eax
call fcn.0044f35b
push edi
push esi
call fcn.00447c33
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.0044b7e1
add esp, 0x24
ret 4
Function at 0x405c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bf79
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 0x405cc1
push 2
push 0x47c394
lea ecx, [esp + 0x48]
call fcn.00403010
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405c00
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402f60
mov byte [esp + 0x30], 1
cmp dword [esp + 0x24], 0x10
jb 0x405cfa
push dword [esp + 0x10]
call fcn.0044b7dc
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.00402ec0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x54], 0x10
jb 0x405d4c
push dword [esp + 0x40]
call fcn.0044b7dc
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 0x405d80
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46bfc0
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.004030f0
mov dword [esp + 0x4c], 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00405c70
add esp, 0x20
mov dword [esp + 0x34], 1
cmp dword [eax + 0x14], 0x10
jb 0x405e05
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.0044c676
mov byte [esp + 0x34], 2
mov dword [esi], vtable.std::runtime_error.0
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 0x10
jb 0x405e38
push dword [esp + 0x10]
call fcn.0044b7dc
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 0x4061b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c149
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 0x406540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
xor eax, eax
mov esi, edx
push 0x40e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00451ce0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4065ae
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4065c6
mov eax, dword [esp + 4]
test eax, eax
je 0x4065ae
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0044b7e1
add esp, 0x418
ret
cmp word [esp + 8], 0
jne 0x4065d2
xor ecx, ecx
jmp 0x4065ef
lea ecx, [esp + 8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00403b80
mov eax, dword [esp + 4]
test eax, eax
je 0x40660b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0044b7e1
add esp, 0x418
ret
Function at 0x406630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46c2ab
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 0x47c3e0
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x406725
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 0x406725
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x406712
push 0xa8
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00451ce0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4066ce
mov eax, dword [esi]
jmp 0x4066d0
mov eax, esi
sub esp, 0xc
lea ecx, [esp + 0x20]
push eax
call fcn.00409860
mov dword [esp + 0xc8], 0
lea ecx, [esp + 0x14]
push 0
push edi
push ebx
call fcn.004096e0
lea ecx, [esp + 0x14]
call fcn.00409a00
mov dword [esp + 0xc8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00406750
mov ecx, esi
call fcn.00411270
cmp eax, edi
jne 0x406725
test edx, edx
jne 0x406725
mov al, 1
jmp 0x406727
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.0044b7e1
add esp, 0xbc
ret
Function at 0x407310
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 0x47c4a8
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, 0x48d68c
test eax, eax
jne 0x407387
cmp dword [0x48d6a0], 8
mov eax, edi
cmovae eax, dword [0x48d68c]
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 0x4073d1
cmp dword [0x48d6a0], 8
mov eax, edi
cmovae eax, dword [0x48d68c]
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 0x47c4a8
push SysReAllocString
call esi
test eax, eax
jne 0x40741b
cmp dword [0x48d6a0], 8
mov eax, edi
cmovae eax, dword [0x48d68c]
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 0x407463
cmp dword [0x48d6a0], 8
cmovae edi, dword [0x48d68c]
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.0044b7e1
add esp, 8
ret
Function at 0x409860
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46c9e2
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], 0x47c808
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.0040a5f0
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.0040aeb0
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 [0x48f3f4]
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.0040a6f0
test eax, eax
jne 0x4099d8
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 0x4099c6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4099d8
push 0
call fcn.004060d0
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 0x40a900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46caf8
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 0x40aa93
cmp byte [ebx + 0x45], 0
je 0x40aa93
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40a960
xor al, al
jmp 0x40aa95
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 0x40a9c0
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 0x40a9fb
dec eax
je 0x40a9ff
sub eax, 2
je 0x40aa5d
xor bl, bl
jmp 0x40aa5f
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 0x40aa3e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044d210
add esp, 0x10
cmp esi, eax
jne 0x40a9f7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x40aa5d
test esi, esi
jne 0x40a9c0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040a540
jmp 0x40a9af
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x40aa7a
push dword [esp + 0x18]
call fcn.0044b7dc
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x40aa95
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.0044b7e1
mov esp, ebp
pop ebp
ret

Function at 0x40d0c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x40d0d2
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40d0e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d0e0
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 0x40d110
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x40d124
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 0x40d135
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40d130
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 0x40d8f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x46d0fb
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 0x40d996
lea esi, [esp + 0x24]
push esi
push eax
push ecx
push ebp
push ecx
mov ecx, edx
call fcn.0040d7f0
jmp 0x40d9a6
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 0x40da70
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
je 0x40d9cd
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 0x40da70
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 0x40da49
lea ecx, [ecx]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d8f0
mov esi, eax
test esi, esi
jne 0x40da70
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 0x40da10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40da5c
push eax
call ebx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x14]
push ebp
mov dword [esp + 0x20], 0
call fcn.0040db60
mov esi, eax
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40da8e
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.0044b7e1
add esp, 0x234
ret 4
Function at 0x40db60
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x40dbc3
cmp dword [esi], 0
push edi
mov edi, dword [ecx]
je 0x40dba3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dbb9
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dbb9
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 0x40dbb9
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
Function at 0x40e760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x46d1b3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x48c74c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x41c]
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x404], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp + 0x408], xmm0
mov dword [ebp + 0x40c], ecx
mov dword [ebp + 0x408], 0
push 0x404
push 0
lea eax, [ebp]
push eax
call fcn.00451ce0
add esp, 0xc
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40e82f
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x40e82f
call fcn.0040c930
mov edi, eax
jmp 0x40e93c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e84c
call fcn.0040c930
jmp 0x40e92f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x40e867
call fcn.0040c930
jmp 0x40e92f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x40e885
mov edi, 0x8007000e
jmp 0x40e931
mov byte [ebp - 4], 2
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40e8c9
cmp ecx, 0xffffffff
ja 0x40e8c9
cmp ecx, 0x400
jbe 0x40e8ba
push ecx
lea ecx, [ebp]
call fcn.0040c900
mov dword [ebp - 4], 1
jmp 0x40e8e9
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40e8e9
push 0x80070216
call fcn.0040d670
mov eax, 0x40e8d9
ret
mov eax, dword [ebp]
test eax, eax
jne 0x40e8f7
mov edi, 0x8007000e
jmp 0x40e931
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40e912
call fcn.0040c930
jmp 0x40e92f
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x428]
push dword [ebp]
lea ecx, [ebp + 0x408]
call fcn.0040e600
mov edi, eax
test esi, esi
je 0x40e93c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40e950
lea ecx, [ebp]
call fcn.0040c8e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0044b7e1
lea esp, [ebp + 0x414]
pop ebp
ret 0x10