joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2001cd4f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x2001ce5b
cmp word [esi], bx
je 0x2001ce5b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x2001ce5b
push edi
mov word [esi], bx
push 0x5c
inc esi
push ebx
inc esi
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x2001cdaa
mov word [eax], bx
jmp 0x2001cdbe
push esi
call edi
cmp eax, 1
jbe 0x2001cdbe
cmp word [esi + 2], 0x3a
je 0x2001cdbe
mov esi, 0x200029e8
push esi
call fcn.2000c372
mov esi, eax
mov dword [esp], 0x40e
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
call edi
cmp eax, 1
jbe 0x2001cdf3
cmp word [esi + 2], 0x3a
jne 0x2001cdfb
push esi
call edi
cmp eax, 2
jae 0x2001ce28
cmp esi, ebx
je 0x2001ce21
cmp word [esi], bx
je 0x2001ce21
push esi
push 0x2002e1b0
lea eax, [ebp - 0x410]
push 0x200029c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x2001ce36
push 0x2002e1b0
jmp 0x2001ce29
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.2000c460
pop ecx
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop edi
jmp 0x2001ce5e
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x2001ce62
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2b8
push esi
push edi
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edi, edi
push 0x9e
lea eax, [ebp - 0x3a]
push edi
push eax
mov word [ebp - 0x3c], di
call sub.MSVCRT.dll_memset
movzx eax, word [ebp + 0x70]
push eax
movzx eax, word [ebp + 0x6e]
push eax
movzx eax, word [ebp + 0x6c]
push eax
movzx eax, word [ebp + 0x68]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x66]
push eax
movzx eax, word [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push 0x20003c90
push eax
call esi
push 0x206
lea eax, [ebp - 0x242]
push edi
push eax
mov word [ebp - 0x244], di
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x7c]
add esp, 0x3c
cmp eax, edi
je 0x2001cefa
cmp word [eax], di
je 0x2001cefa
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x2001cf0a
lea eax, [ebp - 0x244]
push 0x20003c80
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add ebp, 0x74
leave
ret
Function at 0x2001cf27
Capabilities:
Get disk information
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x4b0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
xor ebx, ebx
cmp esi, ebx
je 0x2001d07e
cmp word [esi], bx
je 0x2001d07e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x2001d07e
mov word [eax], bx
add eax, 2
push edi
push eax
call fcn.2000c372
mov esi, eax
cmp esi, ebx
pop ecx
je 0x2001cfd4
cmp word [esi], bx
je 0x2001cfd4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jbe 0x2001cfa6
cmp word [esi + 2], 0x3a
jne 0x2001cfa6
push esi
call edi
cmp eax, 2
jbe 0x2001d06c
mov word [esi + 4], bx
jmp 0x2001d06c
push 0x9e
lea eax, [ebp - 0x2a]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [0x2002e1b0]
mov word [ebp - 0x2c], ax
mov ax, word [0x2002e1b2]
add esp, 0xc
mov word [ebp - 0x2a], ax
lea esi, [ebp - 0x2c]
jmp 0x2001d06c
mov esi, 0x206
push esi
lea eax, [ebp - 0x232]
push ebx
push eax
mov word [ebp - 0x234], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x43a]
push ebx
push eax
mov word [ebp - 0x43c], bx
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x43c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x43c], bx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x43c]
je 0x2001d051
push esi
call edi
mov word [esi + eax*2 - 2], 0x7c
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x2001d02d
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, ebx
jbe 0x2001d066
mov word [ebp + eax*2 - 0x236], bx
lea esi, [ebp - 0x234]
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop edi
jmp 0x2001d081
xor eax, eax
inc eax
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x2001d088
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x2001d0f5
cmp word [ebx], di
je 0x2001d0f5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, edi
je 0x2001d0f5
mov word [eax], di
add eax, 2
push esi
push eax
call fcn.2000c372
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
pop ecx
push 0x5c
push edi
push eax
call esi
cmp eax, edi
je 0x2001d0d9
mov word [eax], di
add eax, 2
push eax
call fcn.2000c372
pop ecx
push 0x2e
push edi
push eax
call esi
cmp eax, edi
pop esi
je 0x2001d0e6
inc eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d0f8
xor eax, eax
inc eax
pop edi
pop ebx
ret
Function at 0x2001d0fb
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
test esi, esi
push edi
je 0x2001d1de
cmp word [esi], 0
je 0x2001d1de
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
call esi
mov ebx, eax
test ebx, ebx
je 0x2001d1de
and word [ebx], 0
inc ebx
push 0x2c
inc ebx
push ebx
call esi
mov edi, eax
test edi, edi
je 0x2001d1de
and word [edi], 0
inc edi
push 0x2c
inc edi
push edi
call esi
mov esi, eax
test esi, esi
je 0x2001d1de
and word [esi], 0
push ebx
call fcn.200042be
add esi, 2
push esi
mov ebx, eax
call fcn.2000c372
push edi
mov esi, eax
call fcn.2000c372
add esp, 0xc
test ebx, ebx
push eax
push esi
je 0x2001d18f
call dword [sym.imp.SHLWAPI.dll_StrStrW]
jmp 0x2001d195
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
test eax, eax
je 0x2001d1a2
sub eax, esi
sar eax, 1
inc eax
mov edi, eax
and word [ebp - 0x2c], 0
push 0x9e
lea eax, [ebp - 0x2a]
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2c]
push 0x20002b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d1e1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x2001d1e9
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 0x7c]
test esi, esi
push edi
je 0x2001d306
cmp word [esi], 0
je 0x2001d306
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
call esi
mov edi, eax
test edi, edi
je 0x2001d306
and word [edi], 0
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x2001d306
and word [ebx], 0
and dword [ebp + 0x70], 0
inc ebx
push 0x2c
inc ebx
push ebx
call esi
test eax, eax
je 0x2001d2bb
and word [eax], 0
add eax, 2
push eax
call fcn.2000c372
push ebx
mov esi, eax
call fcn.2000c372
push eax
call fcn.200042be
add esp, 0xc
test eax, eax
mov dword [ebp + 0x6c], eax
jge 0x2001d27a
and dword [ebp + 0x6c], 0
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
jle 0x2001d2bb
movzx eax, word [edi]
push eax
call fcn.20004235
pop ecx
xor edx, edx
xor ecx, ecx
test esi, esi
mov word [edi], ax
jle 0x2001d2bb
cmp word [ebx + ecx*2], ax
jne 0x2001d2ff
inc edx
cmp dword [ebp + 0x6c], 0
jle 0x2001d2f9
cmp edx, dword [ebp + 0x6c]
jne 0x2001d2ff
inc ecx
mov dword [ebp + 0x70], ecx
and word [ebp - 0x34], 0
push 0x9e
lea eax, [ebp - 0x32]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x70]
lea eax, [ebp - 0x34]
push 0x20002b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d309
lea edi, [ecx + 1]
mov dword [ebp + 0x70], edi
inc ecx
cmp ecx, esi
jl 0x2001d2a5
jmp 0x2001d2bb
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x2001d311
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
push edi
je 0x2001d391
cmp word [ebx], bp
je 0x2001d391
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3d
push ebx
call edi
mov esi, eax
cmp esi, ebp
je 0x2001d391
mov word [esi], bp
inc esi
push 0x2c
inc esi
push esi
call edi
cmp eax, ebp
je 0x2001d38e
mov word [eax], bp
add eax, 2
push eax
call fcn.2000c372
push esi
mov edi, eax
call fcn.2000c372
push eax
call fcn.200042be
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jl 0x2001d379
cmp esi, ebp
jne 0x2001d37b
mov esi, eax
mov word [edi + esi*2], bp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d394
push ebp
jmp 0x2001d380
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x2001d399
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x2001d472
cmp word [esi], bp
je 0x2001d472
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
call esi
mov ebx, eax
cmp ebx, ebp
je 0x2001d472
mov word [ebx], bp
inc ebx
push 0x2c
inc ebx
push ebx
call esi
mov edi, eax
cmp edi, ebp
je 0x2001d46f
mov word [edi], bp
inc edi
push 0x2c
inc edi
push edi
call esi
mov esi, eax
cmp esi, ebp
je 0x2001d46f
push edi
mov word [esi], bp
call fcn.2000c372
push eax
call fcn.200042be
push ebx
mov ebp, eax
call fcn.2000c372
push eax
call fcn.200042be
add esi, 2
push esi
mov edi, eax
call fcn.2000c372
add esp, 0x14
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, 1
jge 0x2001d431
xor edi, edi
inc edi
cmp edi, eax
jle 0x2001d437
mov edi, eax
cmp ebp, eax
jg 0x2001d440
cmp ebp, 1
jge 0x2001d442
mov ebp, eax
lea ecx, [edi + ebp - 1]
cmp ecx, eax
lea edx, [esi + edi*2 - 2]
jle 0x2001d452
mov ecx, eax
jmp 0x2001d458
test ecx, ecx
jge 0x2001d458
xor ecx, ecx
and word [esi + ecx*2], 0
push edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d475
push ebp
jmp 0x2001d45e
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x2001d47a
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
cmp ebp, ebx
je 0x2001d4e2
cmp word [ebp], bx
je 0x2001d4e2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push ebp
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x2001d4e2
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
mov word [eax], bx
push ebx
add eax, 2
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x2001d4ca
push 0x2e
inc esi
push ebx
inc esi
push esi
call edi
cmp eax, ebx
je 0x2001d4ca
mov word [eax], bx
push esi
call fcn.2000c372
pop ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
jmp 0x2001d4e5
xor eax, eax
inc eax
pop ebp
pop ebx
ret
Function at 0x2001d53a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.200256d0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x2001d660
cmp word [esi], 0
je 0x2001d660
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
call esi
mov edi, eax
test edi, edi
je 0x2001d660
and word [edi], 0
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x2001d660
and word [ebx], 0
and dword [ebp - 4], 0
inc ebx
push 0x2c
inc ebx
push ebx
call esi
mov esi, eax
test esi, esi
je 0x2001d608
inc esi
push ebx
inc esi
call fcn.2000c372
push eax
call fcn.200042be
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jge 0x2001d5c1
and dword [ebp - 8], 0
push esi
call fcn.2000c372
pop ecx
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
jle 0x2001d608
movzx eax, word [edi]
push eax
call fcn.20004235
pop ecx
mov word [edi], ax
xor edx, edx
lea ecx, [esi - 1]
jmp 0x2001d659
cmp word [ebx + ecx*2], ax
jne 0x2001d658
inc edx
cmp dword [ebp - 8], 0
jle 0x2001d652
cmp edx, dword [ebp - 8]
jne 0x2001d658
inc ecx
mov dword [ebp - 4], ecx
and word [ebp - 0x1008], 0
push 0xffe
lea eax, [ebp - 0x1006]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
lea eax, [ebp - 0x1008]
push 0x20002b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d663
lea esi, [ecx + 1]
mov dword [ebp - 4], esi
dec ecx
cmp ecx, 0xffffffff
jg 0x2001d5f2
jmp 0x2001d608
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2001d668
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
push edi
je 0x2001d6eb
cmp word [ebx], 0
je 0x2001d6eb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3d
push ebx
call edi
mov esi, eax
test esi, esi
je 0x2001d6eb
and word [esi], 0
inc esi
push 0x2c
inc esi
push esi
call edi
test eax, eax
je 0x2001d6e7
and word [eax], 0
add eax, 2
push eax
call fcn.2000c372
push esi
mov edi, eax
call fcn.2000c372
push eax
call fcn.200042be
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, 1
jge 0x2001d6cf
mov esi, eax
sub eax, esi
jns 0x2001d6d5
xor eax, eax
lea eax, [edi + eax*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x2001d6ee
push 0
jmp 0x2001d6d9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x2001d6f2
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa0
push edi
mov edi, dword [ebp + 0x7c]
test edi, edi
je 0x2001d773
cmp word [edi], 0
je 0x2001d773
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x2001d773
and word [eax], 0
add eax, 2
push ebx
push eax
call fcn.2000c372
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and word [ebp - 0x2c], 0
push 0x9e
mov ebx, eax
lea eax, [ebp - 0x2a]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x2c]
push 0x20002b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop ebx
jmp 0x2001d776
xor eax, eax
inc eax
pop edi
add ebp, 0x74
leave
ret

Function at 0x2001d77c
Capabilities:
Encode data using xor

Disassembly:
cmp byte [str.PPPPSPPPTPPP], 0x50
jne 0x2001d796
mov eax, str.PPPPSPPPTPPP
mov ecx, 0x5400
xor byte [eax], 0x50
inc eax
dec ecx
jne 0x2001d78f
ret

Function at 0x2001d83d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x208], bx
je 0x2001d8cc
push edi
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.20007e9d
add esp, 0xc
jmp 0x2001d8dc
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2001d8f1
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.2000c61d
mov eax, dword [0x2003f930]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
mov esi, eax
jbe 0x2001d927
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [edx*4 + 0x2003f530]
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x2001d906
xor eax, esi
pop esi
ret
Function at 0x2001d9d0
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2a8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x2003f03c], eax
call fcn.2001d810
push 0x206
mov dword [0x2002db40], eax
lea eax, [ebp - 0x22e]
push ebx
push eax
mov word [ebp - 0x230], bx
call sub.MSVCRT.dll_memset
push ebx
push 1
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.2000d5ac
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, 0x104
push edi
mov esi, 0x2003eba0
push esi
push ebx
mov dword [0x2003f034], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x20003ce8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, 0x2002e1b0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.2000c441
mov dword [esp], 0x200029e8
push 0x20003b14
call fcn.2001d83d
push esi
push 0x20002b44
call fcn.2001d83d
add esp, 0x10
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x230]
push eax
push 0x20002b34
mov word [ebp - 0x22c], bx
call fcn.2001d83d
push 0x9e
lea eax, [ebp - 0x26]
push ebx
push eax
mov word [ebp - 0x28], bx
call sub.MSVCRT.dll_memset
add esp, 0x14
push 0xc
push 0x20001ecc
push 0x2003efd0
call fcn.2000c790
push 9
push 0x20001de4
push 0x2003efb0
call fcn.2000c790
push 0xc
push 0x20001ee4
push 0x2003eff0
call fcn.2000c790
push 0xc
push 0x20001efc
push 0x2003f010
call fcn.2000c790
push 0xd
push 0x20001df8
lea eax, [ebp - 0x28]
push eax
call fcn.2000c790
push edi
mov esi, 0x2003eda8
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x50
lea eax, [ebp - 0x28]
push eax
push 0x2711
push dword [0x2003f03c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28]
push eax
push 0x20003cdc
push 0x20003ccc
push 0x2002dda0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.200161ce
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x2001df98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x410], 0
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x40e]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x208], 0
push esi
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0x2003eba0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.2000c426
mov esi, eax
lea eax, [ebp - 0x208]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x20003cf8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.2000c3c4
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x2001e4c3
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [esi + 0x1c], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
je 0x2001e51e
cmp dword [esi + 0x14], 1
jbe 0x2001e51e
cmp dword [esi + 4], edi
jne 0x2001e51e
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x20008759
push edi
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x2001e517
xor eax, eax
inc eax
jmp 0x2001e520
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x2001f25c
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x2c
push 3
push dword [ebp + 0x7c]
lea eax, [ebp - 0x158]
xor ebx, ebx
push eax
inc ebx
call fcn.2000c4a6
add esp, 0x10
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x2001f40e
movzx eax, word [edi]
test ax, ax
je 0x2001f40e
xor ecx, ecx
cmp ax, 0x24
sete cl
test ecx, ecx
mov dword [ebp + 0x68], ecx
je 0x2001f2b6
inc edi
inc edi
mov esi, dword [ebp + 0x30]
test esi, esi
mov byte [ebp + 0x73], bl
je 0x2001f2eb
cmp word [esi], 0
je 0x2001f2eb
xor bl, bl
movzx eax, bl
shl eax, 4
add eax, 0x20002308
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x2001f2e8
inc bl
cmp bl, 4
jb 0x2001f2c8
jmp 0x2001f2eb
mov byte [ebp + 0x73], bl
movzx esi, byte [ebp + 0x73]
xor ecx, ecx
cmp dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
mov eax, esi
je 0x2001f328
sub eax, ecx
je 0x2001f320
dec eax
je 0x2001f318
dec eax
je 0x2001f310
dec eax
jne 0x2001f357
push edi
call fcn.20016b5a
jmp 0x2001f353
push edi
call fcn.200168c3
jmp 0x2001f353
push edi
call fcn.2001f1b9
jmp 0x2001f353
push edi
call fcn.2001679a
jmp 0x2001f353
sub eax, ecx
je 0x2001f34d
dec eax
je 0x2001f345
dec eax
je 0x2001f33d
dec eax
jne 0x2001f357
push edi
call fcn.20016a60
jmp 0x2001f353
push edi
call fcn.2001697c
jmp 0x2001f353
push edi
call fcn.2001f106
jmp 0x2001f353
push edi
call fcn.2001682d
mov dword [ebp + 0x6c], eax
pop ecx
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x2001f375
cmp word [eax], 0
je 0x2001f375
push dword [ebp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x2001f40e
and word [ebp - 0x78], 0
mov edi, 0x9e
push edi
lea eax, [ebp - 0x76]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
shl esi, 4
add esi, 0x20002308
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0x6c]
call fcn.2000c288
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x2001f3f6
push edi
lea eax, [ebp - 0x116]
push esi
push eax
mov word [ebp - 0x118], si
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
lea eax, [ebp - 0x118]
push eax
push 0x2727
push dword [0x2003f03c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
push dword [0x2002dd6c]
call fcn.2000f82c
add esp, 0x18
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
add ebp, 0x74
leave
ret