joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.0053c7b0
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0053c7b0
push esi
push 0x5afdfc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00452070
add esp, 0x28
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x210]
push eax
push str.BiscuitZip
push 0x5ae4e4
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00452070
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0053c7b0
lea eax, [ebp - 0x210]
push eax
push str.SoftwareClasses_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00452070
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push eax
push SysReAllocString
call fcn.00461930
push 0x20a
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.0053c7b0
add esp, 0x48
lea eax, [ebp - 0x210]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea eax, [ebp - 0x834]
push 0x104
push eax
call fcn.00452070
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x834]
push eax
push SysReAllocString
call fcn.00461930
lea eax, [ebp - 0x210]
mov dword [ebp - 0x838], 0
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.00461450
push 0x104
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.0053c7b0
add esp, 0x30
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x840], 0
push eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x83c], 0x104
push eax
lea eax, [ebp - 0x840]
push eax
push str.ProgId
push dword [ebp - 0x838]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edx, dword [ebp - 0x838]
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
test bl, bl
pop ebx
je 0x461c0e
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00460fd0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
Function at 0x461f60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x604654]
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 esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push 0x80
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x90]
push 0
push eax
mov byte [ebp - 0x139], 0
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x90]
push dword [esi]
push 0x3f
push eax
push edi
push dword [ebp - 0x140]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x90], 0
je 0x4620a0
push 0xa8
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
mov dword [ebp - 0x14c], 0
xor eax, eax
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462030
sub eax, edx
lea ecx, [ebp - 0x15c]
sar eax, 1
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00413b10
push 1
push 1
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x138]
call fcn.004278c0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 2
call fcn.0040c130
push dword [ebp - 0x144]
lea ecx, [ebp - 0x138]
call fcn.0041d570
lea ecx, [ebp - 0x138]
mov bl, 1
call fcn.00411690
mov al, bl
jmp 0x4620a6
mov al, byte [ebp - 0x139]
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.004a408b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x465e00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004a40a0
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x5ab0c0]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x3ffe
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x465f03
test edi, edi
je 0x465f03
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x465f03
cmp eax, 0x3fff
ja 0x465f03
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x465f03
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5aab8c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x465f03
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0053c7b0
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00466090
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret

Function at 0x466120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4661a7
test ebx, ebx
je 0x4661a7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4661a7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4661a7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4661a1
push esi
push ebx
push edi
call fcn.0053bcb0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4661a1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a408b
mov esp, ebp
pop ebp
ret
Function at 0x469540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a739
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x604654]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469777
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x469590
mov eax, dword [esi]
push 0x20c
mov dword [esi + 0x10], 0
mov byte [eax], 0
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea ecx, [ebp - 0x250]
push str.GlobalAC454859_1E9A_4271_AFBD_E0178FE4F454_BISCUITZIP_USERINFO
call fcn.0045f9e0
push 0xa
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.0045faa0
xor ebx, ebx
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov ecx, edi
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469600
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00413b10
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004718f0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040c130
cmp dword [ebp - 0x34], 0
je 0x469706
lea eax, [ebp - 0x254]
push eax
call fcn.0040d330
add esp, 4
push dword [eax]
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 4
call fcn.004674f0
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469680
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00434740
mov eax, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2d4]
cmp eax, ecx
je 0x4696ac
push eax
call fcn.00549bd1
add esp, 4
mov edx, dword [ebp - 0x254]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4696ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x4696e3
push 0x20
push str.89F91A98B0DF4A1C8E5FA022201E3CCA
lea ecx, [ebp - 0x2c]
call fcn.00434740
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a21a0
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.00410f80
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x46973a
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x469730
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x469795
push edx
push ecx
call fcn.004a3dd5
add esp, 8
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.0045fe00
lea ecx, [ebp - 0x250]
call fcn.0045fa80
mov eax, ebx
jmp 0x469779
xor eax, eax
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.004a408b
mov esp, ebp
pop ebp
ret
call fcn.0053fae3
int3
Function at 0x46e2e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b030
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x604654]
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 esi, ecx
mov dword [ebp - 0x2c], esi
push 1
call fcn.004a63c0
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push 0
push 1
push eax
lea ebx, [esi + 0x30]
call fcn.004a7310
add esp, 4
mov ecx, ebx
push eax
call fcn.004ad390
push ebx
mov ecx, esi
call fcn.00492e70
push str.logout_layout
mov ecx, ebx
call fcn.004a8b70
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x114]
call fcn.0042ca50
mov ecx, eax
call fcn.0046a0a0
push eax
mov ecx, edi
call esi
push str.bind_layout
mov ecx, ebx
call fcn.004a8b70
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x114]
call fcn.0042ca50
mov ecx, eax
call fcn.0046a0b0
push eax
mov ecx, edi
call esi
push str.username
mov ecx, ebx
call fcn.004a8b70
mov esi, eax
mov ecx, dword [esi]
mov edi, dword [ecx + 0x30]
call fcn.0042ca50
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00469d70
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46e3be
mov eax, dword [eax]
push eax
mov ecx, esi
call edi
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46e404
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e3fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e4cd
push edx
push ecx
call fcn.004a3dd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
push str.head
mov ecx, ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004a8b70
mov esi, eax
call fcn.0042ca50
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00469290
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e466
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b2e20
call fcn.0042ca50
mov ecx, eax
call fcn.0046a000
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.0046e640
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46e4b1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e4a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e4d2
push edx
push ecx
call fcn.004a3dd5
add esp, 8
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.004a408b
mov esp, ebp
pop ebp
ret
call fcn.0053fae3
call fcn.0053fae3
int3
Function at 0x46ed30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x68
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x9c]
push 0
push eax
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xc], xmm0
call fcn.0053c7b0
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0045ffa0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push esi
push edi
push eax
call fcn.0045fff0
lea eax, [ebp - 0x9c]
push eax
call fcn.0045fe10
movups xmm0, xmmword [ebp - 0x44]
push 0x20
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0xc4], xmm0
push esi
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00498e40
push 0x400
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.0053c7b0
mov eax, esi
add esp, 0x40
and al, 4
cmp al, 1
sbb eax, eax
shr esi, 2
neg eax
lea ebx, [esi - 1]
add ebx, eax
cmp ebx, 1
jbe 0x46ef36
test bl, 1
jne 0x46ef36
lea ecx, [ebp - 0x4c4]
dec eax
push ecx
lea ecx, [ebp - 0xc4]
add eax, esi
push ecx
push eax
push edi
call fcn.0046e980
add esp, 0x10
test al, al
je 0x46ef36
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0046eb40
add esp, 0x10
test al, al
je 0x46ef36
mov eax, dword [ebp - 0x4c4]
xor eax, dword [ebp - 0x4bc]
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c0]
xor eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
add edi, 4
mov dl, byte [ebp + eax - 0x14]
lea ecx, [eax + 1]
cmp ecx, 8
jb 0x46ee84
xor bh, bh
jmp 0x46ee88
mov bh, byte [ebp + eax - 0x13]
cmp ecx, 8
sbb ecx, ecx
neg ecx
inc ecx
add eax, ecx
cmp eax, 8
jb 0x46ee9b
xor bl, bl
jmp 0x46eea0
mov bl, byte [ebp + eax - 0x14]
inc eax
movzx edx, dl
mov ecx, edx
movzx esi, bh
shr ecx, 2
and edx, 3
shl edx, 4
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edi - 4], cx
mov ecx, esi
shr ecx, 4
and esi, 0xf
or ecx, edx
shl esi, 2
movzx edx, bl
mov ebx, dword [ebp - 0xa0]
add ebx, 4
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edi - 2], cx
mov ecx, edx
shr ecx, 6
and edx, 0x3f
or esi, ecx
mov dword [ebp - 0xa0], ebx
movzx ecx, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edi], cx
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edi + 2], cx
add edi, 8
cmp eax, 8
jb 0x46ee74
mov eax, dword [ebp - 0xa4]
pop edi
pop esi
mov dword [eax + ebx*2 - 2], 0x3d
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a408b
mov esp, ebp
pop ebp
ret
Function at 0x470410
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x610790], 0
push esi
jne 0x470504
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BiscuitZip
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470490
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4704b6
sub eax, edx
lea ecx, [ebp - 0x224]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00413b10
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push esi
cmovae eax, dword [ebp - 0x224]
push eax
push 0x610790
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x224]
call fcn.0040c130
mov ecx, dword [ebp - 4]
mov eax, 0x610790
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret
Function at 0x470520
Capabilities:
Create directory
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00473fb0
add esp, 4
test al, al
je 0x470557
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
mov esi, dword [edi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x470697
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x470590
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x470590
cmp eax, 0x50
je 0x470590
cmp eax, 0xb7
jne 0x470697
push ecx
mov esi, esp
mov dword [ebp - 8], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00417940
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00451c60
add esp, 4
test eax, eax
jne 0x4705ca
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x470685
mov ecx, dword [edi]
cmp dword [ecx - 0xc], eax
jl 0x4706ac
mov eax, dword [0x5ae948]
mov dword [ebp - 0xc], eax
mov eax, dword [0x5ae94c]
mov dword [ebp - 8], eax
mov ax, word [ecx]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x470615
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
jmp 0x470660
lea eax, [ebp - 0xc]
push eax
call fcn.00473630
add esp, 4
xorps xmm0, xmm0
test eax, eax
je 0x47062f
movlpd qword [ebp - 0xc], xmm0
jmp 0x470660
lea eax, [ebp - 0x14]
movlpd qword [ebp - 0x14], xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x470654
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
jmp 0x470660
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
ja 0x470685
jb 0x470670
cmp dword [ebp - 0xc], eax
jae 0x470685
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040c4f0
int3
Function at 0x4706c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b348
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi - 0xc], 0
je 0x4707f8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4707de
mov esi, dword [ebp + 8]
test esi, esi
je 0x4707f8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4707f5
push 0x250
lea eax, [ebp - 0x684]
push 0
push eax
call fcn.0053c7b0
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0053c7b0
add esp, 0x18
lea eax, [ebp - 0x220]
push 0x5b2558
cmp eax, esi
jne 0x47076a
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x470772
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4707f5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x210
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x108
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x684]
push eax
push 0
push 0x81
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x431]
push eax
call fcn.004766d0
jmp 0x4707f5
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x470810
mov ecx, dword [esi]
push esi
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.004a408b
mov esp, ebp
pop ebp
ret 4
Function at 0x471340
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b410
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x604654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040c960
mov ecx, eax
test ecx, ecx
je 0x4714d1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push 0x5b2798
xor edi, edi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0x14]
push dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
sub edx, dword [ebp + 8]
movaps xmm0, xmmword [0x5b2800]
sar edx, 2
mov dword [ebp - 0x30], 0x14
movups xmmword [ebp - 0x2c], xmm0
test edx, edx
je 0x471401
mov esi, dword [ebp + 8]
nop word [eax + eax]
mov eax, dword [esi + ecx*4]
inc edi
inc ecx
mov eax, dword [eax - 0xc]
add edi, eax
cmp ecx, edx
jb 0x4713f0
mov esi, dword [ebp - 0x10]
lea eax, [edi*2 + 0x32]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movups xmm0, xmmword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
lea edi, [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
sar eax, 2
test eax, eax
je 0x47146b
xor esi, esi
nop
push dword [edx + esi*4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push edi
call fcn.0053cc37
mov ecx, dword [ebp + 0xc]
inc esi
mov edx, dword [ebp + 8]
add esp, 8
sub ecx, edx
sar ecx, 2
lea edi, [eax + 2]
cmp esi, ecx
jb 0x471440
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4714a0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4714b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 8]
call fcn.00428f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040c4f0
int3