joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa0d
Capabilities:
Create process on windows

Disassembly:
push 0x68
mov eax, 0x479fb1
call fcn.0044ce07
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00445850
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov eax, dword [0x49ead4]
inc esi
add esp, 0xc
mov ecx, 0x49ead4
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push str.__s___s
push eax
call fcn.00407d26
mov edi, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
mov word [ebp - 0x44], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40faba
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x49f920
call fcn.00415020
add esp, 0x18
jmp 0x40face
cmp dword [ebp + 0x10], ebx
je 0x40facb
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40fae1
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x24], ebx
je 0x40faee
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, dword [ebp - 0x18]
call fcn.0044cea6
ret

Function at 0x40faff
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
cmp ebx, edi
je 0x40fb6c
lea eax, [ebp - 4]
push eax
push 0x28
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fb6c
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40fb6c
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40fb6c
mov dword [ebp - 8], esi
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40fb7f
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40fb86
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb8e
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x1ac
mov eax, 0x47bc68
call fcn.0044ce70
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov ecx, 0x49ead4
mov dword [ebp - 0x1b4], esi
mov edi, edx
mov dword [ebp - 0x1b8], ebx
call fcn.00408f48
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
cmp dword [0x49fc58], ebx
mov dword [ebp - 0x1b8], esi
jne 0x40fbe8
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x49fc58], esi
lea eax, [ebp - 0x1ac]
push edi
push eax
call fcn.0040f335
pop ecx
pop ecx
mov dword [ebp - 4], esi
call dword [section..data]
mov esi, dword [ebp - 0x1ac]
cmp esi, ebx
mov dword [ebp - 0x1b0], eax
je 0x40fc1f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40fc23
xor eax, eax
jmp 0x40fc3e
lea edi, [eax + eax]
mov eax, edi
call fcn.00452ff0
mov eax, esp
push dword [ebp - 0x1b0]
push edi
push esi
mov esi, eax
call fcn.00412b41
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x40fd13
mov eax, dword [0x49ead4]
mov ecx, 0x49ead4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x1a8]
push 0x48b440
push eax
call fcn.00409eb8
add esp, 0xc
cmp dword [ebp - 0x1a8], ebx
je 0x40fcde
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x40fcda
lea eax, [edi + edi]
call fcn.00452ff0
mov esi, esp
cmp esi, ebx
je 0x40fcda
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1a8]
mov word [esi], bx
push ebx
push dword [ebp - 0x1b0]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40fcdc
xor eax, eax
mov ebx, eax
mov esi, dword [ebp - 0x1b4]
push ebx
push esi
call fcn.00409107
push dword [ebp - 0x1ac]
push dword [esi]
mov esi, 0x49f920
push str.ip:_ws__url:_ws
call fcn.00415020
mov eax, dword [ebp - 0x1a8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x1b4]
lea esp, [ebp - 0x1c8]
call fcn.0044ceba
ret
Function at 0x40fd73
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x228
push eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x234]
push eax
mov edi, ecx
call fcn.00445850
add esp, 0xc
lea esi, [ebp - 0x24c]
call fcn.0041cb61
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x244], ecx
call fcn.0041cb47
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
je 0x40fde0
cmp ecx, dword [ebp - 0x244]
je 0x40fde5
call fcn.00446d1b
cmp esi, ebx
je 0x40fe18
mov eax, dword [edi + 8]
sub eax, ebx
sar eax, 2
mov ecx, eax
shl ecx, 2
test eax, eax
lea edx, [ecx + esi]
mov dword [ebp - 0x240], edx
jle 0x40fe0f
push ecx
push ebx
push ecx
push esi
call fcn.00445aea
add esp, 0x10
mov eax, dword [ebp - 0x240]
mov dword [edi + 8], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40fe87
lea eax, [ebp - 0x238]
push eax
push esi
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40fe77
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x240], eax
lea ebx, [ebp - 0x240]
mov eax, edi
call fcn.00411d43
lea eax, [ebp - 0x238]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fe43
mov dword [ebp - 0x23c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], 0
jne 0x40fe9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetAllProcess_error:_d
mov esi, 0x49f920
call fcn.00415020
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446679
leave
ret

Function at 0x410079
Capabilities:
Enumerate process modules

Disassembly:
push 0x430
mov eax, 0x47ac9d
call fcn.0044ce70
push dword [ebp + 8]
mov edi, ecx
push 8
mov dword [ebp - 0x438], 0x428
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4100c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetProcessModules_CreateToolhelp32Snapshot_failed__error:_d_pid:_d
mov esi, 0x49f920
call fcn.00415020
add esp, 0xc
jmp 0x41012e
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x410123
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00409130
and dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.00410137
test eax, eax
je 0x410104
lea eax, [ebp - 0x43c]
push eax
call fcn.0041192c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4100d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.0044ceba
ret
Function at 0x410137
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x47ac6a
call fcn.0044ce07
xor esi, esi
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp], si
call fcn.00445850
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00411728
push 0x48b114
push eax
mov dword [ebp - 4], esi
call fcn.004079c5
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00408f63
test bl, bl
je 0x41030e
mov ebx, 0x48b59c
push ebx
call fcn.00446663
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x18], eax
call fcn.00446663
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00411728
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004079c5
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00408f63
test bl, bl
je 0x410231
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.004116d8
mov dword [ebp - 4], 2
call fcn.00407844
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4102dd
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00411728
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004079c5
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00408f63
test bl, bl
je 0x4102e5
push 0x104
lea eax, [ebp]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.004116d8
mov esi, eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00409130
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00411764
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00407844
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00408f63
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4102f8
mov esi, edi
call fcn.00409207
jmp 0x410315
cmp ecx, 1
jge 0x410307
push 0x80070057
call fcn.0040916d
cmp word [eax + 2], 0x3a
jne 0x4102ef
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00446679
add ebp, 0x20c
leave
ret
Function at 0x410591
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
and dword [ebp - 4], esi
push esi
push str.SOFTWAREKingsoftKwifihomeUpdate
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4105cc
push str.NeedReboot
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4105cc
inc esi
cmp dword [ebp - 4], 0
je 0x4105db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x41064f
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x493788
call fcn.0044c7fc
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x4106d4
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x4106d4
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x4106d4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.004106eb
mov eax, dword [ebp - 0x20]
call fcn.0044c841
ret
Function at 0x4106fd
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x47bbec
call fcn.0044ce07
mov eax, dword [0x49ead4]
mov esi, 0x49ead4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 0x18], 0
lea ebx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040ed43
lea ecx, [ebp - 0x1c]
push str.ressrcchsupcfg.dat
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00407885
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00407844
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00408f63
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00408f63
lea esi, [ebp - 0x24]
call fcn.0041d4a3
lea ecx, [ebp - 0x1c]
push str.kwifi
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00407885
lea ecx, [ebp - 0x20]
push str._ressrcchsupcfg.dat
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00407885
add esp, 0x10
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00407844
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00408f63
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00408f63
xor esi, esi
push esi
push dword [ebp - 0x10]
call fcn.00446273
test eax, eax
pop ecx
pop ecx
push dword [ebp - 0x14]
push esi
je 0x41080b
push str.AutoReupdateDelayTime
push str.common
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x410871
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, str.alertreboot
push ebx
mov edi, str.common
push edi
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
push ebx
push edi
call esi
push dword [ebp - 0x14]
mov ebx, str.forcereboot
push 0
push ebx
push edi
mov dword [ebp - 0x20], eax
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push 0
push ebx
push edi
call esi
push dword [ebp - 0x10]
mov ebx, eax
push 0
push str.AutoReupdateDelayTime
push edi
call esi
mov edx, dword [ebp - 0x20]
xor ecx, ecx
cmp dword [ebp - 0x24], ebx
setne cl
mov edi, ecx
xor ecx, ecx
cmp dword [ebp - 0x1c], edx
setne cl
xor esi, esi
mov dword [ebp - 0x18], ecx
cmp dword [0x49fa4c], esi
jne 0x41087f
mov dword [0x49fa4c], edi
push eax
push esi
push edi
push dword [ebp - 0x18]
mov esi, 0x49f920
push str.KHelper::LoadUpdateConfig_bAlertReboot:_d__groupupdate:_d__ReupdateForceReboot:_d__AutoReupdateDelayTime:_ds
mov dword [0x49faa8], eax
call fcn.00415020
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408f63
xor eax, eax
call fcn.0044cea6
ret
Function at 0x410aae
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x47bb8c
call fcn.0044ce07
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov edi, 0x49ead4
mov ecx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
call fcn.00408f48
mov dword [ebp - 4], ebx
and word [ebp], 0
push 0x206
lea eax, [ebp + 2]
push 0
inc ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00445850
mov eax, dword [0x49ead4]
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x49ead4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040ed43
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x10]
push 0x48ba94
push eax
call fcn.00407d26
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x14]
call fcn.00407844
push 0x48b2ec
mov eax, edi
push eax
call fcn.004078e0
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call fcn.00446273
test eax, eax
pop ecx
pop ecx
jne 0x410b92
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00407844
mov edi, dword [ebp - 0x10]
push edi
push 0x104
lea eax, [ebp]
push eax
push 0x485898
push str.Version
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x410bc2
lea eax, [ebp]
push eax
push esi
call fcn.00409107
lea eax, [ebx - 0x10]
call fcn.00408f63
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00446679
add ebp, 0x20c
leave
ret
Function at 0x410f0a
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x22c
mov eax, 0x47c71a
call fcn.0044ce70
xor esi, esi
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.00445850
add esp, 0xc
lea eax, [ebp - 0x228]
call fcn.0040f323
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00408ddf
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00408ddf
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00408ddf
add eax, 0x10
mov dword [ebp - 0x230], eax
push str.update_tempkwifi.txt
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 3
call fcn.004078e0
push str.datakwifimain.ini
lea ecx, [ebp - 0x224]
call fcn.0041298e
lea ecx, [ebp - 0x230]
mov dword [esp], str.uplive.svr
call fcn.0041298e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
push dword [ebp - 0x22c]
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 0x49f920
je 0x41108b
push dword [ebp - 0x224]
call edi
test eax, eax
je 0x41108b
push dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x485898
push 0x4859e8
push 0x4859ec
call ebx
test eax, eax
jbe 0x41108b
lea eax, [ebp - 0x220]
push eax
call fcn.00446663
cmp eax, 0xa
pop ecx
jne 0x41108b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00409130
mov byte [ebp - 4], 4
push dword [ebp - 0x224]
push dword [ebp - 0x234]
push 0x48b144
push str.infos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp - 0x234]
push str.KUpdater::SaveVersionToMainIni_version:_ws
call fcn.00415020
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00408f63
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x485898
mov edi, str.Version
push edi
push str.Common
call ebx
lea eax, [ebp - 0x220]
push eax
call fcn.00446663
test eax, eax
pop ecx
je 0x4110d9
push dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
push edi
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x220]
push eax
push str.KUpdater::SaveVersionToMainIni_DisplayVersions:_ws
call fcn.00415020
mov eax, dword [ebp - 0x230]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00408f63
xor eax, eax
inc eax
call fcn.0044ceba
ret
Function at 0x411259
Capabilities:
Resolve dns

Disassembly:
push 0x1c
mov eax, 0x479ed3
call fcn.0044ce07
mov eax, dword [0x49ead4]
xor edi, edi
mov ecx, 0x49ead4
inc edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov dword [ebp - 0x28], str.www.baidu.com
mov dword [ebp - 0x24], str.www.qq.com
mov dword [ebp - 0x20], str.www.sina.com
mov dword [ebp - 0x1c], str.www.sohu.com
mov dword [ebp - 0x18], str.www.xunlei.com
mov dword [ebp - 0x14], str.www.163.com
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00446bc2
pop ecx
call fcn.00446bcf
push 6
pop ecx
xor edx, edx
div ecx
push dword [ebp + edx*4 - 0x28]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x411304
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push 0x4859a4
push eax
call fcn.00409eb8
mov esi, dword [ebp - 0x10]
push esi
call fcn.00411314
add esp, 0x1c
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00408f63
mov eax, edi
call fcn.0044cea6
ret

Function at 0x411314
Capabilities:
Send icmp echo request

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x388], eax
mov eax, dword [ebp + 0x394]
push ebx
push esi
push edi
mov esi, str.test_net
lea edi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f7
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.00445850
add esp, 0xc
mov dword [ebp - 0x7c], 1
call sub.iphlpapi.dll_IcmpCreateFile
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4113b9
mov esi, 0x41c
push esi
call fcn.00445215
mov edi, eax
test edi, edi
pop ecx
je 0x4113a8
push 0x2710
push esi
push edi
push 0
push 0x400
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
push ebx
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x4113a8
and dword [ebp - 0x7c], 0
push ebx
call sub.iphlpapi.dll_IcmpCloseHandle
test edi, edi
je 0x4113b9
push edi
call fcn.00445a2a
pop ecx
mov ecx, dword [ebp + 0x388]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446679
add ebp, 0x38c
leave
ret