joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e70
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x324]
push esi
mov esi, dword [ebp + 8]
push 0x190
push 0
push eax
call fcn.004bf1c0
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.004bf1c0
push 0xc8
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.004bf1c0
push ebx
push esi
lea eax, [ebp - 0x194]
push 0x573dcc
push eax
call fcn.0041ee30
push esi
lea eax, [ebp - 0x324]
push str.SOFTWARE_sCapabilitiesFileAssociations
push eax
call fcn.0041ee30
add esp, 0x40
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x324]
lea eax, [eax + 2]
mov word [ebp + eax - 0xce], cx
test cx, cx
jne 0x425ef0
push edi
lea edi, [ebp - 0xcc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x425f12
mov eax, dword [0x57190c]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x425f30
lea edi, [ebp - 0xcc]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425f46
mov ecx, edx
lea eax, [ebp - 0xcc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
pop edi
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425f80
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x194]
push eax
push 1
push ebx
lea eax, [ebp - 0x324]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00437c42
mov esp, ebp
pop ebp
ret 8
Function at 0x4260e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
mov dword [ebp - 0x218], 0x114
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x214], 6
jb 0x4261c0
lea eax, [ebp - 0x21c]
push eax
push 0x578318
push 3
push 0
push 0x578338
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4261c0
mov eax, dword [0x5718a0]
lea edx, [ebp - 0x220]
movups xmm0, xmmword [0x571890]
mov dword [ebp - 0xf4], eax
mov ax, word [0x5718a4]
mov word [ebp - 0xf0], ax
mov eax, dword [ebp - 0x21c]
push edx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x220], 0
push edx
movups xmmword [ebp - 0x104], xmm0
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x220], 0
jne 0x4261b4
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
Function at 0x429c80
Capabilities:
Create thread

Disassembly:
push esi
push 0x574da8
mov esi, ecx
call fcn.0042aab0
mov ecx, esi
mov dword [esi + 0x5a0], 1
mov dword [esi + 0x5b0], 3
call fcn.0042ac50
mov ecx, dword [esi + 0x52c]
test ecx, ecx
je 0x429cb7
call fcn.00422230
push 0
push 0
push esi
push 0x429b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x5bc], eax
pop esi
ret

Function at 0x42a330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a658
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x530]
test ecx, ecx
je 0x42a3f1
call fcn.00426fa0
mov ecx, dword [esi + 0x530]
mov edi, dword [esi + 0x5a0]
call fcn.004272c0
test eax, eax
je 0x42a3f1
cmp edi, 1
je 0x42a3f1
call fcn.00419080
mov ecx, eax
call fcn.004b126a
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ff90
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x588]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e800
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a3e2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b39b1
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00418ed0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x5bc]
test eax, eax
je 0x42a427
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x5bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042a470
push 1
push 1
push 1
push 0x7530
push 0x7530
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push dword [esi + 4]
call edi
push 1
mov ecx, esi
call fcn.00475f92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret

Function at 0x42a6d0
Capabilities:
Check if file exists

Disassembly:
add ecx, 0xfffffaec
jmp fcn.0042a330

Function at 0x42a9a0
Capabilities:
Create thread

Disassembly:
push esi
lea esi, [ecx - 0x50c]
push 0x574d80
mov ecx, esi
call fcn.0042aab0
mov ecx, esi
mov dword [esi + 0x5a0], 1
mov dword [esi + 0x5b0], 3
call fcn.0042ac50
mov ecx, dword [esi + 0x52c]
test ecx, ecx
je 0x42a9dd
call fcn.00422230
push 0
push 0
push esi
push 0x429b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x5bc], eax
pop esi
ret
Function at 0x42ae90
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
push 0x574cb0
lea ecx, [esi - 0x500]
call fcn.0042aab0
mov eax, dword [esi + 0xb0]
cmp eax, 3
je 0x42aef8
cmp eax, 4
jne 0x42aec1
pop edi
lea ecx, [esi - 0x500]
pop esi
jmp fcn.0042a330
push 1
push 1
push 1
push 0x7530
push 0x7530
push dword [esi - 0x4fc]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push dword [esi - 0x4fc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea ecx, [esi - 0x500]
call fcn.00475f92
pop edi
pop esi
ret
Function at 0x42dd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aab6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5da2b4]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x42de2c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x42de2c
call fcn.0042ce90
mov esi, eax
jmp 0x42df1c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42de4f
call fcn.0042ce90
jmp 0x42df0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x42de6d
call fcn.0042ce90
jmp 0x42df0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x42de8e
mov esi, 0x8007000e
jmp 0x42df11
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0042cc70
jmp 0x42deb8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x42decf
mov esi, 0x8007000e
jmp 0x42df11
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x42deef
call fcn.0042ce90
jmp 0x42df0f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0042dc20
mov esi, eax
test edi, edi
je 0x42df1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x42df40
lea ecx, [ebp - 0x418]
call fcn.0042d240
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x42e889
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e895
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x42e890
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x42e8e5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e8f0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42f660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc24
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x404]
push edi
push 0x200
push 0
push eax
mov edi, ecx
call fcn.004bf1c0
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004bf1c0
push 0x208
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.004bf1c0
push 0x208
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.004bf1c0
push 0x208
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.004bf1c0
push 0x208
lea eax, [ebp - 0xc24]
push 0
push eax
call fcn.004bf1c0
add esp, 0x48
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov bl, byte [ebp + 0x1c]
test eax, eax
jne 0x42f706
test bl, bl
jne 0x42f7e0
lea ecx, [ebp - 0x60c]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x42f710
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x204]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42f730
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x204]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x816], ax
test ax, ax
jne 0x42f742
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x404]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42f765
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0xc24]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42f780
push 0
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa1c]
push str.__s___d
push eax
call fcn.0041ee30
add esp, 0x10
movzx eax, bl
mov ecx, edi
push eax
push 0x571908
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004261f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437c42
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4312b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b3fa
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
jne 0x431314
xor ecx, ecx
jmp 0x43132f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431320
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x14]
call fcn.00419cc0
mov ecx, esi
mov dword [esi], 0
call fcn.00430700
test eax, eax
je 0x4313cf
cmp dword [esi + 0x40], 8
lea eax, [esi + 0x2c]
jb 0x43135b
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004314f0
test eax, eax
je 0x4313cf
mov ecx, esi
call fcn.00430a10
test eax, eax
je 0x4313cf
mov dword [esi], 1
mov eax, dword [0x5e74f8]
test eax, eax
jne 0x4313b6
push 0x5c0
call fcn.00437bf3
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4313a8
mov ecx, eax
call fcn.00428b60
jmp 0x4313aa
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5e74f8], eax
push 0
push 0
push 0x467
mov ecx, eax
call fcn.004762b6
mov dword [esi + 8], 1
jmp 0x43141d
mov eax, dword [0x5e74f8]
test eax, eax
jne 0x43140d
push 0x5c0
call fcn.00437bf3
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4313ff
mov ecx, eax
call fcn.00428b60
jmp 0x431401
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5e74f8], eax
push 0
push 0
push 0x466
mov ecx, eax
call fcn.004762b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret

Function at 0x431460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b43f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5da2b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.00437bf3
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4314a7
mov ecx, eax
call fcn.0041ff00
jmp 0x4314a9
xor eax, eax
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4314c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x431440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x432031
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00432100
push 0
push 0x19
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x432056
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00432100
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00437c42
mov esp, ebp
pop ebp
ret

Function at 0x432070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4320e8
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4320c0
mov ecx, 0x15
lea eax, [ebp - 0x20c]
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.00432100
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437c42
mov esp, ebp
pop ebp
ret
Function at 0x4321f0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b541
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bf1c0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004bf1c0
add esp, 0x18
lea ecx, [ebp - 0x42c]
push 0x571908
call fcn.00431e30
push 0x571908
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.00431e30
push 0x571908
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.00431e30
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0
je 0x432298
push 0x17
jmp 0x43229a
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4322e9
push 0x5738f8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x5772cc
push eax
call fcn.0041ee30
sub esp, 8
lea eax, [ebp - 0x420]
mov ecx, esp
push eax
call fcn.0041ff90
mov ecx, esi
call fcn.004326a0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x424]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43230d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43232e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x432350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret 4

Function at 0x432370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call fcn.004321f0
push 1
mov ecx, esi
call fcn.004321f0
mov ecx, esi
call fcn.00431fe0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0xb
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4323d8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00432100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00432100
mov ecx, esi
call fcn.00432070
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00437c42
mov esp, ebp
pop ebp
ret
Function at 0x4324d0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004bf1c0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push edi
call ebx
test eax, eax
jne 0x4325d3
push edi
lea eax, [ebp - 0x20c]
push 0x572ea0
push eax
call fcn.0041ee30
lea eax, [ebp - 0x20c]
push str..del
push eax
call fcn.004bf4ae
add esp, 0x14
test eax, eax
je 0x432556
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret 4
push esi
xor esi, esi
nop dword [eax]
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x43257b
push edi
push str._s.del
push eax
call fcn.0041ee30
add esp, 0xc
jmp 0x43258b
push esi
push edi
push str._s.del_d
push eax
call fcn.0041ee30
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4325b1
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4325b1
cmp esi, 0xa
jg 0x4325d2
inc esi
jmp 0x432560
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004c7eb9
add esp, 8
lea eax, [ebp - 0x20c]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00437c42
mov esp, ebp
pop ebp
ret 4
Function at 0x432950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b5c8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5da2b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4329a8
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4329a0
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00422e00
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.004324d0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4329ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4329f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x432a05
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x432a46
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x432a42
nop word [eax + eax]
cmp esi, edx
jae 0x432a46
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x432a30
cmp esi, edx
jb 0x432a4b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x432a60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b5fb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bf1c0
push 0x571890
lea eax, [ebp - 0x218]
push str._sService
push eax
call fcn.0041ee30
add esp, 0x18
lea ecx, [ebp - 0x240]
call fcn.004440c4
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.004440f8
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x432ae6
push 0xf013f
jmp 0x432aeb
push 0xf003f
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432b20
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.004440d7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret