joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2c40
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f2bbc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f2db8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f2db8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f2d67
jg 0x4f2c99
test eax, eax
je 0x4f2d5d
push 1
push 0x1000
call fcn.004ee459
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f2cbf
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4f2d54
push 0x8000
push ebx
call fcn.004e89bd
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4f2ceb
jg 0x4f2ce6
cmp ecx, 0x1000
jb 0x4f2ceb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ebe0a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f2d30
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4f2ce6
jl 0x4f2d17
test ecx, ecx
jne 0x4f2cd8
push dword [ebp - 0xc]
push ebx
call fcn.004e89bd
push esi
call fcn.004ec8d4
add esp, 0xc
xor edi, edi
jmp 0x4f2dc9
cmp byte [edi + 0x24], 0
je 0x4f2d47
cmp dword [edi + 0x20], 5
jne 0x4f2d47
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f2d52
mov edi, dword [edi + 0x18]
jmp 0x4f2d54
xor edi, edi
push esi
call fcn.004ec8d4
pop ecx
jmp 0x4f2dc9
test ecx, ecx
jg 0x4f2d29
jl 0x4f2d67
test eax, eax
jae 0x4f2d29
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e73df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f2d8a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f2d29
jmp 0x4f2dc1
push ebx
call fcn.004efbc8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f2d29
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4f2dc9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f2dc6
mov edi, dword [edi + 0x18]
jmp 0x4f2dc9
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004e73df
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f3878
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4f38c3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f3a17
test al, al
jne 0x4f38bd
sub edx, 2
cmp edx, edi
jne 0x4f38a3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f38e5
lea eax, [edi + 2]
cmp edx, eax
je 0x4f38e5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f37c4
add esp, 0x10
jmp 0x4f39df
push esi
lea ecx, [ebp - 0x255]
call fcn.004f3a17
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f3928
push dword [ebp - 0x25c]
jmp 0x4f38d5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4f3965
cmp word [ebp - 0x226], 0
je 0x4f3986
cmp word [ebp - 0x226], ax
jne 0x4f3965
cmp word [ebp - 0x224], 0
je 0x4f3986
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f37c4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f39d2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f393f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f39ba
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f39df
push 0x4f35f4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004e54c0
add esp, 0x10
jmp 0x4f39af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd2ac
leave
ret

Function at 0x4f4303
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f4314
pop esi
ret
push ebx
push edi
push esi
call fcn.004f42cc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ec90e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f433c
push ebx
push esi
push edi
call fcn.004cee80
add esp, 0xc
push 0
call fcn.004ec8d4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f4700
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f4351
Function at 0x4fa170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4fa19d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4fa19d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4082a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438a6b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x30], ecx
xor edi, edi
mov edx, 0x445c50
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.0040ad60
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], edi
je 0x408401
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a950
mov esi, dword [ebp - 0x40]
test eax, eax
jne 0x4083f3
test esi, esi
je 0x4083fe
sub esp, 8
lea ecx, [ebp - 0xf0]
call fcn.00408a10
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.0040a310
mov edx, ebx
mov ecx, eax
call fcn.0040a5d0
mov ecx, eax
call fcn.0040a310
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00408b40
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmp edi, 8
cmovae edx, ebx
lea ecx, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x408370
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x2c]
lea eax, [edx*2 + 2]
push eax
cmp edi, 8
cmovae ecx, ebx
push ecx
push 2
push 0
push dword [ebp - 0x30]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp - 0x18], 8
jb 0x4083b7
push dword [ebp - 0x2c]
call fcn.0041fc4f
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
call fcn.00408ac0
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x440f3c
call fcn.0041f7c3
add esp, 4
test esi, esi
je 0x4083fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408431
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.crypt32.dll_CertGetStoreProperty]
jmp 0x408431
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fc54
mov esp, ebp
pop ebp
ret
Function at 0x40a9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x440f48
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x440f58
push str.Shlwapi.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
mov esi, eax
test edi, edi
je 0x40ab28
test esi, esi
je 0x40ab28
push 0x40
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00422250
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.crypt32.dll_CertOpenStore], ax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x620], eax
mov word [ebp - reloc.crypt32.dll_CertOpenStore], ax
lea eax, [ebp - 0x20a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x670], 0x44
movq qword [ebp - 0x628], xmm0
call fcn.00422250
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x440f7c
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
xor eax, eax
push 0x40e
push eax
mov word [ebp - reloc.crypt32.dll_CertOpenStore], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00422250
push ebx
lea eax, [ebp - 0x20c]
push eax
push str.__s__start___s_
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.00420a5c
add esp, 0x20
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x670]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fc54
mov esp, ebp
pop ebp
ret
Function at 0x40ab40
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
mov edx, 0x446070
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.0040ad60
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
je 0x40ac77
push 5
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40ac77
push 0x17
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40ac6e
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ac5a
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x11]
push ecx
push eax
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], 0
call fcn.004050e0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jne 0x40ac52
test ebx, ebx
je 0x40ac52
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x40ac52
cmp dword [ebx + 4], 2
je 0x40ac52
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
push 2
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00404fe0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aca6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.crypt32.dll_CertGetStoreProperty]
jmp 0x40aca6
test esi, esi
je 0x40acb1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40acbc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, 0x446288
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.0040ad60
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40bece
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bec0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40be81
lea eax, [edx + 0xd]
jmp 0x40beae
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be86
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x4410a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bec0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40be40
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bee8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + reloc.crypt32.dll_CertGetStoreProperty]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fbb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x47a990
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040ad60
mov edx, 0x47a96c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040ad60
mov byte [ebp - 4], 2
mov eax, dword [0x444008]
mov ecx, 0x444008
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, 0x6a
mov byte [ebp - 4], 3
call fcn.00404890
test eax, eax
je 0x40fc37
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.004043f0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x40fcf5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x40fcf5
cmp dword [esi - 0xc], 0
je 0x40fcf5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.0040fb30
test eax, eax
jne 0x40fccb
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fca0
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fcce
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40fce0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x40fcf5
mov eax, dword [ebp - 0x18]
jmp 0x40fc60
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fd15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.crypt32.dll_CertGetStoreProperty]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.crypt32.dll_CertGetStoreProperty]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40fd53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.crypt32.dll_CertGetStoreProperty]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429ff2
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [esi], eax
lea edi, [esi + 4]
xor eax, eax
lea ebx, [esi + 0x124]
mov ebp, 0x11c
mov byte [esi + 0x120], al
push ebp
push eax
push edi
mov dword [ebx], eax
call fcn.0066c620
add esp, 0xc
cmp byte [esi], 5
jb 0x42a03c
push edi
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
setne al
mov byte [esi + 0x120], al
cmp byte [esi], 6
jb 0x42a064
push str.GetProductInfo
push 0x6d1ca8
call fcn.004608c1
test eax, eax
je 0x42a064
movzx ecx, byte [esi + 1]
push ebx
push 0
push 0
push ecx
movzx ecx, byte [esi]
push ecx
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x42b45d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6caff1
call fcn.00651da4
sub esp, 0x4c
push ebx
push esi
push edi
push 7
xor ebx, ebx
xor eax, eax
pop edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
push ebx
push 0x104
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.00436192
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42b49e
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x42b4cf
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ebx
xor eax, eax
push 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], ax
call fcn.004284eb
mov eax, esi
jmp 0x42b591
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x42b4db
lea ecx, [ebp - 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42b4de
sub ecx, edx
sar ecx, 1
push ebx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043ab3d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42b50f
push esi
call fcn.004287c6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004285c7
push 0x6d328c
lea ecx, [ebp - 0x40]
call fcn.00428153
xor ebx, ebx
lea eax, [ebp - 0x40]
inc ebx
push ebx
push eax
sub esp, 0x18
mov byte [ebp - 4], bl
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0042812e
lea eax, [ebp - 0x58]
push eax
call fcn.0045c726
push eax
lea ecx, [ebp - 0x28]
call fcn.004281d1
push 0
push ebx
lea ecx, [ebp - 0x58]
call fcn.004284eb
push 0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004284eb
mov esi, str..lnk
push esi
call fcn.004287c6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004285c7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0042810c
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.004284eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42c6d2
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x6aa8b0
call fcn.00651da4
sub esp, 0x3c
and dword [ebp - 0x10], 0
push ebx
push 2
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
test eax, eax
js 0x42c84c
push edi
lea eax, [ebp - 0x10]
mov edi, 0x6d8ff0
push eax
push 0x6d8fc0
push 1
push 0
push edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42c723
cmp dword [ebp - 0x10], 0
jne 0x42c74b
lea eax, [ebp - 0x10]
xor bl, bl
push eax
push 0x6d8fb0
push 1
push 0
push edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42c84b
cmp dword [ebp - 0x10], 0
je 0x42c84b
and dword [ebp - 0x14], 0
push dword [ebp + 8]
test bl, bl
je 0x42c7a1
lea ecx, [ebp - 0x48]
call fcn.00428153
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.0043b84e
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 2
jb 0x42c77a
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor ebx, ebx
lea ecx, [ebp - 0x30]
push ebx
push 1
call fcn.004284eb
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004284eb
jmp 0x42c7d2
lea eax, [ebp - 0x48]
push eax
call fcn.0047abab
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x42c7b8
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor ebx, ebx
lea ecx, [ebp - 0x48]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040facf
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x6d1d24
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x42c842
cmp dword [ebp - 0x14], 0
je 0x42c842
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.00428153
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
call fcn.0043b84e
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 5
jb 0x42c814
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004284eb
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004284eb
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8