joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a849
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x41ed0c
call fcn.00414f0c
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x40a9c0
mov edx, dword [ebx + 8]
cmp edx, esi
je 0x40a9c0
mov ecx, dword [ebx + 0x30]
cmp ecx, esi
je 0x40a9c0
mov eax, dword [ebx + 0x168]
cmp eax, esi
je 0x40a9c0
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x10], eax
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call edi
cmp dword [ebp - 0x3c], 0x12
je 0x40a969
mov ebx, 0x102
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call edi
test eax, eax
je 0x40a8fb
cmp dword [ebp - 0x3c], 0x12
je 0x40a966
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp ebx, esi
jne 0x40a8be
cmp dword [ebp - 0x3c], 0x12
je 0x40a966
cmp ebx, esi
je 0x40a966
push 0x58
push 0xa
lea eax, [ebp - 0x18]
push esi
push eax
push 3
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x40a966
cmp eax, 1
jne 0x40a92c
mov ecx, dword [ebp + 8]
call fcn.0040b04c
push dword [ebp - 0x14]
jmp 0x40a956
cmp eax, 2
jne 0x40a95c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0040b2ab
test eax, eax
je 0x40a953
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040a613
pop ecx
pop ecx
jmp 0x40a931
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp - 0x3c], 0x12
jne 0x40a8b9
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0040ad54
cmp dword [ebp - 0x3c], 0x12
je 0x40a9b6
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp + 8], eax
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call edi
test eax, eax
je 0x40a9b6
cmp dword [ebp - 0x3c], 0x12
je 0x40a9b6
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call ebx
sub eax, dword [ebp + 8]
cmp eax, 0x9c4
jbe 0x40a981
or dword [ebp - 4], 0xffffffff
push 1
pop eax
pop edi
jmp 0x40a9c2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aa07
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41ed3f
call fcn.00414f0c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.004055f8
xor ebx, ebx
lea ecx, [esi + 0xd0]
mov dword [ebp - 4], ebx
call fcn.004075b1
mov al, byte [ebp - 0xd]
lea edi, [esi + 0x184]
push ebx
mov byte [ebp - 4], 1
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0040b635
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
pop eax
mov byte [ebp - 4], 2
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x4c], ebx
call edi
lea eax, [esi + 0x34]
push eax
call edi
lea eax, [esi + 0xb8]
push eax
call edi
lea eax, [esi + 0x16c]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x30], eax
call edi
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x168], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ab7f
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040ab75
test eax, eax
je 0x40aba1
mov esi, dword [esi + 8]
test esi, esi
je 0x40ab9c
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 1
pop eax
jmp 0x40ac01
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
cmp eax, ebx
jne 0x40abc8
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x40abcb
xor eax, eax
jmp 0x40ac01
push eax
call ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x40abe2
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40abe5
jmp 0x40abc4
push eax
call ebp
push esi
push ebx
push 0x40a9d0
call fcn.004159d2
add esp, 0xc
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esi + 4], eax
setne cl
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40ac06
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
cmp dword [esi + 4], edi
je 0x40ac86
mov eax, dword [esi + 8]
test eax, eax
je 0x40ac20
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ac33
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40ac5f
cmp dword [0x42a14c], 1
jg 0x40ac51
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], edi
jmp 0x40ac5f
mov eax, dword [esi + 8]
test eax, eax
je 0x40ac5f
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 4], edi
jne 0x40ac86
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40ac78
push eax
call edi
and dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ac86
push eax
call edi
and dword [esi + 0xc], 0
pop edi
pop esi
ret

Function at 0x40bc3b
Capabilities:
Delete file

Disassembly:
mov eax, 0x41ef18
call fcn.00414f0c
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0xdc], ebx
xor ecx, ecx
cmp dword [ebx + 0x20], ecx
je 0x40bd7b
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
lea edi, [ebx + 0x28]
mov dword [ebp - 0xe0], edi
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x40bca4
mov eax, dword [esi + 8]
test eax, eax
je 0x40bc9e
add eax, 4
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040c211
mov ecx, dword [ebp - 0x18]
mov esi, dword [esi]
cmp esi, dword [edi]
jne 0x40bc87
xor esi, esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bcfa
sub ecx, eax
sar ecx, 4
cmp dword [ebp - 0x24], ecx
jae 0x40bcfa
add eax, esi
mov eax, dword [eax + 4]
test eax, eax
jne 0x40bcc8
mov eax, 0x42034c
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x40]
push eax
call dword [ecx + 0xc]
and byte [ebp - 4], 0
push dword [ebp - 0x40]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x24]
add esi, 0x10
mov ecx, dword [ebp - 0x18]
jmp 0x40bca9
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp eax, dword [edi]
je 0x40bd67
mov esi, dword [eax + 8]
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40bd62
cmp dword [esi + 0x34], 0
je 0x40bd50
mov byte [ebp - 4], 2
lea eax, [esi + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x40bd2e
mov eax, 0x42034c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40bd4c
and dword [ebp - 4], 0
test esi, esi
je 0x40bd62
mov ecx, esi
call fcn.0040b8c6
push esi
call fcn.0041455b
pop ecx
mov eax, dword [ebp - 0x28]
jmp 0x40bcfc
lea ecx, [ebx + 0x24]
call fcn.0040c1fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004076e3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bfa7
Capabilities:
Delete file

Disassembly:
mov eax, 0x41ef60
call fcn.00414f0c
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40bfdb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi + 0x20], ebx
je 0x40c066
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x28], al
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040389d
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40c021
mov edx, dword [eax + 8]
cmp edx, ebx
je 0x40c00a
cmp dword [edx], edi
je 0x40c00e
mov eax, dword [eax]
jmp 0x40bffb
push dword [0x420340]
push ebx
add edx, 4
push edx
lea ecx, [ebp - 0x28]
call fcn.004037bf
cmp dword [ebp - 0x20], ebx
je 0x40c058
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x40c032
mov eax, 0x42034c
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x44]
push eax
call dword [ecx + 0xc]
mov byte [ebp - 4], bl
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call fcn.0040389d
xor eax, eax
mov edx, dword [esi + 0x28]
mov ecx, dword [edx]
cmp ecx, edx
je 0x40bfca
mov edi, dword [ecx + 8]
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x40c0f9
mov ebx, dword [ebp + 8]
cmp dword [edi], ebx
jne 0x40c0f7
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
push ecx
call fcn.0041455b
pop ecx
dec dword [esi + 0x2c]
cmp dword [edi + 0x34], 0
jne 0x40c0ab
cmp dword [ebp + 0xc], 0
je 0x40c0dd
mov dword [ebp - 4], 2
lea eax, [edi + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x40c0c7
mov eax, 0x42034c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c0d9
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40c0ef
mov ecx, edi
call fcn.0040b8c6
push edi
call fcn.0041455b
pop ecx
push 1
pop eax
jmp 0x40bfca
xor ebx, ebx
mov ecx, dword [ecx]
jmp 0x40c06d

Function at 0x40d26c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x94]
xor edi, edi
cmp dword [esi], edi
jne 0x40d292
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi], eax
jne 0x40d292
xor al, al
jmp 0x40d2ac
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push 0x40d2b1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40d383
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov ebx, 0x208
xor edi, edi
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00415790
mov eax, dword [0x42a13c]
add esp, 0xc
mov esi, 0x103
lea ecx, [ebp - 0x218]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
mov dword [ebp - 8], eax
jg 0x40d3ce
xor eax, eax
jmp 0x40d532
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x10]
push str.CLSID_sLocalServer32
push esi
push eax
call fcn.00415962
add esp, 0x10
lea eax, [ebp - 0xc]
mov ebx, 0x20006
mov dword [ebp - 0xc], edi
push eax
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x40d460
cmp dword [ebp - 0xc], edi
je 0x40d460
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
push edi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], edi
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 4]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicyE8A77722_17C3_451a_88D0_D5F01DA120AE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d52a
mov eax, dword [ebp - 8]
lea ebx, [eax - 1]
mov eax, ebx
cmp eax, edi
jl 0x40d521
lea ecx, [ebp + eax*2 - 0x218]
mov dx, word [ecx]
cmp dx, 0x5c
je 0x40d4be
cmp dx, 0x2f
je 0x40d4be
dec eax
dec ecx
dec ecx
cmp eax, edi
jge 0x40d4a8
cmp eax, edi
jle 0x40d521
cmp eax, ebx
jge 0x40d521
lea ebx, [eax + eax]
imul eax, eax, 0x7fffffff
add eax, dword [ebp - 8]
shl eax, 1
push eax
lea eax, [ebp + ebx - 0x216]
push eax
push 1
push edi
push str.AppName
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x218]
push ebx
push eax
push 1
push edi
push str.AppPath
push dword [ebp - 4]
mov word [ebp + ebx - 0x218], di
call esi
lea eax, [ebp - 8]
push 4
push eax
push 4
push edi
push str.Policy
push dword [ebp - 4]
mov dword [ebp - 8], 3
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp + 8], edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d537
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x42a138
mov dword [0x42a1a8], 0x426a28
mov dword [0x42a1e8], ebx
push 0x4269e0
push ebx
mov dword [0x42a138], 0x84
mov dword [0x42a19c], 0x300
call dword [sym.imp.ATL.DLL_AtlModuleInit]
mov eax, 0x4205b8
mov ecx, eax
test ecx, ecx
je 0x40d5a4
push 0x10
push eax
push 0x42a1d8
call fcn.00415450
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x426bb4
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
mov dword [0x42a1c8], eax
lea eax, [ebp - 8]
movsw word es:[edi], word [esi]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
call fcn.0040d33e
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x40d640
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d5fa
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d615
lea eax, [ebp - 8]
push eax
push edi
jmp 0x40d5c6
push esi
push esi
push esi
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUnregisterServerEx]
mov dword [ebp + 8], eax
jmp 0x40d68a
push esi
push esi
push 1
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40d68a
push 0x4205d8
call fcn.0040d383
pop ecx
jmp 0x40d68a
mov ecx, ebx
call fcn.0040d26c
push 1
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
call edi
test eax, eax
je 0x40d678
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
jmp 0x40d65f
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRevokeClassObjects]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e441
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.0040e52a
cmp eax, 5
je 0x40e4d6
cmp eax, 3
je 0x40e465
cmp eax, 4
jne 0x40e4ce
push 0x3c
lea eax, [ebp - 0x3c]
pop esi
push esi
push 0
push eax
call fcn.00415790
lea eax, [ebp - 0x860]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40e4ce
mov esi, 0x426364
lea eax, [ebp - 0x860]
mov ecx, edi
push eax
push dword [esi]
call fcn.0040e580
test al, al
jne 0x40e4d6
add esi, 4
cmp esi, str.tencent.com
jb 0x40e4af
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x40e4d0

Function at 0x40e52a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00415790
lea eax, [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x40
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40e579
mov eax, dword [ebp - 0x30]
jmp 0x40e57c
or eax, 0xffffffff
leave
ret 4

Function at 0x40f24b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41f3ff
call fcn.00414f0c
sub esp, 0x414
push ebx
push esi
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
ja 0x40f2c0
mov al, byte [ebp + 0xb]
push edi
mov edi, dword [ebp + 8]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0040389d
mov esi, 0x42a110
push esi
call fcn.00415945
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, edi
pop edi
jmp 0x40f31e
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.0040389d
lea eax, [ebp - 0x218]
push eax
call fcn.00415945
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f32c
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov eax, 0x41f42b
call fcn.00414f0c
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f381
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0040389d
mov esi, 0x42a110
push esi
call fcn.00415945
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, edi
jmp 0x40f4a2
push ebx
push ebx
push 3
push ebx
push 1
pop edi
push edi
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40f3cf
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov byte [ecx], al
call fcn.0040389d
mov esi, 0x42a110
push esi
call fcn.00415945
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.0040396c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
jmp 0x40f4a2
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.0040389d
mov esi, 0x1000
mov dword [ebp - 4], edi
push esi
call fcn.00414b28
push esi
push ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.00415790
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x40f466
lea eax, [ebp - 0x18]
push ebx
push eax
push 0xfff
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f45d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004162c0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040396c
push 1
pop edi
push dword [ebp + 0xc]
call fcn.0041455b
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.0040389d
push dword [0x420340]
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push eax
call fcn.004037bf
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], bl
call fcn.0040389d
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f77b
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40f831
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f831
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x40f831
push esi
call fcn.00414b28
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40f831
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f826
lea eax, [ebp - 4]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x426d18
push edi
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f826
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40f826
cmp dword [ebp - 4], 0x34
jb 0x40f826
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
shr ecx, 0x10
mov byte [edx], cl
mov edx, dword [ebp + 0x10]
mov cl, byte [eax + 8]
push 1
mov byte [edx], cl
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x14]
and ecx, 0xffff
pop ebx
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x18]
shr eax, 0x10
mov dword [ecx], eax
push edi
call fcn.0041455b
pop ecx
mov eax, ebx
jmp 0x40f833
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret