joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f250
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004906c0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.0044dfe0
add esp, 0x14
cmp dword [0x4dfca4], 1
jl 0x44f2b5
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call fcn.0044d5e0
add esp, 8
mov esi, eax
jmp 0x44f35f
lea eax, [ebp - 0x418]
push eax
push 2
push 0
push 0x4bcbe0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x44f363
cmp byte [ebp + 8], al
je 0x44f338
push 0x4bcc90
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00493457
lea ecx, [ebp - 0x414]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44f301
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x4b0220
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x44f353
push 0x4b0220
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
xor eax, eax
cmp esi, 2
cmove esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44f37d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x4e5180]
push 0x4bcc98
call fcn.00483c20
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44f4b9
push ebx
push 0x104
push dword [ebp + 0x14]
call fcn.004911bd
add esp, 0xc
mov al, 1
pop ebx
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44f4c0
mov ebx, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
add ebx, 2
add ebx, ecx
push esi
push edi
lea eax, [ebx + ebx]
push eax
call fcn.0048fb2f
mov edi, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edi, edi
je 0x44f54d
mov edi, edi
cmp word [edi], 0
je 0x44f54d
push edi
push ebx
push esi
call fcn.004911bd
push 0x3b
push esi
call fcn.0049110f
add esp, 0x14
test eax, eax
je 0x44f512
xor ecx, ecx
mov word [eax], cx
push 0x4afa48
push ebx
push esi
call fcn.00493457
push dword [ebp + 8]
push ebx
push esi
call fcn.00493457
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44f55f
push 0x3b
push edi
call fcn.0049110f
mov edi, eax
add esp, 8
test edi, edi
je 0x44f54d
add edi, 2
jne 0x44f4f0
push esi
xor bl, bl
call fcn.0048f453
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push 0x104
push dword [ebp + 0x14]
call fcn.004911bd
add esp, 0xc
mov bl, 1
push esi
call fcn.0048f453
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44f590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00492790
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x44f681
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1004], eax
jne 0x44f657
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x44f5f5
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x44f657
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x44f61f
lea eax, [ebp - 0x1000]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0xfdc]
sub eax, dword [ebp - 0xfe4]
cmp eax, 1
jle 0x44f657
push 0x7e8
lea eax, [ebp - 0xfd4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x44f657
push esi
mov edi, esi
call ebx
test eax, eax
je 0x44f66e
push esi
call ebx
push eax
call ebx
test eax, eax
jne 0x44f657
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x44f66e
push 0
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x44f5c6
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x44f7c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x4e4cc4]
push edi
test esi, esi
je 0x44f7f7
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [ebx]
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x44f88e
mov esi, dword [esi + 0x414]
test esi, esi
jne 0x44f7e0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push 0x4af9b8
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x44f8bb
push 0x418
call fcn.0048fb2f
mov esi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add esp, 4
mov edi, eax
push ebx
call esi
push eax
call fcn.0048fb2f
add esp, 4
mov dword [edi], eax
push ebx
push eax
push ebx
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
push dword [ebp + 0xc]
lea eax, [edi + 4]
push 0x104
push eax
call fcn.004911bd
push dword [ebp + 0x14]
lea eax, [edi + 0x20c]
push 0x104
push eax
call fcn.004911bd
mov eax, dword [0x4e4cc4]
add esp, 0x18
mov dword [edi + 0x414], eax
mov al, 1
mov dword [0x4e4cc4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004911bd
add esi, 0x20c
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004911bd
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44fd10
sub ecx, edx
lea edx, [ebp - 0x20c]
sar ecx, 1
lea esi, [edx + 2]
jmp 0x44fd30
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44fd30
sub edx, esi
lea ebx, [ecx + 0x13]
sar edx, 1
add ebx, edx
lea eax, [ebx + ebx]
push eax
call fcn.0048fb2f
mov esi, eax
lea eax, [ebp - 0x206]
push 0x5c
push eax
call fcn.0049110f
push 0xc
xor ecx, ecx
push 0x4bc9cc
push edi
mov word [eax], cx
call fcn.004917b4
add esp, 0x18
test eax, eax
jne 0x44fdab
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0049110f
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x4bc9e8
push ebx
push esi
call fcn.00492202
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push 4
push 0x4b0030
push edi
call fcn.00491219
add esp, 0xc
test eax, eax
jne 0x44fde0
lea eax, [edi + 8]
push eax
push ebx
push esi
call fcn.004911bd
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x5c
push edi
jne 0x44fdf6
movzx eax, word [ebp - 0x20c]
push eax
push 0x4bc9f4
jmp 0x44fe02
lea eax, [ebp - 0x20c]
push eax
push 0x4bca00
push ebx
push esi
call fcn.00492202
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret

Function at 0x44fe20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x4af9b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004911bd
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 4]
mov ebx, dword [ebp + 0x18]
add esp, 0xc
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov dword [ebx], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x44fe6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.0048fb2f
add esp, 4
mov esi, eax
push esi
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44fef7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x30]
push dword [esi + 0x34]
call fcn.004673f0
push 0x4b0188
push esi
call fcn.00469fb0
add esp, 0x18
test eax, eax
jne 0x44febd
push 0x4bc638
push esi
call fcn.00469fb0
add esp, 8
test eax, eax
je 0x44fec8
push eax
call fcn.0048faa4
mov dword [edi], eax
add esp, 4
push 0x4b01a8
push esi
call fcn.00469fb0
add esp, 8
test eax, eax
jne 0x44feec
push 0x4bc660
push esi
call fcn.00469fb0
add esp, 8
test eax, eax
je 0x44fef7
push eax
call fcn.0048faa4
mov dword [ebx], eax
add esp, 4
push esi
call fcn.0048faf7
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ff10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_htonl]
cmp byte [ebp + 0xc], 0
mov ebx, eax
jne 0x44ffea
mov eax, dword [ebp + 8]
test eax, eax
je 0x44ffb2
cmp eax, 1
je 0x44ffb2
mov edi, dword [ebp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_htons]
movzx eax, word [edi + 0xe]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 0xc]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 0xa]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 8]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 6]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 4]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 2]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi]
push eax
call esi
movzx eax, ax
push eax
push 0x4bc998
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x2c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, bl
push eax
mov eax, ebx
shr eax, 8
and eax, 0xff
push eax
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and eax, 0xff
push eax
push ebx
push 0x4b00ec
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp + 8]
call fcn.0044e0a0
add esp, 0x14
test al, al
je 0x45000b
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
movzx eax, bl
push eax
mov eax, ebx
shr eax, 8
and eax, 0xff
push eax
mov eax, ebx
shr eax, 0x10
and eax, 0xff
push eax
mov eax, ebx
shr eax, 0x18
push eax
push 0x4b00ec
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x1c
push 0x4e5678
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e4ccc]
test eax, eax
je 0x450064
cmp dword [eax + 0x10c], ebx
je 0x4500b5
mov eax, dword [eax + 0x120]
test eax, eax
jne 0x450052
push 0x124
call fcn.0048fb2f
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 0x108], edi
mov dword [ecx + 0x10c], ebx
test esi, esi
je 0x450094
movdqu xmm0, xmmword [esi]
movdqu xmmword [ecx + 0x110], xmm0
mov eax, dword [0x4e4ccc]
push ecx
push 0
mov dword [ecx + 0x120], eax
push 0x44e200
mov dword [0x4e4ccc], ecx
call fcn.00493b6c
add esp, 0xc
push 0x4e5678
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x4501e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call fcn.0048faa4
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450200
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push esi
call fcn.00491d92
push 0x4bc5bc
push esi
call fcn.004913b3
add esp, 0x10
test eax, eax
je 0x4502fa
mov edi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450237
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x2e]
mov dword [ebp - 8], eax
add eax, eax
push eax
call fcn.0048fb2f
push edi
push 0x4baa38
push dword [ebp - 8]
mov esi, eax
push esi
call fcn.00492202
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45037b
push 0x4b4fd0
push dword [ebp - 4]
call fcn.0044e170
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45037b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x4bc5d8
push dword [ebp - 8]
push esi
call fcn.00492202
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45037b
push 0x4b4fd0
push dword [ebp - 4]
call fcn.0044e170
add esp, 8
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45037b
push 5
push dword [ebp + 0xc]
push dword [0x4ea204]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x450319
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push eax
call edi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0048fb2f
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [ebp - 8]
push eax
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x45037b
lea ecx, [edi + edi]
push ecx
call fcn.0048fb2f
add esp, 4
mov ebx, eax
push edi
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0048faf7
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4503d8
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov edi, eax
test edi, edi
je 0x4503d8
lea ecx, [edi + edi]
push ecx
call fcn.0048fb2f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push edi
push esi
call fcn.00491b65
push ebx
call fcn.0048faf7
add esp, 0xc
mov ebx, esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x4bc798
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x450cf8
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x4b4cec
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x450cec
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00491d92
add esp, 8
lea eax, [ebp - 0x20a]
push 0x102
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x22
push 0x4b5340
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00493457
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00491d92
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0049130d
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0049130d
add esp, 0x24
test eax, eax
je 0x450cec
test esi, esi
je 0x450cec
lea esp, [esp]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x450cc6
test cx, cx
je 0x450cc2
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x450cc6
add esi, 4
add eax, 4
test cx, cx
jne 0x450ca0
xor eax, eax
jmp 0x450ccb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x450cec
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x450d10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x450e3d
cmp al, 4
jbe 0x450e22
cmp al, 5
jb 0x450d5a
shr eax, 0x10
cmp eax, 0x893
jbe 0x450d5a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4afa34
call esi
test eax, eax
je 0x450e11
push 0x4bc6c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x450e11
push ebx
push 6
push 0x40
push 0
push 0
call eax
push 0x4bc4fc
mov ebx, eax
mov dword [ebp - 0xa4], edx
call esi
test eax, eax
je 0x450dff
push 0x4bc6d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x450dff
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004906c0
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
mov eax, 0x10
mov word [ebp - 8], ax
lea eax, [ebp - 0xa0]
push dword [ebp - 0xa4]
push ebx
push 0x40
push eax
call esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push 0x4bc6ec
call fcn.0044e790
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret

Function at 0x450e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x4e51d9], 1
pop ebp
ret
Function at 0x4511d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 4
mov dword [ebp - 4], 0
call fcn.0048fb2f
add esp, 4
mov dword [0x4e51e4], eax
mov dword [eax], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x4bb9b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4512e7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4bc8d8
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4512dd
push ebx
push dword [ebp - 4]
call fcn.0048fb2f
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4bc8d8
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
mov esi, ebx
lea eax, [ebx + eax*2]
cmp ebx, eax
jae 0x4512dc
push edi
xor edi, edi
lea esp, [esp]
cmp word [esi], 0
je 0x4512db
lea eax, [edi + 8]
push eax
push dword [0x4e51e4]
call fcn.0048fbc1
push esi
mov dword [0x4e51e4], eax
call fcn.0048faa4
mov ecx, dword [0x4e51e4]
add esp, 0xc
mov dword [edi + ecx], eax
mov edx, dword [0x4e51e4]
mov eax, dword [edx + edi]
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
jmp 0x4512b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4512b0
sub eax, dword [ebp - 0x10]
sar eax, 1
mov dword [edx + edi + 4], 0
add edi, 4
lea esi, [esi + eax*2]
mov eax, dword [ebp - 4]
add esi, 2
lea eax, [ebx + eax*2]
cmp esi, eax
jb 0x451270
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4512f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x80c]
xor esi, esi
push eax
push 0x20019
push esi
push 0x4bc8f0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451442
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x814]
mov dword [ebp - 0x808], 0x400
push eax
push esi
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0x80c]
call edi
test eax, eax
jne 0x451435
jmp 0x451370
lea eax, [esi*8 + 0x10]
push eax
push dword [0x4e4cd4]
call fcn.0048fbc1
mov dword [0x4e4cd4], eax
lea eax, [ebp - 0x804]
push eax
call fcn.0048faa4
mov ecx, dword [0x4e4cd4]
mov dword [ecx + esi*8], eax
push dword [ebp - 0x810]
call fcn.0048fb2f
mov ecx, dword [0x4e4cd4]
add esp, 0x10
mov dword [ecx + esi*8 + 4], eax
lea eax, [ebp - 0x810]
add dword [ebp - 0x808], 2
push eax
mov eax, dword [0x4e4cd4]
push dword [eax + esi*8 + 4]
lea eax, [ebp - 0x814]
push eax
push 0
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0x80c]
call edi
mov eax, dword [0x4e4cd4]
mov dword [eax + esi*8 + 8], 0
lea eax, [ebp - 0x810]
push eax
push 0
lea eax, [ebp - 0x814]
mov dword [ebp - 0x808], 0x400
push eax
push 0
lea eax, [ebp - 0x808]
inc esi
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0x80c]
call edi
test eax, eax
je 0x451370
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x451460
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004906c0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.0044dfe0
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push 0x4bc798
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x451558
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4514d0
sub ecx, edx
push esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x4b4cec
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x451547
cmp byte [ebp + 0xc], 0
je 0x451536
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x4e5180]
push 0x4bc880
call fcn.00483c20
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x451578
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x4e5180]
push 0x4bc880
call fcn.00483c20
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret

Function at 0x451590
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00450bb0
test al, al
je 0x4515cc
lea eax, [ebp - 4]
push eax
push 0x4bc798
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4515d2
push 0x4b4cec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x4e5180]
push 0x4bc844
call fcn.00483c20
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret