joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ae20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x46af7a
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00465e50
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x46af4d
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x46aed3
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x46af43
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x46af0d
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x46af05
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x46af40
cmp edi, edx
je 0x46af1d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x46af56
cmp edi, edx
jne 0x46af11
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x46ae82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x46af40
push 0x50242c
call fcn.004c1a7a
int3
Function at 0x470640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
push edi
cmp esi, 0x65
jne 0x470679
mov edi, dword [0x54fea4]
jmp 0x470695
cmp esi, 0x66
jne 0x470686
mov edi, dword [0x54fea8]
jmp 0x470695
cmp esi, 0x68
jne 0x470791
mov edi, dword [0x54feac]
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x470791
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x470791
cmp esi, 0x65
jne 0x470702
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x54af08]
push esi
push dword [esi + 0x24]
call fcn.00475920
push esi
call fcn.004a8350
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x66
jne 0x47071b
push dword [ebp - 0x1c]
push edi
call fcn.004a8070
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x68
jne 0x470791
mov ecx, dword [ebp - 0x1c]
test byte [ecx + 0xd4], 8
je 0x47074c
push 0x10
push 0x500f28
push 0x50c920
push dword [0x54fea4]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0xe0], 0
jne 0x470775
push 0x10
push 0x4fa6f4
push 0x50c98c
push dword [0x54fea0]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lock inc dword [ecx + 0x20]
mov eax, dword [0x532de8]
push ecx
push 0
push 0x4a8370
mov dword [ecx + 0x24], eax
call fcn.004d6098
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x475410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x532454], 0
jne 0x47543c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
cmp dword [0x54f9bc], 0
je 0x4754bd
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c53a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x54f9bc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4754bd
mov eax, 0x50d150
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4754ab
test dx, dx
je 0x4754a7
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4754ab
add ecx, 4
add eax, 4
test dx, dx
jne 0x475485
xor eax, eax
jmp 0x4754b0
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
Function at 0x479a50
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c53a0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00478cc0
add esp, 0x14
cmp dword [0x54a9bc], 1
jl 0x479aad
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call fcn.00478150
add esp, 8
mov esi, eax
jmp 0x479b5e
lea eax, [ebp - 0x418]
push eax
push 2
push 0
push 0x50d808
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x479b62
cmp byte [ebp + 8], al
je 0x479b37
push 0x50d8c0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.004d6355
lea ecx, [ebp - 0x414]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479b00
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x4fa6f4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x479b52
push 0x4fa6f4
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 0x479b7e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x54fea0]
push 0x50d8c8
call fcn.004aae60
add esp, 8
test esi, esi
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop esi
call fcn.004c34b7
mov esp, ebp
pop ebp
ret

Function at 0x479c80
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 0x479ca9
push ebx
push 0x104
push dword [ebp + 0x14]
call fcn.004c913a
add esp, 0xc
mov al, 1
pop ebx
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479cb0
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.004c8d7a
mov edi, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edi, edi
je 0x479d3e
nop
cmp word [edi], 0
je 0x479d3e
push edi
push ebx
push esi
call fcn.004c913a
push 0x3b
push esi
call fcn.004c56b8
add esp, 0x14
test eax, eax
je 0x479d02
xor ecx, ecx
mov word [eax], cx
push 0x4f9dfc
push ebx
push esi
call fcn.004d6355
push dword [ebp + 8]
push ebx
push esi
call fcn.004d6355
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479d52
push 0x3b
push edi
call fcn.004c56b8
add esp, 8
test eax, eax
lea edi, [eax + 2]
cmove edi, eax
test edi, edi
jne 0x479ce0
push 2
push esi
xor bl, bl
call fcn.004c34a9
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push 0x104
push dword [ebp + 0x14]
call fcn.004c913a
add esp, 0xc
mov bl, 1
push 2
push esi
call fcn.004c34a9
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47a730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x535a40]
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 0x47a760
sub ecx, edx
lea edx, [ebp - 0x20c]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47a780
sub edx, esi
sar edx, 1
lea ebx, [edx + 0x13]
add ebx, ecx
lea eax, [ebx + ebx]
push eax
call fcn.004c8d7a
mov esi, eax
lea eax, [ebp - 0x206]
push 0x5c
push eax
call fcn.004c56b8
push 0xc
xor ecx, ecx
push 0x50d5f4
push edi
mov word [eax], cx
call fcn.004c95b0
add esp, 0x18
test eax, eax
jne 0x47a7fb
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.004c56b8
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x50d610
push ebx
push esi
call fcn.00415290
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push 4
push 0x4fa4f4
push edi
call fcn.004c936a
add esp, 0xc
test eax, eax
jne 0x47a830
lea eax, [edi + 8]
push eax
push ebx
push esi
call fcn.004c913a
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x5c
push edi
jne 0x47a846
movzx eax, word [ebp - 0x20c]
push eax
push 0x50d61c
jmp 0x47a852
lea eax, [ebp - 0x20c]
push eax
push 0x50d628
push ebx
push esi
call fcn.00415290
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret

Function at 0x47a870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x4f9d20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004c913a
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 0x47a8ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.004c8d7a
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 0x47a947
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x30]
push dword [esi + 0x34]
call fcn.004904f0
push 0x4fa65c
push esi
call fcn.00492ab0
add esp, 0x18
test eax, eax
jne 0x47a90d
push 0x50d358
push esi
call fcn.00492ab0
add esp, 8
test eax, eax
je 0x47a918
push eax
call fcn.004c8d00
mov dword [edi], eax
add esp, 4
push 0x4fa67c
push esi
call fcn.00492ab0
add esp, 8
test eax, eax
jne 0x47a93c
push 0x50d380
push esi
call fcn.00492ab0
add esp, 8
test eax, eax
je 0x47a947
push eax
call fcn.004c8d00
mov dword [ebx], eax
add esp, 4
push esi
call fcn.004c8d5f
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ad30
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call fcn.004c8d00
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ad50
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push esi
call fcn.004c9ae9
push 0x4ffdcc
push esi
call fcn.004c580a
add esp, 0x10
test eax, eax
je 0x47ae47
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ad87
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x2e]
mov dword [ebp - 0xc], eax
add eax, eax
push eax
call fcn.004c8d7a
push esi
push 0x50b268
push dword [ebp - 0xc]
mov ebx, eax
push ebx
call fcn.00415290
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47aec6
push 0x4ffd88
push dword [ebp - 4]
call fcn.00478d80
mov edi, eax
add esp, 8
test edi, edi
jne 0x47aec6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x50d2f8
push dword [ebp - 0xc]
push ebx
call fcn.00415290
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47aec6
push 0x4ffd88
push dword [ebp - 4]
call fcn.00478d80
add esp, 8
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47aec6
push 5
push dword [ebp + 0xc]
push dword [0x550aa0]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x47ae66
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push eax
call esi
push dword [ebp - 8]
call fcn.004c8d7a
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push 0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47aec6
lea ecx, [esi + esi]
push ecx
call fcn.004c8d7a
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
call fcn.004c8d5f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47af23
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov ebx, eax
test ebx, ebx
je 0x47af23
lea ecx, [ebx + ebx]
push ecx
call fcn.004c8d7a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push ebx
push esi
call fcn.004c98b5
push edi
call fcn.004c8d5f
add esp, 0xc
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x50d3f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47ba88
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x4ff9a4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47ba7c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004c9ae9
add esp, 8
lea eax, [ebp - 0x20a]
push 0x102
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x22
push 0x500150
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d6355
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c9ae9
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004c5767
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c5767
add esp, 0x24
test eax, eax
je 0x47ba7c
test esi, esi
je 0x47ba7c
nop dword [eax]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x47ba56
test cx, cx
je 0x47ba52
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x47ba56
add esi, 4
add eax, 4
test cx, cx
jne 0x47ba30
xor eax, eax
jmp 0x47ba5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47ba7c
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.004c34b7
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.004c34b7
mov esp, ebp
pop ebp
ret

Function at 0x47baa0
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 [0x54fc8d], 1
pop ebp
ret
Function at 0x47bbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x80c]
xor esi, esi
push eax
push 0x20019
push esi
push 0x50d518
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47bd22
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 0x47bd15
nop dword [eax + eax]
lea eax, [esi*8 + 0x10]
push eax
push dword [0x54f9f0]
call fcn.004c8d85
mov dword [0x54f9f0], eax
lea eax, [ebp - 0x804]
push eax
call fcn.004c8d00
mov ecx, dword [0x54f9f0]
mov dword [ecx + esi*8], eax
push dword [ebp - 0x810]
call fcn.004c8d7a
mov ecx, dword [0x54f9f0]
add esp, 0x10
mov dword [ecx + esi*8 + 4], eax
lea eax, [ebp - 0x810]
add dword [ebp - 0x808], 2
push eax
mov eax, dword [0x54f9f0]
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 [0x54f9f0]
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 0x47bc50
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.004c34b7
mov esp, ebp
pop ebp
ret

Function at 0x47bd40
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c53a0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00478cc0
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push 0x50d3f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x47bdff
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bda0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x4ff9a4
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 0x47bdee
cmp byte [ebp + 0xc], 0
je 0x47be1f
push esi
jmp 0x47be06
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x47be1f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x54fea0]
push 0x50d4d8
call fcn.004aae60
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
Function at 0x47be30
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x50d3f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47bfdd
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0x4ff9a4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47bfd1
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004c9ae9
add esp, 8
lea eax, [ebp - 0x20a]
push 0x102
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x22
push 0x500150
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d6355
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c9ae9
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004c5767
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c5767
add esp, 0x24
test eax, eax
je 0x47bfd1
test esi, esi
je 0x47bfd1
mov cx, word [esi]
cmp cx, word [eax]
jne 0x47bf4a
test cx, cx
je 0x47bf46
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x47bf4a
add esi, 4
add eax, 4
test cx, cx
jne 0x47bf24
xor eax, eax
jmp 0x47bf4f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47bfd1
push dword [ebp - 0x418]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x41c]
push eax
push 0x50d3f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47bfa6
push 0x4ff9a4
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x54fea0]
push 0x50d49c
call fcn.004aae60
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
Function at 0x47c2b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00478cc0
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x434], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x450]
push eax
movlpd qword [ebp - 0x430], xmm0
movlpd qword [ebp - 0x428], xmm0
movlpd qword [ebp - 0x420], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x450], 0x3c
mov dword [ebp - 0x44c], 0x40
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0x4fa0e8
mov dword [ebp - 0x43c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x47c373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x47c387
push 0xffffffffffffffff
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret