joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453e6e
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4a8a07
call fcn.004a7044
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4da2b4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x453f10
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x453eb2
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x453f0f
mov eax, dword [0x4da2b4]
add eax, 0xfffffff0
call fcn.00405b4d
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00453f88
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4da2b4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00405cd9
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45428b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4aa078
call fcn.004a7044
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x4542d6
xor eax, eax
jmp 0x45439a
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.00477100
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.004549b9
test edi, edi
jle 0x454397
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45438f
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405e5d
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0044ff37
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405cd9
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405e5d
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0044ff37
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
add ebx, 8
dec dword [ebp - 0x10]
jne 0x45431c
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4543d1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x454452
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x454452
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x45444d
cmp dword [esi + 4], ebx
je 0x45444d
cmp dword [esi + 8], ebx
je 0x45444d
cmp dword [esi + 0xc], ebx
je 0x45444d
cmp eax, ebx
je 0x45444d
xor eax, eax
inc eax
jmp 0x45444f
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x454627
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a8cc8
call fcn.004a7044
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.00477100
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00407100
push 0x4b85bc
push eax
mov dword [ebp - 4], esi
call fcn.00405a9a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00405cd9
test bl, bl
je 0x4547fd
mov ebx, str.___
push ebx
call fcn.0047a28a
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0047a28a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00407100
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00405a9a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405cd9
test bl, bl
je 0x454716
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00406d98
mov dword [ebp - 4], 2
call fcn.00405daf
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4547cc
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00407100
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00405a9a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405cd9
test bl, bl
je 0x4547d4
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.00406d98
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405e5d
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004067a0
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00405daf
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405cd9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4547e7
mov esi, edi
call fcn.00405d6f
jmp 0x454804
cmp ecx, 1
jge 0x4547f6
push 0x80070057
call fcn.00405bcb
cmp word [eax + 2], 0x3a
jne 0x4547de
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x454816
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x454840
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x45546d
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x455485
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x455475
ret 8

Function at 0x455572
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4a8a07
call fcn.004a7044
sub esp, 0x10
mov eax, dword [0x4d92a0]
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x4d92a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push edi
call fcn.00453741
push edi
mov ebx, eax
call fcn.0047e4c4
add esp, 0x10
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x34]
push edx
push dword [ebp - 0x14]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x__x__x.ich
call fcn.004070b5
mov ebx, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
add esp, 0x18
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x455640
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45562f
cmp dword [ebp + 8], ebx
jne 0x45562f
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x455640
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x455b99
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a9624
call fcn.004a7044
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.00477100
add esp, 0xc
mov ecx, 0x4d92a0
call fcn.00405ea0
xor edi, edi
inc edi
push edi
push 0x23
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
lea eax, [ebp - 0x220]
jne 0x455c65
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x455cbf
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00406078
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406d98
mov dword [ebp - 4], edi
mov edi, 0x4b85bc
push edi
push eax
call fcn.00405a9a
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405cd9
cmp byte [ebp - 0xd], bl
je 0x455c5e
push edi
push esi
call fcn.00406d75
push str.All_UsersApplication_Data_
jmp 0x455ca6
push eax
push esi
call fcn.00406078
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406d98
mov edi, 0x4b85bc
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00405a9a
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405cd9
cmp byte [ebp - 0xd], bl
je 0x455cac
push edi
push esi
call fcn.00406d75
push str.winmasterzskich_
push esi
call fcn.00406d75
push dword [esi]
call fcn.0040656d
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x455f95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x456030
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.svrid
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x455fd7
cmp dword [ebp - 8], 2
jne 0x45602e
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405d6f
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405c04
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x45602d
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x45601f
push eax
call fcn.0047a28a
pop ecx
mov edx, esi
call fcn.00405be3
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x456037
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x456066
push dword [esp + 8]
call fcn.0047a28a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push edi
push str.svrid
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x456066
inc edi
mov eax, edi
pop edi
ret 4
Function at 0x4566ba
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4aa9e8
call fcn.004a7044
sub esp, 0xe0
mov eax, dword [0x4d92a0]
push ebx
push esi
push edi
mov esi, 0x4d92a0
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x24], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4d92a0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0xc6
lea eax, [ebp - 0xea]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0xec], di
call fcn.00477100
mov eax, dword [0x4d92a0]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4d92a0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00456e30
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00405daf
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, edi
call fcn.00405254
lea eax, [ebp - 0x14]
push eax
call fcn.00456ebb
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00405daf
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x64
lea eax, [ebp - 0xec]
push eax
mov esi, 0x4b84e0
push esi
push str.Version
push str.Common
call ebx
test eax, eax
je 0x456885
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406078
lea eax, [ebp - 0x10]
call fcn.00405254
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x14]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.00406722
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00405daf
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
push esi
push 0x4b84dc
mov eax, edi
push eax
call fcn.00454844
push esi
push 0x4bd708
mov eax, edi
push eax
call fcn.00454844
push dword [ebp - 0x20]
lea eax, [ebp - 0xec]
push 0x64
push eax
push esi
push str.version
push str.infos
call ebx
test eax, eax
je 0x456885
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406078
lea eax, [ebp - 0x14]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.00406d98
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406d24
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
push dword [ebp - 0x18]
call fcn.0047acda
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x456e30
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aa944
call fcn.004a7044
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040660d
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00405254
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405b4d
add eax, 0x10
mov dword [edi], eax
push 0x4bd53c
push edi
mov dword [ebp - 0x14], esi
call fcn.00406d75
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456e9e
lea eax, [ebp - 0x10]
call fcn.00405daf
push str.ressrcchsuplive.svr
push edi
call fcn.00406d75
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x456ebb
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aa944
call fcn.004a7044
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040660d
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00405254
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405b4d
add eax, 0x10
mov dword [edi], eax
push str.datawmain.ini
push edi
mov dword [ebp - 0x14], esi
call fcn.00406d75
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456f29
lea eax, [ebp - 0x10]
call fcn.00405daf
push str.ressrcchswmain.ini
push edi
call fcn.00406d75
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x456f6f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x45700d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
je 0x4570e9
cmp word [ecx], bx
je 0x4570e9
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x4570e9
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x4570df
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x4570df
lea ecx, [ebp - 0x14]
call fcn.00457125
test eax, eax
je 0x4570df
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4570df
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
je 0x4570df
mov edx, dword [ebp - 4]
call fcn.004570f0
test eax, eax
jge 0x4570df
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x4570f0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x45711f
test esi, esi
jbe 0x45711f
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x45710e
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x457102
shl eax, 2
jmp 0x457118
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x457113
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x457149
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x457167
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
ret
Function at 0x4571c2
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4571e4
xor eax, eax
inc eax
jmp 0x45724e
cmp dword [edi], esi
je 0x4571ed
xor ebx, ebx
inc ebx
jmp 0x457232
lea eax, [ebp - 8]
push eax
push 0x4bd854
push 1
push esi
push 0x4bd844
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45720c
push 2
jmp 0x457231
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457221
push 3
jmp 0x457231
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457232
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45723f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45724c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4575ab
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4aaf7c
call fcn.004a7044
sub esp, 0x280
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405e5d
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x457608
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push esi
mov dword [ebp - 0x28c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x457643
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x4575e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00454485
mov byte [ebp - 4], 1
jmp 0x45765d
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x457750
cmp eax, edi
je 0x457750
cmp eax, 4
je 0x457750
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x457750
mov eax, dword [0x4d92a0]
mov ecx, 0x4d92a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
call fcn.00457d0d
test eax, eax
push ebx
je 0x4576d2
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.004544ef
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00405daf
mov eax, dword [ebp - 0x2c]
jmp 0x4576ee
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00454595
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00405daf
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405cd9
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x45773d
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x45773d
push eax
push esi
push edx
call fcn.0047e275
add esp, 0xc
test eax, eax
jne 0x45773d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x457737
push dword [ebp - 0x284]
call fcn.00454816
cmp eax, 1
pop ecx
jne 0x45773a
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00405cd9
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45765b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45777c
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.00450033
lea esi, [ebp - 0x5c]
call fcn.004543ab
mov esi, dword [ebp - 0x14]
jmp 0x4575ea