joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065f7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x406639
cmp eax, 2
je 0x406639
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x406e70
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x567a1c
push eax
call fcn.0053300c
xor edi, edi
add esp, 0x10
lea eax, [ebp - 0x108]
push edi
cmp dword [ebp + 0x10], edi
je 0x406fba
push dword [0x5d06d0]
mov dword [ebp - 0x114], eax
push dword [0x5d06cc]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x10c], edi
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, edi
je 0x406efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.004068eb
pop ecx
pop ecx
mov eax, esi
sub eax, 5
je 0x406f18
sub eax, 0x51
je 0x406f18
sub eax, 0x46d
je 0x406f18
sub eax, 0x6b
jne 0x406fc3
cmp dword [0x5d06d0], edi
je 0x406fc3
cmp dword [0x5d06cc], edi
jne 0x406fc3
push str.Invalid_password_n_n
mov esi, 0x5679b4
push esi
call fcn.00531723
add eax, 0x20
push eax
call fcn.00532a3b
call fcn.00531723
add eax, 0x20
push eax
call fcn.00531a62
push 1
call fcn.00406b04
add esp, 0x14
push str.Connecting_to_remote_service_...
push esi
call fcn.00531723
add eax, 0x20
push eax
call fcn.00532a3b
call fcn.00531723
add eax, 0x20
push eax
call fcn.00531a62
add esp, 0x10
push edi
push dword [0x5d06d0]
lea eax, [ebp - 0x128]
push dword [0x5d06cc]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, edi
je 0x406fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.004068eb
pop ecx
pop ecx
jmp 0x406fc3
push edi
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov esi, eax
cmp esi, edi
je 0x406fce
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005310be
leave
ret
Function at 0x40e190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x562d1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x30], 0
mov dword [esp + 0xc], edi
mov esi, 1
je 0x40e1e7
mov dword [edi], 0x569298
mov dword [edi + 0x78], 0x569290
mov dword [edi + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0040dee0
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x78]
mov dword [eax + edx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 4]
add esi, eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040199b
lea edx, [edi + 8]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0
call fcn.00402944
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40e259
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.004018bf
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.Poco::Crypto::CryptoOutputStream.0
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x414210
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x414297
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x414297
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00535078
add esp, 0x10
test eax, eax
jns 0x41426d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005310be
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.00535078
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x414329
call fcn.004140d0
test eax, eax
jle 0x414329
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x41433d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
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.005310be
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.005310be
add esp, 0x108
ret

Function at 0x4143a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x4143c2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x4143b6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x416e80
Capabilities:
Encode data using xor

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00418ed0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4195a8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004126e0
push 0x56a390
push esi
push 0x56a38c
push ebx
push str.fopen_
push 5
call fcn.00412b20
add esp, 0x2c
call fcn.005355ca
cmp dword [eax], 2
jne 0x41958a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004126e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004126e0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5c3c40
call fcn.00418ce0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4195ca
push edi
call fcn.00532018
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004184e0
push edi
push 1
push 0x6a
push esi
call fcn.00418930
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41f6c0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00530a90
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x422370
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4223b4
mov al, byte [edx]
test al, al
je 0x4223b4
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x422387
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x438850
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.005336e0
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x4388c6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004390e0
jmp 0x4388df
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00439200
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x4649c0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.00530a90
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x466190
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00530a90
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x4661f0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00530a90
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret
Function at 0x4678d0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret

Function at 0x467970
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x46c100
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
dec edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x46c15d
call fcn.0042c780
mov dword [esp + 0x18], eax
test esi, esi
jne 0x46c165
mov dword [esp + 0x14], eax
push eax
call fcn.0040faa0
mov esi, eax
lea eax, [esi + esi]
sub edi, eax
lea edx, [edi - 1]
add esp, 4
cmp ebp, edx
jle 0x46c1a9
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0xa0
push 4
call fcn.004126e0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005310be
add esp, 0x5c
ret
inc eax
cmp dword [esp + 0x10], eax
jge 0x46c1bb
push 0x40
push str..crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x46c185
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x84]
push 0
push ecx
lea eax, [ebx + 1]
mov byte [ebx], 0
push 0
lea ebx, [ebx + esi + 1]
push ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.0041ef50
add esp, 0x18
test eax, eax
je 0x46c194
sub edi, ebp
dec edi
push edi
lea ecx, [ebx + esi]
push 0
push ecx
call fcn.00530a90
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, ebx
sub eax, ebp
sub eax, esi
push ebp
add eax, edi
push ecx
push eax
mov byte [eax - 1], 1
call fcn.005303b0
mov ebp, dword [esp + 0x34]
push esi
push ebp
call fcn.004148a0
add esp, 0x20
test eax, eax
jle 0x46c194
push 0x55
sub edi, esi
push str..crypto_rsa_rsa_oaep.c
push edi
call fcn.004205f0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46c255
push 0x57
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x46c185
mov edx, dword [esp + 0x14]
push edx
push esi
push ebp
push edi
push eax
call fcn.0046bf80
add esp, 0x14
test eax, eax
js 0x46c194
test edi, edi
jle 0x46c28d
mov ebp, dword [esp + 0x10]
mov eax, ebx
sub ebp, ebx
mov ecx, edi
lea esp, [esp]
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
dec ecx
jne 0x46c280
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push edi
push ebx
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0046bf80
add esp, 0x14
test eax, eax
js 0x46c194
test esi, esi
jle 0x46c2bf
lea ecx, [esp + 0x28]
mov eax, ebp
sub ecx, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x46c2b6
mov eax, dword [esp + 0x10]
push eax
call fcn.00420800
mov ecx, dword [esp + 0x6c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005310be
add esp, 0x5c
ret
Function at 0x46cb70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x46cc39
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x46cb91
cmp al, 0x6b
jne 0x46cc39
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x46cbfa
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x46cbb1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x46cbb1
cmp al, 0xbb
jne 0x46cbda
inc ecx
cmp ecx, esi
jl 0x46cba1
sub esi, ecx
test ecx, ecx
jne 0x46cbfd
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004126e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004126e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x46cc26
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004126e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.005303b0
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004126e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret

Function at 0x46cce0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x46cdc3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x46cd5d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x58a2f8]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x58a2f8]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x58a2f8]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + 0x58a2f8]
mov byte [ecx + 3], dl
jmp 0x46cdae
shl edx, 0x10
cmp edi, 2
jne 0x46cd6d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x58a2f8]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x58a2f8]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x46cd9a
lea edx, [edi + 0x3c]
jmp 0x46cda7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x58a2f8]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x46cd00
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x472fa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x473015
cmp ebx, dword [esi]
je 0x47300c
test edi, edi
je 0x472ff2
cmp dword [esp + 0xa0], eax
jge 0x47300c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.005310be
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x47301b
mov ebx, dword [esi]
test ebx, ebx
je 0x472ff2
push ebp
test edi, edi
je 0x4730ed
push ebx
call fcn.0040fa70
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x47304b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00414360
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x4730a5
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.0041eaa0
add esp, 0xc
test eax, eax
je 0x47319a
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.0041ec50
add esp, 0xc
test eax, eax
je 0x47319a
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.0041ec60
add esp, 0xc
test eax, eax
je 0x47319a
jmp 0x4730ca
cmp eax, 0x80
ja 0x47319a
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.005303b0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4730f5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.00530a90
add esp, 0xc
jmp 0x4730f5
test eax, eax
je 0x473186
xor eax, eax
jmp 0x473100
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x473100
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.0041eaa0
add esp, 0xc
test eax, eax
je 0x47319a
push ebx
call fcn.0040fa70
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.0041ec50
add esp, 0x10
test eax, eax
je 0x47319a
xor eax, eax
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x473144
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.0041eaa0
add esp, 0xc
test eax, eax
je 0x47319a
push ebx
call fcn.0040fa70
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.0041ec50
add esp, 0x10
test eax, eax
je 0x47319a
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.0041edf0
add esp, 8
test eax, eax
jne 0x47319e
xor eax, eax
jmp 0x4731a3
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005310be
add esp, 0x88
ret