joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x88]
push edi
push eax
mov esi, ecx
call fcn.00531fb0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp + 8]
push edi
push edi
push 0x200
mov eax, 0xc
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edx
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4158d1
cmp dword [ebp + 0xc], edi
je 0x4158a6
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x415820
mov eax, dword [esi + 0x140]
cmp eax, edi
je 0x41587b
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41587b
push 1
push edi
push edi
push edi
lea ecx, [ebp - 0x48]
push ecx
call ebx
test eax, eax
je 0x41587b
mov eax, dword [esi + 0x140]
cmp eax, edi
jne 0x415855
xor eax, eax
jmp 0x415858
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x41587b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebp - 0x2c]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x415897
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415820
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebx
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4158c4
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415c30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x428], ecx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
mov word [ebp - 0x20c], ax
call fcn.00531fb0
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x415cc8
pop esi
mov eax, 0x643
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8
push edi
cmp dword [ebp + 8], ebx
jbe 0x415e25
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esi, 0x620
mov edi, edi
cmp dword [esi + 0x628], 0
je 0x415e15
push esi
lea ecx, [esi - 0x208]
push ecx
push 0x55d250
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x420], 4
call fcn.00533b0b
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
push eax
call edi
test eax, eax
jne 0x415d49
inc dword [ebp - 0x418]
jmp 0x415dd3
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.00531fb0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [ebp - 0x420]
push edx
mov edx, dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push eax
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push edx
call edi
test eax, eax
jne 0x415dc9
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00532f33
add esp, 0xc
inc dword [ebp - 0x418]
jmp 0x415dd3
mov dword [ebp - 0x418], 1
mov ecx, dword [ebp - 0x41c]
push 4
lea edx, [ebp - 0x418]
push edx
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x415e47
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x20c]
push edx
push str.SHAREDFILE
add ecx, 0xd9b8
call fcn.0042cc80
inc ebx
add esi, 0xc54
cmp ebx, dword [ebp + 8]
jb 0x415ce0
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x643
pop ebx
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8
Function at 0x4167e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b9cb
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.00531fb0
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
lea ecx, [edi + 0x158]
call fcn.0040be40
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
mov dword [ebp - 4], 0
jle 0x41685f
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00402d60
mov esi, dword [esi]
push str.uninst.exe
push esi
push 0x55d250
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.00533b0b
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4168a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x424]
push ecx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416988
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00531fb0
push ebx
push str._RebootAfterProc
lea ecx, [ebp - 0x420]
push ecx
push 0x55fd78
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00533b0b
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005330ca
add esp, 0x2c
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [edi + 0x158]
lea esi, [eax + 1]
call fcn.0040e1b0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x424]
push esi
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41697b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 4
Function at 0x416bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ba40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x60c9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
lea eax, [ebp - 0x44]
push 0
mov esi, 1
push eax
mov dword [ebp - 4], esi
call fcn.00531fb0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], 0x40
cmp dword [eax - 4], esi
jle 0x416c2d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00402d60
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], esi
jle 0x416c47
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0xc]
call fcn.00402d60
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x416cba
cmp dword [ebp - 0x28], 0x20
jg 0x416cba
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416cf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bb28
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x60c9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x158]
call fcn.00411690
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test eax, eax
je 0x417637
cmp dword [eax - 0xc], 0
je 0x417637
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4174fe
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
movzx ecx, word [esi + 0xd890]
push ecx
lea edx, [ebp - 0x18]
push str._04X
push edx
mov byte [ebp - 4], 1
call fcn.004047a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x158]
call fcn.0040be40
push 1
push 0x55f888
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00407c10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00407c10
push 1
push 0x55e51c
lea ecx, [ebp - 0x10]
call fcn.00407c10
push 0xa
push str.NO_MESSAGE
lea ecx, [ebp - 0x10]
call fcn.00407c10
xor eax, eax
push 0x44
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.00531fb0
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
cmp dword [esi - 4], 1
jle 0x4175b6
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402d60
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x28]
push ecx
call edi
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417634
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418d90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bd38
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60c9c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x418eb4
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418dde
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
xor esi, esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], esi
jle 0x418e84
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + edi*4]
test edx, edx
jne 0x418e20
xor eax, eax
jmp 0x418e34
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e25
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00403290
lea ecx, [ebp + 8]
call fcn.00417160
mov ecx, eax
call fcn.00416dc0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x418e5b
or esi, 0xffffffff
jmp 0x418e7e
push str._ALLUILANG
push eax
call fcn.00533a71
add esp, 8
test eax, eax
jne 0x418e72
or esi, 0xffffffff
jmp 0x418e7e
sub eax, dword [ebp + 8]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x418e84
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x418e12
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
jne 0x418ec9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
add esi, 0xa
push esi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.00405460
mov esi, dword [ebp - 0x14]
push 0x10
push 0
push esi
call fcn.00532401
movzx edi, ax
lea eax, [esi - 0x10]
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, di
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54be9d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], eax
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419c22
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov ebx, 1
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x218], cx
call fcn.00531fb0
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.0043f9a5
mov ecx, dword [0x5e00d4]
lea eax, [ebp - 0x218]
push eax
push ecx
push edi
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call ebx
push 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0043fa4c
test eax, eax
je 0x419ccf
mov edi, edi
mov eax, dword [0x5e00d4]
lea ecx, [ebp - 0x218]
push ecx
inc eax
push eax
push edi
push esi
mov dword [0x5e00d4], eax
call ebx
push 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0043fa4c
test eax, eax
jne 0x419ca0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x419ce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419ce0
mov esi, dword [ebp - 0x21c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00403290
inc dword [0x5e00d4]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.0043f9d7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x418], eax
mov word [ebp - 0x414], cx
call fcn.00531fb0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00531fb0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x18
push 0
push 0x17
lea edx, [ebp - 0x20c]
push edx
push 0
call ebx
test eax, eax
jne 0x41e134
push eax
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test esi, esi
je 0x41e184
cmp word [esi], 0
je 0x41e184
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x55d250
lea edx, [ebp - 0x414]
push 0x104
push edx
call fcn.00533b0b
add esp, 0x14
push 1
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.004197a0
push esi
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [edi + 0xd9b8]
call fcn.0042dea0
jmp 0x41e19f
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00532f33
add esp, 0xc
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], eax
test esi, esi
je 0x41e24c
xor ebx, ebx
mov dword [ebp - 0x418], esi
jmp 0x41e1d3
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.00414f00
xor edx, edx
mov eax, ebx
div esi
mov esi, eax
mov eax, dword [edi + 0x140]
add esi, dword [ebp + 0x14]
test eax, eax
je 0x41e234
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e234
mov ecx, dword [edi + 0x140]
push esi
call fcn.00429060
mov eax, dword [edi + 0x140]
test eax, eax
je 0x41e224
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
add ebx, dword [ebp - 0x420]
add dword [ebp - 0x41c], 0xa30
dec dword [ebp - 0x418]
jne 0x41e1d0
push 0
lea edx, [ebp - 0x414]
push edx
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00531f97
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41ead0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c4bb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 5
push eax
push ebx
mov edi, ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41ebe8
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00531fb0
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
lea ecx, [edi + 0x158]
call fcn.0040be40
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
mov dword [ebp - 4], 0
jle 0x41eb68
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00402d60
mov esi, dword [esi]
push esi
push str._siupdate.ini
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00533b0b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ebad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x5e00d8], 0
je 0x41ebce
lea ecx, [ebp - 0x218]
push ecx
mov ecx, edi
call fcn.004167e0
mov dword [0x5e00d8], 0
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push eax
push ebx
mov ecx, edi
call fcn.004194b0
test eax, eax
je 0x41ebed
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8
Function at 0x4281a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ecx + 4]
lea eax, [ebp - 4]
push eax
push 2
push 0
push ecx
push 0x80000002
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428200
mov edx, dword [ebp - 4]
push esi
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push str.APPLICATION_COMPLETED
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x428210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp eax, 0xa0
ja 0x42825c
je 0x428253
sub eax, 0
je 0x42824a
sub eax, 0x82
je 0x428241
sub eax, 0xa
jne 0x42826f
mov dword [ebp + 8], 0x8c
jmp 0x42829c
mov dword [ebp + 8], 0x82
jmp 0x42829c
mov dword [ebp + 8], 1
jmp 0x42829c
mov dword [ebp + 8], 0xa0
jmp 0x42829c
sub eax, 0xaa
je 0x428295
sub eax, 0x5a8
je 0x428281
sub eax, 0xf
je 0x428278
mov dword [ebp + 8], 0x64
jmp 0x42829c
mov dword [ebp + 8], 0x96
jmp 0x42829c
mov eax, dword [0x60e208]
neg eax
sbb eax, eax
and eax, 0x50
add eax, 0x64
mov dword [ebp + 8], eax
jmp 0x42829c
mov dword [ebp + 8], 0xaa
mov eax, dword [ecx + 4]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428317
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [ebp + 8]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.APPLICATION_COMPLETED
push eax
call esi
test eax, eax
jne 0x4282ee
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.REBOOT
push eax
call esi
test eax, eax
je 0x428301
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8