joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487210
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9cb0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x98
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
push 0x108
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a310
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push str._TMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x48755d
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x48755d
dec ecx
cmp ecx, eax
ja 0x4872f9
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x487306
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040beb0
lea eax, [ebp - 0x34]
push eax
call fcn.004875b0
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_expand__TMP__environment_variable_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00491170
push 0x51dce8
lea eax, [ebp - 0x6c]
push eax
call fcn.004a629b
push str.Unable_to_expand__TEMP__environment_variable_
push 0x50a92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.00413400
push 0x51dce8
lea eax, [ebp - 0x80]
push eax
call fcn.004a629b
int3
Function at 0x487670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9d17
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x521104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x14], ecx
mov word [esi], ax
lea edi, [eax + 1]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4876fd
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
call fcn.0048e2e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
cmp dword [ecx + 0x14], 8
jb 0x487718
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x487728
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 7
push eax
lea eax, [ebp - 0x50]
or edi, 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00488d40
lea eax, [ebp - 0x44]
add esp, 0x10
cmp esi, eax
je 0x4877a1
mov ecx, esi
call fcn.0040a450
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
and edi, 0xfffffffd
call fcn.0040a450
cmp dword [esi + 0x10], 0
mov eax, esi
je 0x4877fa
cmp dword [esi + 0x14], 8
jb 0x4877c0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4877d7
mov ecx, dword [ebp - 0x14]
test al, 0x10
je 0x4876f3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4877e1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4877f8
mov ecx, dword [ebp - 0x14]
test al, 0x10
jne 0x4876f3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x487810
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x487860
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48782e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x487860
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x487853
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x48786a
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x487874
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4878b3
add bh, 0xff
je 0x4878ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x48789c
cmp eax, 0x20
mov eax, 0x14
jne 0x4878a1
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x487820
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4878bd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4878e6
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x4878de
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x487b20
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x487b70
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x487b3e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x487b70
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x487b63
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x487b7a
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x487b84
mov eax, dword [edi]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x487bc3
add bh, 0xff
je 0x487bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x487bac
cmp eax, 0x20
mov eax, 0x14
jne 0x487bb1
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x487b30
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x487bcd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487bf6
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x487bee
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x487c00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x487c10
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487c63
test al, 0x10
jne 0x487c63
test bl, bl
je 0x487c63
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x487c2e
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x487c41
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x487c5e
add bl, 0xff
je 0x487c06
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x487c06
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret

Function at 0x487c70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9d95
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x487ca9
xor al, al
jmp 0x487d5b
test dl, dl
jne 0x487cca
cmp dword [edi + 0x14], 8
jb 0x487cb5
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x487d5b
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x508c6c
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040a370
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00488270
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040a450
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x487d44
mov ecx, esi
nop dword [eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.00487c70
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x487d30
xor dl, dl
mov ecx, edi
call fcn.00487c70
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040c0d0
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
Function at 0x488150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9e45
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x488189
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x44]
push eax
call fcn.004868d0
add esp, 8
xor edx, edx
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00486a90
lea ecx, [ebp - 0x44]
call fcn.0040a450
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4881ba
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 5
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x48821c
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x488248
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040a4f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.set_file_content__ls
push eax
lea ecx, [ebp - 0x2c]
call fcn.004131f0
push 0x51dce8
lea eax, [ebp - 0x2c]
push eax
call fcn.004a629b
push str.set_file_content
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00491110
push 0x51dce8
lea eax, [ebp - 0x2c]
push eax
call fcn.004a629b
int3
Function at 0x488840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x521104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 8]
push 0x50134c
movzx eax, si
push eax
mov dword [ebp - 4], 0
push 0x400000
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x48896e
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x48899e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488953
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x10], eax
cmp ebx, ecx
jae 0x488912
lea eax, [edx + ebx]
jmp 0x488942
jbe 0x488945
mov eax, dword [edi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x488928
push ecx
push ebx
mov ecx, edi
call fcn.004232a0
jmp 0x488945
mov esi, ebx
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.004a6890
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 4], eax
push ebx
push dword [ebp - 0x14]
push dword [edi]
call fcn.004a6310
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x50134c
push ecx
push esi
test eax, 0xffff0000
je 0x4889c0
push str.resource__d_of_type__s_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00488bc0
push 0x51dce8
lea eax, [ebp - 0x30]
push eax
call fcn.004a629b
push str.resource_was_not_properly_loaded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00491110
push 0x51dce8
lea eax, [ebp - 0x30]
push eax
call fcn.004a629b
push str.resource__d_of_type__d_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00488bc0
push 0x51dce8
lea eax, [ebp - 0x30]
push eax
call fcn.004a629b
int3
Function at 0x489380
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea0c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x288
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x230], edi
mov esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], esi
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test ecx, ecx
jns 0x48956e
mov eax, edi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x48942f
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4895ed
cmp eax, 0x104
ja 0x489612
jmp 0x48956e
cmp eax, 0x25
jne 0x48945e
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x489635
cmp eax, 0x104
ja 0x48965a
jmp 0x48956e
cmp eax, 0x26
jne 0x489472
lea edx, [eax - 0x25]
mov ecx, esi
call fcn.00489690
jmp 0x4895ae
cmp eax, 0x2b
jne 0x489483
mov ecx, esi
call fcn.00489870
jmp 0x4895ae
cmp eax, 0x23
jne 0x4894a9
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.00489270
add esp, 8
jmp 0x4895ae
cmp eax, 0x1a
jne 0x4894fd
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, esi
mov dword [eax], str.AppData
mov dword [eax + 4], 7
call fcn.00489270
add esp, 8
jmp 0x4895ae
cmp eax, 0x1c
jne 0x4895ce
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
mov dword [eax], str.Local_AppData
mov dword [eax + 4], 0xd
call fcn.00489270
add esp, 8
jmp 0x4895ae
xorps xmm0, xmm0
lea ecx, [ebp - 0x228]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489590
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040a370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
push ecx
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0043ccc0
push 0x51dce8
lea eax, [ebp - 0x29c]
push eax
call fcn.004a629b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0043ccc0
push 0x51dce8
lea eax, [ebp - 0x24c]
push eax
call fcn.004a629b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x260]
call fcn.0043ccc0
push 0x51dce8
lea eax, [ebp - 0x260]
push eax
call fcn.004a629b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x274]
call fcn.0043ccc0
push 0x51dce8
lea eax, [ebp - 0x274]
push eax
call fcn.004a629b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x288]
call fcn.0043ccc0
push 0x51dce8
lea eax, [ebp - 0x288]
push eax
call fcn.004a629b
int3
Function at 0x48a510
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x48a630
test ebx, ebx
je 0x48a630
cmp word [ebx], 0
je 0x48a630
mov dword [ebp - 0x214], 0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [ebp - 4], 0
or eax, 8
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48a5e7
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x48a5e3
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edi
call fcn.0048a510
add esp, 4
test al, al
je 0x48a5cc
xor esi, esi
jmp 0x48a591
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x48a591
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48a610
test esi, esi
je 0x48a5f2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48a610
push 0
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x48a62c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48a62c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
jmp 0x48a63a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
Function at 0x48a730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea300
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x228]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0x80000002
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
push eax
push 0x101
push 0
push str.SoftwareClassesCLSIDB7E6B353_129C_43BE_86A5_1041305A828CProductIDs
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48a7ce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48a8fe
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x501094
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48a819
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00445f40
jmp 0x48a8f2
cmp edi, 0xea
jne 0x48a8e8
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x220]
cmp edi, ecx
jae 0x48a83d
lea eax, [edx + edi]
jmp 0x48a864
jbe 0x48a867
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x48a853
push ecx
push edi
mov ecx, esi
call fcn.004232a0
jmp 0x48a867
sub edi, ecx
push edi
push 0
push ebx
call fcn.004a6890
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 4], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi]
push dword [ebp - 0x22c]
push 0
push 0x501094
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x48a825
test edi, edi
jne 0x48a8f2
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
cmp ebx, ecx
jae 0x48a8b5
lea eax, [edx + ebx]
jmp 0x48a8ef
jbe 0x48a8f2
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x48a8cb
push ecx
push ebx
mov ecx, esi
call fcn.004232a0
jmp 0x48a8f2
sub ebx, ecx
push ebx
push 0
push dword [ebp - 0x22c]
call fcn.004a6890
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x48a8ef
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x48a8f2
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [ebp - 0x21c], 0
jne 0x48a91e
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
call fcn.0048b4d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
Function at 0x48acb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x80000000
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x48ad9e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x10], 0
mov dword [ebp - 8], eax
test esi, esi
je 0x48ad50
cmp word [esi], 0
je 0x48ad50
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x48ad4b
cmp edi, 5
jne 0x48ad40
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 4
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x48ad4b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48ad77
mov eax, dword [ebp - 0x14]
jmp 0x48ad58
mov eax, 0x80000000
mov dword [ebp - 0x14], eax
push 4
push ebx
push 4
push 0
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
cmp byte [ebp - 0x10], 0
jne 0x48ad8b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0048b4d0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a389b
mov esp, ebp
pop ebp
ret