joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7978
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns
Set socket configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ec
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x1ca], ax
mov dword [ebp - 0x1c], 1
mov ebx, dword [0x6da088]
test ebx, ebx
je 0x4c7a90
test esi, esi
je 0x4c7b03
mov dword [esp], esi
call sub.WS2_32.dll_gethostbyname
push ecx
mov ebx, eax
test eax, eax
je 0x4c7b18
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x4c7ac0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x4c7af0
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], esi
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
inc eax
je 0x4c7ad4
lea edx, [ebp - 0x2c]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov word [ebp - 0x2c], 2
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0x1ca]
mov dword [esp], eax
mov dword [ebp - 0x1d0], edx
call sub.WS2_32.dll_htons
push edi
mov word [ebp - 0x2a], ax
mov dword [esp + 8], 0x10
mov edx, dword [ebp - 0x1d0]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
js 0x4c7b50
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea eax, [ebp - 0x1bc]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
test eax, eax
jne 0x4c7b97
mov dword [0x6da088], 1
jmp 0x4c79a6
cmp dword [0x6da084], 1
jg 0x4c7b6f
mov esi, 0xffffffff
jmp 0x4c7a85
mov dword [esp], str.setsockopt__
call sub.msvcrt.dll_perror
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
push eax
mov esi, 0xffffffff
jmp 0x4c7a85
mov dword [esp], str.socket__
call sub.msvcrt.dll_perror
mov esi, 0xffffffff
jmp 0x4c7a85
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov esi, 0xffffffff
jmp 0x4c7a85
cmp dword [0x6da084], 1
jle 0x4c7acd
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.connect_socket
mov dword [esp + 4], str._s:_unknown_host__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
or esi, 0xffffffff
jmp 0x4c7a85
mov dword [esp], 0x67f932
call sub.msvcrt.dll_perror
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
push esi
mov esi, 0xfffffffe
jmp 0x4c7a85
mov dword [esp + 8], str.connect_socket
mov dword [esp + 4], str._s:_gethostbyname_returned_NULL_address__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
or esi, 0xffffffff
jmp 0x4c7a85
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str.WSAStartup_failed__n
call sub.msvcrt.dll_fwrite
mov dword [esp], 0xffffffff
call sub.KERNEL32.dll_ExitProcess
Function at 0x4c7bcc
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test ecx, ecx
jle 0x4c7cec
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 1
test ebx, ebx
jne 0x4c7c60
xor edi, edi
lea esi, [ebp - 0x124]
inc ecx
mov dword [ebp - 0x12c], ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0xc], 1
je 0x4c7cac
jae 0x4c7c94
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
mov ebx, eax
test eax, eax
js 0x4c7d1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, 0x10624dd3
mov eax, ebx
mul edx
shr edx, 6
mov dword [ebp - 0x20], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub ebx, eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x20]
jmp 0x4c7bfc
cmp dword [ebp + 0xc], 2
je 0x4c7ccc
mov ebx, 0xffffffff
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
jmp 0x4c7c3b
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x4c7c3b
cmp dword [0x6da084], 1
jle 0x4c7c9a
mov dword [esp + 8], ecx
mov dword [esp + 4], str.ERROR:_invalid_fd_in_check_fd__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, 0xffffffff
jmp 0x4c7c56
call sub.msvcrt.dll__errno
mov eax, dword [eax]
cmp eax, 4
je 0x4c7d78
cmp eax, 0xb
je 0x4c7da8
cmp dword [0x6da084], 1
jle 0x4c7c9a
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_select_failed:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
or ebx, 0xffffffff
jmp 0x4c7c56
cmp dword [0x6da084], 1
jle 0x4c7c17
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_EINTR_n
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c7c17
cmp dword [0x6da084], 1
jle 0x4c7c56
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_EAGAIN_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c7c56
Function at 0x4c7f30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004c7bcc
test eax, eax
jle 0x4c7f7c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.dll_recv
sub esp, 0x10
cmp eax, 0
je 0x4c7f94
jl 0x4c7f84
mov ebx, dword [ebp - 4]
leave
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
neg eax
mov ebx, dword [ebp - 4]
leave
ret
cmp dword [0x6da084], 2
jg 0x4c7fa4
mov eax, 0xfffffff5
jmp 0x4c7f7c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.recv_buf_timeout
mov dword [esp + 4], str._s:_fd_d_recv_returned_0_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xfffffff5
jmp 0x4c7f7c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
leave
ret
Function at 0x4e6454
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x2c]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x34], ebx
mov ebx, ecx
jmp 0x4e6488
mov eax, dword [ebp - 0x1c]
shl eax, 8
and eax, dword [ebp - 0x30]
cmp eax, 1
sbb ebx, 0xffffffff
inc edi
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.004ce868
test eax, eax
jne 0x4e6478
mov ecx, ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x24]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
xor eax, eax
mov edi, esi
mov ecx, dword [ebp + 0x30]
rep stosb byte es:[edi], al
xor edi, edi
mov eax, dword [ebp + 0x24]
and eax, 1
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp + 0x30]
lea esi, [esi]
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
call fcn.004ce868
test eax, eax
je 0x4e6573
mov eax, dword [ebp - 0x1c]
shl eax, 8
test dword [ebp - 0x30], eax
je 0x4e656b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e657d
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x38]
mov dword [esp], edx
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x20]
call fcn.004e60bc
test eax, eax
je 0x4e65b3
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x20], eax
test edi, edi
jle 0x4e656b
xor eax, eax
lea esi, [esi]
mov dl, byte [ebx + eax]
xor byte [esi + eax], dl
inc eax
cmp eax, edi
jne 0x4e6560
inc dword [ebp - 0x2c]
jmp 0x4e64d0
mov al, 1
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0x10], 0x109
mov dword [esp + 0xc], str.ssl_t1_enc.c
mov dword [esp + 8], 0x146
mov dword [esp + 4], 0x11c
mov dword [esp], 0x14
call fcn.004f2144
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4e8d94
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
mov edx, dword [ebp + 8]
mov ecx, 0x60
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
mov eax, 1
pop edi
leave
ret
Function at 0x4e901c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], 0
call sub.WS2_32.dll_WSASetLastError
push edx
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0xf
mov dword [esp], esi
call fcn.004e930c
test ebx, ebx
jle 0x4e9078
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov dword [esp], ebx
call fcn.004e8f5c
test eax, eax
je 0x4e906e
mov dword [esp + 4], 0xa
mov dword [esp], esi
call fcn.004e932c
jmp 0x4e906e

Function at 0x4f3594
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x140
mov ebx, dword [ebp + 8]
mov dword [esp], 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
push edx
test eax, eax
je 0x4f35c4
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileType
push esi
test eax, eax
jne 0x4f36a0
lea eax, [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xff
lea ebx, [ebp - 0x10c]
mov dword [esp], ebx
call sub.msvcrt.dll__vsnprintf
mov byte [ebp - 0xd], 0
call sub.KERNEL32.dll_GetVersion
test eax, eax
js 0x4f35fb
call fcn.004f3454
test eax, eax
jg 0x4f3628
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.OpenSSL:_FATAL
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov dword [esp + 4], str.OPENSSL
mov dword [esp], 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
sub esp, 8
mov esi, eax
mov dword [ebp - 0xc], ebx
mov dword [esp + 0x20], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.ADVAPI32.DLL_ReportEventA
sub esp, 0x24
mov dword [esp], esi
call sub.ADVAPI32.DLL_DeregisterEventSource
push ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret

Function at 0x4f3d0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4f3d5c
mov al, byte [ebx]
test al, al
je 0x4f3d5c
mov esi, 0x100
xor edx, edx
lea esi, [esi]
movsx eax, al
or eax, esi
add esi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
rol edx, cl
mov ecx, edx
mov edx, eax
imul edx, eax
xor edx, ecx
inc ebx
mov al, byte [ebx]
test al, al
jne 0x4f3d28
mov eax, edx
shr eax, 0x10
xor eax, edx
pop ebx
pop esi
leave
ret
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x50096c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5009b0
test edx, edx
je 0x5009b0
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x5009b0
mov eax, ebx
add esp, 0x14
pop ebx
leave
ret
xor eax, eax
add esp, 0x14
pop ebx
leave
ret
Function at 0x50a0fc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x50a1e0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50a1e0
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x50a1a8
mov dword [esp], 0x244
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [ebx], eax
test eax, eax
je 0x50a1f0
mov ecx, 0x244
xor eax, eax
mov edi, esi
rep stosb byte es:[edi], al
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [esi + 0x140], eax
mov eax, dword [ebx]
cmp dword [eax + 0x140], 0xffffffff
je 0x50a1d2
mov dword [esp + 8], 0xff
lea edx, [eax + 0x2c]
mov dword [esp + 4], edx
add eax, 0x144
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
mov eax, dword [ebx]
mov byte [eax + 0x243], 0
mov eax, dword [ebx]
add eax, 0x144
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], eax
mov eax, dword [eax + 0x140]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
je 0x50a1c8
mov eax, dword [ebx]
jmp 0x50a172
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], eax
call fcn.0059fbf8
mov dword [ebx], 0
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x50a19e
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x50a19e
Function at 0x528b68
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push edi
mov edx, dword [ebp + 8]
mov ecx, 0x70
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [edx], 0xc1059ed8
mov dword [edx + 4], 0x367cd507
mov dword [edx + 8], 0x3070dd17
mov dword [edx + 0xc], 0xf70e5939
mov dword [edx + 0x10], 0xffc00b31
mov dword [edx + 0x14], 0x68581511
mov dword [edx + 0x18], 0x64f98fa7
mov dword [edx + 0x1c], 0xbefa4fa4
mov dword [edx + 0x6c], 0x1c
mov eax, 1
pop edi
leave
ret

Function at 0x528bc0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
mov edx, dword [ebp + 8]
mov ecx, 0x70
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [edx], 0x6a09e667
mov dword [edx + 4], 0xbb67ae85
mov dword [edx + 8], 0x3c6ef372
mov dword [edx + 0xc], 0xa54ff53a
mov dword [edx + 0x10], 0x510e527f
mov dword [edx + 0x14], 0x9b05688c
mov dword [edx + 0x18], 0x1f83d9ab
mov dword [edx + 0x1c], 0x5be0cd19
mov dword [edx + 0x6c], 0x20
mov eax, 1
pop edi
leave
ret
Function at 0x5354b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 4]
movzx edx, byte [esi + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 6]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esi + 7]
shl ecx, 0x18
or edx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x20], al
mov ecx, eax
shr ecx, 8
mov byte [ebp - 0x1f], cl
mov ecx, eax
shr ecx, 0x10
mov byte [ebp - 0x1e], cl
shr eax, 0x18
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], dl
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x19], al
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x535615
xor eax, eax
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov esi, eax
jmp 0x535570
mov al, byte [ebp + ebx - 0x20]
xor al, byte [edi + esi]
mov byte [edx + esi], al
inc ebx
and ebx, 7
inc esi
cmp esi, dword [ebp + 0x10]
je 0x5355d4
test ebx, ebx
jne 0x53555c
mov dword [esp + 8], 1
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [ebp - 0x34], edx
call fcn.005357f0
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x20], al
mov ecx, eax
shr ecx, 8
mov byte [ebp - 0x1f], cl
mov ecx, eax
shr ecx, 0x10
mov byte [ebp - 0x1e], cl
shr eax, 0x18
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x24]
mov byte [ebp - 0x1c], al
mov ecx, eax
shr ecx, 8
mov byte [ebp - 0x1b], cl
mov ecx, eax
shr ecx, 0x10
mov byte [ebp - 0x1a], cl
shr eax, 0x18
mov byte [ebp - 0x19], al
inc dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
jmp 0x53555c
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x535615
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov byte [esi], dl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 2], cl
shr edx, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], al
mov edx, eax
shr edx, 8
mov byte [esi + 5], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 6], dl
shr eax, 0x18
mov byte [esi + 7], al
mov edx, dword [ebp + 0x1c]
mov dword [edx], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x539cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov ebx, dword [eax]
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi + 4]
movzx edx, byte [edi + 5]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x20], cl
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1e], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], dl
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x19], al
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x539e17
xor esi, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edi
jmp 0x539d76
mov al, byte [ebp + ebx - 0x20]
mov edi, dword [ebp + 8]
xor al, byte [edi + esi]
mov edi, dword [ebp - 0x3c]
mov byte [edi + esi], al
inc ebx
and ebx, 7
inc esi
cmp dword [ebp + 0x10], esi
je 0x539ddc
test ebx, ebx
jne 0x539d5c
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0x18]
mov dword [esp + 8], edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea edi, [ebp - 0x28]
mov dword [esp], edi
call fcn.005385c8
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov byte [ebp - 0x20], cl
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1e], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], dl
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x19], al
inc dword [ebp - 0x2c]
jmp 0x539d5c
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x539e17
mov byte [edi], cl
mov eax, ecx
shr eax, 8
mov byte [edi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
shr ecx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 4], dl
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
shr edx, 0x18
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x539ed4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [edx]
shl ecx, 8
mov dword [eax], ecx
movzx ebx, byte [edx + 1]
or ebx, ecx
mov dword [eax], ebx
movzx ecx, byte [edx + 2]
shl ecx, 8
mov dword [eax + 4], ecx
movzx ebx, byte [edx + 3]
or ebx, ecx
mov dword [eax + 4], ebx
movzx ecx, byte [edx + 4]
shl ecx, 8
mov dword [eax + 8], ecx
movzx ebx, byte [edx + 5]
or ebx, ecx
mov dword [eax + 8], ebx
movzx ecx, byte [edx + 6]
shl ecx, 8
mov dword [eax + 0xc], ecx
movzx ebx, byte [edx + 7]
or ebx, ecx
mov dword [eax + 0xc], ebx
movzx ecx, byte [edx + 8]
shl ecx, 8
mov dword [eax + 0x10], ecx
movzx ebx, byte [edx + 9]
or ebx, ecx
mov dword [eax + 0x10], ebx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
mov dword [eax + 0x14], ecx
movzx ebx, byte [edx + 0xb]
or ebx, ecx
mov dword [eax + 0x14], ebx
movzx ecx, byte [edx + 0xc]
shl ecx, 8
mov dword [eax + 0x18], ecx
movzx ebx, byte [edx + 0xd]
or ebx, ecx
mov dword [eax + 0x18], ebx
movzx ecx, byte [edx + 0xe]
shl ecx, 8
mov dword [eax + 0x1c], ecx
movzx edx, byte [edx + 0xf]
or edx, ecx
mov dword [eax + 0x1c], edx
lea ebx, [eax + 0xa0]
jmp 0x539fa7
mov ecx, edx
shr ecx, 7
shl edi, 9
or ecx, edi
and ecx, 0xffff
mov dword [eax + 0x38], ecx
shr esi, 7
shl edx, 9
or esi, edx
and esi, 0xffff
mov dword [eax + 0x3c], esi
add eax, 0x20
mov esi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, ecx
shr edx, 7
mov edi, esi
shl edi, 9
or edx, edi
and edx, 0xffff
mov dword [eax + 0x20], edx
mov edi, dword [eax + 0xc]
mov edx, edi
shr edx, 7
shl ecx, 9
or edx, ecx
and edx, 0xffff
mov dword [eax + 0x24], edx
mov ecx, dword [eax + 0x10]
mov edx, ecx
shr edx, 7
shl edi, 9
or edx, edi
and edx, 0xffff
mov dword [eax + 0x28], edx
mov edi, dword [eax + 0x14]
mov edx, edi
shr edx, 7
shl ecx, 9
or edx, ecx
and edx, 0xffff
mov dword [eax + 0x2c], edx
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 7
shl edi, 9
or edx, edi
and edx, 0xffff
mov dword [eax + 0x30], edx
mov edi, dword [eax + 0x1c]
mov edx, edi
shr edx, 7
shl ecx, 9
or edx, ecx
and edx, 0xffff
mov dword [eax + 0x34], edx
mov edx, dword [eax]
cmp eax, ebx
jne 0x539f80
pop ebx
pop esi
pop edi
leave
ret