joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f69
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43450c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4349a8]
je 0x428fa0
inc eax
cmp eax, 0x13
jb 0x428f91
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4349a8]
jne 0x4290c3
mov eax, dword [0x4363ec]
cmp eax, 1
je 0x42909e
cmp eax, edx
jne 0x428fd0
cmp dword [0x4344b4], 1
je 0x42909e
cmp ecx, 0xfc
je 0x4290c3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429006
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00428aa0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004272c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42903a
mov eax, edi
push eax
call fcn.004272c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x432108
push edi
call fcn.00420950
add esp, 0x10
push edi
call fcn.004272c0
push dword [esi + 0x4349ac]
mov ebx, eax
call fcn.004272c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421dc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00428aa0
push edi
push ebx
call fcn.00428ab0
push 0x4320e8
push ebx
call fcn.00428ab0
push dword [esi + 0x4349ac]
push ebx
call fcn.00428ab0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042bcea
add esp, 0x2c
jmp 0x4290c3
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4349ac]
push dword [esi]
call fcn.004272c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00428bc9
add ebp, 0x90
leave
ret
Function at 0x42bac1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42baef
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42baf6
cmp ebx, dword [eax + 4]
jae 0x42baf6
xor eax, eax
jmp 0x42bce6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42bb07
xor eax, eax
inc eax
jmp 0x42bce5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42bb1d
cmp ecx, edx
jae 0x42bc62
cmp dword [eax + 4], 0
je 0x42bb26
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42bb0e
cmp dword [ebp + 8], 0
je 0x42bb48
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42bc62
cmp eax, esi
jae 0x42bc62
mov eax, dword [0x436610]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42bb6d
cmp dword [esi*4 + 0x436618], edi
je 0x42bc66
inc esi
cmp esi, eax
jl 0x42bb5b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42bce2
cmp dword [ebp - 8], 0x1000000
jne 0x42bce2
test byte [ebp - 0xc], 0xcc
je 0x42bbeb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42bce2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42bce2
cmp word [eax + 0x18], 0x10b
jne 0x42bce2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42bce2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42bbeb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42bbeb
test byte [ecx + 0x27], 0x80
jne 0x42bc62
push 1
push 0x436658
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42baff
mov ecx, dword [0x436610]
test ecx, ecx
mov edx, ecx
jle 0x42bc1f
lea eax, [ecx*4 + 0x436614]
cmp dword [eax], edi
je 0x42bc1f
dec edx
sub eax, 4
test edx, edx
jg 0x42bc13
test edx, edx
jne 0x42bc50
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42bc2c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42bc44
lea eax, [edx*4 + 0x436618]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42bc32
cmp ecx, 0x10
jge 0x42bc50
inc ecx
mov dword [0x436610], ecx
push 0
push 0x436658
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42baff
xor eax, eax
jmp 0x42bce5
test esi, esi
jle 0x42baff
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436658
call ebx
test eax, eax
jne 0x42baff
cmp dword [esi*4 + 0x436618], edi
je 0x42bcbc
mov eax, dword [0x436610]
lea esi, [eax - 1]
test esi, esi
jl 0x42bcaa
cmp dword [esi*4 + 0x436618], edi
je 0x42bca6
dec esi
jns 0x42bc9a
test esi, esi
jge 0x42bcba
cmp eax, 0x10
jge 0x42bcb5
inc eax
mov dword [0x436610], eax
lea esi, [eax - 1]
jmp 0x42bcbc
je 0x42bcd4
xor ecx, ecx
test esi, esi
jl 0x42bcd4
lea eax, [ecx*4 + 0x436618]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42bcc2
push 0
push 0x436658
call ebx
jmp 0x42baff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42bcea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43665c], ebx
push esi
push edi
jne 0x42bd6a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42bda5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432404
push edi
call esi
test eax, eax
mov dword [0x43665c], eax
je 0x42bda5
push 0x4323f4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x436660], eax
call esi
cmp dword [0x4363fc], 2
mov dword [0x436664], eax
jne 0x42bd6a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43666c], eax
je 0x42bd6a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x436668], eax
mov eax, dword [0x436668]
test eax, eax
je 0x42bdaf
call eax
test eax, eax
je 0x42bd96
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43666c]
test eax, eax
je 0x42bd96
test byte [ebp - 8], 1
jne 0x42bdaf
cmp dword [0x436408], 4
jb 0x42bda9
or byte [ebp + 0x12], 0x20
jmp 0x42bdce
xor eax, eax
jmp 0x42bdde
or byte [ebp + 0x12], 4
jmp 0x42bdce
mov eax, dword [0x436660]
test eax, eax
je 0x42bdce
call eax
mov ebx, eax
test ebx, ebx
je 0x42bdce
mov eax, dword [0x436664]
test eax, eax
je 0x42bdce
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43665c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42be7f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00421dc0
mov eax, dword [0x43450c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x4378e8]
mov dword [ebp - 4], eax
jae 0x42bfca
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x437900]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42bfca
push 1
push esi
push ebx
call fcn.004224ac
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42bfd4
push 2
push esi
push ebx
call fcn.004224ac
add esp, 0xc
cmp eax, 0xffffffff
je 0x42bfd4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42bf74
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004284c0
push 0x8000
push ebx
call fcn.0042c869
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42bf30
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00424a11
add esp, 0xc
cmp eax, 0xffffffff
je 0x42bf4e
sub edi, eax
test edi, edi
jg 0x42bf25
jmp 0x42bf64
cmp dword [0x4363f4], 5
jne 0x42bf61
mov dword [0x4363f0], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042c869
pop ecx
pop ecx
jmp 0x42bfb4
jge 0x42bfb4
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004224ac
push ebx
call fcn.004298f5
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x42bfb4
mov dword [0x4363f0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4363f4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004224ac
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42bfd7
mov dword [0x4363f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428bc9
leave
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x21d372c0
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x1da63503
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x319f0dd7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x2e2691a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
mov eax, 0x662163ae
call fcn.6620bd08
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.6620bd30
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, 0x662163ec
call fcn.6620bd08
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.6620b908
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, 0x66216414
call fcn.6620bd08
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, 0x6621643f
call fcn.6620bd08
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.6620bd30
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, 0x66216497
call fcn.6620bd08
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
Function at 0x662022ad
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x66216562
call fcn.6620bd08
sub esp, 0x368
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp + 0x60]
lea ecx, [ebp - 0xbc]
call fcn.66203690
mov esi, dword [ebp + 0x68]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x57], bl
cmp dword [esi + 4], ebx
je 0x662022f8
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x374]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.6620bdcb
pop ecx
pop ecx
test eax, eax
je 0x6620230d
mov byte [ebp + 0x57], 1
mov eax, dword [esi + 4]
push ebx
neg eax
push ebx
sbb eax, eax
lea ecx, [ebp - 0x374]
and eax, ecx
push ebx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.66206820
add esp, 0x14
cmp al, bl
je 0x6620243e
push 0x44
pop esi
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.6620bd30
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x16c]
call fcn.66203690
mov byte [ebp - 4], 1
cmp byte [ebp + 0x57], bl
jne 0x662023c2
movzx eax, word [esi]
cmp ax, 0x22
jne 0x662023a2
jmp 0x66202387
push 0x22
pop ecx
cmp cx, ax
je 0x66202393
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x6620237f
jmp 0x662023a7
inc esi
inc esi
jmp 0x662023a7
cmp ax, 0x20
je 0x662023a7
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x66202397
push esi
push dword [ebp - 0xbc]
lea eax, [ebp - 0x16c]
push str.__ls__ls
push eax
call fcn.66203840
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push str.TS_SOURCE
call esi
push ebx
push str.TS_ORIGIN
call esi
cmp byte [ebp + 0x57], bl
je 0x66202404
push dword [ebp - 0xbc]
push str.TS_UPDATED_DATFILE
call esi
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x16c]
push dword [ebp + 0x64]
jmp 0x6620241f
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x16c]
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x66202430
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x58
leave
ret