joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52e500
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e1720
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
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
pop esi
pop ebp
ret

Function at 0x52e850
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e1720
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
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
pop esi
pop ebp
ret
Function at 0x52fa70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.005e1720
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x530dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0051a750
add esp, 8
test esi, esi
jg 0x530e1a
push esi
call fcn.005310f0
add esp, 4
test eax, eax
je 0x530e1a
push 0xa
push edi
call fcn.0051adf0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x531db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x531e00
mov al, byte [esi]
test al, al
je 0x531e00
push edi
mov edi, 0x100
nop dword [eax]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x531dd0
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x532070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x5320ca
mov al, byte [edi]
test al, al
je 0x5320ca
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.005530e0
or eax, ebx
lea edi, [edi + 1]
mov ecx, eax
add esp, 4
shr ecx, 2
add ebx, 0x100
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol esi, cl
xor esi, eax
mov al, byte [edi]
test al, al
jne 0x532090
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5393a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
cmp dword [eax], 5
je 0x5393bd
push eax
push esi
call fcn.00539a80
add esp, 8
test eax, eax
jle 0x539403
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.0051a750
add esp, 8
test edi, edi
jg 0x539400
push edi
call fcn.005310f0
add esp, 4
test eax, eax
je 0x539400
push 0xa
push esi
call fcn.0051adf0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x540090
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.004b1b30
mov esi, eax
push esi
call fcn.0052fa70
add esp, 8
test eax, eax
jne 0x5400ae
pop esi
pop ebp
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005d3c40

Function at 0x546600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax + 0x60]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edx + 0x70]
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
test esi, esi
je 0x546668
test edi, edi
je 0x546648
nop dword [eax]
cmp esi, 0x40
jae 0x546648
mov al, byte [esi + edx + 0x30]
inc esi
xor al, byte [ebx]
inc ebx
mov byte [ecx], al
inc ecx
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x546630
mov dword [edx + 0x70], esi
test edi, edi
je 0x546717
cmp esi, 0x40
jne 0x546668
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x546668
inc dword [edx + 0x24]
mov eax, edi
lea esi, [edx + 0x20]
and eax, 0x3f
mov dword [ebp - 0x10], esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp edi, 0x40
jb 0x5466cd
nop
mov esi, edi
shr esi, 6
add eax, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jae 0x546697
sub esi, eax
mov dword [ebp - 0xc], 0
lea eax, [edx + 0x20]
shl esi, 6
push eax
push edx
push esi
push ebx
push ecx
call fcn.00587cb0
mov ecx, dword [ebp + 8]
sub edi, esi
mov eax, dword [ebp - 0xc]
add ecx, esi
mov edx, dword [ebp - 4]
add ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp + 8], ecx
mov dword [esi], eax
test eax, eax
jne 0x5466c8
inc dword [edx + 0x24]
cmp edi, 0x40
jae 0x546680
cmp dword [ebp - 8], 0
je 0x546717
push 0x40
lea edi, [edx + 0x30]
push 0
push edi
call fcn.005e1720
push esi
mov esi, dword [ebp - 4]
push esi
push 0x40
push edi
push edi
call fcn.00587cb0
mov eax, dword [ebp - 8]
add esp, 0x20
xor edi, edi
test eax, eax
je 0x546714
mov edx, dword [ebp + 8]
sub ebx, edx
nop
lea ecx, [edi + edx]
mov al, byte [ebx + ecx]
xor al, byte [esi + edi + 0x30]
inc edi
mov byte [ecx], al
mov eax, dword [ebp - 8]
cmp edi, eax
jb 0x546700
mov dword [esi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x547f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor dl, dl
test esi, esi
je 0x547f97
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x547f86
pop edi
movzx eax, dl
pop esi
pop ebp
ret
Function at 0x548110
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x548199
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x548199
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e84d2
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x20c]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x5482e1
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5481a1
sub ecx, edx
lea esi, [ecx + 1]
lea eax, [esi + esi]
call fcn.0060b1b0
mov edi, esp
test edi, edi
jne 0x5481c5
mov edi, str.no_stack_
jmp 0x54824f
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x5481f1
xor ecx, ecx
test esi, esi
je 0x5481f1
nop dword [eax]
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x5481e0
xor edx, edx
test esi, esi
je 0x54824f
lea ebx, [edx + 0x53]
nop word [eax + eax]
cmp word [edi + edx*2], 0x25
jne case.0x548222.43
lea ecx, [edx + 1]
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x548222.43
movzx eax, byte [eax + 0x548310]
jmp dword [eax*4 + 0x5482f8]
inc edx
add ecx, 2
jmp 0x548210
mov word [ecx], bx
jmp case.0x548222.43
mov eax, 0x73
jmp 0x548247
mov eax, 0x43
jmp 0x548247
mov eax, 0x63
mov word [ecx], ax
inc edx
cmp edx, esi
jb 0x548200
lea eax, [ebp + 0xc]
push eax
push 0
push edi
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e851a
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xa], ax
call fcn.00547ff0
test eax, eax
jle 0x5482cb
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x5482e1
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x5482e1
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
Function at 0x54f960
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x54f9a3
sub eax, 2
je 0x54f9a3
sub eax, 0x15
je 0x54f9a3
push 0x297
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.005288a0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00552f80
cmp eax, 1
jne 0x54f99b
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x10], xmm0
test esi, esi
jne 0x54f9d9
or eax, 0x400
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 1
jne 0x54f9e5
or eax, 1
mov dword [ebp - 0x20], eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x54fa35
nop
cmp esi, 8
je 0x54fa7a
mov eax, dword [ebp - 0x20]
test eax, 0x400
je 0x54fa43
push dword [ebp + 0x20]
and eax, 0xfffffbff
mov edi, esi
or eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x54fa00
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2da
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.005288a0
test edi, edi
cmovne esi, edi
push esi
call fcn.0054fe80
push eax
push 1
call fcn.00528180
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2cb
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.005288a0
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54fc70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
call fcn.00552f80
cmp eax, 1
jne 0x54fd63
push 0x401
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e1720
mov eax, dword [ebp + 0xc]
add esp, 0xc
neg eax
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
sbb eax, eax
movq qword [ebp - 0x13], xmm0
and eax, 0xa
mov word [ebp - 7], 0
push eax
push 0x20
lea eax, [ebp - 0x24]
mov byte [ebp - 5], 0
push eax
push 0x401
lea eax, [ebp - 0x428]
push eax
push ebx
movups xmmword [ebp - 0x23], xmm0
call fcn.0054f910
add esp, 4
push eax
push ebx
call fcn.004b0370
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x54fd76
push 0xdb
push str.....crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.005288a0
add esp, 0x14
push 0
push 0x400
push 0x6c8fa0
push 0x400
push dword [ebp - 0x42c]
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x6c8fa0
push 1
call fcn.00528180
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x24], 0
jne 0x54fda6
push ebx
call fcn.0054f8c0
add esp, 4
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x693640
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0051b7d0
add esp, 0x10
test edi, edi
je 0x54fdc5
push 0xed
lea eax, [ebp - 0x428]
push str.....crypto_bio_b_addr.c
push eax
call fcn.005304c0
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x54fde1
push 0xef
lea eax, [ebp - 0x24]
push str.....crypto_bio_b_addr.c
push eax
call fcn.005304c0
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x54fdea
cmp dword [edi], 0
je 0x54fdf3
test esi, esi
je 0x54fe5d
cmp dword [esi], 0
jne 0x54fe5d
test edi, edi
je 0x54fe11
push 0xfe
push str.....crypto_bio_b_addr.c
push dword [edi]
call fcn.00519f50
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x54fe2f
push 0x102
push str.....crypto_bio_b_addr.c
push dword [esi]
call fcn.00519f50
add esp, 0xc
mov dword [esi], 0
push 0x105
push str.....crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.005288a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
Function at 0x551960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00551ab0

Function at 0x551970
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x5522d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x553000
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x553038
push 0xc3
push 0x64e450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.005288a0
add esp, 0x14
mov eax, esi
pop esi
pop ebp
ret

Function at 0x555f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x555f25
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.00533090
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x555fd9
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x555f76
test esi, esi
jle 0x555fb7
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x555f60
jmp 0x555fb4
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x555f94
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.005e1720
add esp, 0xc
test esi, esi
jle 0x555fb7
mov edx, ebx
lea ecx, [edi + 0x24]
mov ebx, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x555fa0
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.00533620
add esp, 0x10
test eax, eax
jne 0x555fd9
push esi
push ebx
call fcn.00537800
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
Function at 0x563dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub ecx, 4
jb 0x563df7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x563dfe
add edx, 4
add esi, 4
sub ecx, 4
jae 0x563de6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x563e39
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x563e39
cmp ecx, 0xfffffffd
je 0x563e39
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x563e39
cmp ecx, 0xfffffffe
je 0x563e39
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x563e39
cmp ecx, 0xffffffff
je 0x563e39
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle case.0x563ead.2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x563e5e
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x563e5e
inc ecx
inc edx
cmp ecx, ebx
jl 0x563e51
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x563e81
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
nop
cmp byte [eax + esi], 0
jne 0x563e81
cmp byte [eax], 0xff
jne 0x563e81
dec eax
sub edx, 1
jns 0x563e70
cmp ecx, edx
jl case.0x563ead.2
jle 0x563e93
pop edi
pop esi
lea eax, [ecx*8]
pop ebx
pop ebp
ret
mov dh, byte [ecx + ebx]
mov bl, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x563ead.2
movzx eax, byte [eax + 0x563f20]
jmp dword [eax*4 + 0x563f00]
mov eax, 7
jmp 0x563ee3
mov eax, 6
jmp 0x563ee3
mov eax, 5
jmp 0x563ee3
mov eax, 4
jmp 0x563ee3
mov eax, 3
jmp 0x563ee3
mov eax, 2
jmp 0x563ee3
mov eax, 1
test dl, dh
jne case.0x563ead.2
and bl, dl
cmp bl, dl
jne case.0x563ead.2
pop edi
pop esi
lea eax, [eax + ecx*8]
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x564e50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx eax, cl
add edi, esi
and eax, 1
test esi, esi
je 0x564e8e
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [ebp + 0x14]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x564e70
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x566b70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
xor edi, edi
call fcn.00526430
mov ebx, eax
push ebx
push esi
call fcn.00526300
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x566bf4
push 0xf0000040
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x566bcd
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00526380
push esi
call fcn.005264f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x566bf4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00526430
mov ebx, eax
push ebx
push esi
call fcn.00526300
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x566c63
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x566c49
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00526380
push esi
call fcn.005264f0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x566beb
push esi
call fcn.005264f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56e5a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x56e5d6
push 0x52
push str.....crypto_bio_b_sock2.c
push 0x87
push 0x8a
push 0x20
call fcn.005288a0
add esp, 0x14
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push edi
call fcn.00553040
add esp, 8
test eax, eax
jne 0x56e5f6
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x56e63e
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x56e63e
push 0x5c
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.005288a0
push 0x5d
push str.....crypto_bio_b_sock2.c
push 0x89
jmp 0x56e6c9
test bl, 0x10
je 0x56e679
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x56e679
push 0x65
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.005288a0
push 0x66
push str.....crypto_bio_b_sock2.c
push 0x8a
jmp 0x56e6c9
mov esi, dword [ebp + 0xc]
push esi
call fcn.0054f910
add esp, 4
push eax
push esi
call fcn.004b0370
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x56e6e1
push eax
call fcn.005310f0
add esp, 4
test eax, eax
jne 0x56e6d8
push 0x6e
push str.....crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
push 2
call fcn.005288a0
push 0x6f
push str.....crypto_bio_b_sock2.c
push 0x67
push 0x8a
push 0x20
call fcn.005288a0
add esp, 0x28
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret