joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e020
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.101bea50
mov eax, dword [0x102f8384]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call fcn.101c06d0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.101c06d0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.101d13eb
add esp, 0x28
nop
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x1004e1ff
cmp word [ebx + 8], 2
jne 0x1004e122
cmp word [ebx + 0xa], 4
jne 0x1004e122
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x1004e122
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.1004e250
mov dword [edi], eax
test eax, eax
je 0x1004e1f8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x1004e0f0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.101d13eb
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x1004e1af
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e146
sub ecx, edx
je case.0x1004e20f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004e180
test dl, dl
je 0x1004e17c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004e180
add eax, 2
add ecx, 2
test dl, dl
jne 0x1004e160
xor eax, eax
jmp 0x1004e185
sbb eax, eax
or eax, 1
test eax, eax
je case.0x1004e20f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x1004e20f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x1004e0b0
mov esi, 0x2afb
jmp 0x1004e222
cmp dword [esp + 0x844], esi
je 0x1004e222
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004e1c0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.101cbb12
mov edi, eax
add esp, 8
test edi, edi
je 0x1004e1e8
push ebp
push ebx
push edi
call fcn.101d1275
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x1004e222
mov esi, 8
jmp 0x1004e222
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1004e20f.11001
jmp dword [eax*4 + 0x1004e240]
mov esi, 0x2afa
jmp 0x1004e222
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101bdc82
add esp, 0x820
ret 0x18
Function at 0x1004fa50
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.100bcd00
push 0x62
push edi
mov ebx, eax
call fcn.101bfdf0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x1004fb02
call fcn.1004b6c0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.1004b7c0
add esp, 0xc
push edi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.1004b870
add esp, 0x14
call fcn.101c3b55
cmp dword [eax], 2
je 0x1004fad2
call fcn.101c3b55
cmp dword [eax], 6
je 0x1004fad2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x1004fada
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.1004b6c0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.1004b7c0
push 0
push esi
push 0x20
call fcn.1004b870
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1025d1c0
call fcn.1003bdf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004fb24
push ebx
call fcn.101c3d2f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.1003b650
push ebx
push esi
push 0x6a
push edi
call fcn.1003b680
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10051980
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x10051aa7
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x10051aa7
push esi
push edi
cmp ecx, 4
jb 0x10051a81
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x10051a20
cmp edi, edx
jae 0x10051a81
cmp esi, ebx
ja 0x10051a28
cmp edi, ebx
jae 0x10051a81
cmp esi, ebp
ja 0x10051a30
cmp edi, ebp
jae 0x10051a81
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x10051a3e
cmp edi, ebx
jae 0x10051a81
cmp edx, ebp
ja 0x10051a46
cmp edi, ebp
jae 0x10051a81
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x10051a50
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x10051aa5
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x10051a81
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10082350
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x10082392
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x10082372
pop ebx
pop edi
pop esi
ret
Function at 0x100e8200
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x100e8218
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x100e821d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x100e82f5
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x100e8289
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x100e82d5
shl eax, 0x10
cmp esi, 2
jne 0x100e8299
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x100e82bc
mov al, 0x3d
jmp 0x100e82c5
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x100e8233
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x100e9f50
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.101bea50
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x100e9f98
call fcn.1004b6c0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
push 0
push 0x87
push 0x20
call fcn.1004b870
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.1004d1d0
add esp, 8
test eax, eax
je 0x100ea027
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x100ea02e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x100ea02e
call fcn.1004b6c0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1004b870
call fcn.1004b6c0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
push 0
push 0x89
push 0x20
call fcn.1004b870
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x100ea09f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x100ea09f
call fcn.1004b6c0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1004b870
call fcn.1004b6c0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
push 0
push 0x8a
push 0x20
call fcn.1004b870
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.1004d480
add esp, 4
push eax
push esi
call fcn.1004d470
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100ea12b
push eax
call fcn.1008a2d0
add esp, 4
test eax, eax
jne 0x100ea027
call fcn.1004b6c0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1004b870
call fcn.1004b6c0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.1004b7c0
push 0
push 0x67
push 0x20
call fcn.1004b870
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x100f2370
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x100f2397
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
sub esi, 1
jne 0x100f2386
pop edi
movzx eax, dl
pop esi
ret
Function at 0x10106ed0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp ebp, 2
je 0x10106fa9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10106f5e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.10079ad0
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x10106f32
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xad
push str.cryptoececx_backend.c
call fcn.1004b7c0
push 0
push 0x66
push 0x10
call fcn.1004b870
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
push eax
call fcn.100539c0
add esp, 4
test esi, esi
jne 0x10106f49
mov esi, eax
jmp 0x10106f62
cmp esi, eax
je 0x10106f62
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xb3
jmp 0x10106f14
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x10106f95
test esi, esi
je 0x10106f95
cmp esi, 0x40a
je 0x10106f8a
cmp esi, 0x43f
je 0x10106f8a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x10106f8f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x10106fad
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xb9
jmp 0x10106f14
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x10106fd1
cmp esi, 0x43f
je 0x10106fd1
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x10106fe1
xor ecx, ecx
mov eax, 2
cmp esi, 0x40a
cmove eax, ecx
push ebx
push dword [esp + 0x2c]
push 1
push eax
push dword [esp + 0x34]
call fcn.100648a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1010702b
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xc0
push str.cryptoececx_backend.c
call fcn.1004b7c0
push ebx
push 0xc0100
push 0x10
call fcn.1004b870
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x10107047
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.101c0150
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.10064820
mov edi, eax
add esp, 4
test edi, edi
jne 0x1010707a
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xca
push str.cryptoececx_backend.c
call fcn.1004b7c0
push edi
push 0xc0100
jmp 0x10107150
cmp ebp, 2
jne 0x101070ec
test esi, esi
je 0x1010711f
cmp esi, 0x40a
je 0x101070a7
cmp esi, 0x43f
je 0x101070a7
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x101070ac
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.100a9930
add esp, 0x10
test eax, eax
jle 0x1010715a
cmp esi, 0x40a
jne 0x101070db
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x1010711f
cmp esi, 0x40b
jne 0x1010711f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x1010711f
cmp esi, 0x40a
je 0x1010710c
cmp esi, 0x43f
je 0x1010710c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x10107111
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.101c0150
add esp, 0xc
push ebx
call fcn.10107170
add esp, 4
test eax, eax
jne 0x10107040
call fcn.1004b6c0
push str.ossl_ecx_key_op
push 0xde
push str.cryptoececx_backend.c
call fcn.1004b7c0
push 0
push 0xa6
push 0x10
call fcn.1004b870
add esp, 0x18
push ebx
call fcn.10064840
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1010bb70
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.101bea50
mov eax, dword [0x102f8384]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push str.SHA512
push ecx
call fcn.10057a70
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1010bbf2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.10056d00
push edi
mov esi, eax
call fcn.10057aa0
add esp, 0x1c
test esi, esi
jne 0x1010bc0c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.1004f4b0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.101bdc82
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1010b3b0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1010b330
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.1004f4b0
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101bdc82
add esp, 0xe4
ret
Function at 0x1010bc80
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0x174
call fcn.101bea50
mov eax, dword [0x102f8384]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x18c]
push ebp
mov ebp, dword [esp + 0x180]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x190]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1a0]
push eax
push str.SHA512
push ecx
call fcn.10057a70
add esp, 0xc
mov edi, eax
call fcn.100579e0
mov dword [esp + 0x18], 0
mov esi, eax
test edi, edi
je 0x1010be8e
test esi, esi
je 0x1010be8e
push 0
push edi
push esi
call fcn.10057170
add esp, 0xc
test eax, eax
je 0x1010be8e
push 0x20
push ebx
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.10057040
add esp, 0xc
test eax, eax
je 0x1010be8e
mov al, byte [esp + 0xdf]
and byte [esp + 0xc0], 0xf8
and al, 0x3f
push 0
or al, 0x40
push edi
push esi
mov byte [esp + 0xeb], al
call fcn.10057170
add esp, 0xc
test eax, eax
je 0x1010be8e
push 0x20
lea eax, [esp + 0xe4]
push eax
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
mov ebx, dword [esp + 0x190]
push ebx
push dword [esp + 0x14]
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x104]
push eax
push esi
call fcn.10057040
add esp, 0xc
test eax, eax
je 0x1010be8e
lea eax, [esp + 0x100]
push eax
call fcn.101108f0
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1010b3b0
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.1010b330
push 0
push edi
push esi
call fcn.10057170
add esp, 0x20
test eax, eax
je 0x1010be8e
push 0x20
push ebp
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
push 0x20
push dword [esp + 0x20]
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
push ebx
push dword [esp + 0x14]
push esi
call fcn.100571b0
add esp, 0xc
test eax, eax
je 0x1010be8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x144]
push eax
push esi
call fcn.10057040
add esp, 0xc
test eax, eax
je 0x1010be8e
lea eax, [esp + 0x140]
push eax
call fcn.101108f0
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x14c]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.1010c3b0
add esp, 0x14
mov dword [esp + 0x18], 1
lea eax, [esp + 0x100]
push 0x40
push eax
call fcn.1004f4b0
lea eax, [esp + 0xc8]
push 0x40
push eax
call fcn.1004f4b0
push edi
call fcn.10057aa0
push esi
call fcn.10057950
mov ecx, dword [esp + 0x198]
add esp, 0x18
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101bdc82
add esp, 0x174
ret
Function at 0x10113d00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x10113d4f
cmp edx, esi
jb 0x10113d4f
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x10113d30
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x10113d60
pop esi
pop ebx
ret
Function at 0x1011b430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1011b4f9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1011b451
cmp al, 0x6b
jne 0x1011b4f9
inc ecx
cmp al, 0x6b
jne 0x1011b4b2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x1011b472
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x1011b472
cmp dl, 0xbb
jne 0x1011b486
inc eax
cmp eax, esi
jl 0x1011b460
sub esi, eax
test eax, eax
jne 0x1011b4b5
call fcn.1004b6c0
push str.RSA_padding_check_X931
push 0x56
jmp 0x1011b492
call fcn.1004b6c0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.1004b7c0
push 0
push 0x8a
push 4
call fcn.1004b870
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x1011b4e7
call fcn.1004b6c0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.1004b7c0
push 0
push 0x8b
push 4
call fcn.1004b870
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.101c0150
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.1004b6c0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.1004b7c0
push 0
push 0x89
push 4
call fcn.1004b870
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x1013bb70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.101bea50
mov edx, dword [esp + 0x18]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
or ecx, 0xffffffff
push ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 1
push esi
mov esi, dword [edx]
setne al
add eax, ebx
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x1013bba9
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ebp, 1
je 0x1013bc74
mov ecx, dword [esp + 0x2c]
dec ecx
add ecx, esi
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], ecx
mov cl, byte [ecx]
mov byte [esp + 0xf], cl
movzx ebp, cl
je 0x1013bbe0
sub esi, ebp
mov eax, 1
sub esi, ebx
dec esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [eax + ebp]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
push edi
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x1013bc57
mov esi, dword [esp + 0x14]
mov edx, ebp
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, ebp
lea esi, [esi - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x13]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x1013bc17
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
not ebx
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x3c]
movzx ecx, bl
mov ebx, dword [esp + 0x40]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edx], esi
pop edi
push dword [esp + 0x44]
push ecx
push ebx
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
call fcn.1013b840
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x14
ret