joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x40411b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404120
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x104
jl 0x40414c
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00415cf0
lea edx, [ebp - 0x210]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x404170
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x404170
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [ebp + edi*2 - 0x210], cx
mov dword [ebp - 0x218], eax
mov word [ebp + edi*2 - 0x20e], dx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x214], ax
mov ecx, 0x414
or ax, cx
lea edx, [ebp - 0x210]
mov dword [ebp - 0x228], edx
mov ecx, 0xffbf
lea edx, [ebp - 0x230]
and ax, cx
push edx
mov dword [ebp - 0x21a], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x216], ebx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x220], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop ebx
call fcn.00410f34
mov esp, ebp
pop ebp
ret
Function at 0x404230
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x674], esi
mov dword [ebp - 0x66c], 0
test esi, esi
je 0x4043cb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4043cb
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00415cf0
push esi
lea edx, [ebp - 0x210]
push str._s.
push edx
mov edx, 0x104
call fcn.00404de0
add esp, 0x18
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
je 0x4043cb
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00415cf0
add esp, 0xc
lea ecx, [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [ebp - 0x678]
xor edi, edi
xor eax, eax
add edi, dword [ebp - 0x67c]
adc ebx, eax
jmp 0x404310
mov ecx, 0x2e
cmp cx, word [ebp - 0x63c]
je 0x404391
test byte [ebp - 0x668], 0x10
je 0x404391
xor edx, edx
mov ecx, edi
sub ecx, edx
mov edx, ebx
sbb edx, dword [ebp - 0x660]
xor esi, esi
sub ecx, dword [ebp - 0x664]
push 0xc9
push 0x2a69c000
sbb edx, esi
push edx
push ecx
call fcn.0041e600
test edx, edx
jne 0x404359
cmp eax, 0x1e
jbe 0x404391
mov edx, dword [ebp - 0x674]
lea ecx, [ebp - 0x63c]
push ecx
push edx
lea eax, [ebp - 0x418]
push str._s_s
push eax
mov edx, 0x104
call fcn.00404de0
add esp, 0x10
lea esi, [ebp - 0x418]
call fcn.004040f0
inc dword [ebp - 0x66c]
mov esi, dword [ebp - 0x670]
lea ecx, [ebp - 0x668]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404310
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x66c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00410f34
mov esp, ebp
pop ebp
ret
Function at 0x4043e0
Capabilities:
Check if file exists
Check os version
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x435084]
xor eax, esp
mov dword [esp + 0x55c], eax
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x28], 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x404441
cmp dword [esp + 0x1c], 6
jb 0x404441
push 0x104
lea esi, [ebx + 0x20]
push esi
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.AppDataLocalLow
push esi
call edi
jmp 0x404455
push 0x104
lea esi, [ebx + 0x20]
push esi
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouSoftwareLog
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40448a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404491
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404230
xor eax, eax
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esp + 0x134], cx
mov dword [esp + 0x136], eax
mov dword [esp + 0x13a], eax
mov dword [esp + 0x13e], eax
mov dword [esp + 0x142], eax
mov dword [esp + 0x146], eax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov word [esp + 0x152], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x13c]
push str._04d__02d__02d
push eax
mov edx, 0x10
call fcn.00404e00
add esp, 0x14
lea ecx, [esp + 0x130]
push ecx
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404533
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404474
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x15a]
push eax
mov word [esp + 0x15c], dx
call fcn.00415cf0
add esp, 0xc
lea ecx, [esp + 0x150]
push 0x104
push ecx
call fcn.00403ff0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x36a]
push eax
mov word [esp + 0x36c], dx
call fcn.00415cf0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx edx, word [esp + 0x14]
push eax
movzx eax, word [esp + 0x16]
lea ecx, [esp + 0x154]
push ecx
movzx ecx, word [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x36c]
push str._02d_02d_02d__s__d.txt
push edx
mov edx, 0x104
call fcn.00404de0
add esp, 0x1c
lea eax, [esp + 0x358]
push eax
push esi
call edi
push 0x430820
push esi
call fcn.0041bc16
xor ecx, ecx
add esp, 8
test eax, eax
setne cl
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
Function at 0x4048b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf3e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x435084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi + 4]
xor esi, esi
cmp ecx, esi
je 0x4048eb
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 4], esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push str.DebugPrintType
push str.SOFTWAREDebugMsg
push 0x80000002
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x10]
and eax, 3
dec eax
je 0x40499c
dec eax
je 0x40495b
dec eax
je 0x404938
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x230
call fcn.0041155a
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
cmp eax, esi
je 0x4049b2
push eax
call fcn.004049d0
jmp 0x4049b4
push 0x228
call fcn.0041155a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x404995
lea eax, [ebx + 8]
mov byte [ebp - 4], 1
push eax
mov dword [ebx], vtable.CDebugLog.0
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004043e0
mov dword [edi + 4], ebx
jmp 0x4049b7
xor ebx, ebx
mov dword [edi + 4], ebx
jmp 0x4049b7
push 4
call fcn.0041155a
add esp, 4
cmp eax, esi
je 0x4049b2
mov dword [eax], vtable.CDebugView.0
jmp 0x4049b4
xor eax, eax
mov dword [edi + 4], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push str.DebugMsgType
push str.SOFTWAREDebugMsg
xor edi, edi
push 0x80000002
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404b51
mov eax, dword [ebp - 0x218]
or dword [0x437c18], eax
push 0x206
lea edx, [ebp - 0x20e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x210], cx
call fcn.00415cf0
add esp, 0xc
push str.Kernel32.dll
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
cmp eax, edi
je 0x404bc7
push str.GetModuleHandleExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x214], eax
cmp esi, edi
je 0x404bc7
lea ecx, [ebp - 0x214]
push ecx
push fcn.00403ff0
push 4
call esi
mov eax, dword [ebp - 0x214]
push 0x104
lea edx, [ebp - 0x210]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x210]
push eax
push str.SogouSoftwareLog
push str.__s___s_
push 0x104
push 0x437c1c
call fcn.0041b9a7
add esp, 0x14
mov edi, 0x437e24
call fcn.004048b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x404ec0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x404f5c
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x404f95
inc eax
push eax
call fcn.00410f29
mov esi, eax
add esp, 4
test esi, esi
je 0x404f5c
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00415cf0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404f65
mov eax, dword [ebp - 8]
lea ebx, [eax + edi]
cmp ebx, 0x32000
ja 0x404f7a
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417950
push esi
mov edi, ebx
call fcn.00411a76
mov edx, dword [ebp + 8]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x404ee0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00411a76
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x32000
sub eax, edi
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417950
push esi
call fcn.00411a76
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca3b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x23e]
push ecx
mov edi, 1
mov word [ebp - 0x240], ax
call fcn.00415cf0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.00415cf0
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.00408070
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x460]
mov byte [ebp - 0x34], 0
call fcn.0040d820
push 0x100
lea edx, [ebp - 0x448]
push edx
mov bl, al
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test bl, bl
jne 0x4058e9
xor edi, edi
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0x430690
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x468], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40593a
push str.sogousoftware_normal
lea ecx, [ebp - 0x240]
push 0x104
push ecx
call fcn.00413514
add esp, 0xc
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x448]
push eax
push str.http:__ping.t.sogou.com_pingd_srctypesogousoftwaregid_sunc_s
lea edx, [esi + 0x54]
call fcn.004020c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
add esi, 0x50
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x405c8f
push esi
push 4
push str.SogouSoftwareUpdate
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x405c87
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x405c80
mov ebx, dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x4060b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x437e74
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x437e68], 0
jne 0x4060e1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x437e68], eax
test eax, eax
je 0x406118
cmp dword [0x437e70], 0
je 0x406118
lea eax, [ebp - 4]
push eax
push 0
push 0x437e30
push 0x406170
push 0
push 0
call fcn.0041c680
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [0x437e64], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406730
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x410
xor edi, edi
lea esi, [ebx + 0x28]
push edi
push esi
call fcn.00415cf0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x406769
cmp word [eax], di
je 0x406769
push 0x40f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebx], edi
mov dword [ebx + 4], edi
lea eax, [ebx + 0x10]
mov ecx, 4
xor edx, edx
mov word [eax - 8], dx
mov word [eax], dx
add eax, 2
dec ecx
jne 0x406776
push 0x410
lea eax, [ebx + 0x438]
push edi
push eax
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebp - 8], eax
call fcn.00415cf0
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00415cf0
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00415cf0
add esp, 0x24
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x4068e3
lea edi, [esi + 1]
push edi
call fcn.00410f29
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00415cf0
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
add esp, 0x10
push ecx
push esi
push edx
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4068e3
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x4068e3
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x430afc
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4068e3
mov esi, dword [ebp + 0xc]
mov ecx, 0xd
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp + 8]
mov ecx, eax
mov word [ebx + 0xa], ax
mov eax, dword [ebp - 0x3c]
mov edx, eax
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x38]
shr ecx, 0x10
mov word [ebx + 8], cx
shr edx, 0x10
mov ecx, eax
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 0x34]
mov word [ebx + 0xc], dx
mov edx, eax
mov word [ebx + 0x16], ax
mov eax, dword [ebp - 0x2c]
shr ecx, 0x10
shr edx, 0x10
mov word [ebx + 0x10], cx
mov ecx, dword [ebp - 0x28]
mov word [ebx + 0x14], dx
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov edi, 0x430b00
call fcn.004068f0
mov ebx, dword [ebp - 0xc]
mov edi, str.FileDescription
call fcn.004068f0
mov ebx, dword [ebp - 0x10]
mov edi, str.ProductName
call fcn.004068f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4076a0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
push ebx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40779c
mov edi, edi
cmp dword [ebp - 0x214], 0
je 0x4077bc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x407886
mov edx, dword [ebp - 0x214]
inc edx
push edx
call fcn.00410f29
mov esi, eax
add esp, 4
test esi, esi
je 0x4077db
mov eax, dword [ebp - 0x214]
inc eax
push eax
push 0
push esi
call fcn.00415cf0
mov edx, dword [ebp - 0x214]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4077fb
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
lea ecx, [eax + edi]
mov dword [ebp - 0x224], ecx
cmp ecx, dword [edx]
ja 0x407806
push eax
mov eax, dword [ebp - 0x21c]
add eax, edi
push esi
push eax
call fcn.00417950
mov edi, dword [ebp - 0x224]
push esi
call fcn.00411a76
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4076e0
mov edx, dword [ebp - 0x210]
pop edi
mov dword [edx], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x210]
mov dword [eax], edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x210]
pop edi
mov dword [ecx], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00411a76
jmp 0x407883
mov edx, dword [edx]
mov eax, dword [ebp - 0x21c]
sub edx, edi
push edx
add eax, edi
push esi
push eax
call fcn.00417950
mov ecx, dword [ebp - 0x218]
add ecx, edi
mov edi, dword [ebp - 0x210]
push esi
mov dword [edi], ecx
call fcn.00411a76
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00415cf0
add esp, 0x1c
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 5
push ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x407886
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a0b
mov dword [edi], eax
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00410f34
mov esp, ebp
pop ebp
ret 8
Function at 0x408190
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00415cf0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4082b1
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x4081fe
cmp dword [ebp - 0x114], 4
jne 0x4082b1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4082b1
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x40825f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x40822f
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x408247
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4082b1
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4082b1
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x408281
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x408299
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4082b1
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f34
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f34
mov esp, ebp
pop ebp
ret

Function at 0x4084a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c568
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x435084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4362dc]
mov ebx, 0xffff
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004033b0
push str.CommonState.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CommonState.dll
lea ecx, [ebp - 0x10]
push ecx
mov esi, eax
call fcn.004029f0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408544
lea edx, [esi - 0xc]
cmp edx, 0x4362cc
je 0x40852d
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40852d
push esi
call fcn.00411a76
add esp, 4
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40856d
push str.GetCommonState
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408566
call eax
movzx ebx, ax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi - 0xc]
cmp eax, 0x4362cc
je 0x40858e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40858e
push esi
call fcn.00411a76
add esp, 4
mov ax, bx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret