joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407114
Capabilities:
Encode data using xor

Disassembly:
push ebx
sub esp, 0xc
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jbe 0x4071e6
cmp ebx, 6
jb 0x4071ba
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x18]
lea eax, [ebx - 6]
movzx esi, byte [ecx + ebp]
movzx edi, dl
xor edi, esi
movzx esi, byte [ecx + ebp + 1]
shr edx, 8
xor edx, dword [edi*4 + 0x412200]
movzx edi, dl
xor edi, esi
movzx esi, byte [ecx + ebp + 2]
shr edx, 8
xor edx, dword [edi*4 + 0x412200]
movzx edi, dl
xor edi, esi
movzx esi, byte [ecx + ebp + 3]
shr edx, 8
xor edx, dword [edi*4 + 0x412200]
movzx edi, dl
xor edi, esi
movzx esi, byte [ecx + ebp + 4]
shr edx, 8
add ecx, 5
xor edx, dword [edi*4 + 0x412200]
movzx edi, dl
xor edi, esi
shr edx, 8
xor edx, dword [edi*4 + 0x412200]
cmp ecx, eax
jbe 0x407145
mov esi, dword [esp + 4]
mov edi, dword [esp]
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp], edi
movzx esi, byte [ecx + eax]
movzx edi, dl
xor edi, esi
shr edx, 8
add ecx, 1
xor edx, dword [edi*4 + 0x412200]
cmp ecx, ebx
jb 0x4071c5
mov esi, dword [esp + 4]
mov edi, dword [esp]
mov eax, edx
add esp, 0xc
pop ebx
ret

Function at 0x40aa3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411d20
cmp edx, dword [eax]
je 0x40aa60
add eax, 8
inc ecx
cmp eax, 0x411db0
jl 0x40aa51
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411d20]
jne 0x40ab8e
mov eax, dword [0x412014]
cmp eax, 1
je 0x40ab68
test eax, eax
jne 0x40aa91
cmp dword [0x40fa34], 1
je 0x40ab68
cmp edx, 0xfc
je 0x40ab8e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aac8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bc50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040bd40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ab0b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040bd40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e594
push edi
call fcn.00407b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bc50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bc60
lea eax, [ebp - 0xa0]
push 0x40e574
push eax
call fcn.0040bc60
push dword [esi + 0x411d24]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bc60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bdbb
add esp, 0x2c
pop edi
jmp 0x40ab8e
lea eax, [ebp + 8]
lea esi, [esi + 0x411d24]
push 0
push eax
push dword [esi]
call fcn.0040bd40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40c1c4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
shr eax, 2
add eax, dword [ebp + 8]
mov edx, dword [0x411eb0]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x40c05a
call fcn.0040bfc0
mov dword [0x4121e0], eax
mov dword [0x411eb0], 0
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*2]
shr edi, 2
lea eax, [edi + esi*2]
add edi, esi
test dword [0x4121e0], 0xffffffff
cmovne edi, eax
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40c0f2
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x40c0b4
sfence
emms
jmp 0x40c1ba
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x411eb0]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x40c122
call fcn.0040bfc0
mov dword [0x4121e0], eax
mov dword [0x411eb0], 0
rdtsc
mov esi, dword [ebp - 0xc]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*2]
shr edi, 2
lea eax, [edi + esi*2]
add edi, esi
test dword [0x4121e0], 0xffffffff
cmovne edi, eax
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40c09c
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
pxor xmm0, xmm0
nop
lea esi, [esi]
lea edi, [edi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x40c184
emms
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
test dword [0x4121e4], 0xffffff00
jne 0x40c024
test dword [0x4121e4], 0xffffffff
jne 0x40c294
call fcn.0040c340
jmp fcn.0040c1c4
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ba11e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x4ba13e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ba12a
add dl, dl
jne 0x4ba149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ba19a
xor eax, eax
add dl, dl
jne 0x4ba156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4ba23b
add dl, dl
jne 0x4ba165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ba170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ba17b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ba186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4ba190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4ba135
mov eax, 1
add dl, dl
jne 0x4ba1a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4ba1b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ba19f
sub eax, ebx
mov ebx, 1
jne 0x4ba1e6
mov ecx, 1
add dl, dl
jne 0x4ba1cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4ba1d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ba1c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ba135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4ba1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4ba208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4ba1f4
cmp eax, 0x7d00
jae 0x4ba22b
cmp eax, 0x500
jb 0x4ba226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ba135
cmp eax, 0x7f
ja 0x4ba22e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ba135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4ba25c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4ba135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401450
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40145f
call fcn.004027f0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40148b
push edi
call fcn.0041fea0
mov edi, dword [esi + 8]
test edi, edi
je 0x401483
mov ecx, edi
call fcn.0041ed90
push edi
call fcn.004472d3
add esp, 4
mov dword [esi + 8], 0
pop edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4014ac
call fcn.0040da80
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4014a5
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [esi + 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4014cc
call fcn.0040b9a0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4014c5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0xc], 0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x401950
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00402270
test eax, eax
jne 0x401b44
mov ecx, dword [esi + 8]
call fcn.0041fe30
test eax, eax
jne 0x401b44
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push 4
xor ebx, ebx
push esi
push 0x401930
push ebx
push ebx
mov dword [esp + 0x28], ebx
call fcn.0044af3a
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x401b3a
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [esp + 0x10], ebx
push 0x14
call esi
lea ecx, [esp + 0x10]
push ecx
push ebp
call edi
cmp dword [esp + 0x10], 0x103
jne 0x401b2e
inc ebx
cmp ebx, 0x32
jl 0x4019bc
push ebp
lea ecx, [esp + 0x28]
call fcn.00413d50
mov ecx, 0x4917e8
call fcn.00409d80
mov ecx, eax
call fcn.0041ef20
mov edi, eax
lea ecx, [esp + 0x24]
add edi, 4
call fcn.00414230
mov ebx, dword [edi]
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x401aba
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x18], edx
jge 0x401a30
lea edx, [eax - 0xc]
cmp edx, dword [0x4881a4]
jne 0x401a36
mov edx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jge 0x401a7e
mov edi, dword [ebx - 8]
cmp ecx, 1
jg 0x401a43
cmp edi, dword [eax - 4]
jle 0x401a56
mov ecx, esi
call fcn.004039a0
push edi
mov ecx, esi
call fcn.004036b0
test eax, eax
je 0x401aba
mov ecx, dword [esi]
lea ebp, [edi + edi]
push ebp
lea eax, [edi + edi + 2]
push ebx
push eax
push ecx
call fcn.004029e0
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebp], 0
mov ebp, dword [esp + 0x1c]
jmp 0x401aba
mov ecx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, ecx
je 0x401aac
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401aa4
mov ecx, dword [esi]
sub ecx, 0xc
push ecx
call fcn.004472d3
add esp, 4
mov edx, dword [0x4881a0]
mov dword [esi], edx
mov edi, dword [edi]
mov dword [esi], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xec54
lea ecx, [esp + 0x28]
call fcn.00414240
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x491844
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x491878]
lea edx, [esp + 0x2c]
push 0x491844
mov dword [esp + 0x38], ecx
mov dword [0x491878], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x491818]
push 0
push 0x402af0
push esi
push 0xcd
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
call fcn.00413dc0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x20]
pop edi
mov eax, dword [esi + 0x14]
pop ebp
pop ebx
pop esi
add esp, 0x50
ret
mov ecx, esi
call fcn.00401610
pop esi
add esp, 0x50
ret
Function at 0x401b50
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4881a0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.0044b0cc
push eax
call fcn.0044b09d
add esp, 8
call fcn.0044b0aa
lea edx, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x18]
push str._s360net__d.dll
push eax
call fcn.00402d60
add esp, 0x10
push str.HttpDownLib
push 0x98
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401c0a
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401c0a
mov eax, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
jne 0x401c46
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x401c39
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401c39
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x401cd5
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x401c82
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x401c89
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x401cbe
mov edi, dword [ecx - 8]
mov ebp, ecx
push edi
mov ecx, esi
call fcn.00403900
test eax, eax
je 0x401cd5
mov edx, dword [esi]
lea ebx, [edi + edi]
push ebx
lea ecx, [edi + edi + 2]
push ebp
push ecx
push edx
call fcn.004029e0
mov eax, dword [esi]
add esp, 0x10
mov dword [eax - 8], edi
mov ecx, dword [esi]
mov word [ebx + ecx], 0
jmp 0x401cd5
mov ecx, esi
call fcn.004039a0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esi]
mov dword [str.360net.dll], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
push eax
call fcn.0040b8c0
mov edx, dword [0x4881a4]
and eax, 0xff
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x401d1e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401d1e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x401d30
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
push esi
push 0x488220
push 0x800
lea eax, [ebp - 0x810]
push eax
call fcn.0044b1c5
add esp, 0x10
push 5
push ebx
push 0x491808
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x401dbd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x818], ebx
lea ecx, [ebp - 0x818]
push ecx
push 0x47ca40
push 0x15
push ebx
push 0x47ca30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401e15
mov dword [ebp - 0x840], ebx
mov eax, dword [ebp - 0x818]
cmp eax, ebx
je 0x401e00
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x814], ebx
mov eax, dword [ebp - 0x818]
cmp eax, ebx
jne 0x401e35
push 0x80004003
call fcn.00447200
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax]
lea edx, [ebp - 0x814]
push edx
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x814]
cmp eax, ebx
je 0x401e65
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.0044b1a8
add esp, 4
test eax, eax
jbe 0x401f07
mov word [ebp - 0x838], 8
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x830], eax
cmp eax, ebx
jne 0x401e9e
cmp esi, ebx
je 0x401e9e
push 0x8007000e
call fcn.00447200
mov eax, dword [ebp - 0x818]
cmp eax, ebx
jne 0x401eb8
push 0x80004003
call fcn.00447200
mov eax, dword [ebp - 0x818]
mov ecx, dword [eax]
lea edx, [ebp - 0x828]
push edx
lea edx, [ebp - 0x828]
push edx
lea edx, [ebp - 0x828]
push edx
lea edx, [ebp - 0x828]
push edx
lea edx, [ebp - 0x838]
push edx
push eax
call dword [ecx + 0xd0]
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x848], eax
cmp eax, ebx
jge 0x401f07
push eax
call fcn.00447200
mov eax, dword [ebp - 0x818]
cmp eax, ebx
je 0x401f17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403d70
Capabilities:
Check mutex on windows

Disassembly:
push str.Q360InstallMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x403d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403d96
mov eax, 1
ret
xor eax, eax
ret

Function at 0x404960
Capabilities:
Check os version

Disassembly:
sub esp, 0x140
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
rep stosd dword es:[edi], eax
mov ecx, 0x47
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x11c
push eax
call esi
test eax, eax
jne 0x4049ac
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push ecx
call esi
test eax, eax
je 0x4049ed
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4049ed
lea edx, [esp + 8]
push edx
call eax
mov ax, word [esp + 8]
cmp ax, 9
je 0x4049df
cmp ax, 6
jne 0x4049ed
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret

Function at 0x404a00
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 5
sete al
add esp, 0x114
ret

Function at 0x405060
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [ebp]
cmp eax, ebx
je 0x405080
mov dword [ebp], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x405093
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x4050b6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x14], ebx
jle 0x4050da
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0044bf60
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x405120
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push esi
call fcn.00404f70
push esi
mov ebx, eax
call fcn.0044b74d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x405b70
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405b82
pop esi
ret
mov ecx, esi
call fcn.00405770
call fcn.00404960
test eax, eax
je 0x405b99
push str.Product64
jmp 0x405b9e
push str.Product32
mov ecx, esi
call fcn.00407b80
mov ecx, dword [esi + 0x20]
call fcn.0041fd20
test eax, eax
jg 0x405bbd
push 0x4889f0
mov ecx, esi
call fcn.00407b80
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405bcf
push eax
mov ecx, esi
call fcn.00405e60
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405be1
push eax
mov ecx, esi
call fcn.00406170
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405bf3
push eax
mov ecx, esi
call fcn.00406290
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405c05
push eax
mov ecx, esi
call fcn.00406390
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405c17
push eax
mov ecx, esi
call fcn.004064b0
mov eax, 1
pop esi
ret
Function at 0x406100
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esi + 0xc]
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
ret 4

Function at 0x406170
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2000
call fcn.0044c0a0
push ebx
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 0x4061a5
mov ebx, dword [esp + 0x2010]
test ebx, ebx
je 0x4061a5
lea eax, [esp + 0xc]
test eax, eax
jne 0x4061b3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2000
ret 4
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
push 0
push str.PageState
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0xc], 0
jne 0x4061d8
xor eax, eax
jmp 0x406233
push 0x20
lea edx, [esp + 0x10]
push str.Hide
push edx
call fcn.0044c0cf
add esp, 0xc
test eax, eax
jne 0x4061f7
mov eax, 1
jmp 0x406233
push 0x20
lea eax, [esp + 0x10]
push str.Minimized
push eax
call fcn.0044c0cf
add esp, 0xc
test eax, eax
jne 0x406216
mov eax, 2
jmp 0x406233
push 0x20
lea ecx, [esp + 0x10]
push str.Smart
push ecx
call fcn.0044c0cf
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
mov edx, dword [esi + 0x20]
push edi
push 0
push str.ShowCancelButton
push ebx
mov dword [edx + 0xfc], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esi + 0x20]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [edx + 0x100], ecx
mov esi, dword [esi + 0x20]
cmp dword [esi + 0xfc], 1
jne 0x406272
mov dword [esi + 0x104], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret 4