joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404830
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x234]
push esi
push edi
push ecx
push 0xf
mov dword [eax], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea edx, [esp + 0xc]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x224
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4049d6
mov eax, dword [esp + 0x238]
push ebx
push ebp
lea ebx, [eax + 0x100]
or ecx, 0xffffffff
mov edi, str.NULL
xor eax, eax
lea edx, [ebx - 0x100]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x20]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
mov dword [ebx + 0x40], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
cmp eax, 0xffff
rep movsb byte es:[edi], byte [esi]
jne 0x404959
mov edi, 0x48bb58
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404968
push eax
push 0x48bb44
push ebx
call fcn.0047a8f8
add esp, 0xc
mov eax, dword [esp + 0x28]
push eax
push 0x48bb40
push ebp
call fcn.0047a8f8
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0x140]
mov dword [ebx + 0x40], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x244]
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x44]
add ebx, 0x244
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, dword [esp + 0x10]
inc edi
mov dword [eax], edi
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x404891
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
cmp esi, 0xffffffff
je 0x4049e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, 1
pop esi
add esp, 0x228
ret
Function at 0x405580
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push ebp
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x4055bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___failed.err_d._n
call fcn.0047a8c7
add esp, 8
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4055e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___failed.err_d._n
call fcn.0047a8c7
add esp, 8
jmp 0x4055ee
push str.Service_start_pending._n
call fcn.0047a8c7
add esp, 4
lea edx, [esp + 4]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x405612
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus___failed.err_d._n
call fcn.0047a8c7
add esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [esp + 0x24]
mov esi, eax
cmp dword [esp + 0x14], 2
jne 0x40568c
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x405645
mov edx, 0x3e8
jmp 0x405652
cmp edx, 0x2710
jbe 0x405652
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40568c
cmp dword [esp + 0x24], ebx
jbe 0x405679
call edi
mov ebx, dword [esp + 0x24]
mov esi, eax
jmp 0x405685
call edi
mov ecx, dword [esp + 0x28]
sub eax, esi
cmp eax, ecx
ja 0x40568c
cmp dword [esp + 0x14], 2
je 0x40562a
cmp dword [esp + 0x14], 4
jne 0x4056b8
push str.StartService_SUCCESS._n
call fcn.0047a8c7
add esp, 4
mov esi, 1
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x1c
ret 8

Function at 0x4056e0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 1
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x405712
ret 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret 0xc

Function at 0x405730
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x405756
pop esi
add esp, 0x1c
ret 8
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x422f40
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push 0
push 0
push 0x41b540
push 0
push 0
call esi
test eax, eax
jne 0x422f85
push str.CreateThread__srvThreadfunc_sys_monitor_failed._n
call fcn.0047a8c7
add esp, 4
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x41b540
push 0
push 0
call esi
test eax, eax
je 0x422f8e
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x423230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4837ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2030c
call fcn.0047bda0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.00422f40
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x422fa0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x57d040], eax
jne 0x4232d4
push str.CreateThread_failed._n
call fcn.0047a8c7
add esp, 4
lea ecx, [ebp - 0x2031c]
call fcn.00404aa0
lea ecx, [ebp - 0x2031c]
mov byte [ebp - 4], 1
call fcn.00404e90
cmp eax, ebx
jne 0x4232e7
lea ecx, [ebp - 0x2031c]
call fcn.00404e90
cmp eax, ebx
jne 0x4232e7
push str.CRegWatch::InitEx___failed__n
call fcn.0047a8c7
add esp, 4
lea ecx, [ebp - 0x2031c]
mov byte [ebp - 4], bl
call fcn.00404e00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2031c]
call fcn.004057c0
jmp 0x4232c6
Function at 0x423310
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20c
push ebp
push edi
push 0xffffffffffffffff
push str..PipeSysProcEvent
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x423346
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitNamedPipe_failed_with_error__d_n
call fcn.0047a8c7
add esp, 8
pop edi
pop ebp
add esp, 0x20c
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..PipeSysProcEvent
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x423387
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with_error__d_n
call fcn.0047a8c7
add esp, 8
pop edi
pop ebp
add esp, 0x20c
ret
mov edi, str.get_proc_data
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
lea eax, [esp + 0x10]
dec ecx
push eax
push ecx
push str.get_proc_data
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4233bd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
add esp, 0x20c
ret
mov ecx, dword [esp + 0xc]
push ebx
push esi
push ecx
push str.Wrote__d_bytes
call fcn.0047a8c7
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x124]
push 0x100
push eax
push ebp
call ebx
test eax, eax
jle 0x4233d7
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.end_data
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov byte [esp + ecx + 0x24], 0
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x42348b
mov edx, dword [0x57d02c]
lea edi, [esp + 0x1c]
mov esi, edx
or ecx, 0xffffffff
shl esi, 8
xor eax, eax
add esi, 0x541c68
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov dword [0x57d030], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
cmp edx, 0x3c
mov dword [0x57d02c], edx
rep movsb byte es:[edi], byte [esi]
jne 0x4233d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20c
ret
Function at 0x423a20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wintrust.dll
mov dword [esi], 0
mov byte [esi + 0xc], 0
call edi
push str.crypt32.dll
mov dword [esi + 4], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x423b70
test eax, eax
je 0x423b70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertDuplicateCertificateContext
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.CertCompareCertificate
push eax
call edi
mov ecx, dword [esi + 8]
push 0x49765c
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.WinVerifyTrust
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.WTHelperGetProvSignerFromChain
push eax
call edi
mov ecx, dword [esi + 4]
push str.WTHelperProvDataFromStateData
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 4]
push str.WTHelperGetProvCertFromChain
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.CryptCATAdminAcquireContext
push eax
call edi
mov ecx, dword [esi + 4]
push str.CryptCATAdminCalcHashFromFileHandle
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 4]
push str.CryptCATAdminEnumCatalogFromHash
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 4]
push str.CryptCATCatalogInfoFromContext
push eax
call edi
mov ecx, dword [esi + 4]
push str.CryptCATAdminReleaseCatalogContext
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 4]
push str.CryptCATAdminReleaseContext
push edx
mov dword [esi + 0x3c], eax
call edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x40], eax
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x423b70
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x423b70
test eax, eax
je 0x423b70
mov byte [esi + 0xc], 1
mov eax, esi
pop edi
pop esi
ret
mov ecx, 0x6308e8
jmp 0x423a20
Function at 0x4245a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push str.c:endpcache_regMonitor_log.txt
call fcn.004246a0
add esp, 4
cmp eax, 0x100000
jbe 0x4245fc
cmp eax, 0xffffffff
je 0x4245fc
push 0x80
push str.c:endpcache_regMonitor_log.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcache_regMonitor_log.txt
call fcn.0047c159
add esp, 4
push str.c:endpcache_regService_log.txt
call fcn.004246a0
add esp, 4
cmp eax, 0x100000
jbe 0x424632
cmp eax, 0xffffffff
je 0x424632
push 0x80
push str.c:endpcache_regService_log.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcache_regService_log.txt
call fcn.0047c159
add esp, 4
push str.c:endpcacheendpup.txt
call fcn.004246a0
add esp, 4
cmp eax, 0x80000
jbe 0x424668
cmp eax, 0xffffffff
je 0x424668
push 0x80
push str.c:endpcacheendpup.txt
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.c:endpcacheendpup.txt
call fcn.0047c159
add esp, 4
call fcn.00423230
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4297f0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4838b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0xa0]
mov dword [ebp - 0xa4], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x4298fa
mov edi, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.srvcomment
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00435a90
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jg 0x429949
lea eax, [ebp - 0x334]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [ebp + 8]
push 0x10
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4298e5
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.srvcomment
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00435a90
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x429963
push 0x40
push edx
call fcn.00483565
mov edx, dword [ebp + 8]
add esp, 4
push eax
push edx
call fcn.0047b120
add esp, 0xc
jmp 0x4298e5
lea eax, [ebp - 0x334]
jmp 0x4298a7
Function at 0x429da0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
push esi
push eax
call fcn.00483565
push eax
lea ecx, [esp + 0xc]
push 0x48b2f4
push ecx
call fcn.0047a8f8
lea edx, [esp + 0x14]
push edx
call fcn.00483565
push eax
lea eax, [esp + 0x11c]
push str._s_temp
push eax
call fcn.0047a8f8
add esp, 0x20
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x429e0b
or eax, 0xffffffff
pop esi
add esp, 0x200
ret
mov edx, dword [0x65cd54]
push ebx
mov ebx, edx
push edi
shl ebx, 8
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x5f1a50
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
pop edi
cmp edx, 0x14
mov dword [0x65cd54], edx
pop ebx
jne 0x429e5a
mov dword [0x65cd54], 0
mov eax, 1
pop esi
add esp, 0x200
ret

Function at 0x429f20
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0x100
push 0
push eax
call fcn.0047c2ae
add esp, 0xc
cmp eax, 0xffffffff
je 0x429f48
push eax
call fcn.0047c183
add esp, 4
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x429f5e
cmp eax, 3
je 0x429f5e
mov eax, 1
ret
or eax, 0xffffffff
ret
Function at 0x429f70
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x298
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push str.exefile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x429fa5
or eax, 0xffffffff
add esp, 0x298
ret
push esi
lea ecx, [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
xor esi, esi
push edx
push eax
push esi
push esi
push ecx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], 1
call edi
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa0]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
push esi
push edx
call edi
test eax, eax
jne 0x42a0a4
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x20]
push eax
push 0x48b2f4
push ecx
call fcn.0047a8f8
lea edx, [esp + 0x2c]
push 0x49bccc
push edx
call fcn.0047bec0
add esp, 0x14
test eax, eax
je 0x42a040
lea eax, [esp + 0x20]
push 0x49bd00
push eax
call fcn.0047bec0
add esp, 8
test eax, eax
jne 0x42a045
mov esi, 1
lea ecx, [esp + 0x20]
push 0x48b7ec
push ecx
call fcn.0047bec0
add esp, 8
test eax, eax
je 0x42a060
mov esi, 1
lea edx, [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1a8]
push str._s_1_s__
push ecx
mov byte [esp + 0x1c], 0x22
mov byte [esp + 0x1d], 0
call fcn.0047a8f8
lea edx, [esp + 0x30]
lea eax, [esp + 0x1b0]
push edx
push eax
call fcn.0047fde0
add esp, 0x18
test eax, eax
jne 0x42a0a4
cmp esi, 1
jne 0x42a0f7
lea ecx, [esp + 0xc]
mov al, 0x25
push ecx
mov byte [esp + 0x10], 0x22
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x13], 0x22
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0
call fcn.00483565
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x298
ret
Function at 0x42a110
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push str.piffile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42a13f
or eax, 0xffffffff
add esp, 0x10
ret
mov cl, 0x22
push esi
mov byte [esp + 8], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 8]
push edi
mov al, 0x25
push ecx
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0
call fcn.00483565
mov edx, dword [esp + 0xc]
add esp, 4
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret

Function at 0x42a1c0
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push str.scrfile_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42a1ef
or eax, 0xffffffff
add esp, 0x10
ret
push esi
lea ecx, [esp + 8]
push edi
mov al, 0x22
push ecx
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0x25
mov byte [esp + 0x12], 0x31
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x20
mov byte [esp + 0x15], 0x2f
mov byte [esp + 0x16], 0x53
mov byte [esp + 0x17], 0
call fcn.00483565
mov edx, dword [esp + 0xc]
add esp, 4
mov esi, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret