joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033bb5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10033bd9
xor eax, eax
jmp 0x10033d03
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1003398d
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10033c01
xor eax, eax
jmp 0x10033d03
push 1
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x3b21
call fcn.1003357c
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x10033c24
xor eax, eax
jmp 0x10033d03
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100339eb
add esp, 0x18
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.10033a78
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x2b3d
push 0x10a3
call fcn.10033ad9
add esp, 0x14
push dword [ebp - 4]
call fcn.10033462
pop ecx
test eax, eax
jne 0x10033c91
xor eax, eax
jmp 0x10033d03
push 0x4a3f
lea eax, [ebp - 4]
push eax
push 0x6cd
push 1
call fcn.10033b55
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10033ceb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10033cc8
xor eax, eax
jmp 0x10033d03
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10033ce1
xor eax, eax
jmp 0x10033d03
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10033cfc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10033d00
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1004c171
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004c189
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x1004c1d4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004c1b7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004c1d4
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017c2b
mov dword [eax], 0x19c5a654
jmp 0x1004c1ac
mov esp, ebp
pop ebp
ret
Function at 0x10083ed0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008f330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10073674
mov dword [ebp - 0x14], eax
cmp dword [0x1067cd64], esi
jne 0x10083fc3
push 0x800
push esi
push 0x100080fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10083f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100840a3
push esi
push esi
push 0x100080fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100840a3
push 0x10008114
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100840a3
push eax
call ebx
push 0x10008120
push edi
mov dword [0x1067cd64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008130
push edi
mov dword [0x1067cd68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008144
push edi
mov dword [0x1067cd6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067cd74], eax
test eax, eax
je 0x10083fc0
push 0x10008160
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067cd70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10083fe8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10083fdb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10083ffd
push 4
pop eax
jmp 0x100840a5
cmp dword [ebp - 0x14], esi
je 0x10083ffd
push dword [0x1067cd64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10083fe2
mov eax, dword [0x1067cd70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1008405b
cmp dword [0x1067cd74], edi
je 0x1008405b
push eax
call ebx
push dword [0x1067cd74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008405b
test eax, eax
je 0x1008405b
call ecx
test eax, eax
je 0x10084050
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10084050
test byte [ebp - 8], 1
jne 0x1008405b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008408b
mov eax, dword [0x1067cd68]
cmp eax, edi
je 0x10084088
push eax
call ebx
test eax, eax
je 0x10084088
call eax
mov esi, eax
test esi, esi
je 0x10084088
mov eax, dword [0x1067cd6c]
cmp eax, edi
je 0x10084088
push eax
call ebx
test eax, eax
je 0x10084088
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1067cd64]
call ebx
test eax, eax
je 0x100840a3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100840a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f31d
mov esp, ebp
pop ebp
ret
Function at 0x101430a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1019d36
call fcn.010190f8
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
call fcn.010139cf
lea ecx, [esi + 0x30]
call fcn.010139cf
lea ecx, [esi + 0x40]
call fcn.01015a5e
xor edi, edi
lea ecx, [esi + 0x60]
mov dword [ebp - 4], edi
call fcn.01015a5e
lea eax, [esi + 0x78]
lea ecx, [esi + 0x88]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
call fcn.010139cf
lea ecx, [esi + 0x98]
call fcn.010139cf
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xa8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
or dword [esi + 0x70], 0xffffffff
or dword [esi + 0x74], 0xffffffff
or dword [esi + 0x84], 0xffffffff
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0xb4], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x120124c2
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1204c731
call fcn.1201e877
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.1201d290
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1201c0fc
push ecx
mov ecx, esp
push eax
call fcn.1200ff62
call fcn.12012b57
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 0x12012599
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.1200f4b1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1200fe0c
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.12010034
call fcn.12012141
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 0x120125cc
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.KALKCEMRUKRTNIMDAOWGKBZQSJXXZW]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.1201d290
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x120125a3
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.1201d290
lea ecx, [ebp - 0x34]
call fcn.1201bf42
lea ecx, [ebp - 0x1c]
call fcn.1201bf42
lea ecx, [ebp + 0xc]
call fcn.1201bf42
mov eax, ebx
call fcn.1201e821
ret
Function at 0x120125fb
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1204c787
call fcn.1201e877
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.1201d290
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1201c0fc
push ecx
mov ecx, esp
push eax
call fcn.1200ff62
call fcn.12012b57
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 0x120126d2
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.1200f4b1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1200fe0c
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.12010034
call fcn.12012141
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 0x1201270a
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.KALKCEMRUKRTNIMDAOWGKBZQSJXXZW]
cbw
movzx eax, ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1201d389
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x120126dc
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.1201d389
lea ecx, [ebp - 0x34]
call fcn.1201bf42
lea ecx, [ebp - 0x1c]
call fcn.1201bf42
lea ecx, [ebp + 0xc]
call fcn.1201bf42
mov eax, ebx
call fcn.1201e821
ret
Function at 0x12012aa6
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1204c7b4
call fcn.1201e877
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 0x12012b10
push dword [ebp - 0x14]
call fcn.1201e281
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.12021160
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 0x12012b21
push ebx
call fcn.1201e28a
pop ecx
mov ecx, edi
call fcn.120127f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x12012b42
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.12012be5
mov esi, eax
test esi, esi
je 0x12012b3b
mov ecx, edi
call fcn.120127f1
push ebx
call fcn.1201e28a
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1201669e
mov eax, esi
call fcn.1201e821
ret 8

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

Disassembly:
push 0xc
mov eax, 0x1204c7b4
call fcn.1201e877
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 0x12012bd2
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 0x12012b94
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x12012bca
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1201d3e0
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.1201c0fc
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x12012bd2
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.1201669e
mov eax, ebx
call fcn.1201e821
ret
Function at 0x12012be5
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1204c7e4
call fcn.1201e877
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.1201e281
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.12021160
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1201d849
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 0x12012c5f
push esi
call fcn.1201e28a
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.120127f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12012cc5
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.12014b74
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.1201887e
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.120187b5
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x12012cbc
push dword [ebp - 0x120]
call fcn.12027e75
pop ecx
push esi
call fcn.1201e28a
pop ecx
xor eax, eax
call fcn.1201e821
ret 0xc
Function at 0x12014d3c
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 0x12014d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12014e75
push edi
mov edi, 0x94
push edi
call fcn.1201e281
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.12021160
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.1201d849
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 0x12014e58
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x12014e58
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 0x12014e58
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 0x12014e58
push dword [ebp - 8]
call fcn.1201e281
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.12021160
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 0x12014e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x12014e74
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.1201e143
mov esp, ebp
pop ebp
ret
Function at 0x1201992c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1204ce6d
call fcn.1201e877
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.12014c39
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1200ff14
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x120199a0
push dword [ebp - 0xa8]
call fcn.12027e75
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 0x12019a27
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1201e281
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.12021160
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1201d849
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.1201d849
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 0x12019a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1201669e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1201669e
mov eax, edi
call fcn.1201e821
ret 0xc
Function at 0x1201da67
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.1201da2a
push esi
call fcn.1201dd8f
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.1201dd8f
push 0x58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.12021160
lea eax, [ebp - 0x7c]
push eax
push 5
push esi
call fcn.1201d914
mov edi, eax
add esp, 0x20
cmp edi, 5
jb 0x1201dc05
push edi
push esi
call fcn.1201de73
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
call fcn.1201dfff
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1201dc00
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 0x1201dbe5
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 0x1201dbc8
xor edx, edx
lea ecx, [ebx + 0x2c]
test edi, edi
je 0x1201db4e
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 0x1201db39
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
lea eax, [edi + esi]
push eax
lea eax, [ecx + edi]
push eax
call fcn.1201d9e1
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 0x1201db94
lea esi, [ebx + 0xc]
push esi
call fcn.1201d9e1
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.1201d9e1
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 0x1201dbf4
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x1201dc00
push 1
push ebx
call fcn.1201e106
pop ecx
pop ecx
xor ebx, ebx
call fcn.1201dd11
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.1201e143
mov esp, ebp
pop ebp
ret