joyce8/EMBER2024-capa huggingface dataset:
Function at 0x740568
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x740671
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00407684
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x7405dc
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x24]
push 0x74068c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00408694
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x7405ae
lea eax, [ebp - 0x18]
mov edx, 0x74068c
call fcn.004085b4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x740600
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
call fcn.00407c24
push eax
push 7
push 0
mov eax, dword [ebp - 4]
call fcn.004083a0
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
push eax
call sub.KERNEL32.DLL_SetLastError
call sub.KERNEL32.DLL_GetLastError_2
test eax, eax
je 0x740653
mov ecx, 0x74069c
mov dl, 1
mov eax, dword [0x41a910]
call fcn.004258b8
call fcn.00406d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x740678
lea eax, [ebp - 0x24]
call fcn.00407684
lea eax, [ebp - 0x18]
call fcn.00407684
ret

Function at 0x7406dc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407684
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2a]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2a]
call fcn.00420a0c
mov esp, ebp
pop ebp
ret
Function at 0x740710
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
xor ebx, ebx
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x200], ebx
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x1ec], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407768
mov eax, dword [ebp - 8]
call fcn.00407768
xor eax, eax
push ebp
push 0x7408f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 0xc]
call fcn.00407684
lea eax, [ebp - 0x1ec]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00407ff8
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x58]
call fcn.00420794
lea eax, [ebp - 0x58]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x7408a2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x74088d
lea edx, [ebp - 0x1f0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0041ee58
cmp dword [ebp - 0x1f0], 0
jne 0x740839
push 0x740914
push dword [ebp - 8]
push 0x740938
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x1f8]
call fcn.004209f4
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f4]
call fcn.00408478
push dword [ebp - 0x1f4]
push 0x740948
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, 6
call fcn.00408694
jmp 0x74088a
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x740938
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x200]
call fcn.004209f4
mov edx, dword [ebp - 0x200]
lea eax, [ebp - 0x1fc]
call fcn.00408478
push dword [ebp - 0x1fc]
push 0x740948
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, 5
call fcn.00408694
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp dword [eax + edx*4], 0
jne 0x7407ca
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x740900
lea eax, [ebp - 0x200]
call fcn.004076a8
lea eax, [ebp - 0x1fc]
call fcn.00407684
lea eax, [ebp - 0x1f8]
call fcn.004076a8
lea eax, [ebp - 0x1f4]
mov edx, 2
call fcn.004076e4
lea eax, [ebp - 0x1ec]
call fcn.004076a8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004076e4
ret
Function at 0x7445d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7446be
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, 0x7446d8
call fcn.00407aac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004083a0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x7446a8
mov eax, dword [ebp - 0x10]
call fcn.00404b84
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x7446a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004083a0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x74468b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004083a0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x74468b
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7446a8
mov eax, dword [ebp - 0x18]
call fcn.00404ba0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7446c5
lea eax, [ebp - 0x14]
call fcn.00407684
ret

Function at 0x754f90
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00407768
mov eax, dword [ebp - 0xc]
call fcn.00407768
xor eax, eax
push ebp
push 0x755044
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004083a0
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x755023
push 4
mov eax, dword [ebp - 0xc]
call fcn.004083a0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x75501a
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x755011
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x75504b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004076e4
ret
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x405b32
pop dword [ebp - 0xc]
mov eax, 0x69178bc6
sub eax, 0x68d73094
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x94cbd92d
sub dword [ebp - 0x1c], 0x467993e2
mov dword [ebp - 0x18], 0x89069793
add dword [ebp - 0x18], 0xa92cb4b2
mov dword [ebp - 0x14], 0xe1c3a79c
add dword [ebp - 0x14], 0x6a889c92
mov dword [ebp - 0x10], 0x9e6e3729
add dword [ebp - 0x10], 0x6191c8d7
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x7826f39d
sub eax, 0x77e67325
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x8ab08639
sub dword [ebp - 0x1c], 0x163e1ce3
mov dword [ebp - 0x18], 0x691413fd
sub dword [ebp - 0x18], 0x27a7b288
mov dword [ebp - 0x14], 0xa105e868
sub dword [ebp - 0x14], 0x3d967bfc
mov dword [ebp - 0x10], 0xb9a54e65
sub dword [ebp - 0x10], 0xb9a54e65
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3496c
push 0
call eax
mov ecx, 0xb1ac3932
sub ecx, 0xb1abfae1
mov ebx, eax
mov edi, 0x88457f23
add edi, 0x780012dd
add edi, dword [ebp - 0xc]
mov edx, 0xfb5a4da6
add edx, 0x6cfd129b
xor dword [ebp - 8], 0x16db3bed
mov esi, dword [edi]
add dword [ebp - 8], edi
xor esi, edx
mov dword [ebx], esi
sub dword [ebp - 8], ecx
add ebx, 0x666e55c6
add ebx, 0x9991aa3e
add edi, 4
loop 0x405c4f
add eax, 0xec17
xor ebx, ebx
add ebx, eax
add eax, 0xbcadfe65
add eax, 0x435201a0
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x401110
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, 0x840
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 0x401188
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 0x401220
mov eax, dword [0x415e20]
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 0x401220
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._FindPathInTree
test eax, eax
je 0x401220
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x4166fc]
sub esp, 0x10
jmp 0x40126a
mov eax, dword [0x415e20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x4166fc]
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
Function at 0x4014f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x230
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x401610
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._GetItemPath
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test esi, esi
jne 0x4015b8
test eax, eax
je 0x4015ac
cmp eax, 0x80000000
je 0x401640
cmp eax, 0x80000001
je 0x4015f0
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x401597
cmp eax, 0x80000003
je 0x401650
cmp eax, 0x80000005
je 0x401660
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401600
mov dword [ebp - 0x214], edx
test esi, esi
jne 0x4015bc
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x401552
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 0x4015a1
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x401597
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x401597
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x4166fc]
sub esp, 0x10
mov edx, eax
jmp 0x401525
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x401597
mov edx, dword [str.HKEY_USERS]
jmp 0x401597
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x401597
Function at 0x4029c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 0x10]
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
lea eax, [edx + 8]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x402a80
mov ebx, dword [esi + 4]
xor ecx, ecx
cmp eax, 2
je 0x402a50
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
call sym._error_code_messagebox
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esi + 0xc], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
jne 0x402a14
mov dword [esi + 8], 1
mov dword [esi + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [esi + 0xc], eax
mov word [eax], cx
mov eax, 1
jmp 0x402a43
mov eax, dword [esi + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x24]
sub esp, 0x18
test eax, eax
jne 0x402ae8
mov eax, dword [esi + 0x10]
test al, 1
jne 0x402ad1
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
mov dword [esi + 0xc], ecx
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esi + 4]
jmp 0x402a14

Function at 0x403670
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x1c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403710
mov edi, 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 0x4036f0
mov eax, dword [ebp - 0x1c]
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 dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403730
mov edi, 1
jmp 0x4036d4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7df
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
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x4036d4
Function at 0x403750
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 0x403798
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 0x4037bb
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4037e0
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 0x4037c2
Function at 0x403800
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 0x403a00
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 [0x4166c0]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x4039c0
mov edi, 1
jmp 0x4038b4
add edi, 1
cmp edi, 0x64
je 0x4039e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x416748]
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 0x4038a8
mov eax, dword [ebp + 0x14]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x403917
mov edi, dword [eax*4 + 0x411240]
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 0x4039e0
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 [0x415e20]
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 [0x415e20]
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 [0x4166fc]
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 0x4039c0
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 0x403a20
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 0x403af0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x403af0
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 0x403b00
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 0x403b80
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x28], ebx
call sym._read_value
mov esi, eax
test eax, eax
jne 0x403b20
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 0x403ba0
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 0x403bc0
mov esi, 1
jmp 0x403ac7
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 0x403ac7
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403ac7
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 0x403ac7