joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aa70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x44aa85
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44aa90
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44dd60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44ddd1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x44dd9f
cmp eax, 2
jne 0x44ddbb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x44ddcb
test ecx, ecx
je 0x44ddc6
test cl, 1
jne 0x44ddbb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x44ddcb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44f140
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x44f308
test eax, eax
je 0x44f308
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x44f308
push ecx
push ebx
push eax
call fcn.00470520
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x44f308
cmp edi, 0xffffffff
je 0x44f301
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00405170
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44f301
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x44f297
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x44f301
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x44f297
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x44f230
cmp edi, esi
jae 0x44f297
nop
sub esi, edi
sbb ecx, eax
js 0x44f245
jg 0x44f240
cmp esi, 0x400000
jb 0x44f245
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x44f297
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004051c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x44f28b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x44f230
jg 0x44f297
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x44f230
lea eax, [ebp - 0x6c]
push eax
call fcn.00404ea0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02x
push 3
push edi
call fcn.0044f730
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x44f2b0
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.004a3de3
add esp, 8
mov esi, 1
test ebx, ebx
je 0x44f2ed
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x44f2fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044474a
mov esp, ebp
pop ebp
ret

Function at 0x45099d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a8f08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a8b08

Function at 0x4a8f13
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a8c8b

Function at 0x4ae9bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae141

Function at 0x4ae9c8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae380

Function at 0x4af528
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af3f5

Function at 0x4b7ddb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x53ea98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b7e1c
cmp byte [edx], 0xa
jne 0x4b7e1c
or byte [eax + edi + 0x28], 4
jmp 0x4b7e21
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4b7f12
mov al, byte [ebx]
cmp al, 0x1a
je 0x4b7ef3
cmp al, 0xd
je 0x4b7e4a
mov byte [esi], al
inc esi
inc ebx
jmp 0x4b7ee8
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4b7e6a
cmp byte [eax], 0xa
jne 0x4b7e5f
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4b7e65
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4b7ee8
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b7ee1
cmp dword [ebp - 0x14], 0
je 0x4b7ee1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x53ea98]
test byte [eax + edi + 0x28], 0x48
je 0x4b7eb8
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4b7ea8
mov byte [esi], dl
jmp 0x4b7ee4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x53ea98]
mov byte [eax + edi + 0x2a], dl
jmp 0x4b7ee4
cmp byte [ebp - 1], 0xa
jne 0x4b7eca
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4b7eca
mov byte [esi], 0xa
jmp 0x4b7e67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b9a79
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b7ee5
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4b7e33
jmp 0x4b7f12
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x53ea98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b7f0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b7f12
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7f1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x53ea98]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4b7f61
cmp word [edx], bx
jne 0x4b7f61
or byte [edi + eax + 0x28], 4
jmp 0x4b7f66
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4b80ba
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4b809a
cmp ax, word [ebp - 0x10]
je 0x4b7f9f
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4b808f
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4b7fc5
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4b7fb5
push ecx
pop eax
push 4
jmp 0x4b7fba
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4b8089
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b8080
cmp dword [ebp - 0x18], 0
je 0x4b8080
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x53ea98]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4b804c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4b8010
mov word [esi], ax
jmp 0x4b8044
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x53ea98]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x53ea98]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x53ea98]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4b808f
cmp word [ebp - 4], ax
jne 0x4b8061
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4b8061
mov word [esi], ax
add esi, 2
jmp 0x4b808f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b9a79
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b808c
jmp 0x4b8083
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4b7f7f
jmp 0x4b80ba
mov ecx, dword [ecx*4 + 0x53ea98]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4b80b1
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4b80ba
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf2a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004bf8b0
add esp, 8
test al, al
je 0x4bf2c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4bf2c5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4bf8b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4c0d60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c0d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c0d8b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4c1fc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x48], 0x740068
push edi
mov dword [ebp - 0x44], 0x700074
mov dword [ebp - 0x40], 0x2f003a
mov dword [ebp - 0x3c], 0x61002f
mov dword [ebp - 0x38], 0x690070
mov dword [ebp - 0x34], 0x35002e
mov dword [ebp - 0x30], 0x740032
mov dword [ebp - 0x2c], 0x6f006f
mov dword [ebp - 0x28], 0x62006c
mov dword [ebp - 0x24], 0x78006f
mov dword [ebp - 0x20], 0x63002e
mov dword [ebp - 0x1c], 0x6d006f
mov dword [ebp - 0x18], 0x70002f
mov dword [ebp - 0x14], 0x2f0063
mov dword [ebp - 0x10], 0x640075
mov dword [ebp - 0xc], 0x65002f
mov dword [ebp - 8], 0x610076
mov word [ebp - 4], ax
call fcn.0041d5d0
mov ecx, eax
test ecx, ecx
je 0x4c20a1
mov eax, dword [ecx]
push 2
push 0x22
call dword [eax]
test eax, eax
je 0x4c20ab
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x22
jl 0x4c2097
mov dword [eax - 0xc], 0x22
xor eax, eax
mov ecx, dword [esi]
push 0x44
mov word [ecx + 0x44], ax
lea eax, [ebp - 0x48]
push eax
push 0x44
push dword [esi]
call fcn.004c2a30
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402ad0
push 0x80004005
call fcn.00402ad0
call fcn.004030c0
int3
Function at 0x4c4ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004c3c20
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4c4f73
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4c4f33
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c4f51
call fcn.00418250
mov esi, eax
test esi, esi
js 0x4c4f6c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4c4f6a
call fcn.00418250
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4c4f75
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4c4f75
xor esi, esi
test edi, edi
je 0x4c4f80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0044474a
mov esp, ebp
pop ebp
ret
Function at 0x4c8150
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7e16
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4c823d
test edi, edi
je 0x4c8269
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4c8295
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4c82c1
cmp byte [ecx + 0x10], 0
je 0x4c82ed
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4c8319
jmp 0x4c8215
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xc0]
push eax
call fcn.0046ff32
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xcc]
push eax
call fcn.0046ff32
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xd8]
push eax
call fcn.0046ff32
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xe4]
push eax
call fcn.0046ff32
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xf0]
push eax
call fcn.0046ff32
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004ca5e0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004c6af0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004c6510
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004c8d60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004c6510
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004c6510
add esp, 8
mov ecx, eax
push 0x4cb090
call fcn.004c7ae0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004c7820
push 0x5143d0
push eax
call fcn.004c6510
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004cb810
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00438933
push eax
lea ecx, [ebp - 0xfc]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xfc]
push eax
call fcn.0046ff32
push 0
push 0
call fcn.0046ff32
int3
Function at 0x4c8770
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7e96
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x4c8859
test esi, esi
je 0x4c8885
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4c88b1
cmp byte [ecx + 0x10], 0
je 0x4c88dd
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4c8909
jmp 0x4c8831
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xc0]
push eax
call fcn.0046ff32
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xcc]
push eax
call fcn.0046ff32
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xd8]
push eax
call fcn.0046ff32
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xe4]
push eax
call fcn.0046ff32
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004ca5e0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004c6af0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004c6510
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004c8d60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004c6510
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004c6510
add esp, 8
mov ecx, eax
push 0x4cb090
call fcn.004c7ae0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004c7820
push 0x5143d0
push eax
call fcn.004c6510
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004cb810
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00438933
push eax
lea ecx, [ebp - 0xf0]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xf0]
push eax
call fcn.0046ff32
push 0
push 0
call fcn.0046ff32
int3
Function at 0x4c9170
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7f38
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4c91ca
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4c92f9
test ecx, ecx
je 0x4c9314
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4c91f9
cmp esi, 0x18
je 0x4c91f9
cmp esi, 0x20
jne 0x4c932f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00470520
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4c9240
cmp esi, 0x18
je 0x4c9232
cmp esi, 0x20
jne 0x4c934a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4c924c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4c924c
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004cbb10
add esp, 0x10
test eax, eax
jne 0x4c9365
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4c9386
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4c93a7
jmp 0x4c92c3
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4c92d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x58]
push eax
call fcn.0046ff32
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x64]
push eax
call fcn.0046ff32
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x70]
push eax
call fcn.0046ff32
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x7c]
push eax
call fcn.0046ff32
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x88]
push eax
call fcn.0046ff32
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0x94]
push eax
call fcn.0046ff32
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004c6e50
push 0x52b564
lea eax, [ebp - 0xa0]
push eax
call fcn.0046ff32
push 0
push 0
call fcn.0046ff32
int3