joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63a314
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov edx, dword [0x678798]
cmp dword [edx], 2
je 0x63a330
mov byte [ebp - 1], 1
jmp 0x63a4fe
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
push 0x677558
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x63a4fe
xor eax, eax
push ebp
push 0x63a4f7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x63a392
push 0x63a508
push 0x63a534
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00411f08
mov ebx, eax
test ebx, ebx
je 0x63a3b9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x63a4e0
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x63a4e0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x63a40a
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x3f0
je 0x63a3eb
call fcn.00408d5c
jmp 0x63a4fe
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x63a40a
call fcn.00408d5c
jmp 0x63a4fe
xor eax, eax
push ebp
push 0x63a4d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a44d
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x7a
je 0x63a44d
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a4fe
mov eax, dword [ebp - 0x14]
call fcn.004067ec
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x63a47f
call fcn.00408d5c
call fcn.00408d5c
jmp 0x63a4fe
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x63a4ba
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x63a4b6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x63a4b6
mov byte [ebp - 1], 1
jmp 0x63a4ba
inc ebx
dec esi
jne 0x63a48c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a4e0
mov eax, dword [ebp - 0x18]
call fcn.00406808
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a4fe
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63e1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x63e241
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x677560]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x63e22b
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0063e1b8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x63d9ac]
call fcn.0063e9ac
mov dword [0x6775c4], eax
mov eax, dword [ebp - 4]
call fcn.0063e164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63e248
lea eax, [ebp - 8]
call fcn.0040cca4
ret

Function at 0x63e270
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffd4c
mov esi, 0x4008
test cl, cl
je 0x63e283
or esi, 2
test dl, dl
je 0x63e28c
or esi, 0
jmp 0x63e28f
or esi, 1
push esi
push 0x2b4
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [esp + 4]
add esp, 0x2b4
pop esi
ret

Function at 0x640cbc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040956c
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x640cf6
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov edx, ebx
lea eax, [esp + 4]
call fcn.00425104
add esp, 0x210
pop esi
pop ebx
ret
Function at 0x644d2c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x644d96
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x644d96
lea eax, [esp + 0xc]
push eax
push 0x644d9c
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x644d96
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret

Function at 0x64a800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00409650
mov eax, dword [ebp - 8]
call fcn.00409650
xor eax, eax
push ebp
push 0x64a93a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040720c
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], esi
test bl, bl
je 0x64a85c
mov dword [ebp - 0x44], 0x540
jmp 0x64a863
mov dword [ebp - 0x44], 0x500
cmp byte [ebp + 8], 0
je 0x64a871
mov eax, 0x64a94c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.0040a13c
mov dword [ebp - 0x34], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x64a915
test bl, bl
je 0x64a8e8
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x6784f0]
mov eax, dword [eax]
call fcn.00615f34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x64a8dd
mov eax, dword [0x6784f0]
mov eax, dword [eax]
cmp byte [eax + 0xbc], 0
je 0x64a8a4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x64a8f5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov bl, 1
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.004235d4
mov edx, dword [ebp - 0x4c]
mov eax, 0x67e900
call fcn.0040994c
jmp 0x64a917
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a941
lea eax, [ebp - 0x4c]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret
Function at 0x64b998
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x64ba83
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, ebx
call fcn.004241e8
test al, al
jne 0x64ba1a
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x64ba9c
call fcn.0040a390
mov eax, dword [ebp - 4]
call fcn.00643940
cmp byte [0x67e8e2], 0
jne 0x64ba11
push 0x10
push 0x64bad8
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, 0x64baf0
call fcn.00643998
mov eax, dword [ebp - 8]
call fcn.0040a13c
push eax
mov eax, dword [0x6784f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_MessageBoxW
mov byte [0x67e8e8], 1
jmp 0x64ba68
push 1
push 0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x64bb28
call fcn.0040a390
mov eax, dword [ebp - 0xc]
call fcn.0040a13c
push eax
push 0x64bb64
push 0x64bb80
mov eax, dword [0x6784f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.shell32.dll_ShellExecuteW
cmp byte [0x67e8e1], 0
je 0x64ba68
mov edx, ebx
mov eax, 0x64bb98
call fcn.00644dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64ba8a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004095cc
ret
Function at 0x659f78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409650
xor eax, eax
push ebp
push 0x65a016
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040956c
mov eax, dword [ebp - 4]
test eax, eax
je 0x659fbb
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x659fe8
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx + esi*2 - 2]
xor dx, di
call fcn.0040a164
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040a338
inc esi
dec ebx
jne 0x659fc6
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040994c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65a01d
lea eax, [ebp - 0x10]
call fcn.0040956c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004095cc
ret
Function at 0x41a080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.0056b960
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41a124
mov eax, dword [esp + 8]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x41a124
cmp word [esp + eax*2 + 0xc], 0x5c
je 0x41a11e
cmp eax, 0x103
jae 0x41a124
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0xc], cx
mov word [esp + eax*2 + 0xe], dx
lea eax, [esp + 0xc]
jmp 0x41a129
mov eax, 0x5c95a0
push eax
mov ecx, esi
call fcn.00415010
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0056ab51
add esp, 0x214
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5a1ec2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push 0x5c93e4
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
call fcn.0041a950
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], 1
call dword [0x5a43d8]
lea eax, [esp + 0x10]
push eax
call fcn.00421000
add esp, 4
mov dword [esp + 0x20], 1
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0xc], 3
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41a510
sub eax, edi
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.0041a720
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], ebx
je 0x41a57f
cmp dword [esi + 0x18], 8
jb 0x41a564
mov edi, dword [esi + 4]
jmp 0x41a567
lea edi, [esi + 4]
cmp edi, ebx
je 0x41a57f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a57f
push edi
push ebx
call dword [0x5a43d4]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x18
ret
Function at 0x41a950
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5a1e68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00419ad0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a9b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041a720
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00419ad0
cmp dword [esp + 0x28], 8
jb 0x41a9fd
mov eax, dword [esp + 0x14]
push eax
call fcn.0056a760
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x41b3c0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x41b3e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41b3eb
xor al, al
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret

Function at 0x41c100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0056b960
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41c159
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0056ab51
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41c142
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0056ab51
add esp, 0x20c
ret

Function at 0x41c1a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call fcn.0056b960
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x41c1ec
mov eax, 1
cmp dword [esp + 8], eax
je 0x41c1ee
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0056ab51
add esp, 0x118
ret
Function at 0x41ca20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5a155b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.004160f0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.004160f0
add eax, 0x10
add esp, 8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x41ca93
xor eax, eax
jmp 0x41caa5
mov eax, dword [esp + 0x28]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
mov dword [esi + 0xc], eax
mov byte [esp + 0x14], 0
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 0x41cacd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41caf5
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 0x10
Function at 0x41ce10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x414
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
call fcn.0041cfa0
push 0x40e
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.0056b960
add esp, 0xc
push str.360TSCommon.dll
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, esi
call fcn.0041d000
test al, al
je 0x41cf78
call fcn.0046f5d0
test eax, eax
jne 0x41cebf
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x5f7548
call fcn.0046f990
test eax, eax
je 0x41cf78
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp eax, edi
je 0x41cf78
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenLinkLowPermission
push eax
call edi
mov dword [esi + 0x20c], eax
mov eax, dword [esi]
push str.OpenBrowser
push eax
call edi
mov ecx, dword [esi]
push str.GetDeviceRegistration
push ecx
mov dword [esi + 0x210], eax
call edi
mov edx, dword [esi]
push str.ShowPromotion
push edx
mov dword [esi + 0x214], eax
call edi
mov dword [esi + 0x218], eax
mov eax, dword [esi]
push str.GetThemeName
push eax
call edi
mov ecx, dword [esi]
push str.ValidateTheme
push ecx
mov dword [esi + 0x21c], eax
call edi
mov edx, dword [esi]
push str.OpenLinkByBrowserLowPermission
push edx
mov dword [esi + 0x220], eax
call edi
mov dword [esi + 0x224], eax
mov eax, dword [esi]
push str.IsOpera360e
push eax
call edi
mov ecx, dword [esi]
push str.IsOpera360eByAppPath
push ecx
mov dword [esi + 0x228], eax
call edi
mov edx, dword [esi]
push str.GetEdition
push edx
mov dword [esi + 0x22c], eax
call edi
mov dword [esi + 0x230], eax
mov ecx, dword [esp + 0x418]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0056ab51
add esp, 0x414
ret

Function at 0x41cfa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
xor eax, eax
movzx esi, ax
push edi
lea edx, [ecx + 4]
mov eax, esi
shl esi, 0x10
or eax, esi
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x14]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push 0x80000002
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
add esp, 8
ret
Function at 0x41ecd0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x41ecdb
xor al, al
ret
push esi
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x41eb80
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.0057270a
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x41ed08
test esi, esi
jne 0x41ed0c
xor al, al
pop esi
ret
mov edx, dword [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ed28
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x423060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a13e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f4964]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x5f8a44]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x5f8a44
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x44]
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jle 0x423201
mov ax, word [esp + 0x40]
xor edx, edx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], dx
lea esi, [ecx + 1]
cmp ax, cx
je 0x4230ef
lea esi, [esp + 0x18]
lea edx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x4230e0
sub esi, edx
sar esi, 1
mov dword [esp + 0x1c], ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
mov byte [esp + 0x38], 1
cmp edx, ecx
ja 0x42310b
cmp eax, 0xffffffff
jbe 0x423115
push 0x80070057
call fcn.00416180
cmp eax, 0xa
jbe 0x423126
push eax
lea ecx, [esp + 0x20]
call fcn.00425660
jmp 0x42312e
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi + 2]
push edx
push eax
call fcn.0056b9da
push eax
call fcn.00415830
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ebx, esi
imul ebx, ebp
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, ebx
add esp, 0x14
or ecx, edx
jge 0x423170
push ebx
mov ecx, edi
call fcn.00415ee0
mov edi, dword [edi]
cmp esi, 1
jne 0x423199
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
test ebp, ebp
jle 0x4231c8
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, ebp
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x4231c8
mov ecx, edi
test ebp, ebp
jle 0x4231c8
nop
xor eax, eax
test esi, esi
jle 0x4231c3
jmp 0x4231b0
mov edx, dword [esp + 0x1c]
mov dx, word [edx + eax*2]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jl 0x4231b0
sub ebp, 1
jne 0x4231a0
test ebx, ebx
jl 0x42310b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x42310b
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
xor ecx, ecx
lea edx, [esp + 0x20]
mov word [eax + ebx*2], cx
cmp dword [esp + 0x1c], edx
je 0x4231fd
lea ecx, [esp + 0x1c]
call fcn.00424c90
mov edi, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0056ab51
add esp, 0x28
ret 8