joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b740
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00403ccd
xor ebx, ebx
push 0x5c
lea esi, [esp + 0x10]
mov dword [esp + 0x18], ebx
call fcn.0044d969
mov esi, eax
cmp esi, ebx
jl 0x47b822
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
lea edx, [esi + 1]
push eax
call fcn.0044279c
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0xc]
push ecx
sub eax, esi
mov ecx, esi
call fcn.0046a9f0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x20], ebx
push SysReAllocStringLen
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [esp + 0x18], ebx
je 0x47b819
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x47b809
inc dword [esp + 0x14]
cmp dword [esp + 0x18], ebx
je 0x47b7e9
push dword [esp + 0x18]
call edi
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
call fcn.004036cd
push 0x5c
lea esi, [esp + 0x10]
call fcn.0044d969
mov esi, eax
cmp esi, ebx
jge 0x47b77a
jmp 0x47b822
cmp dword [esp + 0x18], ebx
je 0x47b819
push dword [esp + 0x18]
call edi
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
call fcn.004036cd
lea ecx, [esp + 0xc]
call fcn.004036cd
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ba20
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47ba4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47ba67
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x47ba65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47bbcc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.004c6270
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x47bc0b
lea esi, [ebp - 0xc]
call fcn.0048d86c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47bc52
lea esi, [ebp - 0xc]
call 0x48d850
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x47bc6e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x47bc43

Function at 0x47bc7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x38
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004c6270
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x400
cmp dword [ebp + 0xc], ebx
je 0x47bcb0
mov dword [ebp - 0x3c], 0x440
push edi
mov edi, dword [esi]
mov ecx, esi
call fcn.00469b20
test al, al
je 0x47bcc1
add edi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x30], edi
sete al
mov dword [ebp - 0x34], 0x509aa4
pop edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x47bce4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.00468bf0
mov esi, dword [ebp - 4]
pop ecx
lea ecx, [ebp - 4]
call fcn.00469b20
test al, al
je 0x47bd00
add esi, 8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x47bd1f
lea ecx, [ebp - 4]
call fcn.004036cd
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x47bd40
cmp dword [ebp - 8], ebx
je 0x47bd4e
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 8], ebx
je 0x47bd4e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x47bd11
Function at 0x47bf88
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
push 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47bfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47c094
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x47c014
call ebx
cmp eax, 0x7a
jne 0x47c089
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0044bfe0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x18]
call esi
cmp eax, edi
je 0x47c089
cmp dword [ebp - 0x1c], edi
je 0x47c089
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x47c08b
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x20]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
call fcn.004c8958
pop ecx
cmp dword [ebp - 0x18], edi
je 0x47c085
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x47c0a4
call ebx
push dword [ebp - 0x10]
call fcn.004c8958
pop ecx
cmp dword [ebp - 0x18], edi
je 0x47c0a2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c625d
leave
ret

Function at 0x47c0b3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x47c0da
push eax
jmp 0x47c114
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x47c10b
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
je 0x47c129
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c0f3
test esi, esi
je 0x47c11a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c625d
leave
ret
push edi
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x47c13b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x47c11c
Function at 0x47d348
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47d3d8
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405d46
lea ebx, [ebp - 0x7c]
call fcn.00466770
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.004036cd
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47d395
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.004c625d
add ebp, 0x19c
leave
ret 4

Function at 0x47d3f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x47d453
push dword [ebp - 4]
call fcn.00403638
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.004189d3
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00403680
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x47dcac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.00447f70
xor eax, eax
cmp byte [esi + 0xc], al
je 0x47dcd1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x47dcf5
cmp dword [edi], eax
je 0x47dcf5
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x47dd19
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.0041f552
pop edi
pop esi
pop ebp
ret 4
Function at 0x47df09
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
mov ebx, eax
push 0x5120b0
lea eax, [ebp - 4]
push eax
call fcn.00405d46
lea edi, [ebx + 0x20]
lea ecx, [ebp - 4]
call fcn.004693c0
lea ecx, [ebp - 4]
call fcn.004036cd
lea eax, [ebx + 8]
push eax
lea esi, [ebp - 8]
call fcn.0048ecc2
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
pop ecx
je 0x47df72
mov edi, dword [edi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 8]
call fcn.004036cd
mov al, bl
jmp 0x47e00e
push 0x5437d8
mov eax, ebx
lea esi, [ebp - 0x88]
call fcn.004860cd
push 1
push edi
lea eax, [ebx + 8]
push eax
mov ecx, esi
call fcn.004861f0
mov edi, eax
mov eax, dword [ebx + 4]
cmp byte [eax + 0x39], 0
je 0x47dfa6
call fcn.00486157
xor bl, bl
jmp 0x47df63
test edi, edi
je 0x47dff6
cmp byte [0x5457ac], 0
je 0x47dff6
lea eax, [ebp - 0xc]
push eax
mov ebx, edi
call fcn.004664f0
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push str.Downloading_of_updates_failed._Error:
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [ebp - 4]
call fcn.004036cd
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea esi, [ebp - 0x88]
call fcn.00486157
lea ecx, [ebp - 8]
call fcn.004036cd
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47f597
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 0xc
add eax, 0x60
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403ccd
lea eax, [ebp - 0xc]
push eax
call fcn.0047b376
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.0040372d
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00405c1f
lea eax, [ebp - 4]
push eax
call fcn.0040372d
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.00453582
add esp, 0x10
cmp byte [0x5457ac], 0
je 0x47f61a
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [ebp + 8]
call fcn.004036cd
cmp byte [esi + 0x10], 0
je 0x47f62b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x47f647
mov eax, dword [esi]
call fcn.0048141b
mov eax, dword [esi]
push 0
call fcn.004812f3
push 0x30
push eax
lea eax, [ebp - 4]
push eax
call fcn.00481364
lea ecx, [ebp - 4]
call fcn.004036cd
lea ecx, [ebp - 8]
call fcn.004036cd
lea ecx, [ebp - 0xc]
call fcn.004036cd
leave
ret 8

Function at 0x481428
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x48f7e8
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x48148c
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x48148c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x481465
pop edi
pop esi
pop ebx
leave
ret
Function at 0x481c46
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x481d8b
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x481cc6
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00405d23
push 0x2e
call fcn.0044d969
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push esi
call fcn.0046a9f0
push str..log
push esi
call fcn.00403bd3
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.0041f552
cmp dword [ebx], 0xffffffff
je 0x481d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x481d13
mov eax, dword [ebx]
test eax, eax
je 0x481d44
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x481d44
test eax, eax
jne 0x481d7a
mov eax, dword [ebx]
test eax, eax
je 0x481d7a
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x481d8a
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00481da4
lea eax, [ebp - 0x78]
push eax
call fcn.0040372d
lea esi, [ebp - 0x78]
call fcn.00481dc9
mov eax, esi
mov esi, edi
call fcn.00481da4
lea ecx, [ebp - 0x78]
call fcn.004036cd
jmp 0x481d8a
mov eax, dword [ebx]
test eax, eax
je 0x481d8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c625d
add ebp, 0x198
leave
ret 4

Function at 0x481da4
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x48266d
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0047b1e4
test al, al
jne 0x482725
push str.ProgramFilesFolder
push edi
call fcn.004429e2
mov esi, str.AppDataFolder
test eax, eax
je 0x4826c6
push str.ProgramFiles
push edi
call fcn.0047dc3e
pop ecx
pop ecx
test al, al
jne 0x4826c6
push esi
push edi
call fcn.004429e2
test eax, eax
jne 0x482725
push esi
push edi
call fcn.004429e2
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x4826e6
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x482705
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x48271c
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00405d23
xor eax, eax
test esi, esi
setne al
jmp 0x482727
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004c625d
add ebp, 0x190
leave
ret

Function at 0x4828eb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x5457ac], 0
je 0x48291d
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
mov eax, 0x54577c
call fcn.00481b6e
lea ecx, [ebp - 4]
call fcn.004036cd
cmp byte [0x542de4], 0
je 0x482970
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x482935
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00405d46
push edi
lea eax, [ebp - 8]
push eax
call fcn.0040372d
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00464700
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004036cd
lea ecx, [ebp - 4]
call fcn.004036cd
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x4830ca
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
push esi
add ebx, 0x18
mov eax, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x4830f2
lea esi, [ebp - 0xc]
call fcn.00466770
xor esi, esi
cmp dword [ebp - 8], edi
jle 0x483117
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.0047a582
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x4830f9
lea esi, [ebp - 0xc]
call fcn.0044ebe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4834d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, eax
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040372d
lea eax, [ebp - 0xc]
push eax
call fcn.0040372d
lea eax, [ebp - 4]
push eax
call fcn.0040372d
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x14]
lea eax, [ebp - 4]
call fcn.004785d9
lea eax, [ebp - 4]
lea edi, [ebp - 0x10]
call fcn.004412d2
xor ecx, ecx
mov edx, 0x50f4fc
lea esi, [ebp - 4]
call fcn.00466740
test eax, eax
jne 0x483532
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00405d23
push 0x50ec88
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea esi, [ebp - 0x10]
call fcn.00476235
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.0044d090
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.004036cd
push 0
push 1
lea ecx, [ebp - 8]
call fcn.00469fc0
lea eax, [ebp + 0xc]
push str.instname_target.msi
push eax
lea esi, [ebp - 8]
lea edi, [ebx + 0x18]
call fcn.0044d090
add esp, 0x10
call fcn.004412d2
lea ecx, [ebp + 0xc]
call fcn.004036cd
lea eax, [ebp + 0xc]
push str.instname_custom.mst
lea edi, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], edi
call fcn.0044d090
pop ecx
pop ecx
call fcn.004412d2
lea ecx, [ebp + 0xc]
call fcn.004036cd
lea esi, [ebx + 0x18]
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4835cf
push dword [ebp + 8]
call fcn.0040372d
jmp 0x48361b
push 0x507af4
lea eax, [ebp + 0xc]
push eax
call fcn.00405d46
add ebx, 0x10
push ebx
lea edi, [ebp + 0xc]
mov eax, esi
call fcn.00483997
mov ecx, edi
mov bl, al
call fcn.004036cd
test bl, bl
je 0x483610
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0xc]
call fcn.00483871
lea ecx, [ebp + 0xc]
call fcn.004036cd
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00403ccd
lea ecx, [ebp - 8]
call fcn.004036cd
lea ecx, [ebp - 4]
call fcn.004036cd
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea ecx, [ebp - 0x10]
call fcn.004036cd
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x484067
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov esi, edx
push SysReAllocStringLen
mov edi, ecx
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4840b7
xor al, al
jmp 0x4841c4
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x4840ce
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x4840fd
cmp dword [ebp - 0x74], 0xc8
jbe 0x4841b3
lea eax, [ebp - 0x68]
push eax
call fcn.0040372d
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x48415c
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x48411e
push 0x80070057
call fcn.00403765
cmp word [eax], 0x22
je 0x48415c
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.0044d93f
cmp eax, 0xffffffff
je 0x484159
push 0x22
lea edi, [ebp - 0x68]
call fcn.004668b0
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00403bf6
push 0x22
call fcn.004668b0
mov esi, dword [ebp - 0x78]
jmp 0x484166
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.004412d2
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x484181
jl 0x484114
cmp word [eax], 0x20
je 0x484181
push 0x20
lea edi, [ebp - 0x68]
call fcn.004668b0
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.00403bf6
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call fcn.004036cd
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x7c], ebx
sete al
mov ecx, dword [ebp + 0x12c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c625d
add ebp, 0x130
leave
ret