joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi], 0
jne 0x405874
mov dword [edi], esi
cmp dword [edi + 4], 0
jne 0x405881
mov dword [edi + 4], 0x400
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
jne 0x4058a0
mov eax, dword [0x451a10]
inc eax
mov dword [0x451a10], eax
mov eax, dword [0x451a10]
cdq
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
lea eax, [esi + 0xd0]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xbc], 0xffffffff
jne 0x4058c8
mov ecx, esi
call fcn.00405660
test eax, eax
jne 0x405a65
push 0
push 1
push 0x44ba00
push dword [esi + 0xbc]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x40590b
push str.hloop_post_event
push str._s:_hloop_post_event_failed__n
push 4
call fcn.00408d90
push eax
call fcn.00408910
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xc8], 0
jne 0x405966
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0x10
lock inc dword [0x451a14]
push 0x280
call fcn.0042def2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405a75
push 0x280
push 0
push ebx
call fcn.00428f20
add esp, 0xc
mov dword [esi + 0xc0], ebx
mov ebx, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc8]
cmp ebx, ecx
jne 0x4059fd
lea edx, [ecx + ecx]
mov eax, 0x10
test edx, edx
cmove edx, eax
lea eax, [ecx + ecx*4]
shl eax, 3
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc0]
lea ebx, [edx + edx*4]
mov dword [ebp - 0xc], edx
shl ebx, 3
lock inc dword [0x451a14]
test eax, eax
je 0x4059b1
lock inc dword [0x451a18]
push ebx
push eax
call fcn.0042defd
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x4059cc
push str.realloc_failed__n
jmp 0x405a7a
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0x4059e6
sub ebx, ecx
add eax, ecx
push ebx
push 0
push eax
call fcn.00428f20
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [esi + 0xcc]
mov dword [esi + 0xc0], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc8], eax
jmp 0x405a33
mov edx, dword [esi + 0xcc]
lea eax, [edx + ebx]
cmp eax, ecx
jne 0x405a33
mov ecx, dword [esi + 0xc0]
lea eax, [ebx + ebx*4]
shl eax, 3
push eax
lea eax, [edx + edx*4]
lea eax, [ecx + eax*8]
push eax
push ecx
call fcn.004289a0
add esp, 0xc
mov dword [esi + 0xcc], 0
xor edx, edx
mov eax, dword [esi + 0xc4]
movups xmm0, xmmword [edi]
add eax, edx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0xc0]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [eax + ecx*8 + 0x20], xmm0
inc dword [esi + 0xc4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.malloc_failed__n
push 2
call fcn.0042ad65
add esp, 4
push eax
call fcn.004081f0
add esp, 8
push 0xffffffffffffffff
call fcn.0042e736
int3
Function at 0x406960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
push esi
push edi
mov edi, ecx
nop dword [eax]
inc eax
mov dword [ebp - 4], 0x1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [edi + 0x44]
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
js 0x406aac
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1c
push eax
push dword [edi + 0x40]
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [edi]
mov edx, ebx
call fcn.004062e0
mov ecx, dword [edi + 0xb4]
mov esi, eax
mov dword [esi + 0xb4], ecx
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0xf4]
test edx, edx
je 0x4069db
mov ecx, esi
call fcn.004080f0
cmp dword [edi + 0x28], 0x1000000
jne 0x406a7b
cmp dword [esi + 0xf8], 0
jne 0x406a6c
mov ebx, dword [edi + 0xfc]
test ebx, ebx
jne 0x406a21
mov ebx, dword [0x451a34]
test ebx, ebx
jne 0x406a21
call fcn.0040ad40
or dword [edi + 0x24], 0x8000
mov ebx, eax
mov dword [edi + 0xfc], ebx
test ebx, ebx
je 0x406aa5
push 0xd4
call fcn.0042def2
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x406a9e
push eax
call fcn.0040db40
add esp, 4
lea ecx, [ebx + 0x2e4]
mov ebx, dword [ebp - 8]
push ecx
push ebx
call fcn.0040e0a0
push 0
push 0x40aea0
push 0x40ae60
push dword [ebp - 0xc]
push ebx
call fcn.0040dfd0
add esp, 0x1c
mov dword [esi + 0xf8], ebx
push esi
mov dword [esi + 0x28], 0x1000000
call fcn.004067e0
jmp 0x406a88
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x406a8b
push esi
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
cmp eax, 3
jl 0x406970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x412
jmp 0x406ad1
mov esi, 0x411
jmp 0x406ad1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x406b1c
cmp esi, 0x2714
je 0x406b1c
push str.accept
call fcn.0042e378
add esp, 4
push 0
push pe_nt_image_headers32
push 0x451ae0
mov eax, esi
mov dword [edi + 0x34], esi
cdq
push 0
xor eax, edx
sub eax, edx
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [edi + 0x34]
push 0x451ae0
push dword [edi + 0x30]
push str.nio_accept
push str._s:_listenfd_d_accept_error:__s:_d_n
push 4
call fcn.00408d90
push eax
call fcn.00408910
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 4]
push eax
push dword [esi + 0x44]
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jns 0x406b5a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x406bcf
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1c
push eax
push dword [esi + 0x40]
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp dword [esi + 0x28], 0x1000000
jne 0x406c4c
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x406c2a
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x406bbc
mov eax, dword [0x451a34]
test eax, eax
jne 0x406bbc
call fcn.0040ad40
or dword [esi + 0x24], 0x8000
mov dword [esi + 0xfc], eax
test eax, eax
jne 0x406bbc
mov eax, 0x411
jmp 0x406bcf
mov edx, dword [esi + 0x30]
mov ecx, eax
call fcn.0040aee0
test eax, eax
jne 0x406c24
mov eax, 0x412
push 0
push pe_nt_image_headers32
mov dword [esi + 0x34], eax
push 0x451ae0
cdq
push 0
xor eax, edx
sub eax, edx
push eax
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esi + 0x34]
push 0x451ae0
push dword [esi + 0x30]
push str.nio_connect
push str._s:_connfd_d_connect_error:__s:_d_n
push 3
call fcn.00408d90
push eax
call fcn.00408910
add esp, 0x1c
mov ecx, esi
call fcn.00407680
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xf8], eax
mov ecx, dword [esi + 0x100]
test ecx, ecx
je 0x406c3e
push ecx
push eax
call fcn.0040dff0
add esp, 8
push esi
call fcn.00406890
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x406c6f
call fcn.00406160
mov dword [esi + 0xd8], 0
mov dword [esi + 0xbc], 0
or dword [esi + 0x24], 0x10
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x406c83
push esi
call eax
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x28]
cmp eax, 0x2000
jg 0x406cfe
je 0x406cd3
cmp eax, 0x100
je 0x406cd3
cmp eax, 0x1000
jne 0x406d0c
mov edx, dword [esi + 0x44]
mov eax, 0x1c
push ebx
mov ebx, 0x10
cmp word [edx], 2
cmove eax, ebx
push eax
push edx
push 0
push dword [ebp + 8]
push edi
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_sendto]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 0x100000
je 0x406d35
cmp eax, 0x1000000
je 0x406d1f
push dword [ebp + 8]
push edi
push dword [esi + 0x30]
call fcn.004330d2
add esp, 0xc
pop edi
pop esi
pop ebp
ret
push dword [ebp + 8]
push edi
push dword [esi + 0xf8]
call fcn.0040fdb0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
push 0
push dword [ebp + 8]
push edi
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
ret
Function at 0x407070
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x10
mov esi, dword [edi + 0x44]
cmp word [esi], 2
cmove edx, ecx
push edx
push esi
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x40710c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x407152
push str.connect
call fcn.0042e378
add esp, 4
call esi
mov ecx, dword [edi]
lea edx, [esp + 0x10]
xorps xmm0, xmm0
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x2c]
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0x4064f0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00405860
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x407152
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x10]
mov ecx, dword [edi]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0x406c90
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00405860
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xbc]
mov ecx, 0x2710
test eax, eax
mov edx, 0x4066a0
push 1
cmovne ecx, eax
push ecx
mov ecx, dword [edi]
call fcn.00405f70
mov dword [edi + 0xd8], eax
add esp, 8
mov dword [eax + 0x18], edi
mov eax, dword [edi + 0x24]
or eax, 0x80
cmp dword [edi + 0x30], 3
mov dword [edi + 0x24], eax
jge 0x407198
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi]
test al, 2
jne 0x4071d4
mov eax, dword [0x451a10]
inc eax
mov dword [0x451a10], eax
mov eax, dword [0x451a10]
cdq
mov dword [edi + 8], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], 0x406ec0
test al, 2
jne 0x4071ce
or eax, 2
mov dword [edi + 0x24], eax
mov eax, dword [edi]
inc dword [eax + 0x40]
inc dword [esi + 0xa8]
test byte [edi + 0x24], 8
jne 0x4071e1
mov ecx, edi
call fcn.00407a10
test byte [edi + 0x38], 4
mov dword [edi + 0x10], 0x406ec0
jne 0x407201
mov edx, dword [edi + 0x30]
mov ecx, esi
push 4
call fcn.00409290
add esp, 4
or dword [edi + 0x38], 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4084d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, edx
test esi, esi
je 0x40850b
movzx edx, byte [ebp + 0x10]
mov ebx, esi
mov dword [ebp + 8], ebx
sub edi, ecx
mov ebx, dword [ebp + 0xc]
nop
mov eax, edx
lea ecx, [ecx + 1]
and eax, 3
inc edx
mov al, byte [eax + ebx]
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x4084f0
mov ebx, dword [ebp + 8]
add bl, byte [ebp + 0x10]
pop edi
and bl, 3
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x408fc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, edx
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov ebx, ecx
test eax, eax
je 0x40906b
nop word [eax + eax]
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
sub ecx, 0
je 0x40904d
sub ecx, 1
je 0x409033
sub ecx, 1
jne 0x409061
movzx ecx, byte [edi + ebx - 1]
movzx eax, byte [edi + ebx]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov ecx, dword [ebp + 8]
mov byte [esi + ecx], al
movzx eax, byte [edi + ebx]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + ecx + 1], al
add esi, 2
jmp 0x409061
movzx ecx, byte [edi + ebx - 1]
movzx eax, byte [edi + ebx]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
jmp 0x40905a
movzx eax, byte [edi + ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov ecx, dword [ebp + 8]
mov byte [esi + ecx], al
inc esi
inc edi
cmp edi, dword [ebp - 4]
jb 0x408fe0
dec edi
mov eax, 0xaaaaaaab
mul edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x4090a5
movzx ecx, byte [edi + ebx]
mov eax, dword [ebp + 8]
and ecx, 3
shl ecx, 4
pop edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + eax], cl
mov word [esi + eax + 1], 0x3d3d
lea eax, [esi + 3]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x4090cd
movzx eax, byte [edi + ebx]
mov ecx, dword [ebp + 8]
and eax, 0xf
pop edi
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + ecx], al
lea eax, [esi + 2]
mov byte [esi + ecx + 1], 0x3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409810
Capabilities:
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x44e054]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x4098f7
cmp byte [edi], 0
je 0x4098f7
mov ecx, 1
mov edx, 0x451a30
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x409865
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esi + 4]
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x409884
mov eax, 2
mov word [esi], ax
jmp 0x409917
lea eax, [esi + 8]
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40989e
mov eax, 0x17
mov word [esi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x409926
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40990a
cmp dword [edi + 0x18], eax
je 0x40990a
cmp dword [edi + 0x10], eax
je 0x40990a
mov eax, edi
nop
cmp dword [eax + 4], 2
je 0x4098df
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4098d0
mov eax, edi
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call fcn.004289a0
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x40990a
mov eax, 2
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 4], eax
movzx eax, word [esi]
cmp eax, 2
je 0x409917
cmp eax, 0x17
jne 0x409924
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
xor eax, eax
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
xor ecx, esp
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
Function at 0x4146d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp - 0x34]
mov dword [ebp - 0x38], eax
push 0x30
mov eax, esi
mov dword [ebp - 0x3c], esi
push 0
push eax
call fcn.00428f20
mov edx, dword [ebp - 0x38]
mov edi, 1
add esp, 0xc
xor ebx, ebx
sub edi, edx
lea ecx, [edx + 0x20]
lea eax, [edx + 0xf]
mov dword [ebp - 0x40], ecx
add byte [eax], 1
jne 0x414720
dec eax
lea ecx, [edi + eax]
test ecx, ecx
jg 0x414713
push esi
push edx
lea ecx, [edx + 0x20]
push 1
push ecx
call fcn.004172e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x414797
mov esi, dword [ebp - 0x3c]
add ebx, 0x10
mov edx, dword [ebp - 0x38]
add esi, 0x10
mov dword [ebp - 0x3c], esi
lea eax, [edx + 0xf]
cmp ebx, 0x30
jl 0x414713
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
xor ecx, ecx
sub edx, eax
lea eax, [ebp - 0x34]
add eax, ecx
add ecx, 0x10
movups xmm0, xmmword [eax]
movups xmm1, xmmword [edx + eax]
pxor xmm1, xmm0
movups xmmword [eax], xmm1
cmp ecx, 0x30
jl 0x414757
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push 0x100
push eax
push ecx
call fcn.00417580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x414797
mov eax, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x34]
push 0x30
push eax
call fcn.00415300
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
Function at 0x415320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x415426
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x40
jb 0x415408
lea eax, [edx - 1]
add eax, ebx
cmp edi, eax
ja 0x41535e
lea eax, [edx - 1]
add eax, edi
cmp eax, ebx
jae 0x415408
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x415374
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x415408
mov eax, edx
mov edx, esi
sub edx, ebx
and eax, 0xffffffc0
mov dword [ebp - 4], edx
mov edx, edi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 4]
mov edx, esi
sub edx, edi
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [ebp - 8]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0xc]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp + 8]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x4153a0
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
cmp ecx, edx
jae 0x415423
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x415411
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x41629c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp + 8], eax
nop word [eax + eax]
mov cl, byte [eax + esi]
lea esi, [esi + 1]
mov al, byte [esi - 1]
movzx edx, al
movzx eax, cl
xor edx, eax
mov eax, dword [ebp + 8]
or edi, edx
sub ebx, 1
jne 0x416280
pop esi
mov eax, edi
movzx ecx, di
shr eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
Function at 0x416440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x416519
mov eax, ebx
sub eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [0x44eb5c]
mov edx, dword [0x44eb5c]
xor esi, ecx
xor edx, dword [ebp - 8]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
lea esi, [ebx - 1]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
xor eax, eax
shr ecx, 0x1f
neg ecx
mov dword [ebp + 8], ecx
test esi, esi
je 0x4164fd
mov dl, byte [eax + edi]
mov cl, byte [eax + edi + 1]
mov ebx, dword [0x44eb5c]
xor ebx, dword [ebp + 8]
not ebx
and bl, cl
movzx ecx, byte [ebp + 8]
and cl, dl
or bl, cl
mov byte [eax + edi], bl
inc eax
cmp eax, esi
jb 0x4164d3
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
movzx eax, byte [edi + ebx - 1]
and al, cl
mov ecx, dword [ebp - 4]
inc ecx
mov byte [edi + ebx - 1], al
mov dword [ebp - 4], ecx
cmp ecx, ebx
jb 0x416470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416ce0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x443010
mov edx, edi
test eax, eax
je 0x416d61
cmp dword [0x443010], 0
je 0x416d61
mov ebx, dword [eax + 4]
cmp dword [edx + 4], ebx
jne 0x416d57
mov edx, dword [edx]
mov esi, ebx
mov eax, dword [eax + 8]
sub esi, 4
jb 0x416d22
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x416d27
add edx, 4
add eax, 4
sub esi, 4
jae 0x416d11
cmp esi, 0xfffffffc
je 0x416d6b
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x416d54
cmp esi, 0xfffffffd
je 0x416d6b
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x416d54
cmp esi, 0xfffffffe
je 0x416d6b
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x416d54
cmp esi, 0xffffffff
je 0x416d6b
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x416d6b
mov eax, dword [ebp + 8]
add edi, 0x14
mov edx, edi
cmp dword [edi], 0
jne 0x416d00
pop edi
pop esi
mov eax, 0xffffffd2
pop ebx
pop ebp
ret
test edi, edi
je 0x416d61
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x416e50
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x442f80
mov edx, edi
test eax, eax
je 0x416ed1
cmp dword [0x442f80], 0
je 0x416ed1
mov ebx, dword [eax + 4]
cmp dword [edx + 4], ebx
jne 0x416ec7
mov edx, dword [edx]
mov esi, ebx
mov eax, dword [eax + 8]
sub esi, 4
jb 0x416e92
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x416e97
add edx, 4
add eax, 4
sub esi, 4
jae 0x416e81
cmp esi, 0xfffffffc
je 0x416ed8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x416ec4
cmp esi, 0xfffffffd
je 0x416ed8
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x416ec4
cmp esi, 0xfffffffe
je 0x416ed8
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x416ec4
cmp esi, 0xffffffff
je 0x416ed8
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x416ed8
mov eax, dword [ebp + 8]
add edi, 0x18
mov edx, edi
cmp dword [edi], 0
jne 0x416e70
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret