joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4258e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x425918
mov edx, dword [esp + 4]
test edx, edx
je 0x425918
cmp dword [eax], 0xffffffff
je 0x425918
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425918
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x425920
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x42595a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42595a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x42595a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42595a
cmp edi, dword [esi]
jne 0x42595a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x4259d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x54e434]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x425a33
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x425a33
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425a33
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004d12c9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004d12c9
add esp, 8
ret 4

Function at 0x425b30
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x425bde
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.00425a50
test al, al
je 0x425bde
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00425a50
test al, al
je 0x425bde
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x425bb4
cmp dword [esp + 0x14], edi
jne 0x425bb4
mov eax, dword [esi]
test eax, eax
jne 0x425ba1
xor bl, bl
jmp 0x425bb4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x425b9d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.00425a50
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x426880
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4268c9
mov al, 1
jmp 0x426911
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00426fa0
test al, al
je 0x4268fe
push esi
lea ecx, [ebp - 0x28]
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4268fe
mov bl, 1
jmp 0x426900
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d12c9
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbb98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4269ae
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00426fa0
test al, al
je 0x42699d
lea ecx, [ebp - 0x28]
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d12c9
mov esp, ebp
pop ebp
ret
Function at 0x426ae0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe108
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040a590
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x426b26
mov al, 1
jmp 0x426c78
mov ecx, esi
call fcn.0040a590
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a780
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00426930
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
cmp ebx, 0xffffffff
jne 0x426b65
xor al, al
jmp 0x426c78
mov ecx, esi
call fcn.0040a590
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a780
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.0040a590
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x426b97
xor bl, bl
jmp 0x426be1
lea ecx, [ebp - 0x40]
call fcn.0040a7c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00426fa0
test al, al
je 0x426bd3
push 0
lea ecx, [ebp - 0x40]
call fcn.0040a590
push eax
call ebx
test eax, eax
je 0x426bd3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a6f0
xor bl, bl
jmp 0x426be1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040a6f0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
test bl, bl
jne 0x426b5e
mov ecx, esi
call fcn.0040a590
push eax
call edi
test eax, eax
jne 0x426b1f
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00426fa0
test al, al
je 0x426c3a
lea ecx, [ebp - 0x28]
call fcn.0040a590
push eax
call edi
test eax, eax
je 0x426c3a
mov bl, 1
jmp 0x426c67
mov ecx, esi
call fcn.0040a590
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a780
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.00426880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040a6f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d12c9
mov esp, ebp
pop ebp
ret
Function at 0x426ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x54e434]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004d4490
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.0040a590
push eax
mov ecx, edi
call fcn.0040a590
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x426d35
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.0040af90
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0040ae30
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004d12c9
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d12c9
add esp, 0x210
ret
Function at 0x441750
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x501b32
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x441794
call fcn.004418e0
cmp byte [0x551888], 0
jne 0x4417a7
mov eax, 0x80000001
jmp 0x4418bc
mov eax, dword [esi]
test eax, eax
jne 0x441812
push 8
call fcn.004d12da
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.004d12da
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004d4490
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x441801
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4418ab
call fcn.00421ea0
test al, al
jne 0x44184c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00422190
test al, al
je 0x4418ab
mov ecx, dword [esi]
add ecx, 4
call fcn.00421a00
call fcn.00421ea0
test al, al
je 0x4418ab
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.0040a780
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00424d90
mov ecx, eax
call fcn.00424e50
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a6f0
test edi, edi
je 0x4418ab
push 0x52ab54
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4418ab
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x4418ab
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4418ba
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004d12c9
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x441b50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x501c20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.0040a7c0
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 0x5518fc
mov dword [ebp], 0
call fcn.00403240
mov byte [ebp - 4], 1
mov ecx, 0x5518e4
call fcn.0040a580
test al, al
jne 0x441bfe
mov ecx, 0x5518e4
call fcn.0040ac10
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x441cb3
mov ecx, 0x5518e4
call fcn.0040ac10
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x441bf5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x441cab
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004d4490
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x441d3d
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.004d4490
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x441c94
test eax, eax
je 0x441c94
add eax, eax
cmp eax, 0x412
jae 0x441d81
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.0040af90
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x441caa
lea eax, [ebp + 0x418]
push eax
call fcn.0040af90
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ae30
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00403260
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00441ae0
test al, al
je 0x441cd4
mov bl, 1
jmp 0x441d4b
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004d4490
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x441d49
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.0040af90
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.0040ae30
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00441ae0
mov bl, al
jmp 0x441d4b
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00403260
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040a6f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004d12c9
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004d1873
int3
Function at 0x4438d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501faf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54e434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040a6f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040a6f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040a6f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040a6f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040a6f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040a6f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x443960
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501faf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54e434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040a6f0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040a6f0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040a6f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040a6f0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040a6f0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040a6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x444c00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50217f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54e434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a740
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040a740
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040a740
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040a740
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040a740
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040a740
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x445a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502408
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
sub edx, ebx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov esi, edi
mov dword [ebp - 0x3c], edi
sar esi, 1
test esi, esi
jle 0x445bb1
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c290
mov dword [ebp - 0x44], eax
lea ecx, [esi + esi*2]
lea eax, [edi - 1]
add esp, 4
mov dword [ebp - 0x40], eax
sar eax, 1
mov dword [ebp - 0x34], eax
lea eax, [ebx + ecx*8]
nop
sub eax, 0x18
dec esi
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x4c], eax
call fcn.0040c290
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040a740
mov dword [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x34]
mov edi, esi
mov dword [ebp - 0x30], eax
cmp esi, ecx
jge 0x445afa
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.0040c2a0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, esi
cmp esi, dword [ebp - 0x34]
jl 0x445ab1
mov ecx, dword [ebp - 0x34]
mov eax, edi
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x38]
cmp eax, ecx
jne 0x445b26
mov eax, dword [ebp - 0x3c]
test al, 1
jne 0x445b26
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ebx + eax*8]
push eax
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0040c290
add esp, 4
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp esi, edi
jge 0x445b82
nop word [eax + eax]
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
mov ecx, eax
mov dword [ebp - 0x48], eax
call fcn.0040c2a0
test al, al
je 0x445b7c
push dword [ebp - 0x48]
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, esi
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], esi
jl 0x445b40
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040a6f0
mov eax, dword [ebp - 0x4c]
test esi, esi
jg 0x445a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d12c9
mov esp, ebp
pop ebp
ret
Function at 0x446480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x14], edi
mov esi, edi
cmp edi, ebp
jge 0x4464f1
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.0040c2a0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, esi
cmp esi, ebp
jl 0x4464b0
mov eax, dword [esp + 0x10]
cmp esi, ebp
jne 0x44651b
test al, 1
jne 0x44651b
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ebx + eax*8]
push eax
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
call fcn.0040c290
add esp, 4
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jge 0x446570
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea ebp, [ebx + eax*8]
mov ecx, ebp
call fcn.0040c2a0
test al, al
je 0x44656c
push ebp
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
mov edi, esi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], esi
jl 0x446533
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c290
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.0040a700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x446590
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50249f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54e434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a7e0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040a7e0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040a7e0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040a7e0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040a7e0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040a7e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4477a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50277f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54e434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040a7c0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040a7c0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040a7c0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040a7c0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040a7c0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040a7c0
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447910
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x53a530
push 0x4d3560
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x54e434]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x420]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040ac10
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x447981
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040b340
add esp, 8
mov edx, esi
mov edi, dword [ebp + 0x41c]
mov ecx, edi
call fcn.00447a80
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4479c9
test bl, bl
jne 0x447a4c
cmp edi, 0x1a
jne 0x447a4c
mov ecx, esi
call fcn.0040ac10
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4479ef
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0040b340
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.004d4490
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.0040af90
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040ae30
mov ecx, esi
call fcn.0040a580
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d12c9
lea esp, [ebp + 0x414]
pop ebp
ret