joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c870
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004999f0
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40c8a5
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40c8a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40c8b3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40c8d9
xor eax, eax
jmp 0x40c931
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x40c8fb
mov eax, 1
jmp 0x40c931
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40c917
mov eax, 2
jmp 0x40c931
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x160], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x164], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40c970
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004999f0
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
test esi, esi
rep stosd dword es:[edi], eax
je 0x40c9a5
mov edi, dword [esp + 0x2010]
test edi, edi
je 0x40c9a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x40c9b3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2000
ret 4
push ebp
push esi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40c9d9
xor eax, eax
jmp 0x40ca31
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x40c9fb
mov eax, 1
jmp 0x40ca31
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40ca17
mov eax, 2
jmp 0x40ca31
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebp
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [ebx + 0x1c]
push esi
push 1
push str.ShowCancelButton
push edi
mov dword [edx + 0x168], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebx + 0x1c]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [edx + 0x16c], ecx
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x168], 1
jne 0x40ca70
mov dword [eax + 0x168], 2
push esi
lea eax, [esp + 0x14]
push 0x1000
push eax
push 0
push 0x4b97ec
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov si, word [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
neg si
sbb esi, esi
lea ecx, [esp + 0x10]
and esi, ecx
add ebx, 0x14c
test esi, esi
jne 0x40caaa
xor ebp, ebp
jmp 0x40cab3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x40cac0
cmp ebp, dword [eax - 4]
jle 0x40cad3
mov ecx, ebx
call fcn.00406f50
push ebp
mov ecx, ebx
call fcn.00406c50
test eax, eax
je 0x40cafe
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x40caf1
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret 4
Function at 0x40cb10
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.004999f0
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
test edi, edi
je 0x40cb45
mov ebp, dword [esp + 0x2010]
test ebp, ebp
je 0x40cb45
lea eax, [esp + 0xc]
test eax, eax
jne 0x40cb53
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2000
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push 0
push str.PageState
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
jne 0x40cb79
xor eax, eax
jmp 0x40cbd1
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push 0x20
lea edx, [esp + 0x14]
push str.Hide
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x40cb9b
mov eax, 1
jmp 0x40cbd1
push 0x20
lea eax, [esp + 0x14]
push str.Minimized
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40cbb7
mov eax, 2
jmp 0x40cbd1
push 0x20
lea ecx, [esp + 0x14]
push str.Smart
push ecx
call ebx
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x1c]
push edi
push 0
push str.ShowCancelButton
push ebp
mov dword [edx + 0x170], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, 1
pop ebx
sete cl
pop edi
pop esi
mov dword [edx + 0x174], ecx
mov eax, 1
pop ebp
add esp, 0x2000
ret 4
Function at 0x40e4e0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004999f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
push edi
je 0x40e5d4
mov ebx, dword [esp + 0x2024]
test ebx, ebx
je 0x40e5d4
mov ebp, dword [esp + 0x2028]
cmp ebp, 0x80
jl 0x40e5d4
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40e5d4
cmp eax, 0x1fff
ja 0x40e5d4
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e5d4
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4b7dcc
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e5d4
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
shr edx, 0x10
push ecx
push edx
push 0x4b81e4
push ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200c
ret
Function at 0x411a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov ecx, dword [0x4b7080]
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov edx, dword [0x4b7080]
mov dword [esp + 0x18], esi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], 0xb4
mov ecx, dword [0x4b7080]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], esi
mov edx, dword [0x4b7080]
mov dword [ebx + 0x50], edx
mov eax, dword [0x4b7080]
mov dword [ebx + 0x54], eax
mov cl, byte [esp + 0x20]
mov dword [ebx + 0x6c], esi
mov byte [ebx + 0x70], cl
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], esi
mov edx, dword [0x4b7080]
mov dword [ebx + 0x80], edx
mov eax, 0x4c712c
mov byte [esp + 0x18], 7
test eax, eax
mov dword [ebx], vtable.CDownloadTask.0
jne 0x411ae4
xor ebp, ebp
jmp 0x411af1
push 0x4c712c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx + 0x34]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x411b04
cmp ebp, dword [eax - 4]
jle 0x411b67
mov edx, dword [0x4b7084]
add eax, 0xfffffff4
cmp eax, edx
je 0x411b34
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411b2b
mov ecx, dword [ebx + 0x34]
sub ecx, 0xc
push ecx
call fcn.00437568
add esp, 4
mov edx, dword [0x4b7080]
mov dword [ebx + 0x34], edx
cmp ebp, esi
jne 0x411b3f
mov eax, dword [0x4b7080]
jmp 0x411b64
lea ecx, [ebp + ebp + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, esi
je 0x411b9c
mov dword [eax], 1
mov word [eax + ebp*2 + 0xc], si
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx + 0x34], eax
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x411b8f
mov ecx, eax
push edi
mov edi, dword [ebx + 0x34]
mov edx, ecx
mov esi, 0x4c712c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
mov ecx, dword [ebx + 0x34]
mov dword [ecx - 8], ebp
mov edx, dword [ebx + 0x34]
mov word [edx + eax], si
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
pop esi
mov dword [ebx + 0x58], 1
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x411bf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a0d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CDownloadTask.0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], 7
cmp eax, 0xffffffff
je 0x411c3f
call fcn.00412270
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x411c3f
call fcn.00418750
mov ecx, dword [esi + 0x68]
call fcn.004180f0
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
cmp edi, eax
je 0x411c5e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push eax
call ebx
mov eax, dword [esi + 0x78]
add edi, 4
cmp edi, eax
jne 0x411c4f
mov eax, dword [esi + 0x80]
mov edx, dword [0x4b7084]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411c93
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411c93
mov eax, dword [esi + 0x80]
sub eax, 0xc
push eax
call fcn.00437568
add esp, 4
mov ebx, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
cmp edi, ebx
mov byte [esp + 0x1c], 5
je 0x411cb2
push 0
mov ecx, edi
call fcn.00411970
add edi, 4
cmp edi, ebx
jne 0x411ca2
mov eax, dword [esi + 0x74]
push eax
call fcn.00437568
xor edi, edi
add esp, 4
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov eax, dword [esi + 0x54]
mov ecx, dword [0x4b7084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x411cf2
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411cf2
mov eax, dword [esi + 0x54]
sub eax, 0xc
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esi + 0x50]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411d1b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411d1b
mov eax, dword [esi + 0x50]
sub eax, 0xc
push eax
call fcn.00437568
add esp, 4
mov ecx, dword [esi + 0x38]
mov byte [esp + 0x1c], 2
cmp ecx, edi
je 0x411d2c
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esi + 0x34]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411d55
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411d55
mov edx, dword [esi + 0x34]
sub edx, 0xc
push edx
call fcn.00437568
add esp, 4
mov eax, dword [esi + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411d7e
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411d7e
mov edx, dword [esi + 0x10]
sub edx, 0xc
push edx
call fcn.00437568
add esp, 4
mov eax, dword [esi + 0xc]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411da7
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x411da7
mov edx, dword [esi + 0xc]
sub edx, 0xc
push edx
call fcn.00437568
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413470
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2670
call fcn.004999f0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00413430
mov esi, eax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x680]
rep stosd dword es:[edi], eax
mov ebx, 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x680]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x1000
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x10], ebx
jne 0x41356b
cmp word [esp + 0x680], 0
je 0x41356b
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x41356b
lea eax, [esp + 0x680]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x413505
xor ebp, ebp
jmp 0x413515
lea ecx, [esp + 0x680]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x413522
cmp ebp, dword [eax - 4]
jle 0x413535
mov ecx, ebx
call fcn.00406f50
push ebp
mov ecx, ebx
call fcn.00406c50
test eax, eax
je 0x41356b
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x41355e
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x680]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x430]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4135af
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00412db0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2670
ret
Function at 0x4135c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2668
call fcn.004999f0
push ebx
push ebp
push esi
push edi
call fcn.00413430
mov esi, eax
xor ebp, ebp
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x67a]
mov word [esp + 0x678], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x678]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x1000
push eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x14], edi
jne 0x4136a7
cmp word [esp + 0x678], bp
je 0x4136a7
cmp dword [esp + 0x10], ebp
jbe 0x4136a7
lea eax, [esp + 0x678]
lea ebx, [esi + 0x24]
test eax, eax
jne 0x413662
xor edi, edi
jmp 0x413672
lea ecx, [esp + 0x678]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410320
test eax, eax
je 0x4136a7
mov ecx, dword [ebx]
lea ebp, [edi + edi]
lea edx, [esp + 0x678]
push ebp
lea eax, [edi + edi + 2]
push edx
push eax
push ecx
call fcn.00405800
mov edx, dword [ebx]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [ebx]
mov word [eax + ebp], 0
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x24]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x428]
lea edx, [esp + 0x18]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x413731
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
cmp edi, eax
je 0x413721
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x413717
push eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebx
lea edx, [esp + 0x428]
lea eax, [esp + 0x18]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x413731
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x40]
add edi, 4
cmp edi, eax
jne 0x4136e7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2668
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2668
ret
Function at 0x413c30
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x413c3e
or eax, 0xffffffff
pop esi
ret
push 0
push 0
push 3
push 0
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413c5c
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x413cd0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x413cde
pop esi
pop ecx
ret
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 4], 0x103
jne 0x413d0f
mov edx, dword [esi + 0x20]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0x1c], 3
mov eax, 1
pop esi
pop ecx
ret
Function at 0x414270
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4142bf
cmp dword [esp + 0x10], 0x104
jl 0x4142bf
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4142bf
mov edx, dword [esp + 0xc]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4150c0
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value
Terminate process

Disassembly:
mov eax, 0x180c
call fcn.004999f0
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x415128
pop edi
mov eax, 1
pop esi
add esp, 0x180c
ret
lea eax, [esp + 0x14]
push str.360ver.dll
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41515a
pop edi
mov eax, 1
pop esi
add esp, 0x180c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x10], 0xffffffff
call fcn.004104c0
add esp, 8
test eax, eax
je 0x415186
mov eax, dword [esp + 8]
cmp eax, 3
je 0x415186
cmp eax, 0xffffffff
jne 0x415194
pop edi
mov eax, 1
pop esi
add esp, 0x180c
ret
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0
push 1
push eax
mov dword [esp + 0x18], 0
call fcn.004071b0
test eax, eax
jne 0x4152e2
mov eax, dword [esp + 8]
test eax, eax
jne 0x4152f3
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x814]
push 0x800
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x818]
push 0x4b8a78
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov esi, dword [sym.imp.MSVCRT.dll_wcsncat]
push 0x800
lea edx, [esp + 0x824]
push 0x4b833c
push edx
call esi
push 0x800
lea eax, [esp + 0x830]
push 0x4b8a4c
push eax
call esi
push 0x800
lea ecx, [esp + 0x83c]
push 0x4b833c
push ecx
call esi
push 0x800
lea edx, [esp + 0x848]
push str.vL
push edx
call esi
lea eax, [esp + 0x50]
push 0x800
lea ecx, [esp + 0x854]
push eax
push ecx
call esi
add esp, 0x48
lea edx, [esp + 0x814]
push 0x800
push 0x4b8a0c
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x814]
push 0x14
push 0x4b833c
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4152da
push 0xc8
push 0x4b89c8
push 0x4b84d4
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4152c2
call fcn.004150c0
test eax, eax
je 0x4152c2
push 5
push 0
push 0
push 0x4b866c
jmp 0x4152cd
push 5
push 0
push 0
push 0x4b84d4
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x415301
pop edi
mov eax, 1
pop esi
add esp, 0x180c
ret
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
add esp, 0x180c
ret
Function at 0x418150
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
test ebx, ebx
mov dword [ebp - 0x14], esi
je 0x4182d4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4182d4
call dword [esi + 8]
mov dword [esi + 0x64], eax
mov ecx, 0x4e
xor eax, eax
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004999f0
mov eax, dword [ebp + 8]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14c], edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004999f0
mov edx, dword [ebp + 0xc]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x138], eax
push eax
lea eax, [ebp - 0x150]
push eax
push ecx
mov dword [ebp - 0x150], edi
call dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov byte [ebp + 0xc], 0
call edi
mov ebx, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x68], 1
je 0x41828c
cmp dword [ebp + 0x10], 0xffffffff
je 0x418271
call edi
mov ecx, dword [ebp + 0x10]
sub eax, ebx
cmp eax, ecx
ja 0x41828c
mov ecx, dword [esi + 0x64]
lea edx, [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push eax
push ecx
call dword [esi + 0x24]
add esp, 0xc
cmp eax, 4
jne 0x418252
mov byte [ebp + 0xc], 1
mov al, byte [ebp + 0xc]
mov dword [ebp - 4], 0
test al, al
jne 0x4182a4
mov edx, dword [esi + 0x64]
push edx
call dword [esi + 0x18]
add esp, 4
mov eax, dword [esi + 0x64]
push eax
call dword [esi + 0x1c]
mov ecx, dword [esi + 0x64]
add esp, 4
push ecx
call dword [esi + 0xc]
add esp, 4
jmp 0x4182c3
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x64], 0
and eax, 0xff
jmp 0x4182d6
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x15c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc