joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40161e
cmp dword [ebp + 8], 0
je 0x401617
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
jmp 0x4016a5
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004011e0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.00401220
add esp, 0x10
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x401698
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 8], 0
je 0x401694
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
jmp 0x4016a5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e83
mov esp, ebp
pop ebp
ret

Function at 0x4016e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40171b
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e83
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x4017ee
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x100
jae 0x401806
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 4]
mov byte [ebp + eax - 0x120], cl
jmp 0x4017e5
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x40181f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x100
jae 0x401884
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp + eax - 0x120]
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor edx, edx
mov esi, 4
div esi
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax - 0x120]
mov byte [ebp - 5], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + eax - 0x120]
mov byte [ebp + edx - 0x120], cl
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 5]
mov byte [ebp + edx - 0x120], al
jmp 0x401816
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x4018a4
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x20]
jae 0x401941
mov eax, dword [ebp - 4]
add eax, 1
and eax, 0xff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x120]
add edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax - 0x120]
mov byte [ebp - 5], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + eax - 0x120]
mov byte [ebp + edx - 0x120], cl
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 5]
mov byte [ebp + edx - 0x120], al
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x120]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [ebp + eax - 0x120]
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx - 0x120]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
jmp 0x40189b
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402420
Capabilities:
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0x800
lea eax, [ebp - 8]
push eax
call fcn.004012e0
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x420d64
push 0x420d60
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401330
add esp, 0x1c
mov edx, dword [ebp - 0xc]
mov dword [0x420d7c], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x420d60]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401490
add esp, 0xc
mov dword [0x420d80], eax
push 0x114
push 0x41b9b0
mov eax, dword [ebp - 8]
push eax
call fcn.00401490
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4024af
xor eax, eax
jmp 0x402528
mov ecx, dword [ebp - 0x14]
shr ecx, 1
push ecx
mov edx, dword [0x420d64]
push edx
push 0x420d74
push 0x420d6c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401510
add esp, 0x14
mov ecx, dword [ebp - 0x14]
shr ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, dword [0x420d64]
push edx
push 0x420d78
push 0x420d70
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401510
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [0x420d64]
push edx
call fcn.004011e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e83
mov esp, ebp
pop ebp
ret

Function at 0x402540
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.00402420
mov dword [0x420d50], 0
call fcn.00402ca0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
sbb edx, dword [ebp - 0x10]
call fcn.004132c0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movsd qword [ebp - 0x24], xmm0
call fcn.004132c0
movsd xmm1, qword [ebp - 0x24]
divsd xmm1, xmm0
movsd qword [ebp - 0x2c], xmm1
mov eax, dword [0x420d50]
push eax
sub esp, 8
movsd xmm0, qword [ebp - 0x2c]
movsd qword [esp], xmm0
push str._n_nTotal_time_taken:__f_nEncrypted__u_files
call fcn.00401780
add esp, 0x10
push 0
push str.Notification
push str.Begin_decryption.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.004022f0
push 1
push 0x420208
call fcn.00402890
add esp, 8
push 0x514
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025f9
Function at 0x402ca0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
shl edx, 2
xor eax, eax
add edx, 1
setb al
neg eax
or eax, edx
push eax
call fcn.00404935
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x402ce8
jmp 0x402d33
call fcn.00402620
mov dword [0x420d4c], eax
mov dword [ebp - 0x30], 0
jmp 0x402d04
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jae 0x402d24
lea eax, [ebp - 8]
push eax
push 0
push 0x402c10
call fcn.00402dd0
add esp, 0xc
mov dword [ebp - 0x38], eax
jmp 0x402cfb
push 0
push str.C:Users_admin
call fcn.00402890
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e83
mov esp, ebp
pop ebp
ret

Function at 0x402dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xc
call fcn.00404935
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402df0
xor eax, eax
jmp 0x402e7f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x402e1d
mov eax, dword [ebp - 4]
push eax
call fcn.0040491a
add esp, 4
xor eax, eax
jmp 0x402e7f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x402d50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402e6d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.0040491a
add esp, 4
xor eax, eax
jmp 0x402e7f
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x11012a81
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1104cb7a
call fcn.1101ecd8
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edx
mov edi, ebx
mov dword [ebp - 0x24], edx
xor eax, eax
xor ecx, ecx
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x1d], dl
call fcn.1101d718
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1101c584
push ecx
mov ecx, esp
push eax
call fcn.110101e2
call fcn.11013116
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x28], eax
je 0x11012b58
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
mov byte [ebp - 0x24], 0
push dword [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1100f731
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1101008c
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.110102b4
call fcn.11012700
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
xor edi, edi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x11012b8b
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.XIGTURJHRWHBYZKOFHSETCTWMQUUOQ]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.1101d718
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x11012b62
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.1101d718
lea ecx, [ebp - 0x34]
call fcn.1101c3ca
lea ecx, [ebp - 0x1c]
call fcn.1101c3ca
lea ecx, [ebp + 0xc]
call fcn.1101c3ca
mov eax, ebx
call fcn.1101ec82
ret
Function at 0x11012bba
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1104cbd0
call fcn.1101ecd8
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edx
mov edi, ebx
mov dword [ebp - 0x20], edx
xor eax, eax
xor ecx, ecx
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x21]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x21], dl
call fcn.1101d718
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1101c584
push ecx
mov ecx, esp
push eax
call fcn.110101e2
call fcn.11013116
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x28], eax
je 0x11012c91
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1100f731
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1101008c
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.110102b4
call fcn.11012700
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
xor edi, edi
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
je 0x11012cc9
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.XIGTURJHRWHBYZKOFHSETCTWMQUUOQ]
cbw
movzx eax, ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1101d811
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x11012c9b
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.1101d811
lea ecx, [ebp - 0x34]
call fcn.1101c3ca
lea ecx, [ebp - 0x1c]
call fcn.1101c3ca
lea ecx, [ebp + 0xc]
call fcn.1101c3ca
mov eax, ebx
call fcn.1101ec82
ret
Function at 0x11013065
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1104cbfd
call fcn.1101ecd8
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x110130cf
push dword [ebp - 0x14]
call fcn.1101e6e2
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.110215c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x110130e0
push ebx
call fcn.1101e6eb
pop ecx
mov ecx, edi
call fcn.11012db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x11013101
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.110131a4
mov esi, eax
test esi, esi
je 0x110130fa
mov ecx, edi
call fcn.11012db0
push ebx
call fcn.1101e6eb
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.110171a5
mov eax, esi
call fcn.1101ec82
ret 8

Function at 0x11013116
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1104cbfd
call fcn.1101ecd8
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x11013191
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x11013153
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x11013189
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1101d868
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.1101c584
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x11013191
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.110171a5
mov eax, ebx
call fcn.1101ec82
ret
Function at 0x110131a4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1104cc2d
call fcn.1101ecd8
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.1101e6e2
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.110215c0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1101dcaa
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1101321e
push esi
call fcn.1101e6eb
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.11012db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x11013284
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.1101543c
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.110191a6
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.110190dd
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x1101327b
push dword [ebp - 0x120]
call fcn.110282d5
pop ecx
push esi
call fcn.1101e6eb
pop ecx
xor eax, eax
call fcn.1101ec82
ret 0xc
Function at 0x11015604
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1302572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x11015638
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1101573d
push edi
mov edi, 0x94
push edi
call fcn.1101e6e2
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.110215c0
mov eax, dword [esi + 0x10]
push 0x80
push 0x12002470
push edi
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.1101dcaa
add esp, 0x20
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x11015720
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x11015720
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x11015720
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x11015720
push dword [ebp - 8]
call fcn.1101e6e2
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.110215c0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x11015728
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1101573c
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1101e5a4
mov esp, ebp
pop ebp
ret
Function at 0x1101a0e3
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1104d2ad
call fcn.1101ecd8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xa8], eax
call fcn.11015501
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.11010194
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x1101a157
push dword [ebp - 0xa8]
call fcn.110282d5
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1101a1de
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1101e6e2
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.110215c0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1101dcaa
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax - 0xc]
add esi, dword [edx]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.1101dcaa
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1101a1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.110171a5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.110171a5
mov eax, edi
call fcn.1101ec82
ret 0xc
Function at 0x1101afc9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x58
mov eax, 0x1104d3f0
call fcn.1101ecd8
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x50], 0x7459534e
push eax
push eax
sub esp, 0xc
mov dword [ebp - 0x4c], 0x7a77784f
mov ecx, esp
mov dword [ebp - 0x48], 0x61556d4f
mov dword [ebp - 0x44], 0x62773341
mov dword [ebp - 0x40], 0x64347a4f
mov dword [ebp - 0x3c], 0x78634345
mov dword [ebp - 0x38], 0x57596e43
mov dword [ebp - 0x34], 0x6b4d7964
mov dword [ebp - 0x30], 0x6952684f
mov dword [ebp - 0x2c], 0x6c51434c
mov dword [ebp - 0x28], 0x716f584f
mov dword [ebp - 0x24], 0x41414141
mov word [ebp - 0x20], 0x4241
mov byte [ebp - 0x1e], 0x34
mov byte [ebp - 0x54], al
push dword [ebp - 0x54]
mov dword [ebp - 4], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1100f843
lea eax, [ebp - 0x64]
push eax
call fcn.11012bba
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1101c5cd
push eax
lea ecx, [ebp + 0x14]
call fcn.11012e1c
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
setne bl
call fcn.1101c44d
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1101c584
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
test bl, bl
push 0x18
pop esi
push 0
pop edx
push ecx
mov ecx, dword [ebp - 0x58]
cmovne edx, esi
push eax
add ecx, edx
push ecx
call fcn.11023260
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1101c3ca
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.110171a5
mov al, 1
call fcn.1101ec82
ret