joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x405a00
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x405a00
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x405a14
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x405a93
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00405aa0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405a3f
cmp dword [ebp + 0xc], 0
jne 0x405a3d
jmp 0x405a93
jmp 0x405a45
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405a74
cmp dword [ebp - 8], 0
je 0x405a70
mov eax, dword [ebp - 8]
mov byte [eax], 0x5c
xor eax, eax
jmp 0x405a98
cmp dword [ebp - 8], 0
jne 0x405a7c
jmp 0x405a93
mov ecx, dword [ebp - 8]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x405a14
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405af0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x405b30
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
cmp ecx, 0x3a
jne 0x405b30
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x405b44
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x405bd6
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00405be0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405b73
cmp dword [ebp + 0xc], 0
jne 0x405b71
jmp 0x405bd6
jmp 0x405b7b
xor eax, eax
mov ecx, dword [ebp - 8]
mov word [ecx], ax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405baf
cmp dword [ebp - 8], 0
je 0x405bab
mov ecx, 0x5c
mov edx, dword [ebp - 8]
mov word [edx], cx
xor eax, eax
jmp 0x405bdb
cmp dword [ebp - 8], 0
jne 0x405bb7
jmp 0x405bd6
mov eax, 0x5c
mov ecx, dword [ebp - 8]
mov word [ecx], ax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x405b44
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408590
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53ca00]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53ca00]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x408680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x40876f
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
mov byte [ebp - 4], cl
mov edx, dword [ebp + 0xc]
shr edx, 8
mov byte [ebp - 3], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x10
je 0x4086e0
movzx edx, byte [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
call fcn.00408610
add esp, 8
mov byte [ebp - 4], al
movzx ecx, byte [ebp - 3]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
call fcn.00408610
add esp, 8
mov byte [ebp - 3], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
je 0x40872c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
add eax, 2
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x20]
jb 0x408707
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xb
jmp 0x40876f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dx, word [ebp - 4]
mov word [ecx + eax], dx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
jmp 0x408759
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40874f
cmp dword [ebp - 8], 2
je 0x408759
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 3
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0x40000000
je 0x40876f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x14
mov esp, ebp
pop ebp
ret
Function at 0x408780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
je 0x408919
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x408919
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x10
je 0x40887c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x4087d6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
cmp edx, dword [ebp + 0x10]
jae 0x4087d6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
jne 0x408817
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
jne 0x408817
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 2
jmp 0x408902
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
push edx
call fcn.00511270
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x408840
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x408873
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 4]
movzx edx, byte [eax + ecx]
push edx
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
call fcn.00408610
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
jmp 0x408837
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 1
je 0x4088d1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x20]
jb 0x4088a3
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xb
jmp 0x408902
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x1c]
push ecx
call fcn.00511270
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
jmp 0x408902
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4088f8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
je 0x408902
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x40000000
je 0x408919
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x14
mov esp, ebp
pop ebp
ret
Function at 0x409450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov byte [eax + 0x6af81], 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af54], 0x10000
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af50], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af54
push eax
call fcn.00511c50
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x53c9b2]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x53c9b0]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x53c9b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x53c9b6]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], edx
cmp dword [ebp + 0xc], 2
ja 0x4094f7
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 4
mov eax, dword [ebp + 0x10]
mov word [eax], dx
jmp 0x40950c
cmp dword [ebp + 0xc], 8
jb 0x40950c
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 2
mov eax, dword [ebp + 0x10]
mov word [eax], dx
push 0x10000
mov ecx, dword [ebp + 8]
add ecx, 0x1af54
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040bac0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af6c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af6c], 0
jne 0x409543
jmp 0x4095d3
mov eax, dword [ebp + 8]
mov byte [eax + 0x6af80], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af58], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af64], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af6c], 0x106
jae 0x409582
mov ecx, dword [ebp + 8]
push ecx
call fcn.004095e0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af5c], 0
mov dword [ebp - 4], 0
jmp 0x4095a1
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x4095d3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af5c]
shl edx, 5
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1af54]
xor edx, ecx
and edx, 0x7fff
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af5c], edx
jmp 0x409598
mov esp, ebp
pop ebp
ret
Function at 0x40bac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x40000000
je 0x40bae0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x14
jmp 0x40bb71
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x80
je 0x40bb48
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x50]
cmp ecx, dword [eax + 0x4c]
jb 0x40bafd
jmp 0x40bb71
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x4c]
sub ecx, dword [eax + 0x50]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jbe 0x40bb1a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x50]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00511270
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x50], ecx
jmp 0x40bb75
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bb75
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 7
xor eax, eax
jmp 0x40bba4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
push eax
call fcn.0040bbb0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40bbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40bbc0
xor eax, eax
jmp 0x40bd5d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40bd1e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53ca00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53ca00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x53ca00]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53ca00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53ca00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x53ca00]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53ca00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x53ca00]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40bbc9
cmp dword [ebp + 0x10], 0
je 0x40bd57
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x53ca00]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40bd24
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40c040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x53ce34
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40c159
mov eax, dword [ebp + 0x18]
add eax, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
mov byte [ecx], 0x5c
mov edx, dword [ebp + 0x18]
add edx, 0x2c
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 1]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
and ecx, 0x10
je 0x40c10d
mov edx, dword [ebp + 0x18]
movsx eax, byte [edx + 0x2c]
cmp eax, 0x2e
jne 0x40c0d1
mov ecx, dword [ebp + 0x18]
movsx edx, byte [ecx + 0x2d]
test edx, edx
je 0x40c10b
mov eax, dword [ebp + 0x18]
movsx ecx, byte [eax + 0x2d]
cmp ecx, 0x2e
je 0x40c10b
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 1]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c040
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40c10b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x40c15b
jmp 0x40c139
push 2
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407800
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40c139
jmp 0x40c103
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c073
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40cba0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af51
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x58482c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x228]
call fcn.00414cad
push 0x64
push 1
mov ecx, dword [ebp - 0x228]
add ecx, 0x74
call fcn.0040ccf0
push 0
push 0x26
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x53cf4c
push 0x53cf5c
lea ecx, [ebp - 0x21c]
call fcn.00401020
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x230]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040ce00
add esp, 0xc
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040cd30
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.004019f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x21c]
call fcn.004019f0
lea ecx, [ebp - 0x218]
call fcn.00401750
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0xc8
call fcn.0041c8b4
mov dword [ebp - 0x224], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.004019f0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00511b60
mov esp, ebp
pop ebp
ret
Function at 0x40d200
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52afb0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58482c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d25f
xor eax, eax
jmp 0x40d375
lea ecx, [ebp - 0x40]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40d28b
cmp dword [ebp - 0x14], 0
je 0x40d284
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d375
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x10
lea ecx, [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40d2da
cmp dword [ebp - 0x14], 0
je 0x40d2d3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d375
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40d326
cmp dword [ebp - 0x14], 0
je 0x40d322
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d375
jmp 0x40d352
mov dword [ebp - 4], 0xffffffff
jmp 0x40d360
cmp dword [ebp - 0x14], 0
je 0x40d370
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40d455
mov eax, dword [ebp + 0x14]
jmp 0x40d491
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d484
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
jmp 0x40d491
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret