joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ef8f
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ec]
sub esp, 0x26c
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x1e8], eax
push ebx
push esi
push edi
push 4
pop ebx
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp + 0x1a0]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp + 0x1a0]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], 1
call fcn.004197e0
push dword [ebp + 0x1f4]
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.004197e0
lea eax, [ebp - 0x74]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48f072
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edi, str.Start
push edi
lea eax, [ebp - 0x68]
push eax
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x48f072
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x68]
push eax
push esi
call edi
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push str.DeleteFlag
lea eax, [ebp - 0x68]
push eax
push esi
call edi
mov al, 1
jmp 0x48f074
xor al, al
mov ecx, dword [ebp + 0x1e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x1ec
leave
ret

Function at 0x48f08c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x3a0], ax
lea eax, [ebp + 0x3a2]
push eax
mov esi, ecx
call fcn.00497680
add esp, 0xc
lea eax, [ebp + 0x3a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x48f159
lea eax, [esi + 0x738]
mov dword [ebp - 0x80], eax
lea eax, [esi + 0x328]
mov dword [ebp - 0x7c], eax
lea eax, [esi + 0x530]
add esi, 0xb3e
push edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], eax
xor edi, edi
mov esi, 0x410
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.00497680
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00497680
push dword [ebp + edi*4 - 0x80]
lea eax, [ebp + 0x3a0]
push eax
push 0x4c8b7c
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00415b00
add esp, 0x2c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 4
jb 0x48f10a
pop edi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
pop esi
call fcn.00497941
add ebp, 0x5ac
leave
ret
Function at 0x490015
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call ebx
test eax, eax
je 0x490036
xor eax, eax
inc eax
jmp 0x4900f1
and dword [ebp + 8], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 0xffffffff
je 0x49007a
test al, 0x10
je 0x49007a
push esi
mov dword [ebp + 8], 1
call edi
test eax, eax
jne 0x490085
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49008a
cmp dword [ebp + 8], 0
push esi
jne 0x49007f
call ebx
jmp 0x490081
push esi
call ebx
jmp 0x49005b
call edi
test eax, eax
je 0x49008a
xor eax, eax
inc eax
jmp 0x4900f0
cmp byte [ebp + 0xc], 0
je 0x49009d
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4900ee
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4900c4
push str..lnk
push eax
call fcn.00498d33
pop ecx
pop ecx
test eax, eax
jne 0x4900c4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4900ee
push esi
lea ecx, [ebp + 0xc]
call fcn.00404050
mov esi, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.004105d0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404d30
mov dword [esi + 0x1c], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49011f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1d4]
xor ebx, ebx
test byte [0x4fb378], 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], ebx
mov esi, 0x4fb358
jne 0x49017b
or dword [0x4fb378], 1
mov ecx, esi
call fcn.0046ce1e
push 0x4c767c
call fcn.004982ba
pop ecx
cmp dword [0x4fb374], ebx
je 0x4901a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4fb354]
sub ecx, eax
cmp ecx, 0x1388
ja 0x4901a6
cmp dword [ebp + 0x1d8], 1
jne 0x49024f
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49024f
mov ecx, esi
call fcn.00487b3e
push 0x228
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00497680
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x68], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x490241
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404050
lea ecx, [ebp - 0x6c]
call fcn.00409990
mov ecx, eax
call fcn.004099e0
lea ecx, [ebp - 0x6c]
call fcn.004050f0
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.004884e3
mov ecx, dword [ebp - 0x60]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00497680
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x68], edi
call fcn.00404d30
lea eax, [ebp - 0x68]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4901e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.00404050
lea ecx, [ebp - 0x6c]
call fcn.004050f0
push esi
push dword [0x4fb370]
lea ecx, [ebp - 0x78]
call fcn.0047b281
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004868d6
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0047065d
test al, al
jne 0x4902a9
test edi, edi
je 0x4902a2
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.004884e3
mov eax, dword [eax]
mov dword [edi], eax
mov dword [ebp - 0x70], 1
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp + 0x1c4]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x1c8
leave
ret
Function at 0x490c6f
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
push esi
push edi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1d8]
xor edi, edi
test byte [0x4fb3a0], 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], edi
mov esi, 0x4fb380
jne 0x490cca
or dword [0x4fb3a0], 1
mov ecx, esi
call fcn.00409400
push 0x4c7693
call fcn.004982ba
pop ecx
cmp dword [0x4fb39c], edi
je 0x490cf5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4fb37c]
sub ecx, eax
cmp ecx, 0x1388
ja 0x490cf5
cmp dword [ebp + 0x1dc], 1
jne 0x490da2
push ebx
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x490da1
mov ecx, esi
call fcn.004095a0
push 0x228
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00497680
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov edi, 0x22c
push ebx
mov dword [ebp - 0x64], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x490d96
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404050
lea ecx, [ebp - 0x68]
call fcn.00409990
mov ecx, eax
call fcn.004099e0
lea ecx, [ebp - 0x68]
call fcn.004050f0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00409420
mov ecx, eax
call fcn.00409780
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00497680
mov ecx, dword [ebp - 0x68]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [ebp - 0x64], edi
call fcn.00404d30
lea eax, [ebp - 0x64]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490d36
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
call fcn.00404050
lea ecx, [ebp - 0x68]
call fcn.004050f0
push esi
push dword [0x4fb398]
lea ecx, [ebp - 0x74]
call fcn.0040a920
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004095d0
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.00409fa0
test al, al
jne 0x490e16
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00409420
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
je 0x490e16
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00409420
mov ecx, dword [ebp - 0x78]
push eax
call fcn.00409690
mov dword [ebp - 0x6c], 1
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp + 0x1c8]
mov eax, dword [ebp - 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.00497941
add ebp, 0x1cc
leave
ret
Function at 0x491c1a
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and ebx, 0xffdf
xor esi, esi
inc esi
lea eax, [ebx - 0x41]
push edi
mov dword [ebp - 0x30], esi
cmp ax, 0x19
ja 0x491d22
mov eax, dword [0x4d7968]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d796c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x491d22
push 3
pop ecx
cmp eax, ecx
je 0x491c8e
jbe 0x491c87
cmp eax, 5
jbe 0x491d22
cmp eax, 6
je 0x491c8e
mov eax, esi
jmp 0x491d24
mov esi, str..X:
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x14], bx
xor ebx, ebx
push ebx
push ebx
push ecx
push ebx
push ecx
push SysReAllocStringLen
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x491cc2
xor eax, eax
inc eax
jmp 0x491d24
mov edi, 0x227
push edi
call fcn.00496700
pop ecx
push ebx
mov esi, eax
mov dword [esi + 4], edi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push dword [esi + 4]
lea eax, [ebp - 0x28]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x491d0d
mov eax, dword [esi + 0x1c]
cmp eax, 7
je 0x491d0a
cmp eax, 4
jne 0x491d0d
mov dword [ebp - 0x30], ebx
push esi
call fcn.0049961b
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x491d24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
leave
ret

Function at 0x491d33
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x491da3
mov ecx, dword [0x4d7968]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4d796c]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x491d9e
dec eax
dec eax
je 0x491d9a
dec eax
je 0x491d96
dec eax
je 0x491d92
push dword [ebp + 8]
call fcn.00491c1a
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x491da5
push 5
jmp 0x491da0
push 4
jmp 0x491da0
push 3
jmp 0x491da0
push 2
pop eax
jmp 0x491da6
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497941
leave
ret
Function at 0x491db2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp dword [0x4faa38], ebx
je 0x491dd9
mov ebx, dword [0x4faa3c]
jmp 0x491ed8
call fcn.0048128b
cmp eax, 0xffffffff
jne 0x491dea
push 0x73
jmp 0x491ed7
cmp dword [0x4fb2c8], ebx
je 0x491ed5
call fcn.0046de3e
test eax, eax
jne 0x491ed5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x60], 0x6c
jne 0x491e13
push 0x6c
jmp 0x491ed7
push 0x4faa18
lea ecx, [ebp - 0x18]
call fcn.00404530
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], ebx
jne 0x491e38
push 0x71
pop ebx
lea ecx, [esi - 0x10]
call fcn.00404d30
jmp 0x491ed8
push esi
call fcn.0048abd3
pop ecx
test al, al
jne 0x491e47
push 0x6d
jmp 0x491e2a
mov eax, dword [0x4cd7a4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4cd7a8]
mov dword [ebp - 8], eax
cmp dword [esi - 0xc], ebx
jge 0x491e66
push 0x80070057
call fcn.00404ce0
mov ax, word [esi]
mov word [ebp - 0xc], ax
push dword [ebp - 0xc]
call fcn.00491d33
pop ecx
cmp eax, 1
je 0x491e7f
push 0x70
jmp 0x491e2a
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x491e2b
cmp dword [ebp - 0x10], ebx
ja 0x491e2b
jb 0x491ece
cmp dword [ebp - 0x14], 0x11e1a300
ja 0x491e2b
push 0x6f
jmp 0x491e2a
push 0x6b
pop ebx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00497941
leave
ret
Function at 0x491ee8
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f94]
mov eax, 0x4014
call fcn.004985e0
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x3f90], eax
mov eax, dword [ebp + 0x3f9c]
push ebx
mov ebx, dword [ebp + 0x3fa8]
push esi
mov esi, dword [ebp + 0x3fa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3fac]
push edi
mov edi, dword [ebp + 0x3fa4]
mov dword [ebp - 0x78], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.00497680
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x491fb1
cmp eax, 0x3fff
ja 0x491fb1
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push dword [ebp - 0x74]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x491fb1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x4d689c
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x491fb1
mov eax, dword [ebp - 0x74]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [edi], cx
mov cx, word [eax + 0xe]
mov word [ebx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp - 0x78]
mov word [ecx], ax
xor eax, eax
inc eax
jmp 0x491fb3
xor eax, eax
mov ecx, dword [ebp + 0x3f90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x3f94
leave
ret

Function at 0x491fcb
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x1a0]
push edi
mov edi, dword [ebp + 0x19c]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00497680
add esp, 0xc
push 0
push 0x25
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x49202f
push str.User32.dll
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x492064
push str.ShutdownBlockReasonCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49205b
push ebx
push edi
call eax
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x194
leave
ret
Function at 0x49207e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push esi
push edi
mov dword [ebp - 0x80], eax
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.00497680
add esp, 0xc
push edi
push 0x25
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4920df
push str.User32.dll
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x49210d
push str.ShutdownBlockReasonDestroy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x492106
push dword [ebp - 0x80]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x18c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00497941
add ebp, 0x190
leave
ret

Function at 0x493381
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0
push 1
mov edi, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push edi
mov ebx, ecx
push 0
push ebx
mov byte [ebp - 1], 1
call esi
test eax, eax
jne 0x4933d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4933c8
push 8
push 1
push edi
push 0
push ebx
call esi
test eax, eax
jne 0x4933d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4933d0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496198
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4fc0c0], 0
push esi
jne 0x49610b
call fcn.00496031
test eax, eax
je 0x49614e
mov eax, dword [0x4fc0c0]
cmp eax, 1
jne 0x49612c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49614e
pop esi
ret
push eax
call dword [0x4fc0c8]
test eax, eax
jne 0x496196
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x496152
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4fc0c0]
call dword [0x4fc0c8]
mov edi, eax
test edi, edi
je 0x496177
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x496193
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4fc0c0]
call dword [0x4fc0c4]
add edi, 0x10
cmp edi, esi
jb 0x49617f
mov eax, edi
pop edi
pop esi
ret
jmp 0x4960f8

Function at 0x497941
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f4de0]
jne 0x49794b
repz ret
jmp fcn.004a2dfa

Function at 0x4b5005
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a17de
and dword [ebp - 4], 0
cmp dword [0x4fcf1c], 0
mov ebx, eax
jne 0x4b50b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b5167
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b5167
push eax
call fcn.004a176c
mov dword [esp], 0x4d356c
push edi
mov dword [0x4fcf1c], eax
call esi
push eax
call fcn.004a176c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fcf20], eax
call esi
push eax
call fcn.004a176c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fcf24], eax
call esi
push eax
call fcn.004a176c
pop ecx
mov dword [0x4fcf2c], eax
test eax, eax
je 0x4b50b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a176c
pop ecx
mov dword [0x4fcf28], eax
mov eax, dword [0x4fcf28]
cmp eax, ebx
je 0x4b510e
cmp dword [0x4fcf2c], ebx
je 0x4b510e
push eax
call fcn.004a17e7
push dword [0x4fcf2c]
mov esi, eax
call fcn.004a17e7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b510e
test edi, edi
je 0x4b510e
call esi
test eax, eax
je 0x4b5105
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b5105
test byte [ebp - 0xc], 1
jne 0x4b510e
or dword [ebp + 0x10], 0x200000
jmp 0x4b5147
mov eax, dword [0x4fcf20]
cmp eax, ebx
je 0x4b5147
push eax
call fcn.004a17e7
pop ecx
test eax, eax
je 0x4b5147
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b5147
mov eax, dword [0x4fcf24]
cmp eax, ebx
je 0x4b5147
push eax
call fcn.004a17e7
pop ecx
test eax, eax
je 0x4b5147
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fcf1c]
call fcn.004a17e7
pop ecx
test eax, eax
je 0x4b5167
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b5169
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba7c0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004985e0
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4ba92b
cmp dword [esp + 0x2c20], edi
je 0x4ba92b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.004195c0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4ba904
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00497680
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ba8f7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00497680
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004bbee0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00419590
test eax, eax
jne 0x4ba8f7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4ba90e
inc ebx
cmp ebx, 0x10
jl 0x4ba810
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00497941
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00497941
add esp, 0x2c14
ret