joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401512
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x20
call sym.___main
mov dword [esp + 0x1c], 0
mov dword [esp], str.Enter_1st_passphrase:
call sym._printf
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x4a4093
call sym._scanf
mov dword [esp + 0x18], 0
mov dword [esp], str.Enter_2nd_passphrase:
call sym._printf
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0x4a4093
call sym._scanf
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edx, eax
setne al
movzx esi, al
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym.nofdigits_int_
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.getndint_int__int_
cmp esi, eax
setne al
test al, al
je 0x4015ac
call sym.incorrect_key__
mov dword [esp], str.Passphrase_is_correct____
call sym._puts
mov dword [esp], str.pause
call sym._system
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40b120
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b16b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b164
test esi, esi
je 0x40b164
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b140
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b350
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b478
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b3de
cmp eax, 4
jne 0x40b400
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b3ee
cmp edx, 4
je 0x40b3ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b350

Function at 0x40b9f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40ba20
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40ba44
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d410
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d4e4
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d57e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d4da
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a51c9
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d511
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d4ab
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d4d5
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d579
Function at 0x10001340
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x1006fdd8]
push 0
push eax
push sym.AnonTCP.dll__OurGETMSGProc_12
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [section..xshared], eax
ret

Function at 0x100013b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xa10
mov dl, byte [0x1006fde8]
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
mov byte [esp + 0x220], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x11c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
mov dword [esp + 0x10], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [esp + 0xa24]
test esi, esi
je 0x1000152f
push esi
call fcn.10001550
add esp, 4
test al, al
je 0x1000152f
cmp esi, dword [0x1006fdd8]
je 0x1000152f
push esi
call fcn.10001380
add esp, 4
test al, al
je 0x1000152f
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
lea edx, [esp + 0x1c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10001496
inc edi
jmp 0x1000149a
lea edi, [esp + 0x18]
mov ecx, dword [0x10071668]
lea eax, [esp + 0x14]
push str.anon2004_home_dir
push eax
call fcn.100026c0
mov ecx, dword [eax]
push str.hook_apps.txt
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call ebx
add esp, 0x10
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x11c]
push 0x100630c8
push eax
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x1000150a
push esi
push 1
lea ecx, [esp + 0x228]
push 0x800
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea edx, [esp + 0x220]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000152f
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
je 0x1000141c
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
cmp ecx, 1
pop esi
pop ebp
sete al
pop ebx
add esp, 0xa10
ret
Function at 0x100029f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x10071670
jmp 0x10002a20
push 0xffffffffffffffff
push 0x100458f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.1000425c
push 0xa
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], 0
call fcn.10004256
lea edi, [esi + 0x30]
push 0
mov ecx, edi
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x10049474
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x50], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10003160
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
push esi
push edi
mov edi, dword [esp + 0x218]
push edi
lea eax, [esp + 0x118]
push str.CSHMemBuff.MEM._s
mov esi, ecx
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
push edi
push str.CSHMemBuff.MUTEX._s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, esi
mov dword [esi + 8], eax
call fcn.10003250
mov edi, dword [esp + 0x21c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1000322f
mov eax, dword [esi + 4]
test eax, eax
jne 0x10003208
lea eax, [esp + 0x114]
push eax
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call ebx
mov dword [esi + 4], eax
call ebp
cmp eax, 0xb7
mov eax, dword [esi + 4]
setne cl
test eax, eax
mov byte [esi + 0x14], cl
je 0x1000322f
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x10], eax
je 0x1000322f
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], edi
inc eax
mov dword [esp + 0x10], eax
je 0x100031d0
mov ecx, esi
call fcn.10003270
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
cmp ecx, 1
pop esi
pop ebp
sete al
pop ebx
add esp, 0x204
ret 8
Function at 0x10003900
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10045950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 4]
mov byte [esp + 0x24], 1
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x10003951
mov edi, dword [esp + 0x2c]
cmp edi, ebx
jne 0x10003986
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
push ebp
mov ebp, dword [esp + 0x38]
push ebp
push edi
lea eax, [esp + 0x18]
push str.Registry::FetchString__Parameter_s__Default_s_...
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.1000427a
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push ebx
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push ecx
call ebx
test eax, eax
mov dword [esi + 8], eax
jne 0x10003a2a
cmp dword [esp + 0x1c], 1
jne 0x10003a2a
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push edi
push edx
call ebx
push 0xffffffffffffffff
mov ecx, ebp
mov dword [esi + 8], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push eax
push str.succeeded__returning__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.1000427a
jmp 0x10003a84
lea eax, [esp + 0x10]
push str.Parameter_not_found_or_corrupted____Using_default.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.1000427a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x34]
push ebp
call sub.MFC42.DLL_CString::operator
mov al, byte [esp + 0x3c]
test al, al
je 0x10003a84
push ebp
push edi
mov ecx, esi
call fcn.100038a0
test al, al
je 0x10003a84
lea edx, [esp + 0x14]
push str.Registry::Fix_Service:_Parameter_restored_succesfully.
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10003fa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push esi
call fcn.1002e9d0
call fcn.1002e9c0
call fcn.1002e9d0
call fcn.1002e1b0
push eax
call fcn.1002da80
add esp, 4
test eax, eax
jne 0x10003fee
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call fcn.1000a160
add esp, 4
push str.Failed_to_create_client_SSL_CTX
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x400
ret
push eax
call fcn.1002ced0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10004012
push str.Failed_to_create_client_SSL_object
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x400
ret
mov ecx, dword [esp + 0x408]
push ecx
push esi
call fcn.1002d380
push esi
call fcn.1002d480
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004077
mov dl, byte [0x1006fde8]
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call fcn.10008c80
push eax
call fcn.10009100
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 8
push eax
call esi
push str._nSSL_connect_failed_in_client_init
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret
push esi
call fcn.1002d440
add esp, 4
test eax, eax
jne 0x10004099
push str.Failed_to_get_the_peer_certificate_to_validate
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x400
ret
mov ecx, dword [str.pmproxy.anonymizer.com]
push ecx
push eax
call fcn.10003c10
add esp, 8
test eax, eax
je 0x100040c2
push str.Failed_to_validate_server_certificate
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x400
ret
mov eax, esi
pop esi
add esp, 0x400
ret
Function at 0x10013720
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x100154b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret

Function at 0x100192e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x100193c5
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x1001935b
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10018ab0
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10019325
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1001947c
call 0x1001936d
pop edx
lea ecx, [edx + 0x120]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x1001941d
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10018ecb
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x100193d2
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1001947c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10018ecb
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x1001947a
jmp 0x1001947c
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10019940
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.10004680
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x10052188
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x1001996d
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x1001998c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1001999c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x100199ac
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x100199bc
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x10019981
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.10018ab0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x100199e4
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.10018ab0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x10019a0d
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x1001a310
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x1001a371
mov al, byte [edi]
test al, al
je 0x1001a371
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x1001a329
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1001e200
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001e292
push 0x68
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10008b20
push 0x1005378c
push edi
push 0x10053788
push ebx
push str.fopen_
push 5
call fcn.100092f0
add esp, 0x2c
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x1001e277
push 0x6b
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10008b20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6d
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10008b20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1006ad88
call fcn.10009400
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001e2a9
pop edi
pop esi
pop ebx
ret
push esi
push 1
push 0x6a
push edi
call fcn.10009860
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10023f50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.10004680
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
lea esi, [eax - 1]
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esi - 0x29]
cmp edi, ecx
jle 0x10023f8f
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.10008b20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp esi, 0x29
jge 0x10023fb3
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.10008b20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [esi - 0x14]
push 0x37
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x1c], eax
call fcn.1000ea00
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10023ff1
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.10008b20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebx, dword [esp + 0x2c]
push 0
mov byte [ebx], 0
lea ebp, [ebx + 1]
add ebx, 0x15
call fcn.100147c0
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push 0
push ebx
push edx
push eax
call fcn.10014590
mov ecx, esi
xor eax, eax
sub ecx, edi
lea edi, [ebx + 0x14]
sub ecx, 0x29
push 0x14
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x58]
mov eax, ebx
sub eax, ecx
mov edx, ecx
add eax, esi
mov esi, dword [esp + 0x54]
shr ecx, 2
lea edi, [eax - 0x14]
mov byte [eax - 0x15], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10004ce0
add esp, 0x20
test eax, eax
jg 0x1002406e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
push 0x14
push ebp
push edi
push esi
call fcn.100242b0
add esp, 0x10
test edi, edi
jle 0x1002409a
mov eax, ebx
sub esi, ebx
mov ecx, edi
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1002408d
mov esi, dword [esp + 0x30]
push edi
push ebx
lea eax, [esp + 0x1c]
push 0x14
push eax
call fcn.100242b0
lea eax, [esp + 0x24]
add esp, 0x10
sub eax, ebp
mov ecx, 0x14
mov dl, byte [eax + ebp]
mov bl, byte [ebp]
xor bl, dl
mov byte [ebp], bl
inc ebp
dec ecx
jne 0x100240b6
push esi
call fcn.1000ec80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret