joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [ecx + 0x1000]
mov esi, edx
mov dword [ebp - 8], esi
push 0x10
mov edx, dword [esi]
mov esi, dword [edi]
pop edi
xor edx, dword [ebx]
mov dword [ebp - 4], edx
call fcn.0040399b
mov edx, eax
lea ebx, [ebx + 4]
xor edx, esi
mov esi, dword [ebp - 4]
sub edi, 1
jne 0x4039e7
mov eax, dword [ecx + 0x1044]
mov edi, dword [ebp + 8]
xor eax, esi
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ecx + 0x1040]
xor eax, edx
mov dword [edi], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403a1f
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push 0x12
pop eax
mov ecx, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 0x1000]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov esi, 0x6bac38
rep movsd dword es:[edi], dword [esi]
push 4
pop edi
lea ecx, [ebx + 0x800]
mov dword [ebp - 0xc], edi
xor edx, edx
mov esi, 0x100
mov eax, dword [edx + 0x6bac80]
mov dword [ecx - 0x800], eax
mov eax, dword [edx + 0x6bb080]
mov dword [ecx - 0x400], eax
mov eax, dword [edx + 0x6bb480]
mov dword [ecx], eax
mov eax, dword [edx + 0x6ba838]
add edx, edi
mov dword [ecx + 0x400], eax
add ecx, edi
sub esi, 1
jne 0x403a5b
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x10], edi
movsx eax, cx
xor edx, edx
shl esi, 8
movzx eax, byte [eax + ebx]
or esi, eax
lea eax, [ecx + 1]
movsx ecx, ax
cmp ecx, dword [ebp + 8]
movzx eax, ax
cmovl edx, eax
movzx eax, dx
mov edx, eax
mov ecx, eax
sub edi, 1
jne 0x403a9a
mov eax, dword [ebp - 8]
push 4
pop edi
xor dword [eax], esi
add eax, edi
sub dword [ebp - 4], 1
mov dword [ebp - 8], eax
jne 0x403a95
mov ebx, dword [ebp - 0x14]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 9
lea esi, [ebx + 0x1004]
pop edi
lea eax, [ebp - 8]
mov ecx, ebx
push eax
lea edx, [ebp - 4]
call fcn.004039ca
mov eax, dword [ebp - 4]
add esp, 4
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
lea esi, [esi + 8]
sub edi, 1
jne 0x403aea
mov esi, ebx
mov edi, 0x80
lea eax, [ebp - 8]
mov ecx, ebx
push eax
lea edx, [ebp - 4]
call fcn.004039ca
mov eax, dword [ebp - 4]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
sub edi, 1
jne 0x403b15
sub dword [ebp - 0xc], 1
jne 0x403b10
pop edi
pop esi
pop ebx
xor eax, eax
leave
ret
Function at 0x404304
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, dl
push edi
mov edi, ecx
test bl, bl
jne 0x404326
or eax, 0xffffffff
jmp 0x4043ff
cmp bl, 0x38
jbe 0x404333
push 0xfffffffffffffffe
pop eax
jmp 0x4043ff
push esi
push 0x48
push 0x6bc880
push 0x7324c8
call fcn.00638b30
push 0x1000
push 0x6bb880
push 0x732510
call fcn.00638b30
add esp, 0x18
movzx ebx, bl
push 2
pop esi
lea eax, [esi - 2]
cdq
idiv ebx
lea eax, [esi - 1]
movzx ecx, byte [edx + edi]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
mov eax, esi
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 1]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
xor dword [esi + 0x7324c6], ecx
add esi, 4
cmp esi, 0x4a
jl 0x404362
xorps xmm0, xmm0
mov ebx, 0x7324c8
movlpd qword [ebp - 0xc], xmm0
mov edi, ebx
mov esi, 0x732510
push 0
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.00403b46
mov eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
add edi, 8
cmp edi, esi
jl 0x4043ba
push 0
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.00403b46
mov eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 8
cmp esi, 0x733510
jl 0x4043d9
pop esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret

Function at 0x4045aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x4045f4
push 0x39
pop eax
mov dl, byte [esi + ebx]
mov cl, byte [esi + ebx + 1]
cmp al, dl
push 0x39
sbb al, al
and al, 7
add al, 0x30
sub dl, al
pop eax
shl dl, 4
cmp al, cl
push 0x39
sbb al, al
and al, 7
add al, 0x30
sub cl, al
mov eax, esi
xor dl, cl
shr eax, 1
mov ecx, dword [ebp + 8]
add esi, 2
mov byte [eax + ecx], dl
pop eax
cmp esi, edi
jb 0x4045bd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x404b74
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push ebx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
test esi, esi
je 0x404c1e
cmp esi, 1
je 0x404c1e
mov eax, 0x3e8
cmp esi, 4
je 0x404bc3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x404bbe
mov byte [edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x3e8
cmp byte [edi], 0
jne 0x404c19
sub esi, 0
je 0x404c0a
dec esi
sub esi, 1
je 0x404c03
sub esi, 1
je 0x404bfc
sub esi, 1
je 0x404bf5
sub esi, 1
je 0x404bee
sub esi, 1
jne 0x404c0a
push str.RAM_Disk
jmp 0x404c0f
push str.CD_DVD_Drive
jmp 0x404c0f
push str.Network_Drive
jmp 0x404c0f
push str.Local_Disk
jmp 0x404c0f
push str.External_Disk
jmp 0x404c0f
push 0x6c5bb9
push eax
push edi
call fcn.006494f3
add esp, 0xc
xor eax, eax
inc eax
jmp 0x404c20
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x404c24
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x3f0], edx
xor dh, dh
push esi
mov dword [ebp - 0x3fc], eax
mov byte [eax], dh
xor eax, eax
push edi
mov dword [ebp - 0x3f8], ecx
mov byte [ebp + eax - 0x3ec], al
inc eax
cmp eax, 0x100
jl 0x404c5e
mov edi, dword [ebp - 0x3f4]
xor esi, esi
xor ebx, ebx
mov dl, byte [ebp + esi - 0x3ec]
mov al, byte [edi + ebx]
add al, dl
add dh, al
movzx ecx, dh
mov al, byte [ebp + ecx - 0x3ec]
mov byte [ebp + esi - 0x3ec], al
lea eax, [ebx + 1]
inc esi
mov byte [ebp + ecx - 0x3ec], dl
cmp eax, dword [ebp + 0xc]
sbb ebx, ebx
and ebx, eax
cmp esi, 0x100
jl 0x404c77
mov edi, dword [ebp - 0x3f8]
xor bh, bh
mov dh, 1
xor esi, esi
movzx ecx, dh
mov bl, byte [ebp + ecx - 0x3ec]
add bh, bl
inc dh
movzx eax, bh
mov dl, byte [ebp + eax - 0x3ec]
mov byte [ebp + ecx - 0x3ec], dl
add dl, bl
mov byte [ebp + eax - 0x3ec], bl
movzx eax, dl
mov al, byte [ebp + eax - 0x3ec]
xor byte [edi + esi], al
inc esi
sub dword [ebp - 0x3f0], 1
jne 0x404cbc
push edi
push 0x3e8
push dword [ebp - 0x3fc]
mov byte [edi + esi], 0
call fcn.006494f3
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
xor ecx, ebp
inc eax
pop edi
pop esi
pop ebx
call fcn.006122f0
leave
ret
Function at 0x404d25
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
sub esp, 0x10
push ebx
push esi
push edi
push 0xf0000000
xor ebx, ebx
lea eax, [ebp - 8]
push 1
push ebx
push ebx
push eax
mov edi, ecx
mov dword [ebp - 8], ebx
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x404d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA1HashBytes
push str._n_s_CryptAcquireContext_failed___Error0x_.8x
call fcn.00404413
add esp, 0xc
xor eax, eax
jmp 0x404e77
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x404daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA1HashBytes
push str._n_s_CryptCreateHash_failed___Error0x_.8x
call fcn.00404413
add esp, 0xc
jmp 0x404e58
push ebx
push 8
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x404dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA1HashBytes
push str._n_s_CryptHashData_failed___Error0x_.8x
jmp 0x404d9d
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x10]
push 4
pop ecx
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
push ecx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x404e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSHA1HashBytes
push str._n_s_CryptGetHashParam_failed_to_get_Hash_size__Error0x_.8x
jmp 0x404d9d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp dword [ecx], eax
jae 0x404e21
push eax
push dword [ecx]
push str.GetSHA1HashBytes
push str._n_s_Output_buffer_size___d__is_not_sufficient__Required_Size___d
call fcn.00404413
add esp, 0x10
jmp 0x404e58
push ebx
push ecx
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x404e45
push str.GetSHA1HashBytes
push str._n__s___Hash_Computed_successfully
call fcn.00404413
xor esi, esi
inc esi
jmp 0x404e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCryptGetHashParam_failed___Error0x_.8x
call fcn.00404413
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x404e66
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x404e75
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e7c
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf0000000
xor esi, esi
mov dword [ebp - 0x28], eax
xor eax, eax
inc esi
push esi
push eax
push eax
mov dword [ebp - 0x20], eax
mov edi, edx
mov dword [ebp - 0x1c], eax
mov ebx, ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x404ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x404f7d
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x404ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x404ec0
push 0
push edi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x404f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x404ee7
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x14
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x404f5f
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
je 0x404f4d
inc eax
cmp eax, ecx
jb 0x404f3f
add eax, eax
cmp eax, 0x100
jae 0x404f8c
push ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
call fcn.00638b30
add esp, 0xc
jmp 0x404f67
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x404f92
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov byte [ebx], 0
mov edi, edx
test esi, esi
je 0x405096
cmp edi, 1
jb 0x405096
push 0x20
pop eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push str.xenarmor_5501_5501_5501_xenarmor
push eax
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], 0x6610
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x38]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x405090
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x405090
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 2
push eax
push 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x405090
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x405090
cmp dword [ebp - 0x34], 0
je 0x405064
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x38], 0
je 0x405075
push 0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x3c]
push esi
push 0x3e8
push ebx
mov byte [esi + ecx], 0
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x405098
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x4050a7
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c8
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x138c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push esi
push 0x1388
push eax
call fcn.006494f3
push esi
call fcn.00643470
push 0x20
mov dword [ebp - 0x13c4], eax
pop eax
push eax
mov dword [ebp - 0x13b0], eax
lea eax, [ebp - 0x13ac]
push str.xenarmor_5501_5501_5501_xenarmor
push eax
mov dword [ebp - 0x13b8], 0x208
mov dword [ebp - 0x13b4], 0x6610
call fcn.00638b30
add esp, 0x1c
lea eax, [ebp - 0x13c0]
xor esi, esi
push 0xf0000000
push 0x18
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4051f6
lea eax, [ebp - 0x13bc]
push eax
push esi
push esi
push 0x2c
lea eax, [ebp - 0x13b8]
push eax
push dword [ebp - 0x13c0]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4051f6
push esi
lea eax, [ebp - 0x13c8]
mov dword [ebp - 0x13c8], 2
push eax
push 4
push dword [ebp - 0x13bc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4051f6
push 0x1388
lea eax, [ebp - 0x13c4]
push eax
lea eax, [ebp - 0x138c]
push eax
push esi
push 1
push esi
push dword [ebp - 0x13bc]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4051f6
cmp dword [ebp - 0x13bc], esi
je 0x4051be
push dword [ebp - 0x13bc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x13c0], esi
je 0x4051d3
push esi
push dword [ebp - 0x13c0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x13c4]
lea ecx, [ebp - 0x138c]
push ecx
push edi
call fcn.00638b30
mov ecx, dword [ebp - 0x13c4]
xor eax, eax
add esp, 0xc
mov dword [ebx], ecx
inc eax
jmp 0x4051fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x4052b4
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0xf0000000
push 1
push eax
push eax
mov dword [ebp - 0x1c], eax
mov edi, edx
mov dword [ebp - 0x18], eax
mov ebx, ecx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4052f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405374
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x405317
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405369
push 0
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40535a
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40535a
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00638b30
add esp, 0xc
jmp 0x405360
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret

Function at 0x405385
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push ecx
mov ebx, edx
xor edi, edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4053a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4053fe
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4053c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4053f5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4053be
push dword [ebp + 8]
push ebx
push eax
call fcn.00638b30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4053be
xor edi, edi
inc edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405402
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 1
push eax
push 0xf01ff
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405463
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x405462
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
cmp dword [ebp - 0x18], 0
je 0x405472
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006122f0
leave
ret

Function at 0x40547e
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
sub esp, 0x424
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, edx
push 0xf0000000
push 1
push eax
push eax
mov dword [ebp - 0x420], eax
mov esi, eax
mov dword [ebp - 0x41c], eax
mov ebx, ecx
mov byte [edi], al
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4054d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4055dc
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4054fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x4055cc
push 0
push ebx
call fcn.00648cfd
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4055cc
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x14
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4055c0
xor bl, bl
xor esi, esi
mov al, byte [ebp + esi - 0x18]
add bl, al
movzx eax, al
push eax
push edi
push str._s_2.2X
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.00402e0a
lea eax, [ebp - 0x418]
push eax
push 0x3e8
push edi
call fcn.006494f3
add esp, 0x20
inc esi
cmp esi, 0x14
jl 0x405551
movzx eax, bl
push eax
push edi
push str._s_2.2X
lea eax, [ebp - 0x418]
push 0x400
push eax
call fcn.00402e0a
lea eax, [ebp - 0x418]
push eax
push 0x3e8
push edi
call fcn.006494f3
xor esi, esi
add esp, 0x20
inc esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055fe
shr eax, 4
and eax, 1
ret
xor eax, eax
ret
Function at 0x405601
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x54]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.006390b0
add esp, 0xc
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
inc ebx
or esi, ebx
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x54]
mov word [ebp - 0x24], si
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405659
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40566b
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405685
shr eax, 4
not eax
and eax, 1
ret
xor eax, eax
ret

Function at 0x4056c1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138c
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.C:Windows
lea edi, [ebp - 0x3ec]
push 0x3dd
lea eax, [ebp - 0x3e1]
mov ebx, ecx
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.006390b0
push 0xf
pop ecx
mov esi, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
lea edi, [ebp - 0xbbc]
rep movsd dword es:[edi], dword [esi]
push 0x3ab
lea eax, [ebp - 0xb7f]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.006390b0
push 0xd
pop ecx
mov esi, str.C:Program_FilesMicrosoftEdgeApplicationmsedge.exe
lea edi, [ebp - 0x7d4]
rep movsd dword es:[edi], dword [esi]
push 0x3b1
lea eax, [ebp - 0x79d]
push 0
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.006390b0
push 0xc
pop ecx
mov esi, str.C:Program_FilesInternet_Exploreriexplore.exe
lea edi, [ebp - 0xfa4]
rep movsd dword es:[edi], dword [esi]
push 0x3b8
xor esi, esi
lea eax, [ebp - 0xf74]
push esi
push eax
call fcn.006390b0
add esp, 0x30
push 1
push esi
push esi
push ebx
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x405802
push 0x200
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov al, byte [ebp - 0x3ec]
mov byte [ebp - 0xbbc], al
mov byte [ebp - 0x7d4], al
mov byte [ebp - 0xfa4], al
call fcn.00405688
test eax, eax
lea ecx, [ebp - 0xbbc]
lea esi, [ebp - 0x7d4]
cmovne esi, ecx
mov ecx, esi
call fcn.00405670
test eax, eax
lea ecx, [ebp - 0xfa4]
push ebx
cmovne ecx, esi
lea eax, [ebp - 0x138c]
push ecx
push 0x6c5ef8
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
lea ecx, [ebp - 0x138c]
push 3
pop edx
call fcn.00405601
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret