joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [edx + 0x10]
push ebx
lea esi, [edx + 8]
mov ebx, edx
sub esp, 0x3c
mov dword [ebp - 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
call eax
sub esp, 0x18
test eax, eax
je 0x402b90
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x1c], 0
cmp eax, 2
je 0x402b60
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x8045
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004026f0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0xc], 0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
jne 0x402b28
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov word [eax], cx
jmp 0x402bdb
mov eax, dword [ebx + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
sub esp, 0x18
test eax, eax
jne 0x402c00
mov eax, dword [ebx + 0x10]
test al, 1
je 0x402bf0
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
jmp 0x402bd5
mov ecx, dword [ebx + 4]
jmp 0x402b28

Function at 0x403780
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], edi
mov dword [esp + 4], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403820
mov ebx, eax
mov dword [esp + 0xc], 0x8150
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004033e0
cmp eax, 6
je 0x403800
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 0x403840
mov ebx, 1
jmp 0x4037e4
mov dword [esp + 4], 0x7df
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp], eax
call fcn.004026f0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x4037e4
Function at 0x403860
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 + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4038a8
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 0x4038cb
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4038f0
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 fcn.004026f0
jmp 0x4038d2
Function at 0x403910
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, 0x28c
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x403b18
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 [0x4156c8]
sub esp, 0x10
test eax, eax
je 0x403adc
mov edi, 1
jmp 0x4039cc
add edi, 1
cmp edi, 0x64
je 0x403b00
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x415750]
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 eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x4039c0
mov eax, dword [ebp + 0x14]
mov esi, 2
sub eax, 3
cmp eax, 8
jbe 0x403b48
lea edi, [ebp - 0x260]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403b00
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], ebx
mov ebx, 3
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.00407fb0
mov ecx, 3
mov dword [ebp - 0x248], ebx
lea edx, [ebp - 0x258]
mov dword [ebp - 0x24c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x102b
mov eax, dword [section..bss]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x415704]
mov dword [ebp - 0x26c], 1
sub esp, 0x10
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x26c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x403adc
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x26c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [eax*4 + 0x411240]
jmp 0x403a2c
Function at 0x403b60
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 esi, dword [ebp + 0x18]
test esi, esi
je 0x403c43
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403c43
lea edi, [ebp - 0x2c]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x403c30
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp + 0x14]
je 0x403cb0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.00402ad0
test eax, eax
jne 0x403c50
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, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x7e1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403cdf
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x403cd0
mov ebx, 1
jmp 0x403c01
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7de
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x403c01
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp + 4], 0x7e1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x403c01
Function at 0x4046c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x2c]
sub esp, 0x6c
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegeditFavorites
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x404710
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
mov dword [esp + 0x2c], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x4048a0
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4047a0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test ebx, ebx
je 0x4047e9
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800
mov dword [esp], ebx
call dword [0x4155f4]
mov eax, dword [ebp - 0x28]
sub esp, 0x10
test eax, eax
je 0x404880
xor edi, edi
jmp 0x4047fc
add edi, 1
cmp edi, dword [ebp - 0x28]
jae 0x404880
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x4047f0
cmp dword [ebp - 0x1c], 1
jne 0x4047f0
test ebx, ebx
je 0x4048e0
lea eax, [edi + 0x80e8]
mov dword [esp + 0xc], esi
add edi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [0x4155f4]
sub esp, 0x10
cmp edi, dword [ebp - 0x28]
jb 0x4047fc
lea esi, [esi]
nop
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x404795
test byte [0x410014], 2
je 0x404786
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegQueryInfoKey_failed:__ld_n
mov dword [esp + 8], str.add_favourite_key_items
mov dword [esp + 4], 0x410014
mov dword [esp], 1
call fcn.00404670
jmp 0x404786
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4047f0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x180
mov dword [esp], eax
call dword [0x415704]
sub esp, 0x10
jmp 0x4047f0
Function at 0x409590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea eax, [ebp - 0x2c]
sub esp, 0x5c
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x500
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
mov ebx, eax
test eax, eax
jne 0x409640
mov edi, dword fs:[0x18]
cmp dword [edi + 0x34], 0xeb
je 0x409640
test byte [0x410188], 1
je 0x40968b
mov eax, esi
call fcn.004092c0
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], str.Could_not_format_string:_le_lu__fmt_s_n
mov dword [esp + 8], 0x411b88
mov dword [esp + 4], 0x410188
mov dword [esp + 0x10], eax
mov dword [esp], 0
call fcn.00409530
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x20]
mov dword [esp], 0xfffffff5
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
call edi
lea ecx, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x409698
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x3c], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x38], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x40967c
call edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov edi, dword [ebp - 0x34]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40967c
Function at 0x409830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0xc08]
sub esp, 0xc24
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edx, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0xc], 0x600
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x4156c8]
sub esp, 0x10
test eax, eax
jne 0x409888
test byte [0x410188], 1
jne 0x4098a0
mov ebx, dword [ebp - 4]
leave
ret
lea edx, [ebp + 0xc]
mov eax, ebx
call fcn.00409590
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
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 + 4], 0x410188
mov dword [esp], 0
mov dword [esp + 0x10], eax
call fcn.00409530
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40a730
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], 0x411c28
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a810
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ebx, eax
mov dword [esp], 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 0x40a7e8
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x411d2e
call esi
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
nop
add eax, 2
cmp word [eax], 0
jne 0x40a7b0
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 sub.ucrtbase.dll_fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x411c2c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40a782
mov dword [esp], 0x411c32
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call fcn.00409830
jmp 0x40a782

Function at 0x40ad90
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 0x40ade0
cmp word [edx], 0
je 0x40ae10
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40adb0
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 0x40aded
mov eax, edx
call fcn.0040ace0
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 0x40adbd
Function at 0x40bce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40bd15
lea eax, [ebp - 0x52]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40bd20
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebp - 0x51]
xor esi, esi
mov ecx, 0x40ab00
movzx edx, byte [ebp - 0x52]
mov byte [ebp - 0x59], al
cmp dl, 0xff
jne 0x40bd49
cmp al, 0xfe
mov edi, 0x40a560
cmove ecx, edi
sete al
movzx eax, al
mov esi, eax
movzx eax, byte [ebp - 0x59]
mov dword [ebp - 0x50], ebx
lea ebx, [ebp - 0x50]
mov dword [ebp - 0x48], esi
mov dword [0x414ddc], ecx
mov dword [ebp - 0x40], 0
shl eax, 0x10
mov dword [ebp - 0x3c], 0
or eax, edx
mov edx, 0xffffffff
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov word [ebp - 0x44], dx
mov edx, 0x40a460
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x40bdca
mov edx, dword [ebp - 0x20]
mov edx, dword [edx*4 + 0x411de0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40bdc0
movzx eax, word [ebp - 0x44]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40be28
mov eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40be17
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, 1
jmp 0x40bd17
cmp ax, 3
sete al
lea esp, [ebp - 0xc]
movzx eax, al
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e0f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [0x414dec]
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edx, edx
jne 0x40e118
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x3c]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.0040c980
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret

Function at 0x40ef10
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40ef80
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x60
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40efd7
xor ecx, ecx
xor edx, edx
jmp 0x40efb9
cmp ax, 0x5c
jne 0x40f040
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40efd7
cmp ax, 9
je 0x40efc5
cmp ax, 0x20
jne 0x40efa0
test ecx, ecx
je 0x40f02b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40efb9
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40f060
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408d00
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40f028
cmp ax, 0x20
je 0x40f028
jmp 0x40efd7
cmp ax, 0x22
jne 0x40efc9
and edx, 1
jne 0x40efc9
xor ecx, 1
jmp 0x40efad
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40eff0
Function at 0x40ef80
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40ef80
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x60
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40efd7
xor ecx, ecx
xor edx, edx
jmp 0x40efb9
cmp ax, 0x5c
jne 0x40f040
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40efd7
cmp ax, 9
je 0x40efc5
cmp ax, 0x20
jne 0x40efa0
test ecx, ecx
je 0x40f02b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40efb9
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x40f060
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408d00
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40f028
cmp ax, 0x20
je 0x40f028
jmp 0x40efd7
cmp ax, 0x22
jne 0x40efc9
and edx, 1
jne 0x40efc9
xor ecx, 1
jmp 0x40efad
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x40eff0