joyce8/EMBER2024-capa huggingface dataset:
Function at 0xea0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ea01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xea007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea006a
add dl, dl
jne 0xea0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea00dc
xor eax, eax
add dl, dl
jne 0xea0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xea017d
add dl, dl
jne 0xea00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xea00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xea0075
mov eax, 1
add dl, dl
jne 0xea00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xea00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea00e1
sub eax, ebx
mov ebx, 1
jne 0xea0128
mov ecx, 1
add dl, dl
jne 0xea010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xea0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xea013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xea014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xea0136
cmp eax, 0x7d00
jae 0xea016d
cmp eax, 0x500
jb 0xea0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea0075
cmp eax, 0x7f
ja 0xea0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xea0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xea019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xea0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x401836
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401875
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401875
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401875
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401875
cmp dword [ecx + 0x74], 0xe
jbe 0x401875
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1506008], 0x8088405
inc edx
mov dword [ebx + 0x1506008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x14eda63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14eda6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x14ee473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x15082a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x15082a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x150710c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14ee47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x66201468
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6621b33d
call fcn.6620d014
sub esp, 0x3bc
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
call fcn.662030f0
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
je 0x662014ac
push 0x104
lea eax, [ebp - 0x3c8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.6620d530
xor ecx, ecx
xor edx, edx
inc edx
movzx ebx, cl
test eax, eax
lea eax, [ebp - 0x3c8]
push ecx
cmovne ebx, edx
cmp dword [esi + 4], ecx
push ecx
push ecx
cmove eax, ecx
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.66206550
add esp, 0x1c
test al, al
je 0x662015f8
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.6620d4a0
add esp, 0xc
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea ecx, [ebp - 0x1c0]
push 0xffffffffffffffff
push esi
call fcn.662030f0
mov byte [ebp - 4], 1
test bl, bl
jne 0x66201579
movzx eax, word [esi]
push 0x22
pop ecx
cmp ax, cx
jne 0x66201559
jmp 0x6620153b
cmp cx, ax
je 0x66201548
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x66201536
jmp 0x6620155e
add esi, 2
jmp 0x6620155e
cmp ax, 0x20
je 0x6620155e
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x6620154d
push esi
push dword [ebp - 0x110]
lea eax, [ebp - 0x1c0]
push str.__ls__ls
push eax
call fcn.662045b0
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.TS_SOURCE
call esi
push edi
push str.TS_ORIGIN
call esi
test bl, bl
je 0x662015bc
push dword [ebp - 0x110]
push str.TS_UPDATED_DATFILE
call esi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x1c0]
push dword [ebp + 0xc]
jmp 0x662015d9
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x1c0]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662015ea
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66201618
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b352
call fcn.6620d014
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66203190
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.66203cb0
push ebx
lea eax, [ebp - 0xbc]
mov esi, str.TS_UPDATED_DATFILE
push eax
push esi
call fcn.66203d80
add esp, 0xc
test eax, eax
js 0x66201676
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203f20
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66201d9d
Capabilities:
Create process on windows
Create process suspended
Delete file
Set environment variable

Disassembly:
mov eax, 0x6621b448
call fcn.6620d014
sub esp, 0x314
push ebx
lea ecx, [ebp - 0x270]
call fcn.66203190
xor ebx, ebx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
call fcn.66203190
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 1
push str.TS_UPDATE_THINREG
push eax
call fcn.662045b0
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c0]
call fcn.66203d80
add esp, 0x14
test eax, eax
jne 0x66201f28
push esi
push edi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0xcc]
call fcn.66202f50
push ebx
push ebx
push 0xffffffffffffffff
xor edi, edi
mov byte [ebp - 4], 2
push 0x6621c4f0
inc edi
lea ecx, [ebp - 0xcc]
push edi
call fcn.662033a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xcc]
push ebx
push ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.662033a0
push ebx
push ebx
push 0xffffffffffffffff
push str..exe
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033a0
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621c508
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033a0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620d4a0
add esp, 0xc
mov dword [ebp - 0x110], esi
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]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x66201ec3
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]
push 0x22
pop ecx
cmp word [eax], cx
jne 0x66201f0b
push edi
push ecx
lea ecx, [ebp - 0xcc]
call fcn.66204300
cmp eax, 0xffffffff
je 0x66201f0b
dec eax
lea ecx, [ebp - 0xcc]
push eax
push edi
lea eax, [ebp - 0x320]
push eax
call fcn.66202477
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x320]
call fcn.66203210
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.66203210
pop edi
pop esi
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66201f54
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x6621b470
call fcn.6620d014
sub esp, 0x300
push esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xbc]
call fcn.66202f50
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2e0]
push eax
push 1
lea ecx, [ebp - 0xbc]
call fcn.662033a0
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.66203f20
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66201f94
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.66203210
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x66202014
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
mov eax, 0x6621b4ae
call fcn.6620d014
sub esp, 0x460
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
inc ebx
lea ecx, [ebp - 0xbc]
push eax
mov dword [ebp - 4], ebx
call fcn.66202f50
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
push ebx
lea ecx, [ebp - 0xbc]
call fcn.662033a0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.66202f50
mov esi, dword [ebp - 0xb8]
push 0x6621c4c0
mov byte [ebp - 4], 3
call fcn.6620cd31
pop ecx
sub esi, eax
lea ecx, [ebp - 0xbc]
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.662043a0
push ebx
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.66203f20
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.66203210
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.66203210
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x66202055
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.66203210
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6620213e
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621b4e1
call fcn.6620d014
sub esp, 0x368
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.66203190
mov esi, str.TS_UPDATE_CMDLINE
mov byte [ebp - 4], 1
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.662045b0
pop ecx
pop ecx
lea ecx, [ebp - 0x114]
call fcn.66203190
push ebx
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x214]
call fcn.66203d80
add esp, 0xc
test eax, eax
js 0x66202202
push 0xffffffffffffffff
push 0x6621c3d8
lea ecx, [ebp - 0x374]
call fcn.662030f0
push ebx
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.66203660
mov ebx, eax
mov byte [ebp - 4], 2
neg ebx
lea ecx, [ebp - 0x374]
sbb bl, bl
call fcn.66203210
inc bl
je 0x662021f8
xor esi, esi
push esi
push 0x6621c3dc
push str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.6620d4a0
add esp, 0xc
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.66202f50
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x10]
push 2
push 1
push ebx
push eax
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x164]
push 0x6621c494
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
push str.TS_PARENT_HANDLE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x2c4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662022a2
push ebx
jmp 0x662021f2
lea ecx, [ebp - 0x2c4]
call fcn.66203210
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.66203210
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], bl
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x662022e6
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b519
call fcn.6620d014
sub esp, 0x168
push esi
push edi
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
or edi, 0xffffffff
push edi
push 0
call fcn.662037d0
push eax
lea ecx, [ebp + 8]
call fcn.66204280
push eax
lea ecx, [ebp + 8]
call fcn.66203cb0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc4]
call fcn.66202f50
push 0
push 0
push edi
mov esi, 0x6621c540
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
push 0
push 0
push edi
push str..ase
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.66202f50
sub esp, 0xb0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.66202f50
mov byte [ebp - 4], 1
call fcn.66201f54
add esp, 0x160
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc4]
push eax
call fcn.66203f20
push 0
push 0
push edi
push esi
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
push 0
push 0
push edi
push str..asd
push 1
lea ecx, [ebp - 0xc4]
call fcn.662033a0
sub esp, 0xb0
lea eax, [ebp - 0xc4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.66202f50
sub esp, 0xb0
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.66202f50
mov byte [ebp - 4], 1
call fcn.66201f54
add esp, 0x160
lea ecx, [ebp - 0x174]
call fcn.66203190
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 4
push str.TS_UPDATE_COMPLETE
push eax
call fcn.662045b0
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.66203210
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.66203210
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x662024de
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x662024fd
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x66202575
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6620251c
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x6620256d
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x66202555
mov edi, dword [ebp + 0x10]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x96
je 0x66202552
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x66202530
mov edi, dword [ebp + 8]
push 1
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x66202572
push esi
mov ecx, edi
call fcn.66203f20
xor eax, eax
inc eax
jmp 0x66202574
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret