joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bd10
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push esi
mov dword [esp + 8], 3
mov dword [esp + 0x18], 0
mov esi, str.SYSTEMCurrentControlSetServices360AvFlt
call fcn.00429b30
test al, al
je 0x42bd37
mov esi, 0x4de758
mov ecx, dword [esp + 0x20]
call fcn.0042bc40
lea eax, [esp + 4]
push eax
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42be0b
mov ecx, dword [esp + 4]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push str.Start
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x42bde2
push str.DeleteFlag
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x42bda6
pop edi
mov al, 1
pop esi
add esp, 0x18
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push str.DeleteFlag
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x42bdea
pop edi
xor al, al
pop esi
add esp, 0x18
ret
push 4
lea eax, [esp + 0x20]
push eax
push 4
push str.DeleteFlag
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
pop edi
sete al
pop esi
add esp, 0x18
ret
xor al, al
pop esi
add esp, 0x18
ret
Function at 0x42c030
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004a1b30
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x14
mov ebx, 0x1770
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x1c]
push eax
call fcn.0042bea0
mov ecx, dword [esp + 0x20]
add esp, 4
cmp ecx, 1
jne 0x42c07f
mov dword [esp + 0x18], 0x14
jmp 0x42c0a0
cmp ecx, 2
jne 0x42c08e
mov dword [esp + 0x18], 0x1e
jmp 0x42c09b
cmp ecx, 4
jl 0x42c0a0
mov dword [esp + 0x18], 0x28
mov ebx, 0xfa0
cmp eax, 0xffffffff
je 0x42c20b
push 0xffc
mov dword [esp + 0x24], ebp
push ebp
cmp eax, dword [esp + 0x20]
jae 0x42c17b
lea ecx, [esp + 0x2c]
push ecx
call fcn.004a0bd0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1c], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x42c0ea
xor edi, edi
jmp 0x42c0f1
mov edi, dword [esp + 0x10]
shr edi, 2
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffc
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x2c], ebp
call fcn.004a0bd0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1c], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x42c12f
xor esi, esi
jmp 0x42c136
mov esi, dword [esp + 0x10]
shr esi, 2
cmp edi, esi
jne 0x42c13e
inc dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042bea0
add esp, 4
cmp eax, dword [esp + 0x18]
jb 0x42c216
cmp dword [esp + 0x14], 2
je 0x42c216
cmp dword [esp + 0x1c], 4
jl 0x42c05f
cmp edi, esi
jne 0x42c05f
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x2c]
push edx
call fcn.004a0bd0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x1c], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x42c1a8
xor esi, esi
jmp 0x42c1af
mov esi, dword [esp + 0x10]
shr esi, 2
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffc
lea edx, [esp + 0x28]
push ebp
push edx
mov dword [esp + 0x2c], ebp
call fcn.004a0bd0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x1c], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x42c1f0
mov eax, dword [esp + 0x10]
shr eax, 2
cmp esi, eax
jne 0x42c1f8
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jne 0x42c05f
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.004a0bd0
mov eax, dword [ebx]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push edi
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esi]
mov ebp, dword [esi - 0xc]
lea ebp, [ebp + ebp + 2]
test eax, eax
jne 0x42c7ad
mov ecx, esi
lea eax, [esp + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42c78b
test dx, dx
je 0x42c787
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42c78b
add eax, 4
add ecx, 4
test dx, dx
jne 0x42c765
xor eax, eax
jmp 0x42c790
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42c7ad
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x210
ret
mov edx, dword [ebx]
push ebp
push esi
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x214]
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004a0e91
add esp, 0x210
ret

Function at 0x42c7e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0
push eax
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c81e
mov eax, dword [esp]
cmp eax, dword [esp + 0xc]
jne 0x42c81e
xor al, al
add esp, 8
ret
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
add esp, 8
ret
Function at 0x42cc70
Capabilities:
Delete registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
or edx, 2
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ccc3
mov esi, dword [esi + 8]
mov ecx, dword [esp + 4]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4cb7c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0xc]
call fcn.0042d010
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.004044f0
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d1a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42d1d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
shr eax, 4
and al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x42d200
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4cf5b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x42d249
call ebx
cmp eax, 5
jmp 0x42d24e
shr eax, 4
test al, 1
je 0x42d2e1
push 0x4e0c60
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00406480
mov ecx, dword [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x38], 0
call fcn.00413670
add esp, 0x18
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d2a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call edi
or edi, 0xffffffff
cmp eax, edi
jne 0x42d2b9
call ebx
cmp eax, 5
jmp 0x42d2be
shr eax, 4
test al, 1
je 0x42d2e5
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x42d2e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x42d351
mov eax, dword [ebp]
mov ecx, dword [esp + 0x2c]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42d32c
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 4]
call fcn.00413880
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42d2e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x42d351
call ebx
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42d34f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x42d390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ca376
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004a0bd0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4e35e0
push str.SOFTWAREMozillaFirefoxExtensions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42d4bf
cmp dword [esp + 8], 1
jne 0x42d4bf
lea edx, [esp + 0x14]
push edx
call fcn.004063b0
push str.safemonwebprotection_firefox
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x23c], 0
call fcn.00406480
add esp, 0x10
mov byte [esp + 0x22c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d479
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004a2283
add esp, 8
test eax, eax
mov dword [esp + 0x22c], 0xffffffff
mov eax, dword [esp + 0xc]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d4bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x42d4c1
xor al, al
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a0e91
add esp, 0x228
ret
Function at 0x42d760
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4ca332
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [esp + 0x430], 0
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x18], esi
mov word [esp + 0x1c], ax
call fcn.004a0bd0
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404030
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x222]
mov dword [esp + 0x434], 0
push edx
mov dword [esp + 0x10], 1
mov word [esp + 0x224], cx
call fcn.004a0bd0
add esp, 0xc
push 0x10
push str.MozillaFirefox
mov ecx, esi
call fcn.004057c0
push str.profiles.ini
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00406480
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x220]
push ecx
push 0x4e0c80
push 0x4e0bc8
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d882
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x218]
push ecx
push 0x4e3724
push esi
call fcn.00429880
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x42c
ret
Function at 0x42e230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce2f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 4], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], 0
mov eax, dword [edx]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0x34], 1
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x38], 2
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x58]
mov byte [esp + 0x3c], 3
mov eax, dword [edx]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x40], 4
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x44], 5
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x48], 6
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0042ddd0
add esp, 0x28
mov byte [esp + 0x2c], 7
cmp dword [eax + 0x18], 8
jb 0x42e337
mov eax, dword [eax + 4]
jmp 0x42e33a
add eax, 4
push eax
lea ecx, [esi + 0x20]
call fcn.00404030
cmp dword [esp + 0x20], 8
jb 0x42e357
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0049c830
add esp, 4
mov eax, esi
mov byte [esi + 0x24], 0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0x20
Function at 0x42e470
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ce278
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
lea ecx, [esi + 4]
push edx
mov dword [esi], eax
call fcn.004044f0
mov eax, dword [esp + 0x3c]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.004044f0
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0xc]
push edx
call fcn.004044f0
mov eax, dword [esp + 0x44]
lea ecx, [esi + 0x10]
push eax
call fcn.004044f0
mov edx, dword [esp + 0x48]
lea ecx, [esi + 0x14]
push edx
call fcn.004044f0
mov eax, dword [esp + 0x4c]
lea ecx, [esi + 0x18]
push eax
call fcn.004044f0
mov edx, dword [esp + 0x50]
lea ecx, [esi + 0x1c]
push edx
call fcn.004044f0
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042ddd0
add esp, 0xc
xor edx, edx
mov dword [esp + 0x30], edx
cmp dword [eax + 0x18], 8
jb 0x42e518
mov eax, dword [eax + 4]
jmp 0x42e51b
add eax, 4
lea ecx, [esi + 0x20]
cmp eax, edx
je 0x42e536
mov edx, eax
lea ebp, [edx + 2]
mov di, word [edx]
add edx, 2
test di, di
jne 0x42e527
sub edx, ebp
sar edx, 1
push edx
push eax
call fcn.00404630
cmp dword [esp + 0x24], 8
jb 0x42e56c
mov edx, dword [esp + 0x10]
push edx
call fcn.0049c830
mov al, byte [esp + 0x58]
add esp, 4
mov byte [esi + 0x24], al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x28
ret 0x20
mov cl, byte [esp + 0x54]
mov byte [esi + 0x24], cl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x28
ret 0x20
Function at 0x42e5f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push edi
mov ebx, ecx
mov byte [esp + 0x13], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x42e637
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004a0e91
add esp, 0x94
ret
push ebp
push esi
call fcn.004a1870
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42e6c4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42e6c4
test ebx, ebx
je 0x42e6c4
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [esp + 0x28]
push 0x80
push eax
call fcn.0041b220
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42e6c4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa4]
push ecx
push edx
push ebx
call fcn.00406240
mov bl, 1
test eax, eax
jge 0x42e6c8
mov bl, byte [esp + 0xf]
push ebp
call fcn.004a0db7
mov ecx, dword [esp + 0xa0]
add esp, 4
pop ebp
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004a0e91
add esp, 0x94
ret

Function at 0x42e6f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e756
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.DefaultBrowserLockEx2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42e75c
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 4], eax
setne al
add esp, 0x10
ret
Function at 0x4308e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ce23b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
xor eax, eax
push 0x4e0c80
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004069f0
mov dword [esp + 0x244], edi
cmp esi, 4
jne 0x430957
lea ecx, [esp + 0x14]
push ecx
call fcn.00412900
jmp 0x430966
cmp esi, 2
jne 0x430969
lea edx, [esp + 0x14]
push edx
call fcn.00412ab0
add esp, 4
cmp dword [esp + 0x28], edi
jne 0x430981
cmp dword [esp + 0x2c], 8
jb 0x4309fc
mov eax, dword [esp + 0x18]
push eax
jmp 0x4309f4
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x430990
lea eax, [esp + 0x18]
push str.setdefbrowser.dll
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4309e8
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00425a00
add esp, 4
test al, al
je 0x4309e8
mov eax, dword [esp + 0x10]
cmp eax, 2
jbe 0x4309df
lea ecx, [esp + 0x14]
call fcn.004050c0
xor al, al
jmp 0x4309fe
jne 0x4309e8
cmp dword [esp + 0xc], 0x19
jae 0x4309d2
cmp dword [esp + 0x2c], 8
jb 0x4309fc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0049c830
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x23c
ret
Function at 0x434cc0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x434ce0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x434cf4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x434d20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d03a5
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esi], vtable.TS::Registry::CUserRegHelper.0
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x14], 1
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x14], 2
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x1c], 3
call fcn.004395e0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x30]
push edx
mov byte [esp + 0x1c], 4
call fcn.004395e0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
lea ecx, [esi + 0x50]
push edx
mov byte [esp + 0x1c], 5
call fcn.004395e0
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 6
call fcn.0040b990
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 7
call fcn.00437af0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc