joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406400
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 0x406440
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x406440
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 0x406454
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 0x4064d3
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.004064e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40647f
cmp dword [ebp + 0xc], 0
jne 0x40647d
jmp 0x4064d3
jmp 0x406485
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 0x4064b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4064b4
cmp dword [ebp - 8], 0
je 0x4064b0
mov eax, dword [ebp - 8]
mov byte [eax], 0x5c
xor eax, eax
jmp 0x4064d8
cmp dword [ebp - 8], 0
jne 0x4064bc
jmp 0x4064d3
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 0x406454
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x406530
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 0x406570
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
cmp ecx, 0x3a
jne 0x406570
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 0x406584
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 0x406616
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00406620
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4065b3
cmp dword [ebp + 0xc], 0
jne 0x4065b1
jmp 0x406616
jmp 0x4065bb
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 0x4065ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4065ef
cmp dword [ebp - 8], 0
je 0x4065eb
mov ecx, 0x5c
mov edx, dword [ebp - 8]
mov word [edx], cx
xor eax, eax
jmp 0x40661b
cmp dword [ebp - 8], 0
jne 0x4065f7
jmp 0x406616
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 0x406584
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x409560
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 + 0x5439a0]
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 + 0x5439a0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x409650
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 0x40973f
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 0x4096b0
movzx edx, byte [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
call fcn.004095e0
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.004095e0
add esp, 8
mov byte [ebp - 3], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
je 0x4096fc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
add eax, 2
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x20]
jb 0x4096d7
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xb
jmp 0x40973f
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 0x409729
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 0x40971f
cmp dword [ebp - 8], 2
je 0x409729
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 3
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0x40000000
je 0x40973f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x14
mov esp, ebp
pop ebp
ret
Function at 0x409750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
je 0x4098e9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x4098e9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x10
je 0x40984c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x4097a6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
cmp edx, dword [ebp + 0x10]
jae 0x4097a6
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 0x4097e7
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 0x4097e7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 2
jmp 0x4098d2
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.00515710
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x409810
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x409843
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.004095e0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
jmp 0x409807
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 0x4098a1
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 0x409873
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xb
jmp 0x4098d2
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.00515710
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 0x4098d2
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 0x4098c8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
je 0x4098d2
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x40000000
je 0x4098e9
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x14
mov esp, ebp
pop ebp
ret
Function at 0x40a420
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.00515e20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x543952]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x543950]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x543954]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x543956]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], edx
cmp dword [ebp + 0xc], 2
ja 0x40a4c7
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 4
mov eax, dword [ebp + 0x10]
mov word [eax], dx
jmp 0x40a4dc
cmp dword [ebp + 0xc], 8
jb 0x40a4dc
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.0040ca90
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af6c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af6c], 0
jne 0x40a513
jmp 0x40a5a3
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 0x40a552
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a5b0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af5c], 0
mov dword [ebp - 4], 0
jmp 0x40a571
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x40a5a3
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 0x40a568
mov esp, ebp
pop ebp
ret
Function at 0x40ca90
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 0x40cab0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x14
jmp 0x40cb41
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x80
je 0x40cb18
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x50]
cmp ecx, dword [eax + 0x4c]
jb 0x40cacd
jmp 0x40cb41
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 0x40caea
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.00515710
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 0x40cb45
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 0x40cb45
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 7
xor eax, eax
jmp 0x40cb74
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.0040cb80
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 0x40cb80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40cb90
xor eax, eax
jmp 0x40cd2d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40ccee
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 + 0x5439a0]
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 0x40cb99
cmp dword [ebp + 0x10], 0
je 0x40cd27
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 + 0x5439a0]
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 0x40ccf4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40d230
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x543dd4
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 0x40d349
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 0x40d2fd
mov edx, dword [ebp + 0x18]
movsx eax, byte [edx + 0x2c]
cmp eax, 0x2e
jne 0x40d2c1
mov ecx, dword [ebp + 0x18]
movsx edx, byte [ecx + 0x2d]
test edx, edx
je 0x40d2fb
mov eax, dword [ebp + 0x18]
movsx ecx, byte [eax + 0x2d]
cmp ecx, 0x2e
je 0x40d2fb
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.0040d230
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40d2fb
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x40d34b
jmp 0x40d329
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.004087d0
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40d329
jmp 0x40d2f3
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 0x40d263
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 0x40d480
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x543dc8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40d5a5
mov edx, dword [ebp + 0x18]
add edx, 0x2c
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
mov eax, 0x5c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov eax, dword [ebp + 0x18]
add eax, 0x2c
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2 + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
and edx, 0x10
je 0x40d556
mov eax, dword [ebp + 0x18]
movzx ecx, word [eax + 0x2c]
cmp ecx, 0x2e
jne 0x40d51a
mov edx, dword [ebp + 0x18]
movzx eax, word [edx + 0x2e]
test eax, eax
je 0x40d554
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x2e]
cmp edx, 0x2e
je 0x40d554
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 1]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040d480
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40d554
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x1c]
jmp 0x40d5a7
jmp 0x40d585
push 0x12
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004087d0
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x1c], 0
je 0x40d585
jmp 0x40d54c
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d4b6
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 0x40e1b0
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53029a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x58c804]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp - 0x24c]
call fcn.00418c72
mov eax, 1
movsx ecx, ax
and ecx, 0xffff
movzx edx, cx
mov eax, 0x64
movsx ecx, ax
and ecx, 0xffff
movzx eax, cx
shl eax, 0x10
or edx, eax
push edx
push 0
push 0x401
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0x94]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x26
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x544268
lea ecx, [ebp - 0x21c]
call fcn.00401c80
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040e5a0
add esp, 0xc
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 1
push 0x544258
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040e490
add esp, 0xc
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00402030
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
call fcn.00402030
mov edx, dword [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0xc8
call fcn.00420d59
mov dword [ebp - 0x224], 1
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.00402030
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.0051555a
mov esp, ebp
pop ebp
ret
Function at 0x40ea30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530403
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58c804]
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 0x40ea8f
xor eax, eax
jmp 0x40eba5
lea ecx, [ebp - 0x40]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40eabb
cmp dword [ebp - 0x14], 0
je 0x40eab4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40eba5
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 0x40eb0a
cmp dword [ebp - 0x14], 0
je 0x40eb03
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40eba5
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 0x40eb56
cmp dword [ebp - 0x14], 0
je 0x40eb52
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40eba5
jmp 0x40eb82
mov dword [ebp - 4], 0xffffffff
jmp 0x40eb90
cmp dword [ebp - 0x14], 0
je 0x40eba0
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