joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487470
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov eax, 0x2050
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x204c], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
mov esi, ecx
mov eax, dword [esi]
push 0x110a
push eax
call edi
test eax, eax
je 0x48759b
mov edx, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x113e
push edx
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], eax
call edi
test eax, eax
je 0x48759b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x48759b
mov edx, dword [eax + 8]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x48759b
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
push 0x800
shr ebx, 0xf
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x105c]
not bl
push ecx
and bl, 1
call fcn.004694b0
lea eax, [esp + 0x1054]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487525
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x1056], dx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
movzx eax, bl
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x40
lea ecx, [esp + 0x1054]
push edx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx eax, byte [esi + 8]
push eax
mov ecx, esi
call fcn.00487380
pop ebx
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2050
ret
Function at 0x489f00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e68bd
add esp, 4
push esi
mov edi, eax
push edi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x5688b8]
push edi
call fcn.004a2420
push edi
call fcn.004aab40
push edi
call fcn.004e6904
add esp, 4
pop edi
pop esi
pop ebp
ret 4

Function at 0x48ab40
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
push esi
push edi
push 0x5048cc
push eax
mov edi, ecx
call fcn.004452a0
mov esi, eax
test esi, esi
jne 0x48ab7c
lea eax, [esi + 0x32]
jmp 0x48acc1
xor eax, eax
cmp edi, 0x8000
jbe 0x48ac81
push ebx
push ebp
push eax
mov eax, edi
shr eax, 3
add eax, 0x1000
push eax
push esi
call fcn.004eb51e
push esi
push 0x1000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004eb477
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00489c70
mov edx, edi
shr edx, 2
push 0
add edx, 0x1000
push edx
push esi
mov ebx, eax
call fcn.004eb51e
push esi
push 0x1000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004eb477
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00489c70
lea ecx, [edi + edi]
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push esi
mov ebp, eax
call fcn.004eb51e
push esi
push 0x1000
lea edx, [esp + 0x28]
push 1
push edx
call fcn.004eb477
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00489c70
mov dword [esp + 0x10], eax
lea eax, [edi + edi*2]
shr eax, 2
push 0
add eax, 0x1000
push eax
push esi
call fcn.004eb51e
push esi
push 0x1000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004eb477
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
call fcn.00489c70
add eax, dword [esp + 0x10]
add eax, ebp
add eax, ebx
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
push esi
call fcn.004eae6b
add esp, 4
pop ebp
mov eax, edi
pop ebx
jmp 0x48acc1
cmp edi, 0x1000
jbe 0x48ac91
lea eax, [edi - 0x1000]
shr eax, 1
push 0
push eax
push esi
call fcn.004eb51e
push esi
push 0x1000
lea edx, [esp + 0x20]
push 1
push edx
call fcn.004eb477
push esi
mov edi, eax
call fcn.004eae6b
add esp, 0x20
push edi
lea ecx, [esp + 0x10]
call fcn.00489c70
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1008
ret 4
Function at 0x48d4e0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
sete al
test al, al
je 0x48d53c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push ebx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [esp + 4]
cmp eax, 1
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
sete bl
call edx
mov al, bl
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [edx], cx
add esp, 8
ret 8

Function at 0x48d560
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov eax, 0x1028
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
mov esi, dword [esp + 0x1030]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48d5a6
xor al, al
pop esi
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x1028
ret 4
push 0x800
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.004694b0
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d5c0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x26], cx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea ecx, [esp + 4]
mov edx, 0x14
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
mov dword [esp + 0x10], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x1028]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.004e6b3a
add esp, 0x1028
ret 4
Function at 0x490030
Capabilities:
Get common file path

Disassembly:
cmp dword [0x53e344], 1
jne 0x49003e
jmp fcn.004b4e40
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
add ecx, 0x1044
push ecx
push eax
call fcn.004694b0
ret 8

Function at 0x490820
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0xc]
push eax
push 0
push 0x1012
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
movzx esi, ax
shr esi, 0xf
push 0x12
and esi, 1
call ebx
movzx edi, ax
shr edi, 0xf
push 0x11
and edi, 1
call ebx
shr eax, 0xf
and eax, 1
test byte [esp + 0x14], 1
jne 0x49089f
test esi, esi
jne 0x49089f
test edi, edi
jne 0x49089f
test eax, eax
jne 0x49089f
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
add esp, 0x14
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x490970
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x22ec
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x22e8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 1
push 0x3d4
call fcn.00463400
lea edx, [esp + 0x2f4]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4909a3
cmp esi, 1
jle 0x4909ed
lea eax, [esp + 0x2f4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4909c3
sub eax, edx
sar eax, 1
push esi
lea eax, [esp + eax*2 + 0x2f8]
push 0x505c98
push eax
mov edx, 0x800
call fcn.004a63e0
add esp, 0xc
cmp esi, 0x3e8
jg 0x490a0b
lea ecx, [esp + 0x2f4]
push ecx
mov ecx, ebx
call fcn.004908b0
test al, al
je 0x490a0b
inc esi
jmp 0x490992
mov edx, dword [ebx + 0x28]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push edx
call esi
push 0
mov edi, eax
push 0x800
lea eax, [esp + 0x12fc]
push eax
call fcn.004b3b10
push 0x4001
push 0x2b4
lea ecx, [esp + 0x48]
push ecx
push 0
lea edx, [esp + 0x1304]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x34
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004e7df0
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x28]
push 0x104d
lea edx, [esp + 0x300]
push ecx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
call esi
mov edx, dword [ebx + 0x28]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x28]
push 0
push edi
push 0x1076
push eax
mov byte [ebx + 0x40], 1
call esi
mov ecx, dword [esp + 0x22f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x22ec
ret
Function at 0x490d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4feaf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00489800
xor eax, eax
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [0x53e3e4], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], eax
mov byte [esi + 0x40], al
mov byte [esi + 0x1042], al
mov dword [esi + 0x2144], eax
mov byte [esi + 0x2148], al
mov byte [esi + 0x2149], al
mov word [esi + 0x1044], ax
mov dword [esp + 0x14], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x490da0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 1
push str.RestoreFolder
push 0x503a94
mov esi, ecx
call fcn.0049c560
push 0x800
push 0x501a20
test eax, eax
je 0x490e1b
lea eax, [esp + 0xc]
push eax
push str.LastFolder
push 0x503a94
call fcn.0049c530
cmp word [esp + 4], 0
je 0x490ea9
lea ecx, [esp + 4]
push ecx
call fcn.00445470
test al, al
je 0x490ea9
push 0x800
lea edx, [esp + 8]
push edx
jmp 0x490e9d
lea eax, [esp + 0x100c]
push eax
push str.StartFolder
push 0x503954
call fcn.0049c530
push 0x800
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x100c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [esp + 0x1002], ax
cmp word [esp + 4], ax
je 0x490ea9
mov edx, 0x502598
lea ecx, [esp + 4]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x490e8a
test ax, ax
je 0x490e86
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x490e8a
add ecx, 4
add edx, 4
test ax, ax
jne 0x490e64
xor eax, eax
jmp 0x490e8f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x490ea9
push 0x800
lea ecx, [esp + 8]
push ecx
add esi, 0x1044
push esi
call fcn.004694b0
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2004
ret
Function at 0x4926a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
push 1
push str.ColorAttr
push str.FileList
mov esi, ecx
call fcn.0049c560
test eax, eax
setne al
lea ecx, [esp + 8]
mov byte [esi + 0x2148], al
mov edx, dword [0x53f484]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x531150]
mov ecx, dword [0x53f484]
push 0
push eax
push 0xb
push ecx
push 0
push 0
push 0
push 0
push 0x44a00249
push 0x501a20
push 0x503ac0
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push str.Detailed
push str.FileList
mov dword [esi + 0x28], eax
call fcn.0049c560
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
push eax
mov ecx, esi
call fcn.00491750
push 1
push str.FullRow
push str.FileList
mov edi, 0x400
call fcn.0049c560
test eax, eax
je 0x492758
mov edi, 0x420
push 0
push str.ShowGrid
push str.FileList
call fcn.0049c560
test eax, eax
je 0x492770
or edi, 1
push 0
push str.SingleClick
push str.FileList
call fcn.0049c560
test eax, eax
je 0x4927b1
push 0
push str.Underline
push str.FileList
or edi, 0x48
call fcn.0049c560
cmp eax, 1
jne 0x4927a6
or edi, 0x800
jmp 0x4927b1
cmp eax, 2
jne 0x4927b1
or edi, 0x1000
mov edx, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1036
push edx
call edi
push 0
push 2
push 0x21
push 0xd
push 0xd
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.00490f30
push 0x5c
push 0
lea eax, [esp + 0x20]
push eax
push str.Font
push str.FileList
call fcn.0049c580
cmp word [esp + 0x34], 0
je 0x492889
movzx edx, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
lea ecx, [esp + 0x34]
push ecx
movzx ecx, byte [esp + 0x35]
push edx
movzx edx, byte [esp + 0x38]
push eax
movzx eax, byte [esp + 0x3b]
push ecx
movzx ecx, byte [esp + 0x3e]
push edx
movzx edx, byte [esp + 0x41]
push eax
movzx eax, byte [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateFontW]
test eax, eax
je 0x492866
push 1
push eax
mov eax, dword [esi + 0x28]
push 0x30
push eax
call edi
push 0
push str.FontColor
push str.FileList
call fcn.0049c560
test eax, eax
je 0x492889
mov ecx, dword [esi + 0x28]
push eax
push 0
push 0x1024
push ecx
call edi
mov ecx, esi
call fcn.00491030
mov ecx, esi
call fcn.004915e0
mov edx, dword [esi + 0x28]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x53e344], 1
je 0x4928b6
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.004917e0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x70
ret
Function at 0x497350
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
je 0x497468
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x497360
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x497468
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x497387
pop ebx
ret 4
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebp, [ebx + ebx + 2]
push ebp
push 0x2002
call edi
mov esi, eax
test esi, esi
je 0x4973d2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4973d2
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 1]
push ecx
push eax
push edx
call fcn.0046c6c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call edi
mov edi, eax
test edi, edi
je 0x497412
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x497412
mov eax, dword [esp + 0x14]
inc ebx
push ebx
push esi
push eax
call fcn.0046c6c0
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x49745f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49745f
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
jmp 0x497440
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x497440
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4

Function at 0x497fb0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
call fcn.00447ef0
cmp eax, 0x600
jb 0x497fd3
movzx ecx, byte [esp + 8]
mov esi, dword [esi]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
push esi
call edx
pop esi
ret 4
mov eax, dword [esi + 8]
mov cl, byte [esp + 8]
mov byte [eax + 0x64], cl
mov eax, dword [esi + 0xc]
test eax, eax
je 0x498053
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e68bd
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0xc]
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0xc]
push 1
push 8
push 0x102
push edx
call edi
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.004e6904
add esp, 4
pop edi
pop ebx
pop esi
ret 4
Function at 0x498280
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x268
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
mov ebp, dword [esp + 0x274]
push esi
push 0x80
push 0x501a20
lea eax, [esp + 0x178]
push eax
mov esi, ecx
mov ecx, dword [0x517c44]
push 0x50606c
push ecx
call fcn.0049c530
cmp word [esp + 0x170], 0
push 0x100
lea edx, [esp + 0x174]
push edx
setne bl
call fcn.00466920
push ebp
lea eax, [esp + 0x10]
mov edx, 0x32
test bl, bl
je 0x49832a
push 0x506064
push eax
call fcn.004a63e0
mov edx, dword [0x517c44]
add esp, 0xc
push 0x80
push 0x501a20
push esi
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0049c530
cmp word [esi], 0
jne 0x4983a9
xor al, al
jmp 0x498470
push str.PE_d
push eax
call fcn.004a63e0
push 0x100
lea ecx, [esp + 0x80]
push 0
push ecx
call fcn.004e7df0
mov ecx, dword [0x517c44]
add esp, 0x18
push 0x100
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0049c580
test eax, eax
je 0x498323
xor ecx, ecx
test eax, eax
jle 0x498381
mov dl, cl
add dl, 0x49
xor byte [esp + ecx + 0x70], dl
inc ecx
cmp ecx, eax
jl 0x498373
push 0x80
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0046c780
push 0x100
lea edx, [esp + 0x74]
xor ecx, ecx
push edx
mov word [esi + 0xfe], cx
call fcn.00466920
push edi
push ebp
lea eax, [esp + 0x14]
push 0x506050
push eax
mov edx, 0x32
call fcn.004a63e0
mov edx, dword [0x517c44]
add esp, 0xc
push 0xc8
push 0x501a20
lea edi, [esi + 0x100]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0049c530
push ebp
lea eax, [esp + 0x14]
push 0x506048
push eax
mov edx, 0x32
call fcn.004a63e0
mov eax, dword [0x517c44]
add esp, 0xc
push 0x800
push 0x501a20
lea ecx, [esi + 0x290]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0049c530
push ebp
lea ecx, [esp + 0x14]
push 0x506040
push ecx
mov edx, 0x32
call fcn.004a63e0
mov eax, dword [0x517c44]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0049c560
test eax, eax
setne cl
cmp word [edi], 0
mov byte [esi + 0x1420], cl
push 0xc8
je 0x498460
push edi
jmp 0x498461
push esi
add esi, 0x1290
push esi
call fcn.004694b0
mov al, 1
pop edi
mov ecx, dword [esp + 0x270]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x268
ret 4
Function at 0x49b010
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
mov ebp, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
cmp word [edi], 0
je 0x49b10b
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49b10b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x49b0e8
lea ebx, [ebx]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1b8]
push 0x506284
push eax
mov edx, 0x200
call fcn.004a63e0
add esp, 0x10
lea ecx, [esp + 0x1b0]
push ecx
push ebp
call fcn.0049b010
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x49b090
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x49b0f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x49b10b
inc dword [0x56ac18]
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebp
xor ecx, esp
call fcn.004e6b3a
add esp, 0x5a4
ret 8
Function at 0x49b190
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x5b0
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x5ac], eax
push ebx
mov ebx, dword [esp + 0x5bc]
push edi
mov edi, dword [esp + 0x5bc]
push 0xf
push str.SoftwareWinRAR
push ebx
mov dword [esp + 0x2c], ebx
call fcn.0046cb30
test eax, eax
je 0x49b1d0
xor al, al
jmp 0x49b383
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49b1c9
push esi
push 0x100000
call fcn.004e7f56
mov esi, eax
add esp, 4
test esi, esi
jne 0x49b20d
mov ecx, 0x531158
call fcn.0043f370
xor al, al
jmp 0x49b382
push ebp
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
xor ebp, ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d0]
push ecx
push ebp
push edx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x3c], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x49b2e8
add ebx, 0x1e
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
cmp word [ebx], 0x5c
jne 0x49b261
add ebx, 2
cmp dword [esp + 0x18], 3
jne 0x49b27d
mov eax, dword [esp + 0x1c]
push eax
push esi
push ebx
lea ecx, [esp + 0x1c8]
mov edx, edi
call fcn.0049a5b0
cmp dword [esp + 0x18], 4
jne 0x49b294
mov ecx, dword [esi]
push ecx
push ebx
lea ecx, [esp + 0x1c4]
call fcn.0049a4a0
cmp dword [esp + 0x18], 1
jne 0x49b2a9
push esi
push ebx
lea ecx, [esp + 0x1c4]
call fcn.0049a540
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1d0]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x3c], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x49b254
push esi
call fcn.004e7061
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 4
xor esi, esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
push esi
mov ebp, 0xc8
push ecx
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
jne 0x49b370
mov ecx, dword [esp + 0x28]
push 0x200
lea edx, [esp + 0x1c0]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00452cb0
lea edx, [esp + 0x1bc]
push edx
push edi
call fcn.0049b190
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
je 0x49b320
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x49b380
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [esp + 0x5b4]
pop edi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x5b0
ret 8