joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70215a50
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x25c], eax
cmp dword [0x703593cc], 0
jne 0x70215ba0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push 0x70327408
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x70215af4
xor ecx, ecx
push str.GetNativeSystemInfo
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call ebx
test eax, eax
je 0x70215ac7
lea ecx, [esp + 0x10]
push ecx
call eax
jmp 0x70215ad2
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x70215aea
mov edx, 6
cmp dx, ax
jne 0x70215af4
mov dword [0x70359434], 1
push 0x11c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x70215b2f
mov ecx, 0x47
lea esi, [esp + 0x34]
mov edi, 0x70359038
rep movsd dword es:[edi], dword [esi]
push str.RtlGetVersion
push str.ntdll
call ebp
push eax
call ebx
test eax, eax
je 0x70215b7d
lea edx, [esp + 0x150]
push edx
mov dword [esp + 0x154], 0x11c
call eax
test eax, eax
jl 0x70215b7d
mov eax, dword [esp + 0x15c]
cmp eax, dword [0x70359044]
jbe 0x70215b7d
mov ecx, 0x47
lea esi, [esp + 0x150]
mov edi, 0x70359038
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword [0x703593cc], eax
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x260
ret
mov ecx, dword [esp + 0x25c]
xor ecx, esp
mov eax, 1
call fcn.702e1c2f
add esp, 0x260
ret

Function at 0x70216870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov dword [esp], eax
mov eax, 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp]
add esp, 0xc
ret
Function at 0x70216f00
Capabilities:
Get common file path

Disassembly:
cmp dword [esi + 0x418], 0
jne 0x70216fb6
push edi
xor ecx, ecx
push ecx
push 0x28
push esi
xor eax, eax
lea edi, [esi + 0x20c]
push ecx
mov dword [esi + 0x208], 0
mov dword [esi + 0x414], 0
mov word [esi], ax
mov word [edi], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x70216fab
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70216f50
push 0x104
sub eax, edx
push edi
sar eax, 1
push esi
mov dword [esi + 0x208], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x70216f7d
cmp eax, 0x104
jb 0x70216f82
xor edx, edx
mov word [edi], dx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x70216f91
mov word [edi], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70216f96
sub eax, edx
sar eax, 1
mov dword [esi + 0x414], eax
mov dword [esi + 0x418], 1
pop edi
ret
Function at 0x702179d0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x320
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x31c], eax
push 0x208
lea eax, [esp + 0x118]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x70217a5b
cmp dword [esp + 4], 6
jb 0x70217a5b
push 1
push 0x28
lea edx, [esp + 0x11c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x70217a45
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x320
ret
push str.AppDataLocalLow_
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x70217a68
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [esp + 0x31c]
xor ecx, esp
mov eax, 1
call fcn.702e1c2f
add esp, 0x320
ret
Function at 0x70218440
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
xor esi, esi
push 0x208
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x10], esi
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x702184cc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x702184cc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.702156d0
mov esi, dword [esp + 0x10]
add esp, 0xc
mov ecx, dword [esp + 0x21c]
shr esi, 0x10
cmp esi, 0xc
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.702e1c2f
add esp, 0x21c
ret
Function at 0x70218910
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
xor ebx, ebx
push esi
push ecx
push ebx
push 0x400
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], 5
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
je 0x70218a72
lea edx, [esp + 0xc]
push edx
push 8
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x70218a72
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x70218a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x70218a5d
mov edx, dword [esp + 0x18]
push edx
call fcn.702df932
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x70218a71
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push 2
push edx
call edi
test eax, eax
je 0x70218a71
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x70218a71
cmp dword [esp + 0x14], ebx
je 0x70218a71
cmp dword [ebp], ebx
jbe 0x70218a3c
lea edi, [ebp + 4]
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x70218a32
inc esi
add edi, 8
cmp esi, dword [ebp]
jb 0x70218a15
jmp 0x70218a3c
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x70218a4b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebp
call fcn.702e1ea6
mov ebp, dword [esp + 0x24]
add esp, 4
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x70218a71
push eax
call edi
pop edi
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.702e1c2f
add esp, 0x20
ret
Function at 0x70218a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7030ef58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x703580e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x703580e4
xor ebp, ebp
xor edi, edi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], ebp
push 8
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x70218bd4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x70218bd4
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push 1
push eax
mov dword [esp + 0x24], ebp
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x70218bd4
mov edx, dword [esp + 0x10]
push edx
call fcn.702df932
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x70218bd4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push 1
push eax
call esi
test eax, eax
je 0x70218bd4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov eax, dword [edx]
push ecx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x70218bd4
mov edi, dword [esp + 0x18]
mov esi, edi
mov edx, 0x104
mov eax, ebx
sub esi, ebx
mov edi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x70218ba0
movzx ecx, word [esi + eax]
cmp cx, bp
je 0x70218ba0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x70218b80
jmp 0x70218ba4
cmp edx, ebp
jne 0x70218ba7
sub eax, 2
xor edx, edx
push edi
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x70218bc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call fcn.702e1ea6
add esp, 4
mov edi, 1
mov dword [esp + 0x2c], 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 0x70218bfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x70218d60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x210], eax
test esi, esi
je 0x70218e26
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x70326328
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathsmsedge.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x70218e26
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70218de0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x70218e26
lea edx, [esp + 8]
push edx
mov eax, SysReAllocString
mov ecx, 0x104
mov edx, esi
call fcn.7020f5f0
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x214
ret
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.702e1c2f
add esp, 0x214
ret
Function at 0x70218e40
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x7030f418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x10], ebx
cmp edi, ebx
jne 0x70218e84
xor eax, eax
jmp 0x70218fa6
cmp word [edi], 0x22
jne 0x70218f9f
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
je 0x70218f9f
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x70218f9f
cmp eax, 1
jne 0x70218ec1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x70218f9f
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
lea edx, [esp + 0x14]
push edx
mov eax, 0x70327278
mov dword [esp + 0x40], ebx
call fcn.70219390
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
call fcn.70219390
lea ecx, [esp + 0x14]
push ecx
mov eax, 0x70327278
call fcn.70219390
lea edx, [esp + 0x14]
push edx
mov eax, 0x70327b70
call fcn.70219390
mov eax, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x70218f24
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
push eax
push edi
call fcn.702e3c96
add esp, 0xc
test eax, eax
jne 0x70218f54
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
lea esi, [esp + 0x14]
mov edi, eax
call fcn.7021ae80
mov eax, edi
jmp 0x70218fa6
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
jae 0x70218f62
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
dec edx
push edx
push eax
push edi
call fcn.702e3c96
add esp, 0xc
push esi
test eax, eax
jne 0x70218f90
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x14]
call fcn.7021ae80
lea eax, [edi + ebx*2 - 2]
jmp 0x70218fa6
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esi, [esp + 0x14]
call fcn.7021ae80
push edi
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x30
ret
Function at 0x70219050
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x70359fe0], esi
je 0x70219078
mov ax, word [0x70359fd2]
cmp ax, 6
je 0x70219129
cmp ax, 7
je 0x70219129
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
jne 0x70219089
xor eax, eax
pop esi
add esp, 0xc
ret
push ebp
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
cmp ebp, esi
je 0x70219116
mov eax, dword [esp + 8]
cmp eax, 2
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jle 0x70219103
push edi
mov edi, 1
cmp eax, edi
jle 0x70219102
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNW]
mov esi, dword [ebp + edi*4]
test esi, esi
je 0x702190f8
push 7
push 0x70327b74
push esi
call ebx
test eax, eax
jne 0x702190e2
mov dword [esp + 0x14], 1
jmp 0x702190f8
push 7
push str.CREDAT:
push esi
call ebx
test eax, eax
jne 0x702190f8
mov dword [esp + 0x18], 1
inc edi
cmp edi, dword [esp + 0x10]
jl 0x702190c2
xor esi, esi
pop ebx
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xc], esi
je 0x7021911e
cmp dword [esp + 0x10], esi
je 0x7021911e
pop ebp
xor eax, eax
pop esi
add esp, 0xc
ret
pop ebp
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x70219140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x70359fe0], ebx
je 0x70219168
mov ax, word [0x70359fd2]
cmp ax, 6
je 0x7021924a
cmp ax, 7
je 0x7021924a
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
push ebx
lea eax, [esp + 0x14]
push eax
push str.TabProcGrowth
push str.SoftwareMicrosoftInternet_ExplorerMain
mov esi, 4
push SysReAllocStringLen
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x702191d3
cmp dword [esp + 0xc], esi
jne 0x702191d3
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push str.TabProcGrowth
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
je 0x70219231
push ebx
push ebx
lea ecx, [esp + 0x14]
push ecx
push str.TabProcGrowth
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x70219241
cmp dword [esp + 0xc], esi
jne 0x70219241
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.TabProcGrowth
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x70219241
xor eax, eax
cmp dword [esp + 0x10], ebx
pop edi
pop esi
sete al
pop ebx
add esp, 0xc
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x70219260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push str.C:windows_system32mshtml.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x702192e3
push edi
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x702192db
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x702192da
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x702192d3
push ebp
call fcn.702e20da
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x702192d3
mov eax, dword [esp + 0x10]
push ebp
push eax
push ebx
call fcn.702e9140
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor esi, esi
cmp ebx, esi
je 0x7021932e
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x703272c0
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.702ff9d6
test eax, eax
je 0x70219325
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov esi, 1
push ebx
call fcn.702e1dee
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 8
ret

Function at 0x7021b790
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0x208
lea eax, [esp + 8]
push 0
push eax
mov edi, ecx
call fcn.702e95e0
add esp, 0xc
push edi
push 0x70359d48
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x7021b7f5
lea edi, [esi + 4]
push edi
lea eax, [esp + 8]
push esi
push eax
call fcn.702156d0
add esp, 0xc
test eax, eax
jne 0x7021b80d
mov dword [edi], eax
mov dword [esi], eax
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop edi
mov eax, 1
xor ecx, esp
mov dword [esi + 8], eax
call fcn.702e1c2f
add esp, 0x20c
ret
Function at 0x7021b9a0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x210], eax
cmp byte [0x7034d0a7], 0
jne 0x7021b9d4
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x214
ret
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x7021ba89
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.702e95e0
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0x70326328
push str.CLSID2AB1C516_6654_4D3A_B3D6_2185BBCEB409
push SysReAllocStringLen
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x7021ba74
push 0x104
lea eax, [esp + 0xc]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x7021ba7b
push str.csvrelay32.dll
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x7021ba7b
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x7021ba7b
mov dword [esi + 0xc], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x7021ba89
mov dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x210]
xor eax, eax
cmp edx, 1
sete al
xor ecx, esp
call fcn.702e1c2f
add esp, 0x214
ret
Function at 0x7021bab0
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x420
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x41c], eax
cmp word [0x70359fd2], 5
push esi
push edi
jae 0x7021bba4
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov word [esp + 0x228], ax
call fcn.702e95e0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call fcn.702e95e0
add esp, 0x18
push 1
push 0x1a
lea ecx, [esp + 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x7021bbfd
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.360se360se.ini
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x14]
push ecx
push 0
push str.NotJoinPrivate
push str.option
call edi
cmp eax, 1
je 0x7021bb8b
push str.360se360seie6.ini
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
push 0
push str.NotJoinPrivate
push str.option
call edi
cmp eax, 1
jne 0x7021bbfd
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x420
ret
mov eax, 4
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.NotJoinPrivate
push str.Software360360se5defaultoption
push SysReAllocStringLen
mov dword [esp + 0x20], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 8], 1
jne 0x7021bbfd
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x420
ret
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.702e1c2f
add esp, 0x420
ret