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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cedb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
push 0x426074
call fcn.0040ab90
push 0x1e
push str.IgnoreWebResourceInstallErrors
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0040af20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40db95
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40db95
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41e958
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40db88
test dx, dx
je 0x40db84
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40db88
add eax, 4
add ecx, 4
test dx, dx
jne 0x40db62
xor eax, eax
jmp 0x40db8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40db95
xor esi, esi
jmp 0x40dba7
cmp dword [esi + 0x10], 0
je 0x40dba4
push esi
call fcn.0040e760
add esp, 4
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 4
cmp edx, 8
jb 0x40dbf0
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbe6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40dbe6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40dd40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426074
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.0040ab90
push 0xb
push str.WebResource
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.0040af20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ddcd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x40de10
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40de06
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40ebe0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ebf1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ec09
test al, 0x10
je 0x40ec09
mov eax, 1
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40ec11
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40ec2e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ec45
test al, 0x10
jne 0x40ec45
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ec50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d06b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push 0x426074
call fcn.0040ab90
push 0xb
push str.InstallPath
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0040af20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40edb2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40eda6
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x41e698
mov word [esi], ax
call fcn.00409e00
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x40ed8a
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee2f
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409e00
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 2
cmp edx, 8
jb 0x40ed8a
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ed80
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x40efb0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d102
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x238], 0
movups xmm0, xmmword [0x41e838]
mov ax, word [0x41e850]
push 0x208
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x234]
movups xmmword [ebp - 0x2c], xmm0
push 0
movq xmm0, qword [0x41e848]
push eax
mov dword [ebp - 0x23c], esi
movq qword [ebp - 0x1c], xmm0
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x234]
push eax
push 0x104
mov dword [ebp - 0x238], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40f0d8
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f066
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409e00
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f090
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040af20
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f0b5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f0c5
test al, 0x10
jne 0x40f0d8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f0cf
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40f570
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d1a1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 0x10
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
movups xmmword [ebp - 0x20], xmm0
call sub.ADVAPI32.dll_SystemFunction036
push esi
mov ecx, edi
call fcn.0040ab90
push 1
push 0x41e834
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 1
call fcn.0040af20
xor eax, eax
mov dword [ebp - 0x28], 0
push eax
push 0x41e698
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00409e00
mov ecx, 0x1a
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x44], ecx
nop dword [eax]
movzx eax, byte [ebp + esi - 0x20]
xor edx, edx
div ecx
mov edi, dword [ebp - 0x24]
add dl, 0x41
movsx ax, dl
mov edx, dword [ebp - 0x28]
movzx ecx, ax
cmp edx, edi
jae 0x40f65a
lea eax, [edx + 1]
cmp edi, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x40f66c
push ecx
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0x40]
push 1
call fcn.0040d8a0
mov ecx, dword [ebp - 0x44]
inc esi
cmp esi, 0x10
jl 0x40f620
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040af20
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 2
cmp edx, 8
jb 0x40f6d1
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f6c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40f7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cedb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push 0x426074
call fcn.0040ab90
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x104
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0x18
lea ecx, [ebp - 0x234]
push 0xb
push str.WebResource
call fcn.0040af20
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x238]
push 0
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f943
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x40f892
push 4
lea eax, [ebp - 0x21c]
push eax
push 4
push 0
push str.irandom
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f937
mov eax, dword [esi + 4]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x40f8c2
push 4
lea eax, [ebp - 0x21c]
push eax
push 4
push 0
push str.iUpdateId
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f937
mov ecx, 0x41e95c
lea eax, [ebp - 0x218]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f8f6
test dx, dx
je 0x40f8f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f8f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f8d0
xor eax, eax
jmp 0x40f8fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f924
push 0x208
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.tWebResourceInstallPath
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f937
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40f945
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 5
cmp edx, 8
jb 0x40f98e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f984
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f984
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40faf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d1db
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x23c]
push 0x426074
call fcn.0040ab90
push 0xb
push str.WebResource
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.0040af20
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0xffffffff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 4
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x240]
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fc7f
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.irandom
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or esi, 0xffffffff
test eax, eax
lea eax, [ebp - 0x220]
mov ecx, esi
cmove ecx, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x21c]
mov dword [edi], ecx
push eax
push 0
push 0
push str.iUpdateId
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
cmove esi, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [edi + 4], esi
push eax
push 0
push 0
push str.tWebResourceInstallPath
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [edi + 8]
test eax, eax
jne 0x40fc62
lea eax, [ebp - 0x218]
mov ecx, eax
sub edx, ecx
nop word [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40fc50
jmp 0x40fc73
push 5
push 0x41e95c
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x228]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x40fcc8
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fcbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fcbe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40fcf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d218
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426074
lea ecx, [ebp - 0x2c]
call fcn.0040ab90
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x2710
idiv ecx
push 0xb
inc edx
lea ecx, [ebp - 0x2c]
push str.WebResource
mov dword [ebp - 0x14], edx
call fcn.0040af20
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
push 0
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40fdb0
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.irandom
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
test eax, eax
je 0x40fdeb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 3
cmp edx, 8
jb 0x40fe02
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fdf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40fdf8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40fdb2
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40fe20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d248
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426074
lea ecx, [ebp - 0x28]
call fcn.0040ab90
push 0xb
push str.WebResource
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040af20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push 0
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40febc
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.iUpdateId
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
test eax, eax
je 0x40fef7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp edx, 8
jb 0x40ff0e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ff04
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40febe
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x40ff30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d278
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0x426074
call fcn.0040ab90
cmp dword [esi + 0x14], 8
mov edi, esi
mov dword [ebp - 4], 0
jb 0x40ff7b
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push 0xb
push str.WebResource
lea esi, [eax + eax]
call fcn.0040af20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push 0
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ffdb
push esi
push edi
push 1
push eax
push str.tWebResourceInstallPath
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
test eax, eax
je 0x410016
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp edx, 8
jb 0x41002d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410023
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410023
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40ffdd
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret
Function at 0x410780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426074
lea ecx, [ebp - 0x234]
xor esi, esi
call fcn.0040ab90
push 0xb
push str.WebResource
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], esi
call fcn.0040af20
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push 1
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410857
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push str.irandom
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x238]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x4108a0
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410896
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410896
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ae54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041adc0
mov esp, ebp
pop ebp
ret