joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001578f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1000fe16
mov dword [ebp - 0x14], eax
cmp dword [0x10029740], edi
jne 0x10015880
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1001580d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10015960
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10015960
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015960
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10029740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10029744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10029748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10029750], eax
test eax, eax
je 0x1001587d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002974c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100158a5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10015898
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100158ba
push 4
pop eax
jmp 0x10015962
cmp dword [ebp - 0x14], edi
je 0x100158ba
push dword [0x10029740]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1001589f
mov eax, dword [0x1002974c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10015918
cmp dword [0x10029750], esi
je 0x10015918
push eax
call ebx
push dword [0x10029750]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10015918
test eax, eax
je 0x10015918
call ecx
test eax, eax
je 0x1001590d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1001590d
test byte [ebp - 8], 1
jne 0x10015918
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10015948
mov eax, dword [0x10029744]
cmp eax, esi
je 0x10015945
push eax
call ebx
test eax, eax
je 0x10015945
call eax
mov edi, eax
test edi, edi
je 0x10015945
mov eax, dword [0x10029748]
cmp eax, esi
je 0x10015945
push eax
call ebx
test eax, eax
je 0x10015945
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10029740]
call ebx
test eax, eax
je 0x10015960
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10015962
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009545
leave
ret
Function at 0x8549a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x898e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x8b2014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x8b30ec
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.008680c0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x8b2a8c
push eax
call fcn.008680c0
mov esi, dword [0x8b30fc]
xor ebx, ebx
mov edi, dword [0x8b3100]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x8b6390], bl
mov eax, ebx
mov ecx, 0x8b30ec
cmovae ecx, dword [0x8b30ec]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x8b64a0], al
inc ebx
cmp ebx, 0x100
jl 0x854a20
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x8b6390]
movzx eax, byte [esi + 0x8b64a0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x854a74
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x8b6390]
mov byte [esi + 0x8b6390], al
inc esi
mov byte [edi + 0x8b6390], dl
cmp esi, 0x100
jl 0x854a50
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00854690
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x854ac9
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x854abf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x854b1f
push edx
push ecx
call fcn.0086d663
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x854b0b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x854b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x854b1f
push edx
push ecx
call fcn.0086d663
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00886c6a
int3
Function at 0x8570a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x8b2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
nop
nop
nop
nop
nop
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x857289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x857289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.008840f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x857289
push 4
push 0x1000
push 4
push 0
nop
nop
nop
nop
nop
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x857289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x8a8df8
push dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x8571ac
push 0x8a8dfc
push 0x8a8e14
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x857289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x857243
mov dword [esp + 0xc], eax
call fcn.00856ef0
push eax
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x8571f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
nop
nop
nop
nop
nop
nop
push dword [esp + 0x24]
nop
nop
nop
nop
nop
nop
push 0x8000
push 0
push esi
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0086cff1
mov esp, ebp
pop ebp
ret
Function at 0x85af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x899726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x8b2014]
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 ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00888b63
push eax
call fcn.00886660
add esp, 8
call fcn.0088663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0088663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0088663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.008545b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x85afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x85afe6
push 0x40
push 0
push 0x8b8560
sub esi, ecx
call fcn.008840f0
add esp, 0xc
mov dword [0x8b8554], 0
mov edx, esi
mov dword [0x8b8550], 0
lea ecx, [ebp - 0x410]
mov dword [0x8b8540], 0x67452301
mov dword [0x8b8544], 0xefcdab89
mov dword [0x8b8548], 0x98badcfe
mov dword [0x8b854c], 0x10325476
call fcn.00855530
call fcn.008555f0
mov ecx, 0x8b65a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x85b071
sub ecx, edx
push ecx
push 0x8b65a0
lea ecx, [ebp - 0x42c]
call fcn.008680c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x85b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x85b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x85b18c
push edx
push ecx
call fcn.0086d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x85b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.008680c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x85b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x85b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x85b18c
push edx
push ecx
call fcn.0086d663
add esp, 8
mov eax, ebx
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.0086cff1
mov esp, ebp
pop ebp
ret
call fcn.00868200
call fcn.00886c6a
int3
Function at 0x86dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x86dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x86dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x86dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x86dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x86dd07
cmp dword [ecx + 0xe8], 0
je 0x86dd07
mov al, 1
ret
xor al, al
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x6620142e
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621618e
call fcn.6620bae8
sub esp, 0x36c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ebx
call fcn.66202d60
mov esi, 0x66217478
lea eax, [ebp - 0x218]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.66203840
pop ecx
pop ecx
lea ecx, [ebp - 0x118]
call fcn.66202d60
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.66203ba0
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0xc
cmp eax, ebx
jl 0x662014f4
push 0xffffffffffffffff
push 0x66217474
lea ecx, [ebp - 0x378]
call fcn.66203690
push ebx
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.66202c70
neg eax
sbb al, al
inc al
lea ecx, [ebp - 0x378]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call fcn.66203260
push ebx
cmp byte [ebp - 0xd], bl
je 0x662014f1
push str.AppSync
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.6620bb10
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.66203610
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x14]
lea eax, [ebp - 0x168]
push 0x662173b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push str.TS_PARENT_HANDLE
call edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x662014ea
lea ecx, [ebp - 0x2c8]
call fcn.66203260
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662015d1
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x662161cc
call fcn.6620bae8
sub esp, 0x460
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.66203610
lea eax, [ebp - 0x46c]
push eax
push dword [ebp + 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.66202f40
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.66203610
mov esi, dword [ebp - 0xb8]
push 0x6621749c
mov byte [ebp - 4], 3
call fcn.6620b6e8
pop ecx
sub esi, eax
push esi
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.662038a0
push 1
push dword [ebp - 0x16c]
mov byte [ebp - 4], 4
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203280
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.66203260
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.66203260
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66201612
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x662016fb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x662161f4
call fcn.6620bae8
sub esp, 0x300
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.66203610
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.66202f40
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203280
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x6620173b
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x662017b9
Capabilities:
Create process on windows
Create process suspended
Delete file
Set environment variable

Disassembly:
mov eax, 0x6621621f
call fcn.6620bae8
sub esp, 0x314
push ebx
lea ecx, [ebp - 0x270]
call fcn.66202d60
xor ebx, ebx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
call fcn.66202d60
lea eax, [ebp - 0x1c0]
push str.TS_UPDATE_THINREG
push eax
mov byte [ebp - 4], 1
call fcn.66203840
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c0]
call fcn.66203ba0
add esp, 0x14
test eax, eax
jne 0x66201935
push esi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0xcc]
call fcn.66203610
push ebx
push ebx
push 0xffffffffffffffff
push 0x662174bc
push 1
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.66202f40
push dword [ebp + 8]
lea ecx, [ebp - 0xcc]
call fcn.66201008
push ebx
push ebx
push 0xffffffffffffffff
mov esi, eax
push 0x662174ac
push 1
mov ecx, esi
call fcn.66202f40
push ebx
push ebx
push 0xffffffffffffffff
push 0x662174a8
push 1
mov ecx, esi
call fcn.66202f40
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620bb10
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xcc]
mov dword [ebp - 0x110], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662018d0
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0xcc]
cmp word [eax], 0x22
pop esi
jne 0x6620191a
push 1
push 0x22
lea ecx, [ebp - 0xcc]
call fcn.66202a70
cmp eax, 0xffffffff
je 0x6620191a
dec eax
push eax
push 1
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0xcc]
call fcn.662013c9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x320]
call fcn.66203260
push ebx
push str.TS_UPDATE_THINREG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662019f9
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
jne 0x66201a17
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66201a8f
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66201a36
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x66201a87
and dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
mov ebx, dword [ebp + 0x10]
jmp 0x66201a5d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x96
je 0x66201a69
mov eax, dword [ebx]
mov ecx, dword [esi]
push eax
push ecx
call edi
test eax, eax
je 0x66201a46
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
test eax, eax
je 0x66201a8c
push esi
mov ecx, edi
call fcn.66203280
xor eax, eax
inc eax
jmp 0x66201a8e
xor eax, eax
pop esi
pop edi
leave
ret

Function at 0x66201a92
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66216277
call fcn.6620bae8
sub esp, 0x168
push ebx
push esi
push edi
or edi, 0xffffffff
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.66202ae0
push eax
lea ecx, [ebp + 8]
call fcn.66202ec0
push eax
lea ecx, [ebp + 8]
call fcn.662037d0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66203610
push ebx
push ebx
push edi
mov esi, 0x6621755c
push esi
push 1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.66202f40
push ebx
push ebx
push edi
push str..ase
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66203610
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 2
call fcn.66203610
mov byte [ebp - 4], 1
call fcn.662016fb
add esp, 0x160
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66203280
push ebx
push ebx
push edi
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
push ebx
push ebx
push edi
push str..asd
push 1
lea ecx, [ebp - 0xc4]
call fcn.66202f40
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.66203610
mov byte [ebp - 4], 3
sub esp, 0xb0
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66203610
mov byte [ebp - 4], 1
call fcn.662016fb
add esp, 0x160
lea ecx, [ebp - 0x174]
call fcn.66202d60
lea eax, [ebp - 0x174]
push str.TS_UPDATE_COMPLETE
push eax
mov byte [ebp - 4], 4
call fcn.66203840
pop ecx
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.66203260
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret