joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb6c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.00489db0
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5096c0]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x5096c0
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push str.__s___s
call fcn.004229e7
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
neg esi
sbb esi, esi
and esi, 0xa
push ebx
mov word [ebp - 0x40], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45ec1a
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x45ec17
lea eax, [ebp - 0x24]
call fcn.0045ec57
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45ec2d
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x45ec3a
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4d2d18
call fcn.004ce9f0
sub esp, 0xc
mov eax, dword [0x5096c0]
push ebx
push esi
push edi
mov ecx, 0x5096c0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405c02
mov esi, eax
inc esi
je 0x45ee2c
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00422893
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ee1b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x45ee2f
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00405c02
inc eax
mov esi, eax
jne 0x45edd5
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
lea eax, [edi - 0x10]
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45f61a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d0e48
call fcn.004ce9f0
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x45f63a
xor eax, eax
jmp 0x45f79a
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.__s___s
call fcn.004229e7
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.004349cd
test eax, eax
jne 0x45f77e
push 0x40
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x78], 0x44
call fcn.00489db0
and dword [ebp - 0x30], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x48], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x4eaad0
mov dword [ebp - 0x20], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x45f709
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call esi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov edi, eax
call esi
cmp edi, ebx
mov dword [ebp - 0x14], eax
je 0x45f709
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call edi
test eax, eax
je 0x45f706
mov dword [ebp - 0x20], 0x430
jmp 0x45f709
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov edi, eax
je 0x45f749
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x45f749
lea eax, [ebp - 0x30]
call fcn.0045ec57
cmp dword [ebp - 0x30], ebx
je 0x45f757
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x45f765
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x45f770
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x45f77e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x45f78d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x45f7a9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x68], 0x44
call fcn.00489db0
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
call fcn.004604da
add esp, 0x10
test eax, eax
je 0x45f893
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.00460588
push 0x7fe
lea eax, [ebp - 0x866]
push esi
push eax
mov word [ebp - 0x868], si
call fcn.00489db0
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push dword [ebp + 8]
push str.__s___s
push 0x400
push eax
call fcn.0048a339
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x45f874
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x45f874
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x868]
push ecx
push esi
push esi
push dword [ebp - 4]
call eax
jmp 0x45f890
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x868]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45f8a6
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x45f8b3
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], esi
je 0x45f8c0
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x45f8cb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45fad6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d2c80
call fcn.004ce9f0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0xc
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x45fccc
mov eax, dword [0x5096c0]
push ebx
push esi
mov esi, 0x5096c0
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [0x5096c0]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x45fc92
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
call fcn.00422ab0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fb4e
mov esi, edi
call fcn.00422606
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x45fc92
lea esi, [ebp - 0x10]
call fcn.00422606
lea edi, [ebp - 0x18]
call fcn.0045ff8a
mov edi, esi
mov byte [ebp - 4], 5
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45fbf0
push eax
lea esi, [ebp - 0x18]
call fcn.0045fcdb
pop ecx
mov byte [ebp - 4], 6
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00405c31
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fbf0
mov esi, edi
call fcn.00422606
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x45fc92
lea esi, [ebp - 0x10]
call fcn.00422606
lea edi, [ebp - 0x18]
call fcn.00460029
mov edi, esi
mov byte [ebp - 4], 8
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45fc8e
push eax
lea esi, [ebp - 0x18]
call fcn.0045fcdb
pop ecx
mov byte [ebp - 4], 9
call fcn.00422ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00405c31
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00422ab0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405c8d
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fc8e
mov esi, edi
call fcn.00422606
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x45fcae
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fcae
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x45fcb7
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00405c8d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x45fd68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x45fdcb
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00489db0
add esp, 0xc
mov ebx, str._ALLUSERSPROFILE_
push ebx
xor ecx, ecx
call fcn.00416053
or edi, 0xffffffff
cmp eax, edi
je 0x45fdce
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.00460299
pop ecx
test eax, eax
pop ecx
jne 0x45fede
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ebx, str._APPDATA_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
jne 0x45fdb0
mov ebx, 0x4df694
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
jne 0x45fdb0
mov ebx, str._SYSTEM_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
je 0x45fe1c
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45fdc7
jmp 0x45fede
mov ebx, str._WINDOWS_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
je 0x45fe41
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x45fe13
mov ebx, str._CUR_MODULE_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
je 0x45fe63
lea eax, [ebp - 0x210]
push eax
call fcn.004601f2
jmp 0x45fdbe
mov ebx, str._CUR_EXE_MODULE_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
je 0x45fe92
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45fdc7
jmp 0x45fed1
mov ebx, str._CUR_DIR_
push ebx
xor ecx, ecx
call fcn.00416053
cmp eax, edi
je 0x45fdc7
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00489db0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call fcn.0045b8d1
push 0x3f
xor ecx, ecx
call fcn.00405c02
mov ebx, eax
cmp ebx, edi
je 0x45ff70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0048fcfd
pop ecx
jmp 0x45ff61
and word [ebp + 8], 0
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0048fd0a
and eax, 0x8000000f
jns 0x45ff27
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp + 8]
push 0x4eac08
push eax
call fcn.004614af
movzx edi, word [ebp + 8]
add esp, 0xc
test ebx, ebx
jl 0x45ff7f
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp ebx, eax
mov dword [ebp - 4], eax
jge 0x45ff7f
call fcn.00434d8b
mov word [eax + ebx*2], di
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0040e1f4
inc ebx
mov ecx, ebx
mov eax, esi
call fcn.0046152a
cmp ax, 0x3f
je 0x45ff0a
mov eax, esi
call fcn.0045ec70
xor eax, eax
inc eax
jmp 0x45fdc9
push 0x80070057
call fcn.00422c1d
int3
Function at 0x45ff8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x50c0bc], 1
mov dword [ebp - 4], esi
jne 0x45ffc9
mov eax, dword [0x5096c0]
or dword [0x50c0bc], 1
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
push 0x4d6ef1
mov dword [0x50c0b8], eax
call fcn.00489b3e
pop ecx
mov eax, dword [0x50c0b8]
cmp dword [eax - 0xc], esi
jne 0x460012
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.00489db0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x50c0b8
call fcn.00422bdc
mov eax, dword [0x50c0b8]
add eax, 0xfffffff0
call fcn.00422b5e
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x460029
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x50c0b4], 1
mov dword [ebp - 4], esi
jne 0x460068
mov eax, dword [0x5096c0]
or dword [0x50c0b4], 1
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
push 0x4d6efe
mov dword [0x50c0b0], eax
call fcn.00489b3e
pop ecx
mov eax, dword [0x50c0b0]
cmp dword [eax - 0xc], esi
jne 0x4600b1
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.00489db0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x50c0b0
call fcn.00422bdc
mov eax, dword [0x50c0b0]
add eax, 0xfffffff0
call fcn.00422b5e
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

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

Disassembly:
mov eax, 0x4d35d9
call fcn.004ce9f0
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x5096c0
mov dword [ebp - 0x10], edi
call fcn.00420a91
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.00489db0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x46014a
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00422bdc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x460299
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4f6488
call fcn.004ce860
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x460347
cmp dword [ebp + 0xc], eax
je 0x460347
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x460347
mov ebx, 0x103
cmp esi, ebx
ja 0x460347
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048873c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x460343
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00489db0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x460343
cmp eax, ebx
ja 0x460343
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004898fa
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x460343
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x460356
push dword [ebp - 0x1c]
call fcn.0048aed2
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004ce89b
ret

Function at 0x460442
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d35d9
call fcn.004ce9f0
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x206
mov dword [ebp - 4], edi
lea eax, [ebp - 0x216]
push edi
mov dword [ebp - 0x10], edi
push eax
mov word [ebp - 0x218], di
call fcn.00489db0
add esp, 0xc
mov ecx, 0x5096c0
call fcn.00420a91
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x4604ca
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00422bdc
push str.kinst.log
push esi
call fcn.0040c5e6
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4604da
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push str.explorer.exe
lea eax, [ebp - 4]
push eax
xor esi, esi
xor edi, edi
call fcn.00422646
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.00489db0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x460577
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x46055c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0048b85c
test eax, eax
pop ecx
pop ecx
je 0x460562
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46053a
jmp 0x460570
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x460760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push 0x206
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00489db0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00422646
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4608b8
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4d1208
call fcn.004ce9f0
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.0040c5e6
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x4608fa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x460901
call esi
cmp eax, 5
je 0x460904
xor edi, edi
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x460cf5
Capabilities:
Move file

Disassembly:
mov eax, 0x4d2c30
call fcn.004ce9f0
sub esp, 0x38
push esi
push edi
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00434d8b
push eax
lea eax, [ebp - 0x44]
call fcn.00435a3a
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.00435ae1
lea eax, [ebp - 0x28]
call fcn.00435c11
movzx edi, al
test edi, edi
jne 0x460d65
cmp dword [ebp - 0x14], 0x104
jb 0x460d46
xor al, al
jmp 0x460d62
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x460d52
lea eax, [ebp - 0x24]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
movzx edi, al
push 0
push 1
lea esi, [ebp - 0x28]
call fcn.00402ed2
push 0
push 1
lea esi, [ebp - 0x44]
call fcn.00402ed2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x461906
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4d5aeb
call fcn.004ce9f0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
je 0x461a92
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x461a92
push eax
lea esi, [ebp - 0xa4]
call fcn.00426111
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.00420a4e
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], eax
je 0x46196d
push dword [ebp - 0xa4]
call fcn.00489ff4
pop ecx
mov ecx, 0x5096c0
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 0x4eae14
call fcn.00420a91
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push dword [edi]
mov eax, esi
push eax
call fcn.00422bdc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4619a2
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
call fcn.0046183b
push dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4619c3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 0
lea ebx, [ebp - 0x20]
jne 0x4619d3
push 0x12c
jmp 0x4619d6
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00461545
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x461a46
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x4619f9
mov dword [eax], ebx
cmp ebx, 0x2a
jne 0x461a2e
cmp dword [ebp - 0x10], esi
je 0x461a0f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], esi
mov esi, 0x105
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, esi
jmp 0x461a95
cmp dword [ebp - 0x10], esi
je 0x461a3f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], esi
mov esi, 0xfa
jmp 0x461a14
push dword [edi]
call esi
test eax, eax
jne 0x461a65
cmp dword [ebp - 0x10], eax
je 0x461a60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push 0x35
pop esi
jmp 0x461a14
cmp dword [ebp - 0x10], 0
je 0x461a78
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405c8d
xor eax, eax
jmp 0x461a95
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret