joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407750
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637700
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7808
call fcn.00616f00
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x7818], esi
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00615eb0
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x2b7c], 0
je 0x4077ee
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x2b78]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x407802
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.004072e0
add esp, 0xc
jmp 0x407802
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x2b78]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x2800
lea ecx, [ebp - 0x2814]
push ecx
mov ecx, esi
call fcn.00407460
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret

Function at 0x408b90
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x408bf7
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005e9aa7
mov edi, eax
add esp, 4
test edi, edi
je 0x408bf0
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x408be7
mov ecx, dword [esp + 0x18]
push edi
call fcn.004017f0
mov ebp, 1
push edi
call fcn.005e9ab2
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x408cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x646338
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push esi
call fcn.005ad890
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00401980
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408d2e
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.006157d3
add esp, 0x1c
ret 8

Function at 0x40c1b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6381f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7804
call fcn.00616f00
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00615eb0
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x588], 0
je 0x40c248
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x584]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c25c
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.004072e0
add esp, 0xc
jmp 0x40c25c
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x584]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x2814]
push ecx
push 0x66dea8
lea edx, [esi + 0x50c]
push edx
call fcn.00402f70
add esp, 0xc
mov ecx, esi
call fcn.0040bc80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret
Function at 0x40d250
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x6382e8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x74]
call fcn.0040cf30
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0xc8]
cmp edi, dword [eax + 0x1c]
jge 0x40d3e5
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d110
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 4]
push eax
push 0x66fcc0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x74]
call fcn.0040cf10
mov ebx, eax
inc dword [ebp - 0x18]
push 0x2b4
push 0
lea ecx, [ebp]
push ecx
call fcn.00615eb0
add esp, 0xc
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d110
mov eax, dword [eax]
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 0x74]
call fcn.0040ced0
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d110
cmp dword [eax + 8], 0
mov eax, 0x7542d4
jne 0x40d37f
mov eax, 0x7542d8
mov eax, dword [eax]
push eax
push ebx
push 1
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cf70
add esp, 0x10
mov dword [ebp - 0x7c], 2
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d110
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push 0x1074
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
lea ecx, [esi + 0x74]
call fcn.0040cef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
inc edi
jmp 0x40d29e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x2b8
mov esp, ebp
pop ebp
ret
Function at 0x40d540
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638338
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.005eb78c
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
call fcn.004583e0
add esp, 4
cmp dword [0x752d08], ebx
je 0x40d59e
push 0x129
push esi
mov ecx, 0x752cc8
call fcn.004deca0
push 0x160
push ebx
lea eax, [ebp - 0x198]
push eax
call fcn.00615eb0
add esp, 0xc
push 0x4011
push 0x160
lea ecx, [ebp - 0x198]
push ecx
push 0x80
push 0x66fd18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esi + 0x74]
push eax
push 1
push 0x1003
mov ecx, edi
call fcn.004015b0
push 0x21
mov ecx, edi
call fcn.0040cf50
mov byte [ebp - 0x1a4], bl
mov eax, 0x60
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 1
mov eax, dword [0x752d00]
push eax
mov ecx, dword [0x7542c8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401980
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x40d635
lea eax, [ebp - 0x1c]
push eax
push 0xbe
lea ecx, [ebp - 0x1a4]
call fcn.0040d020
push eax
push ebx
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cde0
add esp, 0x10
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 2
mov ecx, dword [0x752d00]
push ecx
mov edx, dword [0x7542cc]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401980
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x40d687
lea eax, [ebp - 0x34]
push eax
push 0x6e
lea ecx, [ebp - 0x1a4]
call fcn.0040d020
push eax
push 1
mov eax, dword [esi + 0x94]
push eax
call fcn.0040cde0
add esp, 0x10
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 3
mov edx, dword [0x752d00]
push edx
mov eax, dword [0x7542d0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401980
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40d6d6
lea eax, [ebp - 0x28]
push eax
push 0x12c
lea ecx, [ebp - 0x1a4]
call fcn.0040d020
push eax
push 2
mov ecx, dword [esi + 0x94]
push ecx
call fcn.0040cde0
add esp, 0x10
mov ecx, esi
call fcn.0040d250
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00401210
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret
Function at 0x40d8d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 0x14]
push 1
xor esi, esi
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d925
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d925
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x40d934
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x40da20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x63836b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40db6f
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x40db6f
test edi, edi
jl 0x40db97
cmp ebx, eax
jge 0x40db97
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0x66e97c
add eax, edi
mov eax, dword [eax + 4]
push 0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40daf4
lea ecx, [esp + 0x20]
call fcn.004b9e60
mov dword [esp + 0x23c], 0
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
call fcn.004b9fd0
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004b9fc0
jmp 0x40db51
cmp ebx, dword [esi + 8]
jge 0x40db97
mov ecx, dword [esi + 4]
mov ecx, dword [edi + ecx]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40db08
mov edx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x670078
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x40db97
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push 0x670074
push eax
mov dword [esp + 0x30], ecx
call ebp
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, eax
jl 0x40da79
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40db6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.006157d3
add esp, 0x22c
ret
call fcn.005e9bc5
int3
Function at 0x40f970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f980
sub eax, esi
sar eax, 1
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x40f9ba
push edi
jmp 0x40f9a0
mov si, word [edx + eax*2]
xor si, 0x4d
mov edi, 0xff
sub si, di
mov word [edx + eax*2], si
inc eax
cmp eax, ecx
jl 0x40f9a0
pop edi
pop esi
ret

Function at 0x40f9c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x98]
push ecx
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fad5
push 0x64
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00615eb0
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
mov dword [esp + 0x38], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40faca
lea ebx, [eax + 1]
lea eax, [esp + 0x24]
push 0x2e
push eax
call fcn.00616db0
add esp, 8
test eax, eax
je 0x40fa84
mov byte [eax], 0
lea ecx, [esp + 0x24]
push ecx
call fcn.00617001
add esp, 4
test eax, eax
je 0x40faca
cmp eax, 0x49
mov dword [esi], eax
jle 0x40faa0
mov dword [edi], ebx
jmp 0x40faca
cmp eax, 0x34
jle 0x40faaa
mov dword [ebp], ebx
jmp 0x40faca
cmp eax, 0x1a
jle 0x40fab7
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x40faca
cmp eax, 7
jle 0x40fac4
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
jmp 0x40faca
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.006157d3
add esp, 0x7c
ret
Function at 0x40faf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x70
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x80]
lea eax, [esp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMozillaSeaMonkey
mov dword [edi], ebx
push 0x80000002
mov dword [ebp], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fbd2
push 0x64
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00615eb0
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x28], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbc7
push esi
lea edx, [esp + 0x18]
push 0x2e
push edx
lea ebx, [eax + 1]
call fcn.00616db0
mov esi, eax
add esp, 8
test esi, esi
je 0x40fbc6
lea eax, [esp + 0x18]
push eax
mov byte [esi], 0
call fcn.00617001
add esp, 4
test eax, eax
je 0x40fba0
mov dword [edi], eax
inc esi
push 0x6703f8
push esi
call fcn.00617f30
add esp, 8
test eax, eax
je 0x40fbb6
mov byte [eax], 0
push esi
call fcn.00617001
add esp, 4
test eax, eax
je 0x40fbc6
mov dword [ebp], eax
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x78]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.006157d3
add esp, 0x70
ret

Function at 0x40fbf0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x670490
xor edi, edi
call fcn.00447330
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x40fc4a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40fc3e
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
jne 0x40fc38
lea edi, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
jne 0x40fc99
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fc99
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
push eax
push str.Local_AppData
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fc8e
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x40fec0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
push str.IEXPLORE
add ecx, 4
call fcn.0040df40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000001
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ff94
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.DownloadUI
push eax
mov dword [esp + 0x28], 0x104
call ebx
test eax, eax
jne 0x40ff6e
test edi, edi
je 0x40ff89
mov ecx, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ff65
test dl, dl
je 0x40ff61
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ff65
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ff45
xor eax, eax
jmp 0x40ff6a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ff89
mov ecx, dword [esp + 0xc]
push 0x27
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push 0
push str.DownloadUI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call esi
test eax, eax
jne 0x410034
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.DownloadUI
push eax
mov dword [esp + 0x28], 0x104
call ebx
test eax, eax
jne 0x41000e
test edi, edi
je 0x410029
mov ecx, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410005
test dl, dl
je 0x410001
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410005
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ffe5
xor eax, eax
jmp 0x41000a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410029
mov ecx, dword [esp + 0xc]
push 0x27
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push 0
push str.DownloadUI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006157d3
add esp, 0x110
ret
Function at 0x410050
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [0x752bc0], 0
je 0x410145
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS_1.3Client
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410144
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.Enabled
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4100b5
cmp dword [esp + 0xc], 1
jne 0x4100b5
lea esi, [eax + 1]
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
test esi, esi
je 0x410143
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS_1.3
push 0x80000002
call esi
test eax, eax
jne 0x410143
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.Client
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocols
push 0x80000002
call esi
test eax, eax
jne 0x410142
mov eax, dword [esp + 0xc]
push str.TLS_1.3
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop ebx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x410150
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call fcn.00447470
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp + 8]
push ecx
add eax, 0xf003f
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4101b6
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push 0x670660
push eax
mov dword [esp + 0x24], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
push 0x66de18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410207
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.AdvIntDriverEnabled2
push ecx
mov dword [esp + 0x24], 1
call esi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 8
ret