joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7dac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c7e08
mov dword [0x6f70a8], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4c7b18
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [0x6f7094], eax
test eax, eax
je 0x4c7e14
xor ebx, ebx
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, 0xffffffea
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
test eax, eax
je 0x4c7e00
mov ecx, dword [0x6f7098]
test ecx, ecx
jle 0x4c7e00
mov dword [esp + 8], str.usbmuxd_subscribe
mov dword [esp + 4], str._s:_ERROR:_Could_not_start_device_watcher_thread__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test eax, eax
js 0x4c8798
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, eax
test eax, eax
js 0x4c87a8
cmp esi, eax
jbe 0x4c8787
mov eax, dword [0x6f7098]
test eax, eax
jle 0x4c8787
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.usbmuxd_send
mov dword [esp + 4], str._s:_Warning:_Did_not_send_enough__only__d_of__d__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [edi], ebx
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov ebx, 0xffffffea
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [edi], 0
mov edx, dword [0x6f7098]
test edx, edx
jle 0x4c878b
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.usbmuxd_send
mov dword [esp + 4], str._s:_Error__d_when_sending:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c878b
Function at 0x4c88ac
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
test eax, eax
jle 0x4c8934
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], 0
inc eax
mov dword [ebp - 0x12c], eax
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x124]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x130], eax
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 0x4c8950
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp dword [0x6f70b4], 1
jg 0x4c8a06
mov ebx, 0xffffffff
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
cmp eax, 4
je 0x4c89a4
cmp eax, 0xb
je 0x4c89d4
cmp dword [0x6f70b4], 1
jle 0x4c8941
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 0x4c8927
cmp dword [0x6f70b4], 1
jle 0x4c88f8
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 0x4c88f8
cmp dword [0x6f70b4], 1
jle 0x4c8927
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 0x4c8927
mov dword [esp + 8], eax
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 0x4c8927
Function at 0x4c8bd8
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 [0x6f70b8]
test ebx, ebx
je 0x4c8cf0
test esi, esi
je 0x4c8d63
mov dword [esp], esi
call sub.WS2_32.dll_gethostbyname
push ecx
mov ebx, eax
test eax, eax
je 0x4c8d78
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x4c8d20
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 0x4c8d50
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 0x4c8d34
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 0x4c8db0
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 0x4c8df7
mov dword [0x6f70b8], 1
jmp 0x4c8c06
cmp dword [0x6f70b4], 1
jg 0x4c8dcf
mov esi, 0xffffffff
jmp 0x4c8ce5
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 0x4c8ce5
mov dword [esp], str.socket__
call sub.msvcrt.dll_perror
mov esi, 0xffffffff
jmp 0x4c8ce5
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov esi, 0xffffffff
jmp 0x4c8ce5
cmp dword [0x6f70b4], 1
jle 0x4c8d2d
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 0x4c8ce5
mov dword [esp], 0x69c272
call sub.msvcrt.dll_perror
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
push esi
mov esi, 0xfffffffe
jmp 0x4c8ce5
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 0x4c8ce5
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 0x4c8e2c
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 0x4c8f4c
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 1
test ebx, ebx
jne 0x4c8ec0
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 0x4c8f0c
jae 0x4c8ef4
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 0x4c8f7c
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 0x4c8e5c
cmp dword [ebp + 0xc], 2
je 0x4c8f2c
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 0x4c8e9b
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x4c8e9b
cmp dword [0x6f70b4], 1
jle 0x4c8efa
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 0x4c8eb6
call sub.msvcrt.dll__errno
mov eax, dword [eax]
cmp eax, 4
je 0x4c8fd8
cmp eax, 0xb
je 0x4c9008
cmp dword [0x6f70b4], 1
jle 0x4c8efa
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 0x4c8eb6
cmp dword [0x6f70b4], 1
jle 0x4c8e77
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 0x4c8e77
cmp dword [0x6f70b4], 1
jle 0x4c8eb6
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 0x4c8eb6
Function at 0x4c9190
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.004c8e2c
test eax, eax
jle 0x4c91dc
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 0x4c91f4
jl 0x4c91e4
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 [0x6f70b4], 2
jg 0x4c9204
mov eax, 0xfffffff5
jmp 0x4c91dc
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 0x4c91dc

Function at 0x4c9230
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 0x4e76b4
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 0x4e76e8
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.004cfac8
test eax, eax
jne 0x4e76d8
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.004cfac8
test eax, eax
je 0x4e77d3
mov eax, dword [ebp - 0x1c]
shl eax, 8
test dword [ebp - 0x30], eax
je 0x4e77cb
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e77dd
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.004e731c
test eax, eax
je 0x4e7813
mov eax, dword [ebp - 0x34]
add dword [ebp + 0x20], eax
test edi, edi
jle 0x4e77cb
xor eax, eax
lea esi, [esi]
mov dl, byte [ebx + eax]
xor byte [esi + eax], dl
inc eax
cmp eax, edi
jne 0x4e77c0
inc dword [ebp - 0x2c]
jmp 0x4e7730
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.004f33a4
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 0x4e9ff4
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 0x4ea27c
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.004ea56c
test ebx, ebx
jle 0x4ea2d8
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov dword [esp], ebx
call fcn.004ea1bc
test eax, eax
je 0x4ea2ce
mov dword [esp + 4], 0xa
mov dword [esp], esi
call fcn.004ea58c
jmp 0x4ea2ce

Function at 0x4f47f4
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 0x4f4824
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileType
push esi
test eax, eax
jne 0x4f4900
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 0x4f485b
call fcn.004f46b4
test eax, eax
jg 0x4f4888
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 0x4f4f6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4f4fbc
mov al, byte [ebx]
test al, al
je 0x4f4fbc
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 0x4f4f88
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 0x501bcc
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 0x501c10
test edx, edx
je 0x501c10
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 0x501c10
mov eax, ebx
add esp, 0x14
pop ebx
leave
ret
xor eax, eax
add esp, 0x14
pop ebx
leave
ret
Function at 0x50b35c
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 0x50b440
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50b440
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x50b408
mov dword [esp], 0x244
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [ebx], eax
test eax, eax
je 0x50b450
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 0x50b432
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 0x50b428
mov eax, dword [ebx]
jmp 0x50b3d2
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], eax
call fcn.005a0e48
mov dword [ebx], 0
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x50b3fe
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x50b3fe
Function at 0x529dc8
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 0x529e20
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 0x536710
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 0x536875
xor eax, eax
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov esi, eax
jmp 0x5367d0
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 0x536834
test ebx, ebx
jne 0x5367bc
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.00536a50
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 0x5367bc
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x536875
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