joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x5966da
call fcn.00595190
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00432a8a
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48165b
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48163c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x48163c
lea ecx, [ebp - 0x10]
call fcn.004815b7
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x481692
xor esi, esi
jmp 0x48163f
push eax
call fcn.00481610
test eax, eax
pop ecx
je 0x48168e
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48163c
call edi
cmp eax, ebx
jne 0x48168e
jmp 0x48163c

Function at 0x4816b0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x5966da
call fcn.00595190
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.0049bf00
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 [0x61b884]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x61b884
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.00432a05
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x40], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x481756
cmp dword [ebp + 0x10], ebx
je 0x481753
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x481769
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x481776
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.004011c0
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 0x481934
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x599f6d
call fcn.00595190
sub esp, 0xc
mov eax, dword [0x61b884]
push ebx
push esi
push edi
mov ecx, 0x61b884
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.00432a8a
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0043288b
mov esi, eax
inc esi
je 0x4819d4
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.004328d3
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4819c3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x4819d7
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.0043288b
inc eax
mov esi, eax
jne 0x48197d
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [edi - 0x10]
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x481f55
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x599f7f
call fcn.00595190
sub esp, 0x68
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x481f74
xor eax, eax
jmp 0x4820b7
mov eax, dword [0x61b884]
push esi
mov ecx, 0x61b884
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.00432a05
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.0044f85d
test eax, eax
jne 0x48209a
push 0x40
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0049bf00
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 - 0x44], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], str.Winsta0Default
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 0x482044
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x482044
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x482041
mov dword [ebp - 0x20], 0x430
jmp 0x482044
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
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 - 0x30], ebx
mov edi, eax
je 0x482073
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x482081
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x48208c
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x48209a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
pop esi
je 0x4820aa
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4820c5
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.0049bf00
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.00482efc
add esp, 0x10
test eax, eax
je 0x4821af
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.00482faa
push 0x7fe
lea eax, [ebp - 0x866]
push esi
push eax
mov word [ebp - 0x868], si
call fcn.0049bf00
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push dword [ebp + 8]
push str.__s___s
push 0x400
push eax
call fcn.0049be19
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x482190
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x482190
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 0x4821ac
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 0x4821c2
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x4821cf
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], esi
je 0x4821dc
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x4821e7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4821ef
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x597a8a
call fcn.00595190
sub esp, 0x178
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x48220e
xor eax, eax
jmp 0x4823c5
mov eax, dword [0x61b884]
push esi
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.00432a05
push pe_nt_image_headers32
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0049bf00
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x482274
cmp dword [ebp - 0x180], 6
jne 0x482274
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x482288
call fcn.0044f85d
jmp 0x48228d
call fcn.0044f80d
cmp eax, ebx
jne 0x4823a8
push edi
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0049bf00
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
call fcn.0044f8c8
add esp, 0x10
test al, al
jne 0x4822f3
cmp dword [ebp - 0x10], ebx
je 0x4822e9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0044fa42
pop ecx
push str.userenv.dll
mov dword [ebp - 0x68], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x482352
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x482352
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x48234f
mov dword [ebp - 0x14], 0x430
jmp 0x482352
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x482382
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x482390
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x482399
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x4823a8
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x4823b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4823d2
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x598489
call fcn.00595190
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0xc
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4825c8
mov eax, dword [0x61b884]
push ebx
push esi
mov esi, 0x61b884
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [0x61b884]
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 0x48258e
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
call fcn.004013b4
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48244a
mov esi, edi
call fcn.00401462
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x48258e
lea esi, [ebp - 0x10]
call fcn.00401462
lea edi, [ebp - 0x18]
call fcn.0048298f
mov edi, esi
mov byte [ebp - 4], 5
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4824ec
push eax
lea esi, [ebp - 0x18]
call fcn.004825d7
pop ecx
mov byte [ebp - 4], 6
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0041514d
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4824ec
mov esi, edi
call fcn.00401462
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x48258e
lea esi, [ebp - 0x10]
call fcn.00401462
lea edi, [ebp - 0x18]
call fcn.00482a3f
mov edi, esi
mov byte [ebp - 4], 8
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x48258a
push eax
lea esi, [ebp - 0x18]
call fcn.004825d7
pop ecx
mov byte [ebp - 4], 9
call fcn.004013b4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0041514d
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004013b4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48258a
mov esi, edi
call fcn.00401462
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x4825aa
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4825aa
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x4825b3
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.004011c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x48298f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x61f9bc], 1
mov dword [ebp - 4], esi
jne 0x4829ce
mov eax, dword [0x61b884]
or dword [0x61f9bc], 1
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
push 0x59c40c
mov dword [0x61f9b8], eax
call fcn.0049ba0e
pop ecx
mov eax, dword [0x61f9b8]
cmp dword [eax - 0xc], esi
jne 0x482a28
push ebx
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0049bf00
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
call fcn.0049be03
pop ecx
lea ecx, [ebp - 0x210]
mov ebx, eax
push ecx
mov eax, 0x61f9b8
call fcn.004013f5
pop ebx
mov eax, dword [0x61f9b8]
add eax, 0xfffffff0
call fcn.0040135c
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x482a3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x61f9b4], 1
mov dword [ebp - 4], esi
jne 0x482a7e
mov eax, dword [0x61b884]
or dword [0x61f9b4], 1
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
push 0x59c419
mov dword [0x61f9b0], eax
call fcn.0049ba0e
pop ecx
mov eax, dword [0x61f9b0]
cmp dword [eax - 0xc], esi
jne 0x482ad8
push ebx
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0049bf00
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
call fcn.0049be03
pop ecx
lea ecx, [ebp - 0x210]
mov ebx, eax
push ecx
mov eax, 0x61f9b0
call fcn.004013f5
pop ebx
mov eax, dword [0x61f9b0]
add eax, 0xfffffff0
call fcn.0040135c
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

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

Disassembly:
mov eax, 0x597741
call fcn.00595190
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x61b884
mov dword [ebp - 0x10], edi
call fcn.004014bd
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.0049bf00
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 0x482b71
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.00432a64
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x482cbb
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fcb78
call fcn.00594ff8
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x482d69
cmp dword [ebp + 0xc], eax
je 0x482d69
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 0x482d69
mov ebx, 0x103
cmp esi, ebx
ja 0x482d69
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.0049a678
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x482d65
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049bf00
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x482d65
cmp eax, ebx
ja 0x482d65
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a07b6
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x482d65
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x482d78
push dword [ebp - 0x1c]
call fcn.0049bf7a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.00595033
ret

Function at 0x482e64
Capabilities:
Get common file path

Disassembly:
mov eax, 0x597741
call fcn.00595190
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.0049bf00
add esp, 0xc
mov ecx, 0x61b884
call fcn.004014bd
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 0x482eec
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00432a64
push str.kinst.log
push esi
call fcn.004327b5
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x482efc
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.00432a8a
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.0049bf00
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x482f99
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x482f7e
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0049e684
test eax, eax
pop ecx
pop ecx
je 0x482f84
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x482f5c
jmp 0x482f92
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.004011c0
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4832b5
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x5980d9
call fcn.00595190
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.004327b5
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 0x4832f7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4832fe
call esi
cmp eax, 5
je 0x483301
xor edi, edi
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x483716
Capabilities:
Move file

Disassembly:
mov eax, 0x59843f
call fcn.00595190
sub esp, 0x38
push esi
push edi
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.0045001a
push eax
lea eax, [ebp - 0x44]
call fcn.0041e2eb
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.004508a1
lea eax, [ebp - 0x28]
call fcn.0045185d
movzx edi, al
test edi, edi
jne 0x483786
cmp dword [ebp - 0x14], 0x104
jb 0x483767
xor al, al
jmp 0x483783
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x483773
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.0041a4e2
push 0
push 1
lea esi, [ebp - 0x44]
call fcn.0041a4e2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x4837b9
Capabilities:
Check if file exists

Disassembly:
push ecx
push edi
push 3
xor edi, edi
push edi
push edi
push esi
push dword [esp + 0x1c]
call fcn.004846e4
add esp, 0x14
test eax, eax
jne 0x4837df
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4837df
inc edi
mov eax, edi
pop edi
pop ecx
ret
Function at 0x483c24
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x59668c
call fcn.00595190
push ecx
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 0x10], edi
and dword [ebp - 4], edi
mov eax, dword [0x61b884]
mov ecx, 0x61b884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0044f57c
test eax, eax
je 0x483c78
lea eax, [ebp - 0x14]
push eax
mov eax, esi
push eax
call fcn.0044f5f0
test eax, eax
je 0x483c78
inc edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011c0
cmp dword [ebp - 0x10], 0
je 0x483c92
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x483ca2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x5966da
call fcn.00595190
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
mov esi, ecx
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push eax
mov ebx, str.open
push ebx
push ecx
call edi
cmp eax, 0x20
jle 0x483cd5
xor esi, esi
inc esi
jmp 0x483d12
mov eax, dword [esi]
push 1
push 0
push eax
push str.IEXPLORE.EXE
push ebx
push 0
call edi
cmp eax, 0x20
jg 0x483cd0
lea eax, [ebp - 0x10]
push eax
call fcn.00482aef
pop ecx
and dword [ebp - 4], 0
push dword [esi]
push dword [ebp - 0x10]
call fcn.004820c5
mov esi, eax
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret