joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4607cd
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.test_net
mov dword [ebp - 0x408], ecx
lea edi, [ebp - 0x404]
push 0x3f7
lea eax, [ebp - 0x3fb]
movsd dword es:[edi], dword [esi]
push 0
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0042ac90
add esp, 0xc
xor edi, edi
inc edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x460874
push 0x41c
call fcn.00426214
mov esi, eax
pop ecx
test esi, esi
je 0x460862
push 0x2710
push 0x41c
push esi
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
push ebx
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
test esi, esi
je 0x460874
push esi
call fcn.0042620f
pop ecx
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 0x460887
Capabilities:
Resolve dns

Disassembly:
push 0x20
mov eax, 0x4727ac
call fcn.0044f666
mov eax, dword [0x49ccf0]
xor edi, edi
mov ecx, 0x49ccf0
inc edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], 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.0043ac66
pop ecx
call fcn.0043ac45
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 0x460933
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x2c]
push str._d._d._d._d
push eax
call fcn.0040c669
mov esi, dword [ebp - 0x2c]
add esp, 0x18
mov ecx, esi
call fcn.004607cd
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040630c
mov eax, edi
call fcn.0044f621
ret
Function at 0x460943
Capabilities:
Acquire debug privileges

Disassembly:
push 0x30
push 0x4959e8
call fcn.0044f8d0
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4609ca
lea eax, [ebp - 0x40]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4609ca
xor edi, edi
inc edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 2
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004609e3
mov eax, ebx
call fcn.0044f919
ret
Function at 0x4609f6
Capabilities:
Query environment variable

Disassembly:
push 0x224
mov eax, 0x47281e
call fcn.0044f666
mov edi, ecx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0042ac90
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, edi
push 1
push eax
call fcn.004040a0
push 0x487c24
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00404683
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040630c
add bl, 1
je 0x460c06
push 0x487c28
call fcn.004394f4
mov ebx, eax
mov dword [esp], str.SystemRoot_
mov dword [ebp - 0x21c], ebx
call fcn.004394f4
pop ecx
mov dword [ebp - 0x220], eax
mov ecx, edi
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004040a0
push 0x487c28
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00404683
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, edi
add bl, 1
je 0x460b02
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004040e7
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.004042c7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
jmp 0x460be4
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.004040a0
push str.SystemRoot_
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00404683
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
add bl, 1
je 0x460be4
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x220]
inc eax
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004040e7
mov esi, eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040651c
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.0040404b
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004042c7
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.0040630c
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
cmp dword [eax - 0xc], 3
jg 0x460bf5
call fcn.004062d7
jmp 0x460c09
push 1
call fcn.00404315
cmp ax, 0x3a
je 0x460c06
mov ecx, edi
jmp 0x460bee
xor esi, esi
inc esi
mov eax, esi
call fcn.0044f621
ret
Function at 0x460c11
Capabilities:
Enumerate process modules

Disassembly:
push 0x430
mov eax, 0x472851
call fcn.0044f666
mov edi, edx
push ecx
push 8
mov dword [ebp - 0x438], 0x428
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x460c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetProcessModules_CreateToolhelp32Snapshot_failed__error:_d
push 0x49db70
call fcn.0046ad90
add esp, 0xc
jmp 0x460cc5
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x460cba
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.004609f6
test eax, eax
je 0x460c9a
lea eax, [ebp - 0x43c]
mov ecx, edi
push eax
call fcn.00403f5b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x43c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x460c67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.0044f621
ret

Function at 0x460ea2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x22c
xor esi, esi
lea eax, [ebp - 0x230]
push esi
push eax
mov ebx, ecx
call fcn.0042ac90
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x460f3c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x460f31
mov eax, dword [ebp - 0x228]
mov ecx, ebx
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
call fcn.00403edf
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x460f02
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x460f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetAllProcess_error:_d
push 0x49db70
call fcn.0046ad90
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004261a3
mov esp, ebp
pop ebp
ret
Function at 0x460f68
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0x1ac
mov eax, 0x4728fb
call fcn.0044f666
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1b0], ebx
xor edi, edi
mov dword [ebp - 4], edi
push 0x48a9dc
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1b4], edi
call fcn.0040651c
mov dword [ebp - 4], edi
mov dword [ebp - 0x1b4], 1
cmp dword [0x49d874], edi
jne 0x460fcd
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x49d874], 1
mov edx, esi
lea ecx, [ebp - 0x1a8]
call fcn.0046227a
mov dword [ebp - 4], 1
call dword [0x49a054]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x46100c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x461010
mov eax, edi
jmp 0x46102e
lea esi, [eax + eax]
mov eax, esi
call fcn.0044f6e0
mov edx, dword [ebp - 0x1a4]
mov ecx, esp
push dword [ebp - 0x1ac]
push esi
call fcn.0040c7a0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4610e5
push 0x4874c5
lea ecx, [ebp - 0x1a4]
call fcn.0040a985
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 - 0x1a4]
push 0x4875b8
push eax
call fcn.0040c669
mov eax, dword [ebp - 0x1a4]
add esp, 0xc
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x4610b5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x4610b5
lea eax, [esi + esi]
call fcn.0044f6e0
mov edx, dword [ebp - 0x1b0]
mov ecx, esp
push dword [ebp - 0x1ac]
push esi
call fcn.0040c76d
mov edi, eax
push edi
mov ecx, ebx
call fcn.004064f3
push dword [ebp - 0x1a8]
push dword [ebx]
push str.ip:_ws__url:_ws
push 0x49db70
call fcn.0046ad90
mov ecx, dword [ebp - 0x1a4]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040630c
mov ecx, dword [ebp - 0x1a8]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, ebx
lea esp, [ebp - 0x1c8]
call fcn.0044f621
ret

Function at 0x461190
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov ebx, edx
push esi
push 0x80
push 3
push esi
push 7
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4611c7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x461267
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ecx], esi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [edx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4612fe
push edi
push ebx
call fcn.00426214
mov edi, eax
pop ecx
test edi, edi
je 0x4612fd
push ebx
push esi
push edi
call fcn.0042ac90
add esp, 0xc
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4612f6
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x487c24
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4612f6
cmp dword [ebp - 8], esi
je 0x4612f6
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push edi
call fcn.0042620f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4619b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48bc04
push 0x67
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x461a25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x461a25
mov ebx, dword [ebp + 0x10]
cmp dword [ebx], edi
jae 0x4619ee
mov dword [ebx], edi
jmp 0x461a22
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x461a25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x461a27
push edi
push eax
push dword [ebp + 0xc]
call fcn.0042a190
add esp, 0xc
mov dword [ebx], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461fce
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x472bcb
call fcn.0044f632
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, 0x48a9dc
lea ecx, [ebp - 0x20]
push edi
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push edi
call fcn.0040651c
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040651c
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004064f3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
lea eax, [ebp - 0x1c]
push str._cid_d
push eax
call fcn.00406873
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004067c8
push esi
push ebx
push str.KHelper::DownloadFile_url:_ws_file:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x10
call edi
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, esi
cmp edi, 3
jge 0x462091
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00461ed1
pop ecx
test eax, eax
jne 0x4620bf
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x18]
sub eax, edi
push eax
push esi
call fcn.0045c3ae
jmp 0x462117
cmp edi, 5
jge 0x4620a1
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00461d8c
jmp 0x4620ba
cmp edi, 6
jge 0x4620b1
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00461a57
jmp 0x4620ba
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00461ed1
pop ecx
test eax, eax
je 0x462114
inc edi
cmp edi, 7
jl 0x46205d
mov edi, dword [ebp - 0x18]
push 7
pop ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
push eax
push ebx
push str.DownloadFile_return:_d__cost_time:_d__url:_ws__path:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040630c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, ebx
call fcn.0044f60c
ret
mov edi, dword [ebp - 0x18]
xor ebx, ebx
jmp 0x4620cb
Function at 0x462163
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x472c19
call fcn.0044f632
mov edi, edx
mov ebx, ecx
push 0x48a9dc
lea ecx, [ebp - 0x10]
or esi, 0xffffffff
call fcn.0040651c
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00461101
test eax, eax
je 0x462252
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edi
push ebx
call esi
test eax, eax
je 0x4621b3
xor esi, esi
jmp 0x462220
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s_del__x
push eax
call fcn.00406873
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
push edi
call fcn.0043ac18
pop ecx
pop ecx
test eax, eax
je 0x4621ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x46221c
push 0
push edi
push ebx
call esi
test eax, eax
jne 0x46220d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [ebp - 0x10]
mov esi, eax
call fcn.0043ac18
pop ecx
pop ecx
jmp 0x46221c
push 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
test esi, esi
jne 0x462252
push edi
lea ecx, [ebp - 0x14]
call fcn.0040651c
push 0x48a3bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406715
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push edi
push ebx
push esi
push str.RenameUpdate_return:_d__src:_ws__dst:_ws
push 0x49db70
call fcn.0046ad90
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov eax, esi
call fcn.0044f60c
ret

Function at 0x46239d
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x472cab
call fcn.0044f632
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040651c
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4623d8
test al, 0x10
jne 0x462425
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x462425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x462425
lea ecx, [ebp - 0x10]
call fcn.00462345
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x462428
mov ecx, eax
call fcn.0046239d
test eax, eax
je 0x462428
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x462425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x462428
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, esi
call fcn.0044f60c
ret
Function at 0x46243b
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x472cce
call fcn.0044f632
mov esi, edx
mov dword [ebp - 0x14], esi
mov ebx, ecx
push 0x48a9dc
lea ecx, [ebp - 0x10]
or edi, 0xffffffff
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.004064f3
push 0x48a3bc
lea ecx, [ebp - 0x10]
call fcn.00406715
push 0
push ebx
call fcn.0043a7bc
pop ecx
pop ecx
test eax, eax
je 0x46249a
push str.RebootUpdate_src_file_is_Not_exsist_
mov esi, 0x49db70
push esi
call fcn.0046ad90
pop ecx
pop ecx
jmp 0x4624f8
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call esi
push 0
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, 0x49db70
test eax, eax
jne 0x4624e3
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RebootUpdate_CopyFile_fail__error:_d__src:_ws__dst:_ws
push esi
call fcn.0046ad90
add esp, 0x14
lea ecx, [ebp - 0x10]
push ebx
call fcn.004064f3
push 5
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
push ebx
push edi
push str.RebootUpdate_return:_d__src:_ws__dst:_ws_errorcode:_d
push esi
call fcn.0046ad90
mov ecx, dword [ebp - 0x10]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, edi
call fcn.0044f60c
ret

Function at 0x462525
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
mov eax, dword [0x49dd40]
push esi
mov esi, ecx
mov dword [ebp - 0x210], esi
push edi
mov edi, 0x49dd44
test al, 1
jne 0x462576
or eax, 1
mov ecx, edi
push 0x49ccf0
mov dword [0x49dd40], eax
call fcn.00406102
push 0x474d99
call fcn.0042648d
pop ecx
mov ecx, dword [0x49dd44]
cmp dword [ecx - 0xc], 0
je 0x462587
add ecx, 0xfffffff0
jmp 0x4625c7
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4625be
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004064f3
mov ecx, edi
call fcn.00462c13
push str.drivers_
mov ecx, edi
call fcn.00406715
mov ecx, dword [0x49dd44]
lea ecx, [ecx - 0x10]
call fcn.0040609f
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
call fcn.004261a3
mov esp, ebp
pop ebp
ret
Function at 0x46295b
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x472d7f
call fcn.0044f666
mov dword [ebp - 0x64], edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov ebx, dword [ebp + 0xc]
or dword [ebp - 0x6c], 0xffffffff
push 0x48a9dc
mov dword [ebp - 0x68], edi
call fcn.0040651c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push edi
call fcn.004064f3
push 0x48a6c0
lea ecx, [ebp - 0x60]
call fcn.00406715
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x60]
push edi
push ecx
mov ecx, esi
call fcn.00461fce
pop ecx
pop ecx
test eax, eax
je 0x4629cf
push dword [ebp - 0x60]
push str.DownloadPatchAndMerge_DownloadFile_fail__file:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0xc
jmp 0x462b0f
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x58]
push esi
call fcn.00404026
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push dword [ebp - 0x60]
call fcn.00404026
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
call fcn.00404026
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0046b015
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
call fcn.0040458c
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040458c
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040458c
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x462a5a
push dword [ebp - 0x64]
push eax
push str.DownloadPatchAndMerge_Merge7ZBsDiffFile_return:_d__file:_ws
push 0x49db70
call fcn.0046ad90
add esp, 0x10
jmp 0x462b0f
test ebx, ebx
je 0x462ae5
push 0x48a9dc
lea ecx, [ebp - 0x5c]
call fcn.0040651c
mov edx, esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0046d688
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x64]
mov edx, esi
push eax
call fcn.0040b15d
push ebx
push dword [ebp - 0x5c]
call fcn.004399d2
add esp, 0xc
test eax, eax
je 0x462ace
push dword [ebp - 0x5c]
push ebx
push esi
push str.DownloadPatchAndMerge_md5_is_dismatch__filename:_s_expect_md5:_s_calc_md5:_s
push 0x49db70
call fcn.0046ad90
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
jmp 0x462b0f
lea ecx, [esi - 0x10]
call fcn.0040630c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.0040630c
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
and dword [ebp - 0x5c], 0
call fcn.00461190
cmp edi, dword [ebp - 0x5c]
jbe 0x462b02
sub edi, dword [ebp - 0x5c]
push edi
call fcn.0045c37a
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
call fcn.0040630c
mov eax, dword [ebp - 0x6c]
call fcn.0044f621
ret