joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f82
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401128
push 0x4040c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x402064], 0xffffffff
or dword [0x402068], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x402060]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40205c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40206c], eax
call fcn.004040b3
cmp dword [0x402230], 0
jne 0x404005
push 0x4040b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040409e
push 0x40200c
push 0x402008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x402058]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x402054]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x402004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00403b00
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x10011be
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1002018]
push 0x104
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x174], ecx
push 1
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ecx
push eax
call fcn.01001149
cmp eax, 1
jl 0x100129e
push ebx
xor ebx, ebx
cmp byte [ebp - 0x160], bl
push esi
lea esi, [ebp - 0x160]
je 0x1001238
cmp byte [esi], 0x3a
je 0x100121b
inc esi
cmp byte [esi], bl
jne 0x100120f
jmp 0x100121e
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x1001238
push 0x10010ac
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100123e
lea esi, [ebp - 0x160]
push 0x29
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100129c
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x100129c
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x100129c
push ebx
lea eax, [ebp - 0x170]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01001324
leave
ret 0x10
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4a1520], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x4a1120]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4a1520]
inc edx
mov dword [edx*4 + 0x4a151c], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x4a0be8], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x4a0be8], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x486ac8]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x486ac0], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x486ac8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x40a059
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40a0c4
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40a0c4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40a0b4
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, 1
jmp 0x40a0c6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret 4

Function at 0x40a0d6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.0040a059
push esi
test al, al
jne 0x40a105
push 0x7d
call fcn.00413260
pop ecx
pop ecx
xor eax, eax
jmp 0x40a16a
mov ecx, edi
call fcn.00409fe0
test al, al
jne 0x40a115
push esi
push 0x7e
jmp 0x40a0fa
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionSvchost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a167
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
call fcn.00407a3e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0040782f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret 4

Function at 0x40a1c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov esi, ecx
call fcn.004558f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a215
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a311
push ebx
push 0x19
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a238
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a311
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret
Function at 0x40a246
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004558f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a2aa
lea eax, [ebp - 0x20c]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
call fcn.0046440b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a311
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret

Function at 0x40a2b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004558f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a311
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret

Function at 0x40a39e
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x20c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004558f0
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004558f0
add esp, 0x18
lea eax, [ebp - 0x20c]
push ebx
cmp dword [ebp + 8], ebx
je 0x40a3ec
push 0x17
jmp 0x40a3ee
push 2
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a43b
push 0x4811f0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4811fc
push eax
call fcn.0040a7e5
push ecx
push ecx
lea eax, [ebp - 0x414]
mov ecx, esp
push eax
call fcn.00407a3e
mov ecx, esi
call fcn.0040a5e2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042675a
leave
ret 4

Function at 0x40a44c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004558f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0xb
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a49d
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a311
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret

Function at 0x40a4aa
Capabilities:
Get common file path

Disassembly:
push esi
push 0
mov esi, ecx
call fcn.0040a39e
push 1
mov ecx, esi
call fcn.0040a39e
mov ecx, esi
call fcn.0040a1c4
mov ecx, esi
call fcn.0040a44c
mov ecx, esi
call fcn.0040a2b7
mov ecx, esi
pop esi
jmp fcn.0040a246
Function at 0x40a4da
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49f068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004558f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a5d3
push esi
lea eax, [ebp - 0x20c]
push 0x481278
push eax
call fcn.0040a7e5
lea eax, [ebp - 0x20c]
push str..gyx
push eax
call fcn.00455f1d
add esp, 0x14
test eax, eax
je 0x40a550
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40a5d3
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x40a573
push str..gyx
push esi
push 0x48128c
push eax
call fcn.0040a7e5
add esp, 0x10
jmp 0x40a588
push edi
push str..gyx
push esi
push str._s_s_d
push eax
call fcn.0040a7e5
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a5b2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a5b2
cmp edi, 0xa
jg 0x40a5d2
inc edi
jmp 0x40a553
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0046443c
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042675a
leave
ret 4
Function at 0x40a5e2
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2a0
mov eax, 0x47c1b1
call fcn.004267c5
mov edi, ecx
xor ebx, ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040778e
mov esi, 0x481264
mov byte [ebp - 4], 1
push esi
call fcn.00458389
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00407868
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a75c
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40a75c
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x40a648
cmp word [ebp - 0x27a], 0
je 0x40a648
cmp word [ebp - 0x27a], ax
jne 0x40a687
cmp word [ebp - 0x278], 0
je 0x40a648
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407a3e
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push eax
je 0x40a706
call fcn.0040778e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00407868
push 0x48066c
call fcn.00458389
pop ecx
push eax
push 0x48066c
lea ecx, [ebp - 0x28]
call fcn.00407868
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040778e
mov ecx, edi
call fcn.0040a5e2
jmp 0x40a743
call fcn.0040778e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.00407868
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00407a3e
mov ecx, edi
call fcn.0040a7a6
lea ecx, [ebp - 0x28]
call fcn.0040782f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040782f
jmp 0x40a648
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a78e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x58]
call fcn.0040782f
lea ecx, [ebp + 8]
call fcn.0040782f
call fcn.00426780
ret 0x18

Function at 0x40af9d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40afdb
push str.HKTcsc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40afdd
Capabilities:
Check if file exists

Disassembly:
push 0x66c
mov eax, 0x47c2de
call fcn.004267c5
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x628]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.004558f0
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004558f0
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004558f0
add esp, 0x24
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
push str.ed292
call fcn.0040b149
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push str.4bb5c
call fcn.0040b149
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
push str.e24b1
call fcn.0040b149
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b143
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x658]
call fcn.00407a3e
cmp dword [ebp - 0x648], 0
mov dword [ebp - 4], ebx
je 0x40b121
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00412ae6
mov edi, str.HaoKaIic.dll
mov byte [ebp - 4], 1
push edi
call fcn.00458389
add esp, 0xc
lea ecx, [ebp - 0x640]
push eax
push edi
call fcn.00407868
lea ecx, [ebp - 0x678]
call fcn.00409f7c
cmp dword [ebp - 0x644], 8
lea ecx, [ebp - 0x658]
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x658]
cmp dword [ebp - 0x62c], 8
push ecx
cmovae eax, dword [ebp - 0x640]
lea ecx, [ebp - 0x678]
push eax
call fcn.0040a17a
lea ecx, [ebp - 0x678]
call fcn.00409fc4
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], bl
call fcn.0040782f
mov ecx, esi
call fcn.0040af9d
lea ecx, [ebp - 0x628]
push ecx
call fcn.004136e0
pop ecx
lea ecx, [ebp - 0x658]
call fcn.0040782f
xor eax, eax
inc eax
call fcn.00426780
ret

Function at 0x40b149
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push edi
push eax
xor edi, edi
mov ebx, 0x20119
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x40b1c5
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.HKTcsc
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40b1c5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
push dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x40b1bb
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], edi
je 0x40b1c5
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b4d7
Capabilities:
Check if file exists

Disassembly:
push 0xb0
mov eax, 0x47c37b
call fcn.004267c5
mov esi, ecx
lea eax, [ebp - 0x58]
push eax
call fcn.00409c4e
mov ecx, eax
call fcn.00414bd6
lea edi, [esi + 0x7c]
push eax
mov ecx, edi
call fcn.00407010
lea ecx, [ebp - 0x58]
call fcn.0040782f
call fcn.00409c4e
mov ecx, eax
call fcn.00415ae5
cmp dword [edi + 0x14], 8
mov bl, al
jb 0x40b521
mov edi, dword [edi]
push edi
lea ecx, [esi + 0xac]
call fcn.00420334
mov edi, dword [ebp + 8]
test bl, bl
jne 0x40b543
test edi, edi
jne 0x40b543
mov ecx, esi
call fcn.0040b1cc
test eax, eax
je 0x40b54a
mov ecx, esi
call fcn.0040afdd
cmp dword [esi + 0xfc], 0
jne 0x40b55f
test bl, bl
jne 0x40b55f
test edi, edi
je 0x40b62e
lea ecx, [ebp - 0xbc]
call fcn.0040c48d
xor esi, esi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], esi
call fcn.0040cf14
push 0x480574
push str.41dba
lea eax, [ebp - 0x28]
push 0x48131c
push eax
call fcn.00409c4e
mov ecx, eax
call fcn.00414c14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
je 0x40b61b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b61b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5c
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [ebp - 0x18]
push eax
call fcn.0040aa74
add esp, 0x10
test eax, eax
jle 0x40b61b
push eax
xor ecx, ecx
mov dword [ebp - 0x30], esi
push esi
lea eax, [ebp - 0x28]
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
call fcn.00406b80
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407010
lea ecx, [ebp - 0x40]
call fcn.0040782f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004136e0
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040782f
lea ecx, [ebp - 0xbc]
call fcn.0040c4e2
call fcn.00426780
ret 4

Function at 0x40b6ee
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b72a
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4