joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491246
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.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push dword [ebp + 8]
call fcn.004241d7
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0042415e
mov eax, dword [edi]
lea ecx, [ebp - 4]
push dword [eax - 0xc]
push eax
call fcn.0043be5f
mov esi, dword [ebp - 4]
mov ecx, edi
push esi
call fcn.004906b8
test eax, eax
jne 0x491392
push ebx
push esi
call fcn.004c0aa8
pop ecx
pop ecx
test eax, eax
jne 0x49143f
call fcn.00420bd2
push eax
lea ecx, [ebp + 8]
call fcn.00423e41
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push 0x4fb360
push eax
call fcn.00424501
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004c0b5c
pop ecx
pop ecx
test eax, eax
je 0x491314
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5122d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442e1f
mov ecx, dword [ebp - 8]
jmp 0x491341
lea ecx, [edi - 0x10]
call fcn.004206ab
xor ebx, ebx
jmp 0x49143f
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.004906b8
test eax, eax
jne 0x491387
push 0x5122d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442e1f
mov ecx, ebx
add esp, 0xc
push dword [eax]
call fcn.004906b8
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.004206ab
test ebx, ebx
je 0x491305
push 0x5122d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00442e1f
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.004206ab
lea ecx, [edi - 0x10]
call fcn.004206ab
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00490d3a
pop ecx
test eax, eax
je 0x49143c
call fcn.00420bd2
push eax
lea ecx, [ebp - 8]
call fcn.00423e41
call fcn.00420bd2
push eax
lea ecx, [ebp + 8]
call fcn.00423e41
lea eax, [ebp - 4]
push eax
call fcn.00490bb4
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00425c4a
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea eax, [ebp - 4]
push esi
push eax
call fcn.00490e08
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00425c4a
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00490336
add esp, 0xc
mov ecx, edi
push dword [eax]
call fcn.004906b8
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.004206ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491452
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 0x49146e
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x491484
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 0x491466
jmp 0x491487
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491c75
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 0x4925b6
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.00431b47
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x492663
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x492662
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.004246f5
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 0x492662
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x492662
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 0x492617
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.0046d370
test esi, esi
je 0x49265f
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 0x4928da
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 0x4928f3
mov eax, dword [ebp - 4]
jmp 0x4929cd
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 0x4929a8
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 + 0x4fb548]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fb548]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fb548]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fb548]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fb548]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4fb548]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4fb548]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4fb548]
dec ebp
jne 0x492912
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4929c4
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4fb548]
dec ecx
jne 0x4929b2
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 0x495b39
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52fe80]
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.004bf240
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fc364
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c2178
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 0x495c9c
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 0x495c9a
cmp dword [edi + 0x10], ebx
je 0x495c9a
cmp dword [edi + 0x24], ebx
je 0x495c9a
cmp dword [edi + 8], ebx
je 0x495c9a
cmp dword [edi + 0xc], ebx
je 0x495c9a
cmp dword [edi + 0x1c], ebx
je 0x495c9a
cmp dword [edi + 0x20], ebx
je 0x495c9a
cmp dword [edi + 0x18], ebx
je 0x495c9a
cmp dword [edi + 0x14], ebx
je 0x495c9a
cmp dword [edi + 0x28], ebx
je 0x495c9a
cmp dword [edi + 0x2c], ebx
je 0x495c9a
test eax, eax
je 0x495c9a
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.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x495caf
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52fe80]
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.004bf240
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fc3d4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c2178
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 0x495df0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fc3f0
push eax
call esi
push 0x4fc400
push dword [edi + 0x6c]
mov dword [edi + 0x3c], eax
call esi
push 0x4fc414
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 0x4fc440
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 0x4fc464
push dword [edi + 0x6c]
mov dword [edi + 0x50], eax
call esi
push 0x4fc478
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 0x4fc4a0
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 0x495ded
cmp dword [edi + 0x40], ebx
je 0x495ded
cmp dword [edi + 0x44], ebx
je 0x495ded
cmp dword [edi + 0x48], ebx
je 0x495ded
cmp dword [edi + 0x4c], ebx
je 0x495ded
cmp dword [edi + 0x50], ebx
je 0x495ded
cmp dword [edi + 0x54], ebx
je 0x495ded
cmp dword [edi + 0x58], ebx
je 0x495ded
cmp dword [edi + 0x5c], ebx
je 0x495ded
cmp dword [edi + 0x60], ebx
je 0x495ded
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.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x49629a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x52fe80]
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 0x4962c3
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 0x496307
xor eax, eax
jmp 0x4963bc
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 0x496300
push 0x50f8e4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00426b5d
lea esi, [ebp - 0x20c]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x496340
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 0x496354
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 0x496300
lea eax, [esi + 1]
add eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x496300
lea eax, [edx + edx]
add esi, esi
push eax
lea eax, [ebx + edi*2]
push eax
lea eax, [esi + ebx]
push eax
call fcn.004bc5b0
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004bebf0
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.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x49b724
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.00425b88
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.00425b88
lea eax, [ebp - 8]
push eax
call fcn.0049dfdb
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x49b762
mov esi, dword [ebp - 4]
jmp 0x49b7ba
push ebx
push edi
call fcn.0049dd26
pop ecx
pop ecx
test eax, eax
jne 0x49b7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49b7b5
lea eax, [ebp - 4]
push eax
call fcn.0049e059
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], ebx
je 0x49b7bb
push esi
call fcn.0049b724
pop ecx
test eax, eax
je 0x49b7bb
push ebx
push edi
call fcn.0049dd26
pop ecx
pop ecx
test eax, eax
jne 0x49b7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49b7b8
jmp 0x49b7bb
mov esi, dword [ebp - 4]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.004206ab
lea ecx, [esi - 0x10]
call fcn.004206ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ba7a
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, 0x55b31c
mov dword [ebp - 0xc], ebx
push str.CreateShellLink_start...
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.004a9913
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x50273c
push 1
push ebx
push 0x50277c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x49bad4
push edi
push str.CoCreateInstance__0x_x
push esi
call fcn.004a9913
mov esi, dword [ebp + 0xc]
add esp, 0xc
jmp 0x49bbc3
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 0x49baf6
cmp word [edx], bx
je 0x49baf6
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 0x49bb0c
cmp word [esi], bx
je 0x49bb0c
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 0x49bb55
call fcn.0049de27
test eax, eax
je 0x49bb55
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ebx
push 0x4fd2a0
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp dword [ebp - 8], ebx
je 0x49bb55
push esi
push dword [ebp - 8]
call fcn.0040d580
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
je 0x49bb55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push 0x5027ac
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, dword [ebp + 0xc]
test eax, eax
js 0x49bbb3
push dword [ebp + 0x10]
mov ebx, 0x55b31c
push esi
push dword [ebp + 8]
push 0x4fd2b0
push ebx
call fcn.004a9913
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 0x49bbaa
push edi
push str.Save__0x_x
push ebx
call fcn.004a9913
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 0x55b31c
call fcn.004a9913
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bc2c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52fe80]
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 0x49bce1
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 0x49bcb3
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.0049bc2c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49bcf2
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 0x49bc7e
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.004bc1bd
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49bce1

Function at 0x49c0dd
Capabilities:
Acquire debug privileges

Disassembly:
push 0x2c
push 0x529798
call fcn.004c2310
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 0x49c171
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x49c171
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 0x49c171
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.0049c18a
mov eax, ebx
call fcn.004c2358
ret
Function at 0x49c5a9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x52fe80]
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 0x49c669
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.0049c67c
add esp, 0xc
test al, al
je 0x49c669
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf240
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 0x50de60
push 0x104
push eax
call fcn.004c03dd
lea eax, [ebp - 0x20c]
push eax
call fcn.004241d7
add esp, 0x2c
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042415e
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x49c67c
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 0x49c703
push esi
push edi
call fcn.004bae68
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 0x49c6f7
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x50f8e4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49c6f7
cmp dword [ebp - 8], ebx
je 0x49c6f7
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 0x49c702
push esi
call fcn.004bbca6
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret