joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402373
Capabilities:
Create pipe

Disassembly:
sub esp, 0x1c
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ebp, dword [esp + 0x30]
lea edi, [esp + 0x10]
mov ebx, ecx
stosd dword es:[edi], eax
lea esi, [esp + 0x10]
push 5
pop ecx
or dword [ebx + 8], 0xffffffff
stosd dword es:[edi], eax
mov byte [ebx + 0x20], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4023c3
xor al, al
jmp 0x402404
push ebp
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00402419
cmp dword [eax + 0x14], 7
jbe 0x4023d8
mov eax, dword [eax]
push esi
push dword [ebx]
mov ecx, 0x4000
push ecx
push ecx
push 1
push esi
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x10]
mov dword [ebx + 8], eax
call fcn.00401ac8
cmp dword [ebx + 8], 0xffffffff
setne al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x1c
ret 4
Function at 0x402477
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
push ebp
push esi
push edi
mov edi, dword [esp + 0x440]
mov esi, ecx
xor ebp, ebp
push ebx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00402419
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4024bd
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x402531
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40250b
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4024f3
mov eax, dword [esp + 0x1c]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x40250b
lea ecx, [esp + 0x1c]
call fcn.00401ac8
jmp 0x4024a1
lea ecx, [esp + 0x1c]
call fcn.00401ac8
xor al, al
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x428
ret 8
lea ecx, [esp + 0x1c]
call fcn.00401ac8
xor ebx, ebx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x40255f
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4025a4
cmp dword [esp + 0x10], ebx
je 0x4025a4
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402514
cmp dword [esp + 0x10], ebx
je 0x4025a4
push dword [esp + 0x10]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.0040217c
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, dword [esi + 4]
jbe 0x40253c
jmp 0x402514
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x402516
Function at 0x4025cc
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x448780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x402611
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
sub eax, dword [ebx]
push edi
push ecx
push eax
push dword [ebx]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40263a
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402661
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402434
test al, al
je 0x402665
mov al, 1
jmp 0x402667
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004253d4
leave
ret 4
Function at 0x406b82
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x454268], 2
jl 0x406bc3
movaps xmm0, xmmword [0x43b870]
movaps xmmword [0x449080], xmm0
movaps xmm0, xmmword [0x43b860]
movaps xmmword [0x449090], xmm0
movaps xmm0, xmmword [0x43b840]
movaps xmmword [0x4490a0], xmm0
movaps xmm0, xmmword [0x43b850]
movaps xmmword [0x4490b0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00406f8c
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43b820]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x406bd1
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x407c94
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x407cbe
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4490c0]
inc edi
sub esi, 1
jne 0x407ca6
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x407e8b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x407eea
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebp
call fcn.00408666
xor edx, edx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor ebx, eax
inc edx
cmp edx, 0x20
jb 0x407ecf
mov dword [esi], ebx
xor ebx, ebx
cmp dword [edi], 3
jne 0x407f13
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebp
call fcn.00408666
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004268f0
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x28
ret 8
Function at 0x4088c4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x408913
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.004268f0
add esp, 0xc
cmp esi, 0x44
jae 0x408ace
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x408ace
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x408ace
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.00408666
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.004268f0
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x28], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0x1c]
test edi, edi
je 0x408a55
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.00408666
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.004268f0
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x408a39
sub edi, 1
jne 0x4089e9
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x30]
call fcn.004268f0
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x4089dd
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.00414d70
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.00414d70
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.00414d70
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.00414d70
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x19c
ret 0x20
call fcn.00425981
int3
Function at 0x40e018
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x43996f
call fcn.00425478
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
test esi, esi
jne 0x40e03a
mov al, 1
jmp 0x40e160
cmp dword [ebx + 0x10], 1
jne 0x40e04e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
xor cl, cl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], cl
je 0x40e0a1
xor edi, edi
test esi, esi
je 0x40e0c2
mov eax, esi
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
jb 0x40e072
mov eax, ecx
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [edx + edi]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test eax, eax
je 0x40e0ba
mov edx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e063
jmp 0x40e0ba
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push edx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test cl, cl
jne 0x40e159
cmp byte [ebx + 0x1e], 0
je 0x40e159
cmp dword [ebx + 0x10], 0
jne 0x40e159
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x44d110
push edi
call fcn.00408afa
test al, al
je 0x40e131
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], esi
jae 0x40e04e
cmp dword [ebp - 0x30], 0
jbe 0x40e04e
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43b288]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43b288]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
jmp 0x40e04b
push 0x43b6e8
lea ecx, [ebp - 0x28]
call fcn.004014a6
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x44d110
call fcn.00408f40
lea ecx, [ebp - 0x28]
call fcn.00401ac8
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00425427
ret 8
Function at 0x40e3c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x438f64
call fcn.00425478
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40e3de
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e464
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00410cb8
test al, al
je 0x40e42a
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x40e421
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x40e464
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40e45b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004253c6
pop ecx
pop ecx
mov eax, ebx
call fcn.00425427
ret 4

Function at 0x40e63a
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x438f64
call fcn.00425478
mov esi, dword [ebp + 8]
push esi
call fcn.004109fd
movzx eax, ax
cmp eax, 0x2e
je 0x40e67e
cmp eax, 0x20
je 0x40e67e
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x40e666
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40e729
jmp 0x40e682
and dword [ebp - 0x2c], 0
push esi
call fcn.0040e3b3
test al, al
jne 0x40e73c
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00410cb8
test al, al
je 0x40e6d2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x40e6c5
mov eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x40e6d5
mov edi, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x40e714
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40e70b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004253c6
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x40e73c
cmp byte [ebp + 0xc], 0
je 0x40e738
push dword [ebp + 0x10]
push esi
call fcn.0040ec1b
xor eax, eax
jmp 0x40e754
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40e754
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00425427
ret 0xc
Function at 0x40ec1b
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x438f64
call fcn.00425478
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40ec34
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40ecc3
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00410cb8
test al, al
je 0x40ec89
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x40ec7a
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x40ecc3
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40ecba
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.004253c6
pop ecx
pop ecx
mov al, bl
call fcn.00425427
ret 8
Function at 0x40ee72
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x439abc
call fcn.00425478
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
cmp esi, 0xffffffff
jne 0x40ef82
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x40eea3
mov ecx, dword [eax]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40efa5
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x27c]
push eax
push edi
call fcn.00410cb8
test al, al
je 0x40ef09
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x40eef9
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x40ef5a
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40ef51
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.004253c6
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x40efab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ef78
cmp eax, 3
je 0x40ef78
cmp eax, 0x12
je 0x40ef78
mov al, 1
jmp 0x40ef7a
xor al, al
mov byte [ebx + 0x5c], al
jmp 0x40f062
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40efa5
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40ef7a
mov edi, dword [ebp - 0x27c]
push edi
mov ecx, ebx
call fcn.00402d63
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a6
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.004118d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401ac8
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [ebx + 0x54], ecx
lea ecx, [ebx + 0x28]
push eax
call fcn.004173e8
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebx + 0x30]
call fcn.004173e8
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebx + 0x38]
call fcn.004173e8
and dword [ebx + 0x58], 0
mov eax, esi
call fcn.00425427
ret 0xc
Function at 0x40f746
Capabilities:
Hash data using crc32b

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x40f77d
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40f77c
mov eax, esi
mov edx, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
sar edx, 0x1f
and eax, ecx
shr esi, 1
and edx, 0x4c11db7
add ecx, ecx
xor edi, eax
xor ecx, edx
jne 0x40f756
pop esi
mov eax, edi
pop edi
ret 8

Function at 0x40fa13
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x448780]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44d128], 0
jne 0x40fa76
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x40fa66
jne 0x40fa62
cmp dword [ebp - 0x74], 0x55f0
jb 0x40fa62
call fcn.0040fabe
test al, al
je 0x40fa66
xor al, al
jmp 0x40fa68
mov al, 1
mov byte [0x44d129], al
mov byte [0x44d128], 1
jmp 0x40fa7b
mov al, byte [0x44d129]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004253d4
add ebp, 0x98
leave
ret
Function at 0x413f54
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x451158], cl
inc ecx
cmp ecx, 0x100
jl 0x413f5d
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x451e59], al
mov byte [ebp*4 + 0x451e58], al
mov byte [ebp*4 + 0x451a5b], al
mov byte [ebp*4 + 0x451a58], al
mov byte [ebp*4 + 0x45165b], al
mov byte [ebp*4 + 0x45165a], al
mov byte [ebp*4 + 0x45125a], al
mov byte [ebp*4 + 0x451259], al
call fcn.004147b6
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x451e5b], al
mov byte [ebp*4 + 0x451a5a], al
mov byte [ebp*4 + 0x451659], al
mov byte [ebp*4 + 0x451258], al
call fcn.004147b6
mov bl, byte [ebp + 0x451158]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x451e5a], al
mov byte [ebp*4 + 0x451a59], al
mov byte [ebp*4 + 0x451658], al
mov byte [ebp*4 + 0x45125b], al
call fcn.004147b6
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x452e5a], al
mov byte [ebp*4 + 0x452a59], al
mov byte [ebp*4 + 0x452658], al
mov byte [ebp*4 + 0x45225b], al
mov byte [edi*4 + 0x453e5a], al
mov byte [edi*4 + 0x453a59], al
mov byte [edi*4 + 0x453658], al
mov byte [edi*4 + 0x45325b], al
call fcn.004147b6
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x452e58], al
mov byte [ebp*4 + 0x452a5b], al
mov byte [ebp*4 + 0x45265a], al
mov byte [ebp*4 + 0x452259], al
mov byte [edi*4 + 0x453e58], al
mov byte [edi*4 + 0x453a5b], al
mov byte [edi*4 + 0x45365a], al
mov byte [edi*4 + 0x453259], al
call fcn.004147b6
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x452e59], al
mov byte [ebp*4 + 0x452a58], al
mov byte [ebp*4 + 0x45265b], al
mov byte [ebp*4 + 0x45225a], al
mov byte [edi*4 + 0x453e59], al
mov byte [edi*4 + 0x453a58], al
mov byte [edi*4 + 0x45365b], al
mov byte [edi*4 + 0x45325a], al
call fcn.004147b6
mov byte [ebp*4 + 0x452e5b], al
mov byte [ebp*4 + 0x452a5a], al
mov byte [ebp*4 + 0x452659], al
mov byte [ebp*4 + 0x452258], al
inc ebp
mov byte [edi*4 + 0x453e5b], al
mov byte [edi*4 + 0x453a5a], al
mov byte [edi*4 + 0x453659], al
mov byte [edi*4 + 0x453258], al
cmp ebp, 0x100
jl 0x413f73
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41472e
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ecx
mov edx, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea eax, [edx + 0x18]
mov dword [esp + 8], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x4147ac
mov ecx, dword [esp + 0x10]
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
dec ecx
movups xmm1, xmmword [eax]
xorps xmm1, xmm3
test ecx, ecx
jle 0x41478a
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x41477a
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x41479c
xorps xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x41474a
pop edi
movups xmmword [edx + 8], xmm2
pop esi
pop ecx
ret 0xc

Function at 0x4147e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x414899
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x453e58]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x453658]
xor dl, byte [esi + eax*4 + 0x453258]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x453a58]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x414823
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x414818
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.004268f0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x41480f
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x24
ret