joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465c3b
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebp, [esi + 0x24]
push 0xa1
mov eax, ebp
call fcn.00467dde
test eax, eax
je 0x465c61
mov eax, ebp
call fcn.00467d67
mov dword [0x4d690c], eax
xor ebx, ebx
cmp dword [0x4d690c], ebx
jne 0x465c76
push esi
call fcn.00466d16
mov dword [0x4d690c], eax
push ebx
push 0xc
mov eax, ebp
call fcn.0042fe45
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x32
push 0x3eb
push dword [esi + 4]
call edi
push ebx
push 0x50
push 0x3ed
push dword [esi + 4]
call edi
push ebx
push 0x1e
push 1
push dword [esi + 4]
call edi
push ebx
push 0x64
mov eax, ebp
call fcn.0042fe45
push 1
push 0xc8
mov eax, ebp
call fcn.0042fe45
push ebx
call fcn.00466711
push ebx
push ebx
push esi
push 0x465c21
push ebx
push ebx
call fcn.0047f14f
add esp, 0x18
push 1
push 1
mov dword [esi + 0x944], eax
call fcn.0045a76e
push eax
call fcn.0045a1f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x466050
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ad1da
call fcn.004a80c4
push ecx
push esi
call fcn.00450953
mov eax, dword [eax]
test eax, eax
jle 0x4660af
call fcn.00450953
mov eax, dword [eax]
test eax, eax
jle 0x466077
call fcn.004593a4
mov eax, edi
call fcn.00466ec0
test eax, eax
jne 0x466115
call fcn.004742ce
cmp dword [eax + 0x38], 0
jne 0x466115
push 5
mov ecx, edi
call fcn.00467624
cmp eax, 1
jne 0x466115
call fcn.00450953
call fcn.0045931a
jmp 0x466115
xor esi, esi
cmp dword [ebp + 8], esi
je 0x466115
call fcn.004742ce
cmp dword [eax + 0x38], esi
je 0x46610a
lea eax, [ebp - 0x10]
push eax
call fcn.004066a8
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.004065c2
lea eax, [ebp - 0x10]
mov dword [esp], str.wmtray.exe
push eax
call fcn.00406e34
push 1
push esi
push str._from:shortcut__product:1
push dword [ebp - 0x10]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
jmp 0x466115
lea eax, [edi + 0x958]
call fcn.0046ff24
xor ecx, ecx
mov eax, edi
call fcn.0042fc2c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x466398
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.004584a3
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x466459
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4663db
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x466459
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004071bf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.00405d7c
test bl, bl
je 0x466408
push 2
pop eax
jmp 0x46645c
push edi
call fcn.0046630c
test eax, eax
pop ecx
je 0x466417
mov eax, esi
jmp 0x46645c
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004071bf
push dword [eax]
call fcn.00462a4c
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.00405d7c
test bl, bl
je 0x466446
push 4
jmp 0x466405
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x466455
push 5
jmp 0x466405
xor eax, eax
jmp 0x46645c
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x466460
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4ab018
call fcn.004a80c4
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.00478160
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x4da2a0]
mov edi, 0x4da2a0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.00405ca7
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x4664ed
push 0x80070057
call fcn.00405c6e
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x4bfdc4
lea eax, [ebp - 0x18]
push eax
call fcn.0040611b
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0040da6b
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x4bfdd0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x4665fa
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00478160
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x4da2a0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004584a3
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00406de3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebx + 0x954]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00406de3
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.00466398
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405d7c
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x46696e
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
mov eax, 0x4acd6f
call fcn.004a80c4
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x26
lea edi, [ebx + 0x53c]
push 0x104
mov esi, edi
call fcn.00405ca7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4669ad
push eax
call fcn.0047b2ea
pop ecx
mov edx, edi
call fcn.00405c86
test esi, esi
jne 0x4669c3
push 0x4bfe48
push edi
call fcn.0040611b
push 0x4b95bc
push edi
call fcn.00406e34
mov eax, dword [ebx + 0x954]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406de3
call fcn.00470ced
push eax
call fcn.00471fb6
test al, al
je 0x466a19
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.00470ced
pop ecx
push eax
mov ecx, edi
call fcn.004723e9
and dword [ebp - 4], 0
call fcn.00405e52
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
call fcn.00466398
neg eax
sbb eax, eax
inc eax
jne 0x466aba
xor ebx, ebx
lea eax, [ebx + 0x41]
movzx esi, ax
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
movzx eax, si
push eax
push str._c:_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00406aef
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x466a9a
lea eax, [ebp - 0x10]
call fcn.0040527a
mov eax, dword [ebp + 8]
push dword [eax + 0x954]
mov esi, dword [ebp - 0x10]
push esi
push str._sprogram_files_s
mov eax, edi
call fcn.00407174
add esp, 0xc
call fcn.00466398
test eax, eax
je 0x466ab2
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
call fcn.00405d7c
inc ebx
cmp ebx, 0x1a
jne 0x466a2b
jmp 0x466aba
lea eax, [esi - 0x10]
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x466acb
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x54c], 0
cmp dword [esp + 8], 0x61
je 0x466ae3
cmp dword [esp + 8], 0x41
jne 0x466b17
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x466b17
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0x514
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4
Function at 0x466b1b
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4ad1da
call fcn.004a80c4
push ecx
mov eax, dword [0x4da2a0]
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.00405ca7
push 0x104
push eax
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x466b69
xor eax, eax
jmp 0x466b70
push esi
call fcn.0047b2ea
pop ecx
lea edx, [ebp - 0x10]
call fcn.00405c86
lea edi, [ebp - 0x10]
call fcn.00466398
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x46784b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ad1da
call fcn.004a80c4
push ecx
push 0
push str.wmtray_9C20A70B_E65D_4ef5_9744_A0D0B52A1BEE
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x4678b1
lea eax, [ebp - 0x10]
push eax
call fcn.004066a8
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004065c2
pop ecx
pop ecx
push str.wmtray.exe
lea eax, [ebp - 0x10]
push eax
call fcn.00406e34
push 1
push 0
push str._from:autorun
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4681d4
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4db440]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x4681f1
mov ebp, dword [eax + 4]
jmp 0x4681f3
xor ebp, ebp
cmp ebp, esi
jne 0x468203
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x468228
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x468228
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x468228
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [ebx + 0x4dc], esi
push ebp
mov dword [eax], esi
call fcn.00468d04
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x468253
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x468342
mov eax, dword [0x4db440]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x46826a
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00468ee6
cmp dword [ebx + 0x4d0], esi
je 0x4682e1
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x14]
je 0x4682c5
push 1
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x14]
je 0x4682e1
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.00468ffe
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x4dc], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x468326
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x468326
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x468326
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4db440]
cmp eax, esi
je 0x468336
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x46a2a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x46a2d1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x3b4]
cmp eax, ebx
je 0x46a3b0
push eax
call fcn.0041188b
mov edi, eax
cmp edi, ebx
pop ecx
je 0x46a365
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x46a30a
push 1
push edi
push esi
call fcn.00469855
mov eax, dword [esi + 0x3b4]
cmp eax, dword [esi + 0x3b0]
jne 0x46a365
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00411d77
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x46a354
cmp word [eax], bx
je 0x46a354
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46a365
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x46a365
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x3b4], ebx
je 0x46a3b0
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc

Function at 0x46a9c5
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46aa0c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x46aa05
cmp dword [esp + 4], 0x1b
jne 0x46a9ec
push 0
push 2
jmp 0x46a9f7
cmp dword [esp + 4], 0xd
jne 0x46aa05
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x4e0], 0
ret 4
Function at 0x46ca69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a965a
call fcn.004a80c4
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d508c]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x46cac1
call fcn.0046e12a
mov esi, eax
jmp 0x46cbc2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46cade
call fcn.0046e12a
jmp 0x46cbb7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x46cad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x46cb24
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46cb1a
lea eax, [ebp - 0x424]
call fcn.0046cbfb
mov eax, 0x8007000e
jmp 0x46cbdd
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0046cc04
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x46cb48
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0046da8e
jmp 0x46cb54
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x46cb6f
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x46cb80
mov esi, 0x8007000e
jmp 0x46cbb9
call dword [0x4d508c]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x46cad4
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0046cc29
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46cbdb
lea eax, [ebp - 0x424]
call fcn.0046cbfb
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x46daaf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46dac2
push 0x80004005
call fcn.00405c6e
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x46dac9
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46db6e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x46dc35
xor eax, eax
cmp dword [ebp - 8], esi
je 0x46dbb7
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x46dc35
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x46dc0b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0046db6e
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x46dc48
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], pe_nt_image_headers32
call edi
test eax, eax
je 0x46dbdf
cmp dword [ebp - 8], esi
je 0x46dc25
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x46dc3f
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x46dc52
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x46dc41
Function at 0x46e93f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9ceb
call fcn.004a80c4
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov ebx, ecx
call fcn.00405f00
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00405f00
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00405f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0046ea72
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x46e9dc
add eax, 0xfffffff0
call fcn.00405d7c
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov eax, dword [0x4da2a0]
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.0045038c
test eax, eax
jbe 0x46ea51
lea eax, [ebp - 0x10]
lea edi, [ebp + 0x10]
call fcn.00405e52
mov eax, edi
push eax
call fcn.004065c2
pop ecx
mov eax, ebx
call fcn.0045038c
cmp esi, eax
jb 0x46ea23
call fcn.00479d2b
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x10]
call fcn.00406de3
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ea55
mov eax, ebx
inc esi
call fcn.0045038c
cmp esi, eax
jb 0x46e9ff
mov bl, 1
jmp 0x46ea57
xor bl, bl
lea eax, [edi - 0x10]
call fcn.00405d7c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov al, bl
pop edi
jmp 0x46e9cc

Function at 0x4730a8
Capabilities:
Delete file

Disassembly:
mov eax, 0x4aae70
call fcn.004a80c4
sub esp, 0x10
mov eax, dword [0x4da2a0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x4da2a0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00473165
mov ebx, eax
test ebx, ebx
jne 0x4730f9
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x473149
push 0x28
call fcn.00440e7a
test eax, eax
pop ecx
je 0x47310d
push eax
call fcn.00450c3d
jmp 0x47310f
xor eax, eax
test eax, eax
mov esi, eax
je 0x473149
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x473142
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x473156
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x473160
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x473127
Function at 0x473246
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.00478160
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4732ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x4732e7
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4732e7
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret