joyce8/EMBER2024-capa huggingface dataset:
Function at 0x659fdc6
Capabilities:
Get system information on windows

Disassembly:
cmp byte [0x65e6a2e], 0
jne 0x659fe6a
push esi
push edi
mov edi, 0x11c
push edi
push 0
mov esi, 0x65e68e8
push esi
call fcn.065b84a0
add esp, 0xc
mov dword [0x65e68e8], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
call edi
test eax, eax
jne 0x659fe48
push esi
mov dword [0x65e68e8], 0x114
call edi
test eax, eax
jne 0x659fe48
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x659fe48
test byte [eax + 0x1c], 1
je 0x659fe48
cmp byte [eax + 0x19], 2
jb 0x659fe48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x65e4c3c]
push 0x65d3d2c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.065af7a9
add esp, 0x14
push 0x24
push 0
mov esi, 0x65e6a04
push esi
call fcn.065b84a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
pop edi
mov byte [0x65e6a2e], 1
pop esi
mov al, 1
ret

Function at 0x65a8299
Capabilities:
Get common file path

Disassembly:
push 0x58
mov eax, 0x65cfff8
call fcn.065b9f4b
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
call fcn.0658de1b
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
mov byte [ebp - 0x35], 1
mov byte [ebp - 4], 1
call fcn.0658e066
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
mov ecx, edi
mov ebx, eax
call fcn.0659023e
test ebx, ebx
je 0x65a82e4
cmp ebx, esi
jbe 0x65a8321
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a831d
test byte [eax + 0x1c], 1
je 0x65a831d
cmp byte [eax + 0x19], 2
jb 0x65a831d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x65e4c3c]
push 0x65d4424
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.065af7a9
add esp, 0x14
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x5c]
call fcn.0658ddc3
test al, al
je 0x65a8331
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x5c]
call fcn.0658ddd9
mov al, byte [ebp - 0x35]
call fcn.065b9fa7
ret

Function at 0x65a841e
Capabilities:
Get common file path

Disassembly:
push 0x58
mov eax, 0x65d0025
call fcn.065b9f4b
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
call fcn.0658de1b
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
mov byte [ebp - 0x35], 1
mov byte [ebp - 4], 1
call fcn.0658e066
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
mov ecx, edi
mov ebx, eax
call fcn.0659023e
test ebx, ebx
je 0x65a8469
cmp ebx, esi
jbe 0x65a84a6
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65a84a2
test byte [eax + 0x1c], 1
je 0x65a84a2
cmp byte [eax + 0x19], 2
jb 0x65a84a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x65e4c3c]
push 0x65d4424
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.065af7a9
add esp, 0x14
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x5c]
call fcn.0658ddc3
test al, al
je 0x65a84b6
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x5c]
call fcn.0658ddd9
mov al, byte [ebp - 0x35]
call fcn.065b9fa7
ret
Function at 0x65b5cbb
Capabilities:
Get common file path

Disassembly:
push 0x68
mov eax, 0x65d0895
call fcn.065b9f4b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x35], 1
call fcn.0658de1b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
je 0x65b5ced
cmp dword [ebp + 0xc], 1
jne 0x65b5d49
push 0x104
mov ecx, esi
call fcn.0658e066
push ebx
push 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
push 0xffffffffffffffff
mov ecx, esi
setne byte [ebp - 0x35]
call fcn.0659023e
cmp byte [ebp - 0x35], bl
jne 0x65b5dd3
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65b5d49
test byte [eax + 0x1c], 1
je 0x65b5d49
cmp byte [eax + 0x19], 2
jb 0x65b5d49
push 0x65d5bb0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
lea ecx, [ebp - 0x6c]
call fcn.0659d847
mov eax, dword [ebp + 0xc]
dec eax
mov ecx, 0x20019
je 0x65b5d66
dec eax
jne 0x65b5d6b
mov ecx, 0x20119
jmp 0x65b5d6b
mov ecx, 0x20219
push ebx
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.0659e649
test eax, eax
je 0x65b5d9b
push esi
push str.CommonFilesDir
lea ecx, [ebp - 0x6c]
call fcn.0659e6a1
test eax, eax
je 0x65b5d9b
mov byte [ebp - 0x35], 1
jmp 0x65b5dcb
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65b5dc8
test byte [eax + 0x1c], 1
je 0x65b5dc8
cmp byte [eax + 0x19], 2
jb 0x65b5dc8
push 0x65d5bb0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
mov byte [ebp - 0x35], bl
lea ecx, [ebp - 0x6c]
call fcn.0659de5a
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x65b5ddd
mov byte [ebp - 0x35], bl
cmp byte [ebp - 0x35], bl
je 0x65b5e5f
push 0x5c
mov ecx, esi
call fcn.065b6140
push str.Symantec_Shared
mov ecx, esi
call fcn.065908f4
jmp 0x65b5e5f
lea ecx, [ebp - 0x60]
call fcn.0658ddc3
test al, al
je 0x65b5e6e
mov byte [ebp - 0x35], bl
cmp byte [ebp - 0x35], bl
je 0x65b5ea2
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x65b5ea2
test byte [eax + 0x1c], 1
je 0x65b5ea2
cmp byte [eax + 0x19], 4
jb 0x65b5ea2
push dword [esi]
push 0x65d5bb0
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0659be5b
add esp, 0x14
lea ecx, [ebp - 0x60]
call fcn.0658ddd9
mov al, byte [ebp - 0x35]
call fcn.065b9fa7
ret

Function at 0x65b6645
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65e4e2c]
jne 0x65b664f
repz ret
jmp fcn.065bb0fa
Function at 0x65bad2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x65bad55
call fcn.065b7260
mov dword [eax], esi
call fcn.065b724d
push 0x16
pop esi
mov dword [eax], esi
call fcn.065bc91c
mov eax, esi
jmp 0x65badaa
test dword [ebp + 0xc], 0xfffffff9
jne 0x65bad3b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x65bad82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.065b7273
pop ecx
call fcn.065b724d
mov eax, dword [eax]
jmp 0x65badaa
test al, 0x10
jne 0x65bada8
test al, 1
je 0x65bada8
test byte [ebp + 0xc], 2
je 0x65bada8
call fcn.065b7260
mov dword [eax], 5
call fcn.065b724d
mov dword [eax], 0xd
jmp 0x65bad79
xor eax, eax
pop esi
pop ebp
ret

Function at 0x65c47e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.065bc27e
and dword [ebp - 0x14], 0
cmp dword [0x65e7878], 0
mov dword [ebp - 0x18], eax
jne 0x65c4897
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x65c493f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65d6dd8
push ebx
call edi
test eax, eax
je 0x65c493f
mov esi, dword [0x65e5f60]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x65e7878], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x65e787c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x65e7880], eax
call edi
push eax
call esi
mov dword [0x65e7888], eax
test eax, eax
je 0x65c4897
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x65e7884], eax
mov eax, dword [0x65e7884]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x65e5f7f]
cmp eax, ecx
je 0x65c48f0
cmp dword [0x65e7888], ecx
je 0x65c48f0
push eax
call esi
push dword [0x65e7888]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x65c48f0
test ebx, ebx
je 0x65c48f0
call edi
test eax, eax
je 0x65c48e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x65c48e7
test byte [ebp - 8], 1
jne 0x65c48f0
or dword [ebp + 0x10], 0x200000
jmp 0x65c4923
mov eax, dword [0x65e787c]
cmp eax, dword [ebp - 0x18]
je 0x65c4923
push eax
call esi
test eax, eax
je 0x65c4923
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x65c4923
mov eax, dword [0x65e7880]
cmp eax, dword [ebp - 0x18]
je 0x65c4923
push eax
call esi
test eax, eax
je 0x65c4923
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x65e7878]
call esi
test eax, eax
je 0x65c493f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x65c4941
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.065b6645
leave
ret
Function at 0x65cbe30
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1244
call fcn.065baa60
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1240]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov byte [ebp - 0x1231], 0
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x65cbe7b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x1240]
shr ebx, 2
xor eax, eax
push esi
push edi
mov dword [ebp - 0x1238], eax
test ebx, ebx
je 0x65cbfbf
jmp 0x65cbea0
mov esi, dword [ebp + eax*4 - 0x1004]
test esi, esi
je 0x65cbfa3
mov ecx, dword [0x65d9120]
mov edx, dword [str._unknown_]
mov eax, dword [0x65d911c]
push 0x1f4
mov dword [ebp - 0x1204], ecx
mov dword [ebp - 0x120c], edx
mov edx, dword [0x65d9124]
mov dword [ebp - 0x1208], eax
mov eax, dword [0x65d9128]
lea ecx, [ebp - 0x11f8]
push 0
push ecx
mov dword [ebp - 0x1200], edx
mov dword [ebp - 0x11fc], eax
call fcn.065b84a0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x65cbf48
lea edx, [ebp - 0x1244]
push edx
push 4
lea eax, [ebp - 0x123c]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x65cbf48
mov edx, dword [ebp - 0x123c]
push 0x104
lea ecx, [ebp - 0x120c]
push ecx
push edx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x120c]
push eax
mov esi, str.smc.exe
call fcn.065b7c0f
add esp, 4
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x65cbf86
test cx, cx
je 0x65cbf82
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x65cbf86
add eax, 4
add esi, 4
test cx, cx
jne 0x65cbf60
xor eax, eax
jmp 0x65cbf8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x65cbf96
mov byte [ebp - 0x1231], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1238]
inc eax
mov dword [ebp - 0x1238], eax
cmp eax, ebx
jb 0x65cbea0
cmp byte [ebp - 0x1231], 0
jne 0x65cc04f
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x1230]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x1230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x65cc048
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ecx]
lea edx, [ebp - 0x120c]
push edx
mov esi, str.smc.exe
call fcn.065b7c0f
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x65cc02a
test cx, cx
je 0x65cc026
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x65cc02a
add eax, 4
add esi, 4
test cx, cx
jne 0x65cc004
xor eax, eax
jmp 0x65cc02f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x65cc03a
mov byte [ebp - 0x1231], 1
lea eax, [ebp - 0x1230]
push eax
push edi
call ebx
test eax, eax
jne 0x65cbff0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1231]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.065b6645
mov esp, ebp
pop ebp
ret
Function at 0x65cc070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov word [ebp - 0x404], ax
call fcn.065b84a0
push 1
push 0x65d8dc0
push 0x65f89a0
mov dword [ebp - 0x40c], 0x400
call fcn.065b79e9
add esp, 0x18
lea edx, [ebp - 0x408]
push edx
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x65cc137
mov edx, dword [ebp - 0x408]
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x65cc137
lea eax, [ebp - 0x404]
push eax
push 0x200
push 0x65f89a0
call fcn.065b76f1
mov ecx, dword [ebp - 0x408]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x65f89a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x65d8dc0
call fcn.065b6645
mov esp, ebp
pop ebp
ret

Function at 0x65cc1c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push 0x44
lea eax, [ebp - 0x64]
push 0
push eax
mov dword [ebp - 8], 0xffffffff
call fcn.065b84a0
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push eax
push ecx
push ecx
push 0x8000000
push 1
push ecx
push ecx
mov word [ebp - 0x34], cx
mov ecx, dword [ebp + 8]
push ecx
push 0
mov dword [ebp - 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x65cc224
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
push 0x493e0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x65cc380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov dword [ebp - 0x11c], 0
call fcn.065b84a0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb case.0x65cc423.15
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x65cc40d
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x65cc406
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0
push 6
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff4
pop esi
cmp eax, 0x1d
ja case.0x65cc423.15
movzx eax, byte [eax + 0x65cc478]
jmp dword [eax*4 + 0x65cc470]
mov byte [0x65e8980], 1
cmp byte [0x65e7f57], 0
je 0x65cc461
cmp byte [0x65e7f56], 0
jne 0x65cc461
push 0x104
push str.._sylink.xml
push 0x65e8570
mov byte [0x65e7f56], 1
call fcn.065b79e9
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret

Function at 0x65cc850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.065b84a0
push 0x104
lea edx, [ebp - 0x20c]
push 0x65e8160
push edx
call fcn.065b79e9
push str.SepManagementClient.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.065b767c
add esp, 0x24
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret

Function at 0x65cd170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.065b84a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push 0x65e8160
push edx
call fcn.065b79e9
add esp, 0xc
push str.SepManagementClient.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.065b767c
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x65cd201
call fcn.065cc5b0
test al, al
je 0x65cd201
call fcn.065cc790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
call fcn.065cbe30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
Function at 0x65ce9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
cmp ax, word [0x65e8778]
je 0x65cea88
lea ecx, [ebp - 0x884]
push 3
mov dword [ebp - 0x888], ecx
push 0x65e7b48
lea ecx, [ebp - 0x888]
call fcn.06571390
mov edx, dword [0x65e8984]
sub esp, 0x84
mov edi, esp
push edx
lea eax, [ebp - 0x804]
push str.__xml_version_1.0__encoding_UTF_8____r_n_Status_ExitCode__d__Description__s___
mov ecx, 0x21
lea esi, [ebp - 0x888]
push eax
mov edx, 0x800
rep movsd dword es:[edi], dword [esi]
call fcn.065723f0
mov eax, dword [ebp - 0x888]
lea ecx, [ebp - 0x884]
add esp, 0x90
cmp eax, ecx
je 0x65cea33
push eax
call fcn.065b6b02
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x65e8778
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x65cea88
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x65cea60
sub eax, edx
push 0
lea edx, [ebp - 0x88c]
push edx
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.065b6645
mov esp, ebp
pop ebp
ret

Function at 0x65ceeb0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x65ceec9
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x65ceec9
mov dword [esi], 0
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x65ceee2
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x65ceef6
and eax, 0xffff
or eax, 0x80070000
ret
Function at 0x65cef90
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x65e4e2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x65cefbc
mov eax, 0x8007139f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
test eax, eax
je 0x65cefd5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
je 0x65cefd5
mov dword [ebx + 4], 0
push esi
push edi
call fcn.065cedf0
lea edi, [ebx + 8]
lea esi, [ebx + 0x28]
push edi
call fcn.065ced10
add esp, 4
mov edx, 0x10
mov ecx, edi
mov byte [ecx], 0
inc ecx
dec edx
jne 0x65ceff2
test eax, eax
js 0x65cf08a
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x1c], 0x660e
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
mov eax, 0x20
mov byte [esi], 0
inc esi
dec eax
jne 0x65cf032
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx]
push 1
push 0
push 0x1c
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov edx, 0x1c
lea ecx, [ebp - 0x20]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x65cf058
test eax, eax
jne 0x65cf088
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x65cf08a
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.065b6645
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.065b6645
mov esp, ebp
pop ebp
ret
Function at 0x413ca0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x218
push ebx
push esi
xor ebx, ebx
push edi
mov edi, eax
push ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x413dd8
push ebp
push esi
call fcn.00402cda
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x413dcb
push ebp
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413dc2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413dc2
push 0x208
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00407e80
add esp, 0xc
xor esi, esi
test dword [esp + 0x14], 0xfffffffc
jbe 0x413dbd
mov edi, dword [esp + 0x22c]
cmp edi, ebx
je 0x413dab
cmp word [edi], bx
jne 0x413dab
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00403b9e
add esp, 0x1c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413dab
mov eax, dword [esp + 0x1c]
cmp eax, 0x7e
jb 0x413d9b
mov eax, 0x7e
mov ecx, dword [esp + 0x10]
add eax, 1
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [esp + 0x14]
add esi, 1
shr edx, 2
cmp esi, edx
jb 0x413d33
mov ebx, 1
push ebp
call fcn.0040318e
add esp, 4
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x218
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x218
ret