joyce8/EMBER2024-capa huggingface dataset:
Function at 0x25c6499a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x25cd191d
call fcn.25cd0da0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], edi
call fcn.25c64688
mov dword [ebp - 4], edi
mov dword [esi + 0x430], edi
lea eax, [esi + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x25c644e4
push 0x25c67c14
push 5
push 0x18
lea eax, [esi + 0x458]
push eax
mov byte [ebp - 4], 2
call fcn.25cd01a4
push 0x81
mov byte [ebp - 4], 3
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x25c64a16
push 0x25cd4eb8
call fcn.25cafc71
mov dword [eax], 0x25cd23bc
jmp 0x25c64a18
xor eax, eax
mov dword [esi + 0xc], eax
inc dword [eax + 4]
push 0x400
lea eax, [esi + 0x30]
push edi
push eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x434], edi
mov dword [esi + 0x438], edi
mov dword [esi + 0x454], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x25c836d2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push 0x54
mov dword [edi + 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x25c83706
mov eax, dword [edi]
push 3
add eax, 0x10
pop ecx
cmp dword [eax + 8], ecx
je 0x25c83700
mov dword [eax + 8], ecx
mov eax, dword [edi]
push edi
call dword [eax]
pop ecx
mov dword [esi], fcn.25c82d89
mov dword [esi + 4], fcn.25c82e8a
mov dword [esi + 8], fcn.25c82f13
mov dword [esi + 0xc], fcn.25c82fad
mov dword [esi + 0x10], 0x25c83053
mov dword [esi + 0x14], 0x25c830b4
mov dword [esi + 0x18], 0x25c83115
mov dword [esi + 0x1c], 0x25c83364
mov dword [esi + 0x20], 0x25c83498
mov dword [esi + 0x24], fcn.25c835cf
mov dword [esi + 0x28], 0x25c836ac
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 8]
push 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
pop ecx
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x25c83765
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
cmp eax, ebx
pop ecx
je 0x25c837d2
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 8]
push ecx
push str._ld_c
push eax
mov byte [ebp - 1], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x25c837d2
cmp byte [ebp - 1], 0x6d
je 0x25c837bb
cmp byte [ebp - 1], 0x4d
jne 0x25c837c6
mov eax, dword [ebp - 8]
imul eax, eax, 0x3e8
jmp 0x25c837c9
mov eax, dword [ebp - 8]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop esi
pop ebx
leave
ret
Function at 0x25c8ce00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x25c8ce29
call fcn.25c87a55
cmp byte [esi + 0x40], 0
je 0x25c8ce22
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x25c8ce96
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x25c8ce8b
mov eax, dword [esi + 8]
test eax, eax
je 0x25c8ce4a
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x25c8ce87
cmp eax, 2
je 0x25c8ce8b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x25c8ce3f
cmp eax, 3
je 0x25c8ce6e
cmp eax, 1
jne 0x25c8ce3f
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x25c8ce3f
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x25c8ce3f
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x25c8ceb5
cmp eax, 0xcc
je 0x25c8ceb5
mov eax, dword [esi]
add eax, 0x10
cmp dword [eax + 8], 3
je 0x25c8ceaf
mov dword [eax + 8], 3
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.25c8cebc
pop esi
ret
Function at 0x25cac780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x25cac843
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ProductSuite
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x25cac841
cmp dword [ebp - 8], ebx
je 0x25cac841
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x25cac841
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x25cac838
cmp dword [ebp - 0xc], 7
jne 0x25cac838
mov esi, dword [ebp - 0x10]
jmp 0x25cac82a
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x25cac831
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x25cac80e
jmp 0x25cac838
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x25cac852
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x25caca50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x25cd12eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push edi
xor ebx, ebx
cmp ebp, ebx
mov edi, ecx
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x25cacbe2
cmp ebp, dword [edi + 0xc]
je 0x25cacbe2
lea ecx, [ebp + ebp*2]
lea edx, [ecx*8 + 4]
push esi
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov dword [esp + 0x30], ebx
je 0x25cacad2
push 0x25c644e4
push 0x25cacff0
push ebp
lea esi, [eax + 4]
push 0x18
push esi
mov dword [eax], ebp
call fcn.25cd01a4
mov dword [esp + 0x38], esi
jmp 0x25cacad6
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 0xffffffff
cmp dword [edi + 0x14], ebx
jle 0x25cacbac
mov dword [esp + 0x18], ebx
jmp 0x25cacaf0
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
call fcn.25cacf30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
mov dword [esp + 0x24], ecx
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
call dword [edx + 4]
xor edx, edx
div ebp
mov ecx, dword [esp + 0x38]
lea eax, [edx + edx*2]
lea esi, [ecx + eax*8]
mov eax, dword [esi + 0xc]
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esi + 0xc]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 8]
push ecx
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x10]
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
jne 0x25cacb6e
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], ecx
jmp 0x25cacba1
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
cmp eax, ecx
je 0x25cacb7a
mov dword [eax], ebx
mov eax, dword [esi + 8]
mov dword [ebx], eax
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov edx, dword [esi + 8]
mov dword [edx + 4], ebx
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x25cacb97
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], eax
cmp dword [edi + 0x14], ecx
jne 0x25cacaf0
xor ebx, ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x25cacbd0
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x25c644e4
push ecx
push 0x18
push eax
call fcn.25cd0226
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], ebp
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x25cb25b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor eax, eax
push esi
inc eax
call fcn.25cb008d
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x25cb25dc
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x25cb25d4
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x25cb2690
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x220]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x25cb260d
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x25cb268d
mov eax, dword [ebx + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x25cb2620
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push edi
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 8]
push 0
call fcn.25cb0763
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.25cb03a4
push dword [ebx + 0x230]
mov esi, dword [ebx + 8]
push str._IXStream__Access__x_
call fcn.25cb03a4
lea esi, [ebx + 0x234]
push dword [esi]
mov ecx, edi
push 0x6d68
push dword [ebx + 8]
call fcn.25cb0191
mov ecx, dword [ebx + 8]
add esp, 0x1c
push dword [esi]
push 1
call fcn.25cb04b9
pop edi
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret 0xc

Function at 0x25cb334d
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x14], eax
call edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0xc]
mov eax, esi
call fcn.25cb3139
test eax, eax
pop ecx
je 0x25cb33b9
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
push ebx
push 0x6ddb
push edi
mov ecx, esi
call fcn.25cb0176
add esp, 0xc
push ebx
push 1
mov ecx, esi
call fcn.25cb04b9
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x25cb33c3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push 0
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.25cb3139
test eax, eax
pop ecx
je 0x25cb3448
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push 0x6ddd
push edi
call fcn.25cb0176
add esp, 0x10
push dword [ebp + 0xc]
mov ecx, esi
push 1
call fcn.25cb04b9
push dword [ebp + 8]
mov ecx, esi
push 2
call fcn.25cb04b9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x25cb3470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp word [esi], ax
je 0x25cb35fa
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
push 0xffffffffffffffff
push esi
push 0x105
lea ebx, [ebp - 0x220]
mov dword [ebp - 8], eax
call fcn.25cadfe6
mov esi, ebx
call fcn.25cb362b
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [ebp - 0x21e]
push 0x5c
push eax
call esi
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x25cb3570
lea eax, [ebp - 0x220]
cmp ebx, eax
jbe 0x25cb34f0
cmp word [ebx - 2], 0x3a
je 0x25cb3560
lea eax, [ebp - 0x21e]
cmp ebx, eax
jne 0x25cb356c
cmp word [ebp - 0x220], 0x5c
jne 0x25cb356c
push 0x5c
add ebx, 2
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x25cb35a4
push 0x5c
add eax, 2
push eax
jmp 0x25cb3566
and word [ebx], 0
lea eax, [ebp - 0x220]
push eax
xor eax, eax
call fcn.25cb3450
test eax, eax
pop ecx
jne 0x25cb355b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x25cb355b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x25cb35fd
mov word [ebx], 0x5c
add ebx, 2
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x25cb351e
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x25cb359d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x25cb35a4
push dword [ebp + 8]
xor eax, eax
call fcn.25cb3684
test eax, eax
pop ecx
je 0x25cb35a4
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, esi
call fcn.25cb3139
test eax, eax
pop ecx
je 0x25cb35f5
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
push dword [ebp + 8]
mov ecx, esi
push 0x6dde
push edi
call fcn.25cb0176
add esp, 0xc
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.25cb04b9
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x220]
mov dword [ebp + 8], eax
jmp 0x25cb35a4
Function at 0x25cb36af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, esi
call fcn.25cb3139
test eax, eax
pop ecx
je 0x25cb3729
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
push dword [ebp + 8]
mov ecx, esi
push dword [ebx]
push 0x6de2
push edi
call fcn.25cb0176
add esp, 0x10
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.25cb04b9
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
setne al
pop esi
leave
ret

Function at 0x25cb3825
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x25cb38b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x25cb38b6
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 4
jne 0x25cb38b6
cmp dword [ebp - 0x114], ebx
jne 0x25cb38b6
cmp dword [ebp - 0x10c], 2
jne 0x25cb38b6
mov dword [ebp - 4], 0x64
push dword [ebp + 8]
dec dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x25cb38b6
cmp dword [ebp - 4], 0
jne 0x25cb389a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
setne al
mov ebx, eax
push ebx
mov eax, esi
call fcn.25cb3139
test eax, eax
pop ecx
je 0x25cb3905
push 1
mov edi, 0x25cd4eb8
call fcn.25caff6d
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 0x6de6
push edi
call fcn.25cb0176
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x25cb3c5b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ebx, [ebp - 0x210]
push 0x105
call fcn.25cadfe6
add esp, 0xc
mov edi, ebx
call fcn.25cadf8d
mov esi, ebx
call fcn.25cb3608
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
mov edi, eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x25ccbe71
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x25ccbef6
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x25ccbeb9
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x25ccbedb
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x25ccbfc6
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.25ccbc46
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
cmp edx, 3
pop ecx
pop ecx
jb 0x25ccbf41
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x25ccbf55
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x25ccbe7a
mov ecx, dword [edi + 0x16c0]
mov eax, dword [edi + 0x3c]
cmp ecx, eax
jae 0x25ccbfc6
mov esi, dword [edi + 0x6c]
add esi, edx
cmp ecx, esi
jae 0x25ccbf95
sub eax, esi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x25ccbf7a
mov ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, esi
mov dword [edi + 0x16c0], ebx
jmp 0x25ccbfc6
lea edx, [esi + 0x102]
cmp ecx, edx
jae 0x25ccbfc6
sub esi, ecx
add esi, 0x102
sub eax, ecx
cmp esi, eax
jbe 0x25ccbfaf
mov esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebx
leave
ret
Function at 0x4017fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401865
cmp dword [ebp + 0x10], 1
je 0x40183d
cmp dword [ebp + 0x10], 2
je 0x40183d
push 0xd
pop eax
jmp 0x401865
mov eax, dword [ebp - 4]
test edi, edi
je 0x40185f
test eax, eax
je 0x40185a
test al, 1
jne 0x401838
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40185f
jmp 0x401838
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x401da4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401e3a
cmp eax, edi
ja 0x401e3a
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x407314
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x401e3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040426a
leave
ret

Function at 0x401f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x401f6d
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret