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

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10016e57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10016e66
pop dword [ebp - 0xc]
mov eax, 0x10016e66
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf793747b
sub dword [ebp - 0x1c], 0xa9412f30
mov dword [ebp - 0x18], 0xb8bf4ed3
sub dword [ebp - 0x18], 0x868c028e
mov dword [ebp - 0x14], 0x348efe9c
add dword [ebp - 0x14], 0x17bd4592
mov dword [ebp - 0x10], 0x361e7584
sub dword [ebp - 0x10], 0x361e7584
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xc9445118
add eax, 0x46bd4ef0
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x76766e92
sub dword [ebp - 0x1c], 0x204053c
mov dword [ebp - 0x18], 0x3425dbb5
sub dword [ebp - 0x18], 0xf2b97a40
mov dword [ebp - 0x14], 0xea3bc2d6
sub dword [ebp - 0x14], 0x86cc566a
mov dword [ebp - 0x10], 0x63590b0e
add dword [ebp - 0x10], 0x9ca6f4f2
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x9e648fd9
sub eax, 0x8e62efcd
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3c5be
push 0
call eax
mov ecx, 0x77d16234
add ecx, 0x882eee25
mov esi, eax
mov edi, 0x12ce0918
add edi, 0xfd3440e8
add edi, dword [ebp - 0xc]
mov edx, 0x6f9f327b
sub edx, 0x540e819
add dword [ebp - 4], 0xa8e25cd4
mov ebx, dword [edi]
add dword [ebp - 8], 0x79e72cb6
add ebx, edx
sub dword [ebp - 4], 0x1a07815c
mov dword [esi], ebx
xor dword [ebp - 4], 0x4439d43c
add esi, 0xb859bbec
sub esi, 0xb859bbe8
add edi, 4
loop 0x10016f83
add eax, 0x13437
xor ebx, ebx
add ebx, eax
add eax, 0x42ba9b17
add eax, 0xbd4564ee
mov ecx, 0xd2d8b1e8
add ecx, 0x3d274e18
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43707c]
jne 0x401617
repz ret
jmp fcn.00401f23

Function at 0x406b4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43707c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044cb
and dword [ebp - 0x14], 0
cmp dword [0x439a58], 0
mov dword [ebp - 0x18], eax
jne 0x406bff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406ca7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406ca7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439a58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439a5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439a60], eax
call edi
push eax
call esi
mov dword [0x439a68], eax
test eax, eax
je 0x406bff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439a64], eax
mov eax, dword [0x439a64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c58
cmp dword [0x439a68], ecx
je 0x406c58
push eax
call esi
push dword [0x439a68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c58
test ebx, ebx
je 0x406c58
call edi
test eax, eax
je 0x406c4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c4f
test byte [ebp - 8], 1
jne 0x406c58
or dword [ebp + 0x10], 0x200000
jmp 0x406c8b
mov eax, dword [0x439a5c]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406c8b
mov eax, dword [0x439a60]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439a58]
call esi
test eax, eax
je 0x406ca7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406ca9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414b19
mov ah, 0x57
fistp dword [ebx]
in al, 0xe
outsd dx, dword [esi]
pushfd
loope 0x414aa9
push esi
or eax, 0xb73e9c23
pop ss
inc esp
sbb byte [edi], bl
and dword [esi + 0x35], ebp
inc ebp
sbb al, al
and bl, byte [eax - 0x22]
ficomp word [edi + 0x3d3a64e1]
mov dword [0x81ed86de], eax
lahf
xor eax, 0x22c121b1
or dword [ebp + 0x661e22c1], eax
mov ebp, 0xcd6dea0
and ecx, eax
adc al, 0x22
fidivr word [esi]
fucom st(1)
fidivr word [esi]
fucom st(1)
fidivr word [esi]
fucom st(1)
fidivr word [esi]
fstp qword [esi]
and ecx, eax
and ah, cl
fidivr word [esi]
fstp qword [esi]
and ecx, eax
and ah, cl
fidivr word [esi]
fucom st(1)
fidivr word [esi]
fucom st(1)
fidivr word [esi]
fucom st(1)
fidivr word [ebp + 0x3a19e531]
stc
or eax, 0xe8dd7c76
and eax, 0xaee1b571
jg 0x414b19
scasd eax, dword es:[edi]
cdq
xchg byte [0x66b8e463], al
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4034a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x270
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x258], 0
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x264], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x4036c0
mov dword [esp], 0
lea esi, [ebp - 0x210]
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 [0x4176d0]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x40367f
mov edi, 1
jmp 0x40356a
inc edi
cmp edi, 0x64
je 0x4036a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x417758]
mov eax, dword [ebp - 0x25c]
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 0x403560
mov eax, dword [ebp - 0x260]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x4035d0
mov edi, dword [eax*4 + 0x412ae0]
mov eax, dword [ebp - 0x260]
lea esi, [ebp - 0x258]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x25c]
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 0x4036a0
mov eax, dword [ebp - 0x260]
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 - 0x24c]
mov dword [ebp - 0x240], 3
mov dword [esp + 8], eax
mov eax, dword [0x410b58]
mov dword [ebp - 0x23c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x41770c]
sub esp, 0x10
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x40367f
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x4036f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x18
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 0x403790
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 0x403770
mov eax, dword [ebp - 0x10]
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 0x4037b0
mov ebx, 1
jmp 0x403754
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 0x403754

Function at 0x403840
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
sub esp, 0x18
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 0x403888
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 - 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x4038ab
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4038d0
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 8]
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 0x4038b2
Function at 0x404ce0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x228
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x404e00
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 0x404da8
test eax, eax
je 0x404d9c
cmp eax, 0x80000000
je 0x404e30
cmp eax, 0x80000001
je 0x404de0
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x404d87
cmp eax, 0x80000003
je 0x404e40
cmp eax, 0x80000005
je 0x404e50
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x404df0
mov dword [ebp - 0x214], edx
test ebx, ebx
jne 0x404dac
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x404d42
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 0x404d91
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x404d87
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x404d87
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x41770c]
sub esp, 0x10
mov edx, eax
jmp 0x404d15
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x404d87
mov edx, dword [str.HKEY_USERS]
jmp 0x404d87
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x404d87

Function at 0x4065c0
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 0x4065f8
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x4065e8
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 0x406b00
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, 0x10
mov dword [esp + 4], 0x4128e0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x406bf0
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 0x406bc0
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], 0x412bac
call esi
mov edx, 0x69
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
jmp 0x406b8c
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x406b88
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], 0x4128e4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x406b52
mov dword [esp], 0x4128ea
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call sym._output_message
call sym._error_exit
jmp 0x406b52

Function at 0x406d90
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 0x406de0
cmp word [edx], 0
je 0x406e10
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x406db0
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 0x406ded
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 0x406dbd
Function at 0x407ab0
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, 0x2c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x407b80
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407b80
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x20]
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 0x407b90
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
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 0x407c10
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x1c], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x407bb0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
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 - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x407c30
mov eax, dword [ebp - 0x20]
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 0x407c50
mov esi, 1
jmp 0x407b57
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 0x407b57
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x407b57
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
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 0x407b57
Function at 0x40a0d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 9
je 0x40a0f8
cmp ax, 0x20
jne 0x40a10b
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x40a0f8
cmp ax, 9
je 0x40a0f8
test ax, ax
je 0x40a130
cmp ax, 0x3b
je 0x40a130
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 0x40a360
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40b4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40b518
cmp byte [esi + ebx - 1], 0xa
je 0x40b4ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x410f8c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x40bdb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x82c
mov dword [ebp - 0x80c], 0x800
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x40be28
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.LastKey
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40bec0
mov eax, dword [0x410b58]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x40bec0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._FindPathInTree
test eax, eax
je 0x40bec0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x41770c]
sub esp, 0x10
jmp 0x40bf0a
mov eax, dword [0x410b58]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x41770c]
mov dword [esp + 4], 0x110a
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], ebx
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret