joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41171b
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0x402dfc
push 0x402dd0
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 2
push esi
call fcn.00411618
pop ecx
pop ecx
push 3
push 0
push 0
push 0x14
mov esi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test esi, esi
pop esi
jne 0x411767
test eax, eax
jne 0x411767
inc eax
ret
xor eax, eax
ret

Function at 0x4117c7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2a
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
jne 0x4117f5
push 0x2c
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x41185a
and word [esi], 0
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x402e10
push 0x402088
lea eax, [ebp - 0x208]
push 0x402118
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
add esi, 2
push esi
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
jmp 0x41185d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x411bbc
Capabilities:
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa8
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp word [ebp + 0x74], si
push edi
je 0x411bee
movzx eax, word [ebp + 0x74]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x411ca8
movzx esi, word [ebp + 0x74]
jmp 0x411c2a
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 8
pop edi
movzx eax, di
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x411c13
inc edi
cmp di, 0xff
jb 0x411bfa
jmp 0x411c16
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x7c], esi
jne 0x411c1f
test ebx, ebx
je 0x411bee
test ebx, ebx
je 0x411ca8
movzx esi, di
xor edi, edi
cmp si, di
je 0x411ca8
push 0x9e
lea eax, [ebp - 0x3a]
push edi
push eax
mov word [ebp - 0x3c], di
call sub.MSVCRT.dll_memset
mov word [ebp + 0x64], di
xor eax, eax
lea edi, [ebp + 0x66]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x78]
add esp, 0xc
test eax, eax
je 0x411c63
cmp word [eax], 0
je 0x411c63
push eax
jmp 0x411c68
push 0x402e48
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi - 0x60]
cmp ax, 9
ja 0x411c81
add esi, 0xffd0
cmp si, 0x40
jbe 0x411c8d
cmp si, 0x5b
jb 0x411c96
lea eax, [esi - 0x30]
cmp ax, 9
ja 0x411c9a
mov word [ebp + 0x64], si
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
movzx eax, si
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4121c5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x412215
push edi
push 1
push dword [esp + 0x18]
push 0
call fcn.00411bbc
add esp, 0xc
mov edi, eax
nop
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x41d43c]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [esp + 0x18], 0
je 0x41220a
test edi, edi
jne 0x412214
call esi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x4121dc
pop edi
pop esi
pop ebx
ret

Function at 0x412272
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa0]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
push 0x402e6c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
leave
ret

Function at 0x4122ab
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [eax]
test cx, cx
je 0x4122dc
cmp cx, 0x40
jne 0x4122c3
add eax, 2
push eax
jmp 0x4122e1
cmp cx, 0x23
jne 0x4122d4
add eax, 2
push eax
call fcn.0040bf6b
pop ecx
ret
push eax
call fcn.0040bdf5
pop ecx
ret
push 0x41d450
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x412406
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
push pe_nt_image_headers32
push dword [ebp + 8]
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x412564
mov word [eax], bx
add dword [ebp - 8], 2
push 0x23
push dword [ebp - 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x412564
mov word [edi], bx
inc edi
push 0x2a
inc edi
push edi
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
je 0x41245f
add eax, 2
push eax
call fcn.00403470
pop ecx
mov dword [ebp - 0x10], eax
push 2
push 0x402e94
push edi
mov dword [ebp - 0xc], 6
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4124a3
push 0x24
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x4124a3
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp esi, ebx
je 0x41249e
cmp word [esi], 0x4e
jne 0x41249e
xor eax, eax
inc eax
jmp 0x4124a0
xor eax, eax
add dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0040644a
cmp dword [ebp - 0x10], ebx
pop ecx
mov dword [ebp + 8], eax
je 0x4124cb
lea eax, [ebp - 0x10]
push eax
push 0x4122ed
call fcn.004036d3
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x41254c
mov esi, 0x402e88
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x30], bx
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp dword [ebp - 0xc], 6
setne al
shl eax, 8
or eax, 0x24
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [0x41d428]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41252e
push 4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x41253c
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x412560
push pe_nt_image_headers32
push dword [ebp - 8]
push dword [ebp + 8]
push dword [0x41d428]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x412567
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4126ef
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
mov eax, 0x1ca0
call fcn.004196e0
push ebx
push esi
push edi
push 0x2c
xor ebx, ebx
push ebx
push dword [ebp + 0x7c]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, ebx
je 0x41271a
mov word [edi], bx
inc edi
inc edi
push 0x3ff
lea eax, [ebp - 0x42b]
push ebx
push eax
mov byte [ebp - 0x42c], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 0x7c]
lea eax, [ebp - 0x42c]
push eax
call fcn.0040342a
push 0x7ff
lea eax, [ebp - 0xc2b]
push ebx
push eax
mov byte [ebp - 0xc2c], bl
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
call esi
lea ecx, [ebp - 0xc2c]
push ecx
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0040c86a
add esp, 0xc
test eax, eax
je 0x412853
push 0xffe
lea eax, [ebp - 0x1c2a]
push ebx
push eax
mov word [ebp - 0x1c2c], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc2c]
push eax
call esi
push eax
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x1c2c]
push eax
call fcn.0040340d
add esp, 0xc
cmp edi, ebx
je 0x4127ec
lea eax, [ebp - 0x1c2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x412856
push 0x9e
lea eax, [ebp - 0x2a]
push ebx
push eax
mov word [ebp - 0x2c], bx
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x1c2c]
push eax
call fcn.0040692f
add esp, 0x10
mov esi, eax
cmp esi, ebx
push 0x50
lea eax, [ebp - 0x2c]
push eax
je 0x412821
push 0x2721
jmp 0x412826
push 0x271d
push dword [0x41d42c]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c2c]
push eax
push dword [0x41d428]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x412856
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x41285e
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x328
push ebx
push esi
push edi
push 0x2c
push 4
push dword [ebp + 0x7c]
lea eax, [ebp - 0xac]
push eax
call fcn.00406477
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x38]
xor ebx, ebx
cmp word [esi], 0x2a
push 0x206
sete bl
xor edi, edi
lea eax, [ebp - 0x2b2]
push edi
push eax
mov word [ebp - 0x2b4], di
call sub.MSVCRT.dll_memset
add esp, 0x1c
cmp ebx, edi
je 0x4128dc
inc esi
inc esi
push esi
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0x3c]
lea eax, [ebp - 0x2b4]
push edi
push eax
call fcn.0041258f
add esp, 0xc
jmp 0x41293e
xor ebx, ebx
cmp word [esi], 0x26
sete bl
cmp ebx, edi
je 0x4128eb
inc esi
inc esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2b4]
push eax
call esi
push 0x9e
lea eax, [ebp - 0x6a]
push edi
push eax
mov word [ebp - 0x6c], di
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x40], edi
je 0x412921
push dword [ebp + 0x40]
lea eax, [ebp - 0x6c]
push eax
call esi
jmp 0x412927
mov word [ebp - 0x6c], 0x2a
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp - 0x2b4]
push eax
call fcn.004125f2
add esp, 0x10
cmp dword [ebp + 0x34], edi
pop edi
pop esi
pop ebx
je 0x412950
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
add ebp, 0x74
leave
ret
Function at 0x413106
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb4
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
cmp word [eax], 0x23
push ebx
sete cl
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
push 0x3d
mov dword [ebp + 0x70], ecx
movzx ecx, cl
lea edi, [eax + ecx*2]
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x4132ae
and word [ebx], 0
inc ebx
push edi
inc ebx
call fcn.00406343
pop ecx
mov dword [ebp + 0x7c], eax
lea eax, [ebx + 2]
push 0x2b
push eax
call esi
mov edi, eax
test edi, edi
jne 0x41318a
push 0x2d
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x41318a
push 0x2a
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x41318a
push 0x2f
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4132ae
movzx esi, word [edi]
and word [edi], 0
push ebx
call fcn.00406343
add edi, 2
push edi
mov ebx, eax
call fcn.00406343
pop ecx
xor edi, edi
cmp dword [ebp + 0x70], edi
pop ecx
mov dword [ebp + 0x68], eax
push ebx
je 0x413235
call fcn.00403470
push dword [ebp + 0x68]
mov edi, eax
call fcn.00403470
pop ecx
xor ebx, ebx
cmp si, 0x2b
pop ecx
mov ecx, eax
jne 0x4131d3
lea ebx, [ecx + edi]
jmp 0x4131f9
cmp si, 0x2d
jne 0x4131df
sub edi, ecx
mov ebx, edi
jmp 0x4131f9
cmp si, 0x2a
jne 0x4131ec
imul ecx, edi
mov ebx, ecx
jmp 0x4131f9
cmp si, 0x2f
jne 0x4131f9
mov eax, edi
cdq
idiv ecx
mov ebx, eax
and word [ebp - 0x40], 0
push 0x9e
lea eax, [ebp - 0x3e]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x40]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x4132b1
call fcn.00406788
fstp qword [ebp + 0x60]
push dword [ebp + 0x68]
call fcn.00406788
fldz
cmp si, 0x2b
fstp qword [ebp + 0x6c]
pop ecx
pop ecx
jne 0x413257
fadd qword [ebp + 0x60]
jmp 0x41326b
cmp si, 0x2d
jne 0x413262
fsubr qword [ebp + 0x60]
jmp 0x41326b
cmp si, 0x2a
jne 0x413270
fmul qword [ebp + 0x60]
fstp qword [ebp + 0x6c]
jmp 0x41327d
cmp si, 0x2f
jne 0x41327b
fdivr qword [ebp + 0x60]
jmp 0x41326b
fstp st(0)
push 0x9e
lea eax, [ebp - 0x3e]
push edi
push eax
mov word [ebp - 0x40], di
call sub.MSVCRT.dll_memset
fld qword [ebp + 0x6c]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 4
push ecx
push ecx
fstp qword [esp]
call fcn.004067bb
add esp, 0x10
jmp 0x413221
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x4132b9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x410
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x4133bd
cmp word [eax], bx
je 0x4133bd
push 0x3d
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x4133bd
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 0x41330c
mov word [eax], bx
jmp 0x413320
push esi
call edi
cmp eax, 1
jbe 0x413320
cmp word [esi + 2], 0x3a
je 0x413320
mov esi, 0x401e80
push esi
call fcn.00406343
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 0x413355
cmp word [esi + 2], 0x3a
jne 0x41335d
push esi
call edi
cmp eax, 2
jae 0x41338a
cmp esi, ebx
je 0x413383
cmp word [esi], bx
je 0x413383
push esi
push 0x41d450
lea eax, [ebp - 0x410]
push 0x401e64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x413398
push 0x41d450
jmp 0x41338b
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.00406424
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 0x4133c8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x4133cc
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 0x402f94
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 0x413464
cmp word [eax], di
je 0x413464
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x413474
lea eax, [ebp - 0x244]
push 0x402f84
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 0x413491
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 0x4135d2
cmp word [esi], bx
je 0x4135d2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x4135d2
mov word [eax], bx
add eax, 2
push edi
push eax
call fcn.00406343
mov esi, eax
cmp esi, ebx
pop ecx
je 0x41353e
cmp word [esi], bx
je 0x41353e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jbe 0x413510
cmp word [esi + 2], 0x3a
jne 0x413510
push esi
call edi
cmp eax, 2
jbe 0x4135c0
mov word [esi + 4], bx
jmp 0x4135c0
push 0x9e
lea eax, [ebp - 0x2a]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [0x41d450]
mov word [ebp - 0x2c], ax
mov ax, word [0x41d452]
add esp, 0xc
mov word [ebp - 0x2a], ax
lea esi, [ebp - 0x2c]
jmp 0x4135c0
push 0x206
lea eax, [ebp - 0x232]
push ebx
push eax
mov word [ebp - 0x234], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
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 0x4135a5
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 0x413581
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, ebx
jbe 0x4135ba
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 0x4135d5
xor eax, eax
inc eax
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x4135dc
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x413649
cmp word [ebx], di
je 0x413649
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, edi
je 0x413649
mov word [eax], di
add eax, 2
push esi
push eax
call fcn.00406343
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
pop ecx
push 0x5c
push edi
push eax
call esi
cmp eax, edi
je 0x41362d
mov word [eax], di
add eax, 2
push eax
call fcn.00406343
pop ecx
push 0x2e
push edi
push eax
call esi
cmp eax, edi
pop esi
je 0x41363a
inc eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x41364c
xor eax, eax
inc eax
pop edi
pop ebx
ret
Function at 0x41364f
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x413774
cmp word [esi], bx
je 0x413774
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
cmp edi, ebx
je 0x413774
mov word [edi], bx
inc edi
push 0x2c
inc edi
push edi
call esi
cmp eax, ebx
je 0x413774
mov word [eax], bx
add eax, 2
push eax
call fcn.00406343
pop ecx
push 0x2c
push eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x70], 1
call esi
cmp eax, ebx
je 0x4136e0
mov word [eax], bx
add eax, 2
push eax
call fcn.00406343
push eax
call fcn.00403470
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
jge 0x4136e0
mov dword [ebp + 0x70], ebx
push edi
call fcn.00406343
mov esi, dword [sym.imp.USER32.dll_CharUpperW]
pop ecx
push eax
call esi
push eax
mov dword [ebp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x6c], ebx
jle 0x41372b
push dword [ebp + 0x68]
call esi
xor edx, edx
xor ecx, ecx
cmp edi, ebx
jle 0x41372b
movzx eax, word [eax]
mov esi, dword [ebp + 0x64]
cmp word [esi + ecx*2], ax
jne 0x41376d
inc edx
cmp dword [ebp + 0x70], ebx
jle 0x413767
cmp edx, dword [ebp + 0x70]
jne 0x41376d
inc ecx
mov dword [ebp + 0x6c], ecx
push 0x9e
lea eax, [ebp - 0x3a]
push ebx
push eax
mov word [ebp - 0x3c], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 0x6c]
lea eax, [ebp - 0x3c]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x413777
lea esi, [ecx + 1]
mov dword [ebp + 0x6c], esi
inc ecx
cmp ecx, edi
jl 0x413713
jmp 0x41372b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x41377f
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x4137fe
cmp word [ebp], di
je 0x4137fe
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3d
push ebp
call ebx
mov esi, eax
cmp esi, edi
je 0x4137fe
mov word [esi], di
inc esi
push 0x2c
inc esi
push esi
call ebx
test eax, eax
je 0x4137d0
and word [eax], di
add eax, 2
push eax
call fcn.00406343
push eax
call fcn.00403470
pop ecx
pop ecx
mov edi, eax
push esi
call fcn.00406343
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jl 0x4137e8
test edi, edi
jne 0x4137ea
mov edi, eax
and word [esi + edi*2], 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x413801
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413806
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x4138df
cmp word [esi], 0
je 0x4138df
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 0x4138df
and word [ebx], 0
inc ebx
push 0x2c
inc ebx
push ebx
call esi
mov edi, eax
test edi, edi
je 0x4138df
and word [edi], 0
inc edi
push 0x2c
inc edi
push edi
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x413882
and word [eax], 0
add eax, 2
push eax
call fcn.00406343
push eax
call fcn.00403470
pop ecx
pop ecx
mov dword [ebp - 4], eax
push edi
call fcn.00406343
push eax
call fcn.00403470
push ebx
mov esi, eax
call fcn.00406343
add esp, 0xc
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, 1
jge 0x4138aa
xor esi, esi
inc esi
cmp esi, eax
jle 0x4138b1
lea esi, [eax + 1]
cmp dword [ebp - 4], eax
jg 0x4138bc
cmp dword [ebp - 4], 0
jne 0x4138bf
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, esi
and word [edi + eax*2 - 2], 0
lea eax, [edi + esi*2 - 2]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x4138e2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4138e7
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
cmp ebp, ebx
je 0x41394f
cmp word [ebp], bx
je 0x41394f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push ebp
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x41394f
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 0x413937
push 0x2e
inc esi
push ebx
inc esi
push esi
call edi
cmp eax, ebx
je 0x413937
mov word [eax], bx
push esi
call fcn.00406343
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 0x413952
xor eax, eax
inc eax
pop ebp
pop ebx
ret