joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ec9b
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
push edi
test ebx, ebx
je 0x44ed1a
push ecx
xor esi, esi
xor eax, eax
push esi
push 0x400
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44ed1a
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x44ed0f
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0044eb5e
test eax, eax
je 0x44ed0f
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x44ed1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056cd75
leave
ret

Function at 0x44f327
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
mov eax, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
call fcn.0044ed2b
pop ecx
test eax, eax
je 0x44f450
push edi
mov eax, ebx
inc ebx
mov dword [ebp - 0x14], ebx
cmp eax, 0x12c
jg 0x44f44f
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x44f42d
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], esi
jb 0x44f37b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp byte [0x646558], 0
jne 0x44f390
call fcn.0044e9d9
mov byte [0x646558], 1
push ebx
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x44f3c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push edi
push dword [ebp - 4]
push ebx
push eax
push 0xc
pop edx
push 0x6e
pop ecx
call fcn.004f4320
add esp, 0x14
jmp 0x44f42d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44f3f5
cmp dword [ebp - 8], 0x103
je 0x44f3f5
push ecx
push 0
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
push 0xf
pop edx
push 0x6e
pop ecx
call fcn.004f4320
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x44f41e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push dword [ebp - 4]
push ebx
push eax
push 0xd
pop edx
push 0x6e
pop ecx
call fcn.004f4320
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.0044ed2b
mov ebx, dword [ebp - 0x14]
pop ecx
test eax, eax
jne 0x44f351
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450262
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x450282
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45032c
cmp dword [esi + 0x10], 0
je 0x45032c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4502a5
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4502af
mov ecx, dword [edi]
push ebx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x450327
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x450327
push str..new
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00452ffd
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x4502f0
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
je 0x45031f
cmp dword [esi + 0x14], 8
jb 0x450308
mov esi, dword [esi]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.00403d40
mov eax, ebx
pop ebx
jmp 0x45032e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret

Function at 0x450402
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x450422
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x450433
inc eax
jmp 0x4504ce
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov edi, esi
cmp dword [esi + 0x14], 8
jb 0x450455
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s._x.old
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b93c
add esp, 0x14
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x450480
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x20c]
push 1
push ecx
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x4504a7
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
jmp 0x4504ca
cmp dword [esi + 0x14], 8
jb 0x4504af
mov esi, dword [esi]
push ecx
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
pop edx
push 0x79
pop ecx
call fcn.004f4320
add esp, 0x14
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret
Function at 0x450bea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x450c4f
push str.TencentQQBrowser
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00591d35
add esp, 0xc
and dword [esi], 0
xor eax, eax
and dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00408fe7
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056cd75
leave
ret

Function at 0x451249
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.00573610
xor eax, eax
lea edi, [ebp - 0x10]
mov word [ebp - 0x24], ax
add esp, 0xc
stosd dword es:[edi], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push ecx
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4512c0
test ebx, ebx
je 0x4512ab
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x4512c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x453ce6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x453d84
push ebx
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push esi
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x6132e8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ebx
test eax, eax
jne 0x453d78
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00408fe7
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret
Function at 0x454f0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x454ff5
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x454ff5
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00573610
movzx eax, byte [ebp - 0x25d]
push eax
movzx eax, byte [ebp - 0x25e]
push eax
movzx eax, byte [ebp - 0x25f]
push eax
movzx eax, byte [ebp - 0x260]
push eax
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x54]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
push eax
call fcn.00454e34
add esp, 0x44
lea eax, [ebp - 0x25c]
push 0x208
push 0
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
jmp 0x454ff7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret
Function at 0x455a20
Capabilities:
Create directory
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x455aec
xor ecx, ecx
cmp cx, word [eax]
je 0x455aec
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x455aec
cmp cx, word [ebx]
je 0x455aec
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x455aec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x455ae5
cmp eax, 0x40000000
ja 0x455ae5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x455ada
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x455ad1
push esi
push ebx
push dword [ebp + 8]
push eax
call fcn.0045554c
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x455aee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455ea3
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x456834
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x63d284]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], ecx
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4569fb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4569f4
cmp edi, 0x400000
jae 0x4568db
push edi
call fcn.0056ca71
pop ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4568cf
cmp dword [esp + 0x14], edi
jne 0x4568cf
push dword [esp + 0x20]
push edi
push esi
call fcn.00456792
add esp, 0xc
push esi
call fcn.0056ca7a
pop ecx
jmp 0x4569f4
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [esp + 0x24], edx
cmp edx, 0xffffffff
je 0x4569fb
mov eax, edi
lea ecx, [esp + 0x28]
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x10], eax
call fcn.00455ea3
mov dword [esp + 0x14], esi
cmp dword [esp + 0x1c], eax
jbe 0x456970
push 0x10000
push eax
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4569ea
push 0x10000
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00455ec7
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x10000
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x456919
test di, di
je 0x4569a7
push esi
push dword [esp + 0x14]
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4569ea
sub edi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edi
mov edx, eax
call fcn.00455ec7
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
lea edi, [esp + 0x84]
stosd dword es:[edi], eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00455f63
mov edi, dword [esp + 0x20]
movzx eax, byte [esp + esi + 0x84]
push eax
push 0x613430
push 3
push edi
call fcn.0040b93c
add esp, 0x10
add edi, 4
inc esi
cmp esi, 0x10
jl 0x4569c8
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret
Function at 0x456b75
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0x26c
mov eax, 0x5d76ba
call fcn.0056d43d
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x264], edi
xor eax, eax
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0040ade6
push 0x20019
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x274], esi
call fcn.00454db1
test eax, eax
jne 0x456c67
mov eax, 0x15e
mov ecx, edi
push eax
mov dword [ebp - 0x264], eax
call fcn.0040c008
push 0x15e
mov ecx, edi
mov esi, eax
call fcn.0040c079
lea eax, [ebp - 0x264]
push eax
push esi
push str.Install
lea ecx, [ebp - 0x270]
call fcn.00454ceb
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c0a4
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x456c67
push 1
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0041e6fe
mov edx, 0x60db0c
mov ecx, dword [eax]
call fcn.0041eda5
mov ecx, dword [ebp - 0x264]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040bedb
test esi, esi
je 0x456c67
push 0x60db0c
mov ecx, edi
call fcn.0041f457
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x456ccf
push 0x104
mov ecx, edi
call fcn.0040c008
push 0x104
mov ecx, edi
mov esi, eax
call fcn.0040c079
push esi
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c0a4
push str.TencentQQ_
mov ecx, edi
call fcn.0041f457
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
je 0x456cc8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x456ccf
mov ecx, edi
call fcn.0041f4bd
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x456d0b
push ebx
mov ecx, edi
call fcn.0041f67c
push 0x60db0c
mov ecx, edi
call fcn.0041f457
push str..._QQ.exe
mov ecx, edi
call fcn.0041f457
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x456d0b
mov ecx, edi
call fcn.0041f4bd
cmp dword [ebp - 0x270], 0
je 0x456d20
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0056d3ec
ret
Function at 0x45a20c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0056ca90
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
push eax
call fcn.0045a1de
test al, al
je 0x45a2b3
cmp dword [ebp - 0x1008], 1
jne 0x45a270
lea eax, [ebp - 0x804]
push eax
jmp 0x45a2a8
cmp dword [ebp - 0x1008], 2
jne 0x45a2b3
mov edi, 0x400
lea eax, [ebp - 0x1004]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x45a2b3
cmp eax, edi
ja 0x45a2b3
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, esi
call fcn.00408fe7
mov al, 1
jmp 0x45a2b5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret 8

Function at 0x45a53f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0045a528
test al, al
je 0x45a57d
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45a57d
mov al, 1
jmp 0x45a585
xor eax, eax
mov word [esi + 0xc], ax
xor al, al
pop esi
leave
ret

Function at 0x45fac2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45fad0
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x45fb8f
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
sub edi, 1
jne 0x45fae8
pop edi
test esi, esi
je 0x45fbab
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x604250]
inc edx
sub esi, 1
jne 0x45fb93
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x46011e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x6af60], edi
cmp dword [esi + 0x6af58], edi
jne 0x460147
mov dword [esi + 0x6af60], 1
mov dword [esi + 0x6af58], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af58]
mov dword [esi + 0x6af54], edi
push edi
push eax
call fcn.00573610
add esp, 0xc
mov dword [esi + 0x6af84], 0x20
mov eax, 0x102
mov dword [esi + 0x6af7c], 0x1000
lea ebx, [esi + 0x1af58]
mov dword [esi + 0x6af80], eax
mov ecx, esi
mov dword [esi + 0x6af88], eax
push 0x10000
push ebx
mov dword [esi + 0x6af6c], edi
mov dword [esi + 0x6af5c], edi
call fcn.0045fc15
mov dword [esi + 0x6af78], eax
test eax, eax
je 0x4601ee
cmp eax, 0xffffffff
je 0x4601ee
mov dword [esi + 0x6af74], edi
cmp eax, 0x106
jae 0x4601c9
mov ecx, esi
call fcn.0045ffe3
mov dword [esi + 0x6af64], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af64], ecx
cmp edi, 2
jb 0x4601d1
jmp 0x4601fe
mov dword [esi + 0x6af74], 1
mov dword [esi + 0x6af78], edi
pop edi
pop esi
pop ebx
ret
Function at 0x462e8e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x63d284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x63f630]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x46300c
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x63f630], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x463002
cmp dword [ebp - 0x318], 2
jne 0x463002
cmp dword [ebp - 0x324], 5
jne 0x462f97
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x462f1c
inc eax
jmp 0x463092
cmp eax, 1
jne 0x462f88
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.00597f62
add esp, 0xc
test eax, eax
jne 0x462f42
push 3
jmp 0x463091
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.00597f62
add esp, 0xc
test eax, eax
jne 0x462f63
push 4
jmp 0x463091
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.00597f62
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x463092
cmp eax, 2
jne 0x463002
push 6
pop eax
mov dword [0x63f630], eax
jmp 0x463007
cmp dword [ebp - 0x324], 6
jne 0x463002
cmp dword [ebp - 0x320], esi
jne 0x462fee
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.00597f62
add esp, 0xc
test eax, eax
jne 0x462fc9
push 8
jmp 0x463091
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.00597f62
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x463092
cmp dword [ebp - 0x320], 1
mov eax, dword [0x63f630]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x462f90
mov eax, dword [0x63f630]
cmp eax, 0xffffffff
je 0x463014
cmp eax, edi
jne 0x4630b0
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00573610
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.00462b9b
pop ecx
test eax, eax
je 0x4630ab
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x463088
push 0xb
jmp 0x463091
cmp eax, 0x60003
jne 0x463099
push 0xc
pop eax
mov dword [0x63f630], eax
jmp 0x4630b0
cmp eax, 0xa0000
je 0x4630a7
cmp eax, 0x60004
jne 0x4630ab
push 0xd
jmp 0x463091
mov eax, dword [0x63f630]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056cd75
leave
ret