joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4625c0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, 4
call fcn.00468d20
cmp dword [esp + 0xc], 0x60
push edi
mov edi, ecx
mov dword [esp + 4], 1
jae 0x4625fa
push str.Wrong_pass_file_size_n
call fcn.0041a700
mov eax, dword [esp + 0x10]
push eax
call fcn.004690f0
add esp, 8
xor al, al
pop edi
pop ecx
ret 8
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
push 0x2c
lea ebx, [edi + 0x3c]
add ecx, 8
push ebx
push ecx
call fcn.0041aba0
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
add esp, 0xc
push 0x10
push 0x18
push 0
push 0
lea esi, [edi + 0x68]
push esi
call ebp
test eax, eax
jne 0x462631
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf0000000
push 0x18
push 0
push 0
push esi
mov dword [esi], 0
call ebp
test eax, eax
jne 0x462673
push str.CryptAcquireContext_error_n
call fcn.0041a700
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push edx
call fcn.004690f0
add esp, 4
pop esi
pop ebp
pop ebx
xor al, al
pop edi
pop ecx
ret 8
mov eax, dword [esi]
add edi, 0x6c
push edi
push 1
push 0
push 0x2c
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x462692
push str.CryptImport_error_n
jmp 0x4626ad
mov eax, dword [edi]
push 0
lea edx, [esp + 0x14]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x4626c9
push str.SetCipherMode_error_n
call fcn.0041a700
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004690f0
add esp, 8
pop esi
pop ebp
pop ebx
xor al, al
pop edi
pop ecx
ret 8
mov edx, dword [esp + 0x18]
push edx
call fcn.004690f0
add esp, 4
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
pop ecx
ret 8

Function at 0x4626e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x1c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0x6c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x46273a
push str.DuplicateKey_error_n
call fcn.0041a700
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004690b5
add esp, 0x1c
ret 4
mov edx, dword [esp + 8]
push 0
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
mov ecx, esi
call fcn.00424750
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea edx, [esp + 0xc]
push 0x10
push edx
call fcn.0041a7a0
mov ecx, dword [esp + 0x24]
add esp, 8
pop esi
xor ecx, esp
call fcn.004690b5
add esp, 0x1c
ret 4
Function at 0x4627a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x2c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 0x6c]
push esi
mov esi, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x4627fa
push str.DuplicateKey_error_n
call fcn.0041a700
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004690b5
add esp, 0x2c
ret 4
push 0
push 0x10
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00424be0
sub eax, 0x10
sbb edx, 0
push edx
push eax
mov ecx, esi
call fcn.00424750
mov ecx, dword [esp + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov edx, dword [esp + 8]
push 0
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
mov ecx, esi
call fcn.00424750
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea edx, [esp + 0xc]
push 0x10
push edx
call fcn.0041a7a0
mov ecx, dword [esp + 0x34]
add esp, 8
pop esi
xor ecx, esp
call fcn.004690b5
add esp, 0x2c
ret 4
Function at 0x462a00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x20
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0x6c]
push esi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x462b37
push ebx
push ebp
push edi
mov ecx, esi
call fcn.00424be0
sub eax, 4
sbb edx, 0
push edx
push eax
mov ecx, esi
call fcn.004249e0
mov ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.00424be0
sub eax, 5
sbb edx, 0
push edx
push eax
mov ecx, esi
call fcn.00424950
movzx eax, al
cdq
mov ebp, edx
push ebp
mov ebx, eax
push ebx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00424be0
mov ecx, 0xfffffdf3
sub ecx, ebx
mov edi, 0xffffffff
sbb edi, ebp
add eax, ecx
adc edx, edi
push edx
push eax
mov ecx, esi
call fcn.00424750
mov edx, dword [esp + 0x10]
push edx
call fcn.004691cd
mov edi, eax
add esp, 4
test edi, edi
jne 0x462ab7
mov eax, dword [esp + 0x18]
push eax
jmp 0x462b2e
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edi
push 0
push 0
mov ecx, esi
call fcn.00424750
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
push 0
push eax
push edi
push 0
push 0
mov ecx, esi
call fcn.00424860
mov edx, dword [esp + 0x10]
push ebp
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00424860
mov eax, dword [esp + 0x14]
add eax, 0x20d
push 0
push eax
mov ecx, esi
call fcn.00424c20
push edi
call fcn.004690f0
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.004690b5
add esp, 0x20
ret 8

Function at 0x462b50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 8
call fcn.00468d20
mov ecx, dword [ecx + 0x6c]
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x462c1e
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00424be0
sub eax, 4
sbb edx, 0
push edx
push eax
mov ecx, edi
call fcn.004249e0
push eax
mov dword [esp + 0x10], eax
mov ebx, eax
call fcn.004691cd
mov esi, eax
add esp, 4
test esi, esi
jne 0x462bbb
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
push 0
push eax
push esi
push 0
push 0
mov ecx, edi
call fcn.00424750
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0xc]
push 0
push eax
push esi
push 0
push 0
mov ecx, edi
sub ebx, eax
call fcn.00424860
push 0
add ebx, 9
push ebx
mov ecx, edi
call fcn.00424c20
push esi
call fcn.004690f0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x462c30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x1c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0x6c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x462d2e
push ebx
push edi
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00424be0
sub eax, 0x10
sbb edx, 0
push edx
push eax
mov ecx, esi
call fcn.00424750
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ecx, esi
call fcn.00424be0
sub eax, 0x14
sbb edx, 0
push edx
push eax
mov ecx, esi
call fcn.004249e0
push eax
mov dword [esp + 0x14], eax
mov ebx, eax
call fcn.004691cd
mov edi, eax
add esp, 4
test edi, edi
jne 0x462ccc
mov edx, dword [esp + 0xc]
push edx
jmp 0x462d26
mov eax, dword [esp + 0x10]
push 0
push eax
push edi
push 0
push 0
mov ecx, esi
call fcn.00424750
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x10]
push 0
push eax
push edi
push 0
push 0
mov ecx, esi
sub ebx, eax
call fcn.00424860
push 0
add ebx, 0x19
push ebx
mov ecx, esi
call fcn.00424c20
push edi
call fcn.004690f0
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004690b5
add esp, 0x1c
ret 8
Function at 0x4637b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4db448
mov eax, dword fs:[0]
push eax
mov eax, 0x7c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5808f0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x463820
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.0041c510
push 1
push 0xffffffffffffffff
push 0x4e1750
lea ecx, [esp + 0x28]
call fcn.0041b940
cmp dword [esp + 0x34], 8
mov ebp, eax
jb 0x463862
mov edx, dword [esp + 0x20]
push edx
call fcn.004699ce
add esp, 4
push 0xffffffffffffffff
push ebx
add edi, 4
xor eax, eax
push edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], ax
call fcn.0041c410
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x98], ebx
cmp byte [ecx + 0x75], bl
je 0x4638b5
push ebx
push 0x4e1788
mov ecx, edi
call fcn.0041c510
mov ebp, 8
jmp 0x46395b
xor edx, edx
mov eax, esi
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4638d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.0041c510
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 1
call fcn.0041c930
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0xa4], 2
call fcn.0041c410
mov ebp, 8
cmp dword [esp + 0x6c], ebp
jb 0x46392e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004699ce
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x50], ebp
jb 0x46395b
mov eax, dword [esp + 0x3c]
push eax
call fcn.004699ce
add esp, 4
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
call fcn.0041ca10
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call fcn.0041c410
cmp dword [esp + 0x88], ebp
jb 0x463997
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004699ce
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004690b5
add esp, 0x88
ret 0xc
Function at 0x464360
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x10
push 0x18
push 0
push 0
push esi
call edi
push 0xf0000000
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
jne 0x46439b
push str.CryptAcquireContext_error_n
call fcn.0041a700
add esp, 4
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4643d5
push str.CryptCreateHash_error_n
call fcn.0041a700
add esp, 4
push 0x10
push 0x18
push 0
push 0
push esi
call edi
pop ebx
pop edi
xor al, al
pop esi
ret
mov ecx, dword [0x5d7d30]
mov edx, dword [ebx]
push 0
push ecx
push 0x5d5858
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x464402
push str.CryptHashData_error_n
call fcn.0041a700
mov eax, dword [ebx]
add esp, 4
push eax
jmp 0x46442e
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [esi]
push ecx
push 1
push edx
push 0x6610
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x464445
push str.CryptDeriveKey_error_n
call fcn.0041a700
mov ecx, dword [ebx]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0x10
push 0x18
push 0
push 0
push esi
call edi
pop ebx
pop edi
xor al, al
pop esi
ret
pop ebx
pop edi
mov al, 1
pop esi
ret

Function at 0x4653c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xcc
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
mov ebp, dword [esp + 0xd8]
push esi
push edi
push 0xc6
lea eax, [esp + 0x15]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x1c], 0
call fcn.00468ca0
add esp, 0xc
mov ecx, ebp
mov edi, 0xc7
xor esi, esi
call fcn.00424be0
test edx, edx
ja 0x465421
jb 0x465416
cmp eax, edi
jae 0x465421
mov ecx, ebp
call fcn.00424be0
mov edi, eax
mov esi, edx
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
mov ecx, ebp
call fcn.00424750
xor eax, eax
xor ecx, ecx
test esi, esi
jb 0x465459
ja 0x465441
test edi, edi
jbe 0x465459
mov dl, byte [ebx + eax + 0x24]
xor byte [esp + eax + 0x10], dl
add eax, 1
adc ecx, 0
cmp ecx, esi
jb 0x465441
ja 0x465459
cmp eax, edi
jb 0x465441
push esi
push edi
lea eax, [esp + 0x18]
push eax
push 0
push 0
mov ecx, ebp
call fcn.00424860
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0xcc
ret 8
Function at 0x465510
Capabilities:
Check for peb beingdebugged flag
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4dab60
mov eax, dword fs:[0]
push eax
mov eax, 0x5c
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5808f0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], ebx
call fcn.00424cc0
xor eax, eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
mov eax, 0x584aa0
mov byte [esp + 0x74], 1
mov byte [esp + 0x58], bl
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x465594
sub eax, edx
sar eax, 1
jne 0x4655d4
push str._path_parameter_MUST_be_set_n
call fcn.0041a700
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], bl
call fcn.00424ce0
cmp dword [esp + 0x30], 8
jb 0x465731
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x465729
lea edx, [esp + 0x10]
push edx
call fcn.0041ae00
add esp, 4
cmp eax, 0x192
je 0x465601
mov eax, dword [esp + 0x10]
push eax
call fcn.004690f0
push str.Wrong_pass_file_format_n
call fcn.0041a700
add esp, 8
jmp 0x4655b2
mov edx, dword [esp + 0x10]
push 0xc7
lea esi, [edi + 0x24]
add edx, 4
push esi
push edx
call fcn.0041aba0
mov eax, dword [esp + 0x1c]
push eax
call fcn.004690f0
add esp, 0x10
cmp dword [0x584064], ebx
je 0x465638
mov ecx, 0x4e4748
mov eax, 0x4e4710
jmp 0x465642
mov ecx, 0x4e46e4
mov eax, str.Choose_encrypted_file
lea edx, [esp + 0x18]
push edx
push ecx
push eax
mov ecx, edi
call fcn.0042bd50
test al, al
je 0x465688
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x465663
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.00424d40
lea ecx, [esp + 0x34]
call fcn.00424740
test al, al
jne 0x4656a3
push str.Error_reading_file_for_test_n
call fcn.0041a700
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], bl
call fcn.00424ce0
lea ecx, [esp + 0x18]
call fcn.0041b5b0
jmp 0x465731
lea ecx, [esp + 0x34]
call fcn.00424be0
cmp edx, ebx
jg 0x4656dc
jl 0x4656b7
cmp eax, 0x10
jae 0x4656dc
push str.Test_file_is_too_small_n
call fcn.0041a700
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], bl
call fcn.00424ce0
lea ecx, [esp + 0x18]
call fcn.0041b5b0
jmp 0x465731
push ebx
push 0x10
lea eax, [esp + 0x60]
push eax
push ebx
push ebx
lea ecx, [esp + 0x48]
call fcn.00424750
xor eax, eax
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x58], cl
inc eax
cmp eax, 0x10
jl 0x4656f1
lea edx, [esp + 0x58]
push 0x10
push edx
call fcn.0041a7a0
add esp, 8
lea ecx, [esp + 0x34]
mov byte [edi + 0x20], al
mov byte [esp + 0x74], bl
call fcn.00424ce0
cmp dword [esp + 0x30], 8
jb 0x465731
mov eax, dword [esp + 0x1c]
push eax
call fcn.004699ce
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004690b5
add esp, 0x68
ret
Function at 0x466710
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
mov eax, 0xc
call fcn.00468d20
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 4], edx
mov edx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 4]
push esi
movzx esi, byte [edx + 5]
shl eax, 8
add eax, esi
movzx esi, byte [edx + 6]
movzx edx, byte [edx + 7]
shl eax, 8
add eax, esi
mov esi, dword [esp + 0x20]
shl eax, 8
add eax, edx
mov edx, esi
imul edx, edx, 0x9e3779b9
test esi, esi
jle 0x4667d3
push ebx
push edi
lea esp, [esp]
mov edi, ecx
shr edi, 5
add edi, dword [esp + 0x24]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0xc]
dec esi
xor edi, ebx
lea ebx, [edx + ecx]
xor edi, ebx
sub eax, edi
mov edi, eax
shr edi, 5
add edi, dword [esp + 0x10]
mov ebx, eax
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edi, ebx
lea ebx, [edx + eax]
xor edi, ebx
sub ecx, edi
add edx, 0x61c88647
test esi, esi
jg 0x466790
pop edi
pop ebx
mov esi, dword [esp + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [esi], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, ecx
mov byte [esi + 3], cl
shr edx, 8
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 2], dl
mov byte [esi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], dl
mov byte [esi + 6], cl
mov byte [esi + 7], al
pop esi
add esp, 0xc
ret 0x10
Function at 0x466820
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, 0x120
call fcn.00468d20
mov eax, dword [0x5808f0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x134]
mov ebp, ecx
mov esi, dword [ebp + 0x24]
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.00424be0
mov ebx, dword [esi + 0x10]
xor ecx, ecx
cmp edx, ecx
jl 0x4669e8
jg 0x46686a
cmp eax, ebx
jb 0x4669e8
movzx ecx, byte [esi + 4]
xor eax, eax
test ecx, ecx
jle 0x466879
inc eax
cmp eax, ecx
jl 0x466874
mov esi, dword [ebp + 0x24]
mov eax, dword [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x24], eax
xor ebx, ebx
call fcn.00424be0
mov ecx, dword [esi + 0x10]
xor esi, esi
sub eax, ecx
sbb edx, esi
cmp ebx, edx
jg 0x4668a7
jl 0x4668a1
cmp dword [esp + 0x24], eax
jae 0x4668a7
mov edi, dword [esp + 0x24]
jmp 0x4668be
mov ecx, edi
call fcn.00424be0
mov ebx, edx
mov edx, dword [ebp + 0x24]
mov edi, eax
mov eax, dword [edx + 0x10]
xor ecx, ecx
sub edi, eax
sbb ebx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x10
push 0x18
push 0
push 0
lea edx, [esp + 0x20]
push edx
call esi
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x466911
cmp dword [0x584064], 0
mov eax, 0x4f4904
jne 0x4668fc
mov eax, str.Cryptographic_Error_
push 0x30
push 0x4e01e0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4669e8
mov eax, dword [ebp + 0x24]
movzx edx, byte [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x466943
push 0x10
push 0x18
push eax
push eax
lea edx, [esp + 0x20]
push edx
call esi
jmp 0x4668e9
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push 4
push ecx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
push 0x10
push ebx
push edi
call fcn.0046a670
shl eax, 4
push edi
mov dword [esp + 0x24], eax
call fcn.004691cd
mov esi, eax
add esp, 4
test esi, esi
je 0x4669e8
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push edi
push esi
push 0
push eax
call fcn.00424750
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x10]
push ebx
push edi
push esi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00424860
push esi
call fcn.004690f0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0x10
push 0x18
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004690b5
add esp, 0x120
ret 4