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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa184c
call fcn.004068b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov dword [ebp - 0xa1824], edx
nop word [eax + eax]
mov eax, edx
neg edx
shr eax, 6
mov dword [ebp - 0xa1828], eax
mov ecx, eax
mov eax, dword [ebp - 0xa1824]
and ecx, 3
mov bl, al
neg al
shl bl, cl
mov ecx, edx
shr ecx, 0xd
and cl, al
shr edx, 1
xor bl, cl
and bl, 0x7f
xor bl, dl
mov edx, dword [ebp - 0xa1824]
mov ecx, edx
mov eax, edx
shr ecx, 9
and cl, dl
shr eax, 0xc
xor cl, al
xor cl, byte [ebp - 0xa1828]
or bl, cl
mov byte [ebp + edx - 0xa1808], bl
inc edx
mov dword [ebp - 0xa1824], edx
cmp edx, 0xa17fc
jb 0x4040e0
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa1844], 0xa17fc
mov dword [ebp - 0xa1848], eax
lea eax, [ebp - 0xa1848]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa1840], 0
mov dword [ebp - 0xa183c], 0
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405bc6
mov esp, ebp
pop ebp
ret
Function at 0x4047b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004068b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
lea esi, [ebx + 0xd]
mov ecx, ebx
shr ecx, 9
lea eax, [ecx - 1]
movsx ecx, cl
movsx eax, al
xor eax, ecx
xor eax, 1
cdq
idiv esi
movsx eax, bl
movsx ecx, dl
imul ecx, eax
mov byte [ebp + ebx - 0x3a988], cl
inc ebx
cmp ebx, 0x3a980
jb 0x404838
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405bc6
mov esp, ebp
pop ebp
ret
Function at 0x404a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004068b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
lea esi, [ebx + 0xd]
nop dword [eax + eax]
mov eax, ebx
mov ecx, ebx
xor eax, 0x200
shr ecx, 9
shr eax, 9
dec ecx
xor eax, ecx
xor edx, edx
div esi
movsx eax, bl
movsx ecx, dl
imul ecx, eax
mov eax, ebx
shr eax, 4
add al, 2
movsx eax, al
and cl, 0x1f
movsx ecx, cl
imul ecx, eax
mov byte [ebp + ebx - 0x3a988], cl
inc ebx
cmp ebx, 0x3a980
jb 0x404b00
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405bc6
mov esp, ebp
pop ebp
ret
Function at 0x404ec0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.004068b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x3a9a4], edx
nop word [eax + eax]
mov eax, dword [ebp - 0x3a9a4]
mov ebx, edx
shr ebx, 6
mov cl, 1
test dl, 0xf
sete dl
shr eax, 4
lea edx, [edx*4 + 2]
and dl, al
sub cl, dl
mov edx, dword [ebp - 0x3a9a4]
movsx eax, dl
movsx ecx, cl
imul ecx, eax
mov al, bl
xor al, dl
add cl, al
mov eax, edx
shr eax, 0xd
and al, dl
or al, bl
xor cl, al
mov byte [ebp + edx - 0x3a988], cl
inc edx
mov dword [ebp - 0x3a9a4], edx
cmp edx, 0x3a980
jb 0x404f50
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405bc6
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.004068b0
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
mov edx, ebx
mov eax, ebx
shr eax, 3
mov ecx, ebx
shr edx, 4
xor dl, al
shr ecx, 0xa
mov eax, ebx
movsx ecx, cl
shr eax, 8
and dl, al
movsx eax, bl
imul ecx, eax
xor cl, 0x40
or dl, cl
mov al, dl
add dl, dl
add al, dl
mov byte [ebp + ebx - 0x3a988], al
inc ebx
cmp ebx, 0x3a980
jb 0x4050e4
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405bc6
mov esp, ebp
pop ebp
ret
Function at 0x4063fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40643b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40643b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40643b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40643b
cmp dword [ecx + 0x74], 0xe
jbe 0x40643b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403570
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x264]
push ebx
sub esp, 0x27c
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x260], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x25c], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403770
mov dword [esp], 0
lea esi, [ebp - 0x218]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805d
mov dword [esp], eax
call dword [0x4176d8]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x40372e
mov edi, 1
jmp 0x403622
inc edi
cmp edi, 0x64
je 0x403750
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x417760]
mov eax, dword [ebp - 0x264]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x403618
mov eax, dword [ebp + 0x14]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403685
mov edi, dword [eax*4 + 0x412ae0]
mov eax, dword [ebp + 0x14]
lea esi, [ebp - 0x260]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403750
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [0x410b58]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._AddEntryToList
lea edx, [ebp - 0x254]
mov dword [ebp - 0x248], 3
mov dword [esp + 8], eax
mov eax, dword [0x410b58]
mov dword [ebp - 0x244], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x417714]
sub esp, 0x10
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x40372e
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403790
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x1c]
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403830
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x8150
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov dword [esp], eax
call sym._messagebox
cmp eax, 6
je 0x403810
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403850
mov ebx, 1
jmp 0x4037f4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7df
xor ebx, ebx
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4037f4

Function at 0x4038e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x403928
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x40394b
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x403970
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x8045
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403952
Function at 0x404df0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x230
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x404f10
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._GetItemPath
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test ebx, ebx
jne 0x404eb8
test eax, eax
je 0x404eac
cmp eax, 0x80000000
je 0x404f40
cmp eax, 0x80000001
je 0x404ef0
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x404e97
cmp eax, 0x80000003
je 0x404f50
cmp eax, 0x80000005
je 0x404f60
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x404f00
mov dword [ebp - 0x214], edx
test ebx, ebx
jne 0x404ebc
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x404e52
lea eax, [ebp - 0x21c]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x404ea1
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x404e97
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x404e97
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x417714]
sub esp, 0x10
mov edx, eax
jmp 0x404e25
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x404e97
mov edx, dword [str.HKEY_USERS]
jmp 0x404e97
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x404e97

Function at 0x406760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov edx, dword [0x410a20]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x406798
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x406788
mov eax, edx
pop ebp
ret
mov edx, dword [eax + 0x3c]
pop ebp
mov eax, ecx
jmp sym._UpdateExpandingTree.part.0
xor edx, edx
pop ebp
mov eax, edx
ret
Function at 0x406cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp + 4], 0x4128d8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x406da0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x406d70
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x412bb4
call esi
mov edx, 0x69
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
jmp 0x406d3c
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x406d38
sub eax, str.Windows_Registry_Editor_Version_5.00_r_n
mov dword [esp + 0xc], ebx
sar eax, 1
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], str.Windows_Registry_Editor_Version_5.00_r_n
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.REGEDIT4_r_n
call sym._fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x4128dc
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x406d02
mov dword [esp], 0x4128e2
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call sym._error_exit
jmp 0x406d02

Function at 0x406f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
test ecx, ecx
je 0x406f80
cmp word [edx], 0
je 0x406fb0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x406f50
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
test edx, edx
je 0x406f8d
mov eax, edx
call sym._GetMultiByteString.part.0
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fputs]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x406f5d
Function at 0x407c80
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x407d50
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407d50
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x2c]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x407d60
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x407de0
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x28], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x407d80
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x407e00
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov ebx, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
jne 0x407e20
mov esi, 1
jmp 0x407d27
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x407d27
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x407d27
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x7e1
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x407d27
Function at 0x40a280
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 9
je 0x40a2a8
cmp ax, 0x20
jne 0x40a2bb
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40a2a8
cmp ax, 9
je 0x40a2a8
test ax, ax
je 0x40a2e0
cmp ax, 0x3b
je 0x40a2e0
mov dword [esi + 0x30], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esi + 0x30], 2
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40a510
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0xc18]
push ebx
mov ebx, ecx
push ecx
sub esp, 0xc28
mov edi, dword [ecx]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x600
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [0x4176d8]
sub esp, 0x10
test eax, eax
jne 0x40a580
test byte [0x4107a4], 1
jne 0x40a5a0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea edx, [ebx + 4]
mov eax, esi
call sym._output_formatstring
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed_with__lu_n
mov dword [esp + 8], str.error_exit
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x4107a4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret