joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462cc4
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x462d38
lea eax, [ebp - 0x18]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x462d38
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x462d38
xor ecx, ecx
mov dword [ebp - 8], 2
push ecx
push ecx
push ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ecx
push dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
cmovne edi, ebx
cmp dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x462d4d
push dword [ebp - 0x18]
call ebx
and dword [ebp - 0x18], 0
test esi, esi
je 0x462d54
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004261a3
mov esp, ebp
pop ebp
ret
Function at 0x46485a
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4732eb
call fcn.0044f632
cmp dword [0x49db0c], 1
jae 0x464879
call fcn.004649db
jmp 0x46490c
mov ecx, dword [0x49daf4]
lea ecx, [ecx - 0x10]
call fcn.0040609f
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x49db00], edi
je 0x4648aa
push 0x49daf8
lea ecx, [ebp - 0x10]
call fcn.004042c7
mov esi, dword [ebp - 0x10]
push 3
push esi
mov ecx, 0x49db04
call fcn.0046e1aa
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040630c
mov edx, dword [0x49dae8]
mov eax, edx
mov ecx, dword [0x49dae4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4648fb
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x49dae8]
inc edi
mov ecx, dword [0x49dae4]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4648da
push edx
push ecx
call fcn.0040456c
mov eax, dword [0x49dae4]
mov dword [0x49dae8], eax
push str.KRebootConfigWritter::SaveRebootConfig_end
push 0x49db70
call fcn.0046ad90
pop ecx
pop ecx
call fcn.0044f60c
ret

Function at 0x464923
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x47330e
call fcn.0044f632
push 0x49ccf0
lea ecx, [ebp - 0x10]
call fcn.00406102
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
cmp dword [0x49db00], 0
je 0x464953
push 0x49daf8
jmp 0x464958
push 0x49daf4
call fcn.004042c7
mov esi, dword [ebp - 0x10]
mov ecx, 0x49db04
push 3
push esi
call fcn.0046e1aa
mov edi, eax
push edi
push str.KRebootConfigWritter::AddRebootFile_Save_config_file_return:_d
push 0x49db70
call fcn.0046ad90
add esp, 0xc
test edi, edi
jne 0x464989
push esi
jmp 0x4649a0
cmp dword [0x49db00], 0
je 0x46499a
push dword [0x49daf4]
jmp 0x4649a0
push dword [0x49daf8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040630c
call fcn.0044f60c
ret
Function at 0x464d59
Capabilities:
Copy file

Disassembly:
push 0x20
mov eax, 0x473443
call fcn.0044f632
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004647ce
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040609f
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2c], ebx
mov esi, 0x48a3bc
mov byte [ebp - 4], 1
push esi
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00406651
pop ecx
mov edi, 0x49ccf0
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x14]
call fcn.00406102
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov edx, 0x49dafc
lea ecx, [ebp - 0x18]
call fcn.0040404b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
mov edx, 0x49dafc
lea ecx, [ebp - 0x28]
call fcn.0040404b
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00406651
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push edi
lea ecx, [ebp - 0x1c]
call fcn.00406102
mov byte [ebp - 4], 8
push 0
push dword [ebp - 0x18]
call fcn.0043a7bc
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x464e27
lea eax, [ebp - 0x24]
push eax
call fcn.004042c7
lea eax, [ebp - 0x18]
jmp 0x464e33
lea eax, [ebp - 0x2c]
push eax
call fcn.004042c7
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x49dae4
call fcn.00403f5b
lea eax, [ebp - 0x14]
mov edx, 0x49dafc
push eax
lea ecx, [ebp - 0x28]
call fcn.0040404b
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.004042c7
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov edx, edi
call fcn.0046d791
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
call fcn.0046d706
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.KRebootConfigWritter::AddRebootBackFile_CopyFile_return:_d__errorcode:_d__relate_path:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x14
test esi, esi
mov esi, dword [ebp - 0x14]
je 0x464f21
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.0046d688
mov byte [ebp - 4], 0xb
mov ecx, 0x49db04
push dword [ebp - 0x10]
push str.path
push dword [eax]
call fcn.0046e14a
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0046d688
push esi
push 0x48c058
mov byte [ebp - 4], 0xc
mov ecx, 0x49db04
push dword [eax]
call fcn.0046e14a
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040630c
lea ecx, [edi - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040630c
lea ecx, [esi - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040630c
lea ecx, [ebx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040630c
call fcn.0044f60c
ret 8
Function at 0x4657b3
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x4735e2
call fcn.0044f632
mov ebx, ecx
push 0x48a9dc
lea ecx, [ebp - 0x14]
xor edi, edi
call fcn.0040651c
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
je 0x465813
push dword [ecx + 0x14]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x465803
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00403cd6
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebx + 0x10]
jne 0x4657df
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x465852
push ecx
push dword [esi + 0x1c]
call fcn.0046563a
test eax, eax
je 0x465842
push dword [esi + 0x1c]
inc edi
push str.KReupdate::ExitActiveProcess_fail_to_exit_process:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00403cd6
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebx + 0x10]
jne 0x46581f
push edi
push str.KReupdate::ExitActiveProcess_fail_count:_d
push 0x49db70
call fcn.0046ad90
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, edi
call fcn.0044f60c
ret

Function at 0x467924
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x473aba
call fcn.0044f632
push 0x48a9dc
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0040651c
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov esi, ebx
call fcn.0045b489
mov ecx, eax
call fcn.0045b6db
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004042c7
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push ebx
push dword [ebp - 0x10]
call fcn.0043a7bc
pop ecx
pop ecx
test eax, eax
jne 0x4679ab
push dword [ebp - 0x10]
push 0xffffffffffffffff
push str.tryno
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [0x49d890]
cmp esi, eax
je 0x4679b0
xor ecx, ecx
inc ecx
mov ebx, ecx
mov dword [0x49d9b4], ecx
jmp 0x4679b0
mov eax, dword [0x49d890]
push eax
push esi
push str.KUpdateInst::CheckTryNoChanged_newTryNo:_d_oldTryNo:_d
push 0x49db70
call fcn.0046ad90
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, ebx
call fcn.0044f60c
ret
Function at 0x467b89
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x26c
mov eax, 0x473b34
call fcn.0044f666
mov dword [ebp - 0x274], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x26c]
mov edi, 0x48a9dc
or esi, 0xffffffff
push edi
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
push edi
call fcn.0040651c
push 0x250
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0042ac90
add esp, 0xc
lea ecx, [ebp - 0x26c]
push ebx
call fcn.004064f3
push ebx
lea eax, [ebp - 0x268]
push str._s.
push eax
call fcn.00406873
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, esi
je 0x467d37
lea eax, [ebp - 0x234]
push 0x487d20
push eax
call fcn.00439b47
pop ecx
pop ecx
test eax, eax
je 0x467d18
lea eax, [ebp - 0x234]
push 0x48d6dc
push eax
call fcn.00439b47
pop ecx
pop ecx
test eax, eax
je 0x467d18
test byte [ebp - 0x260], 0x10
je 0x467ca7
push 0x49ccf0
lea ecx, [ebp - 0x270]
call fcn.00406102
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
push ebx
lea eax, [ebp - 0x270]
push str._s_s_
push eax
call fcn.00406873
mov esi, dword [ebp - 0x270]
add esp, 0x10
mov ecx, dword [ebp - 0x274]
push esi
call fcn.00467b89
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x467d13
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040651c
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.00406f35
push dword [ebp - 0x264]
call fcn.00467af2
test eax, eax
jne 0x467d06
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x278]
call fcn.0040404b
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.0040630c
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x467c1d
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040630c
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, esi
call fcn.0044f621
ret 4
Function at 0x468ca6
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x473d50
call fcn.0044f632
mov esi, ecx
mov dword [ebp - 0x18], esi
or dword [ebp - 0x10], 0xffffffff
xor edi, edi
push 0xd
pop ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.004679d7
push str.KUpdateInst::DownloadIndex_...
push 0x49db70
call fcn.0046ad90
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
cmp eax, dword [esi + 0x10]
je 0x468da6
cmp dword [0x49d948], edi
jne 0x468da6
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
push 3
mov dword [ebp - 4], edi
pop edi
push 0xc
call fcn.004261dc
pop ecx
test eax, eax
je 0x468d32
lea ecx, [ebp - 0x10]
mov dword [eax], esi
mov dword [eax + 8], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x40cbdb
push ecx
push ecx
mov dword [eax + 4], fcn.0046780d
call fcn.0042ec2b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.00403edf
sub edi, 1
jne 0x468d03
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0046780d
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push 1
sub eax, ecx
sar eax, 2
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [ebp - 0x14], edi
jbe 0x468d8a
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x468d76
mov esi, dword [ebp - 0x18]
push 0xd
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
xor edi, edi
cmp dword [esi + 0x24], edi
je 0x468d9f
call fcn.00403f32
jmp 0x468db7
call fcn.00403f32
jmp 0x468db5
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0046780d
test eax, eax
jne 0x468db7
mov ebx, edi
push ebx
push str.KUpdateInst::DownloadIndex_return:_d
push 0x49db70
call fcn.0046ad90
add esp, 0xc
mov eax, ebx
call fcn.0044f60c
ret

Function at 0x4692a4
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push str.GlobalKUpdatingEvent1ECAA2B4_EFBC_4739_B9D6_A653515C8786
push edi
push 1
push edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push esi
push 0x469295
push edi
push edi
mov dword [esi + 0x1c], eax
call fcn.0042ec2b
add esp, 0x18
mov dword [esi + 8], eax
xor ecx, ecx
test eax, eax
setne cl
pop edi
pop esi
lea eax, [ecx - 1]
ret

Function at 0x46931f
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x473e23
call fcn.0044f632
lea eax, [ebp - 0x14]
push eax
call fcn.0045b489
mov ecx, eax
call fcn.0045b43a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0046d5a0
push str.kdump.dll
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00406651
pop ecx
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469377
mov ecx, dword [ebp - 0x10]
call fcn.0040eca3
test eax, eax
jns 0x469379
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040630c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, ebx
call fcn.0044f60c
ret
Function at 0x46964e
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xc
mov eax, 0x473f01
call fcn.0044f632
push 0x49ccf0
lea ecx, [ebp - 0x10]
call fcn.00406102
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.0045b489
mov ecx, eax
call fcn.0045b43a
push str.update
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406651
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004042c7
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov esi, dword [ebp - 0x10]
push 0
push esi
call fcn.0043a7bc
pop ecx
pop ecx
test eax, eax
jne 0x4696ea
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4696ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040630c
xor eax, eax
call fcn.0044f60c
ret
Function at 0x46980c
Capabilities:
Get disk size

Disassembly:
push 0x28
mov eax, 0x473f7a
call fcn.0044f632
mov dword [ebp - 0x14], ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x34], xmm0
call fcn.004600f5
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004040a0
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x10]
push eax
call fcn.004042c7
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x469944
shrd edi, ecx, 0x14
shr ecx, 0x14
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
ja 0x469928
jb 0x4698a9
cmp edi, 0xc8
jae 0x469928
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004053ea
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
add edi, 0x5c
mov byte [ebp - 4], 2
push 0x48a0f8
mov ecx, edi
call fcn.00468076
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push str.fast
call fcn.00468076
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push str.defend
call fcn.00468076
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ecx + 8]
call fcn.00459219
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
shrd ecx, eax, 0x14
push ecx
push dword [ebp - 0x24]
shr eax, 0x14
push esi
call fcn.0045c438
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00406e3e
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x24
push 1
mov eax, dword [edx + 0x60]
sub eax, dword [edx + 0x5c]
cdq
idiv dword [ebp - 0x18]
test eax, eax
pop eax
cmove ebx, eax
push ecx
push edi
push str.KDubaUpdate::CheckDiskSize_diskSpace:_I64d_MB
push 0x49db70
call fcn.0046ad90
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.0040630c
mov eax, ebx
call fcn.0044f60c
ret
Function at 0x46a818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x48e33c
push dword [0x49db84]
call fcn.00436285
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x46a852
push esi
push 2
lea eax, [ebp - 4]
mov word [ebp - 4], 0xfeff
push 1
push eax
call fcn.0043abc0
push esi
call fcn.00436370
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46a8d5
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x46a907
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 7
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a932
xor eax, eax
jmp 0x46a94d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x46a96b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x46a99b
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0043abc0
push dword [esi + 4]
push 4
push 1
push 0x48e330
call fcn.0043abc0
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x46ab89
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor ecx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0xec], cl
lea edi, [ebp - 0xeb]
mov dword [ebp - 0xd8], ecx
stosd dword es:[edi], eax
push 0xc8
push ecx
mov dword [ebp - 0xd4], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0xd0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xcc]
push eax
call fcn.0042ac90
push str.Chinese_simplified
push 0
call fcn.0043ad15
add esp, 0x14
mov ecx, 0x49db84
push esi
call fcn.004064f3
call fcn.0046a857
xor edi, edi
lea eax, [ebp - 0xec]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push edi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xc
push 0x49db88
mov dword [ebp - 0xd4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.Global83CCE1C0_91FA_4650_81FA_107399B9C05B__d
push eax
call fcn.0040f7ae
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push edi
push edi
lea eax, [ebp - 0xd8]
push eax
call esi
push 0
push 0
push edi
xor edi, edi
mov dword [0x49db78], eax
push edi
call esi
mov dword [0x49db7c], eax
cmp dword [0x49db78], edi
je 0x46acb6
test eax, eax
je 0x46acb6
push edi
push edi
push 0x49db70
push 0x46ab13
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x49db80], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x46acb8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004261a3
mov esp, ebp
pop ebp
ret 4
Function at 0x46aedb
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x49a02c]
xor eax, esp
mov dword [esp + 0x1f0], eax
push esi
lea ecx, [esp + 8]
call fcn.0045d46d
push 0x190
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0042ac90
add esp, 0xc
lea eax, [esp + 0x60]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46af45
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.localhost
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0046931f
call fcn.00460943
lea eax, [esp + 4]
push eax
call fcn.0045b489
mov ecx, eax
call fcn.0045b43a
lea ecx, [esp + 4]
call fcn.0046d5a0
push 0x48e350
lea ecx, [esp + 8]
call fcn.00406715
mov ecx, dword [esp + 4]
call fcn.0046d706
lea ecx, [esp + 4]
call fcn.0046d5a0
push str.klbupd.log
lea ecx, [esp + 8]
call fcn.00406715
push dword [esp + 4]
call fcn.0046ab89
push str._____________________________________________________________________
push 0x49db70
call fcn.0046ad90
pop ecx
lea ecx, [esp + 0xc]
call fcn.0045d30d
mov esi, eax
test esi, esi
jne 0x46afde
lea ecx, [esp + 8]
call fcn.0045d28d
lea ecx, [esp + 8]
mov esi, eax
call fcn.0045d2ed
call fcn.0046ab22
mov ecx, dword [esp + 4]
lea ecx, [ecx - 0x10]
call fcn.0040630c
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 8]
call fcn.0045d453
mov ecx, dword [esp + 0x1f4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004261a3
mov esp, ebp
pop ebp
ret 0x10