joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417581
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x41749a
xor esi, 0x12e17
pop esi
push esi
sub esi, 0x16b3
jmp 0x4174b0
pop esi
movzx ecx, word [ebp - 0x38]
test ecx, ecx
jne 0x4174ce
movzx edx, word [ebp - 0x1cc]
movzx eax, word [ebp - 0x38]
sub edx, eax
mov dword [ebp - 0x1648], edx
jmp 0x417528
movzx ecx, word [ebp - 0x1cc]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
je 0x4173f6
movzx eax, word [ebp - 0x1cc]
xor eax, 0x20
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x4173f6
movzx edx, word [ebp - 0x1cc]
movzx eax, word [ebp - 0x38]
cmp edx, eax
jge 0x417512
mov dword [ebp - 0x1644], 0xffffffff
jmp 0x41751c
mov dword [ebp - 0x1644], 1
mov ecx, dword [ebp - 0x1644]
mov dword [ebp - 0x1648], ecx
cmp dword [ebp - 0x1648], 0
jne 0x417571
push edi
jmp 0x417538
sub edi, 0x108df
xor edi, 0x1550e
and edi, 0x2650
pop edi
push ecx
call 0x417559
add byte [edx], bh
dec eax
cmp al, 0x37
inc ebx
cmp al, 0x48
add esp, 4
or ecx, 0x11866
pop ecx
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x784], edx
jmp 0x4175d9
push ecx
call 0x417581
add byte [eax], bh
xor eax, 0x3b41423b
cmp dword [edx], esi
add esp, 4
add ecx, 0x934a
and ecx, 0x10cf8
xor ecx, 0x154a5
pop ecx
push edx
push edi
add esp, 4
add edx, 0x14c43
pop edx
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x444]
cmp edx, dword [ebp - 0xcec]
je 0x4175cf
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x30], 0
jne 0x41739a
mov dword [ebp - 0x784], 0
push esi
push esi
add esp, 4
xor esi, 0x135b7
or esi, 0x158d1
pop esi
push edi
push ebx
add esp, 4
sub edi, 0x13e1a
or edi, 0xd0e7
pop edi
push edx
or edx, 0xd357
xor edx, 0x9155
pop edx
cmp dword [ebp - 0x784], 0
jne 0x417655
push ecx
sub ecx, 0x12e10
xor ecx, 0x135b1
pop ecx
push ecx
push edi
add esp, 4
add ecx, 0xfa0b
sub ecx, 0x4d8c
call 0x417642
add byte [edi], bh
dec ecx
inc esp
xor edi, dword [0x384c4844]
add esp, 4
pop ecx
mov dword [ebp - 0xa80], 0
jmp 0x41817d
push ebx
jmp 0x41765d
call 0x41766b
add byte [edx], dh
cmp al, 0x36
xor al, 0x45
inc edx
xor esi, dword [ebx + eax*4]
les eax, [ebx + ebx*2]
push ecx
push eax
add esp, 4
or ecx, 0x160a7
xor ecx, 0x1628
or ecx, 0x11365
pop ecx
mov ecx, dword [ebp - 0x784]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x39c], edx
mov dword [ebp - 0x794], 0
mov eax, dword [ebp - 0x39c]
mov dword [ebp - 0x164c], eax
cmp dword [ebp - 0x164c], 0
jne 0x4176c6
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x40c], ecx
jmp 0x4179b7
mov edx, dword [ebp - 0x164c]
mov eax, dword [ebp - 0x39c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x16a0], eax
jne 0x4176ee
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x40c], ecx
jmp 0x4179b7
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x16a0]
mov edx, dword [ecx + eax + 0x78]
invalid
xchg ebp, eax
Function at 0x41766b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x41749a
xor esi, 0x12e17
pop esi
push esi
sub esi, 0x16b3
jmp 0x4174b0
pop esi
movzx ecx, word [ebp - 0x38]
test ecx, ecx
jne 0x4174ce
movzx edx, word [ebp - 0x1cc]
movzx eax, word [ebp - 0x38]
sub edx, eax
mov dword [ebp - 0x1648], edx
jmp 0x417528
movzx ecx, word [ebp - 0x1cc]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
je 0x4173f6
movzx eax, word [ebp - 0x1cc]
xor eax, 0x20
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x4173f6
movzx edx, word [ebp - 0x1cc]
movzx eax, word [ebp - 0x38]
cmp edx, eax
jge 0x417512
mov dword [ebp - 0x1644], 0xffffffff
jmp 0x41751c
mov dword [ebp - 0x1644], 1
mov ecx, dword [ebp - 0x1644]
mov dword [ebp - 0x1648], ecx
cmp dword [ebp - 0x1648], 0
jne 0x417571
push edi
jmp 0x417538
sub edi, 0x108df
xor edi, 0x1550e
and edi, 0x2650
pop edi
push ecx
call 0x417559
add byte [edx], bh
dec eax
cmp al, 0x37
inc ebx
cmp al, 0x48
add esp, 4
or ecx, 0x11866
pop ecx
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x784], edx
jmp 0x4175d9
push ecx
call 0x417581
add byte [eax], bh
xor eax, 0x3b41423b
cmp dword [edx], esi
add esp, 4
add ecx, 0x934a
and ecx, 0x10cf8
xor ecx, 0x154a5
pop ecx
push edx
push edi
add esp, 4
add edx, 0x14c43
pop edx
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x444]
cmp edx, dword [ebp - 0xcec]
je 0x4175cf
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x30], 0
jne 0x41739a
mov dword [ebp - 0x784], 0
push esi
push esi
add esp, 4
xor esi, 0x135b7
or esi, 0x158d1
pop esi
push edi
push ebx
add esp, 4
sub edi, 0x13e1a
or edi, 0xd0e7
pop edi
push edx
or edx, 0xd357
xor edx, 0x9155
pop edx
cmp dword [ebp - 0x784], 0
jne 0x417655
push ecx
sub ecx, 0x12e10
xor ecx, 0x135b1
pop ecx
push ecx
push edi
add esp, 4
add ecx, 0xfa0b
sub ecx, 0x4d8c
call 0x417642
add byte [edi], bh
dec ecx
inc esp
xor edi, dword [0x384c4844]
add esp, 4
pop ecx
mov dword [ebp - 0xa80], 0
jmp 0x41817d
push ebx
jmp 0x41765d
call 0x41766b
add byte [edx], dh
cmp al, 0x36
xor al, 0x45
inc edx
xor esi, dword [ebx + eax*4]
les eax, [ebx + ebx*2]
push ecx
push eax
add esp, 4
or ecx, 0x160a7
xor ecx, 0x1628
or ecx, 0x11365
pop ecx
mov ecx, dword [ebp - 0x784]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x39c], edx
mov dword [ebp - 0x794], 0
mov eax, dword [ebp - 0x39c]
mov dword [ebp - 0x164c], eax
cmp dword [ebp - 0x164c], 0
jne 0x4176c6
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x40c], ecx
jmp 0x4179b7
mov edx, dword [ebp - 0x164c]
mov eax, dword [ebp - 0x39c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x16a0], eax
jne 0x4176ee
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x40c], ecx
jmp 0x4179b7
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x16a0]
mov edx, dword [ecx + eax + 0x78]
invalid
xchg ebp, eax
Function at 0x42a2a1
Capabilities:
Encode data using xor

Disassembly:
add bh, byte [esi]
push edx
inc ecx
cmp byte ss:[eax + 0x3f], al
test esi, eax
push es
pop edx
push ebx
push ebx
test esi, eax
push es
and ebx, 0xffffffad
add eax, 0xcb830203
call 0x8344a56c
jmp 0x42a297
inc edi
aas
cmp eax, 0x4f4e423b
aas
dec ecx
test esi, eax
mov byte [esi], 0xed
push es
cmp al, 0x38
dec ebx
aas
sub ebx, 0xfffffff0
in eax, dx
add al, byte [edx]
pop ebx
lea eax, [edi + 0x101f78e]
test edx, esp
add byte [ebx + 0x1ed1e87], cl
add dword [ebp + 0x55], edx
test esi, eax
push es
add ebp, 0x58
mov byte [0xed830202], al
dec esp
push ds
add eax, dword [edx]
xor ebp, 0xffffffa7
cwde
add al, byte [edx]
xor ebp, 9
adc eax, 0x545d0202
sub esp, 0xffffffc4
pop ebp
add eax, dword [edx]
sub esp, 0xffffff93
xor al, 3
add al, byte [ebx + 0x24a7ae4]
add bl, byte [ebp + ecx*4 - 0x71]
jle 0x42a2d6
add dword [ecx], eax
mov ecx, dword [edi + 0x101f792]
push ebp
in eax, dx
or byte [0x3b36443f], dh
dec esp
pop ebp
push esp
pop eax
test esi, eax
push es
in eax, dx
pop es
dec edx
cmp dword [ecx], edi
dec ebp
dec eax
add esp, 0x5f
cmp byte [edx], al
add bl, byte [esp + edx*2 - 0x7d]
hlt

Function at 0x43ab72
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d3a4e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x43abab
mov eax, dword [eax + 4]
jmp 0x43abae
add eax, 4
push eax
lea esi, [esp + 0x30]
call fcn.0044054d
and dword [esp + 0x48], 0
push 3
pop eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0xe
mov byte [esp + 0x48], 1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x48], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a4]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push edx
push edx
lea edx, [esp + 0x28]
push edx
mov edx, esi
push edx
push eax
call dword [ecx + 0xd0]
test eax, eax
setge bl
mov byte [esp + 0x48], 1
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call esi
mov byte [esp + 0x48], 0
lea eax, [esp + 0x1c]
push eax
call esi
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call esi
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444494
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x4d162b
call fcn.004b8732
mov edi, ecx
call fcn.00444440
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x4444de
or dword [ebp - 4], eax
push eax
jmp 0x444563
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00444a35
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x44454b
cmp dword [ebp - 0x14], ebx
je 0x44454b
push dword [ebp - 0x14]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, edi
call dword [eax + 8]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], bl
push dword [ebp - 0x10]
call fcn.004b3fe5
pop ecx
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x444546
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
mov al, byte [ebp + 0xb]
jmp 0x44456e
mov byte [ebp - 4], bl
push dword [ebp - 0x10]
call fcn.004b3fe5
pop ecx
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x44456c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
xor al, al
call fcn.004b880a
ret 4

Function at 0x448869
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x448877
push 0xd
pop eax
jmp 0x4488aa
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x44887e
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44e780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4c53
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
mov dword [esp + 0x14], 1
push esi
call fcn.004b0390
add esp, 4
mov byte [esp + 0x14], 0
cmp dword [esi + 0x30], 0x10
jb 0x44e7d6
mov eax, dword [esi + 0x1c]
push eax
call fcn.004b1fa3
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x458640
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
call fcn.004b38eb
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0x10]
push 0
push esi
push 0x458690
push 0
push 0
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x458680
push esi
call fcn.004b1fa3
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x4593c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4df171
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x14]
push eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x18], 0x2a
call fcn.004097d9
cmp eax, 0xffffffff
jne 0x45943b
cmp dword [esi + 0x18], 8
jb 0x45942c
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x459566
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x459566
xor ebx, ebx
mov ecx, 0x5c
mov word [esp + 0x470], cx
mov dword [esp + 0x474], ebx
mov dword [esp + 0x478], ebx
mov dword [esp + 0x488], ebx
cmp dword [esi + 0x18], 8
jb 0x45946a
mov eax, dword [esi + 4]
jmp 0x45946d
lea eax, [esi + 4]
lea esi, [esp + 0x18]
call fcn.0045a5f0
cmp eax, ebx
je 0x459536
mov eax, dword [esp + 0x478]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x4594c4
mov ecx, dword [esp + 0x18]
shr ecx, 4
and ecx, 1
je 0x4594c0
cmp word [esp + 0x44], 0x2e
jne 0x4594c0
mov dx, word [esp + 0x46]
cmp dx, bx
je 0x459510
cmp dx, 0x2e
jne 0x4594c0
cmp word [esp + 0x48], bx
je 0x459510
cmp ecx, ebx
jne 0x459510
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0045a2e0
mov byte [esp + 0x488], 1
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov byte [esp + 0x488], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459509
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x478]
mov ecx, dword [esp + 0x474]
cmp ecx, ebx
je 0x459536
cmp eax, ebx
je 0x459536
lea edx, [esp + 0x18]
push edx
push ecx
call edi
mov dword [esp + 0x478], eax
cmp eax, ebx
jne 0x459495
mov dword [esp + 0x488], 0xffffffff
mov eax, dword [esp + 0x474]
mov dword [esp + 0x478], ebx
cmp eax, ebx
je 0x459566
cmp eax, 0xffffffff
je 0x459566
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x474], ebx
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.004b1fae
add esp, 0x47c
ret
Function at 0x459650
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
mov ebx, dword [esi + 0x28]
add esi, 0x18
push edi
cmp dword [esi + 0xc], ebx
jbe 0x459669
call fcn.004b3cb3
mov edi, dword [esi]
mov ebp, ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x14], ebx
cmp ebx, dword [esi + 0x10]
jbe 0x45967e
call fcn.004b3cb3
mov eax, dword [esi]
mov dword [esp + 0x18], eax
test edi, edi
je 0x45968e
cmp edi, dword [esp + 0x18]
je 0x459693
call fcn.004b3cb3
cmp ebp, ebx
je 0x459706
mov dword [esp + 0x24], ebp
test edi, edi
jne 0x4596d3
call fcn.004b3cb3
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x4596b0
call fcn.004b3cb3
lea ebx, [ebp - 0x1c]
test edi, edi
jne 0x4596d7
call fcn.004b3cb3
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4596c8
call fcn.004b3cb3
cmp dword [ebx + 0x18], 8
jb 0x4596db
mov eax, dword [ebx + 4]
jmp 0x4596de
mov eax, dword [edi]
jmp 0x4596a6
mov eax, dword [edi]
jmp 0x4596be
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test edi, edi
jne 0x459702
call fcn.004b3cb3
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x4596fa
call fcn.004b3cb3
mov ebp, ebx
mov ebx, dword [esp + 0x14]
jmp 0x459684
mov eax, dword [edi]
jmp 0x4596f0
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x459713
call fcn.004b3cb3
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x459722
call fcn.004b3cb3
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00459940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x45aef0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d9f4c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
push 1
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.0045bef0
mov dword [esp + 0x54], 1
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
sar ecx, 1
jne 0x45af45
call fcn.004b3cb3
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edx
push ebx
call esi
inc eax
lea ecx, [esp + 0x14]
call fcn.0045c010
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, eax
sub edx, ecx
sar edx, 1
jne 0x45af7a
call fcn.004b3cb3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
push ecx
push eax
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub ecx, edx
sar ecx, 1
cmp eax, ecx
jbe 0x45afae
push edi
call fcn.0045a7c0
mov dword [esp + 0x10], 1
mov byte [esp + 0x54], bl
lea eax, [esp + 0x14]
push eax
jmp 0x45b030
cmp ecx, ebx
ja 0x45afbb
call fcn.004b3cb3
mov edx, dword [esp + 0x20]
xor ecx, ecx
push edx
mov esi, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
call fcn.004b3950
add esp, 4
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.004042b1
mov byte [esp + 0x54], 2
push edi
lea ecx, [esp + 0x30]
call fcn.0045a890
mov dword [esp + 0x10], 1
mov byte [esp + 0x54], 1
cmp dword [esp + 0x44], 8
jb 0x45b014
mov edx, dword [esp + 0x30]
push edx
call fcn.004b1fa3
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.0045d050
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x45b050
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4dce03
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
mov dword [esp + 0x38], edi
mov esi, ecx
mov dword [esp + 0x18], ebx
call fcn.0045aef0
add esp, 4
mov dword [esp + 0x26c], 1
mov ebp, 8
cmp dword [esi + 0x18], ebp
jb 0x45b0bd
mov esi, dword [esi + 4]
jmp 0x45b0c0
add esi, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x45b0ce
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp byte [esp + 0x274], bl
je 0x45b0f0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x54]
xor eax, eax
mov esi, 7
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.004b3950
add esp, 4
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
call fcn.004042b1
mov byte [esp + 0x26c], 2
push edi
lea ecx, [esp + 0x1c]
call fcn.0045a890
mov dword [esp + 0x14], 1
mov byte [esp + 0x26c], 1
cmp dword [esp + 0x30], ebp
jb 0x45b155
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b1fa3
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x26c], ebx
cmp dword [esp + 0x50], ebp
jb 0x45b17e
mov edx, dword [esp + 0x3c]
push edx
call fcn.004b1fa3
add esp, 4
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov eax, edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004b1fae
add esp, 0x260
ret
Function at 0x45c890
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4d57b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov dword [esp + 0x2c8], 0
mov edx, dword [esp + 0x2d0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x45c906
mov eax, 0x104
lea ecx, [esp + 0x2d0]
call fcn.004028d0
mov edx, dword [esp + 0x2d0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esp + 0x2d0]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004b200e
add esp, 8
test eax, eax
jl 0x45c9c3
mov ecx, dword [esp + 0x2d0]
cmp eax, dword [ecx - 8]
jg 0x45c9c3
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x2d0]
push 0x4013
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [esp + 0x2d4]
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0x10
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c8], 0xffffffff
mov eax, dword [esp + 0x2d0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45c99a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004b1fae
add esp, 0x2c4
ret 4
push 0x80070057
call fcn.00402a1f
int3

Function at 0x45df60
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov ebx, ecx
call fcn.0045e110
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x45df7d
mov edi, dword [edi + 4]
jmp 0x45df80
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x45df8a
mov ebx, dword [ebx + 4]
jmp 0x45df8d
add ebx, 4
test edi, edi
je 0x45dfac
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret
Function at 0x45f270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4df058
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45f2df
mov edx, dword [0x52702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52702c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x45f35a
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x45f2f2
mov ecx, 0x5c
mov word [esp + eax*2 + 0x10], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x10], dx
mov eax, dword [0x52702c]
mov edx, dword [eax + 0xc]
mov ecx, 0x52702c
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x224], 2
lea eax, [esp + 0x10]
test eax, 0xffff0000
jne 0x45f340
mov ecx, eax
movzx edi, cx
push edi
call fcn.004051ff
add esp, 4
test eax, eax
je 0x45f35a
push edi
push eax
mov eax, esi
call fcn.0040534d
jmp 0x45f35a
lea edx, [esp + 0x10]
push edx
call fcn.004b3950
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.0040541c
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b1fae
add esp, 0x220
ret