joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fd644
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4fd656
add esp, 0xfffffff0
call fcn.0040809c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004492a0
mov eax, dword [0x5dbabc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4fda30
mov eax, dword [0x5dbac8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4fda3c
mov eax, ebx
call fcn.004fda48
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x4f8608
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.004fdfd0
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4fde54
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4fde54
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4fde54
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4fde54
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4fde54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4fd7d6
call fcn.004080f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fdbf4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fdd9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x4fdd80
mov dl, 1
mov eax, dword [0x435ee8]
call fcn.00442728
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409840
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4fdd6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004a9fe0
test al, al
je 0x4fdd62
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4fddb0
lea eax, [ebp - 0x394]
call fcn.0041e28c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4fdd62
xor eax, eax
push ebp
push 0x4fdd5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4fde20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4fdd44
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a91c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x4fdd44
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a91c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdd62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4fdc65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.00442644
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdda6
lea eax, [ebp - 0x3a0]
call fcn.00409840
ret

Function at 0x4fe874
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5e3778]
cmp byte [eax + 0xc5], 0
jne 0x4fe8e6
cmp dword [0x5e379c], 0
jne 0x4fe8a6
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x5dac08]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5e379c], eax
cmp dword [0x5e3798], 0
jne 0x4fe8c1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5e3798], eax
cmp dword [0x5e37a0], 0
jne 0x4fe8e6
push esp
push 0
push 0
mov eax, dword [0x5dac04]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5e37a0], eax
pop edx
ret
Function at 0x4feb8c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4feba3
add esp, 0xfffffff0
call fcn.0040809c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004492a0
mov eax, dword [0x5db8fc]
cmp byte [eax], 0
jne 0x4febcd
push 0
call sub.ole32.dll_OleInitialize
call fcn.004346dc
mov byte [ebx + 0x194], al
mov eax, dword [0x5dbd80]
cmp word [eax + 2], 0
jne 0x4febe7
mov eax, dword [0x5dbd80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00500d98
mov eax, dword [0x5dbf14]
cmp word [eax + 2], 0
jne 0x4fec01
mov eax, dword [0x5dbf14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00500f9c
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x47fc7c]
call fcn.00481484
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5013e4
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x48092c]
call fcn.00487e8c
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x4fedf0
mov eax, dword [0x5dbb8c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00488318
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5016a4
mov dl, 1
mov eax, dword [0x43534c]
call fcn.00407b64
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5dbb8c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004240ac
test eax, eax
je 0x4fed1b
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041decc
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004240b4
test eax, eax
je 0x4fed33
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a91c
push ebx
push 0x500778
call fcn.004f4778
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5db8fc]
cmp byte [eax], 0
jne 0x4fed84
mov eax, ebx
call fcn.004fef8c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005018dc
mov eax, ebx
call fcn.005024e4
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4fede8
call fcn.004080f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff29c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x4ff346
cmp dword [ebx + 0xac], 0
jne 0x4ff340
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ff1e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x4ff340
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov edx, 0xffffffec
mov eax, esi
call fcn.004125f4
test al, 8
je 0x4ff306
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ff340
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.0043e738
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ff315
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ff5e0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5e3778]
cmp dword [eax + 0x188], 0
je 0x4ff73b
test bl, bl
jne 0x4ff693
cmp dword [esi + 0xb4], 0
jne 0x4ff688
mov eax, esi
call fcn.00502334
push eax
push 0x4ff4ec
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x4ff659
mov eax, dword [0x5e3778]
cmp byte [eax + 0xeb], 0
je 0x4ff659
mov eax, dword [esi + 0xf0]
call fcn.0040c354
mov edi, eax
cmp edi, 0
jl 0x4ff659
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ff642
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ff688
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0043e738
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ff668
inc dword [esi + 0xb4]
jmp 0x4ff73b
cmp dword [esi + 0xb4], 0
jle 0x4ff73b
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x4ff73b
cmp dword [esi + 0x58], 0
je 0x4ff6f0
mov eax, dword [0x5e3778]
cmp byte [eax + 0xeb], 0
je 0x4ff6f0
mov eax, dword [esi + 0xf0]
call fcn.0040c354
mov edi, eax
cmp edi, 0
jl 0x4ff6f0
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ff6d9
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ff71f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0043e738
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ff6ff
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x4f3a18]
call fcn.0040c828
pop edi
pop esi
pop ebx
ret
Function at 0x500484
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5004dd
cmp byte [ebx + 0xeb], 0
jne 0x5004dd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004099c8
mov eax, dword [esi]
call fcn.00409d60
test eax, eax
jne 0x5004ea
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c20
jmp 0x5004ea
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c20
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x501acc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x501b3d
mov eax, esi
call fcn.004a3d6c
test al, al
je 0x501b3d
mov eax, dword [ebx + 0x98]
call fcn.004a3994
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x501b3d
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x140]
test al, al
je 0x501b2e
push 0
mov eax, dword [ebx + 0x98]
call fcn.004a3994
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0049a9b8
jmp 0x501b3d
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005018fc
pop esi
pop ebx
ret
Function at 0x50df30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0041e174
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50eb18
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x50eb5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0050d6ec
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50eb65
lea eax, [ebp - 4]
call fcn.00409840
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x50eb85
test al, 0x10
je 0x50eb89
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x50ebd2
test al, 0x10
je 0x50ebd2
test ah, 4
je 0x50ebd6
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x50ebdc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00409924
xor eax, eax
push ebp
push 0x50ecd1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00409e44
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.004099c8
cmp dword [ebp + 0xc], 0
je 0x50ec5b
mov eax, dword [ebp + 0xc]
call fcn.0040a87c
push eax
push ebx
mov eax, edi
call fcn.00409e34
push eax
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 8]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x50ec86
push ebx
mov eax, edi
call fcn.00409e34
push eax
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 8]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x50ec98
mov eax, dword [edi]
call fcn.0040a87c
call fcn.0041c124
mov esi, eax
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x50eca9
cmp ebx, 0x10000
jl 0x50ecb4
mov eax, edi
mov edx, esi
call fcn.0040a9f4
jmp 0x50ecbb
add ebx, ebx
jmp 0x50ec14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ecd8
lea eax, [ebp - 4]
call fcn.00409840
ret
Function at 0x50eda4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x50edee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040a87c
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040a87c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x50ee12
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040a87c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50ee84
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x50eec2
mov eax, ebx
call fcn.0040a87c
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x50eef4
push 0
mov eax, esi
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x50eee0
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x50eef4
push 0
mov eax, esi
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x50f2b8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x50f34d
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x50f303
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.004099c8
jmp 0x50f337
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x50f31a
lea eax, [ebp - 4]
call fcn.00409840
jmp 0x50f32d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0050f108
mov ebx, eax
test esi, esi
je 0x50f32d
dec esi
jmp 0x50f30a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409c20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f354
lea eax, [ebp - 4]
call fcn.00409840
ret

Function at 0x50f6ec
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041e174
add esp, 0x208
pop ebx
ret

Function at 0x50f74c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041e174
add esp, 0x208
pop ebx
ret
Function at 0x50fab8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x50fbee
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x50fbd8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x50fb15
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x50fbd8
cmp dword [ebp - 0x14], 0
jne 0x50fb2a
mov eax, dword [ebp - 0xc]
call fcn.00409840
mov bl, 1
jmp 0x50fbd8
cmp dword [ebp - 0x14], 0x70000000
jb 0x50fb38
call fcn.00422bf8
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.004099c8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409e34
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x50fade
test eax, eax
jne 0x50fbd8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x50fb86
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x50fbd8
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x50fb8e
dec esi
test esi, esi
je 0x50fb9d
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x50fb8d
cmp dword [ebp - 0x10], 7
jne 0x50fba8
test esi, esi
je 0x50fba8
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a9f4
cmp dword [ebp - 0x10], 7
jne 0x50fbcb
test esi, esi
je 0x50fbcb
lea eax, [ebp - 4]
call fcn.00409e34
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409c20
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fbf5
lea eax, [ebp - 4]
call fcn.00409840
ret

Function at 0x50fc98
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x50fcac
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x5e37c0], 0
jne 0x50fccf
push 0x50fcf4
push 0x50fd14
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00411b5c
mov dword [0x5e37c0], eax
cmp dword [0x5e37c0], 0
je 0x50fce9
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x5e37c0]
jmp 0x50fcee
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x50fc99
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x50fcac
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x5e37c0], 0
jne 0x50fccf
push 0x50fcf4
push 0x50fd14
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00411b5c
mov dword [0x5e37c0], eax
cmp dword [0x5e37c0], 0
je 0x50fce9
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x5e37c0]
jmp 0x50fcee
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x50fd30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x50fe6c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x50fd63
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x50fd6d
mov ebx, 0x57
jmp 0x50fe56
push 0
push 8
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0050fc70
test eax, eax
jne 0x50fe45
xor eax, eax
push ebp
push 0x50fe3e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.004099c8
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00409d60
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00409e34
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov ebx, eax
cmp ebx, 0xea
jne 0x50fe06
mov eax, dword [ebp - 4]
call fcn.00409d60
cmp eax, 0x10000
jge 0x50fe27
mov eax, dword [ebp - 4]
call fcn.00409d60
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004099c8
jmp 0x50fdab
test ebx, ebx
jne 0x50fe27
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov ecx, eax
movzx eax, byte [ebp - 5]
mov edx, dword [ebp - 0x14]
call fcn.0050fd30
test eax, eax
je 0x50fdab
inc esi
jmp 0x50fdab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fe45
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0050fc98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fe73
lea eax, [ebp - 4]
call fcn.00409840
ret