joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410fc0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cabe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0xf0000000
push 1
push 0
push 0
push eax
mov ebx, edx
mov dword [ebp - 0x1c], 0
mov esi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41102b
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x5085b8
push eax
call fcn.00430eca
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x411056
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x5085b8
push eax
call fcn.00430eca
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41107f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push 0x5085b8
push eax
call fcn.00430eca
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 2
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
call esi
test eax, eax
jne 0x4110b0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x5085b8
push eax
call fcn.00430eca
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.00420be4
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov edi, eax
mov dword [ebp - 0x20], edi
push ecx
push 0
push edi
call fcn.0042b420
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4110f5
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x5085b8
push eax
call fcn.00430eca
mov eax, dword [ebp - 0x14]
lea esi, [eax*2 + 0x14]
push esi
call fcn.00420c62
push esi
push 0
push eax
mov dword [ebx], eax
call fcn.0042b420
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x14], esi
jbe 0x411148
lea ebx, [ebx]
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x40]
push str._.2X
push eax
call fcn.004204a6
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x411120
push edi
call fcn.00422110
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411a10
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x411aa5
push esi
push 0x20
push str.MYSQL
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x411aa4
push edi
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x411aa0
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411a9d
cmp dword [ebp - 0x18], 1
je 0x411a9d
mov eax, dword [ebp - 8]
mov edi, edi
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411a97
mov eax, dword [ebp - 8]
cmp eax, edi
jb 0x411a97
cmp dword [ebp - 0x18], 1
jne 0x411a70
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412220
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa820
call fcn.0042f7c0
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.kernel32.dll
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.EnumProcesses
push esi
call edi
push str.EnumProcessModules
push esi
mov dword [ebp - 4], eax
call edi
push str.GetModuleBaseNameW
push esi
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4122bd
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.EnumProcesses
push esi
call edi
push str.EnumProcessModules
push esi
mov dword [ebp - 4], eax
call edi
push str.GetModuleBaseNameW
push esi
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 0xa000
lea ecx, [ebp - 0xa820]
push ecx
call eax
test eax, eax
jne 0x4122df
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor edi, edi
shr eax, 2
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412353
mov edi, edi
push dword [ebp + edi*4 - 0xa820]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412346
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [ebp - 8]
test eax, eax
je 0x412346
push 0x400
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 4]
push esi
call dword [ebp - 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x820]
push eax
call fcn.00420235
add esp, 8
test eax, eax
jne 0x412346
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x4122f0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412360
Capabilities:
Accept command line arguments
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0042f7c0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412399
xor al, al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0042b420
add esp, 0xc
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.SysHelper
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [eax]
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x412440
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4124cc
push esi
lea ebx, [ebx]
lea eax, [ebp - 0x208]
push str.cmd.exe
push eax
call fcn.00420235
add esp, 8
test eax, eax
jne 0x4124b9
push dword [ebp - 0x224]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4124b9
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x412480
pop esi
push edi
call ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ba80
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.LPCWSTRszTitle
push str.LPCWSTRszWindowClass
push 0
mov dword [0x513244], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x41babb
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x51323c], esi
mov eax, 1
pop esi
ret

Function at 0x41fa10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push esi
push 0
push dword [ebp + 8]
push 0x41f130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x41fdc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0x529230
push 0
push dword [ebp + 8]
push 0x41fd80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x529234], eax
test eax, eax
setne cl
mov eax, ecx
pop ebp
ret 4
Function at 0x42a57a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50ad20]
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.0043266c
mov dword [ebp - 0x14], eax
cmp dword [0x510d24], esi
jne 0x42a66d
push 0x800
push esi
push 0x4d070c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42a5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42a74d
push esi
push esi
push 0x4d070c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42a74d
push 0x4d0724
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a74d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x510d24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x510d28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4d0754
push edi
mov dword [0x510d2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x510d34], eax
test eax, eax
je 0x42a66a
push 0x4d0770
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x510d30], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42a692
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42a685
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42a6a7
push 4
pop eax
jmp 0x42a74f
cmp dword [ebp - 0x14], esi
je 0x42a6a7
push dword [0x510d24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42a68c
mov eax, dword [0x510d30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42a705
cmp dword [0x510d34], edi
je 0x42a705
push eax
call ebx
push dword [0x510d34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42a705
test eax, eax
je 0x42a705
call ecx
test eax, eax
je 0x42a6fa
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 0x42a6fa
test byte [ebp - 8], 1
jne 0x42a705
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42a735
mov eax, dword [0x510d28]
cmp eax, edi
je 0x42a732
push eax
call ebx
test eax, eax
je 0x42a732
call eax
mov esi, eax
test esi, esi
je 0x42a732
mov eax, dword [0x510d2c]
cmp eax, edi
je 0x42a732
push eax
call ebx
test eax, eax
je 0x42a732
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x510d24]
call ebx
test eax, eax
je 0x42a74d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42a74f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a77e
mov esp, ebp
pop ebp
ret
Function at 0x454810
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x454835
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x454826
pop edi
movzx eax, dl
pop esi
ret

Function at 0x454ae0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0042f7c0
mov eax, dword [0x50ad20]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x454b44
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x454b44
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.00420e4d
add eax, 0x40
push eax
call fcn.0042bdcc
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042a77e
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.004c604b
add esp, 0x10
mov byte [esp + 0x103], 0
call fcn.004549a0
test eax, eax
jle 0x454bc5
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042a77e
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042a77e
add esp, 0x108
ret
Function at 0x458110
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx - 1]
mov ecx, dword [ebp + 4]
shr ebx, 0x1f
dec ebx
mov eax, dword [edi + 4]
xor eax, ecx
and eax, ebx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [edi + 4], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 9
ja case.default.0x458145
jmp dword [ecx*4 + 0x458288]
mov ecx, 0xa
mov dword [esp + 0x14], ecx
cmp eax, ecx
jle case.0x458145.10
lea esp, [esp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [edi]
mov ecx, dword [edx]
mov esi, dword [eax + esi*4]
xor esi, ecx
and esi, ebx
xor ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
xor dword [eax + ecx*4], esi
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x20]
jl 0x458160
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, dword [esi + 0x24]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x24], ecx
mov eax, dword [edi]
xor dword [eax + 0x24], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x20]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
xor dword [eax + 0x20], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor dword [eax + 0x1c], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x18], ecx
mov eax, dword [edi]
xor dword [eax + 0x18], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 0x14]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
xor dword [eax + 0x14], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
xor dword [eax + 0x10], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [edi]
xor dword [eax + 0xc], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 8]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi]
xor dword [eax + 8], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 4], ecx
mov eax, dword [edi]
xor dword [eax + 4], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [edi]
pop edi
pop esi
pop ebp
xor dword [eax], ecx
pop ebx
ret
Function at 0x465480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.0042f7c0
mov eax, dword [0x50ad20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4654a5
push 0
sub ecx, edx
mov dword [ebp - 0x18], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x465510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x465503
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x465510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x46558c
lea eax, [esi + esi]
call fcn.0043f980
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x4655eb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x465540
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x4655eb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.00420fdd
mov esi, eax
add esp, 8
test esi, esi
jne 0x46559e
call fcn.00425208
cmp dword [eax], 2
je 0x46558e
call fcn.00425208
cmp dword [eax], 9
jne 0x4655eb
push ebx
push edi
call fcn.004220b6
mov esi, eax
add esp, 8
test esi, esi
je 0x4655eb
push 0x50f2e0
call fcn.0044f960
mov edi, eax
add esp, 4
test edi, edi
jne 0x4655bf
push esi
call fcn.00423a38
add esp, 4
jmp 0x465653
push 0
push edi
call fcn.0044f3b0
push esi
push 1
push 0x6a
push edi
call fcn.0044f3e0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a77e
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004512d0
push 0x4e21a0
push ebx
push 0x4e21a4
push edi
push str.fopen_
push 5
call fcn.004504a0
add esp, 0x2c
call fcn.00425208
cmp dword [eax], 2
jne 0x46563b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x465647
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004512d0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a77e
mov esp, ebp
pop ebp
ret
Function at 0x4691b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x46927c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4691d1
cmp al, 0x6b
jne 0x46927c
inc ecx
cmp al, 0x6b
jne 0x46923e
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4691f2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4691f2
cmp dl, 0xbb
jne 0x46921b
inc eax
cmp eax, esi
jl 0x4691e0
sub esi, eax
test eax, eax
jne 0x469241
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004512d0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004512d0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x46926a
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004512d0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.0042d8d0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004512d0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x47dc20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0042f7c0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov dword [ebp], 0
mov ebx, dword [esi]
test dword [ebx + 0x10], 0x100000
je 0x47dc6f
mov eax, dword [ebx + 0x18]
push 0
push 0
push dword [esp + 0x2c]
push esi
call eax
add esp, 0x10
test eax, eax
js 0x47ddf5
pop esi
mov dword [ebp], eax
mov eax, 1
pop ebp
pop ebx
add esp, 0x10
ret
test dword [esi + 0x5c], 0x100
mov ebx, dword [ebx + 4]
mov dword [esp + 0x18], ebx
je 0x47dcad
cmp dword [esi + 0xc], 0
je 0x47ddfe
push 0x20b
push str..cryptoevpevp_enc.c
push 0x8a
push 0x65
push 6
call fcn.004512d0
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp ebx, 1
jbe 0x47ddfe
cmp dword [esi + 0xc], 0
jne 0x47dddd
cmp dword [esi + 0x64], 0
je 0x47dddd
cmp ebx, 0x20
jbe 0x47dce6
push str.b___sizeof_ctx__final
push 0x218
push str..cryptoevpevp_enc.c
call fcn.00454c00
add esp, 0xc
lea eax, [ebx + esi]
mov edx, ebx
mov dword [esp + 0x14], eax
mov al, byte [eax + 0x6b]
mov byte [esp + 0xf], al
push edi
movzx edi, al
sub edx, edi
mov eax, edi
xor eax, ebx
mov ecx, edi
or edx, eax
not ecx
sar ecx, 0x1f
not edx
mov eax, ebx
sar edx, 0x1f
sar eax, 0x1f
and cl, al
mov eax, edi
or dl, cl
not eax
lea ecx, [edi - 1]
sar eax, 0x1f
sar ecx, 0x1f
and cl, al
not cl
and dl, cl
mov dword [esp + 0x14], edx
cmp ebx, 1
jbe 0x47dda4
mov esi, dword [esp + 0x18]
mov ebp, 1
add esi, 0x6a
nop
movzx ebx, byte [esi]
lea esi, [esi - 1]
mov eax, edi
xor ebx, edi
xor eax, ebp
not eax
sar eax, 0x1f
movzx edx, al
mov eax, ebp
sub eax, edi
sar eax, 0x1f
movzx eax, al
and edx, eax
mov eax, ebp
not eax
inc ebp
sar eax, 0x1f
movzx ecx, al
mov eax, edi
sar eax, 0x1f
movzx eax, al
and ecx, eax
lea eax, [ebx - 1]
sar eax, 0x1f
not ebx
or edx, ecx
sar ebx, 0x1f
and al, bl
mov ebx, dword [esp + 0x1c]
and al, dl
not dl
or al, dl
mov edx, dword [esp + 0x14]
and dl, al
mov dword [esp + 0x14], edx
cmp ebp, ebx
jb 0x47dd40
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
lea edi, [ebx - 1]
xor ecx, ecx
test edi, edi
je 0x47ddc3
mov ebp, dword [esp + 0x28]
mov al, byte [esi + ecx + 0x6c]
and al, dl
mov byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x47ddb1
mov ebp, dword [esp + 0x2c]
sub bl, byte [esp + 0x13]
movzx eax, dl
movzx ecx, bl
pop edi
and ecx, eax
and eax, 1
pop esi
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 0x10
ret
push 0x215
push str..cryptoevpevp_enc.c
push 0x6d
push 0x65
push 6
call fcn.004512d0
add esp, 0x14
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
pop esi
mov dword [ebp], 0
mov eax, 1
pop ebp
pop ebx
add esp, 0x10
ret