joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b7ddd
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x70
mov eax, 0x657040
call fcn.00628f7d
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 7
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b7e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba47c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x40]
push str.CreateFile_error:
push eax
call fcn.005a0e81
mov edi, eax
mov esi, 0x70d09c
add esp, 0x14
cmp edi, esi
je 0x5b7e51
mov ecx, esi
call fcn.00449330
push edi
mov ecx, esi
call fcn.00449550
lea ecx, [ebp - 0x40]
call fcn.00449330
lea ecx, [ebp - 0x28]
call fcn.00449330
jmp 0x5b7f89
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5b7f2c
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
cmp dword [ebp - 0x74], edx
jg 0x5b7f2c
mov eax, dword [ebp - 0x78]
jl 0x5b7e95
cmp eax, ecx
ja 0x5b7f2c
inc eax
push eax
push dword [esi]
mov dword [esi + 4], eax
call fcn.0062fb22
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x7c]
mov dword [esi], eax
push ecx
push dword [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b7ed9
mov ecx, dword [ebp - 0x78]
cmp dword [ebp - 0x7c], ecx
jne 0x5b7ed9
cmp ebx, dword [ebp - 0x74]
jne 0x5b7ed9
mov eax, dword [esi]
push edi
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x5b7f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005ba47c
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push str.ReadFile_error:
push eax
call fcn.005a0e81
mov ebx, eax
mov esi, 0x70d09c
add esp, 0x14
cmp ebx, esi
je 0x5b7f1f
mov ecx, esi
call fcn.00449330
push ebx
mov ecx, esi
call fcn.00449550
lea ecx, [ebp - 0x70]
call fcn.00449330
lea ecx, [ebp - 0x58]
jmp 0x5b7f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba47c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push str.GetFileSizeEx_error:
push eax
call fcn.005a0e81
mov ebx, eax
mov esi, 0x70d09c
add esp, 0x14
cmp ebx, esi
je 0x5b7f72
mov ecx, esi
call fcn.00449330
push ebx
mov ecx, esi
call fcn.00449550
lea ecx, [ebp - 0x40]
call fcn.00449330
lea ecx, [ebp - 0x28]
call fcn.00449330
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.00628f2c
ret
Function at 0x5b82e8
Capabilities:
Get common file path

Disassembly:
push 0x40
mov eax, 0x657107
call fcn.00628f7d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7139d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7132f8]
cmp eax, dword [ecx + 4]
jg 0x5b83f6
cmp dword [0x70d10c], 0
mov ebx, 0x70d0fc
jne 0x5b83ee
push 0x208
push 0
mov dword [ebp - 0x48], 0x104
call fcn.0062fb22
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x4c], esi
and dword [ebp - 4], 0
push 1
push 0x1c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005bb0b4
push str.Media_Get_LLCMediaGet2_
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.005a0e4e
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x5b83d3
mov eax, dword [0x70d110]
cmp eax, 0x10
jb 0x5b83b3
mov ecx, dword [0x70d0fc]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x5b83aa
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00447b40
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.00628ef7
pop ecx
pop ecx
and dword [0x70d10c], 0
mov ecx, ebx
push edi
mov dword [0x70d110], 0xf
mov byte [0x70d0fc], 0
call fcn.00449550
lea ecx, [ebp - 0x28]
call fcn.00449330
lea ecx, [ebp - 0x40]
call fcn.00449330
test esi, esi
je 0x5b83ee
push esi
call fcn.0062fb07
pop ecx
mov eax, ebx
call fcn.00628f2c
ret
mov esi, 0x7132f8
push esi
call fcn.006291ba
cmp dword [0x7132f8], 0xffffffff
pop ecx
jne 0x5b8314
push 0x65bd82
call fcn.006295ef
push esi
call fcn.00629170
pop ecx
pop ecx
jmp 0x5b8314
Function at 0x5b89ef
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6571ef
mov eax, dword fs:[0]
push eax
mov eax, 0x1844
call fcn.00629030
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1850], eax
lea eax, [ebp - 0x184c]
push eax
push 0x1000
lea eax, [ebp - 0x17e0]
mov dword [ebp - 0x1848], ebx
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x5b8ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x17f8]
push eax
call fcn.005ba47c
and dword [ebp - 4], 0
lea eax, [ebp - 0x17f8]
push eax
lea eax, [ebp - 0x1810]
push str.EnumProcesses_error:
push eax
call fcn.005a0e81
mov edi, eax
mov esi, 0x70d09c
add esp, 0x14
cmp edi, esi
je 0x5b8a9b
mov ecx, esi
call fcn.00449330
push edi
mov ecx, esi
call fcn.00449550
lea ecx, [ebp - 0x1810]
call fcn.00449330
lea ecx, [ebp - 0x17f8]
jmp 0x5b8bcd
mov edi, dword [ebp - 0x184c]
shr edi, 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
mov dword [ebp - 0x1844], eax
test edi, edi
je 0x5b8b74
cmp eax, dword [ebp + esi*4 - 0x17e0]
je 0x5b8b65
push dword [ebp + esi*4 - 0x17e0]
mov eax, dword [ebp - 0x1850]
push 0
or eax, 0x410
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x5b8b5f
push 0x3e8
lea eax, [ebp - 0x7e0]
push eax
push 0
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x17f8]
push eax
call fcn.005bb0b4
lea eax, [ebp - 0x17f8]
push eax
call fcn.005baadc
add esp, 0xc
lea ecx, [ebp - 0x17f8]
push dword [ebp - 0x1848]
call fcn.005a7c64
test al, al
jne 0x5b8bee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x17f8]
call fcn.00449330
mov eax, dword [ebp - 0x1844]
inc esi
cmp esi, edi
jb 0x5b8ad0
mov ebx, dword [ebp - 0x1848]
push ebx
lea eax, [ebp - 0x1840]
push str.Process
push eax
call fcn.005a0eb7
push str._not_found
push eax
lea eax, [ebp - 0x1828]
mov dword [ebp - 4], 1
push eax
call fcn.005a0e4e
mov edi, eax
mov esi, 0x70d09c
add esp, 0x18
cmp edi, esi
je 0x5b8bbc
mov ecx, esi
call fcn.00449330
push edi
mov ecx, esi
call fcn.00449550
lea ecx, [ebp - 0x1828]
call fcn.00449330
lea ecx, [ebp - 0x1840]
call fcn.00449330
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00628f0a
leave
ret
lea ecx, [ebp - 0x17f8]
call fcn.00449330
mov eax, ebx
jmp 0x5b8bd4
Function at 0x5b8bfd
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x28
mov eax, 0x65670c
call fcn.00628f7d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7139d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x713310]
cmp eax, dword [ecx + 4]
jg 0x5b8cf5
cmp dword [0x70d19c], 0
jne 0x5b8cea
push 0x208
xor ebx, ebx
mov dword [ebp - 0x30], 0x104
push ebx
call fcn.0062fb22
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
push ebx
push 0x26
push esi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5b8cdf
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005bb0b4
mov edi, eax
pop ecx
pop ecx
cmp edi, 0x70d18c
je 0x5b8cd7
mov ecx, dword [0x70d1a0]
cmp ecx, 0x10
jb 0x5b8cb6
mov eax, dword [0x70d18c]
inc ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x5b8cad
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00447b40
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.00628ef7
pop ecx
pop ecx
push edi
mov ecx, 0x70d18c
mov dword [0x70d19c], ebx
mov dword [0x70d1a0], 0xf
mov byte [0x70d18c], bl
call fcn.00449550
lea ecx, [ebp - 0x28]
call fcn.00449330
test esi, esi
je 0x5b8cea
push esi
call fcn.0062fb07
pop ecx
mov eax, 0x70d18c
call fcn.00628f2c
ret
mov esi, 0x713310
push esi
call fcn.006291ba
cmp dword [0x713310], 0xffffffff
pop ecx
jne 0x5b8c29
push 0x65bd96
call fcn.006295ef
push esi
call fcn.00629170
pop ecx
pop ecx
jmp 0x5b8c29

Function at 0x5b8d25
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x28
mov eax, 0x65670c
call fcn.00628f7d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7139d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x713314]
cmp eax, dword [ecx + 4]
jg 0x5b8e1d
cmp dword [0x70d1b4], 0
jne 0x5b8e12
push 0x208
xor ebx, ebx
mov dword [ebp - 0x30], 0x104
push ebx
call fcn.0062fb22
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
push ebx
push 0x2a
push esi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5b8e07
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005bb0b4
mov edi, eax
pop ecx
pop ecx
cmp edi, 0x70d1a4
je 0x5b8dff
mov ecx, dword [0x70d1b8]
cmp ecx, 0x10
jb 0x5b8dde
mov eax, dword [0x70d1a4]
inc ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x5b8dd5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00447b40
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.00628ef7
pop ecx
pop ecx
push edi
mov ecx, 0x70d1a4
mov dword [0x70d1b4], ebx
mov dword [0x70d1b8], 0xf
mov byte [0x70d1a4], bl
call fcn.00449550
lea ecx, [ebp - 0x28]
call fcn.00449330
test esi, esi
je 0x5b8e12
push esi
call fcn.0062fb07
pop ecx
mov eax, 0x70d1a4
call fcn.00628f2c
ret
mov esi, 0x713314
push esi
call fcn.006291ba
cmp dword [0x713314], 0xffffffff
pop ecx
jne 0x5b8d51
push 0x65bda0
call fcn.006295ef
push esi
call fcn.00629170
pop ecx
pop ecx
jmp 0x5b8d51
Function at 0x5b91cf
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x38
mov eax, 0x6572a9
call fcn.00628f7d
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
push ecx
push eax
call fcn.005ba392
pop ecx
pop ecx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 1
push eax
push 8
push edi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b92a7
push 0x7d0
push edi
mov dword [ebp - 0x40], 0x3e8
call fcn.0062fb22
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 2
jmp 0x5b927f
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005bb0b4
pop ecx
pop ecx
mov ecx, dword [ebx + 4]
mov byte [ebp - 4], 3
push eax
cmp ecx, dword [ebx + 8]
je 0x5b926a
mov ecx, ebx
call fcn.005a0eff
jmp 0x5b9272
push ecx
mov ecx, ebx
call fcn.005a0f23
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00449330
inc edi
push 0x3e8
push esi
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x5b9248
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x5b92a7
push esi
call fcn.0062fb07
pop ecx
cmp dword [ebp - 0x34], 0
je 0x5b92b6
push dword [ebp - 0x34]
call fcn.0062fb07
pop ecx
mov eax, ebx
call fcn.00628f2c
ret

Function at 0x5b9314
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.005ba392
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 4]
pop ecx
pop ecx
push eax
push 0x20019
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b9389
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.005ba392
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
pop ecx
pop ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x5b939d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 0x14]
test esi, esi
je 0x5b9397
push esi
call fcn.0062fb07
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 8]
jmp 0x5b938c
Function at 0x5b93a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.005ba392
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
pop ecx
pop ecx
push eax
push 0x20019
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b93f4
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x5b9466
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call fcn.005ba392
push 0x800
push ebx
call fcn.0062fb22
mov esi, dword [ebp - 0xc]
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x5b944c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x5b9457
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 8], eax
test edi, edi
je 0x5b9465
push edi
call fcn.0062fb07
pop ecx
pop edi
test esi, esi
je 0x5b9471
push esi
call fcn.0062fb07
pop ecx
mov eax, dword [ebp - 8]
mov edx, ebx
pop esi
pop ebx
leave
ret
Function at 0x5b947a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x6572e5
call fcn.00628f4a
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0x10]
call fcn.005ba392
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
pop ecx
pop ecx
push eax
push 0x20019
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b94d9
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
test edi, edi
je 0x5b9574
push edi
jmp 0x5b956e
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
call fcn.005ba392
push 0x800
mov esi, 0x400
push ebx
mov dword [ebp - 0x24], esi
call fcn.0062fb22
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
je 0x5b9540
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x5b955e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 1
je 0x5b9552
cmp dword [ebp - 0x14], 7
jne 0x5b952b
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.005bb0b4
pop ecx
pop ecx
test edi, edi
je 0x5b9569
push edi
call fcn.0062fb07
pop ecx
test ebx, ebx
je 0x5b9574
push ebx
call fcn.0062fb07
pop ecx
mov eax, esi
call fcn.00628f18
ret

Function at 0x5b957c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.005ba392
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 8]
pop ecx
pop ecx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5b95ee
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call fcn.005ba392
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x14]
pop ecx
pop ecx
push 4
push eax
push 4
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x5b95f9
push esi
call fcn.0062fb07
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x5b95ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.005ba392
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 8]
pop ecx
pop ecx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5b9696
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.005ba392
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
call fcn.005ba392
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov esi, dword [ebp - 0x18]
add eax, eax
push eax
push dword [ebp - 0x10]
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x5b9696
push dword [ebp - 0x10]
call fcn.0062fb07
pop ecx
test esi, esi
je 0x5b96a1
push esi
call fcn.0062fb07
pop ecx
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x5b9816
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x65735c
call fcn.00628f7d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005bb0b4
pop ecx
pop ecx
or edi, 0xffffffff
lea ecx, [ebp - 0x28]
push edi
xor ebx, ebx
push 0x6d7474
mov dword [ebp - 4], ebx
call fcn.005b6fe5
mov dword [ebp - 0x44], 1
cmp eax, edi
jne 0x5b986a
push edi
push 0x6d9230
lea ecx, [ebp - 0x28]
call fcn.005b6fe5
cmp eax, edi
je 0x5b988e
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00448eb0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.005b87a2
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00449330
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x5b98d4
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push ebx
push eax
push edi
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5b98c7
cmp dword [ebp - 0x4c], edi
je 0x5b98ca
mov byte [ebp - 0x44], bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00449330
mov al, bl
call fcn.00628f2c
ret
Function at 0x5b98e4
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x6573a8
call fcn.00628f7d
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.005ba392
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.005ba392
lea eax, [ebp - 0x50]
push eax
push edi
call fcn.005ba392
mov edi, dword [ebp - 0x48]
add esp, 0x18
mov esi, dword [ebp - 0x58]
push 5
push dword [ebp - 0x50]
push edi
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x5b9953
mov bl, 1
jmp 0x5b99a1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b99ce
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push str.ShellExecute_error:
push eax
call fcn.005a0e81
mov ecx, 0x70d09c
mov dword [ebp - 0x44], eax
add esp, 0x14
cmp eax, ecx
je 0x5b9991
call fcn.00449330
push dword [ebp - 0x44]
mov ecx, 0x70d09c
call fcn.00449550
lea ecx, [ebp - 0x28]
call fcn.00449330
lea ecx, [ebp - 0x40]
call fcn.00449330
cmp dword [ebp - 0x50], 0
je 0x5b99b0
push dword [ebp - 0x50]
call fcn.0062fb07
pop ecx
test edi, edi
je 0x5b99bb
push edi
call fcn.0062fb07
pop ecx
test esi, esi
je 0x5b99c6
push esi
call fcn.0062fb07
pop ecx
mov al, bl
call fcn.00628f2c
ret

Function at 0x5b9a98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.005ba392
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.005ba392
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0062c160
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x4c]
and dword [ebp - 0x44], 0
add esp, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], esi
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], 0x44c
mov dword [ebp - 0x40], 0x6655ec
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x14]
test ebx, ebx
je 0x5b9b18
push ebx
call fcn.0062fb07
pop ecx
test edi, edi
je 0x5b9b23
push edi
call fcn.0062fb07
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5b9b2a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
je 0x5b9b77
push ebx
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebx
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x5ba5ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7139d4]
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x713328]
cmp eax, dword [ecx + 4]
jg 0x5ba715
cmp dword [0x70d1e4], 0
mov edi, 0x70d1d4
jne 0x5ba705
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.005bb0b4
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x5ba6b1
mov ecx, dword [0x70d1e8]
cmp ecx, 0x10
jb 0x5ba691
mov eax, dword [0x70d1d4]
inc ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x22c], eax
cmp ecx, 0x1000
jb 0x5ba688
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00447b40
mov eax, dword [ebp - 0x22c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x228]
push ecx
push eax
call fcn.00628ef7
pop ecx
pop ecx
and dword [0x70d1e4], 0
mov ecx, edi
push esi
mov dword [0x70d1e8], 0xf
mov byte [0x70d1d4], 0
call fcn.00449550
lea ecx, [ebp - 0x224]
call fcn.00449330
mov ecx, dword [0x70d1e4]
test ecx, ecx
je 0x5ba705
mov edx, dword [0x70d1e8]
mov eax, edi
mov esi, dword [0x70d1d4]
cmp edx, 0x10
cmovae eax, esi
cmp byte [ecx + eax - 1], 0x2f
je 0x5ba705
cmp edx, 0x10
mov eax, edi
cmovae eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x5ba705
mov esi, 0x6d7474
push esi
call fcn.0062fbc0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00449070
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00628f0a
leave
ret
mov esi, 0x713328
push esi
call fcn.006291ba
cmp dword [0x713328], 0xffffffff
pop ecx
jne 0x5ba603
push 0x65bdaa
call fcn.006295ef
push esi
call fcn.00629170
pop ecx
pop ecx
jmp 0x5ba603