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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004196e0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x413a8b
cmp word [esi], bx
je 0x413a8b
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 0x413a8b
mov word [edi], bx
inc edi
push 0x2c
inc edi
push edi
call esi
cmp eax, ebx
je 0x413a8b
mov word [eax], bx
add eax, 2
push eax
call fcn.00406343
pop ecx
push 0x2c
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
call esi
cmp eax, ebx
je 0x4139e8
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 - 4], eax
jge 0x4139e8
mov dword [ebp - 4], 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 - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x413a35
push dword [ebp - 0xc]
call esi
lea ecx, [edi - 1]
xor edx, edx
cmp ecx, 0xffffffff
jle 0x413a35
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
cmp word [esi + ecx*2], ax
jne 0x413a83
inc edx
cmp dword [ebp - 4], ebx
jle 0x413a7d
cmp edx, dword [ebp - 4]
jne 0x413a83
inc ecx
mov dword [ebp - 8], ecx
push 0xffe
lea eax, [ebp - 0x100e]
push ebx
push eax
mov word [ebp - 0x1010], bx
call sub.MSVCRT.dll_memset
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x413a8e
lea esi, [ecx + 1]
mov dword [ebp - 8], esi
dec ecx
cmp ecx, 0xffffffff
jg 0x413a1d
jmp 0x413a35
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413a93
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 0x413b13
cmp word [ebp], di
je 0x413b13
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 0x413b13
mov word [esi], di
inc esi
push 0x2c
inc esi
push esi
call ebx
test eax, eax
je 0x413ae4
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 edi, 1
jge 0x413afb
mov edi, eax
sub eax, edi
jns 0x413b01
xor eax, eax
lea eax, [esi + eax*2]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x413b16
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413b1b
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 0x413b9c
cmp word [edi], 0
je 0x413b9c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x413b9c
and word [eax], 0
add eax, 2
push ebx
push eax
call fcn.00406343
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 0x4019e0
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 0x413b9f
xor eax, eax
inc eax
pop edi
add ebp, 0x74
leave
ret

Function at 0x413bcc
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 0x413c5b
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.00405386
add esp, 0xc
jmp 0x413c6b
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 0x413c80
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x41d42c], eax
call fcn.00413bb6
push 0x206
mov dword [0x41c788], eax
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.004072b1
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, 0x104
push edi
mov esi, 0x41d6f8
push esi
push ebx
mov dword [0x41d43c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x402fc0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, 0x41d450
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.00406424
mov dword [esp], 0x401e80
push 0x402e38
call fcn.00413bcc
push esi
push 0x402e28
call fcn.00413bcc
add esp, 0x10
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
push 0x402e18
mov word [ebp - 0x204], bx
call fcn.00413bcc
push 0xc
push 0x401660
push 0x41d900
call fcn.0040684e
add esp, 0x14
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414a99
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 0x414af4
cmp dword [esi + 0x14], 1
jbe 0x414af4
cmp dword [esi + 4], edi
jne 0x414af4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x405c3a
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 0x414aed
xor eax, eax
inc eax
jmp 0x414af6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x415010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x415092
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 1
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
jbe 0x415091
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov eax, dword [esi]
add eax, 0x10
push eax
call fcn.004033c0
pop ecx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [esi]
push ebx
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push ebx
mov byte [edi + eax], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x415091
cmp dword [esi], 0xc
jbe 0x415091
push dword [ebp + 0x18]
push esi
push edi
call fcn.00414f93
add esp, 0xc
mov edi, eax
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x415527
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x130
push ebx
push esi
push edi
push 0x2c
push 4
push dword [ebp + 0x7c]
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp + 0x70], 1
call fcn.00406477
add esp, 0x10
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x415650
cmp word [esi], bx
je 0x415650
push esi
call fcn.00403642
test eax, eax
pop ecx
je 0x415650
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x415650
cmp word [eax], bx
je 0x415650
push ebx
push ebx
push ebx
push esi
call fcn.0041518a
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x415650
push edi
call fcn.004075f2
movzx eax, al
add esp, 4
lea ecx, [ebp + 0x64]
lea esi, [edi + eax*2]
call fcn.00406040
push 1
push esi
lea ecx, [ebp + 0x64]
call fcn.0040623a
mov eax, dword [ebp + 0x28]
xor esi, esi
cmp eax, ebx
je 0x4155e4
cmp word [eax], bx
je 0x4155e4
push eax
call fcn.00403470
pop ecx
mov esi, eax
and word [ebp - 0x7c], bx
push 0x9e
lea eax, [ebp - 0x7a]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
jge 0x41561b
mov eax, dword [ebp + 0x68]
inc eax
push eax
lea eax, [ebp - 0x7c]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ebx, [ebp - 0x7c]
jmp 0x415633
jne 0x415622
push dword [ebp + 0x68]
jmp 0x415629
dec esi
cmp esi, dword [ebp + 0x68]
jg 0x415633
push esi
lea ecx, [ebp + 0x64]
call fcn.0040605c
mov ebx, eax
push ebx
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call sub.MSVCRT.dll_free
and dword [ebp + 0x70], 0
pop ecx
lea ecx, [ebp + 0x64]
call fcn.00414b69
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x415720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x208]
push 0x402ff8
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415783
xor eax, eax
jmp 0x415807
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x401e64
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call fcn.0040b702
add esp, 0x1c
test eax, eax
jne 0x4157ec
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x208]
push eax
je 0x4157df
call fcn.0041565b
test eax, eax
pop ecx
je 0x4157ec
push 3
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0040b6ad
add esp, 0xc
jmp 0x4157e5
call fcn.0040b65d
pop ecx
test eax, eax
je 0x4157ec
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415783
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415aff
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
mov word [ebp - 0x410], di
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.00403623
pop ecx
lea eax, [ebp - 0x660]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415c05
cmp esi, edi
jbe 0x415c05
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push 0x401e64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x660], 0x10
je 0x415bd2
lea eax, [ebp - 0x634]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x415bec
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call fcn.00415720
add esp, 0xc
jmp 0x415bea
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00415a05
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415b7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x415c0b
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], ebx
call fcn.004072a1
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 2
pop edi
push 0x2c
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x415c69
and word [eax], 0
add eax, edi
push eax
call fcn.00406343
test eax, eax
pop ecx
je 0x415c69
cmp word [eax], 0
je 0x415c69
push eax
call fcn.00403470
mov edi, eax
cmp edi, ebx
pop ecx
jge 0x415c61
mov edi, ebx
jmp 0x415c69
cmp edi, 3
jle 0x415c69
push 3
pop edi
push dword [ebp + 8]
call fcn.00406343
cmp dword [ebp - 8], 0
pop ecx
mov ebx, eax
je 0x415cad
call fcn.0040bb5b
push 1
push 0
call fcn.0040bad3
push 0x10
call fcn.004033c0
push edi
push 0x4030c8
mov dword [0x41c8d8], eax
call fcn.0040b744
add esp, 0x14
test eax, eax
mov dword [ebp - 4], eax
je 0x415e33
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
movzx eax, word [ebx]
cmp ax, 0x24
jne 0x415cc7
mov dword [ebp - 0xc], 1
jmp 0x415cd4
cmp ax, 0x5c
jne 0x415cd8
mov dword [ebp - 0x10], 1
inc ebx
inc ebx
jmp 0x415cb5
push 0x2c
push ebx
call esi
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x415cea
mov word [edi], ax
inc edi
inc edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x218], 0
push esi
lea eax, [ebp - 0x216]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x10], 0
je 0x415dd0
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x628], 0
lea esi, [ebp - 0x628]
je 0x415e33
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push 0x402118
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0040b912
add esp, 0x18
test eax, eax
jne 0x415da0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040b912
test eax, eax
pop ecx
pop ecx
je 0x415dbd
push dword [ebp - 8]
lea eax, [ebp - 0x218]
push dword [ebp - 0xc]
push edi
push eax
call fcn.00415aff
add esp, 0x10
test eax, eax
je 0x415dbd
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x415d5c
jmp 0x415e33
cmp word [ebp - 0x41e], 0x3a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x415e0a
cmp word [ebp - 0x41c], 0x5c
je 0x415e0a
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4030c4
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x218]
push dword [ebp - 0xc]
push edi
push eax
call fcn.00415aff
add esp, 0x10
mov dword [ebp - 4], eax
call fcn.0040ba7f
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x415e4c
push 1
push 1
call fcn.0040bad3
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 4], eax
sete al
leave
ret
Function at 0x416174
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], 0x402fd0
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
xor ecx, ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x4161c8
mov dword [ebp - 4], ebx
jmp 0x416212
cmp ax, 0x40
jne 0x4161d7
mov dword [ebp - 0x54], 0x403140
jmp 0x416212
cmp ax, 0x3d
jne 0x4161e2
mov dword [ebp - 8], edi
jmp 0x416212
cmp ax, 0x5f
jne 0x4161f1
mov dword [ebp - 4], 6
jmp 0x416212
cmp ax, 0x26
jne 0x416200
mov dword [ebp - 4], 3
jmp 0x416212
cmp ax, 0x24
jne 0x41620a
mov edx, edi
jmp 0x416212
cmp ax, 0x23
jne 0x416218
mov ecx, edi
add dword [ebp + 8], 2
jmp 0x4161b7
cmp ecx, ebx
je 0x41626b
push 0x20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x416232
mov word [esi], bx
inc esi
inc esi
push dword [ebp + 8]
call fcn.00403470
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], ebx
call fcn.00416151
add esp, 0xc
cmp eax, ebx
je 0x416264
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
push eax
call fcn.0040d72d
add esp, 0x14
jmp 0x416316
mov eax, edi
jmp 0x416316
cmp edx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
jne 0x4162d4
mov ax, word [ebp - 4]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
je 0x4162c9
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x41d43c]
call edi
cmp dword [ebp - 8], ebx
je 0x4162b7
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, ebx
sete al
cmp eax, ebx
je 0x416303
push ebx
push dword [ebp + 8]
call fcn.00406361
pop ecx
pop ecx
movzx ecx, word [ebp - 4]
push ecx
push ebx
push eax
push dword [ebp + 8]
push 0x403134
push dword [0x41d428]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1f
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x41d43c]
call edi
xor eax, eax
cmp esi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416361
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2c
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
cmp esi, ebx
je 0x416387
mov word [esi], bx
inc esi
inc esi
cmp word [edi], 0x24
jne 0x416398
add edi, 2
push edi
call fcn.0041631b
jmp 0x41639e
push edi
call fcn.00414f61
pop ecx
push 0x206
mov edi, eax
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
push edi
je 0x4163d0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x416419
call fcn.0040692f
pop ecx
mov esi, eax
cmp esi, ebx
push 0x50
lea eax, [ebp - 0x208]
push eax
je 0x4163ec
push 0x2721
jmp 0x4163f1
push 0x2722
push dword [0x41d42c]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x208]
push eax
push edi
push dword [0x41d428]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
cmp esi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41883e
Capabilities:
Get common file path
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.0041518a
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x41887c
xor eax, eax
inc eax
jmp 0x41899d
push esi
push edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x61a]
push ebx
push eax
mov word [ebp - 0x61c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x822]
push ebx
push eax
mov word [ebp - 0x824], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x402e18
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x402e28
call edi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x402e38
call edi
lea eax, [ebp - 0x824]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0xa2c]
push eax
call fcn.00411b19
push dword [ebp - 4]
call fcn.00411a4f
cmp word [ebp - 0x61c], bx
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop ecx
pop ecx
mov edi, eax
je 0x418955
lea eax, [ebp - 0x61c]
push eax
push 0x402e18
call esi
cmp word [ebp - 0x20c], bx
je 0x41896c
lea eax, [ebp - 0x20c]
push eax
push 0x402e28
call esi
cmp word [ebp - 0x414], bx
je 0x418983
lea eax, [ebp - 0x414]
push eax
push 0x402e38
call esi
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4189a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
and word [ebp - 0x804], 0
push ebx
mov ebx, dword [0x41d440]
push esi
push edi
push 0x7fe
xor esi, esi
lea eax, [ebp - 0x802]
push 0
inc esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jle 0x418a3b
cmp word [edi], 0x5c
je 0x4189f1
cmp word [edi + 2], 0x3a
jne 0x418a45
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
push eax
call fcn.0040b986
lea eax, [ebp - 0x804]
push eax
call fcn.00403642
test eax, eax
pop ecx
pop ecx
je 0x418a2d
lea eax, [ebp - 0x804]
push eax
call fcn.0041883e
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x41d440], ebx
pop ebx
leave
ret
test eax, eax
jle 0x418a45
cmp word [edi], 0x5c
je 0x4189f1
lea eax, [ebp - 0x804]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4030c4
lea eax, [ebp - 0x804]
push eax
call esi
push edi
lea eax, [ebp - 0x804]
push eax
call esi
jmp 0x4189ff