joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450025
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45013d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45013d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00464f4f
mov esi, eax
test esi, esi
je 0x45013d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45013d
mov ecx, esi
call fcn.0044ff90
cmp edi, eax
jge 0x45013d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4500c3
mov dword [esp + 0x34], 1
jmp 0x45011e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45013d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044f550
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4658f3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46592b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004639a7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046397f
jmp 0x465937
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466fe5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467027
call fcn.0046cad8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467027
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46701e
xor eax, eax
jmp 0x46702f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467035
pop edi
pop esi
pop ebx
ret 4
Function at 0x46d008
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d036
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d054
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cf6e
jmp 0x46d054
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d054
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cf6e
test edi, edi
mov eax, edi
jne 0x46d03e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402b3a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.0046b7e0
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4014]
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x4000
and dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov esi, dword [esi + 4]
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_GetTickCount
and dword [ebp - 0xc], 0
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
jmp 0x402b84
mov esi, dword [ebp - 4]
cmp ebx, esi
jge 0x402bc8
cmp dword [edi + 4], 0
ja 0x402bc8
lea eax, [ebp - 0x14]
sub esi, ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
push ebx
mov dword [edi + 4], esi
call fcn.0042b787
add ebx, esi
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp ebx, dword [ebp - 4]
push 3
pop ecx
cmovge eax, ecx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
jmp 0x402bcb
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.0046cb00
mov esi, eax
pop ecx
pop ecx
cmp esi, 5
je 0x402c80
cmp esi, 7
je 0x402c80
cmp esi, 8
jle 0x402bf6
cmp esi, 0xb
jle 0x402c80
cmp dword [edi + 0x14], 0
jbe 0x402c01
cmp esi, 1
jne 0x402c39
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x4014]
mov ebx, 0x4000
sub ebx, dword [edi + 0x14]
push ebx
mov eax, dword [ecx]
push edx
mov eax, dword [eax]
call eax
test al, al
je 0x402c80
add dword [ebp - 0xc], ebx
lea eax, [ebp - 0x4014]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x4000
cmp esi, 1
je 0x402c8e
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 4]
je 0x402b84
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
push esi
push dword [ebp - 0x10]
call fcn.00458a38
pop ecx
pop ecx
cmp eax, 0xc8
jbe 0x402b81
mov eax, dword [ebp - 0xc]
shl eax, 3
push eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 4]
push esi
push ebx
call dword [ebp + 0x14]
add esp, 0xc
test al, al
je 0x402b84
push edi
call fcn.0046cdb0
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.0046cdb0
mov al, 1
jmp 0x402c88

Function at 0x403081
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x4030df
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0x70b
jne 0x4030df
cmp dword [eax + 0xc], 0x202
jne 0x4030df
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.004037e6
add esp, 0x10
mov eax, 0x49bb64
cmp dword [ebp - 0xc], 0
cmovne eax, dword [ebp - 0xc]
xor ecx, ecx
push 5
push ecx
push ecx
push eax
push 0x49bf30
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xc]
call fcn.00426428
leave
ret
Function at 0x409aeb
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x49a093
call fcn.0046b790
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x88]
push eax
call fcn.0042a315
add esp, 0xc
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x5c], 1
xor eax, eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x1c]
call fcn.00428af1
lea eax, [ebp - 0x34]
push eax
call fcn.0044159e
mov esi, 0x49bb64
mov ecx, esi
cmp dword [eax], edi
cmovne ecx, dword [eax]
push edi
push 0x49f168
push ecx
push 0x49f170
lea eax, [ebp - 0x1c]
push eax
call fcn.0042f92c
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00426428
lea ecx, [ebp - 0x28]
call fcn.00428af1
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.0044611a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00425696
lea ecx, [ebp - 0x34]
call fcn.00426428
lea eax, [ebp - 0x28]
push eax
push 0x49f174
lea ecx, [ebp - 0x1c]
call fcn.0042463a
push 0x200
lea ecx, [ebp - 0x1c]
call fcn.00423ca3
cmp dword [ebp - 0x1c], edi
cmovne esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push edi
push 0x10
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409bf5
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x44]
call esi
lea ecx, [ebp - 0x28]
call fcn.00426428
lea ecx, [ebp - 0x1c]
call fcn.00426428
mov al, 1
jmp 0x409c2d
push edi
push edi
push edi
push dword [ebp + 8]
push 0x49bf30
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setge bl
lea ecx, [ebp - 0x28]
call fcn.00426428
lea ecx, [ebp - 0x1c]
call fcn.00426428
mov al, bl
jmp 0x409c2d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c19f
Capabilities:
Terminate process

Disassembly:
mov eax, 0x49a0b1
call fcn.0046b790
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00409e2c
mov eax, dword [0x4dde94]
test eax, eax
je 0x40c1df
push 6
push eax
call fcn.00463fbd
push dword [0x4dde94]
call fcn.0046397c
add esp, 0xc
mov dword [0x4dde94], esi
call fcn.00464372
call fcn.0040e8d0
mov ecx, dword [0x4ddf0c]
test ecx, ecx
je 0x40c217
push esi
push 1
call fcn.00468ab8
mov ecx, dword [0x4ddf0c]
call fcn.00468e9b
mov ecx, dword [0x4ddf0c]
call fcn.00467c69
mov dword [0x4ddf0c], esi
call fcn.00412682
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x422ed9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
push dword [esi]
call fcn.004271e3
push dword [esi + 4]
mov ebx, eax
call fcn.004271e3
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
add edi, 0x44
mov dword [ebp - 8], 8
xor ebx, dword [edi]
lea edi, [edi - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
mov esi, dword [edi + 4]
shr ecx, 0x18
mov edx, dword [edx + eax*4 + 0x448]
mov eax, dword [ebp - 4]
add edx, dword [eax + ecx*4 + 0x48]
mov eax, ebx
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
xor edx, dword [ecx + eax*4 + 0x848]
movzx eax, bl
add edx, dword [ecx + eax*4 + 0xc48]
mov ecx, dword [ebp + 0xc]
xor edx, esi
mov esi, dword [ebp - 4]
xor ecx, edx
mov eax, ecx
mov dword [ebp + 0xc], ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x448]
add edx, dword [esi + ecx*4 + 0x48]
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x848]
movzx eax, cl
add edx, dword [esi + eax*4 + 0xc48]
xor ebx, edx
sub dword [ebp - 8], 1
jne 0x422f09
mov eax, dword [edi]
xor eax, ebx
push eax
call fcn.004271e3
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [edi - 4]
xor eax, dword [ebp + 0xc]
push eax
call fcn.004271e3
pop ecx
pop ecx
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret 8

Function at 0x423044
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push dword [esi]
call fcn.004271e3
push dword [esi + 4]
mov ebx, eax
call fcn.004271e3
pop ecx
lea edx, [edi + 0x48]
mov dword [ebp - 4], eax
pop ecx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], 8
xor ebx, dword [edi]
lea edi, [edi + 8]
mov esi, dword [edi - 4]
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [edx + eax*4 + 0x400]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + ecx*4]
mov eax, ebx
mov ecx, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
xor edx, dword [ecx + eax*4 + 0x800]
movzx eax, bl
add edx, dword [ecx + eax*4 + 0xc00]
mov ecx, dword [ebp - 4]
xor edx, esi
mov esi, dword [ebp + 0xc]
xor ecx, edx
mov eax, ecx
mov dword [ebp - 4], ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x400]
add edx, dword [esi + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x800]
movzx eax, cl
add edx, dword [esi + eax*4 + 0xc00]
xor ebx, edx
sub dword [ebp - 8], 1
mov edx, esi
jne 0x423074
mov eax, dword [edi]
xor eax, ebx
push eax
call fcn.004271e3
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
xor eax, dword [ebp - 4]
push eax
call fcn.004271e3
pop ecx
pop ecx
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret 8
Function at 0x423139
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push edi
call fcn.00422e84
pop ecx
test al, al
je 0x423209
push ebx
push 0x48
push 0x4a1d88
lea ebx, [esi + 0x48]
push esi
mov dword [ebp + 0xc], ebx
call fcn.0042a2ac
push 0x1000
push 0x4a1dd0
push ebx
call fcn.0042a2ac
add esp, 0x18
sar edi, 5
xor ecx, ecx
mov eax, ecx
mov ebx, dword [ebp + 8]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [esi + ecx*4], eax
inc ecx
cmp ecx, 0x12
jl 0x423180
and dword [ebp - 4], 0
mov edi, esi
and dword [ebp - 8], 0
push 9
pop ebx
lea eax, [ebp - 8]
mov ecx, esi
push eax
push eax
call fcn.00423044
push dword [ebp - 8]
call fcn.004271e3
push dword [ebp - 4]
mov dword [edi], eax
call fcn.004271e3
mov dword [edi + 4], eax
lea edi, [edi + 8]
pop ecx
pop ecx
sub ebx, 1
jne 0x4231a1
mov ebx, dword [ebp + 0xc]
mov edi, 0x200
lea eax, [ebp - 8]
mov ecx, esi
push eax
push eax
call fcn.00423044
push dword [ebp - 8]
call fcn.004271e3
push dword [ebp - 4]
mov dword [ebx], eax
call fcn.004271e3
mov dword [ebx + 4], eax
lea ebx, [ebx + 8]
pop ecx
pop ecx
sub edi, 1
jne 0x4231d4
mov ecx, esi
call fcn.00423125
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x4319fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x431bc2
mov eax, dword [esi]
test eax, eax
je 0x431bc2
test byte [ebp + 0xc], 1
push edi
mov edi, eax
je 0x431a3b
movzx eax, word [eax]
jmp 0x431a30
add dword [esi], 2
mov edi, dword [esi]
movzx eax, word [edi]
push eax
call fcn.00425240
pop ecx
test al, al
jne 0x431a28
xor eax, eax
test byte [ebp + 0xc], 4
mov dword [ebp - 8], eax
mov byte [ebp + 0xb], al
mov eax, edi
mov dword [ebp - 4], eax
jne 0x431a88
movzx ecx, word [edi]
mov dword [ebp - 4], eax
sub ecx, 0x2b
je 0x431a63
dec ecx
sub ecx, 1
jne 0x431a88
mov byte [ebp + 0xb], 1
add edi, 2
test byte [ebp + 0xc], 0x40
mov eax, edi
mov dword [esi], edi
mov dword [ebp - 4], eax
je 0x431a88
push 0x20
pop ecx
cmp word [edi], cx
jmp 0x431a83
add dword [esi], 2
mov eax, dword [esi]
cmp word [eax], cx
mov dword [ebp - 4], eax
je 0x431a7b
xorps xmm1, xmm1
movsd qword [ebp - 0x1c], xmm1
movzx eax, word [eax]
mov ecx, eax
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 0x10], ecx
mov edi, eax
call fcn.00425088
pop ecx
test al, al
je 0x431ad5
movd xmm0, dword [ebp - 0xc]
movsd xmm1, qword [ebp - 0x1c]
mulsd xmm1, qword [0x4a36e0]
mov byte [ebp - 8], 1
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
subsd xmm1, qword [0x4a36f0]
movsd qword [ebp - 0x1c], xmm1
jmp 0x431ae8
push 0x2e
pop ecx
cmp di, cx
je 0x431af5
cmp edi, 0x2c
jne 0x431af9
test byte [ebp + 0xc], 0x20
je 0x431af9
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov dword [esi], eax
jmp 0x431a90
mov al, 1
jmp 0x431afc
mov eax, dword [ebp - 8]
pop edi
test al, al
jne 0x431b21
test byte [ebp + 0xc], 8
je 0x431b11
movsd xmm0, qword [str.v_w0]
jmp 0x431b14
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
jmp 0x431bdd
cmp word [ebp - 0x10], cx
jne 0x431b7f
mov eax, dword [ebp - 4]
movsd xmm0, qword [0x4a36e0]
add eax, 2
movsd qword [ebp - 0x14], xmm0
jmp 0x431b6f
mov ecx, dword [esi]
movsd xmm2, qword [ebp - 0x14]
movzx eax, word [ecx]
sub eax, 0x30
movd xmm0, eax
lea eax, [ecx + 2]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm2
mulsd xmm2, qword [0x4a36e0]
addsd xmm0, qword [ebp - 0x1c]
movsd qword [ebp - 0x14], xmm2
movsd qword [ebp - 0x1c], xmm0
mov dword [esi], eax
movzx eax, word [eax]
push eax
call fcn.00425088
pop ecx
test al, al
jne 0x431b3c
test byte [ebp + 0xc], 2
je 0x431b9a
jmp 0x431b8a
add dword [esi], 2
mov eax, dword [esi]
movzx eax, word [eax]
push eax
call fcn.00425240
pop ecx
test al, al
jne 0x431b87
cmp byte [ebp + 0xb], 0
je 0x431bb3
movsd xmm0, qword [ebp - 0x1c]
xorps xmm0, xmmword [0x4a2e00]
movsd qword [ebp - 0x1c], xmm0
jmp 0x431bbd
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x1c], xmm1
fld qword [ebp - 0x1c]
jmp 0x431bdd
test byte [ebp + 0xc], 8
je 0x431bd2
movsd xmm0, qword [str.v_w0]
jmp 0x431bd5
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
pop esi
leave
ret
Function at 0x4326e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 4]
mov eax, edi
mov esi, dword [ebx]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x43270d
xor dword [esi], ecx
add esi, 4
dec eax
test eax, eax
jg 0x432700
mov edi, dword [ebx + 4]
and edi, 3
sub edi, 1
je 0x432728
sub edi, 1
je 0x432725
sub edi, 1
jne 0x43272a
mov al, byte [ebp + 0xa]
xor byte [esi + 2], al
xor byte [esi + 1], ch
xor byte [esi], cl
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x43410a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43418f
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x43417d
push 0x400
lea eax, [ebp - 0x404]
mov byte [ebp - 0x404], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0047fef0
pop ecx
pop ecx
mov ecx, eax
lea eax, [ebp - 0x404]
cmp ecx, eax
jbe 0x43417d
cmp byte [ecx - 1], 0x5c
je 0x434163
mov byte [ecx], 0x5c
inc ecx
lea eax, [ebp - 4]
push esi
sub eax, ecx
push eax
push ecx
call fcn.0048cd68
add esp, 0xc
test eax, eax
jne 0x43418f
lea esi, [ebp - 0x404]
and ebx, 4
shl ebx, 3
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x434191
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x441e96
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
and eax, 0xfffffffe
push ebx
cmp eax, 6
jg 0x441eb9
push 0xa1
call fcn.00458880
xor bl, bl
jmp 0x441f5b
xor ebx, ebx
test byte [ebp + 0x14], 1
push esi
mov esi, 0x49bb64
jne 0x441f29
cmp dword [ebp + 8], ebx
mov eax, esi
push str.thumbs.db
cmovne eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444edd
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.00443fe4
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00426428
cmp dword [ebp + 8], ebx
mov eax, esi
push str.desktop.ini
cmovne eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444edd
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.00443fe4
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00426428
push 0x5c
lea ecx, [ebp + 8]
call fcn.00426f88
cmp dword [ebp + 8], ebx
cmovne esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
test eax, eax
je 0x441f4a
mov bl, 1
jmp 0x441f5c
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x441f5c
push 3
call fcn.00458880
pop ecx
lea ecx, [ebp + 8]
call fcn.00426428
mov al, bl
pop ebx
leave
ret

Function at 0x442a5f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
call fcn.00442a19
pop ecx
test al, al
je 0x442b59
mov al, byte [esi]
xor ebx, ebx
mov byte [ebp + 8], al
lea eax, [ebp - 4]
push eax
push str.GetDiskFreeSpaceExA
mov word [ebp + 9], 0x5c3a
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
call fcn.0043407d
push eax
call fcn.00434095
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x442afb
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 8]
push ecx
call eax
test eax, eax
je 0x442af1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x442ad9
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x1c]
mov dword [edx], eax
adc ecx, ebx
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x442b55
mov ecx, dword [ebp - 0x20]
xor eax, eax
add eax, dword [ebp - 0x24]
mov dword [edx], eax
adc ecx, ebx
mov dword [edx + 4], ecx
jmp 0x442b55
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
jne 0x442b59
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x442b59
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, eax
test esi, esi
je 0x442b3c
push ebx
push edi
push 0
push dword [ebp - 0x10]
call fcn.0046bb30
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x442b54
push ebx
push edi
push 0
push dword [ebp - 0x14]
call fcn.0046bb30
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
mov al, 1
jmp 0x442b5b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x44317c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004321f9
pop ecx
test al, al
je 0x443191
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret

Function at 0x443271
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0043220e
pop ecx
test al, al
je 0x443285
xor al, al
pop ebp
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x443430
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
and eax, 1
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44344e
xor al, al
pop ebp
ret
test byte [ebp + 0x10], 0x80
je 0x443461
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fa3e
pop ecx
pop ecx
test dword [ebp + 0x10], 0x200
je 0x44347a
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443cfe
add esp, 0xc
mov al, 1
pop ebp
ret