joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4993bb
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4cc99c]
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
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], ebx
call fcn.004022c0
push 9
push str._setting_
lea ecx, [ebp - 0x414]
mov dword [ebp - 4], ebx
call fcn.00402ab0
push 0x3fe
lea ecx, [ebp - 0x40e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x418], 1
mov word [ebp - 0x410], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
push ecx
push edi
push edx
push SysReAllocString
mov dword [ebp - 0x41c], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x467426
xor eax, eax
push ebx
mov word [esi], ax
push 0x4ab248
jmp 0x46744b
xor ecx, ecx
lea eax, [ebp - 0x410]
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x467434
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x410]
push edx
mov ecx, esi
call fcn.004027c0
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x4674a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4cc99c]
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
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], ebx
call fcn.004022c0
push 7
push str._setup_
lea ecx, [ebp - 0x414]
mov dword [ebp - 4], ebx
call fcn.00402ab0
cmp edi, ebx
jne 0x467512
xor eax, eax
jmp 0x467526
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x467517
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x414]
call fcn.00402ab0
push 0x3fe
lea edx, [ebp - 0x40e]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x418], 1
mov word [ebp - 0x410], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x418]
push edx
push eax
push ecx
push SysReAllocString
mov dword [ebp - 0x420], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x4675ae
xor edx, edx
push ebx
mov word [esi], dx
push 0x4ab248
jmp 0x4675d7
xor ecx, ecx
lea eax, [ebp - 0x410]
mov word [esi], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4675c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x410]
push edx
mov ecx, esi
call fcn.004027c0
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x467630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea ecx, [ebp - 0x408]
call fcn.004022c0
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x410], 1
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
mov edx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x410]
push ecx
push str.CurrentVersion
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x467707
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.MSVCR100.dll__wtof]
fcomp qword [0x4a6320]
add esp, 4
fnstsw ax
test ah, 1
jne 0x467707
mov eax, dword [ebp - 0x408]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4676f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x408]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x467740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499469
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4cc99c]
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
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov byte [ebx], al
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
add esp, 4
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x467802
test edi, edi
jne 0x4677c2
xor eax, eax
jmp 0x4677eb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4677d5
xor eax, eax
jmp 0x4677eb
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403590
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4677f0
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00403870
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x24]
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x467830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4994a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4cc99c]
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
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00497652
add esp, 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4678f3
test ebx, ebx
jne 0x4678ac
xor edi, edi
jmp 0x4678d7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4678bf
xor edi, edi
jmp 0x4678d7
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00403590
mov edi, eax
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4678e0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403870
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push 1
xor edi, edi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x4c], 0x5c
call fcn.00454ee0
cmp eax, 0xffffffff
jne 0x467940
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push 0x4ab7d8
mov ecx, esi
mov byte [esi], 0
call fcn.00403870
cmp dword [ebp - 0x18], 0x10
jb 0x4679be
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4679b6
inc eax
push eax
push edi
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004140e0
push 0xd
push str.Program_Files
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0043e020
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403970
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
mov ecx, esi
mov byte [esi], 0
call fcn.00414120
mov ebx, 0x10
cmp dword [ebp - 0x34], ebx
jb 0x46799f
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x4679be
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
lea esp, [ebp - 0x60]
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.00497792
mov esp, ebp
pop ebp
ret
Function at 0x4684e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1088
call fcn.004978c0
mov edi, eax
add esp, 4
test edi, edi
je 0x46853e
push 0x80
lea eax, [edi + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
push 0x1000
lea ecx, [edi + 0x84]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [edi + 0x1084], 0
mov dword [edi], 0
jmp 0x468540
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x468585
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jg 0x468585
lea eax, [ebx + ebx]
call fcn.00497dd0
mov esi, esp
test esi, esi
je 0x468585
mov eax, dword [ebp + 0x10]
push ebx
push esi
push 0xffffffffffffffff
xor edx, edx
push eax
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x468587
xor eax, eax
mov esi, dword [sym.imp.MSVCR100.dll_swprintf_s]
push eax
push 0x4ab4fc
lea ecx, [edi + 4]
push 0x40
push ecx
call esi
mov edx, dword [ebp + 0xc]
push edx
push 0x4ab4fc
lea eax, [edi + 0x84]
push 0x800
push eax
call esi
mov ecx, dword [ebp + 8]
add esp, 0x20
lea edx, [ebp - 8]
push edx
push 0
push edi
push 0x468350
push 0
push 0
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4685db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret

Function at 0x468a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x844
call fcn.004978c0
mov esi, eax
add esp, 4
test esi, esi
je 0x468a42
push 0x40
lea eax, [esi + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
push 0x800
lea ecx, [esi + 0x44]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [esi], 0
jmp 0x468a44
xor esi, esi
mov edx, dword [ebp + 8]
mov dword [esi], edx
mov edx, dword [ebp + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468a51
sub eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_strcpy_s]
push edx
inc eax
push eax
lea eax, [esi + 0x44]
push eax
call edi
mov ecx, dword [ebp + 0x10]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x468a74
sub eax, edx
push ecx
inc eax
push eax
lea ecx, [esi + 4]
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x4685f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
test eax, eax
je 0x468aad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4696f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4997a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4cc99c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x10]
call fcn.004022c0
push 0x10
push 0x4a5348
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00402ab0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x4cf018
lea ecx, [ebp - 0x18]
push ecx
push str.UninstallString
push edx
push SysReAllocString
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or edx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
je 0x4697a5
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469791
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4ab248
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4697be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4cf018
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46b290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x463cd0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x46daa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4cc99c]
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
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], ebx
call fcn.004022c0
push 7
push str._setup_
lea ecx, [ebp - 0x414]
mov dword [ebp - 4], ebx
call fcn.00402ab0
cmp edi, ebx
jne 0x46db09
xor eax, eax
jmp 0x46db1f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46db10
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x414]
call fcn.00402ab0
push 0x3fe
lea ecx, [ebp - 0x40e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x418], 1
mov word [ebp - 0x410], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
push ecx
push str.Name
push edx
push SysReAllocString
mov dword [ebp - 0x41c], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
je 0x46dbac
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x4ab248
mov ecx, esi
mov word [esi], ax
call fcn.004027c0
jmp 0x46dbf5
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x410]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x420], esp
mov word [ecx], dx
lea edi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x46dbd0
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004027c0
push esi
call fcn.0046a3b0
add esp, 0x20
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dc1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x46e280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, 7
mov esi, str.hfgwupdate.exe
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x400
lea ecx, [ebp - 0x8ec]
push ecx
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46e313
lea edx, [ebp - 0x8ec]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
add eax, 2
je 0x46e313
lea ecx, [ebp - 0x24]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x46e2e1
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x8ec]
sub edx, ecx
sar edx, 1
mov ecx, 0x400
sub ecx, edx
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
call fcn.0046e110
push 0xc6
push 0
test eax, eax
je 0x46e397
lea eax, [ebp - 0xea]
xor edx, edx
push eax
mov word [ebp - 0xec], dx
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push 0x4b2700
lea ecx, [ebp - 0xec]
push ecx
call esi
push ebx
lea edx, [ebp - 0xec]
push edx
call esi
push 0x3c
lea eax, [ebp - 0x928]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x8ec]
lea edx, [ebp - 0xec]
lea eax, [ebp - 0x928]
mov dword [ebp - 0x91c], str.runas
mov dword [ebp - 0x918], ecx
mov dword [ebp - 0x914], edx
push eax
jmp 0x46e409
lea edx, [ebp - 0xea]
xor ecx, ecx
push edx
mov word [ebp - 0xec], cx
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push 0x4b2700
lea eax, [ebp - 0xec]
push eax
call esi
push ebx
lea ecx, [ebp - 0xec]
push ecx
call esi
push 0x3c
lea edx, [ebp - 0x928]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8ec]
lea ecx, [ebp - 0xec]
lea edx, [ebp - 0x928]
mov dword [ebp - 0x91c], str.open
mov dword [ebp - 0x918], eax
mov dword [ebp - 0x914], ecx
push edx
mov dword [ebp - 0x928], 0x3c
mov dword [ebp - 0x90c], 1
mov dword [ebp - 0x924], 0x540
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497792
mov esp, ebp
pop ebp
ret
Function at 0x473d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x46b2c0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x47a2c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ad98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cc99c]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
cmp dword [eax + 0x14], 8
jb 0x47a2fe
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47a335
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
cmp eax, 0x6400000
jbe 0x47a35f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
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 - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
inc eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
cmp eax, ebx
ja 0x47a381
push 0xffffffffffffffff
push eax
call fcn.00403b10
jmp 0x47a388
push ebx
push eax
call fcn.004570f0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47a394
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push ebx
lea ecx, [ebp - 0x30]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00414120
cmp dword [ebp - 0x18], 0x10
jb 0x47a341
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x47a341
Function at 0x47a3e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49add0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
mov dword [ebp - 0x68], 0x2e
call fcn.00408640
mov edi, eax
test edi, edi
jle 0x47a4e5
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.00408400
push edi
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00408400
cmp dword [ebp - 0x38], 5
mov byte [ebp - 4], 1
mov edi, 8
ja 0x47a4b3
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x47a46a
lea eax, [ebp - 0x48]
push eax
call fcn.0047a0b0
add esp, 4
test eax, eax
je 0x47a4b3
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00408d40
mov eax, dword [ebp - 0x64]
add esp, 0xc
cmp dword [ebp - 0x50], edi
jae 0x47a493
lea eax, [ebp - 0x64]
cmp dword [esi + 0x14], edi
jb 0x47a49a
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x50], edi
jb 0x47a4b3
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x47a4c4
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x34], edi
jb 0x47a4e5
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret