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

Disassembly:
mov eax, 0x230
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x661948], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4c4d70
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4c5130
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4c4d20
jne 0x4c54db
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c54d1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005af5e3
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005af63d
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 0x4c544f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4c5496
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005af5e3
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005af63d
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4c54cd
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x4c54ca
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4c54ca
inc esi
cmp esi, 3
jl 0x4c5498
mov eax, dword [esp + 0x14]
mov dword [0x65e474], eax
mov eax, dword [esp + 0x1c]
mov dword [0x65e47c], eax
mov eax, dword [esp + 0x24]
mov dword [0x65e484], eax
jmp 0x4c54cd
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x661948], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x65e474]
call fcn.0059c3d3
add esp, 0x230
ret 4
Function at 0x4c5510
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.0059e1f0
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.0059e1f0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005af757
add esp, 0x28
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 0x4c56df
cmp word [ebx + 8], 2
jne 0x4c5602
cmp word [ebx + 0xa], 4
jne 0x4c5602
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c5602
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.004c5740
mov dword [edi], eax
test eax, eax
je 0x4c56d8
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4c55d0
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005af757
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4c5690
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c5626
sub ecx, edx
je case.0x4c56ef.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c5660
test dl, dl
je 0x4c565c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c5660
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c5640
xor eax, eax
jmp 0x4c5665
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4c56ef.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x4c56ef.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4c5592
cmp dword [esp + 0x844], esi
je 0x4c5709
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c56a0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005af762
mov edi, eax
add esp, 8
test edi, edi
je 0x4c56c8
push ebp
push ebx
push edi
call fcn.005af5e3
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 0x4c5709
mov esi, 8
jmp 0x4c5709
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4c56ef.11001
jmp dword [eax*4 + 0x4c5728]
mov esi, 0x2afa
jmp 0x4c5709
mov esi, 0x2afb
jmp 0x4c5709
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059c3d3
add esp, 0x820
ret 0x18
Function at 0x4c7470
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x4c74b2
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, 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 0x4c7491
pop edi
pop ebx
pop esi
ret

Function at 0x4d4660
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0059cab0
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
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 + 0x30]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x4d46c9
test edi, edi
je 0x4d46a9
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x4d46a9
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [ebx], al
inc esi
inc ebx
sub edi, 1
jne 0x4d4695
mov dword [ebp + 0x70], ecx
test edi, edi
je 0x4d4784
cmp ecx, 0x40
jne 0x4d46c9
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x4d46c9
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, edi
and eax, 0x3f
sub edi, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp edi, 0x40
jb 0x4d4737
push dword [esp + 0x24]
mov ecx, edi
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 ebx
mov dword [esp + 0x28], edx
call fcn.0043abc0
mov eax, dword [esp + 0x28]
add esp, 0x14
sub edi, eax
add esi, eax
add ebx, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x4d4730
inc dword [ebp + 0x24]
mov edx, eax
cmp edi, 0x40
jae 0x4d46e3
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4d4784
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.0059e1f0
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.0043abc0
add esp, 0x20
xor edx, edx
test edi, edi
je 0x4d4781
sub esi, ebx
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + ebx]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, edi
jb 0x4d4770
mov dword [ebp + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4de7b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4de7c4
mov dword [esp + 4], eax
jmp fcn.0046fd40
or eax, 0xffffffff
ret

Function at 0x4e3270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xbc]
push esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xcc]
push edi
mov edi, dword [esp + 0xc0]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.00475010
push ebp
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.00530690
add esp, 0x10
test eax, eax
je 0x4e3461
mov ebx, dword [esp + 0xcc]
inc ebp
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x4e3324
push 0
push esi
push ebx
push dword [esp + 0x28]
call fcn.00473a20
add esp, 0x10
test eax, eax
jle 0x4e3462
push esi
push ebx
push edi
call fcn.0059db90
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0059db90
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x4e334d
add byte [edi + eax], 1
jne 0x4e334d
sub eax, 1
jns 0x4e3342
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push ebx
call fcn.004770e0
add esp, 0x18
test eax, eax
je 0x4e3462
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push edi
call fcn.004770e0
add esp, 0x18
test eax, eax
je 0x4e3462
xor eax, eax
test esi, esi
jle 0x4e340d
cmp esi, 0x40
jb 0x4e3400
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x2c]
movups xmm1, xmmword [esp + eax + 0x6c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x2c], xmm1
movups xmm0, xmmword [esp + eax + 0x3c]
movups xmm1, xmmword [esp + eax + 0x7c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x3c], xmm1
movups xmm0, xmmword [esp + eax + 0x4c]
movups xmm1, xmmword [esp + eax + 0x8c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x4c], xmm1
movups xmm0, xmmword [esp + eax + 0x5c]
movups xmm1, xmmword [esp + eax + 0x9c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x5c], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x4e33a0
cmp eax, esi
jge 0x4e340d
nop dword [eax]
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x4e3400
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push ebx
push esi
push eax
call fcn.0046f3d0
add esp, 0xc
test eax, eax
je 0x4e3462
push dword [esp + 0x18]
push dword [esp + 0x28]
push ebx
call fcn.005306e0
add esp, 0xc
test eax, eax
jg 0x4e3483
jne 0x4e3462
push ebp
push 0
push dword [esp + 0x20]
mov ebx, 1
call fcn.00530690
add esp, 0xc
test eax, eax
jne 0x4e3303
inc ebp
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], ebp
mov ecx, dword [esp + 0xa4]
pop ebp
pop ebx
xor ecx, esp
call fcn.0059c3d3
add esp, 0xa0
ret
mov eax, 1
jmp 0x4e3464
Function at 0x4e6e10
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 0x4e6ee9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e6e9e
push esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004a2f00
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4e6e72
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xad
push str.cryptoececx_backend.c
call fcn.00476e60
push 0
push 0x66
push 0x10
call fcn.00476f10
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.00493600
add esp, 4
test esi, esi
jne 0x4e6e89
mov esi, eax
jmp 0x4e6ea2
cmp esi, eax
je 0x4e6ea2
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xb3
jmp 0x4e6e54
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x4e6ed5
test esi, esi
je 0x4e6ed5
cmp esi, 0x40a
je 0x4e6eca
cmp esi, 0x43f
je 0x4e6eca
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e6ecf
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4e6eed
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xb9
jmp 0x4e6e54
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4e6f11
cmp esi, 0x43f
je 0x4e6f11
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4e6f21
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.004e0370
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4e6f6b
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xc0
push str.cryptoececx_backend.c
call fcn.00476e60
push ebx
push 0xc0100
push 0x10
call fcn.00476f10
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4e6f87
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push edi
push eax
call fcn.0059db90
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.004e02f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e6fba
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xca
push str.cryptoececx_backend.c
call fcn.00476e60
push edi
push 0xc0100
jmp 0x4e7090
cmp ebp, 2
jne 0x4e702c
test esi, esi
je 0x4e705f
cmp esi, 0x40a
je 0x4e6fe7
cmp esi, 0x43f
je 0x4e6fe7
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e6fec
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.00473f00
add esp, 0x10
test eax, eax
jle 0x4e709a
cmp esi, 0x40a
jne 0x4e701b
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4e705f
cmp esi, 0x40b
jne 0x4e705f
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4e705f
cmp esi, 0x40a
je 0x4e704c
cmp esi, 0x43f
je 0x4e704c
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4e7051
mov eax, 0x20
push eax
push dword [esp + 0x1c]
push edi
call fcn.0059db90
add esp, 0xc
push ebx
call fcn.004e70b0
add esp, 4
test eax, eax
jne 0x4e6f80
call fcn.00476d60
push str.ossl_ecx_key_op
push 0xde
push str.cryptoececx_backend.c
call fcn.00476e60
push 0
push 0xa6
push 0x10
call fcn.00476f10
add esp, 0x18
push ebx
call fcn.004e0310
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4eba70
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0059cab0
mov eax, dword [0x65fec0]
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.00477c00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4ebaf2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.004770e0
push edi
mov esi, eax
call fcn.00477c30
add esp, 0x1c
test esi, esi
jne 0x4ebb0c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.00401320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0059c3d3
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.004eb2b0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004eb230
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.00401320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059c3d3
add esp, 0xe4
ret
Function at 0x4ebb80
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0x174
call fcn.0059cab0
mov eax, dword [0x65fec0]
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.00477c00
add esp, 0xc
mov edi, eax
call fcn.00477b70
mov dword [esp + 0x18], 0
mov esi, eax
test edi, edi
je 0x4ebd8e
test esi, esi
je 0x4ebd8e
push 0
push edi
push esi
call fcn.00477550
add esp, 0xc
test eax, eax
je 0x4ebd8e
push 0x20
push ebx
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.00477420
add esp, 0xc
test eax, eax
je 0x4ebd8e
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.00477550
add esp, 0xc
test eax, eax
je 0x4ebd8e
push 0x20
lea eax, [esp + 0xe4]
push eax
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
mov ebx, dword [esp + 0x190]
push ebx
push dword [esp + 0x14]
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x104]
push eax
push esi
call fcn.00477420
add esp, 0xc
test eax, eax
je 0x4ebd8e
lea eax, [esp + 0x100]
push eax
call fcn.004f0810
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004eb2b0
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.004eb230
push 0
push edi
push esi
call fcn.00477550
add esp, 0x20
test eax, eax
je 0x4ebd8e
push 0x20
push ebp
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
push 0x20
push dword [esp + 0x20]
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
push ebx
push dword [esp + 0x14]
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x4ebd8e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x144]
push eax
push esi
call fcn.00477420
add esp, 0xc
test eax, eax
je 0x4ebd8e
lea eax, [esp + 0x140]
push eax
call fcn.004f0810
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.004ec2b0
add esp, 0x14
mov dword [esp + 0x18], 1
lea eax, [esp + 0x100]
push 0x40
push eax
call fcn.00401320
lea eax, [esp + 0xc8]
push 0x40
push eax
call fcn.00401320
push edi
call fcn.00477c30
push esi
call fcn.00477ae0
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.0059c3d3
add esp, 0x174
ret
Function at 0x4f9520
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4f95e9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4f9541
cmp al, 0x6b
jne 0x4f95e9
inc ecx
cmp al, 0x6b
jne 0x4f95a2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4f9562
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4f9562
cmp dl, 0xbb
jne 0x4f9576
inc eax
cmp eax, esi
jl 0x4f9550
sub esi, eax
test eax, eax
jne 0x4f95a5
call fcn.00476d60
push str.RSA_padding_check_X931
push 0x56
jmp 0x4f9582
call fcn.00476d60
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00476e60
push 0
push 0x8a
push 4
call fcn.00476f10
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4f95d7
call fcn.00476d60
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00476e60
push 0
push 0x8b
push 4
call fcn.00476f10
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.0059db90
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.00476d60
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00476e60
push 0
push 0x89
push 4
call fcn.00476f10
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x4fe740
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0059cab0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4fe788
call fcn.00476d60
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
push 0
push 0x87
push 0x20
call fcn.00476f10
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.004c46d0
add esp, 8
test eax, eax
je 0x4fe817
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4fe81e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4fe81e
call fcn.00476d60
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00476f10
call fcn.00476d60
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
push 0
push 0x89
push 0x20
call fcn.00476f10
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4fe88f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4fe88f
call fcn.00476d60
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00476f10
call fcn.00476d60
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
push 0
push 0x8a
push 0x20
call fcn.00476f10
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004c4960
add esp, 4
push eax
push esi
call fcn.004c4950
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4fe91b
push eax
call fcn.004fe650
add esp, 4
test eax, eax
jne 0x4fe817
call fcn.00476d60
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00476f10
call fcn.00476d60
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.00476e60
push 0
push 0x67
push 0x20
call fcn.00476f10
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 0x5037f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
push esi
mov esi, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test esi, esi
jns 0x503841
mov dword [ecx], 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059c3d3
add esp, 0x28
ret
push ebx
movzx ebx, byte [eax]
push ebp
lea ebp, [eax + 1]
shl ebx, 0x18
mov edx, ebp
mov dword [esp + 0x1c], ebp
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x10], ebx
movzx eax, byte [edx + 6]
mov dword [esp + 0x28], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x28]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x2b], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [esp + 0x28], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov byte [esp + 0x2f], dl
test eax, eax
je 0x5039b0
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x503958
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
call fcn.00502de0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5038f3
test ebp, ebp
mov ebp, dword [esp + 0x20]
pop edi
je 0x5039b0
mov ecx, dword [esp + 0x20]
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 6], dl
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
mov dword [eax], esi
pop esi
xor ecx, esp
call fcn.0059c3d3
add esp, 0x28
ret