joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b78e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x40c]
push edx
push 0xf003f
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x47b843
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x47b7f6
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call fcn.0047b78e
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x418], eax
jne 0x47b851
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
call edi
test eax, eax
je 0x47b7d8
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x414]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00495616
leave
ret
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x418]
jmp 0x47b843

Function at 0x47b8cf
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
cmp ebx, edi
je 0x47b93c
lea eax, [ebp - 4]
push eax
push 0x28
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47b93c
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x47b93c
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x47b93c
mov dword [ebp - 8], esi
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x47b94f
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x47b956
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b95e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7d07
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4db020]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x4db020]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [0x4dff94]
mov esi, ecx
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x164], ebx
call fcn.0047bba3
test eax, eax
pop ecx
je 0x47b9d5
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
jne 0x47b9e2
lea edi, [esp + 0x14]
call fcn.0047bd7c
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47ba1b
lea eax, [edi - 0x10]
call fcn.00401291
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00495616
mov esp, ebp
pop ebp
ret
push 0x4b62b4
lea eax, [esp + 0x18]
push eax
call fcn.0040917f
push esi
lea eax, [esp + 0x18]
push eax
call fcn.0040917f
lea esi, [esp + 0x18]
call fcn.0045b750
mov dword [esp + 0x24], 0x12
push ebx
mov byte [esp + 0x164], 1
push dword [esp + 0x18]
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.0040405f
mov byte [esp + 0x160], 2
push dword [esp + 0x2c]
mov eax, esi
push str.cmdline
push eax
call fcn.0045192b
lea eax, [esp + 0x30]
mov byte [esp + 0x160], 1
cmp dword [esp + 0x2c], eax
je 0x47ba9b
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov edi, vtable.KxEIPCClientT_class_IKwsCommunicateSP__class_KxEPipeClientCommunication_.0
mov dword [esp + 0xcc], edi
call fcn.00458987
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00402988
mov dword [esp + 0xcc], 0x4b98bc
mov byte [esp + 0x160], 3
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.004562d2
cmp eax, ebx
je 0x47bb32
xor esi, esi
lea eax, [esp + 0xd0]
mov byte [esp + 0x160], 1
push eax
mov dword [esp + 0xd0], edi
call fcn.00402ba5
lea eax, [esp + 0x18]
mov byte [esp + 0x160], bl
call fcn.0045615c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401291
mov eax, esi
jmp 0x47b9f7
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0xb0]
push eax
push str.error
lea ecx, [esp + 0x20]
mov byte [esp + 0x168], 4
call fcn.00451985
cmp dword [esp + 0xc8], 0x10
mov eax, dword [esp + 0xb4]
jae 0x47bb75
lea eax, [esp + 0xb4]
push 0xa
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_strtol]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0xb0]
inc esi
mov byte [esp + 0x160], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x47baf3
Function at 0x47bd7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x47bdf2
and word [eax], 0
lea eax, [ebp - 0x210]
push eax
push str._sProgram_FilesInternet_Exploreriexplore.exe
mov ecx, edi
call fcn.00471c35
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x47bdf4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495616
leave
ret

Function at 0x47c114
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x4a445b
call fcn.0049cb58
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov eax, dword [0x4dff94]
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
call fcn.00408131
lea esi, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.0047ac42
push str.signs.ini
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x10]
push 0x4ab3bc
push eax
call fcn.00408085
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401291
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push str.Version
mov edi, str.Sign
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x47c1e2
push dword [ebp - 0x10]
push 0
push str.BuildNum
push edi
call esi
movzx eax, ax
test ax, ax
je 0x47c1e2
movzx eax, ax
push eax
movzx esi, bl
movzx dx, bh
movzx eax, si
push eax
movzx edx, dx
mov ecx, ebx
sar ecx, 0x10
movzx eax, dx
movzx ecx, cx
push eax
movzx eax, cx
push eax
push 0x4bda7c
push dword [ebp + 8]
call fcn.00408085
add esp, 0x18
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401291
mov eax, dword [ebp + 8]
call fcn.0049cc30
ret

Function at 0x47c23f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x4a274f
call fcn.0049cb58
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401506
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c27f
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401291
mov eax, esi
call fcn.0049cc30
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47c269
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x47c269
lea ecx, [ebp - 0x10]
call fcn.0047c1f6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x47c2b6
xor esi, esi
jmp 0x47c26c
push eax
call fcn.0047c23f
test eax, eax
pop ecx
je 0x47c2b2
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47c269
call edi
cmp eax, ebx
jne 0x47c2b2
jmp 0x47c269
Function at 0x47ca59
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov esi, eax
call edi
push 0
push str.Shell_TrayWnd
mov edi, eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x47cac8
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, esi
jl 0x47cab5
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sub esi, 0xa
cmp dword [ebp - 8], edi
mov dword [ebx], esi
jl 0x47cad2
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
jmp 0x47cad8
test eax, eax
jle 0x47cac8
mov ecx, dword [ebp + 8]
sub eax, dword [ecx]
sub eax, 0xa
mov dword [ebx], eax
sub edi, dword [ecx + 4]
jmp 0x47cad5
mov eax, dword [ebp + 8]
sub esi, dword [eax]
sub esi, 0xa
mov dword [ebx], esi
sub edi, dword [eax + 4]
mov dword [ebx + 4], edi
pop edi
pop esi
leave
ret

Function at 0x47d140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x47d1d8
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x47d1ce
cmp edi, 0x200000
ja 0x47d1ce
lea eax, [edi + 2]
push esi
push eax
call fcn.0049555c
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d1cd
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x47d1cd
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x47edd6
Capabilities:
Get disk information

Disassembly:
push 0x2fc
mov eax, 0x4a43c7
call fcn.0049cbc1
xor esi, esi
push 0xd2
lea eax, [ebp - 0xe6]
push esi
push eax
mov word [ebp - 0xe8], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x47ee1d
xor eax, eax
jmp 0x47ef08
cdq
and edx, 3
add eax, edx
mov ebx, eax
push 0x208
lea eax, [ebp - 0x2f6]
push esi
push eax
sar ebx, 2
mov word [ebp - 0x2f8], si
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0xe8]
mov word [ebp - 0xf0], si
mov edi, 0x4e08e4
add esp, 0xc
mov esi, edi
mov dword [ebp - 0x2fc], eax
call fcn.0041d34a
xor esi, esi
inc esi
test ebx, ebx
jle 0x47ef06
mov eax, dword [ebp - 0x2fc]
and word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x2f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47eef8
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00401506
and dword [ebp - 4], 0
lea eax, [ebp - 0x304]
push eax
call fcn.0041d2ee
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x304]
add eax, 0xfffffff0
call fcn.00401291
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x300]
push eax
call fcn.00401506
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 4], esi
call fcn.0041d2ee
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.00401291
add dword [ebp - 0x2fc], 8
dec ebx
jne 0x47ee6e
mov eax, esi
call fcn.0049cc44
ret
Function at 0x47f131
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xec
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x60], ebx
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x52]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x54], bx
call sub.MSVCR80.dll_memset
push str.Chinese_simplified
push ebx
call dword [sym.imp.MSVCR80.dll_setlocale]
add esp, 0x14
push esi
push 0x4e0908
call fcn.004012a9
call fcn.0047f57b
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x74]
push 0x4e090c
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x54]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.0047f87d
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push edi
push edi
lea eax, [ebp - 0x60]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x4e08fc], eax
call esi
cmp dword [0x4e08fc], ebx
mov dword [0x4e0900], eax
je 0x47f235
cmp eax, ebx
je 0x47f235
push ebx
push ebx
push 0x4e08f4
push 0x47f3b6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x4e0904], eax
mov eax, ecx
jmp 0x47f237
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495616
add ebp, 0x78
leave
ret

Function at 0x47f57b
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
push 4
mov eax, 0x4a274f
call fcn.0049cb58
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push dword [0x4e0908]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47f61a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47f5bd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x47f61a
mov eax, dword [0x4e0908]
add eax, 0xfffffff0
call fcn.004080d9
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0047f623
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4e0908]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00401291
xor eax, eax
inc eax
call fcn.0049cc30
ret
Function at 0x4813ba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4813d3
mov eax, dword [ebp - 4]
jmp 0x4814ad
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x481488
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ae978]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ae978]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ae978]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ae978]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ae978]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ae978]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ae978]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4ae978]
dec ebp
jne 0x4813f2
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4814a4
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4ae978]
dec ecx
jne 0x481492
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4818ca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x481934
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
jne 0x481934
mov dword [0x4e09e8], edi
jmp 0x481abd
mov eax, dword [ebp - 0x98]
dec eax
je 0x481a78
dec eax
je 0x481953
mov dword [0x4e09e8], 1
jmp 0x481aba
cmp dword [ebp - 0xa4], 6
jb 0x4819c5
cmp byte [ebp + 0x72], 1
jne 0x4819a3
mov eax, dword [ebp - 0xa0]
sub eax, edi
je 0x481997
dec eax
je 0x481982
dec eax
jne 0x4819c5
call fcn.00481ad0
neg eax
sbb eax, eax
neg eax
add eax, 0x10
jmp 0x481990
call fcn.00481ad0
neg eax
sbb eax, eax
neg eax
add eax, 0xc
mov dword [0x4e09e8], eax
jmp 0x4819c5
mov dword [0x4e09e8], 0xb
jmp 0x4819c5
cmp byte [ebp + 0x72], 3
jne 0x4819bb
cmp dword [ebp - 0xa0], edi
mov dword [0x4e09e8], 0xe
je 0x4819c5
mov dword [0x4e09e8], 0xf
push 5
pop esi
cmp dword [ebp - 0xa4], esi
jne 0x481a67
cmp dword [ebp - 0xa0], 2
jne 0x481a42
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x481a01
lea ecx, [ebp - 0xcc]
push ecx
call eax
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x481a19
mov dword [0x4e09e8], 0xa
jmp 0x481a3a
cmp byte [ebp + 0x72], 1
push 9
pop eax
jne 0x481a35
cmp word [ebp - 0xcc], ax
mov dword [0x4e09e8], 8
je 0x481a3a
mov dword [0x4e09e8], eax
cmp dword [ebp - 0xa4], esi
jne 0x481a67
cmp dword [ebp - 0xa0], 1
jne 0x481a55
mov dword [0x4e09e8], 7
cmp dword [ebp - 0xa0], edi
jne 0x481aba
mov dword [0x4e09e8], 6
cmp dword [ebp - 0xa4], 4
ja 0x481aba
mov dword [0x4e09e8], esi
jmp 0x481aba
push 4
pop eax
cmp dword [ebp - 0xa4], eax
jne 0x481aba
cmp dword [ebp - 0xa0], edi
je 0x481ab0
cmp dword [ebp - 0xa0], 0xa
je 0x481aa4
cmp dword [ebp - 0xa0], 0x5a
jne 0x481aba
mov dword [0x4e09e8], eax
jmp 0x481aba
mov dword [0x4e09e8], 3
jmp 0x481aba
mov dword [0x4e09e8], 2
xor edi, edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00495616
add ebp, 0x78
leave
ret

Function at 0x481b97
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov ebp, 0x80004005
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x481be5
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x481be5
cmp dword [esi], ebx
jne 0x481be5
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x481c6b
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
je 0x481be5
xor ebp, ebp
pop edi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x481e02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], ecx
je 0x481ec6
cmp dword [ebp + 0xc], ecx
je 0x481ec6
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push dword [ebp + 0x10]
lea edx, [ebp - 0xc]
push edx
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + ebx]
push eax
mov dword [ebp - 4], esi
call edi
xor ecx, ecx
inc ecx
cmp dword [ebp - 0xc], ecx
jne 0x481ec4
test eax, eax
jne 0x481e5e
mov eax, dword [ebp + 0x10]
and word [esi + eax - 2], 0
mov dword [ebp - 8], ecx
jmp 0x481ec4
mov eax, dword [ebp - 4]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x481ec4
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax + 4]
call edi
test eax, eax
jne 0x481eba
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
shr ecx, 1
and word [eax + ecx*2], 0
lea ecx, [ebx - 1]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
and word [esi + edi - 2], 0
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop edi
pop esi
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x482114
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 1
push ebx
mov edi, str.SOFTWAREKingsoftKISCommonKXEngine
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
je 0x482160
lea eax, [ebp - 4]
push eax
push 1
push ebx
push edi
push SysReAllocStringLen
call esi
cmp eax, ebx
jne 0x4821d2
cmp dword [ebp - 4], ebx
je 0x4821e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, str.path
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4821d2
mov eax, dword [ebp - 8]
cmp eax, 4
ja 0x48218f
push 4
pop eax
push eax
call fcn.0049555c
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
push 0x104
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 1
je 0x4821d2
push dword [ebp - 0xc]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 4], ebx
je 0x4821e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x482885
Capabilities:
Read file on windows

Disassembly:
push 0x18
push 0x4c9690
call fcn.00495bc0
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4828d8
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4db020
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
jmp 0x48292e
mov edi, 0x25800
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
cmp ebx, esi
je 0x482917
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x482917
cmp dword [ebp - 0x24], esi
je 0x482917
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.00482d70
mov dword [ebp - 0x28], eax
jmp 0x4828e9
mov dword [ebp - 4], 0xfffffffe
call fcn.00482938
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
xor esi, esi
inc esi
mov eax, esi
call fcn.00495c05
ret