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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20a
call fcn.0041b8b8
push 0x20a
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 8], 0x20a
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b088
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Shell
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b077
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b060
sub ecx, edx
sar ecx, 1
cmp ecx, 0x208
jb 0x40b07f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0041b8c1
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041b330
mov esp, ebp
pop ebp
ret

Function at 0x40b0b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20008
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b181
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40b178
push edi
push dword [ebp - 0x10]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40b177
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b167
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40b167
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4263d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 0x40
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0041b38f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.JSON
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dce0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e350
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00412ac2
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004125e1
mov ebx, eax
cmp edi, ebx
je 0x40dda7
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.0040b5f0
push dword [ebp - 0x14]
mov dword [esi + 4], esi
mov ecx, edi
mov dword [esi], esi
mov dword [esi + 8], esi
push dword [edi]
mov dword [edi + 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.0040d990
mov ecx, eax
mov eax, dword [edi]
mov dword [eax + 4], ecx
mov esi, dword [edi]
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x40dda0
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x40dd7c
nop dword [eax + eax]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40dd70
mov dword [esi], edx
mov edx, dword [edi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x40dd9b
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x40dd90
mov dword [edx + 8], ecx
jmp 0x40dda7
mov dword [esi], esi
mov ecx, dword [edi]
mov dword [ecx + 8], ecx
lea ecx, [ebp - 0x44]
call fcn.0040b870
lea ecx, [ebp - 0x2c]
call fcn.00408650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d26b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263d0]
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 0x426078
call fcn.0040b680
push 0x1e
push str.IgnoreWebResourceInstallErrors
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0040ba30
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 0x40e885
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 0x40e885
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41ec80
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e878
test dx, dx
je 0x40e874
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e878
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e852
xor eax, eax
jmp 0x40e87d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e885
xor esi, esi
jmp 0x40e897
cmp dword [esi + 0x10], 0
je 0x40e894
push esi
call fcn.0040f400
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x40e8bc
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret

Function at 0x40ea10
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426078
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.0040b680
push 0xb
push str.WebResource
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.0040ba30
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 0x40ea9d
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 ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x40eab9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x40f860
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 0x40f871
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f889
test al, 0x10
je 0x40f889
mov eax, 1
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40f891
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

Function at 0x40f8a0
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 0x40f8ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f8c5
test al, 0x10
jne 0x40f8c5
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263d0]
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 0x426078
mov dword [ebp - 0x21c], esi
call fcn.0040b680
push 0xb
push str.InstallPath
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0040ba30
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 0x40f9e3
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 0x40f9d7
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x41e948
mov word [esi], ax
call fcn.00409fa0
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x40fa43
inc ecx
push ecx
jmp 0x40fa32
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 0x40fa00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409fa0
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 2
cmp eax, 8
jb 0x40fa43
inc eax
push eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x410390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d51b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263d0]
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 0x426078
call fcn.0040b680
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.0040ba30
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 0x410533
mov eax, dword [esi]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x410482
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 0x410527
mov eax, dword [esi + 4]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x4104b2
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 0x410527
mov ecx, 0x41ec84
lea eax, [ebp - 0x218]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4104e6
test dx, dx
je 0x4104e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4104e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4104c0
xor eax, eax
jmp 0x4104eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x410514
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 0x410527
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x410535
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x41055a
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x410700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d55b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4263d0]
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 0x426078
call fcn.0040b680
push 0xb
push str.WebResource
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.0040ba30
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 0x41088f
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 0x410872
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 0x410860
jmp 0x410883
push 5
push 0x41ec84
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 eax, dword [ebp - 0x228]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x4108b4
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x4108e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d598
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426078
lea ecx, [ebp - 0x2c]
call fcn.0040b680
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.0040ba30
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 0x4109a0
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 0x4109da
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x4109be
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x4109a2

Function at 0x4109f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426078
lea ecx, [ebp - 0x28]
call fcn.0040b680
push 0xb
push str.WebResource
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040ba30
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 0x410a8c
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 0x410ac6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x410aaa
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x410a8e
Function at 0x410ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4263d0]
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 0x426078
call fcn.0040b680
cmp dword [esi + 0x14], 8
mov edi, esi
mov dword [ebp - 4], 0
jb 0x410b2b
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push 0xb
push str.WebResource
add esi, esi
call fcn.0040ba30
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 0x410b8a
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 0x410bc5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x410ba8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x410b8c

Function at 0x4112d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d51b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x426078
lea ecx, [ebp - 0x234]
xor esi, esi
call fcn.0040b680
push 0xb
push str.WebResource
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], esi
call fcn.0040ba30
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 0x4113a7
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 ecx, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x4113cc
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a160
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.0041b330
mov esp, ebp
pop ebp
ret