joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412780
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor edx, edx
movzx ecx, byte [edx + 0x41893c]
mov ebx, ecx
sar ebx, 3
movzx ebx, byte [ebx + eax]
mov esi, ecx
and esi, 7
movzx esi, word [esi + esi + 0x4188cc]
and ebx, esi
setne bl
mov byte [ebp + edx - 0x38], bl
inc edx
cmp edx, 0x38
jl 0x412791
xor eax, eax
cmp word [ebp + 0xc], 1
jne 0x4127d0
mov ebx, eax
neg ebx
lea esi, [ebx + ebx + 0x1e]
jmp 0x4127d3
lea esi, [eax + eax]
lea edi, [esi + 1]
and dword [ebp + edi*4 - 0xf0], 0
and dword [ebp + esi*4 - 0xf0], 0
xor edx, edx
movzx ebx, byte [eax + 0x418974]
lea ecx, [ebx + edx]
cmp ecx, 0x1c
jge 0x412801
mov bl, byte [ebp + ecx - 0x38]
mov byte [ebp + edx - 0x70], bl
jmp 0x412809
mov bl, byte [ebp + ecx - 0x54]
mov byte [ebp + edx - 0x70], bl
inc edx
cmp edx, 0x1c
jl 0x4127e8
mov edx, 0x1c
movzx ebx, byte [eax + 0x418974]
lea ecx, [ebx + edx]
cmp ecx, 0x38
jge 0x41282d
mov bl, byte [ebp + ecx - 0x38]
mov byte [ebp + edx - 0x70], bl
jmp 0x412835
mov cl, byte [ebp + ecx - 0x54]
mov byte [ebp + edx - 0x70], cl
inc edx
cmp edx, 0x38
jl 0x412814
xor edx, edx
movzx ecx, byte [edx + 0x418984]
cmp byte [ebp + ecx - 0x70], 0
je 0x412859
mov ecx, dword [edx*4 + 0x4188dc]
or dword [ebp + esi*4 - 0xf0], ecx
movzx ecx, byte [edx + 0x41899c]
cmp byte [ebp + ecx - 0x70], 0
je 0x412875
mov ecx, dword [edx*4 + 0x4188dc]
or dword [ebp + edi*4 - 0xf0], ecx
inc edx
cmp edx, 0x18
jl 0x41283d
inc eax
cmp eax, 0x10
jl 0x4127bf
lea eax, [ebp - 0xf0]
push eax
call fcn.0041289a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4131e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
push eax
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor edx, edx
mov cl, byte [edx + eax]
mov byte [ebp + edx - 8], cl
mov cl, byte [edx + eax]
mov byte [edx + esi], cl
inc edx
cmp edx, 8
jl 0x4131fa
push esi
push eax
call fcn.00412d35
xor eax, eax
lea edx, [eax + esi]
mov cl, byte [eax + edi]
xor byte [edx], cl
inc eax
cmp eax, 8
jl 0x413216
xor eax, eax
mov dl, byte [ebp + eax - 8]
mov byte [eax + edi], dl
inc eax
cmp eax, 8
jl 0x413226
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401994
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x4019f2
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0x70b
jne 0x4019f2
cmp dword [eax + 0xc], 0x202
jne 0x4019f2
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00401ad2
add esp, 0x10
mov eax, 0x47e734
cmp dword [ebp - 0xc], 0
cmovne eax, dword [ebp - 0xc]
xor ecx, ecx
push 5
push ecx
push ecx
push eax
push 0x47e754
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xc]
call fcn.00424b62
leave
ret

Function at 0x408832
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47cdef
call fcn.0045a9c4
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.004280f1
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.0042717c
lea eax, [ebp - 0x34]
push eax
call fcn.0043d53d
mov esi, 0x47e734
mov ecx, esi
cmp dword [eax], edi
cmovne ecx, dword [eax]
push edi
push 0x4818a8
push ecx
push 0x4818b0
lea eax, [ebp - 0x1c]
push eax
call fcn.0042d164
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00424b62
lea ecx, [ebp - 0x28]
call fcn.0042717c
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.0044130d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042402b
lea ecx, [ebp - 0x34]
call fcn.00424b62
lea eax, [ebp - 0x28]
push eax
push 0x4818b4
lea ecx, [ebp - 0x1c]
call fcn.004231f6
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 0x40892f
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.00424b62
lea ecx, [ebp - 0x1c]
call fcn.00424b62
mov al, 1
jmp 0x408967
push edi
push edi
push edi
push dword [ebp + 8]
push 0x47e754
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setge bl
lea ecx, [ebp - 0x28]
call fcn.00424b62
lea ecx, [ebp - 0x1c]
call fcn.00424b62
mov al, bl
jmp 0x408967
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ade1
Capabilities:
Terminate process

Disassembly:
mov eax, 0x47ce0d
call fcn.0045a9c4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00408b66
mov eax, dword [0x4ad820]
test eax, eax
je 0x40ae21
push 6
push eax
call fcn.0045458f
push dword [0x4ad820]
call fcn.00453fd7
add esp, 0xc
mov dword [0x4ad820], esi
call fcn.00454940
call fcn.0040d3a6
mov ecx, dword [0x4ac794]
test ecx, ecx
je 0x40ae59
push esi
push 1
call fcn.00458456
mov ecx, dword [0x4ac794]
call fcn.00458763
mov ecx, dword [0x4ac794]
call fcn.00457b38
mov dword [0x4ac794], esi
call fcn.00410f3f
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x420d1b
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.0042588c
push dword [esi + 4]
mov ebx, eax
call fcn.0042588c
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 0x420d4b
mov eax, dword [edi]
xor eax, ebx
push eax
call fcn.0042588c
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [edi - 4]
xor eax, dword [ebp + 0xc]
push eax
call fcn.0042588c
pop ecx
pop ecx
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret 8

Function at 0x420e86
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.0042588c
push dword [esi + 4]
mov ebx, eax
call fcn.0042588c
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 0x420eb6
mov eax, dword [edi]
xor eax, ebx
push eax
call fcn.0042588c
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
xor eax, dword [ebp - 4]
push eax
call fcn.0042588c
pop ecx
pop ecx
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret 8
Function at 0x420f7b
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.00420cc6
pop ecx
test al, al
je 0x42104b
push ebx
push 0x48
push 0x483e60
lea ebx, [esi + 0x48]
push esi
mov dword [ebp + 0xc], ebx
call fcn.00428088
push 0x1000
push 0x483ea8
push ebx
call fcn.00428088
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 0x420fc2
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.00420e86
push dword [ebp - 8]
call fcn.0042588c
push dword [ebp - 4]
mov dword [edi], eax
call fcn.0042588c
mov dword [edi + 4], eax
lea edi, [edi + 8]
pop ecx
pop ecx
sub ebx, 1
jne 0x420fe3
mov ebx, dword [ebp + 0xc]
mov edi, 0x200
lea eax, [ebp - 8]
mov ecx, esi
push eax
push eax
call fcn.00420e86
push dword [ebp - 8]
call fcn.0042588c
push dword [ebp - 4]
mov dword [ebx], eax
call fcn.0042588c
mov dword [ebx + 4], eax
lea ebx, [ebx + 8]
pop ecx
pop ecx
sub edi, 1
jne 0x421016
mov ecx, esi
call fcn.00420f67
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x42fabc
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 0x42fae8
xor dword [esi], ecx
add esi, 4
dec eax
test eax, eax
jg 0x42fadb
mov edi, dword [ebx + 4]
and edi, 3
sub edi, 1
je 0x42fb03
sub edi, 1
je 0x42fb00
sub edi, 1
jne 0x42fb05
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 0x4314c4
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 0x431549
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x431537
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.00461cc0
pop ecx
pop ecx
mov ecx, eax
lea eax, [ebp - 0x404]
cmp ecx, eax
jbe 0x431537
cmp byte [ecx - 1], 0x5c
je 0x43151d
mov byte [ecx], 0x5c
inc ecx
lea eax, [ebp - 4]
push esi
sub eax, ecx
push eax
push ecx
call fcn.0046fa0f
add esp, 0xc
test eax, eax
jne 0x431549
lea esi, [ebp - 0x404]
and ebx, 4
shl ebx, 3
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x43154b
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x43cb77
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ae070], 0
jne 0x43cbe4
mov eax, dword [0x4ae078]
mov byte [0x4ae070], 1
test eax, eax
je 0x43cb9e
push dword [ebp + 8]
call eax
pop ecx
jmp 0x43cbe4
cmp dword [0x4ae074], 0
je 0x43cbe4
lea ecx, [ebp - 0xc]
call fcn.00407031
push 0
push 0x47f86c
push 0
lea eax, [ebp - 0xc]
push eax
push closesocket
push dword [ebp + 8]
call fcn.0044a39a
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0043ca90
push eax
call dword [0x4ae074]
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040724a
push 1
call fcn.00470223
int3

Function at 0x43dda2
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 0x43ddc5
push 0xa1
call fcn.00449755
xor bl, bl
jmp 0x43de67
xor ebx, ebx
test byte [ebp + 0x14], 1
push esi
mov esi, 0x47e734
jne 0x43de35
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.00440a72
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.0043fbd9
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00424b62
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.00440a72
mov ecx, esi
push ebx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.0043fbd9
add esp, 0x14
lea ecx, [ebp - 0xc]
call fcn.00424b62
push 0x5c
lea ecx, [ebp + 8]
call fcn.00425631
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 0x43de56
mov bl, 1
jmp 0x43de68
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jne 0x43de68
push 3
call fcn.00449755
pop ecx
lea ecx, [ebp + 8]
call fcn.00424b62
mov al, bl
pop ebx
leave
ret
Function at 0x43e848
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.0043e802
pop ecx
test al, al
je 0x43e942
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.00431437
push eax
call fcn.0043144f
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x43e8e4
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 0x43e8da
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x43e8c2
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 0x43e93e
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 0x43e93e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
jne 0x43e942
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 0x43e942
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 0x43e925
push ebx
push edi
push 0
push dword [ebp - 0x10]
call fcn.0045ada0
mov dword [esi], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x43e93d
push ebx
push edi
push 0
push dword [ebp - 0x14]
call fcn.0045ada0
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
mov al, 1
jmp 0x43e944
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x43ea9f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
movsx eax, byte [edi]
push eax
call fcn.0043e802
pop ecx
test al, al
je 0x43eb3e
push esi
lea edx, [ebx + 0x1c]
mov word [ebp + 9], 0x5c3a
lea ecx, [ebx + 0x20]
mov dword [edx], 0xff
and dword [ecx], 0
lea esi, [ebx + 0xc]
and dword [esi], 0
mov al, byte [edi]
mov edi, 0x3ff
mov byte [ebp + 8], al
xor eax, eax
push edi
mov byte [ebp + 0xb], al
mov byte [ebp - 0x404], al
mov byte [ebp - 0x804], al
lea eax, [ebp - 0x804]
push eax
push ecx
push edx
push esi
push edi
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, dword [ebp - 4]
test eax, eax
push edi
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
setne bl
call fcn.0042d0c4
push edi
lea eax, [ebp - 0x804]
push eax
lea ecx, [esi + 0x10]
call fcn.0042d0c4
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x43ee38
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0042f66d
pop ecx
test al, al
je 0x43ee4d
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret
Function at 0x43ef2d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0042f682
pop ecx
test al, al
je 0x43ef41
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 0x43f0dd
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 0x43f0fb
xor al, al
pop ebp
ret
test byte [ebp + 0x10], 0x80
je 0x43f10e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450381
pop ecx
pop ecx
test dword [ebp + 0x10], 0x200
je 0x43f127
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043f917
add esp, 0xc
mov al, 1
pop ebp
ret

Function at 0x43f576
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.0042717c
mov ebx, closesocket
lea ecx, [ebp - 0x18]
push ebx
push dword [ebp + 0xc]
call fcn.0042d49b
cmp dword [ebp - 0x14], 0
jg 0x43f5bb
lea eax, [ebp - 0xc]
push eax
call fcn.00449aed
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004074e1
lea ecx, [ebp - 0xc]
call fcn.00424b62
xor esi, esi
xor eax, eax
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x18], 0
push ecx
mov word [ebp - 0x230], ax
mov eax, 0x47e734
cmovne eax, dword [ebp - 0x18]
push 0
push 0x4889f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp - 0x230], 0
jne 0x43f62e
test byte [ebp + 0x14], 1
jne 0x43f6c7
lea eax, [ebp - 0x24]
push eax
call fcn.00449aed
pop ecx
mov ecx, 0x47e734
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0x230]
push eax
push 0
push 0x4889f8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x24]
call fcn.00424b62
push dword [ebp + 0x10]
call fcn.0042f66d
pop ecx
test al, al
jne 0x43f6a0
lea ecx, [ebp - 0xc]
call fcn.0042717c
push ebx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042d49b
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00440b3d
cmp dword [ebp - 0xc], 0
mov eax, 0x47e734
pop ecx
cmovne eax, dword [ebp - 0xc]
pop ecx
push 0
sub esp, 0xc
mov ecx, esp
push eax
call fcn.00406ff1
lea eax, [ebp - 0x230]
push eax
call fcn.00440066
add esp, 0x14
test al, al
jne 0x43f6d1
lea ecx, [ebp - 0xc]
call fcn.00424b62
inc esi
cmp esi, 0x64
jl 0x43f5bd
mov ecx, dword [ebp + 8]
call fcn.0042717c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.0042d49b
lea ecx, [ebp - 0x18]
call fcn.00424b62
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
call fcn.0042717c
jmp 0x43f6b8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0xc]
mov dword [esi], eax
call fcn.00424b62
lea ecx, [ebp - 0x18]
call fcn.00424b62
mov eax, esi
jmp 0x43f6c3
Function at 0x43fbd9
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0042f66d
pop ecx
test al, al
jne 0x43fc77
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, 0x100
je 0x43fc0c
push esi
call fcn.004404bc
or eax, edx
pop ecx
jne 0x43fc7c
test bl, 1
jne 0x43fc1a
push edi
push esi
call fcn.0043ee71
pop ecx
pop ecx
test bl, 2
jne 0x43fcea
test bl, bl
js 0x43fc83
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43fda5
test ebx, 0x800
je 0x43fc55
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x43fda5
cmp eax, 3
je 0x43fda5
test bl, 0x10
je 0x43fc7c
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x43fc7c
cmp eax, 3
je 0x43fc7c
push esi
or ebx, 2
call fcn.0042f66d
pop ecx
test al, al
je 0x43fbf9
call fcn.00449763
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.0042717c
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042d49b
push edi
lea ecx, [ebp - 0x10]
call fcn.004232c9
push edi
lea eax, [ebp - 0x3c]
push 0x1e
push eax
call fcn.004280f1
add esp, 0xc
mov dword [ebp - 0x38], 3
cmp dword [ebp - 0x10], edi
mov eax, 0x47e734
cmovne eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, 0x454
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
lea ecx, [ebp - 0x10]
neg ebx
sbb bl, bl
inc bl
jmp 0x43fde1
call fcn.00448771
test al, al
je 0x43fdba
mov eax, dword [0x4ae08c]
test eax, eax
je 0x43fd0e
push 4
push edi
push esi
call eax
test eax, eax
jne 0x43fda5
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00449a01
mov edi, 0x47e730
mov dword [esp], str.wininit.exe
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0x10]
push ecx
push eax
call fcn.004409b8
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
push ecx
call fcn.0043fe3e
add esp, 0x10
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00424b62
lea ecx, [ebp - 0x1c]
call fcn.00424b62
test bl, bl
je 0x43fdac
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0044130d
push 0
push 0x47f86c
lea eax, [ebp - 0x10]
push 0
push eax
push eax
call fcn.0044a36c
cmp dword [ebp - 0x10], 0
cmovne edi, dword [ebp - 0x10]
push edi
push 0x488a0c
call fcn.00444082
add esp, 0x24
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00424b62
test bl, bl
je 0x43fdac
mov al, 1
jmp 0x43fc7e
push dword [ebp - 4]
call fcn.00449755
pop ecx
jmp 0x43fc7c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044130d
mov ecx, 0x47e730
cmp dword [eax], edi
cmovne ecx, dword [eax]
push ecx
push 0x488a0c
call fcn.00444082
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00424b62
mov al, bl
jmp 0x43fc7e