joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406405
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1570
call fcn.0040be80
push 0x104
push 0
lea eax, [ebp - 0x1570]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1570]
push edx
call fcn.0040bd10
add esp, 8
mov dword [ebp - 0x424], 0xc
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 1
push 0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40647e
xor eax, eax
jmp 0x4065c7
push str.Cmd.exe__C
lea eax, [ebp - 0x418]
push eax
call fcn.0040bd10
add esp, 8
lea ecx, [ebp - 0x1570]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.0040bd20
add esp, 8
mov dword [ebp - 0x146c], 0x44
lea eax, [ebp - 0x146c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x142c], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1430], edx
mov word [ebp - 0x143c], 0
mov dword [ebp - 0x1440], 0x101
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x146c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40652c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4065c7
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
push 0
lea eax, [ebp - 0x1428]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x4065a9
push 0x1000
push 0
lea edx, [ebp - 0x1428]
push edx
call fcn.0040be20
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0xfff
lea ecx, [ebp - 0x1428]
push ecx
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406590
jmp 0x4065a9
lea eax, [ebp - 0x1428]
push eax
call fcn.00406033
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40654c
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4065cb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push fcn.0040660c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x406cce
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040c8aa
add esp, 8
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406e0d
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x422bf4
lea edx, [ebp - 0x414]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x406d54
xor eax, eax
jmp 0x406e12
mov edx, 1
test edx, edx
je 0x406e00
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x86c]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x422c00
lea edx, [ebp - 0x86c]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x86c]
push ecx
call fcn.0040c880
add esp, 8
mov edx, dword [ebp - 0x664]
and edx, 0x10
test edx, edx
je 0x406dcf
mov eax, dword [ebp - 0x638]
and eax, 0xffff
cmp eax, 0x2e
je 0x406dcd
lea ecx, [ebp - 0x86c]
push ecx
call fcn.00406cce
add esp, 4
jmp 0x406de1
mov edx, dword [0x427cd8]
add edx, dword [ebp - 0x644]
mov dword [0x427cd8], edx
lea eax, [ebp - 0x664]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406dfb
jmp 0x406e00
jmp 0x406d54
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x409d08
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x618]
push ecx
call fcn.0040c8aa
add esp, 8
mov dword [ebp - 0x61c], 0
jmp 0x409d3f
mov edx, dword [ebp - 0x61c]
add edx, 1
mov dword [ebp - 0x61c], edx
lea eax, [ebp - 0x618]
push eax
call fcn.0040be00
add esp, 4
cmp dword [ebp - 0x61c], eax
jge 0x409d8a
lea ecx, [ebp - 0x618]
push ecx
call fcn.0040be00
add esp, 4
sub eax, 1
sub eax, dword [ebp - 0x61c]
xor edx, edx
mov dx, word [ebp + eax*2 - 0x618]
cmp edx, 0x5c
jne 0x409d88
cmp dword [ebp - 0x61c], 0
je 0x409d88
jmp 0x409d8a
jmp 0x409d30
push 0x104
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, dword [ebp - 0x61c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040be00
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
mov eax, dword [ebp - 0x61c]
shl eax, 1
sub edx, eax
push edx
lea ecx, [ebp - 0x618]
push ecx
call fcn.0040c39a
add esp, 0xc
lea edx, [ebp - 0x618]
push edx
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x61a]
cmp ecx, 0x5c
jne 0x409e0a
lea edx, [ebp - 0x618]
push edx
call fcn.0040be00
add esp, 4
mov word [ebp + eax*2 - 0x61a], 0
push 0x427464
lea eax, [ebp - 0x410]
push eax
call fcn.0040c8aa
add esp, 8
push str.extend_file
lea ecx, [ebp - 0x410]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e53
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x410]
push edx
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x412]
cmp ecx, 0x5c
je 0x409e94
push 0x4237d0
lea edx, [ebp - 0x410]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.0040c880
add esp, 8
push 0x104
push 0
lea edx, [ebp - 0x208]
push edx
call fcn.0040be20
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040c8aa
add esp, 8
lea edx, [ebp - 0x208]
push edx
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x20a]
cmp ecx, 0x5c
jne 0x409f0a
lea edx, [ebp - 0x208]
push edx
call fcn.0040be00
add esp, 4
mov word [ebp + eax*2 - 0x20a], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409f78
mov dword [0x427cc0], 0
mov dword [0x427cc4], 0
mov dword [0x427cc8], 0
mov dword [0x4220a4], 1
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.00409f81
add esp, 8
mov dword [0x427cc0], 0
mov dword [0x427cc4], 0
mov dword [0x427cc8], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40a3b8
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4237f0
lea edx, [ebp - 0x208]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0xffffffff
je 0x40a4fa
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x664]
push eax
call fcn.0040c8aa
add esp, 8
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x664]
push edx
call fcn.0040c880
add esp, 8
mov eax, dword [ebp - 0x458]
and eax, 0x10
test eax, eax
je 0x40a4d1
push 0x4237f8
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040c1a0
add esp, 8
test eax, eax
je 0x40a4d1
push 0x4237fc
lea edx, [ebp - 0x42c]
push edx
call fcn.0040c1a0
add esp, 8
test eax, eax
je 0x40a4d1
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x86c]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x423804
lea edx, [ebp - 0x86c]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x86c]
push eax
call fcn.0040a3b8
add esp, 4
push 0x80
lea ecx, [ebp - 0x664]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x664]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a40f
mov edx, dword [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x40ad8a
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push GetSystemTime
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallWinRAR_archiver
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40adc2
xor al, al
jmp 0x40aebd
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], str.InstallLocation
mov dword [ebp - 0x14], str.UninstallString
mov dword [ebp - 0x1c], str.DisplayIcon
lea ecx, [ebp - 8]
push ecx
push 0x4278bc
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae9f
lea edx, [ebp - 8]
push edx
push 0x4278bc
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae55
lea eax, [ebp - 8]
push eax
push 0x4278bc
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ae91
push 0x4278bc
call fcn.0040c940
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0x4278bc]
cmp eax, 0x5c
je 0x40ae8f
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x4278bc], 0
jmp 0x40ae6b
jmp 0x40ae9f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40aebd
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RAR.exe
push 0x4278bc
call fcn.0040bd20
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40aec1
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov dword [ebp - 0x22c], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x40aef3
xor eax, eax
jmp 0x40b03e
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x40b039
push str.unikey.exe
lea edx, [ebp - 0x208]
push edx
call fcn.0040b090
add esp, 8
test eax, eax
je 0x40b01b
mov dword [ebp - 0x238], 0xffffffff
mov eax, dword [ebp - 0x224]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x40af63
xor eax, eax
jmp 0x40b03e
mov dword [ebp - 0x660], 0x428
lea ecx, [ebp - 0x660]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x40af98
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b03e
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x440]
push edx
call fcn.0040c1a0
add esp, 8
test eax, eax
jne 0x40b01b
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x664], eax
mov ecx, dword [ebp - 0x664]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x668], eax
cmp dword [ebp - 0x668], 0
je 0x40b01b
push 0
mov edx, dword [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x668]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40b03e
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x230], eax
jmp 0x40af0c
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496528
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push esi
push edi
lea edi, [ebp - 0x88]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4b62b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0
push 0x40
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00472c50
add esp, 0xc
mov dword [ebp - 0x70], 0
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 0x181
lea ecx, [ebp - 0x7c]
call fcn.0040f5f0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4a64e4
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00403280
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x40206d
mov word [ebp - 0x28], 0xa
jmp 0x402073
mov word [ebp - 0x28], 0
lea ecx, [ebp - 0x7c]
call fcn.0041cae0
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, esp
call fcn.00492e6b
mov esi, esp
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
call fcn.0041cae0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x4020fc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00492e6b
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x4ba4f8
call fcn.00458c70
add esp, 0x18
jmp 0x40213d
cmp dword [ebp + 0x10], 0
je 0x402136
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.00492e6b
cmp dword [ebp + 0x18], 0
je 0x402136
mov esi, esp
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x70], 0
je 0x40215d
mov esi, esp
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x6c], 0
je 0x40217d
mov esi, esp
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004023a0
mov eax, dword [ebp - 0x88]
push edx
mov ecx, ebp
push eax
lea edx, [0x4021cc]
call fcn.00492e8e
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x88
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret
Function at 0x403fa0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x403faf
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.00492e6b
pop esi
add esp, 4
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 4

Function at 0x403fe0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x403fef
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, esp
call fcn.00492e6b
pop esi
add esp, 4
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 4

Function at 0x404210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x40421f
mov esi, esp
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00492e6b
pop esi
add esp, 4
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 8

Function at 0x404260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x404278
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x404298
push 0x80004005
call fcn.00401030
xor edx, edx
jne 0x40427c
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00492e6b
lea ecx, [eax + eax + 2]
mov esi, esp
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00492e6b
pop esi
add esp, 8
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4042f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x40430e
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x40432e
push 0x80004005
call fcn.00401030
xor edx, edx
jne 0x404312
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00492e6b
add eax, 1
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x10], 1
jne 0x40433f
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00492e6b
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 8

Function at 0x4043b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push edi
push ecx
lea edi, [ebp - 0x248]
mov ecx, 0x92
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4b62b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
call fcn.0040f140
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404160
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404420
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x10]
call fcn.00403f70
mov eax, dword [ebp - 0x240]
jmp 0x4044b7
mov dword [ebp - 0x30], pe_nt_image_headers32
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp esi, esp
call fcn.00492e6b
test eax, eax
jne 0x40448f
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x10]
call fcn.004043b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x404486
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x10]
call fcn.00403f70
mov eax, dword [ebp - 0x244]
jmp 0x4044b7
mov dword [ebp - 0x30], pe_nt_image_headers32
jmp 0x404427
lea ecx, [ebp - 0x10]
call fcn.00404020
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00403fa0
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x10]
call fcn.00403f70
mov eax, dword [ebp - 0x248]
push edx
mov ecx, ebp
push eax
lea edx, [0x4044e8]
call fcn.00492e8e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472710
add esp, 0x248
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 4
Function at 0x416200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push ecx
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x41623d
jmp 0x416286
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x416273
cmp dword [ebp - 0x14], 4
je 0x416277
jmp 0x416286
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4162ac]
call fcn.00492e8e
pop eax
pop edx
pop edi
pop esi
add esp, 0x30
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 8

Function at 0x4162f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push ecx
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x41632c
jmp 0x4163cd
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
je 0x41635e
jmp 0x4163cd
mov ecx, dword [ebp + 0xc]
call fcn.004025c0
mov eax, dword [ebp - 0x20]
shr eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004026a0
mov dword [ebp - 0x28], eax
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00492e6b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4163ae
jmp 0x4163cd
mov ecx, dword [ebp - 0x20]
shr ecx, 1
mov edx, dword [ebp - 0x28]
mov word [edx + ecx*2], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040f7b0
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4163f4]
call fcn.00492e8e
pop eax
pop edx
pop edi
pop esi
add esp, 0x28
cmp ebp, esp
call fcn.00492e6b
mov esp, ebp
pop ebp
ret 8