joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f90
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x402fab
cmp eax, 4
jne 0x402ffa
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402ffa
test dword [ebp + 8], 0x80000
jne 0x402ffa
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402ffa
cmp dword [ebp - 8], 0
ja 0x402ff1
cmp dword [ebp - 0xc], 0xa00000
jb 0x402ffa
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.00403bf0
test al, al
je 0x403d5c
mov eax, dword [esi + 0x2c]
test eax, eax
jns 0x403caa
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or ecx, 0xffffffff
jmp 0x403cca
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x30]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
cmp ecx, dword [esi + 0x2c]
jne 0x403d5c
cmp dword [esi + 0x1c], 0
push edi
jne 0x403cef
mov eax, dword [esi + 0x24]
test eax, eax
je 0x403cef
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi + 0x24], 0
push 4
lea eax, [esi + 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.00404d60
test al, al
je 0x403d52
mov eax, dword [esi + 0x2c]
sub eax, 0x14
push eax
mov eax, dword [esi + 0x30]
add eax, 0x14
push eax
lea ecx, [esi + 0x18]
call fcn.00404d60
test al, al
je 0x403d52
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.00404e00
test al, al
je 0x403d52
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x18]
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x403d52
add ecx, 4
add edx, 4
sub esi, 4
jae 0x403d37
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
mov ebx, ecx
push eax
push 8
lea ecx, [ebx + 0xc]
call fcn.004047c0
test al, al
je 0x403e9b
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp eax, 0xc
jbe 0x403e88
cmp dword [esi + 8], 0x20
jne 0x403e88
lea ecx, [ebp - 8]
push ecx
push eax
push esi
mov ecx, ebx
call fcn.00404960
push esi
push 0
push dword [0x41623c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x403e9b
cmp dword [ebx + 0x1c], 0
lea esi, [ebx + 0x18]
jne 0x403dee
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403dee
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi + 0xc], 0
push 4
lea eax, [ebx + 0x28]
push eax
mov ecx, esi
call fcn.00404d60
test al, al
je 0x403e85
mov ebx, dword [ebp - 8]
push ebx
push edi
mov ecx, esi
call fcn.00404d60
test al, al
je 0x403e85
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00404e00
test al, al
je 0x403e85
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e71
cmp dword [ebp - 8], 0x14
jne 0x403e71
push 0
lea eax, [ebp + 8]
push eax
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e71
cmp dword [ebp + 8], ebx
jne 0x403e71
mov ecx, edi
mov bl, 1
call fcn.0040c8d0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
xor bl, bl
call fcn.0040c8d0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
jmp 0x403e8d
test esi, esi
je 0x403e9b
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403eb0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0xc], eax
call fcn.00403bf0
test al, al
je 0x40402d
mov ebx, dword [ebp + 8]
xor al, al
xorps xmm0, xmm0
mov byte [ebp - 5], al
movlpd qword [ebp - 0x3c], xmm0
jmp 0x403ee0
test al, al
je 0x403eec
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40402d
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40402d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x34]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx]
push 0
mov eax, dword [eax]
push 0
push edx
push esi
push 2
mov dword [ebp - 0x20], edx
call eax
test al, al
je 0x40402d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor edx, edx
mov ebx, eax
nop
test edi, edi
jb 0x403f6c
ja 0x403f5e
cmp esi, 0x4000
jbe 0x403f6c
mov eax, 0x4000
mov dword [ebp - 0x10], 0
jmp 0x403f71
mov eax, esi
mov dword [ebp - 0x10], edi
cmp edx, eax
jae 0x403f85
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + edx]
mov eax, dword [eax + 0x30]
inc edx
mov byte [edx + eax - 1], cl
jmp 0x403f50
mov ebx, dword [ebp - 0x20]
test edi, edi
mov edi, esi
jne 0x403f92
test esi, esi
je 0x404007
test ebx, ebx
ja 0x403fa7
jb 0x403fa0
cmp edi, 0x4000
jae 0x403fa7
mov esi, edi
mov dword [ebp - 0x20], ebx
jmp 0x403fb3
mov esi, 0x4000
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push esi
push dword [eax + 0x30]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40402d
cmp dword [ebp - 0x28], esi
jne 0x40402d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x30]
sub edi, esi
mov esi, dword [ecx]
sbb ebx, 0
sub edx, edi
sbb eax, ebx
push eax
mov eax, dword [esi]
push edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 2
call eax
test al, al
je 0x40402d
test ebx, ebx
ja 0x403fa7
jb 0x404007
test edi, edi
jne 0x403f92
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, byte [ebp - 5]
inc al
mov byte [ebp - 5], al
cmp al, 2
jb 0x403ee0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404420
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x4045f1
lea eax, [ebp - 8]
push eax
push eax
push eax
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.00405460
test al, al
je 0x4045f1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00405390
test al, al
je 0x4045f1
cmp byte [ebp + 0xc], 0
jne 0x4044bf
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00403c80
test al, al
je 0x4045f1
push ecx
mov eax, 0x4121f4
test ebx, ebx
cmovne eax, ebx
push eax
lea eax, [ebp - 4]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x238]
call fcn.0040c370
test eax, eax
jne 0x4045f1
sub esp, 0xc
mov edx, 0x104
push 0x41221c
lea ecx, [ebp - 0x238]
call fcn.0040c070
test eax, eax
jne 0x4045f1
push eax
push 6
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
je 0x404557
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404040
test al, al
jne 0x404578
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
or esi, 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00405550
xor bl, bl
cmp esi, 0xffffffff
je 0x4045f5
test esi, esi
je 0x4045f5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4045fb
cmp byte [ebp + 0xc], 0
je 0x40458a
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00403eb0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
call fcn.00405460
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
push edi
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
or edi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x40454c
push 1
push ebx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40454c
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor bl, bl
jmp 0x4045fb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x404607
test edi, edi
je 0x404607
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404620
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [ecx + 4], 0
push esi
lea esi, [ecx + 4]
jne 0x40467e
mov eax, dword [ecx]
sub eax, 0
je 0x404642
dec eax
jne 0x404674
push 0xf0000040
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
jmp 0x404667
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40467e
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40467e
mov dword [esi], 0
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x404720
Capabilities:
Create new key via cryptacquirecontext
Import public key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
lea esi, [edi + 4]
jne 0x404788
mov eax, dword [edi]
sub eax, 0
je 0x404748
dec eax
jne 0x40477a
push 0xf0000040
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
jmp 0x40476d
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404788
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404788
pop edi
mov dword [esi], 0
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
je 0x404799
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
push dword [ebp + 8]
push 0x10001
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x4047b8
mov dword [edi], eax
pop edi
xor al, al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x4048f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [ebp + 0x14], esi
jb 0x40494b
cmp dword [ebx], 1
ja 0x40494b
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x40491a
push esi
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
movzx eax, byte [ebp + 0x18]
push edi
push 0
push eax
push 0
push dword [ebx + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0x14
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x14
Function at 0x404a50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 1
ja 0x404ab1
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], esi
jae 0x404a6d
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x404a83
push esi
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
movzx eax, byte [ebp + 0x18]
push edi
push 0
push eax
push 0
push dword [ebx + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0x14
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x14

Function at 0x404ac0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
je 0x404b8b
test byte [0x41622c], 1
jne 0x404b17
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x41622c], 1
jne 0x404b0c
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or byte [0x41622c], 1
mov dword [0x41623c], eax
mov dword [0x416230], 0x40c790
push 0x416f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404b8b
cmp dword [ebx], 1
ja 0x404b7c
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x404b43
push edi
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
cmp ecx, 0xffffffff
je 0x404b7c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404b73
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
push esi
push 0
push dword [0x41623c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x404d60
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x404d73
xor al, al
pop edi
pop ebp
ret 8
cmp dword [edi + 8], 0
push esi
lea esi, [edi + 8]
jne 0x404da0
push 0xf0000040
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404da0
mov dword [esi], eax
pop esi
xor al, al
pop edi
pop ebp
ret 8
add edi, 0xc
cmp dword [edi], 0
jne 0x404dc8
push edi
push 0
push 0
push 0x8004
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x404dc8
mov dword [edi], eax
pop esi
xor al, al
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x404dd7
pop esi
mov al, 1
pop edi
pop ebp
ret 8
push 0
push eax
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
dec eax
neg eax
sbb eax, eax
pop esi
inc eax
pop edi
pop ebp
ret 8

Function at 0x404f60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov dword [0x416548], ecx
mov esi, 1
mov eax, 0x416548
mov edx, dword [eax]
shr edx, 0x1e
xor edx, dword [eax]
add eax, 4
imul edx, edx, 0x6c078965
add edx, esi
mov dword [eax], edx
inc esi
cmp eax, 0x416f04
jl 0x404f71
mov dword [0x416f08], esi
pop esi
ret

Function at 0x404fa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x416f08]
cmp eax, 0x270
jl 0x405077
xor edx, edx
jmp 0x404fc0
mov ecx, dword [edx*4 + 0x41654c]
xor ecx, dword [edx*4 + 0x416548]
inc edx
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x416544]
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [eax*4 + 0x4160d0]
xor ecx, dword [edx*4 + 0x416b78]
mov dword [edx*4 + 0x416544], ecx
cmp edx, 0xe3
jl 0x404fc0
cmp edx, 0x26f
jge 0x405043
push esi
lea esi, [edx*4 + 0x416548]
mov ecx, dword [esi]
xor ecx, dword [esi + 4]
add esi, 4
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and eax, 1
shr ecx, 1
mov eax, dword [eax*4 + 0x4160d0]
xor eax, dword [esi - 0x390]
xor eax, ecx
mov dword [esi - 4], eax
cmp esi, 0x416f04
jl 0x405010
pop esi
mov ecx, dword [0x416548]
xor ecx, dword [0x416f04]
and ecx, 0x7fffffff
xor ecx, dword [0x416f04]
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [eax*4 + 0x4160d0]
xor ecx, dword [0x416b78]
xor eax, eax
mov dword [0x416f04], ecx
mov ecx, dword [eax*4 + 0x416548]
inc eax
mov dword [0x416f08], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x4050c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push ebx
lea eax, [ebx + 0x208]
push 0x104
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4050fb
cmp eax, 0x104
ja 0x4050fb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x405104
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x1a
push esi
nop
call fcn.00404ef0
push 0x416184
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00404fa0
push 0x416184
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, esi
shr ebx, 0x1c
and bl, 0xf
mov ecx, esi
shr ecx, 0x18
and cl, 0xf
add cl, bl
movzx eax, cl
cdq
mov ecx, 0x1a
idiv ecx
mov ecx, dword [ebp - 8]
add ecx, 6
mov dword [ebp - 4], ecx
add dl, 0x41
movzx eax, dl
mov word [ecx - 6], ax
mov eax, esi
shr eax, 0x14
and al, 0xf
add al, bl
movzx eax, al
cdq
idiv dword [ebp - 0xc]
add dl, 0x41
movzx eax, dl
mov word [ecx - 4], ax
mov eax, esi
shr eax, 0x10
and al, 0xf
add al, bl
movzx eax, al
cdq
mov ebx, 0x1a
idiv ebx
mov ebx, dword [ebp - 0x10]
add dl, 0x41
movzx eax, dl
mov word [ecx - 2], ax
movzx eax, si
push eax
push 0x41238c
lea eax, [ebp - 4]
push eax
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
call fcn.0040c410
add esp, 0x14
test eax, eax
jne 0x405238
mov ecx, dword [ebp - 4]
mov edx, ebx
sub edx, ecx
sar edx, 1
test ecx, ecx
jne 0x4051cf
test edx, edx
jne 0x4051d7
cmp edx, 0x7fffffff
jbe 0x4051dc
mov eax, 0x80070057
test eax, eax
js 0x4051f5
test edx, edx
je 0x405238
push ecx
push str..bat
lea eax, [ebp - 4]
push eax
call fcn.0040c370
test eax, eax
jne 0x405238
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x405243
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40522e
cmp eax, 0xb7
jne 0x405238
inc edi
cmp edi, 0x64
jl 0x405110
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405550
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x405570
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x4123ec
mov edx, edi
lea ecx, [ebp - 0x45c]
call fcn.00405a70
add esp, 4
test eax, eax
jne 0x4055a8
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4055dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
nop
cmp word [ebp - 0x228], 0x2e
jne 0x40560e
mov ax, word [ebp - 0x226]
test ax, ax
je 0x4056f9
cmp ax, 0x2e
jne 0x40560e
cmp word [ebp - 0x224], 0
je 0x4056f9
mov ecx, dword [esi]
lea edx, [ebp - 0x254]
mov eax, dword [ecx]
push edx
push edi
call dword [eax]
test eax, eax
je 0x405628
cmp eax, 1
jmp 0x4056f7
test byte [ebp - 0x254], 0x10
je 0x4056ce
test byte [esi + 8], 2
je 0x405668
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00405750
test al, al
je 0x405668
mov ecx, dword [esi]
lea edx, [ebp - 0x254]
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 4]
test eax, eax
je 0x405668
cmp eax, 1
jmp 0x4056f7
test byte [esi + 8], 1
je 0x4056f9
lea eax, [ebp - 0x228]
push eax
mov edx, edi
lea ecx, [ebp - 0x45c]
call fcn.00405a70
add esp, 4
test eax, eax
jne 0x405692
lea ebx, [eax + 3]
jmp 0x4056b0
lea eax, [ebp - 0x45c]
push eax
mov ecx, esi
call fcn.00405570
mov ebx, eax
test ebx, ebx
je 0x4056f9
cmp ebx, 1
je 0x40571c
cmp ebx, 2
je 0x40571c
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push edx
push edi
call dword [eax + 8]
cmp eax, 3
je 0x405672
xor ebx, ebx
cmp eax, 1
jne 0x405715
jmp 0x4056f9
test byte [esi + 8], 4
je 0x4056f9
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00405750
test al, al
je 0x4056f9
mov ecx, dword [esi]
lea edx, [ebp - 0x254]
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 4]
test eax, eax
jne 0x405713
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4055e0
jmp 0x40571c
xor ebx, ebx
cmp eax, 2
setne bl
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x405733
mov eax, 4
cmp esi, 0x12
cmovne ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4