joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406849
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x406fed
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
jne 0x40703a
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
jmp 0x407072
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0xe8], ecx
ret
Function at 0x409bc8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00420160
and word [ebp - 0x2000], 0
push esi
push edi
mov esi, 0xffe
push esi
lea eax, [ebp - 0x1ffe]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x1000], 0
push esi
lea eax, [ebp - 0xffe]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call esi
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov edi, eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x409c64
test edi, edi
jne 0x409c1f
test edi, edi
lea eax, [ebp - 0x1000]
jne 0x409c74
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 0xc]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x409c80
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa74
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push edi
mov ebx, 0x402510
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x409d96
and word [ebp - 0x664], ax
push 0x40e
push eax
lea eax, [ebp - 0x662]
push eax
call sub.MSVCRT.dll_memset
push 0x208
lea eax, [ebp - 0x664]
push eax
push 0x4024a8
call fcn.00409bc8
add esp, 0x18
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
test eax, eax
mov dword [ebp - 4], eax
je 0x409e6c
cmp eax, 0xffffffff
je 0x409e6c
lea eax, [ebp - 0x664]
push eax
call fcn.00403cb6
pop ecx
test byte [ebp - 0x254], 0x10
je 0x409d71
lea eax, [ebp - 0x228]
push eax
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x409d71
and word [ebp - 0xa74], ax
push 0x40e
push eax
lea eax, [ebp - 0xa72]
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xa74]
push 0x402494
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0xa74]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x409d85
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x409d0b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
test edi, edi
je 0x409e6c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x402484
push edi
call esi
push 0x402474
push edi
mov dword [0x42284c], eax
call esi
push 0x402460
push edi
mov dword [0x422850], eax
call esi
push 0x40244c
push edi
mov dword [0x422854], eax
call esi
push 0x402438
push edi
mov dword [0x42285c], eax
call esi
push 0x402424
push edi
mov dword [0x422858], eax
call esi
push 0x402410
push edi
mov dword [0x422860], eax
call esi
push 0x4023fc
push edi
mov dword [0x422868], eax
call esi
push 0x4023e8
push edi
mov dword [0x422864], eax
call esi
push 0x4023d4
push edi
mov dword [0x42286c], eax
call esi
push 0x4023bc
push edi
mov dword [0x422870], eax
call esi
push 0x4023a4
push edi
mov dword [0x422874], eax
call esi
push 0x40238c
push edi
mov dword [0x422878], eax
call esi
push 0x402370
push edi
mov dword [0x42287c], eax
call esi
push 0x402350
push edi
mov dword [0x422880], eax
call esi
push 0x40232c
push edi
mov dword [0x422884], eax
call esi
mov dword [0x422888], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a4ae
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x402590
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x40a511
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40257c
push eax
call edi
push 0x40256c
push dword [esi]
mov dword [esi + 4], eax
call edi
push 0x402554
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x402540
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x402534
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push 0x402528
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x40ab36
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
lea edi, [eax + eax + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
test esi, esi
je 0x40aba1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40ab9b
push edi
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40ab9b
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x40ab9b
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret

Function at 0x40ae71
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x30]
jne 0x40aea4
mov eax, dword [ebp - 0x38]
shr eax, 0x14
leave
ret

Function at 0x40af26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x42550c], esi
mov dword [ebp - 4], esi
jne 0x40af73
push edi
mov ecx, esi
push 8
shl ecx, 0x18
xor edx, edx
pop edi
mov eax, edx
xor eax, ecx
add edx, edx
test eax, eax
jns 0x40af53
xor edx, 0x4c10db7
add ecx, ecx
dec edi
jne 0x40af43
mov dword [esi*4 + 0x425108], edx
inc esi
cmp esi, 0x100
jl 0x40af39
mov dword [0x425508], 0x4c10db7
pop edi
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
pop esi
jbe 0x40afa0
mov eax, dword [ebp + 8]
movzx eax, byte [ecx + eax]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, edx
mov edx, dword [ebp - 4]
shl edx, 8
xor edx, dword [eax*4 + 0x425108]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jb 0x40af7b
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40afa5
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
cmp dword [0x425910], edx
push ebx
push esi
jne 0x40aff6
mov esi, 0x425510
push edi
xor eax, eax
mov ah, dl
push 8
pop edi
movzx ecx, ax
xor eax, eax
mov ebx, ecx
xor ebx, eax
add eax, eax
test bx, bx
jns 0x40afd6
xor eax, 0x8005
movzx eax, ax
add ecx, ecx
dec edi
jne 0x40afc3
movzx eax, ax
mov dword [esi], eax
inc edx
add esi, 4
cmp dx, 0x100
jb 0x40afb7
mov dword [0x425910], 0x8005
pop edi
xor ecx, ecx
xor eax, eax
cmp dword [esp + 0x10], ecx
jbe 0x40b026
mov edx, dword [esp + 0xc]
movzx edx, byte [ecx + edx]
xor ebx, ebx
movzx esi, ax
mov bh, al
shr esi, 8
xor edx, esi
xor bx, word [edx*4 + 0x425510]
inc ecx
cmp ecx, dword [esp + 0x10]
movzx eax, bx
jb 0x40b000
pop esi
pop ebx
ret
Function at 0x40b210
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x40b28b
cmp word [esi], bx
je 0x40b28b
push edi
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, ebx
je 0x40b281
cmp edi, 0xffffffff
je 0x40b281
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40b275
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40b27b
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40b256
jmp 0x40b281
mov ebx, dword [ebp - 0x224]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
jmp 0x40b29a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.0040b1cc
pop ecx
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40b2a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x2c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x40b2c4
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
movzx ecx, word [esi]
test cx, cx
mov edi, eax
mov dword [ebp - 4], edi
je 0x40b346
push ebx
cmp cx, 0x2b
sete al
inc esi
inc esi
movzx ecx, word [esi]
xor edx, edx
cmp cx, 0x41
sete dl
xor ebx, ebx
cmp cx, 0x53
sete bl
lea edx, [ebx + edx*8]
xor ebx, ebx
cmp cx, 0x48
sete bl
lea edx, [ebx + edx*2]
xor ebx, ebx
cmp cx, 0x52
sete bl
lea ecx, [ebx + edx*2]
test ecx, ecx
je 0x40b324
test al, al
je 0x40b320
or edi, ecx
jmp 0x40b324
not ecx
and edi, ecx
inc esi
inc esi
movzx ecx, word [esi]
test cx, cx
jne 0x40b2db
cmp dword [ebp - 4], edi
pop ebx
je 0x40b346
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
jmp 0x40b348
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b3a9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x86c]
push 0x402604
push eax
xor edi, edi
xor ebx, ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
test eax, eax
mov dword [ebp - 4], eax
je 0x40b48d
cmp eax, 0xffffffff
je 0x40b48d
test byte [ebp - 0x254], 0x10
je 0x40b45b
lea eax, [ebp - 0x228]
push eax
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x40b46c
and word [ebp - 0x45c], ax
push 0x206
push eax
lea eax, [ebp - 0x45a]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push 0x4025f8
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0040b3a9
add esp, 0x20
add edi, eax
adc ebx, edx
jmp 0x40b46c
mov eax, dword [ebp - 0x234]
sub eax, dword [ebp - 0x238]
add edi, eax
adc ebx, 0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40b3fb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
leave
ret

Function at 0x40b496
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040acda
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x40b5b5
cmp word [esi], bx
je 0x40b5b5
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x40b5b5
mov word [eax], bx
add eax, 2
push edi
push eax
call fcn.0040ac04
mov edi, eax
mov dword [esp], 0x40e
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
add esp, 0xc
push edi
call esi
cmp eax, 1
jbe 0x40b511
cmp word [edi + 2], 0x3a
jne 0x40b519
push edi
call esi
cmp eax, 2
jae 0x40b546
cmp edi, ebx
je 0x40b53f
cmp word [edi], bx
je 0x40b53f
push edi
push 0x423450
lea eax, [ebp - 0x410]
push 0x4025f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40b554
push 0x423450
jmp 0x40b547
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.0040acda
lea eax, [ebp - 0x410]
push eax
call fcn.00403cfd
pop ecx
pop ecx
test eax, eax
pop edi
lea eax, [ebp - 0x410]
push eax
je 0x40b581
call fcn.0040b3a9
jmp 0x40b586
call fcn.0040b34c
pop ecx
push edx
push eax
lea eax, [ebp - 0x410]
push 0x402614
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x40b5c0
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x40ba39
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.00420160
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
cmp word [edi], bx
jne 0x40bb48
cmp dword [ebp + 0x10], ebx
je 0x40bb39
and word [ebp - 0x1800], si
push 0xffe
lea eax, [ebp - 0x17fe]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 1
lea edi, [ebx + 0x402038]
push dword [edi]
lea eax, [ebp - 0x1800]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bb28
cmp dword [edi], 0x1a
jne 0x40bab7
push 0x402728
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x800
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call fcn.00409bc8
lea eax, [ebp - 0x800]
push eax
push dword [ebx + 0x40203c]
lea eax, [ebp - 0x1800]
push 0x40271c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
cmp byte [ebp + 0xc], 0
jne 0x40bb15
lea eax, [ebp - 0x800]
push eax
call fcn.00403cfd
test eax, eax
pop ecx
jne 0x40bb15
lea eax, [ebp - 0x800]
push eax
call fcn.0040ba1d
pop ecx
push 0
lea eax, [ebp - 0x1800]
push 0
push eax
call fcn.0040ba39
add esp, 0xc
add ebx, 8
cmp ebx, 0x48
jb 0x40ba62
jmp 0x40bc00
push 0x1388
push 0x402704
jmp 0x40bbf9
cmp byte [ebp + 0xc], 1
mov ebx, 0x402704
jne 0x40bb7d
push edi
push ebx
push 0x402674
lea eax, [ebp - 0x800]
push 0x402494
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x800]
push eax
call fcn.0040b5c4
add esp, 0x18
jmp 0x40bbb0
cmp byte [ebp + 0xc], 2
jne 0x40bbb0
push edi
push ebx
push 0x4026a8
push 0x402680
lea eax, [ebp - 0x800]
push 0x40268c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x800]
push eax
call fcn.0040b5c4
add esp, 0x1c
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x40bbd8
and word [esi], 0
add esi, 2
push esi
call fcn.0040ac04
push edi
mov esi, eax
call fcn.0040ac04
pop ecx
pop ecx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp byte [ebp + 0xc], 1
je 0x40bbf3
cmp byte [ebp + 0xc], 2
jne 0x40bc00
push 0x1388
push ebx
call fcn.0040b999
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40bc07
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x4c4
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
push esi
call fcn.0040466d
cmp eax, 3
pop ecx
je 0x40bc3b
cmp eax, 0x10002
je 0x40bc3b
cmp eax, 0x10001
je 0x40bc3b
cmp eax, 6
jne 0x40bd60
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp - 0x456]
push ebx
push eax
mov word [ebp - 0x458], bx
call sub.MSVCRT.dll_memset
mov eax, dword [0x4027d0]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4027d4]
push 0x98
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [esi]
add esp, 0x18
mov word [ebp - 0x48], ax
push 0x104
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x42], bx
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x40bd60
mov esi, 0x4027c0
push esi
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x40bd60
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp + 0x68]
lea eax, [ecx + eax*2]
push eax
mov dword [ebp + 0x68], eax
call fcn.0040acda
pop ecx
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x40bd60
push edi
lea eax, [ebp - 0x24e]
push ebx
push eax
mov word [ebp - 0x250], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 0x68]
lea eax, [ebp - 0x250]
push esi
push dword [ebp + 0x7c]
push 0x4027b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
cmp dword [ebp + 0x78], ebx
push 4
sete al
pop ebx
push ebx
mov edi, SysReAllocString
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x78]
push eax
push ebx
push 0x402798
lea eax, [ebp - 0x250]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x40277c
lea eax, [ebp - 0x250]
push eax
push edi
call esi
xor eax, eax
jmp 0x40bd63
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret

Function at 0x40bd80
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
inc edi
test eax, eax
jne 0x40bda2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, eax
mov dword [esi], eax
je 0x40bdaf
and eax, 0xffffffd8
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x40bec3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x3b6]
push ebx
push eax
mov word [ebp - 0x3b8], bx
call sub.MSVCRT.dll_memset
push 0x2c
push 4
push dword [ebp + 8]
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040ad20
add esp, 0x1c
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x40c076
cmp word [eax], bx
je 0x40c076
mov esi, dword [ebp - 0x50]
cmp esi, ebx
je 0x40c048
cmp word [esi], bx
je 0x40c048
push esi
call fcn.00403cd5
test eax, eax
pop ecx
je 0x40c048
lea eax, [ebp - 4]
push eax
push esi
call fcn.00403c32
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40c05f
push 0x23
push 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 8], 1
call fcn.0040ad20
add esp, 0x10
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x40bf9c
cmp word [eax], bx
je 0x40bf9c
push eax
call fcn.00403b00
pop ecx
mov esi, eax
jmp 0x40bf9e
mov esi, ebx
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x40bfc2
cmp word [eax], bx
je 0x40bfc2
push eax
call fcn.00403b00
pop ecx
mov dword [ebp - 8], eax
push 0x28
pop eax
cmp dword [ebp - 8], eax
jbe 0x40bfc2
mov dword [ebp - 8], eax
cmp esi, ebx
jl 0x40c025
cmp esi, dword [ebp - 4]
jae 0x40c025
mov edi, dword [ebp - 8]
cmp edi, ebx
jle 0x40c03d
push 0x9e
lea eax, [ebp - 0x12e]
push ebx
push eax
mov word [ebp - 0x130], bx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
movzx eax, byte [esi + eax]
push eax
lea eax, [ebp - 0x130]
push 0x402634
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc esi
dec edi
cmp esi, dword [ebp - 4]
jb 0x40bfce
jmp 0x40c03d
push dword [ebp - 4]
lea eax, [ebp - 0x3b8]
push 0x4025ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x40c05f
push 0xffffffffffffffff
lea eax, [ebp - 0x3b8]
push 0x402624
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3b8]
push eax
call fcn.0040ac04
pop ecx
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40c07e
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x540
push ebx
push esi
push edi
push 0x2c
push 2
push dword [ebp + 0x7c]
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040ad20
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x7c]
call fcn.0040ac04
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x40c2a2
movzx esi, word [eax]
cmp si, bx
je 0x40c2a2
xor eax, eax
cmp si, 0x2a
sete al
mov edi, 0x206
push edi
push ebx
mov word [ebp - 0x284], bx
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x282]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x4027d0]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4027d4]
push 0x98
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x78]
mov word [ebp - 0x3c], si
mov word [ebp - 0x36], bx
call fcn.0040ac04
push eax
call fcn.00403b00
push 0x402880
push 0x402828
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x284]
push 0x40280c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
call fcn.0040ba0d
test eax, eax
je 0x40c226
cmp dword [ebp + 0x70], 0x1e
jbe 0x40c164
mov dword [ebp + 0x70], 0xa
xor eax, eax
cmp dword [ebp + 0x70], ebx
sete al
mov dword [ebp + 0x64], eax
xor eax, eax
cmp dword [ebp + 0x6c], 1
sete al
cmp eax, ebx
jne 0x40c1a2
lea eax, [ebp - 0x3c]
push eax
call fcn.0040466d
cmp eax, 3
pop ecx
je 0x40c1a2
cmp eax, 6
je 0x40c1a2
cmp eax, 0x10002
je 0x40c1a2
cmp eax, 0x10001
jne 0x40c2a2
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
pop ebx
push ebx
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0x4027e8
lea eax, [ebp - 0x284]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
cmp dword [ebp + 0x6c], 1
je 0x40c1f8
mov eax, dword [ebp + 0x68]
movzx eax, word [eax]
push eax
mov word [ebp - 0x3c], 0x5c
call fcn.00403a9c
and word [ebp - 0x38], 0
mov word [ebp - 0x3a], ax
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
lea eax, [ebp + 0x70]
push eax
push ebx
push 0x4027d8
lea eax, [ebp - 0x284]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x64]
push eax
push ebx
push 0x40277c
lea eax, [ebp - 0x284]
push eax
push edi
call esi
xor eax, eax
jmp 0x40c2a5
cmp dword [ebp + 0x6c], 1
jne 0x40c28a
push edi
lea eax, [ebp - 0x4ca]
push ebx
push eax
mov word [ebp - 0x4cc], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4cc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [ebp - 0x4cc], bx
lea esi, [ebp - 0x4cc]
je 0x40c222
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
push esi
call fcn.0040bc07
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40c265
jmp 0x40c222
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040bc07
add esp, 0xc
jmp 0x40c2a5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret