joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407920
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x64]
add ecx, edx
test byte [esi + 0x68], 2
mov dword [esp + 0x10], ecx
je 0x40794b
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x60]
jmp 0x40794e
mov edi, dword [esi + 0x5c]
sub edi, edx
cmp eax, 0x2000
jg 0x407986
je 0x407967
cmp eax, 0x100
je 0x407967
cmp eax, 0x1000
jne 0x407994
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push dword [esi + 0x44]
push 0
push edi
push ecx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x4079c3
cmp eax, 0x100000
je 0x4079b6
cmp eax, 0x1000000
je 0x4079a3
push edi
push ecx
push dword [esi + 0x30]
call fcn.00434377
add esp, 0xc
jmp 0x4079c3
mov edx, ecx
mov ecx, dword [esi + 0xf8]
push edi
call fcn.0040e7a0
add esp, 4
jmp 0x4079c3
push 0
push edi
push ecx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jns 0x4079e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x407a4d
cmp eax, 0x2714
je 0x407a4d
cmp eax, 0x2738
jne 0x407a39
mov ebx, edi
test ebx, ebx
jne 0x4079f4
mov eax, dword [esi + 0x28]
test eax, 0xff00000
jne 0x407a46
mov edx, dword [esp + 0x10]
cmp ebx, edi
jge 0x407a00
mov byte [edx + ebx], 0
mov eax, dword [esi]
add dword [esi + 0x64], ebx
push ebx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x48], ecx
mov ecx, esi
mov dword [esi + 0x4c], eax
call fcn.00408860
add esp, 4
cmp ebx, edi
jne 0x407a4d
test byte [esi + 0x24], 0x20
jne 0x407a4d
cmp dword [esi + 0x28], 0x1000000
jne 0x407a4d
mov eax, 0x1000000
jmp 0x407931
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x28]
test eax, 0xff00000
je 0x407a4d
mov ecx, esi
call fcn.00408130
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x10
mov esi, dword [edi + 0x44]
cmp word [esi], 2
cmove eax, ecx
push eax
push esi
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x407d0c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x407d52
push str.connect
call fcn.004303b2
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], 0x406d80
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00406070
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x407d52
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], 0x407790
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00406070
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, 0x407170
push 1
cmovne ecx, eax
push ecx
mov ecx, dword [edi]
call fcn.00406800
mov dword [edi + 0xd8], eax
mov edx, 0x407be0
push 4
mov ecx, edi
mov dword [eax + 0x18], edi
or dword [edi + 0x24], 0x80
call fcn.00406c10
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f30
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 0x408f6b
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 0x408f50
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 0x408f80
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 0x40902b
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 0x40900d
sub ecx, 1
je 0x408ff3
sub ecx, 1
jne 0x409021
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 0x409021
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 0x40901a
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 0x408fa0
dec edi
mov eax, 0xaaaaaaab
mul edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x409065
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 0x40908d
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 0x409590
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 [0x44e004]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x409677
cmp byte [edi], 0
je 0x409677
mov ecx, 1
mov edx, 0x44f634
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4095e5
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 0x409604
mov eax, 2
mov word [esi], ax
jmp 0x409697
lea eax, [esi + 8]
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40961e
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 0x4096a6
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40968a
cmp dword [edi + 0x18], eax
je 0x40968a
cmp dword [edi + 0x10], eax
je 0x40968a
mov eax, edi
nop
cmp dword [eax + 4], 2
je 0x40965f
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x409650
mov eax, edi
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call fcn.0042b1a0
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x40968a
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 0x409697
cmp eax, 0x17
jne 0x4096a4
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.00429577
mov esp, ebp
pop ebp
ret
Function at 0x4096c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x44e004]
xor eax, esp
mov dword [esp + 0x1b0], eax
mov eax, dword [ebp + 0xc]
mov ecx, 1
push ebx
push esi
mov dword [esp + 0x10], eax
mov edx, 0x44f634
push edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x409708
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0x10
mov eax, 2
movlpd qword [esp + 0x20], xmm0
or ebx, 0xffffffff
mov word [esp + 0x18], ax
push 0x7f000001
or esi, ebx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
push 1
push 2
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
jns 0x40976e
push str.socket
call fcn.004303b2
or esi, ebx
add esp, 4
or ebx, ebx
cmp edi, 0xffffffff
je 0x40982d
jmp 0x409814
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x40978c
push str.bind
jmp 0x40980c
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4097a0
push str.listen
jmp 0x40980c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4097bc
push 0x449790
jmp 0x40980c
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jns 0x4097d5
push str.socket
jmp 0x40980c
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x4097f0
push str.connect
jmp 0x40980c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test ebx, ebx
jns 0x409845
push str.accept
call fcn.004303b2
add esp, 4
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
cmp esi, 0xffffffff
je 0x409825
push esi
call edi
cmp ebx, 0xffffffff
je 0x40982d
push ebx
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00429577
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1bc]
pop edi
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00429577
mov esp, ebp
pop ebp
ret
Function at 0x40db20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xorps xmm0, xmm0
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, ecx
push dword [ebp + 8]
push ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
call fcn.0042b1a0
mov edi, dword [ebp + 0x10]
add ebx, 4
mov esi, 4
add esp, 0xc
xor edx, edx
sub edi, ebx
mov ecx, ebx
sub esi, ebx
nop dword [eax + eax]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
add edx, 4
lea eax, [esi + ecx]
cmp eax, 8
jbe 0x40db60
mov esi, 8
mov ecx, esi
sub ecx, edx
cmp edx, esi
jae 0x40dc2e
cmp ecx, 0x40
jb 0x40dc19
mov eax, dword [ebp + 0x10]
lea esi, [edx + eax]
add eax, 7
mov dword [ebp - 4], esi
lea esi, [edx + ebx]
cmp esi, eax
mov esi, 8
ja 0x40dbae
lea eax, [ebx + 7]
cmp eax, dword [ebp - 4]
jae 0x40dc19
and ecx, 0x3f
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
add ecx, 0x30
lea eax, [ebx + 0x10]
add eax, edx
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + edi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 8]
jb 0x40dbc3
mov dword [ebp - 8], edx
cmp edx, esi
jae 0x40dc2e
lea eax, [edx + ebx]
sub esi, edx
nop
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x40dc20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
push edi
cmp esi, 4
jb 0x413b81
mov eax, dword [ebp + 8]
sub ebx, eax
mov dword [ebp - 8], ebx
sub edx, eax
mov ebx, 4
mov edi, eax
sub ebx, eax
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [edx + edi]
add ecx, 4
xor eax, dword [edi]
mov dword [ebx + edi], eax
add edi, 4
mov eax, dword [ebp - 4]
add eax, edi
cmp eax, esi
jbe 0x413b64
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, esi
sub eax, ecx
mov dword [ebp - 8], eax
cmp ecx, esi
jae 0x413c98
mov edi, dword [ebp + 8]
cmp eax, 0x40
jb 0x413c7d
lea eax, [ecx + ebx]
mov dword [ebp - 4], eax
lea eax, [ecx + edi]
mov dword [ebp - 0x10], eax
lea eax, [edi - 1]
add eax, esi
cmp dword [ebp - 4], eax
ja 0x413bc0
lea eax, [esi - 1]
add eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x413c7d
lea eax, [ecx + edx]
mov dword [ebp - 0x10], eax
lea eax, [esi - 1]
add eax, edx
cmp dword [ebp - 4], eax
ja 0x413bde
lea eax, [esi - 1]
add eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x413c7d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], esi
and eax, 0x3f
sub dword [ebp - 4], eax
mov esi, edx
sub esi, edi
lea eax, [ebx + 0x20]
mov dword [ebp - 8], esi
add eax, ecx
mov esi, ebx
mov dword [ebp - 0x10], eax
sub esi, edi
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], esi
add eax, ecx
mov edi, dword [ebp - 0x14]
mov esi, edx
sub esi, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x10]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + edx]
lea esi, [esi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esi - 0x60], xmm1
movups xmm1, xmmword [eax + ebx - 0x40]
mov ebx, dword [ebp - 0x18]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edi - 0x40], xmm1
movups xmm1, xmmword [ebx + esi - 0x40]
mov ebx, dword [ebp - 8]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [ecx + edx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp ecx, dword [ebp - 4]
jb 0x413c15
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp ecx, esi
jae 0x413c98
sub edx, edi
lea eax, [ecx + edi]
sub ebx, edi
sub esi, ecx
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [ebx + eax - 1], cl
sub esi, 1
jne 0x413c86
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
xorps xmm0, xmm0
movq qword [eax], xmm0
push eax
mov dword [eax + 8], 0
lea eax, [ebp - 0xc]
push eax
call fcn.00415900
add esp, 8
test eax, eax
je 0x414441
add eax, 0xffffc580
mov esp, ebp
pop ebp
ret
cmp dword [0x44a150], 0
push ebx
mov ebx, dword [ebp - 8]
push esi
push edi
mov edi, 0x44a150
mov ecx, edi
je 0x4144c9
cmp dword [ecx + 4], ebx
jne 0x4144bf
mov ecx, dword [ecx]
mov esi, ebx
mov edx, dword [ebp - 4]
sub esi, 4
jb 0x414479
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x414482
add ecx, 4
add edx, 4
sub esi, 4
jae 0x414468
cmp esi, 0xfffffffc
je 0x41454a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4144bf
cmp esi, 0xfffffffd
je 0x41454a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4144bf
cmp esi, 0xfffffffe
je 0x41454a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4144bf
cmp esi, 0xffffffff
je 0x41454a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41454a
add edi, 0x14
mov ecx, edi
cmp dword [edi], 0
jne 0x414457
cmp dword [0x44a1e0], 0
mov edi, 0x44a1e0
mov edx, edi
je 0x41453e
nop dword [eax]
cmp dword [edx + 4], ebx
jne 0x414534
mov edx, dword [edx]
mov esi, ebx
mov eax, dword [ebp - 4]
sub esi, 4
jb 0x414502
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x414507
add edx, 4
add eax, 4
sub esi, 4
jae 0x4144f1
cmp esi, 0xfffffffc
je 0x41457f
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x414534
cmp esi, 0xfffffffd
je 0x41457f
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x414534
cmp esi, 0xfffffffe
je 0x41457f
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x414534
cmp esi, 0xffffffff
je 0x41457f
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x41457f
add edi, 0x14
mov edx, edi
cmp dword [edi], 0
jne 0x4144e0
pop edi
pop esi
mov eax, 0xffffc380
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4144c9
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov dword [eax], ecx
cmp ecx, 1
jne 0x414594
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 5
je 0x41456d
test eax, eax
jne 0x414573
cmp dword [ecx + 4], 0
je 0x414594
pop edi
pop esi
mov eax, 0xffffc580
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41453e
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414a00
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x44e004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, edx
push esi
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x414a40
mov eax, 0xffffaf00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00429577
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
sub eax, 9
je 0x414ac2
sub eax, 1
jne 0x414a26
push 0xd8
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0042a720
add esp, 0xc
lea ecx, [esp + 0x78]
call fcn.0041b020
mov esi, eax
test esi, esi
jne 0x414a91
push dword [ebp + 8]
mov edx, ebx
call fcn.0041c3b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x414a91
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.0041c4a0
mov esi, eax
mov ecx, 0xd8
lea eax, [esp + 0x78]
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x414aa0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00429577
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042a720
add esp, 0xc
mov dword [esp + 0x50], 0
mov edx, ebx
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0x6a09e667
mov dword [esp + 0x5c], 0xbb67ae85
push dword [ebp + 8]
mov dword [esp + 0x64], 0x3c6ef372
mov dword [esp + 0x68], 0xa54ff53a
mov dword [esp + 0x6c], 0x510e527f
mov dword [esp + 0x70], 0x9b05688c
mov dword [esp + 0x74], 0x1f83d9ab
mov dword [esp + 0x78], 0x5be0cd19
call fcn.0041ae60
mov edx, eax
add esp, 4
test edx, edx
jne 0x414b47
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.0041af30
mov edx, eax
mov ecx, 0x68
lea eax, [esp + 0x10]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x414b50
mov ecx, dword [esp + 0x154]
mov eax, edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429577
mov esp, ebp
pop ebp
ret

Function at 0x414ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor edi, edi
mov esi, edx
test ebx, ebx
je 0x414f2b
sub eax, esi
mov dword [ebp + 8], eax
nop dword [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 0x414f10
mov eax, edi
movzx ecx, di
pop edi
shr eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ebp
ret
Function at 0x4155b0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
mov dword [ebp - 4], eax
push edi
mov edi, 0x44a0c0
mov edx, edi
test eax, eax
je 0x415634
cmp dword [0x44a0c0], 0
je 0x415634
mov ebx, dword [eax + 4]
cmp dword [edx + 4], ebx
jne 0x41562a
mov edx, dword [edx]
mov esi, ebx
mov eax, dword [eax + 8]
sub esi, 4
jb 0x4155f5
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4155fa
add edx, 4
add eax, 4
sub esi, 4
jae 0x4155e4
cmp esi, 0xfffffffc
je 0x41563d
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x415627
cmp esi, 0xfffffffd
je 0x41563d
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x415627
cmp esi, 0xfffffffe
je 0x41563d
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x415627
cmp esi, 0xffffffff
je 0x41563d
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x41563d
mov eax, dword [ebp - 4]
add edi, 0x18
mov edx, edi
cmp dword [edi], 0
jne 0x4155d3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415bb0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
nop word [eax + eax]
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x204], dl
mov byte [ebp + eax - 0x104], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x415bd0
mov cl, 1
mov edx, 0x44fbd0
movzx eax, cl
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x44fbf8
jl 0x415c01
mov byte [0x44fc00], 0x63
xor ebx, ebx
mov byte [0x450163], 0
nop dword [eax]
movzx eax, byte [ebp + ebx - 0x103]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x44fc01], al
inc ebx
movzx eax, al
mov byte [eax + 0x450100], bl
lea eax, [ebx + 1]
cmp eax, 0x100
jl 0x415c30
xor edi, edi
mov dword [ebp - 0x20c], 0xff
nop
mov dl, byte [edi + 0x44fc00]
mov bl, dl
movzx ecx, dl
sar bl, 7
mov al, dl
add al, al
and bl, 0x1b
xor bl, al
movzx eax, dl
movzx esi, bl
xor esi, eax
movzx eax, bl
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, eax
mov al, byte [edi + 0x450100]
mov dword [edi*4 + 0x451600], esi
rol esi, 8
mov dword [edi*4 + 0x451200], esi
rol esi, 8
mov dword [edi*4 + 0x450600], esi
rol esi, 8
mov dword [edi*4 + 0x450200], esi
test al, al
je 0x415d5d
movzx eax, al
xor edx, edx
mov ebx, 0xff
movzx ecx, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0xf6]
movzx eax, al
add eax, ecx
div ebx
mov eax, dword [ebp - 0xfb]
movzx eax, al
add eax, ecx
movzx esi, byte [ebp + edx - 0x204]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xf7]
movzx eax, al
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
xor edx, edx
div dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
xor edx, edx
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0xf9]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x415d69
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, esi
mov dword [edi*4 + 0x450e00], eax
rol eax, 8
mov dword [edi*4 + 0x450a00], eax
rol eax, 8
mov dword [edi*4 + 0x451a00], eax
rol eax, 8
mov dword [edi*4 + 0x44fd00], eax
inc edi
cmp edi, 0x100
jl 0x415c80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429577
mov esp, ebp
pop ebp
ret