joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e20
Capabilities:
Delete file
Delete service
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x407e55
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.JKSvarer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x407e74
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x407e84
push esi
call edi
push ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0043fcd0
push 0x200
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0043fcd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
mov dword [ebp - 0x40c], 0
push str.Wow64DisableWow64FsRedirection
push str.Kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.Kernel32.dll
mov dword [0x5f0a00], eax
call ebx
push eax
call edi
mov dword [0x5f09fc], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x204]
push str.driversJKSvarer.sys.del
push eax
lea eax, [ebp - 0x404]
push str._s_s
push eax
call esi
push str.driversJKSvarer.sys
lea eax, [ebp - 0x204]
push eax
push str._s_s
push eax
call esi
add esp, 0x20
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x408], 0
test esi, esi
je 0x407f7c
lea eax, [ebp - 0x408]
push eax
call edi
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x407f7c
lea eax, [ebp - 0x40c]
push eax
call dword [0x5f0a00]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407fb2
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x404]
push 1
push eax
lea eax, [ebp - 0x204]
push eax
call esi
push 4
push 0
lea eax, [ebp - 0x404]
push eax
call esi
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x408], 0
pop ebx
test esi, esi
je 0x407ff7
lea eax, [ebp - 0x408]
push eax
call edi
push eax
call esi
cmp dword [ebp - 0x408], 0
je 0x407ff7
push dword [ebp - 0x40c]
call dword [0x5f09fc]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop edi
call fcn.004273c3
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x2000080
push 3
push 0
push 0
push accept
push ecx
mov byte [ebp - 9], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4080cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xa00000
ja 0x408129
push ebx
push esi
call fcn.00442e26
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408128
push esi
push 0
push ebx
mov dword [ebp - 8], 0
call fcn.0043fcd0
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.00408010
push ebx
mov byte [ebp - 9], al
call fcn.00442e21
add esp, 8
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
xor ecx, ebp
pop esi
pop edi
call fcn.004273c3
mov esp, ebp
pop ebp
ret
Function at 0x408470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
mov eax, dword [0x5e10a4]
xor eax, esp
mov dword [esp + 0x454], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x40]
push 0
push 0x5d76ab
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.00408b80
push 0
push 0x5d76ab
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00408b80
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
movq qword [esp + 0x20], xmm0
push 0x5d7a40
mov dword [esp + 0x24], vtable.DRIVER::CRegistry.0
mov dword [esp + 0x28], reloc.WS2_32.dll_bind
call fcn.00409d40
test eax, eax
je 0x408594
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00409de0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x408528
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.0043fcd0
add esp, 0xc
lea ecx, [esp + 0x58]
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00408150
push eax
lea ecx, [esp + 0x44]
call fcn.00408790
lea ecx, [esp + 8]
call fcn.00408720
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.00408840
test esi, esi
je 0x408632
push esi
jmp 0x40862c
mov dword [edi + 0x14], 0xf
xor esi, esi
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [0], 0
je 0x4085c5
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4085b3
sub esi, ecx
cmp esi, 0xfffffffe
ja 0x40865a
cmp dword [edi + 0x14], esi
jae 0x4085e3
push dword [edi + 0x10]
mov ecx, edi
push esi
call fcn.004096b0
test esi, esi
je 0x408623
cmp dword [edi + 0x14], 0x10
jb 0x4085fe
mov eax, dword [edi]
jmp 0x408600
test esi, esi
jne 0x4085d9
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4085f7
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x408623
mov eax, edi
mov byte [eax], 0
jmp 0x408623
mov eax, edi
test esi, esi
je 0x408610
push esi
push 0
push eax
call fcn.0043f750
add esp, 0xc
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40861d
mov eax, dword [edi]
jmp 0x40861f
mov eax, edi
mov byte [esi + eax], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x408632
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
call fcn.00408720
lea ecx, [esp + 0x40]
call fcn.00408720
mov ecx, dword [esp + 0x45c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00426d6e
int3
Function at 0x409de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], 0
jne 0x409e17
push 0xd6
push str.Registry.cpp
push str.m_hKey
call fcn.0044dced
add esp, 0xc
test edi, edi
jne 0x409e32
push 0xd8
push str.Registry.cpp
push str.lpVal
call fcn.0044dced
add esp, 0xc
lea eax, [ebp - 0xa00]
mov dword [ebp - 0xa00], 0xc8
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa04]
push eax
push 0
push str.MinidumpDir
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409eaf
cmp byte [ebp - 0x9fc], al
jne 0x409e71
xor ecx, ecx
jmp 0x409e89
lea ecx, [ebp - 0x9fc]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e80
sub ecx, edx
push ecx
lea eax, [ebp - 0x9fc]
mov ecx, edi
push eax
call fcn.00408b80
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004273c3
mov esp, ebp
pop ebp
ret 8

Function at 0x40a210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.0040a060
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x40a239
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x409fe0
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x40a27d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a27d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x40a3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5743f8
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x40a41a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x40a437
mov eax, dword [edi + 0x20]
jmp 0x40a43a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40a454
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40a46e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
push ecx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
call fcn.00447e8e
push eax
call fcn.00452307
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0043fcd0
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40a527
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.0043fcd0
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40a518
test eax, eax
je 0x40a518
add eax, eax
cmp eax, 0x412
jae 0x40a513
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x40a51e
call fcn.00427b68
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.004089a0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40a553
cmp dword [edi + 0x34], 8
jb 0x40a539
mov ecx, dword [edi + 0x20]
jmp 0x40a53c
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40a553
push 1
push 0x5d7ba8
lea ecx, [edi + 0x20]
call fcn.0040b980
cmp dword [edi + 0x30], 0
jne 0x40a568
push 3
push 0x5d7bac
lea ecx, [edi + 0x20]
call fcn.004089f0
mov dword [edi + 4], 0
mov eax, edi
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.004273c3
mov esp, ebp
pop ebp
ret
Function at 0x40a590
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
je 0x40a5ac
cmp dword [edi + 0x4c], 8
lea eax, [edi + 0x38]
jb 0x40a5a5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x40a5c3
push eax
call fcn.00427139
add esp, 4
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x50]
cmp eax, 8
jb 0x40a5d9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409050
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40a5ef
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40a60a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409050
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40a620
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40a63b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409050
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40a651
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x40a66b
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.00409050
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x40a68a
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x40dbf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp fcn.00411d20

Function at 0x40dc00
Capabilities:
Delete file
Delete service
Get common file path
Move file

Disassembly:
call sym.Service.exe_ClearProtectFile
call sym.Service.exe_ClearProtectReg
jmp sym.Service.exe_SHDeleteSelfProtectService

Function at 0x40e8d0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push esi
push dword [ebp + 0xc]
xor bl, bl
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40e995
push dword [ebp - 4]
call fcn.00442e26
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
push 0
push eax
call fcn.0043fcd0
add esp, 0x10
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40e995
mov ecx, dword [ebp + 0x14]
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e976
test dx, dx
je 0x40e972
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e976
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e950
xor eax, eax
jmp 0x40e97b
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov ecx, 1
push esi
cmove ebx, ecx
call fcn.00442e21
add esp, 4
test bl, bl
jne 0x40e9ae
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CheckRegSZValue_false__
call esi
push dword [ebp + 0xc]
call esi
push 0x5799c4
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ea90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x404]
push edi
mov edi, dword [ebp + 0x20]
push 0x200
push 0
push eax
mov dword [ebp - 0xc2c], ecx
call fcn.0043fcd0
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0043fcd0
push 0x208
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.0043fcd0
add esp, 0x3c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40eb27
cmp byte [ebp + 0x1c], al
jne 0x40ec32
push str.CRunCreateRelatedRegedit::DoRegFileExts
call fcn.0043390e
lea ecx, [ebp - 0x60c]
add esp, 4
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40eb40
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x204]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40eb60
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x204]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40eb72
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x404]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40eb90
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0xa1c]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40ebb0
push 2
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x814]
push str.__s___d
push eax
call fcn.00413e30
add esp, 0x10
mov ecx, dword [ebp - 0xc2c]
lea eax, [ebp - 0xc25]
mov byte [ebp - 0xc25], 0
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0xc24]
push str.08FEFE51_90C0_4599_8F8D_8C3D94C96A14
push 0x5d78a0
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00410cc0
cmp byte [ebp - 0xc25], 0
je 0x40ec32
mov byte [edi], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004273c3
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40ec50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SOFTWARERegisteredApplications]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
movups xmmword [ebp - 0xcc], xmm0
push esi
movups xmm0, xmmword [0x579af8]
push 0x88
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x8c]
movups xmmword [ebp - 0xbc], xmm0
push 0
movups xmm0, xmmword [0x579b08]
push eax
movups xmmword [ebp - 0xac], xmm0
movups xmm0, xmmword [0x579b18]
movups xmmword [ebp - 0x9c], xmm0
call fcn.0043fcd0
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0043fcd0
add esp, 0x18
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xcc]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x196], ax
test ax, ax
jne 0x40ecd4
push edi
lea edi, [ebp - 0x194]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40ecf6
mov eax, dword [0x5d7ba8]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40ed10
lea edi, [ebp - 0x194]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ed26
mov ecx, edx
lea eax, [ebp - 0xcc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [ebp + 0x10], 0
je 0x40ed92
mov esi, dword [ebp - 0x198]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ed65
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0xcc]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004273c3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f050
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x324]
push esi
mov esi, dword [ebp + 8]
push 0x190
push 0
push eax
call fcn.0043fcd0
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0043fcd0
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0043fcd0
push ebx
push esi
lea eax, [ebp - 0x194]
push str._s_s
push eax
call fcn.00413e30
push esi
lea eax, [ebp - 0x324]
push str.SOFTWARE_sCapabilitiesFileAssociations
push eax
call fcn.00413e30
add esp, 0x40
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x324]
lea eax, [eax + 2]
mov word [ebp + eax - 0xce], cx
test cx, cx
jne 0x40f0d0
push edi
lea edi, [ebp - 0xcc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f0f2
mov eax, dword [0x5d7ba8]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f110
lea edi, [ebp - 0xcc]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f126
mov ecx, edx
lea eax, [ebp - 0xcc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
pop edi
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f160
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push 1
push ebx
lea eax, [ebp - 0x324]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004273c3
mov esp, ebp
pop ebp
ret 8

Function at 0x410bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0043fcd0
add esp, 0xc
mov dword [ebp - 0x218], 0x114
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x214], 6
jb 0x410c93
lea eax, [ebp - 0x21c]
push eax
push 0x57cc1c
push 3
push 0
push 0x57cc3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x410c93
movups xmm0, xmmword [str.JiKePDFReader]
mov eax, dword [0x579e0c]
lea edx, [ebp - 0x220]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x21c]
push edx
movups xmmword [ebp - 0x104], xmm0
lea edx, [ebp - 0x104]
mov dword [ebp - 0x220], 0
movq xmm0, qword [0x579e04]
push edx
movq qword [ebp - 0xf4], xmm0
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x220], 0
jne 0x410c87
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret
Function at 0x419f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x41a06a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ecx + 2]
sub ecx, eax
lea edx, [eax + 2]
add ecx, 0xfffffffe
lea eax, [edi - 1]
mov dword [ebp + 0x14], edx
shr eax, 3
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
push ecx
push dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
call fcn.00419200
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [ebp + 0x14]
add esp, 0xc
movzx eax, byte [ecx + 0x100]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [ebp - 4], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [ebp - 8]
jne 0x419fa0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret