joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70212880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x82c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x828], eax
mov eax, dword [esp + 0x834]
push ebx
push ebp
mov ebp, dword [esp + 0x838]
push edi
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov ebx, 0x104
lea edi, [esp + 0x428]
mov dword [esp + 0x14], eax
mov word [esi], cx
mov dword [esp + 0x10], ebp
call fcn.70211ec0
add esp, 4
test eax, eax
je 0x70212aad
cmp eax, ebx
je 0x70212aad
push 0
lea eax, [esp + 0x220]
push eax
push ebx
push str..exe
mov ecx, edi
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x70212aad
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x70212aad
push ebx
lea ecx, [esp + 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x70212aad
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edi, edi
lea esp, [esp]
mov edx, dword [edi*8 + 0x70354998]
push edx
lea eax, [esp + 0x630]
push eax
lea ecx, [esp + 0x224]
push ecx
call ebx
test eax, eax
je 0x70212975
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x702129d7
inc edi
cmp edi, 7
jb 0x70212940
lea edi, [esp + 0x14]
mov edx, 0x104
mov eax, esi
sub edi, esi
jmp 0x70212990
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x70212a86
movzx ecx, word [edi + eax]
test cx, cx
je 0x70212a86
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x70212990
pop edi
sub eax, 2
pop ebp
mov word [eax], dx
lea eax, [edx + 1]
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x82c
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi*8 + 0x7035499c]
push ebx
push esi
push ebp
call ecx
add esp, 0xc
test eax, eax
je 0x70212a0e
or dword [ebx], 1
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x82c
ret
lea edi, [esp + 0x14]
mov edx, 0x104
mov eax, esi
sub edi, esi
jmp 0x70212a20
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x70212a5f
movzx ecx, word [edi + eax]
test cx, cx
je 0x70212a5f
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x70212a20
pop edi
sub eax, 2
pop ebp
mov word [eax], dx
lea eax, [edx + 1]
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x82c
ret
test edx, edx
jne 0x70212a66
sub eax, 2
pop edi
xor edx, edx
pop ebp
mov word [eax], dx
lea eax, [edx + 1]
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x82c
ret
test edx, edx
jne 0x70212a8d
sub eax, 2
pop edi
xor edx, edx
pop ebp
mov word [eax], dx
lea eax, [edx + 1]
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x82c
ret
mov ecx, dword [esp + 0x834]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.702e1c2f
add esp, 0x82c
ret
Function at 0x70212ad0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [esp + 0x620]
push ebp
mov ebp, dword [esp + 0x628]
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x70212c0a
push esi
push 0x104
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x70212b6f
xor esi, esi
lea esp, [esp]
mov eax, dword [esi*8 + 0x70354998]
push eax
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x70212b69
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x70212bbe
inc esi
cmp esi, 7
jb 0x70212b30
lea esi, [esp + 8]
mov edx, 0x104
mov eax, edi
sub esi, edi
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x70212be4
movzx ecx, word [esi + eax]
test cx, cx
je 0x70212be4
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x70212b80
sub eax, 2
pop esi
mov word [eax], dx
lea eax, [edx + 1]
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x61c
ret
mov edx, dword [esi*8 + 0x7035499c]
push ebx
push edi
push ebp
call edx
add esp, 0xc
pop esi
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x61c
ret
test edx, edx
jne 0x70212beb
sub eax, 2
xor edx, edx
pop esi
mov word [eax], dx
lea eax, [edx + 1]
pop ebp
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x61c
ret
mov ecx, dword [esp + 0x61c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.702e1c2f
add esp, 0x61c
ret
Function at 0x70213680
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7031400b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebx, ecx
push 0x70354bec
mov dword [esp + 0x18], 0x80004005
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
or eax, 0xffffffff
mov ecx, 0x40
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
xor edi, edi
lea ecx, [ecx]
call esi
mov dword [esp + edi*4 + 0x24], eax
cmp eax, 0xffffffff
je 0x702136f6
cmp eax, 0x40
ja 0x702136f6
inc edi
cmp edi, 0x40
jl 0x702136e0
push ebx
mov dword [esp + 0x134], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x7021371b
mov eax, ebx
call fcn.702b4730
test eax, eax
je 0x702137ad
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x702137ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x70325fdc
push edi
call esi
mov dword [0x70359030], eax
test eax, eax
je 0x702137ad
push 0x70325ff0
push edi
mov dword [esp + 0x24], edi
call esi
mov dword [esp + 0x20], eax
test eax, eax
je 0x702137ad
lea edi, [esp + 0x1c]
call fcn.70213860
lea eax, [esp + 0x18]
push eax
push 0x7031c85c
push str.65OZ
mov dword [esp + 0x24], 0
call dword [0x70359030]
mov ebx, eax
test ebx, ebx
jne 0x702137b1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x702137b1
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push 0x703259fc
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x14]
push 0x70354bec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x24]
cmp eax, 0xffffffff
je 0x702137d6
push eax
call edi
inc esi
cmp esi, 0x40
jl 0x702137c4
mov eax, ebx
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x702149e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x7033c2a8
push 0x702e96c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x7034b250]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
cmp esi, ebx
jne 0x70214a3e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x70214b1b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx - 0x5c]
cmp eax, 0xfa4
ja 0x70214b19
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x34], eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x70214b19
lea ecx, [ebx + ebx]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x70214b0f
mov dword [ebp - 4], 0
push ebx
push esi
push edi
call fcn.702e9140
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x703272c0
push edi
call fcn.702ff9d6
test eax, eax
je 0x70214aec
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x70214aec
cmp dword [ebp - 0x20], 0
je 0x70214aec
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x70214b08
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x70214b27
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x70214b33
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x70214b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov edi, 0x11c
push edi
lea eax, [esp + 0xc]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
push str.RtlGetVersion
push str.ntdll
lea esi, [eax + edx*2]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x70214bf8
lea ecx, [esp + 0x128]
push ecx
mov dword [esp + 0x12c], edi
call eax
test eax, eax
jl 0x70214bf8
mov eax, dword [esp + 0x12c]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x130]
lea ecx, [eax + edx*2]
cmp ecx, esi
jle 0x70214bf8
mov ecx, 0x47
lea esi, [esp + 0x128]
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc]
cmp eax, 6
ja 0x70214c20
jne 0x70214c0a
cmp dword [esp + 0x10], 3
jae 0x70214c20
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret

Function at 0x70214c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov edi, 0x11c
push edi
lea eax, [esp + 0xc]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
push str.RtlGetVersion
push str.ntdll
lea esi, [eax + edx*2]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x70214ce8
lea ecx, [esp + 0x128]
push ecx
mov dword [esp + 0x12c], edi
call eax
test eax, eax
jl 0x70214ce8
mov eax, dword [esp + 0x12c]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x130]
lea ecx, [eax + edx*2]
cmp ecx, esi
jle 0x70214ce8
mov ecx, 0x47
lea esi, [esp + 0x128]
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc]
cmp eax, 6
ja 0x70214d10
jne 0x70214cfa
cmp dword [esp + 0x10], 2
jae 0x70214d10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret
Function at 0x70214d30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
push eax
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.702792f0
add esp, 4
mov eax, esi
call fcn.70279400
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret

Function at 0x70214de0
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x7030e8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x14], ebp
push ebx
push 0x80
xor eax, eax
mov dword [esp + 0x30], ebx
push 3
mov dword [edi], eax
push ebx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push 1
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x44]
push SysReAllocStringLen
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x70214e6d
call fcn.7020df50
cmp eax, ebx
jne 0x70214f05
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], ebx
je 0x70214e75
cmp ebp, ebx
jmp 0x70214efc
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x70214e50
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
cmp ecx, ebx
jbe 0x70214e8f
cmp eax, ecx
jbe 0x70214e8f
mov esi, ecx
mov dword [esp + 0x18], 1
jmp 0x70214e95
mov esi, eax
mov dword [esp + 0x18], ebx
push esi
call fcn.702df932
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x70214efa
mov ecx, ebx
lea edx, [esp + 0x14]
call fcn.7020df10
test eax, eax
jne 0x70214ef1
push esi
push ebx
mov ecx, edi
call fcn.70214d30
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [ecx], eax
call fcn.702e1ea6
add esp, 0xc
test ebp, ebp
je 0x70214eda
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
call fcn.702e1ea6
add esp, 4
test ebp, ebp
je 0x70214f05
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x70214f20
Capabilities:
Hash data using sha1

Disassembly:
push 0xffffffffffffffff
push 0x70314cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
test eax, eax
je 0x70215042
test ecx, ecx
jbe 0x70215042
add ecx, eax
push ecx
lea esi, [esp + 0x28]
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], 0xc3d2e1f0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.70213c50
lea edx, [esp + 0x10]
push edx
call fcn.702140d0
mov eax, dword [0x703580e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x703580e4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, 0x70326328
mov edi, ebx
mov dword [esp + 0x8c], 0
call fcn.7020b380
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esp + esi*4 + 0x10]
push eax
push str._08x
lea edi, [esp + 0x14]
call fcn.70208e90
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
add esp, 8
push eax
push edi
push ebx
call fcn.7021b550
inc esi
cmp esi, 5
jl 0x70214ff0
lea eax, [edi - 0x10]
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x70215042
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x84
ret
Function at 0x70215070
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x7030e878
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x2c]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
mov dword [esp + 0x3c], ebp
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x70215106
call fcn.7020df50
cmp eax, ebp
jne 0x702150ef
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [esp + 0x14], ebp
je 0x7021510e
cmp ebx, ebp
je 0x702150ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x702150d0
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
cmp eax, ebp
jbe 0x70215123
cmp esi, eax
jbe 0x70215123
mov ebp, 1
jmp 0x70215161
push esi
call fcn.702df932
mov edi, eax
add esp, 4
test edi, edi
je 0x70215161
mov ecx, edi
lea edx, [esp + 0x18]
call fcn.7020df10
test eax, eax
jne 0x70215155
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [eax], esi
mov dword [ecx], esi
mov dword [edx], edi
jmp 0x70215161
push edi
call fcn.702e1ea6
add esp, 4
or ebp, 0xffffffff
test ebx, ebx
je 0x7021516c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x70215390
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x148
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x14c]
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x702154be
test ecx, ecx
je 0x702154be
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x702154be
test edi, edi
jne 0x702153ee
lea edi, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push esi
call ebx
test eax, eax
je 0x702154b7
cmp dword [esp + 0x10], 0x40
jne 0x702154b7
mov edx, 0x5a4d
cmp word [esp + 0x110], dx
jne 0x702154b7
mov eax, dword [esp + 0x14c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push esi
call ebp
cmp eax, dword [esp + 0x14c]
jne 0x702154b7
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf8
push edi
push esi
call ebx
test eax, eax
je 0x702154b7
cmp dword [esp + 0x10], 0xf8
jne 0x702154b7
cmp dword [edi], 0x4550
jne 0x702154b7
cmp word [edi + 6], 0
je 0x702154b7
movzx edx, word [edi + 0x14]
push 1
push 0
sub edx, 0xe0
push edx
push esi
call ebp
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
push ecx
push esi
call ebx
test eax, eax
je 0x702154b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xcccccccd
mul dword [esp + 0x10]
mov eax, edx
shr eax, 5
jmp 0x702154c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.702e1c2f
add esp, 0x148
ret

Function at 0x70215610
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x702156b6
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
test eax, eax
je 0x702156af
cmp dword [esp + 0x10], 0x40
jne 0x702156af
mov edx, 0x5a4d
cmp dx, word [esp + 0x18]
jne 0x702156af
mov eax, dword [esp + 0x54]
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x702156af
push ebx
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push esi
call edi
test eax, eax
je 0x702156af
cmp dword [esp + 0x10], 4
jne 0x702156af
cmp dword [esp + 0x14], 0x4550
jne 0x702156af
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.702e1c2f
add esp, 0x54
ret
Function at 0x70215770
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x70313fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x538]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str...360verify.dll
push 0x70359d48
lea ecx, [esp + 0x124]
push ecx
mov dword [esp + 0x1c], eax
xor edi, edi
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x702157ef
lea edx, [esp + 0x11c]
push edx
call ebx
test eax, eax
jne 0x70215881
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x32e]
push ecx
mov word [esp + 0x330], ax
call fcn.702e95e0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [esp + 0x324], di
je 0x702158fd
push str.360verify.dll
lea edx, [esp + 0x328]
push edx
lea eax, [esp + 0x124]
push eax
call esi
test eax, eax
je 0x702158fd
lea ecx, [esp + 0x11c]
push ecx
call ebx
test eax, eax
je 0x702158fd
lea ebx, [esp + 0x1c]
call fcn.70202660
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x544], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
lea eax, [esp + 0x11c]
je 0x702158b1
push eax
jmp 0x702158c2
call fcn.702b4730
test eax, eax
je 0x702158f0
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x702158f0
push str.GetCIDA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x702158e9
mov edx, dword [esp + 0x10]
push 0x64
push edx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ebx, [esp + 0x1c]
call fcn.70202630
mov eax, edi
jmp 0x702158ff
xor eax, eax
mov ecx, dword [esp + 0x538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x520]
xor ecx, esp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret