joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c3c
mov eax, dword [ebp - 8]
call fcn.00404c3c
mov eax, dword [ebp + 8]
call fcn.00404c3c
xor eax, eax
push ebp
push 0x45c8ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x574bb0
mov eax, dword [ebp - 4]
call fcn.00404c4c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
mov eax, dword [ebp + 8]
test eax, eax
je 0x45c8a5
sub eax, 4
mov eax, dword [eax]
mov dword [0x574bb4], eax
mov eax, dword [0x574bb4]
push eax
lea eax, [ebp + 8]
call fcn.00404ca4
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404c4c
push eax
mov eax, dword [0x574bb0]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [0x574bb0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c906
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047ac
lea eax, [ebp + 8]
call fcn.00404788
ret

Function at 0x45c97c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x45c99b
add edx, 3
sar edx, 2
test edx, edx
jle 0x45caa9
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x45c9d0
je 0x45ca13
sub ecx, 0x2b
je 0x45ca09
sub ecx, 4
je 0x45ca0e
dec ecx
sub ecx, 0xa
jb 0x45c9fb
jmp 0x45ca16
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x45c9e2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x45c9ed
jmp 0x45ca16
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x45ca16
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x45ca16
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x45ca16
mov byte [eax], 0x3e
jmp 0x45ca16
mov byte [eax], 0x3f
jmp 0x45ca16
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x45c9b3
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x45ca67
cmp byte [esp + 7], 0xff
jne 0x45ca67
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x45ca9e
cmp dl, 0xff
je 0x45ca9e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x45c9aa
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x6620142e
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov eax, 0x66218d6e
call fcn.6620e594
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, 0x6621a488
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 0x6621a484
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.6620e5c0
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 0x6621a3c8
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, 0x66218dac
call fcn.6620e594
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 0x6621a4ac
mov byte [ebp - 4], 3
call fcn.6620e193
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, 0x66218dd4
call fcn.6620e594
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, 0x66218dff
call fcn.6620e594
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 0x6621a4cc
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 0x6621a4bc
push 1
mov ecx, esi
call fcn.66202f40
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621a4b8
push 1
mov ecx, esi
call fcn.66202f40
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620e5c0
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, 0x66218e57
call fcn.6620e594
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, 0x6621a56c
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, 0x66218f22
call fcn.6620e594
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.6620e65b
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.6620e5c0
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
Function at 0x6620245e
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x66218f37
call fcn.6620e594
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66202d60
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.662037d0
push ebx
lea eax, [ebp - 0xbc]
push eax
mov esi, str.TS_UPDATED_DATFILE
push esi
call fcn.66203ba0
add esp, 0xc
cmp eax, ebx
jl 0x662024bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203280
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.66203260
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x662046a0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
xor eax, eax
mov ecx, ebx
add ecx, edx
adc eax, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x16c]
cmp edi, eax
jg 0x662046de
jl 0x662046d0
mov eax, dword [esi + 0x168]
cmp eax, ecx
jae 0x662046de
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
add esp, 8
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x66204704
mov ecx, dword [esp + 0x20]
push ebx
add eax, edx
push eax
push ecx
call fcn.6620e710
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x6620471b
pop edi
pop esi
mov eax, 0xc0000008
pop ebx
add esp, 8
ret 0x14
cmp byte [esi + 0x18c], 0
mov dword [esp + 0x24], 0
je 0x66204761
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x6620474d
push edi
push edi
push edi
push 0x100002
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [esp + 0x24]
jmp 0x66204754
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jge 0x66204763
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
xor edi, edi
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x170]
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push edi
push eax
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x662047af
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x662047ab
jl 0x662047be
mov esi, 0xc0000001
jmp 0x662047be
mov esi, dword [esp + 0xc]
test esi, esi
jl 0x662047be
cmp dword [esp + 0x10], ebx
je 0x662047be
mov esi, 0xc000007b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x662047cd
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x66205600
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x662191db
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x178]
call fcn.6620bcd0
xor ebx, ebx
cmp dword [esi + 0x160], ebx
jne 0x6620572f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x662056f8
lea ecx, [esp + 0x48]
call fcn.66202d60
mov dword [esp + 0x100], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.6620ca60
add esp, 8
lea ecx, [esp + 0x48]
call fcn.66202e50
xor edx, edx
cmp byte [esi + 0x18c], bl
mov dword [esp + 0x18], eax
setne dl
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
lea edi, [esi + 0x170]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x40
dec edx
and edx, 0x20
or edx, 0x40
push edx
mov edx, dword [esi + 0x188]
push 1
push eax
push ecx
push edx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebp, eax
cmp ebp, ebx
jge 0x662056e4
mov dword [edi], ebx
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov eax, ebp
jmp 0x662057c3
mov dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.66203260
mov edx, dword [esi + 0x170]
push 5
push 0x18
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x662057c3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
mov ecx, esi
call fcn.66204df0
mov edi, eax
cmp edi, ebx
jge 0x66205752
lea ecx, [esi + 0x178]
call fcn.6620bcd0
mov ecx, esi
call fcn.66204620
mov eax, edi
jmp 0x662057c3
cmp byte [esp + 0x108], bl
je 0x6620575f
xor eax, eax
jmp 0x662057c3
mov edi, dword [esi + 0x178]
mov ecx, edi
call fcn.66205860
test al, al
je 0x6620575b
cmp byte [esp + 0x10c], bl
je 0x6620575b
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0x110]
mov dword [esi + 0x174], edx
mov dword [esi + 0x170], ebx
push 0xffffffffffffffff
cmp eax, ebx
je 0x662057a2
push eax
mov ecx, esi
call fcn.662032c0
jmp 0x662057b8
mov ecx, edi
call fcn.66205880
push eax
mov ecx, esi
call fcn.662039b0
mov ecx, eax
call fcn.66201025
push ebx
push ebx
push 1
mov ecx, esi
call fcn.66205600
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 0xc