joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2b6530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x2b6553
mov eax, 1
jmp 0x2b665e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x2b6569
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x2b6573
mov eax, 2
jmp 0x2b665e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x2b659e
mov eax, 1
jmp 0x2b665e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x2b65c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x2b65c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x2b65ce
mov eax, 2
jmp 0x2b665e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.002c8a10
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x2b660f
mov eax, 3
jmp 0x2b665e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x2b665c
mov eax, 1
jmp 0x2b665e
xor eax, eax
pop ebp
ret

Function at 0x2b7000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x2b7016
xor eax, eax
jmp 0x2b7056
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x2b703b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x2b703f
xor eax, eax
jmp 0x2b7056
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.002b7060
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x2c9750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x2c9780
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x2c9793
xor eax, eax
jmp 0x2c9851
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x2c97ae
xor eax, eax
jmp 0x2c9851
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x2c97cc
xor eax, eax
jmp 0x2c9851
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x2c980e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x2c984f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.002c8a30
add esp, 8
test eax, eax
jne 0x2c984d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x2c9851
jmp 0x2c9805
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402f20
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x402f46
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x402f5d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00407510
add esp, 4
or eax, 0xffffffff
jmp 0x402f5f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406d80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4312f8]
jne 0x406d8a
repz ret
jmp fcn.00414060

Function at 0x40c410
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40c41d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40c418
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40c402
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40c40a
cmp edx, ebx
jne 0x40c558
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add al, byte [ebx]
enter 0x4d39, 8
add al, byte [ebx]
enter 0x4d39, 8
jb 0x40c3d9
add eax, dword [eax + 4]
jmp 0x40c3c6
mov dword [ebp + 0xc], ebx
jmp 0x40c428
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40c440
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40c45e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40c4bc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c4a3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c4ac
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c4b6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c498
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40c422
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40c509
dec eax
je 0x40c500
sub eax, 3
je 0x40c4f7
mov dword [ebp - 4], 0x40
jmp 0x40c526
mov dword [ebp - 4], 4
jmp 0x40c50c
mov dword [ebp - 4], 0x20
jmp 0x40c50c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40c558
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40c4d8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040bd69
dec ebp
cld
stosb byte es:[edi], al
hlt
Function at 0x40c630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040bd79
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040bd2e
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040bd79
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040bd2e
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040bd69
cmp dword [ebp - 0x67], esp
aaa
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], pe_nt_image_headers32
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040bd79
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040bd2e
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040bd69
inc esi
into
xchg dword [eax + eax*4 - 0x5b], ecx
pushfd
stc
invalid
Function at 0x41fa00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x84070c], eax
mov byte [0x44dca0], 0
push str.WirteosBriclsk
push 0x44dca0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [0x44dca0], 0x56
mov byte [0x44dca4], 0x75
mov byte [0x44dca5], 0x61
mov byte [0x44dca6], 0x6c
mov dword [ebp - 8], 0x40
mov byte [0x44dca7], 0x50
mov byte [0x44dca9], 0x6f
mov byte [0x44dcaa], 0x74
mov byte [0x44dcab], 0x65
mov byte [0x44dcac], 0x63
mov byte [0x44dcad], 0x74
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x840e08]
push edx
mov eax, dword [0x44eb9c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x41fab0
Capabilities:
Connect pipe
Get thread local storage value
Read file on windows
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
cmp dword [0x840e08], 0x37
jne 0x41fb64
push 0
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
lea ecx, [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
mov eax, dword [0x840e0c]
add dword [ebp - 4], eax
mov eax, 0x8c456
add dword [ebp - 4], eax
mov eax, dword [0x44eb9c]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [eax], dl
mov esp, ebp
pop ebp
ret 4
Function at 0x41fee0
Capabilities:
Get common file path
Get memory capacity
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
push 0x4320e0
mov eax, dword [0x840e08]
push eax
mov ecx, dword [0x44eb9c]
push ecx
call fcn.0041fdf0
mov dword [ebp - 4], 0
jmp 0x41ff12
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x3e7a3
jge 0x41ff52
cmp dword [0x840e08], 0x10
jne 0x41ff3a
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp dword [ebp - 4], 0x4f3b3
jne 0x41ff50
call fcn.0041faa0
jmp 0x41ff09
mov dword [ebp - 0xc], 0
jmp 0x41ff64
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xdd9a7
jge 0x41ff8d
cmp dword [0x840e08], 0xfe9
jne 0x41ff8b
lea edx, [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x41ff5b
call dword [0x44eb9c]
cmp dword [0x840e08], 0x1144
jne 0x42004a
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [ebp - 0x82c], 0
xor eax, eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x410]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
lea edx, [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
lea eax, [ebp - 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x414fc1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x9c]
test edx, edx
je 0x457c02
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x414fde
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x457c11
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x415019
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x415017
Function at 0x415dd7
Capabilities:
Get common file path

Disassembly:
push 0xf4
mov eax, 0x44acb7
call fcn.0043bc61
mov ebx, ecx
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xb0], 0x401524
call fcn.004253b2
xor esi, esi
mov dword [ebp - 0xb0], 0x4014c0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x2001f
push 0x406f70
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], esi
call fcn.00429520
lea eax, [ebp - 0xbc]
push eax
push 0x407810
lea ecx, [ebp - 0xb0]
call fcn.00424f28
test eax, eax
jne 0x415f43
mov ecx, dword [ebx + 0x58]
push dword [ecx]
call fcn.0043579d
mov ebx, eax
lea eax, [ebp - 0xb4]
push eax
push esi
push esi
push 0x408f64
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0x415f43
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xb8]
call fcn.00423364
mov byte [ebp - 4], 1
push dword [ebp - 0xb4]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00423441
mov byte [ebp - 4], 2
jmp 0x415ed2
cmp dword [edi + 4], 2
jne 0x415ed2
mov eax, dword [edi]
push 0x407c18
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4582f7
test ebx, ebx
je 0x415ef7
mov eax, dword [ebp - 0xc0]
mov edi, ebx
push ebx
mov ecx, dword [eax + 0x58]
call fcn.00435756
cmp dword [edi + 0x2c], 0
mov ebx, eax
mov dword [ebp - 0xbc], ebx
je 0x415ed2
jmp 0x415eb3
mov ecx, dword [ebp - 0xcc]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0xd0]
lea ecx, [ecx - 0x10]
call fcn.00429900
mov ecx, dword [ebp - 0xe0]
test ecx, ecx
je 0x415f35
mov edx, dword [ebp - 0xdc]
call fcn.0042628e
push dword [ebp - 0xe0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 0xb8]
lea ecx, [ecx - 0x10]
call fcn.00429900
lea ecx, [ebp - 0xb0]
call fcn.0042535f
call fcn.0043bc10
ret
cmp dword [edi + 4], 1
jbe 0x458390
mov eax, dword [edi]
lea ecx, [ebp - 0x100]
add eax, 8
push eax
call fcn.00423441
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.0042a36c
mov byte [ebp - 4], 2
mov edi, eax
mov ecx, dword [ebp - 0xec]
add ecx, 0xfffffff0
call fcn.00429900
mov ecx, dword [ebp - 0xf0]
add ecx, 0xfffffff0
call fcn.00429900
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x458368
mov edx, dword [ebp - 0xfc]
call fcn.0042628e
push dword [ebp - 0x100]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0xb0]
test edi, edi
sete bl
inc ebx
or ebx, esi
push ebx
push 0x407810
call fcn.00414f81
mov esi, ebx
mov ebx, dword [ebp - 0xbc]
jmp 0x415ed2
mov ecx, 0x80070057
call fcn.0045fefb
int3
Function at 0x417450
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a1318], 0
je 0x41747c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b590
leave
ret
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x801c
push eax
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
jne 0x417470
lea eax, [ebp - 0x20c]
push eax
push 0x407ccc
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x458953
mov byte [0x4a1318], 1
jmp 0x41746e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x417470
movzx eax, ax
or eax, 0x80070000
jmp 0x417470
Function at 0x41a11f
Capabilities:
Get disk information

Disassembly:
push 0x224
mov eax, 0x44b4ee
call fcn.0043bc61
mov ebx, ecx
push dword [ebx + 0x30]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1f4]
call fcn.004234c2
xor edi, edi
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 4], edi
push dword [ebx + 0x2c]
call fcn.004234c2
mov byte [ebp - 4], 1
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00429040
lea esi, [eax + 0x10]
mov dword [ebp - 0x1ec], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ec]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0042e686
movzx eax, ax
cmp eax, 0x2a
je 0x458bcf
cmp eax, 0x2f
jne 0x458be2
lea ecx, [ebp - 0x230]
call fcn.0042584c
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x54]
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.0041a3d3
test eax, eax
jne 0x458c0f
cmp dword [ebp - 0x21c], eax
je 0x41a23e
push esi
lea ecx, [ebp - 0x1e8]
call fcn.004234c2
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
push edi
push dword [ebp - 0x1e8]
call fcn.0041a243
push dword [ebp - 0x1e8]
lea edi, [eax + 0x7ff8fffb]
neg edi
sbb edi, edi
and edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x230]
call fcn.0042224a
lea ecx, [esi - 0x10]
call fcn.00429900
push dword [ebp - 0x1f0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x1f4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.0043bc10
ret 4
xor edi, edi
inc edi
jmp 0x41a1c9
mov eax, dword [esi - 0xc]
push ecx
dec eax
lea ecx, [ebp - 0x1ec]
push eax
call fcn.0048507a
jmp 0x458c04
cmp eax, 0x5c
je 0x41a194
mov esi, 0x406fdc
mov ecx, esi
call fcn.00423980
push eax
push esi
lea ecx, [ebp - 0x1ec]
call fcn.00423812
mov esi, dword [ebp - 0x1ec]
jmp 0x41a194
cmp eax, 1
jne 0x41a1c9
push ecx
lea ecx, [ebp - 0x1e4]
call fcn.0042f0d7
push ecx
push esi
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 4
call fcn.0042a43d
test eax, eax
js 0x458c3e
or word [ebp - 0x2e], 0x20
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.0042beea
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x204]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00423364
push 3
lea eax, [ebp - 0x1f8]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1e8]
call fcn.004224ed
push eax
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 6
call fcn.004258e2
mov ecx, dword [ebp - 0x1f8]
lea ecx, [ecx - 0x10]
call fcn.00429900
push 0xa
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x1e8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1e8]
neg eax
sbb edi, edi
add ecx, 0xfffffff0
not edi
and edi, 1
call fcn.00429900
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 3
call fcn.004220ba
jmp 0x41a1c9
Function at 0x41a7a9
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push dword [ecx + 0x14]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0x406bc0
push 0x10
push eax
xor bl, bl
call fcn.0041d6f4
add esp, 0x10
test eax, eax
js 0x41a80e
lea eax, [ebp - 0x2c]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 2
push ecx
push esi
call fcn.0043fa36
test eax, eax
jne 0x41a80e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
jne 0x41a805
inc bl
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b590
leave
ret 4

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

Disassembly:
push 0x818
mov eax, 0x448416
call fcn.0043bc61
mov edi, ecx
test edi, edi
je 0x41b4e2
xor ebx, ebx
cmp word [edi], bx
je 0x41b4e2
push ebx
push ebx
push 0x406934
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov edx, edi
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
cmp cx, bx
jne 0x41b41e
sub edx, esi
lea ecx, [ebp - 0x824]
sar edx, 1
lea esi, [eax + 0x104]
add esi, edx
call fcn.0041b51c
push esi
push esi
mov dword [ebp - 4], ebx
call fcn.0042e5c5
push eax
mov ebx, 0x406934
push ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x824]
call fcn.0042e58d
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
mov esi, dword [eax + 0x10]
mov ecx, esi
push 0x406940
call dword [0x4a3670]
lea ecx, [ebp - 0x824]
call esi
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
mov esi, dword [eax + 0x10]
mov ecx, esi
push edi
call dword [0x4a3670]
lea ecx, [ebp - 0x824]
call esi
push dword [ebp - 0x820]
push ebx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x45123b
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x824], 0x40100c
test eax, eax
je 0x41b4e2
lea ecx, [ebp - 0x814]
cmp eax, ecx
jne 0x451252
xor eax, eax
call fcn.0043bc10
ret
mov ecx, dword [ebp + 4]
mov edx, 0x92
push 0x8000ffff
push 0x40a448
call fcn.0043f81b
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x41b4e2