joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ce64
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x45ce6c
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046c0
mov eax, dword [ebp - 8]
call fcn.004046c0
xor eax, eax
push ebp
push 0x45d053
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00408b70
test al, al
je 0x45d038
mov eax, dword [ebp - 8]
call fcn.00408b70
test al, al
je 0x45cec5
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.00408c8c
jmp 0x45ceef
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00408e04
mov eax, dword [ebp - 0x10]
call fcn.00408b80
test al, al
jne 0x45ceef
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408e04
mov eax, dword [ebp - 0x14]
call fcn.00408ba4
push 0
mov eax, dword [ebp - 8]
call fcn.004046d0
push eax
mov eax, dword [ebp - 4]
call fcn.004046d0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 8]
call fcn.00408b70
test al, al
je 0x45cf43
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045c4ec
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0045c4ec
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.0040461c
jne 0x45cf43
mov ebx, 1
jmp 0x45d038
lea eax, [ebp - 0xc]
mov ecx, 0x45d06c
mov edx, dword [ebp - 8]
call fcn.0040451c
mov eax, dword [ebp - 0xc]
call fcn.00408b70
test al, al
je 0x45cf74
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.00408c8c
mov eax, dword [ebp - 0xc]
call fcn.00408cb4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00408ccc
push 0
mov eax, dword [ebp - 8]
call fcn.004046d0
push eax
mov eax, dword [ebp - 4]
call fcn.004046d0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 8]
call fcn.00408b70
test al, al
je 0x45cfd0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0045c4ec
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0045c4ec
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0040461c
jne 0x45cfd0
mov ebx, 1
jmp 0x45d038
call fcn.0045cdb4
test al, al
je 0x45d01a
lea eax, [ebp - 0x28]
call fcn.0045cde4
lea eax, [ebp - 0x28]
mov edx, 0x45d07c
call fcn.004044d8
mov eax, dword [ebp - 0x28]
call fcn.004046d0
push eax
mov eax, dword [ebp - 4]
call fcn.004046d0
push eax
mov eax, dword [ebp - 8]
call fcn.004046d0
push eax
push 0x45d088
call sub.kernel32.dll_WritePrivateProfileStringA
mov ebx, 2
jmp 0x45d038
push 5
mov eax, dword [ebp - 8]
call fcn.004046d0
push eax
mov eax, dword [ebp - 4]
call fcn.004046d0
push eax
call sub.kernel32.dll_MoveFileExA
mov ebx, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d05a
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404234
ret
Function at 0x475a4c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004046c0
mov eax, dword [ebp - 8]
call fcn.004046c0
xor eax, eax
push ebp
push 0x475aec
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x475ac5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046d0
mov esi, eax
push esi
call sub.wininet.dll_DeleteUrlCacheEntry
test ebx, ebx
je 0x475aa0
sub ebx, 0xffffffec
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.004046d0
push eax
push esi
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475ad1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475af3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404234
ret

Function at 0x475afc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x475bbd
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x475b66
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0xb
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x475bd4
call fcn.00409660
mov edx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [0x45b36c]
call fcn.0045b4f8
xor edx, edx
cmp edx, 0xffffffff
jne 0x475b5f
cmp eax, 0xffffffff
setne al
mov ebx, eax
jmp 0x475b9f
push 1
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408e04
mov eax, dword [ebp - 0x18]
call fcn.004046d0
push eax
mov eax, esi
call fcn.004046d0
push eax
mov eax, ebx
call fcn.004046d0
push eax
push 0x475bdc
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475bc4
lea eax, [ebp - 0x18]
call fcn.00404210
lea eax, [ebp - 4]
call fcn.00404210
ret

Function at 0x477090
Capabilities:
Query environment variable

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, esp
mov edx, pe_nt_image_headers32
call fcn.0040706c
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x4770d0
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404480
add esp, 0x100
pop ebx
ret
Function at 0x12012774
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1204c2b0
call fcn.1201e3d9
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.1201cd37
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1201bba3
push ecx
mov ecx, esp
push eax
call fcn.12010002
call fcn.12012e09
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 0x1201284b
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.1200f551
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1200feac
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.120100d4
call fcn.120123f3
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 0x1201287e
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.MPOBEOAQLKROGETVTKWPNRFHTEDHGZ]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.1201cd37
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x12012855
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.1201cd37
lea ecx, [ebp - 0x34]
call fcn.1201b9e9
lea ecx, [ebp - 0x1c]
call fcn.1201b9e9
lea ecx, [ebp + 0xc]
call fcn.1201b9e9
mov eax, ebx
call fcn.1201e383
ret
Function at 0x120128ad
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1204c306
call fcn.1201e3d9
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.1201cd37
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1201bba3
push ecx
mov ecx, esp
push eax
call fcn.12010002
call fcn.12012e09
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 0x12012984
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.1200f551
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1200feac
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.120100d4
call fcn.120123f3
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 0x120129bc
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.MPOBEOAQLKROGETVTKWPNRFHTEDHGZ]
cbw
movzx eax, ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1201ce30
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x1201298e
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.1201ce30
lea ecx, [ebp - 0x34]
call fcn.1201b9e9
lea ecx, [ebp - 0x1c]
call fcn.1201b9e9
lea ecx, [ebp + 0xc]
call fcn.1201b9e9
mov eax, ebx
call fcn.1201e383
ret
Function at 0x12012d58
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1204c333
call fcn.1201e3d9
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 0x12012dc2
push dword [ebp - 0x14]
call fcn.1201dde3
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.12020cd0
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 0x12012dd3
push ebx
call fcn.1201ddec
pop ecx
mov ecx, edi
call fcn.12012aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x12012df4
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.12012e97
mov esi, eax
test esi, esi
je 0x12012ded
mov ecx, edi
call fcn.12012aa3
push ebx
call fcn.1201ddec
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1201695d
mov eax, esi
call fcn.1201e383
ret 8

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

Disassembly:
push 0xc
mov eax, 0x1204c333
call fcn.1201e3d9
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 0x12012e84
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 0x12012e46
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x12012e7c
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1201ce87
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.1201bba3
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x12012e84
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.1201695d
mov eax, ebx
call fcn.1201e383
ret
Function at 0x12012e97
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1204c363
call fcn.1201e3d9
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.1201dde3
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.12020cd0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1201d3ab
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 0x12012f11
push esi
call fcn.1201ddec
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.12012aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12012f77
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.12015000
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.120188d6
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.1201880d
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x12012f6e
push dword [ebp - 0x120]
call fcn.120279e5
pop ecx
push esi
call fcn.1201ddec
pop ecx
xor eax, eax
call fcn.1201e383
ret 0xc
Function at 0x120151c8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1602572c]
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 0x120151fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12015301
push edi
mov edi, 0x94
push edi
call fcn.1201dde3
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.12020cd0
mov eax, dword [esi + 0x10]
push 0x80
push 0x14002470
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.1201d3ab
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 0x120152e4
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x120152e4
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 0x120152e4
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 0x120152e4
push dword [ebp - 8]
call fcn.1201dde3
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.12020cd0
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 0x120152ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12015300
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.1201dca5
mov esp, ebp
pop ebp
ret
Function at 0x12019a64
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1204c9e9
call fcn.1201e3d9
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.120150c5
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1200ffb4
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x12019ad8
push dword [ebp - 0xa8]
call fcn.120279e5
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 0x12019b5f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1201dde3
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.12020cd0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1201d3ab
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.1201d3ab
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 0x12019b67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1201695d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1201695d
mov eax, edi
call fcn.1201e383
ret 0xc
Function at 0x1201a81d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x60
mov eax, 0x1204cb2c
call fcn.1201e3d9
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x58], 0x6c384449
push eax
push eax
sub esp, 0xc
mov dword [ebp - 0x54], 0x5949544c
mov ecx, esp
mov dword [ebp - 0x50], 0x306b6945
mov dword [ebp - 0x4c], 0x70594144
mov dword [ebp - 0x48], 0x68417963
mov dword [ebp - 0x44], 0x4230414e
mov dword [ebp - 0x40], 0x36643247
mov dword [ebp - 0x3c], 0x6d4d6747
mov dword [ebp - 0x38], 0x5838534c
mov dword [ebp - 0x34], 0x64307a4a
mov dword [ebp - 0x30], 0x62414742
mov dword [ebp - 0x2c], 0x43597a46
mov dword [ebp - 0x28], 0x75517a46
mov dword [ebp - 0x24], 0x41414142
mov word [ebp - 0x20], 0x4341
mov byte [ebp - 0x1e], 0x51
mov byte [ebp - 0x5c], al
push dword [ebp - 0x5c]
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 - 0x58]
push eax
call fcn.1200f663
lea eax, [ebp - 0x6c]
push eax
call fcn.120128ad
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1201bbec
push eax
lea ecx, [ebp + 0x14]
call fcn.12012b0f
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
setne bl
call fcn.1201ba6c
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.1201bba3
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 - 0x60]
cmovne edx, esi
push eax
add ecx, edx
push ecx
call fcn.12022970
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1201b9e9
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.1201695d
mov al, 1
call fcn.1201e383
ret
Function at 0x1201d5c9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1602572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.1201d58c
push esi
call fcn.1201d8f1
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.1201d8f1
push 0x58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.12020cd0
lea eax, [ebp - 0x7c]
push eax
push 5
push esi
call fcn.1201d476
mov edi, eax
add esp, 0x20
cmp edi, 5
jb 0x1201d767
push edi
push esi
call fcn.1201d9d5
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
call fcn.1201db61
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1201d762
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
and dword [ebp - 8], 0
push ecx
push 0x40
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1201d747
lea eax, [ebp - 8]
push eax
push 0x40
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1201d72a
xor edx, edx
lea ecx, [ebx + 0x2c]
test edi, edi
je 0x1201d6b0
sub esi, ecx
mov al, byte [esi + ecx]
mov byte [ecx], al
mov byte [ebx + edx + 0x4c], al
inc edx
inc ecx
cmp edx, edi
jb 0x1201d69b
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
lea eax, [edi + esi]
push eax
lea eax, [ecx + edi]
push eax
call fcn.1201d543
mov edx, dword [ebp - 0x18]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
push edx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1201d6f6
lea esi, [ebx + 0xc]
push esi
call fcn.1201d543
pop ecx
pop ecx
sub eax, ebx
sub eax, 0xc
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.1201d543
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebx + 8], eax
lea eax, [ebx + 0x2c]
push edi
push eax
push dword [ebp - 0x10]
mov dword [ebx + 4], edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [ebx], 0
je 0x1201d756
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x1201d762
push 1
push ebx
call fcn.1201dc68
pop ecx
pop ecx
xor ebx, ebx
call fcn.1201d873
push 0x16027990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1201dca5
mov esp, ebp
pop ebp
ret