joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6b50
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004cd440
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4b6b81
cmp eax, 0x61
jne 0x4b6be4
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4b6be4
cmp word [ebx], 0
jne 0x4b6be4
cmp word [edx], 0
jne 0x4b6be4
cmp word [esi], 0
jne 0x4b6be4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b6bcb
cmp byte [edi + 0xea], 0
jne 0x4b6bcb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b6bc9
mov ecx, esi
call fcn.004b7860
test al, al
je 0x4b6bcb
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4b6bdb
test esi, esi
je 0x4b6bdb
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4b6c06
cmp word [ebx], ax
jne 0x4b6c06
cmp word [edx], ax
jne 0x4b6c06
cmp word [esi], ax
jne 0x4b6c06
mov ecx, edi
call fcn.004b6d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.004503e0
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004b79b0
test eax, eax
je 0x4b6cd2
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4b6cdb
mov esi, dword [esp + 0x102c]
cmp esi, 0xffff
je 0x4b6caa
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b6cd2
cmp byte [edi + 0xea], 0
mov esi, dword [esp + 0x102c]
jne 0x4b6caa
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b6c8d
mov ecx, esi
call fcn.004b7860
test al, al
je 0x4b6ca3
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4b6cd2
mov esi, dword [esp + 0x102c]
cmp dword [esp + 0x1864], esi
je 0x4b6cc3
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], esi
call fcn.004b7ef0
push 0
lea ecx, [esp + 0x14]
call fcn.004b7fd0
test eax, eax
jne 0x4b6ceb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4b6db0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4b6cd4
test eax, eax
je 0x4b6cd4
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7ef0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4b7fc5
mov eax, dword [esi]
test eax, eax
je 0x4b7fc5
push edi
test al, 1
jne 0x4b7f1d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4b7f37
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b7f37
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4b7f51
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
test byte [esi], 0x20
je 0x4b7f8d
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4b7f8d
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0047ba50
add esp, 8
test eax, eax
jne 0x4b7f8d
mov word [esi + 0x11a60], ax
test byte [esi], 8
pop edi
je 0x4b7fab
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
test dword [esi], 0x100
je 0x4b7fc5
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4b89d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004cd440
mov edx, dword [ecx + 8]
test edx, edx
je 0x4b8a6b
lea ecx, [esp]
call fcn.004503e0
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4b91b0
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4b8a6b
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b8a6b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x4b8a58
mov eax, dword [0x4f90f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004018d0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4b8d50
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c74
call fcn.004cd440
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4b8f41
push 0
call fcn.004b8f50
test eax, eax
jne 0x4b8d83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4f90f4]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004b8ff0
test eax, eax
je 0x4b8da7
xor edx, edx
mov dword [0x4fd2f4], edx
jmp 0x4b8dad
mov edx, dword [0x4fd2f4]
lea ecx, [esp + 0x18]
call fcn.004503e0
cmp byte [ebp + 8], 0
je 0x4b8dc8
mov byte [esp + 0x1845], 0
test edx, edx
je 0x4b8dd0
mov byte [esp + 0x1845], 1
mov eax, dword [0x4fd2f0]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x185c], eax
lea eax, [esp + 0x18]
push eax
push 0x4b9080
mov dword [esp + 0x1860], edx
call edi
mov eax, dword [esp + 0x184c]
test eax, eax
je 0x4b8f09
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4b7820
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4b8e6c
mov ecx, dword [0x4fd2f4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x4fd2f0]
test ecx, ecx
jle 0x4b8e51
cmp dword [esi + eax*4], edx
je 0x4b8e63
inc eax
cmp eax, ecx
jl 0x4b8e47
cmp ecx, 0x1f4
jge 0x4b8e63
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fd2f4], ecx
mov dword [esp + 0x184c], edi
jmp 0x4b8e73
mov edi, dword [esp + 0x184c]
mov ecx, edi
call fcn.004b6480
mov ecx, dword [0x4fd2f4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x4fd2f0]
test ecx, ecx
jle 0x4b8e9d
cmp dword [esi + eax*4], edx
je 0x4b8eaf
inc eax
cmp eax, ecx
jl 0x4b8e93
cmp ecx, 0x1f4
jge 0x4b8eaf
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fd2f4], ecx
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b8f41
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x4b8ee8
mov eax, dword [0x4f90f4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004018d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4fd2f4]
test eax, eax
je 0x4b8f41
cmp eax, 1
mov dword [0x4fd2f4], 0
setg al
test al, al
je 0x4b8f41
mov ecx, dword [0x4fd2f0]
push 0
mov dword [0x4fd2f4], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004b8d50
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ccdd1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cce10
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cce10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cce10
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cce10
cmp dword [ecx + 0x74], 0xe
jbe 0x4cce10
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001356
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
xor ebx, ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x24]
push 0x20
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
pop ebp
mov ecx, edi
lea ebx, [ebx - 0x61c88647]
shr ecx, 5
mov eax, edi
shl eax, 4
add ecx, edx
add eax, dword [esp + 0x10]
xor ecx, eax
lea eax, [ebx + edi]
xor ecx, eax
add esi, ecx
mov ecx, esi
mov eax, esi
shr ecx, 5
add ecx, dword [esp + 0x14]
shl eax, 4
add eax, dword [esp + 0x18]
xor ecx, eax
lea eax, [ebx + esi]
xor ecx, eax
add edi, ecx
sub ebp, 1
jne 0x1000138e
mov edx, dword [esp + 0x20]
mov dword [edx + 4], edi
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x1000623b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f500
push 0x1000f4f8
push str.FlsAlloc
push 0x1e
call fcn.10006159
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000626f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e148]
call esi
jmp 0x10006275
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100062b9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f510
push 0x1000f508
push str.FlsGetValue
push 0x20
call fcn.10006159
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100062f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10007ab7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007b54
push ebx
push esi
call fcn.10007a80
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100079c9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007b01
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b53
push edi
push eax
call fcn.100064fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007b21
call fcn.100065d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007b52
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100079c9
add esp, 0x20
test eax, eax
jne 0x10007b40
push edi
call fcn.100065d9
jmp 0x10007b48
push ebx
call fcn.100065d9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404220
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62decc
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0060f700
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0060f700
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x6593f8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x438], esp
call fcn.004c8690
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.http:__apps.corel.com_redirect__redirectcommandappcuhversion2.0functiontestonline
mov dword [ebp - 4], 0xffffffff
call fcn.00435af0
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x430], 0
jne 0x404335
mov dword [ebp - 0x424], 1
jmp 0x40433f
mov dword [ebp - 0x424], 0
mov al, byte [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408654
xor eax, eax
jmp 0x4086d4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40866b
xor eax, eax
jmp 0x4086d4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4086b7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4086b7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40868e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4086c3
xor eax, eax
jmp 0x4086d4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4086d1
xor eax, eax
jmp 0x4086d4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408fb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x408fdf
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
je 0x408fdd
mov byte [ebp - 1], 1
jmp 0x408ff6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x408ff6
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
je 0x409012
push 0
push 0xf012
push 0x112
mov ecx, dword [ebp - 8]
call fcn.0040c910
mov esp, ebp
pop ebp
ret
Function at 0x40aec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e610
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x721970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 0
push str.CUH:_CheckCuhMutex_called
call fcn.00439fb0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.corel.cuh.msg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb7
jne 0x40af7a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x78], 0
je 0x40af6f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040aec0
mov dword [ebp - 0x18], eax
jmp 0x40af82
mov dword [ebp - 4], 0xffffffff
jmp 0x40af92
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cdf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e7bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x721970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00418d40
mov dword [ebp - 4], 0
push 3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x65b764
lea ecx, [ebp - 0x18]
call fcn.00419160
push eax
push 0x65b768
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00418cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d0e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e7e1
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x721970]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
push 0x65b884
lea ecx, [ebp - 0x238]
call fcn.00418d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40d1b6
push 0x65b8a0
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40d1a9
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x228]
test eax, eax
jl 0x40d1a9
mov dword [ebp - 0x220], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x40d212
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0060f700
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00418cc0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060f7c8
mov esp, ebp
pop ebp
ret 4
Function at 0x40da50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dacd
mov eax, dword [ebp + 0x14]
push eax
call fcn.00610037
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dac3
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40dae0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40db46
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40db3c
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40db50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e987
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x721970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.00418c90
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00419200
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40dbd9
cmp dword [ebp - 0x14], 1
je 0x40dbe8
cmp dword [ebp - 0x14], 2
je 0x40dbe8
push 0x65b958
lea ecx, [ebp - 0x30]
call fcn.00418f40
jmp 0x40dc5b
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.004192a0
lea ecx, [ebp - 0x30]
call fcn.00419480
cmp dword [ebp - 0x14], 2
jne 0x40dc5b
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.00418c90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00419200
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.004192a0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00418f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00418cc0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418ce0
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00418cc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40dd90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ddfb
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ddf1
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40df70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jbe 0x40dfe3
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40dfe3
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40dfd9
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40dff0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e049
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40e03f
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret