joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490ea1
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], edi
call fcn.00420e4a
push eax
lea ecx, [ebp - 4]
call fcn.00423e50
push dword [ebp + 8]
call fcn.004241e6
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0042416d
mov eax, dword [edi]
lea ecx, [ebp - 4]
push dword [eax - 0xc]
push eax
call fcn.0043ae55
mov esi, dword [ebp - 4]
mov ecx, edi
push esi
call fcn.00490313
test eax, eax
jne 0x490fed
push ebx
push esi
call fcn.004c0d58
pop ecx
pop ecx
test eax, eax
jne 0x49109a
call fcn.00420e4a
push eax
lea ecx, [ebp + 8]
call fcn.00423e50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push 0x4fa350
push eax
call fcn.0042443a
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0e0c
pop ecx
pop ecx
test eax, eax
je 0x490f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5101f8
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442988
mov ecx, dword [ebp - 8]
jmp 0x490f9c
lea ecx, [edi - 0x10]
call fcn.0042095b
xor ebx, ebx
jmp 0x49109a
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 8]
mov ecx, ebx
push esi
call fcn.00490313
test eax, eax
jne 0x490fe2
push 0x5101f8
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442988
mov ecx, ebx
add esp, 0xc
push dword [eax]
call fcn.00490313
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0042095b
test ebx, ebx
je 0x490f60
push 0x5101f8
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442988
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea ecx, [edi - 0x10]
call fcn.0042095b
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00490995
pop ecx
test eax, eax
je 0x491097
call fcn.00420e4a
push eax
lea ecx, [ebp - 8]
call fcn.00423e50
call fcn.00420e4a
push eax
lea ecx, [ebp + 8]
call fcn.00423e50
lea eax, [ebp - 4]
push eax
call fcn.0049080f
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00425b83
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea eax, [ebp - 4]
push esi
push eax
call fcn.00490a63
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425b83
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0048ff91
add esp, 0xc
mov ecx, edi
push dword [eax]
call fcn.00490313
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.0042095b
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4910ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4910c9
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x4910df
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4910c1
jmp 0x4910e2
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4918d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x492211
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.004313c4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4922be
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4922bd
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.0042462e
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4922bd
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4922bd
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x492272
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.0046cfc3
test esi, esi
je 0x4922ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x492535
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x49254e
mov eax, dword [ebp - 4]
jmp 0x492628
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x492603
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fa538]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fa538]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fa538]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fa538]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fa538]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fa538]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fa538]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4fa538]
dec ebp
jne 0x49256d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x49261f
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4fa538]
dec ecx
jne 0x49260d
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495794
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fb354
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c2408
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x68], eax
test eax, eax
je 0x4958f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [edi + 0x68]
mov dword [edi + 4], eax
call esi
push str.WinHttpOpenRequest
push dword [edi + 0x68]
mov dword [edi + 8], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [edi + 0x68]
mov dword [edi + 0xc], eax
call esi
push str.WinHttpSendRequest
push dword [edi + 0x68]
mov dword [edi + 0x10], eax
call esi
push str.WinHttpReceiveResponse
push dword [edi + 0x68]
mov dword [edi + 0x14], eax
call esi
push str.WinHttpQueryHeaders
push dword [edi + 0x68]
mov dword [edi + 0x18], eax
call esi
push str.WinHttpReadData
push dword [edi + 0x68]
mov dword [edi + 0x1c], eax
call esi
push str.WinHttpCloseHandle
push dword [edi + 0x68]
mov dword [edi + 0x20], eax
call esi
push str.WinHttpCrackUrl
push dword [edi + 0x68]
mov dword [edi + 0x24], eax
call esi
push str.WinHttpSetOption
push dword [edi + 0x68]
mov dword [edi + 0x28], eax
call esi
push str.WinHttpQueryDataAvailable
push dword [edi + 0x68]
mov dword [edi + 0x2c], eax
call esi
push str.WinHttpSetTimeouts
push dword [edi + 0x68]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x30], eax
cmp dword [edi + 4], ebx
je 0x4958f5
cmp dword [edi + 0x10], ebx
je 0x4958f5
cmp dword [edi + 0x24], ebx
je 0x4958f5
cmp dword [edi + 8], ebx
je 0x4958f5
cmp dword [edi + 0xc], ebx
je 0x4958f5
cmp dword [edi + 0x1c], ebx
je 0x4958f5
cmp dword [edi + 0x20], ebx
je 0x4958f5
cmp dword [edi + 0x18], ebx
je 0x4958f5
cmp dword [edi + 0x14], ebx
je 0x4958f5
cmp dword [edi + 0x28], ebx
je 0x4958f5
cmp dword [edi + 0x2c], ebx
je 0x4958f5
test eax, eax
je 0x4958f5
inc ebx
mov dword [edi], ebx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x49590a
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fb3c4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c2408
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x6c], eax
test eax, eax
je 0x495a4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fb3e0
push eax
call esi
push 0x4fb3f0
push dword [edi + 0x6c]
mov dword [edi + 0x3c], eax
call esi
push 0x4fb404
push dword [edi + 0x6c]
mov dword [edi + 0x40], eax
call esi
push str.HttpAddRequestHeadersW
push dword [edi + 0x6c]
mov dword [edi + 0x44], eax
call esi
push 0x4fb430
push dword [edi + 0x6c]
mov dword [edi + 0x48], eax
call esi
push str.HttpQueryInfoW
push dword [edi + 0x6c]
mov dword [edi + 0x4c], eax
call esi
push 0x4fb454
push dword [edi + 0x6c]
mov dword [edi + 0x50], eax
call esi
push 0x4fb468
push dword [edi + 0x6c]
mov dword [edi + 0x54], eax
call esi
push str.InternetCrackUrlW
push dword [edi + 0x6c]
mov dword [edi + 0x58], eax
call esi
push 0x4fb490
push dword [edi + 0x6c]
mov dword [edi + 0x5c], eax
call esi
push str.InternetQueryDataAvailable
push dword [edi + 0x6c]
mov dword [edi + 0x60], eax
call esi
mov dword [edi + 0x64], eax
cmp dword [edi + 0x3c], ebx
je 0x495a48
cmp dword [edi + 0x40], ebx
je 0x495a48
cmp dword [edi + 0x44], ebx
je 0x495a48
cmp dword [edi + 0x48], ebx
je 0x495a48
cmp dword [edi + 0x4c], ebx
je 0x495a48
cmp dword [edi + 0x50], ebx
je 0x495a48
cmp dword [edi + 0x54], ebx
je 0x495a48
cmp dword [edi + 0x58], ebx
je 0x495a48
cmp dword [edi + 0x5c], ebx
je 0x495a48
cmp dword [edi + 0x60], ebx
je 0x495a48
inc ebx
mov dword [edi + 0x38], ebx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x495ef5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x210], esi
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x495f1e
sub edi, edx
lea eax, [ebp - 0x218]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x214]
sar edi, 1
cmp edx, edi
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edi
cmovae eax, esi
push dword [eax]
push ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x495f62
xor eax, eax
jmp 0x496017
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push dword [ebp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x495f5b
push 0x50c8fc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00426a96
lea esi, [ebp - 0x20c]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x495f9b
sub esi, ecx
mov ecx, ebx
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x210]
jne 0x495faf
sub ecx, edx
sar ecx, 1
mov edx, ecx
sub edx, edi
lea eax, [edx + esi]
mov dword [ebp - 0x210], eax
lea eax, [ecx + esi]
cmp eax, edi
jbe 0x495f5b
lea eax, [esi + 1]
add eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x495f5b
lea eax, [edx + edx]
add esi, esi
push eax
lea eax, [ebx + edi*2]
push eax
lea eax, [esi + ebx]
push eax
call fcn.004bc860
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004beea0
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add esp, 0x18
mov word [ebx + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x49b35e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00425ac1
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00425ac1
lea eax, [ebp - 8]
push eax
call fcn.0049dc09
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x49b39c
mov esi, dword [ebp - 4]
jmp 0x49b3f4
push ebx
push edi
call fcn.0049d954
pop ecx
pop ecx
test eax, eax
jne 0x49b3ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49b3ef
lea eax, [ebp - 4]
push eax
call fcn.0049dc87
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], ebx
je 0x49b3f5
push esi
call fcn.0049b35e
pop ecx
test eax, eax
je 0x49b3f5
push ebx
push edi
call fcn.0049d954
pop ecx
pop ecx
test eax, eax
jne 0x49b3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49b3f2
jmp 0x49b3f5
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.0042095b
lea ecx, [esi - 0x10]
call fcn.0042095b
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b6b4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x55913c
push str.CreateShellLink_start...
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.004a9ba2
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x5018ac
push 1
push ebx
push 0x5018ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x49b70b
push edi
push str.CoCreateInstance__0x_x
push esi
call fcn.004a9ba2
mov esi, dword [ebp + 0xc]
add esp, 0xc
jmp 0x49b7f1
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x49b72d
cmp word [edx], bx
je 0x49b72d
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x49b743
cmp word [esi], bx
je 0x49b743
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test esi, esi
je 0x49b783
call fcn.0049da55
test eax, eax
je 0x49b783
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0049aecf
cmp dword [ebp - 8], ebx
je 0x49b783
push esi
push dword [ebp - 8]
call fcn.0040d350
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
je 0x49b783
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push 0x50191c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, dword [ebp + 0xc]
test eax, eax
js 0x49b7e1
push dword [ebp + 0x10]
mov ebx, 0x55913c
push esi
push dword [ebp + 8]
push 0x4fc2a0
push ebx
call fcn.004a9ba2
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jns 0x49b7d8
push edi
push str.Save__0x_x
push ebx
call fcn.004a9ba2
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor ebx, ebx
test edi, edi
setns bl
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push ebx
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
push 0x55913c
call fcn.004a9ba2
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b85a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49b90f
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
jmp 0x49b8e1
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.0049b85a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49b920
lea eax, [ebp - 0x414]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x49b8ac
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49b90f

Function at 0x49bd0b
Capabilities:
Acquire debug privileges

Disassembly:
push 0x2c
push 0x5274b0
call fcn.004c25a0
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x49bd9f
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x49bd9f
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x49bd9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
cmovne ebx, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0049bdb8
mov eax, ebx
call fcn.004c25e8
ret
Function at 0x49c1d7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c297
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], esi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
push edi
call fcn.0049c2aa
add esp, 0xc
test al, al
je 0x49c297
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf4f0
mov ecx, dword [ebp - 0x214]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x210]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push 0x50c710
push 0x104
push eax
call fcn.004c068d
lea eax, [ebp - 0x20c]
push eax
call fcn.004241e6
add esp, 0x2c
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042416d
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x49c2aa
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x49c331
push esi
push edi
call fcn.004bb10a
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49c325
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x50c8fc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49c325
cmp dword [ebp - 8], ebx
je 0x49c325
mov ecx, dword [ebp - 0xc]
mov bl, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x49c330
push esi
call fcn.004bbf48
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret