joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c12b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x5c50a0
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.005c11ad
test eax, eax
jne 0x5c1323
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x5c1340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x5c1323
cmp dword [ebp - 0x10], 4
jne 0x5c1323
cmp dword [ebp - 8], 1
jne 0x5c1323
cmp dword [esi + 0xc], ebx
je 0x5c136e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x5c133b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
leave
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0x5c1323
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0x5c1323
Function at 0x5c25d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0x5c2d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0x5c303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0x5c2616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0x5c32d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0x5c32c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.005c2d61
test eax, eax
jne 0x5c25ec
jmp 0x5c32bd
shl eax, 0xa
push eax
jmp 0x5c2610
xor eax, eax
jmp 0x5c262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x5c25ec
jmp 0x5c32bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0x5c261f
Function at 0x401bf3
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x448a0b
call fcn.0041906e
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00402e9a
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c1a
xor al, al
jmp 0x401d3d
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c29
mov ecx, dword [esi]
push dword [ebp - 0x48]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.0040387c
add esp, 0x10
cmp eax, 0xffffffff
je 0x401d3b
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c4d
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401d3b
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00404ca6
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], ebx
jb 0x401c77
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ecx
push ecx
call fcn.00404391
add esp, 8
lea ecx, [ebp - 0x2c]
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push edi
push eax
call fcn.00404ca6
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ca6
cmp dword [eax + 0x14], ebx
jb 0x401cb1
mov eax, dword [eax]
push eax
call fcn.00434597
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00404c78
cmp dword [ebp - 0x34], 0
je 0x401d2b
test esi, esi
je 0x401d2b
push esi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401cf2
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._setup.dll
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.0040380f
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401d0a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.00404c78
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], ebx
jb 0x401d24
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x44]
call fcn.00404c78
lea ecx, [ebp - 0x2c]
call fcn.00404c78
mov al, 1
call fcn.00419018
ret
Function at 0x40209e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020f2
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x468718]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020eb
cmp dword [ebp - 8], edi
jne 0x4020cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004187ab
leave
ret

Function at 0x40523b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x405243
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405256
test al, 0x10
jne 0x405256
mov al, 1
ret
xor al, al
ret

Function at 0x4054ab
Capabilities:
Get common file path

Disassembly:
push 0x3c
mov eax, 0x44902c
call fcn.0041906e
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x30], 0
and dword [ebp - 4], 0
push ecx
push 0x100
lea ecx, [ebp - 0x28]
call fcn.00405be0
push 8
pop ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x14], ebx
jb 0x4054e8
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, dword [ebp - 0x18]
jb 0x40551a
jne 0x4054fb
add eax, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b2e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jb 0x405510
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b2e
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.00408103
lea edx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x14
lea ecx, [ebp - 0x28]
call fcn.0040548b
lea ecx, [ebp - 0x48]
mov bl, al
call fcn.00403064
test bl, bl
jne 0x4055e3
call fcn.004052b4
test al, al
je 0x40558f
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [ebp - 0x48]
call fcn.00408103
lea edx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x36
lea ecx, [ebp - 0x28]
call fcn.0040548b
test al, al
je 0x40558f
xor ebx, ebx
inc ebx
jmp 0x405591
xor bl, bl
test byte [ebp - 0x2c], 2
je 0x40559f
lea ecx, [ebp - 0x48]
call fcn.00403064
test bl, bl
jne 0x4055e3
push ecx
lea ecx, [ebp - 0x28]
call fcn.004070ad
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4055b6
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00407b1c
lea ecx, [ebp - 0x28]
call fcn.0040523b
test al, al
je 0x4055e3
lea ecx, [ebp - 0x28]
call fcn.004050cd
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402b60
jmp 0x4055f3
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x28]
call fcn.00403064
mov eax, esi
call fcn.00419018
ret
Function at 0x40567b
Capabilities:
Move file

Disassembly:
push 0x2c
mov eax, 0x449059
call fcn.0041906e
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], edi
xor eax, eax
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
and dword [ebp - 4], eax
mov ebx, dword [esi + 0x14]
push 0x5c
pop ecx
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], cx
mov word [ebp - 0x16], cx
mov ecx, esi
push 0x3f
pop eax
mov word [ebp - 0x18], ax
cmp ebx, 8
jb 0x4056c7
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x1c]
call fcn.00408177
pop ecx
test al, al
jne 0x4056e6
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405b5a
mov ebx, dword [esi + 0x14]
mov ecx, esi
cmp ebx, 8
jb 0x4056ef
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
push ecx
call fcn.00409dca
add esp, 8
mov ecx, eax
mov eax, esi
cmp ebx, 8
jb 0x405707
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x38], esi
add eax, 2
cmp ebx, 8
jb 0x40571a
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
jb 0x405726
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
lea edx, [ecx + edx*2]
lea ecx, [ebp - 0x34]
jb 0x405734
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
lea ecx, [ecx + ebx*2]
sub edx, ecx
lea ebx, [ebp - 0x34]
sar edx, 1
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x18], ebx
jb 0x405750
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x38]
sub eax, ebx
sub ecx, dword [ebp - 0x18]
sar eax, 1
push eax
push ebx
sar ecx, 1
push edx
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408bd1
mov ebx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
lea eax, [ebx + 0x20]
push eax
call fcn.00405b2e
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
jb 0x405784
mov eax, dword [ebp - 0x34]
lea eax, [eax + ebx*2]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.00405603
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
jb 0x40579e
mov ecx, dword [ebp - 0x34]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4057a8
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4057d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.0040510d
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x4057e0
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402b60
lea ecx, [ebp - 0x34]
call fcn.00403064
mov eax, edi
call fcn.00419018
ret
Function at 0x409ed6
Capabilities:
Create process on windows

Disassembly:
push 0x10c
mov eax, 0x449578
call fcn.004190dc
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], ebx
call fcn.00405329
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409f03
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f2a
lea ecx, [ebp - 0x100]
call fcn.00403064
push 0x45a980
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.0040380f
pop ecx
push 0x45a8e8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004039be
push eax
lea ecx, [ebp - 0xe8]
call fcn.00402b60
push 0x45a978
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.004039be
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402b60
push esi
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00404ae5
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402b60
push 0x45a56c
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004039be
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b60
lea ecx, [ebp - 0xb8]
call fcn.00404c78
lea ecx, [ebp - 0xd0]
call fcn.00404c78
lea ecx, [ebp - 0xe8]
call fcn.00404c78
lea ecx, [ebp - 0x118]
call fcn.00404c78
push 0x40
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 0x44
push ebx
push eax
call fcn.00430b30
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x40a004
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x40a010
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a048
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00404c78
lea ecx, [ebp - 0x2c]
call fcn.00404c78
call fcn.00419029
ret

Function at 0x40ac90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40acb3
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40accf
mov eax, 0x10000
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [esi], 0x40
mov dword [0x466700], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4664d8]
mov eax, dword [ebx]
cmp byte [eax], 0xe9
jne 0x40bd14
lea ecx, [ebp - 0xa4]
push ecx
push 0x40
push dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40bd14
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [ebx + 0xc]
push edi
call fcn.0040ac60
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40bc8f
lea esp, [esp]
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40bc8f
inc ecx
cmp ecx, edi
jb 0x40bc80
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40bcd6
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40bca5
cmp al, 0xe9
jne 0x40bcd6
push esi
lea esi, [ebp + ecx - 0x9b]
push 4
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.0040ac60
mov eax, dword [ebx + 8]
mov edx, ecx
sub eax, dword [ebx]
mov ecx, esi
add dword [ebp - 0xa0], eax
push 4
call fcn.0040ac60
add esp, 8
pop esi
mov ecx, dword [ebx]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040ac60
add esp, 4
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
push dword [ebx + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004187ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004187ab
mov esp, ebp
pop ebp
ret
Function at 0x40edc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40ede9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040ee17
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f5c8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x468be8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x468bec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x468bf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x468bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x468bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x468bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x468c00], eax
mov eax, 0x468be8
pop ebp
ret 4

Function at 0x411a59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x411ac2
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x411a8c
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x411aba
test ecx, ecx
je 0x411ac2
test esi, esi
je 0x411ac2
mov ecx, dword [ebp - 0xc]
jmp 0x411a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411ac4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004187ab
leave
ret

Function at 0x411bbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x411bc3
mov dword [ecx*4 + 0x466710], edx
inc ecx
cmp ecx, 0x100
jb 0x411bbe
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x466310]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x466710]
mov dword [edx + 0x466710], ecx
add edx, 4
cmp edx, 0x2000
jb 0x411bee
mov dword [0x468710], 0x412ca0
call fcn.00412ef8
test eax, eax
jne 0x411c2f
mov dword [0x468710], 0x412d40
ret
Function at 0x411da5
Capabilities:
Get common file path
Move file

Disassembly:
push 0x280
mov eax, 0x449bd7
call fcn.004190dc
mov dword [ebp - 0x254], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x25c], eax
or dword [eax], 0xffffffff
mov dword [ebp - 0x258], 0xc0000000
cmp dword [edi + 0x10], esi
jne 0x411e1a
xor eax, eax
mov dword [ebp - 0x264], esi
push 0x45b0a8
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
call fcn.004031a5
xor ebx, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x274]
inc ebx
jmp 0x411e33
push 0x45aa1c
mov edx, edi
lea ecx, [ebp - 0x28c]
call fcn.0040380f
pop ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x254]
mov ecx, eax
mov dword [ebp - 0x250], ebx
call fcn.00404ae5
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402b60
or ebx, 4
mov dword [ebp - 4], 3
test bl, 2
je 0x411e6f
lea ecx, [ebp - 0x28c]
and ebx, 0xfffffffd
call fcn.00404c78
mov byte [ebp - 4], 5
test bl, 1
je 0x411e83
lea ecx, [ebp - 0x274]
call fcn.00404c78
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00411ffa
test al, al
jne 0x411fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x411eaf
mov esi, eax
jmp 0x411fdc
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00430b30
add esp, 0xc
push 8
pop ebx
cmp dword [edi + 0x14], ebx
jb 0x411ece
mov edi, dword [edi]
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x411eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411ea8
xor eax, eax
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
push eax
call fcn.004031a5
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411f29
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
jb 0x411f3d
mov ecx, dword [ebp - 0x24c]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x411f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x234]
call fcn.00404c78
jmp 0x411fdc
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00411ffa
test al, al
je 0x411f96
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411f8a
mov eax, dword [ebp - 0x234]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x411f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x24c]
mov edi, eax
cmp dword [ebp - 0x238], ebx
jb 0x411fb2
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411fc6
mov ecx, dword [ebp - 0x234]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x234]
call fcn.00404c78
mov esi, edi
lea ecx, [ebp - 0x24c]
call fcn.00404c78
mov eax, esi
jmp 0x411ff4
call fcn.00419029
ret
Function at 0x4156ad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41571f
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x4156bc
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x4156bc
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4157ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4157f0
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x415810
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41580d
inc edi
cmp edi, edx
jb 0x415800
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4158dc
cmp ecx, 2
jbe 0x41589b
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x4158cb
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41587b
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x415879
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x4158d1
shr esi, cl
test esi, esi
je 0x415829
cmp esi, 4
ja 0x4158c0
cmp esi, 3
je 0x4158c0
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x415829
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4157f9
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x4157f9
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x419098
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1278
push ebx
push esi
push edi
mov dword [ebp - 0x8a4], 1
push edi
add edi, 0x13408
call 0x419098
add byte [ecx + 0x38], al
aaa
cmp dword [ebx], edi
cmp cl, byte [esi - 0x7d]
les eax, [ebx + ebp*8]
add eax, 0x3f424144
inc esp
pop edi
push esi
jmp 0x4190a9
invalid