joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c94a
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2360
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3f3]
push edi
mov ebx, 0x3e7
mov byte [ebp - 0x3f4], 0
push ebx
push 0
push eax
mov edi, ecx
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xbc4], 0
lea eax, [ebp - 0xbc3]
push ebx
push 0
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x7dc], 0
lea eax, [ebp - 0x7db]
push ebx
xor ebx, ebx
push ebx
push eax
call fcn.006390b0
add esp, 0xc
lea eax, [ebp - 0x2338]
push eax
push 0x20019
push ebx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42cb74
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x2340]
push eax
lea eax, [ebp - 0x2334]
mov dword [ebp - 0x2340], 0x1388
push eax
lea eax, [ebp - 0x2344]
push eax
push ebx
push str.auth_data
push dword [ebp - 0x2338]
call esi
test eax, eax
jne 0x42cb68
cmp dword [ebp - 0x2340], 1
jb 0x42cb68
lea eax, [ebp - 0x233c]
mov dword [ebp - 0x233c], 0x3e8
push eax
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0x2344]
push eax
push ebx
push str.entropy
push dword [ebp - 0x2338]
call esi
test eax, eax
jne 0x42cb68
cmp dword [ebp - 0x233c], 1
jb 0x42cb68
lea eax, [ebp - 0x2348]
mov dword [ebp - 0x2348], 0x3e8
push eax
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x2344]
push eax
push ebx
push str.username
push dword [ebp - 0x2338]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xbc4]
push ebx
push ebx
push 0x3e8
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3f4]
push eax
push ebx
push ebx
call esi
push dword [ebp - 0x2338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x233c]
lea eax, [ebp - 0x2334]
mov dword [ebp - 0x2354], eax
cmp ecx, 0x11
mov eax, dword [ebp - 0x2340]
push 0x10
mov dword [ebp - 0x2358], eax
lea eax, [ebp - 0xfac]
mov dword [ebp - 0x234c], eax
pop eax
cmove ecx, eax
lea eax, [ebp - 0x2360]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2350]
mov dword [ebp - 0x2350], ecx
push eax
push ebx
lea eax, [ebp - 0x2358]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x42cb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42cb63
push ebx
push ebx
push 0x3e8
lea eax, [ebp - 0x7dc]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x235c]
push ebx
push ebx
call esi
push 0xffffffffffffffff
mov edx, 0x6c5bb9
lea eax, [ebp - 0x7dc]
push edx
push eax
lea ecx, [ebp - 0xbc4]
push ecx
push edx
push edx
push 0x2cd
push 7
mov ecx, edi
call fcn.0043ee6b
xor eax, eax
inc eax
jmp 0x42cb76
push dword [ebp - 0x2338]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
Function at 0x42cb87
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e4
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x7e0]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareOpenVPN_GUIconfigs
push SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42cc49
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7dc]
mov esi, edi
push eax
lea eax, [ebp - 0x3f0]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x42cc27
lea eax, [ebp - 0x3f0]
push eax
push str.SoftwareOpenVPN_GUIconfigs_s
lea eax, [ebp - 0x7d8]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x10
lea eax, [ebp - 0x7d8]
mov ecx, ebx
push eax
call fcn.0042c94a
inc esi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x7dc]
push eax
lea eax, [ebp - 0x3f0]
push eax
push esi
push dword [ebp - 0x7e0]
mov dword [ebp - 0x7dc], 0x3e8
call edi
test eax, eax
je 0x42cbe3
push dword [ebp - 0x7e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x42cf8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x3eb]
push 0x3e7
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x3ec], bl
call fcn.006390b0
add esp, 0xc
mov byte [esi], bl
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallFTP_Navigator_is1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d07c
lea eax, [ebp - 0x3f4]
mov edi, 0x3e8
push eax
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3f4], edi
push eax
lea eax, [ebp - 0x3f8]
push eax
push ebx
push str.InstallLocation
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3ec]
push eax
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x42d07c
lea eax, [ebp - 0x3ec]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0x3ed], 0x5c
jne 0x42d066
lea eax, [ebp - 0x3ec]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, edi
jae 0x42d08d
mov byte [ebp + eax - 0x3ec], bl
lea ecx, [ebp - 0x3ec]
push ecx
push edi
push esi
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x42d07e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x42d545
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x3eb]
push 0x3e7
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x3ec], bl
call fcn.006390b0
add esp, 0xc
mov byte [esi], bl
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push ebx
push str.SoftwareACSPuTTY_Connection_Manager
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d603
lea eax, [ebp - 0x3f4]
mov edi, 0x3e8
push eax
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3f4], edi
push eax
lea eax, [ebp - 0x3f8]
push eax
push ebx
push str.DefaultDatabase
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3ec]
push eax
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x42d603
lea ecx, [ebp - 0x3ec]
push ecx
push edi
push esi
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x42d605
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x42da6d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5dd8
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0x3e7
mov byte [ebp - 0x7e4], 0
push esi
lea eax, [ebp - 0x7e3]
mov ebx, ecx
push 0
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x3fc], 0
lea eax, [ebp - 0x3fb]
push esi
push 0
push eax
call fcn.006390b0
mov esi, str.settings
lea edi, [ebp - 0x14]
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x6c5bb9
push esi
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x42db1a
lea eax, [ebp - 0x3fc]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x42db0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
mov eax, str._sHissenIT_Kiosk_s
lea ecx, [ebp - 0x3fc]
jmp 0x42db21
mov eax, 0x6c643c
mov ecx, esi
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
lea eax, [ebp - 0x7e4]
push 0x3e8
push eax
call fcn.00402e0a
and dword [ebp - 0x5dd8], 0
lea eax, [ebp - 0x7e4]
add esp, 0x14
push 0x6c63d0
push eax
lea eax, [ebp - 0x5dd8]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x42dafa
cmp dword [ebp - 0x5dd8], eax
je 0x42dafa
mov edi, 0x2710
push dword [ebp - 0x5dd8]
lea eax, [ebp - 0x36c4]
push edi
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
je 0x42dc7e
lea eax, [ebp - 0x36c4]
mov byte [ebp - 0xbcc], 0
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x42dbc2
lea eax, [ebp - 0x36c4]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, edi
jae 0x42dc92
mov byte [ebp + eax - 0x36c4], 0
lea eax, [ebp - 0x36c4]
push eax
lea eax, [ebp - 0x5dd4]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x5dd4]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x5dd4]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x5dd4]
push str.master_password
push eax
call fcn.00639500
add esp, 0x10
test eax, eax
je 0x42db6e
lea eax, [ebp - 0x36c4]
push 0x3d
push eax
call fcn.006393d0
pop ecx
pop ecx
test eax, eax
je 0x42db6e
inc eax
mov edi, 0x3e8
push eax
lea eax, [ebp - 0xbcc]
push edi
push eax
call fcn.006494f3
add esp, 0xc
lea ecx, [ebp - 0xbcc]
call fcn.004047e7
lea eax, [ebp - 0xbcc]
push eax
push str._master_password___s
lea eax, [ebp - 0xfb4]
push edi
push eax
call fcn.00402e0a
add esp, 0x10
lea eax, [ebp - 0xfb4]
mov ecx, ebx
push 0xffffffffffffffff
push esi
push eax
push esi
push esi
push esi
push 0x47
push 1
call fcn.0043ee6b
push dword [ebp - 0x5dd8]
call fcn.00649273
xor eax, eax
pop ecx
inc eax
jmp 0x42dafc
call fcn.00612782
int3
Function at 0x42e272
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14d8
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3f3]
push edi
mov edi, 0x3e7
mov byte [ebp - 0x3f4], 0
push edi
push 0
push eax
mov ebx, ecx
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0xbc4], 0
lea eax, [ebp - 0xbc3]
push edi
push 0
push eax
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x7dc], 0
lea eax, [ebp - 0x7db]
push edi
push 0
push eax
call fcn.006390b0
add esp, 0xc
push esi
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x42e335
lea eax, [ebp - 0xbc4]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x42e312
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x42e441
lea eax, [ebp - 0xbc4]
mov esi, 0x3e8
push eax
push str._sExpanDrive
lea eax, [ebp - 0x3f4]
push esi
push eax
call fcn.00402e0a
add esp, 0x10
jmp 0x42e34b
push esi
mov esi, 0x3e8
lea eax, [ebp - 0x3f4]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x7dc]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x7dc]
push 0x6c7624
push esi
push eax
call fcn.006500a8
add esp, 0xc
lea eax, [ebp - 0x14d4]
push eax
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e30b
test byte [ebp - 0x14d4], 0x10
jne 0x42e41a
lea eax, [ebp - 0x14a8]
push eax
lea eax, [ebp - 0xfac]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0xfac]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0xfac]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0xfac]
push str..favorites.js
push eax
call fcn.00639500
add esp, 0x10
test eax, eax
je 0x42e41a
lea eax, [ebp - 0x14a8]
push eax
lea eax, [ebp - 0x3f4]
push eax
push 0x6c643c
lea eax, [ebp - 0x1394]
push esi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x1394]
mov ecx, ebx
push eax
call fcn.0042dc98
mov ecx, dword [0x7324c4]
test ecx, ecx
je 0x42e437
lea edx, [ebp - 0x14d4]
push edx
push edi
call ecx
cmp eax, 1
je 0x42e396
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
Function at 0x42ee3b
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44b]
push esi
push edi
push 0x3e7
push 0
push eax
mov dword [ebp - 0x480], ecx
mov byte [ebp - 0x44c], 0
call fcn.006390b0
add esp, 0xc
lea edi, [ebp - 0x64]
mov esi, str.cfgorg.jdownloader.settings.AccountSettings.accounts.ejs
push 0xe
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x42eebe
mov ebx, dword [ebp - 0x480]
lea eax, [ebp - 0x44c]
push ecx
push eax
mov ecx, ebx
call fcn.0042e452
test eax, eax
jne 0x42eef1
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x6c643c
lea eax, [ebp - 0x44c]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
lea ecx, [ebp - 0x44c]
call fcn.00405670
test eax, eax
je 0x42eeab
mov ebx, dword [ebp - 0x480]
and dword [ebp - 0x47c], 0
lea eax, [ebp - 0x44c]
push 0x6c5e0c
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x42eeab
cmp dword [ebp - 0x47c], eax
je 0x42eeab
push 2
push eax
push dword [ebp - 0x47c]
call fcn.00650f28
add esp, 0xc
push dword [ebp - 0x47c]
call fcn.00650730
pop ecx
mov edi, eax
push edi
call fcn.0064f743
mov esi, eax
pop ecx
push dword [ebp - 0x47c]
test esi, esi
jne 0x42ef5c
call fcn.00649273
pop ecx
jmp 0x42eeab
call fcn.0065128a
pop ecx
push dword [ebp - 0x47c]
push 1
push edi
push esi
call fcn.00651b3e
push dword [ebp - 0x47c]
call fcn.00649273
add esp, 0x14
mov dword [ebp - 0x28], 0x5040601
mov dword [ebp - 0x24], 0x3040702
mov dword [ebp - 0x20], 0x4b0e3d0c
mov dword [ebp - 0x1c], 0x21d4f9fe
push 0x10
pop eax
push eax
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x18], 0x5040601
push eax
mov dword [ebp - 0x14], 0x3040702
mov dword [ebp - 0x10], 0x4b0e3d0c
mov dword [ebp - 0xc], 0x21d4f9fe
mov dword [ebp - 0x478], 0x208
mov dword [ebp - 0x474], 0x660e
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x48c]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x42f079
lea eax, [ebp - 0x484]
push eax
push 0
push 0
push 0x2c
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x42f079
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x42f079
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], edi
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x484]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x42f079
mov eax, dword [ebp - 0x488]
push ecx
push esi
mov ecx, ebx
mov byte [eax + esi], 0
call fcn.0042e96b
jmp 0x42f07f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.006434fb
xor eax, eax
pop ecx
inc eax
jmp 0x42eead
Function at 0x42f08e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x2713]
push 0x270f
push ebx
push eax
mov esi, edx
mov byte [ebp - 0x2714], bl
mov edi, ecx
call fcn.006390b0
add esp, 0xc
mov byte [edi], bl
lea eax, [ebp - 0x2714]
mov byte [esi], bl
push eax
push ebx
push ebx
push 0x1a
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call ebx
test eax, eax
js 0x42f140
lea eax, [ebp - 0x2714]
push eax
push str._sMicrosoftNetworkConnectionspbk_rasphone.pbk
push 0x2710
push edi
call fcn.00402e0a
add esp, 0x10
mov ecx, edi
call fcn.00405670
lea eax, [ebp - 0x2714]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call ebx
test eax, eax
js 0x42f140
lea eax, [ebp - 0x2714]
push eax
push str._sMicrosoftNetworkConnectionspbk_rasphone.pbk
push 0x2710
push esi
call fcn.00402e0a
add esp, 0x10
mov ecx, esi
call fcn.00405670
xor eax, eax
inc eax
jmp 0x42f148
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
Function at 0x43045e
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c8
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], 0xb06012c
xor ebx, ebx
mov dword [ebp - 0x10], 0x4d29201d
push ecx
lea edx, [ebp - 0x139c]
mov dword [ebp - 0xc], 0x2020101
mov dword [ebp - 8], 0x29250909
mov byte [edi], bl
call fcn.004020b3
mov esi, eax
pop ecx
test esi, esi
je 0x4305a3
push 0x10
pop eax
push eax
mov dword [ebp - 0x13b0], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x13ac]
mov dword [ebp - 0x13b8], 0x208
push eax
mov dword [ebp - 0x13b4], 0x660e
call fcn.00638b30
add esp, 0xc
lea eax, [ebp - 0x13c4]
push 0xf0000000
push 0x18
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x43059d
lea eax, [ebp - 0x13bc]
push eax
push ebx
push ebx
push 0x1c
lea eax, [ebp - 0x13b8]
push eax
push dword [ebp - 0x13c4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x43059d
push ebx
lea eax, [ebp - 0x13c8]
mov dword [ebp - 0x13c8], 2
push eax
push 4
push dword [ebp - 0x13bc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x43059d
lea eax, [ebp - 0x13c0]
mov dword [ebp - 0x13c0], esi
push eax
lea eax, [ebp - 0x139c]
push eax
push ebx
push 1
push ebx
push dword [ebp - 0x13bc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x43059d
mov ecx, dword [ebp - 0x13c0]
cmp ecx, 0x1388
jae 0x4305b4
mov byte [ebp + ecx - 0x139c], bl
lea ecx, [ebp - 0x139c]
push ecx
push 0x3e8
push edi
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4305a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x4316da
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
mov byte [ebp - 0x3ec], 0
mov ebx, edx
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x3f4], ebx
call fcn.006390b0
push esi
mov byte [ebx], 0
call fcn.00643470
add esp, 0x10
cmp eax, 1
jb 0x431869
lea edx, [ebp - 0x3ec]
mov ecx, esi
call fcn.00404638
lea eax, [ebp - 0x3ec]
push eax
call fcn.00643470
sub eax, 4
mov dword [ebp - 0x3f0], eax
pop ecx
cmp eax, 1
jl 0x431869
push edi
xor esi, esi
mov edi, 0xcf671
mov dl, byte [ebp + esi - 0x3ec]
xor ebx, ebx
imul edi, edi, 0x8088405
mov cl, 8
inc edi
mov eax, edi
shld ebx, eax, 3
mov al, dl
sub cl, bl
shr al, cl
mov ecx, ebx
mov ebx, dword [ebp - 0x3f0]
shl dl, cl
or al, dl
mov byte [ebp + esi - 0x3ec], al
inc esi
cmp esi, ebx
jl 0x43175c
mov esi, 0x3039
mov dword [ebp - 0x3f0], 0x100
push 0
imul esi, esi, 0x8088405
push ebx
push 0
inc esi
push esi
call fcn.00613130
push 0
imul esi, esi, 0x8088405
mov edi, edx
push ebx
push 0
inc esi
push esi
call fcn.00613130
sub dword [ebp - 0x3f0], 1
mov cl, byte [ebp + edi - 0x3ec]
mov al, byte [ebp + edx - 0x3ec]
mov byte [ebp + edi - 0x3ec], al
mov byte [ebp + edx - 0x3ec], cl
jne 0x4317a1
pop edi
xor edx, edx
mov esi, 0xa564
imul esi, esi, 0x8088405
xor ecx, ecx
inc esi
mov eax, esi
shld ecx, eax, 8
xor byte [ebp + edx - 0x3ec], cl
inc edx
cmp edx, ebx
jl 0x4317f4
mov edx, 0xd431
xor esi, esi
mov dword [0x7324c0], edx
imul edx, edx, 0x8088405
xor ecx, ecx
inc edx
mov eax, edx
shld ecx, eax, 8
sub byte [ebp + esi - 0x3ec], cl
inc esi
cmp esi, ebx
jl 0x43181c
mov dword [0x7324c0], edx
mov edx, 0x3e8
cmp ebx, edx
jae 0x431879
lea ecx, [ebp - 0x3ec]
mov byte [ebp + ebx - 0x3ec], 0
push ecx
push edx
push dword [ebp - 0x3f4]
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x43186b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x43223e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push esi
mov byte [edi], 0
call fcn.00643470
pop ecx
cmp eax, 3
jb 0x4322ba
push ecx
lea ecx, [esi + 2]
lea edx, [ebp - 0x3ec]
call fcn.004020b3
mov edx, eax
pop ecx
test edx, edx
je 0x4322ba
xor ecx, ecx
mov esi, 0x3e8
test edx, edx
je 0x43229c
lea eax, [ecx + 3]
xor byte [ebp + ecx - 0x3ec], al
inc ecx
mov eax, ecx
cmp ecx, edx
jb 0x432287
cmp eax, esi
jae 0x4322ca
lea eax, [ebp - 0x3ec]
mov byte [ebp + ecx - 0x3ec], 0
push eax
push esi
push edi
call fcn.006494f3
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4322bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006122f0
leave
ret
call fcn.00612782
int3
Function at 0x4327d7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 4], 0x2396
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x10], esi
mov byte [eax], 0
call fcn.00643470
pop ecx
cmp eax, 1
jae 0x432802
xor eax, eax
jmp 0x43286f
push ebx
push edi
push esi
mov ebx, esi
call fcn.00643470
mov edi, eax
shr edi, 1
pop ecx
je 0x432856
lea eax, [ebp - 0xc]
push eax
push str._02X
push esi
call fcn.00404468
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, 8
add esi, 2
xor al, cl
mov byte [ebx], al
inc ebx
lea eax, [ecx + edx]
mov ecx, 0x58bf
imul eax, eax, 0x3193
sub ecx, eax
movzx eax, cx
mov dword [ebp - 4], eax
sub edi, 1
jne 0x432813
mov esi, dword [ebp - 0x10]
push esi
push 0x3e8
push dword [ebp - 0x14]
mov byte [ebx], 0
call fcn.006494f3
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x432c4e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x3f4]
push edi
mov esi, 0x3e8
mov ebx, ecx
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x3f4]
push 0x6c7624
push esi
push eax
call fcn.006500a8
add esp, 0xc
lea eax, [ebp - 0x91c]
push eax
lea eax, [ebp - 0x3f4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432cb3
xor eax, eax
jmp 0x432d2c
test byte [ebp - 0x91c], 0x10
jne 0x432d10
lea eax, [ebp - 0x8f0]
push 0x2e
push eax
call fcn.00639770
pop ecx
pop ecx
test eax, eax
je 0x432d10
push str..PRF
push eax
call fcn.0064fd85
pop ecx
pop ecx
test eax, eax
jne 0x432d10
lea eax, [ebp - 0x8f0]
push eax
push edi
push 0x6c643c
lea eax, [ebp - 0x7dc]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x7dc]
mov ecx, ebx
push eax
call fcn.00432872
lea eax, [ebp - 0x91c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x432cb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4