joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094390
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.10183130
mov eax, dword [0x1022ee64]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x10230358], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10093d90
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10094140
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x10093d40
jne 0x100944eb
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100944e1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1018fdb4
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1018fe0e
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x1009445f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x100944a6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1018fdb4
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1018fe0e
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x100944dd
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x100944da
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x100944da
inc esi
cmp esi, 3
jl 0x100944a8
mov eax, dword [esp + 0x14]
mov dword [0x1022d48c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x1022d494], eax
mov eax, dword [esp + 0x24]
mov dword [0x1022d49c], eax
jmp 0x100944dd
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x10230358], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x1022d48c]
call fcn.10182c97
add esp, 0x230
ret 4
Function at 0x10094520
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.10183130
mov eax, dword [0x1022ee64]
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.10184ad0
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.10184ad0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.1018ff28
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 0x100946ff
cmp word [ebx + 8], 2
jne 0x10094622
cmp word [ebx + 0xa], 4
jne 0x10094622
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x10094622
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.10094750
mov dword [edi], eax
test eax, eax
je 0x100946f8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x100945f0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.1018ff28
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x100946af
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094646
sub ecx, edx
je case.0x1009470f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10094680
test dl, dl
je 0x1009467c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10094680
add eax, 2
add ecx, 2
test dl, dl
jne 0x10094660
xor eax, eax
jmp 0x10094685
sbb eax, eax
or eax, 1
test eax, eax
je case.0x1009470f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x1009470f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x100945b0
mov esi, 0x2afb
jmp 0x10094722
cmp dword [esp + 0x844], esi
je 0x10094722
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100946c0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.10188142
mov edi, eax
add esp, 8
test edi, edi
je 0x100946e8
push ebp
push ebx
push edi
call fcn.1018fdb4
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 0x10094722
mov esi, 8
jmp 0x10094722
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1009470f.11001
jmp dword [eax*4 + 0x10094740]
mov esi, 0x2afa
jmp 0x10094722
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10182c97
add esp, 0x820
ret 0x18
Function at 0x1009a730
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.100df770
push 0x62
push edi
mov ebx, eax
call fcn.10184e90
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x1009a7e2
call fcn.100610e0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.100611e0
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.10061290
add esp, 0x14
call fcn.101910a6
cmp dword [eax], 2
je 0x1009a7b2
call fcn.101910a6
cmp dword [eax], 6
je 0x1009a7b2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x1009a7ba
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.100610e0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.100611e0
push 0
push esi
push 0x20
call fcn.10061290
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x101ca2c8
call fcn.10068ec0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1009a804
push ebx
call fcn.1018853b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.10068790
push ebx
push esi
push 0x6a
push edi
call fcn.100687c0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100acac0
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 0x100acb99
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100acb4e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.100aa8e0
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x100acb22
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.100611e0
push 0
push 0x66
push 0x10
call fcn.10061290
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.1005a130
add esp, 4
test esi, esi
jne 0x100acb39
mov esi, eax
jmp 0x100acb52
cmp esi, eax
je 0x100acb52
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xb0
jmp 0x100acb04
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x100acb85
test esi, esi
je 0x100acb85
cmp esi, 0x40a
je 0x100acb7a
cmp esi, 0x43f
je 0x100acb7a
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100acb7f
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x100acb9d
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xb6
jmp 0x100acb04
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x100acbc1
cmp esi, 0x43f
je 0x100acbc1
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x100acbd1
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.100a09e0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100acc1b
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.100611e0
push ebx
push 0xc0100
push 0x10
call fcn.10061290
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x100acc37
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.10184550
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.100a0960
mov edi, eax
add esp, 4
test edi, edi
jne 0x100acc6a
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.100611e0
push edi
push 0xc0100
jmp 0x100acd40
cmp ebp, 2
jne 0x100accdc
test esi, esi
je 0x100acd0f
cmp esi, 0x40a
je 0x100acc97
cmp esi, 0x43f
je 0x100acc97
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100acc9c
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.1008a7c0
add esp, 0x10
test eax, eax
jle 0x100acd4a
cmp esi, 0x40a
jne 0x100acccb
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x100acd0f
cmp esi, 0x40b
jne 0x100acd0f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x100acd0f
cmp esi, 0x40a
je 0x100accfc
cmp esi, 0x43f
je 0x100accfc
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x100acd01
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.10184550
add esp, 0xc
push ebx
call fcn.100acd60
add esp, 4
test eax, eax
jne 0x100acc30
call fcn.100610e0
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.100611e0
push 0
push 0xa6
push 0x10
call fcn.10061290
add esp, 0x18
push ebx
call fcn.100a0980
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100b1720
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.10183130
mov eax, dword [0x1022ee64]
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.10057b40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100b17a2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.10057010
push edi
mov esi, eax
call fcn.10057b70
add esp, 0x1c
test esi, esi
jne 0x100b17bc
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.10001320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.10182c97
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.100b0f60
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.100b0ee0
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.10001320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10182c97
add esp, 0xe4
ret
Function at 0x100b1830
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0x174
call fcn.10183130
mov eax, dword [0x1022ee64]
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.10057b40
add esp, 0xc
mov edi, eax
call fcn.10057ab0
mov dword [esp + 0x18], 0
mov esi, eax
test edi, edi
je 0x100b1a3e
test esi, esi
je 0x100b1a3e
push 0
push edi
push esi
call fcn.10057480
add esp, 0xc
test eax, eax
je 0x100b1a3e
push 0x20
push ebx
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.10057350
add esp, 0xc
test eax, eax
je 0x100b1a3e
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.10057480
add esp, 0xc
test eax, eax
je 0x100b1a3e
push 0x20
lea eax, [esp + 0xe4]
push eax
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
mov ebx, dword [esp + 0x190]
push ebx
push dword [esp + 0x14]
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x104]
push eax
push esi
call fcn.10057350
add esp, 0xc
test eax, eax
je 0x100b1a3e
lea eax, [esp + 0x100]
push eax
call fcn.100b64a0
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100b0f60
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.100b0ee0
push 0
push edi
push esi
call fcn.10057480
add esp, 0x20
test eax, eax
je 0x100b1a3e
push 0x20
push ebp
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
push 0x20
push dword [esp + 0x20]
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
push ebx
push dword [esp + 0x14]
push esi
call fcn.100574c0
add esp, 0xc
test eax, eax
je 0x100b1a3e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x144]
push eax
push esi
call fcn.10057350
add esp, 0xc
test eax, eax
je 0x100b1a3e
lea eax, [esp + 0x140]
push eax
call fcn.100b64a0
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.100b1f60
add esp, 0x14
mov dword [esp + 0x18], 1
lea eax, [esp + 0x100]
push 0x40
push eax
call fcn.10001320
lea eax, [esp + 0xc8]
push 0x40
push eax
call fcn.10001320
push edi
call fcn.10057b70
push esi
call fcn.10057a20
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.10182c97
add esp, 0x174
ret
Function at 0x100b98b0
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 0x100b98ff
cmp edx, esi
jb 0x100b98ff
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 0x100b98e0
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 0x100b9910
pop esi
pop ebx
ret
Function at 0x100bf500
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x100bf5c9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x100bf521
cmp al, 0x6b
jne 0x100bf5c9
inc ecx
cmp al, 0x6b
jne 0x100bf582
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x100bf542
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x100bf542
cmp dl, 0xbb
jne 0x100bf556
inc eax
cmp eax, esi
jl 0x100bf530
sub esi, eax
test eax, eax
jne 0x100bf585
call fcn.100610e0
push str.RSA_padding_check_X931
push 0x56
jmp 0x100bf562
call fcn.100610e0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.100611e0
push 0
push 0x8a
push 4
call fcn.10061290
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x100bf5b7
call fcn.100610e0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.100611e0
push 0
push 0x8b
push 4
call fcn.10061290
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.10184550
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.100610e0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.100611e0
push 0
push 0x89
push 4
call fcn.10061290
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x100d22c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10183130
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x64]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x100d2329
test ebx, ebx
je 0x100d2309
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x100d2309
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x100d22f5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x100d23e4
cmp ecx, 0x40
jne 0x100d2329
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x100d2329
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x100d2397
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.1001ae80
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x100d2390
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x100d2343
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100d23e4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.10184ad0
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.1001ae80
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x100d23e1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x100d23d0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x100d7050
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.10183130
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x100d7099
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x100d7099
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x100d7080
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
bswap edx
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x100d7134
mov edi, eax
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
bswap eax
mov dword [edi + 0xc], eax
test edx, edx
jne 0x100d7116
mov edx, 0xc
mov eax, 1
nop word [eax + eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x100d7100
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x100d70b1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x100d7192
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x2c]
add edx, 1
bswap edx
mov dword [eax + 0xc], edx
jne 0x100d716d
push eax
call fcn.100d71d0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x100d7180
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100da8f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.10183130
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x100da938
call fcn.100610e0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
push 0
push 0x87
push 0x20
call fcn.10061290
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.100936d0
add esp, 8
test eax, eax
je 0x100da9c7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x100da9ce
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x100da9ce
call fcn.100610e0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10061290
call fcn.100610e0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
push 0
push 0x89
push 0x20
call fcn.10061290
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x100daa3f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x100daa3f
call fcn.100610e0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10061290
call fcn.100610e0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
push 0
push 0x8a
push 0x20
call fcn.10061290
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.10093980
add esp, 4
push eax
push esi
call fcn.10093970
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100daacb
push eax
call fcn.100da800
add esp, 4
test eax, eax
jne 0x100da9c7
call fcn.100610e0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.10061290
call fcn.100610e0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.100611e0
push 0
push 0x67
push 0x20
call fcn.10061290
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 0x100de640
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 0x100de682
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 0x100de662
pop ebx
pop edi
pop esi
ret