joyce8/EMBER2024-capa huggingface dataset:
Function at 0x656150
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x6ddfa0]
xor eax, dword [ebp + 4]
push edi
mov dword [esp + 0x19c], eax
call fcn.0065c4d0
push 0x70effc
push 0x6560b0
call fcn.0065c3b0
xor eax, eax
mov ecx, 0x64
lea edi, [esp + 0x10]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
mov ax, word [esp + 8]
movzx ecx, ah
mov ch, al
mov dword [0x70eff8], ecx
mov ecx, dword [esp + 0x19c]
xor ecx, dword [ebp + 4]
call fcn.006684c2
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x6561c0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push eax
push ebp
push ecx
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6561ec
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
push edi
push 0x50
call fcn.00597fb0
add esp, 4
mov esi, eax
lea edx, [esp + 0x10]
push edx
xor eax, eax
push 0x8004667e
mov ecx, 0x14
mov edi, esi
rep stosd dword es:[edi], eax
push ebx
mov dword [esi + 0x18], ebx
call sub.WS2_32.dll_ioctlsocket
cmp ebp, 2
jne 0x656231
push 4
lea eax, [esp + 0x14]
push eax
push 0x20
push 0xffff
push ebx
call sub.WS2_32.dll_setsockopt
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
call fcn.0065c2f0
mov eax, dword [0x70effc]
mov dword [esi], eax
push 0
mov dword [0x70effc], esi
call fcn.0065c380
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x656320
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [edx + 0x18]
push ecx
push eax
call sub.WS2_32.dll_connect
jmp fcn.00656060

Function at 0x656360
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
cmp eax, 0xffffffff
mov dword [esp + 8], 1
jne 0x65637f
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov edx, dword [esp + 0x18]
push edi
je 0x656398
cmp dword [edx], 0x10
jae 0x656398
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [ebp + 8], 2
jne 0x656407
push ebx
push edx
push ecx
push eax
call sub.WS2_32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
je 0x656406
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
push 0x50
call fcn.00597fb0
mov esi, eax
xor eax, eax
mov ecx, 0x14
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x10], eax
call fcn.0065c2f0
mov ecx, dword [0x70effc]
mov dword [esi], ecx
push 0
mov dword [0x70effc], esi
call fcn.0065c380
add esp, 0xc
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x656410
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0xc], 3
jne 0x656456
movzx eax, byte [esi + 8]
mov edx, dword [edi + 0x18]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push edx
mov dword [esp + 0x20], eax
call sub.WS2_32.dll_setsockopt
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [esi]
and ecx, 0xf
shl ecx, 2
sub eax, ecx
add esi, ecx
test eax, eax
jge 0x65645a
xor eax, eax
jmp 0x65645a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x656475
push ecx
push eax
mov eax, dword [edi + 0x18]
push esi
push eax
call sub.WS2_32.dll_send
pop edi
pop esi
jmp fcn.00656060
mov edx, dword [esp + 0x20]
push edx
push ecx
push 0
push eax
mov eax, dword [edi + 0x18]
push esi
push eax
call sub.WS2_32.dll_sendto
pop edi
pop esi
jmp fcn.00656060

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

Disassembly:
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jne 0x6564b6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [edx + 0x18]
push ecx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
jmp 0x6564f5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push esi
push 0
push edx
mov edx, dword [ecx + 0x18]
push eax
push edx
call sub.WS2_32.dll_recvfrom
mov edi, eax
test edi, edi
jle 0x6564f7
call sub.KERNEL32.dll_GetTickCount
mov byte [esi + 0xb], al
shr eax, 8
mov byte [esi + 0xa], al
shr eax, 8
mov byte [esi + 9], al
shr eax, 8
mov byte [esi + 8], al
test edi, edi
jne 0x6564fe
or eax, 0xffffffff
jmp 0x656505
mov eax, edi
call fcn.00656060
test byte [esp + 0x18], 0x20
pop edi
pop esi
je 0x65651d
cmp eax, 0xffffffff
jne 0x656516
xor eax, eax
ret
test eax, eax
jne 0x65651d
or eax, 0xffffffff
ret
Function at 0x656520
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status

Disassembly:
sub esp, 0x128
mov eax, dword [0x6ddfa0]
xor eax, dword [esp + 0x128]
mov edx, dword [esp + 0x134]
test edx, edx
mov dword [esp + 0x124], eax
push esi
je 0x656560
mov ecx, dword [esp + 0x13c]
mov esi, ecx
push edi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov esi, dword [esp + 0x130]
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
jne 0x65658e
mov eax, 0xfffffff9
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, dword [esp + 0x128]
add esp, 0x128
jmp fcn.006684c2
mov ecx, dword [esp + 0x134]
cmp ecx, 0x636f6e6e
je 0x6565d8
cmp ecx, 0x62696e64
jne 0x6565d0
lea ecx, [esp + 0x13c]
push ecx
push edx
push eax
call sub.WS2_32.dll_getsockname
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, dword [esp + 0x128]
add esp, 0x128
jmp fcn.006684c2
cmp ecx, 0x70656572
jne 0x656603
lea ecx, [esp + 0x13c]
push ecx
push edx
push eax
call sub.WS2_32.dll_getpeername
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, dword [esp + 0x128]
add esp, 0x128
jmp fcn.006684c2
cmp ecx, 0x73746174
jne 0x6566cc
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x10], 0x10
call sub.WS2_32.dll_getpeername
call fcn.00656060
cmp eax, 0xfffffffe
mov dword [esp + 8], eax
je 0x6565e7
mov edx, dword [esi + 0x18]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x2c]
push edx
push 0
push 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 1
call sub.WS2_32.dll_select
test eax, eax
je 0x6565e7
mov edx, dword [esi + 0x18]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x1007
push 0xffff
push edx
mov dword [esp + 0x18], 4
call sub.WS2_32.dll_getsockopt
test eax, eax
jne 0x6565e7
mov eax, dword [esp + 8]
test eax, eax
jne 0x6565e7
mov eax, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, dword [esp + 0x128]
add esp, 0x128
jmp fcn.006684c2
mov ecx, dword [esp + 0x128]
or eax, 0xffffffff
xor ecx, dword [esp + 0x12c]
pop esi
add esp, 0x128
jmp fcn.006684c2
Function at 0x656720
Capabilities:
Connect socket
Connect udp socket
Create raw socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov eax, dword [0x6ddfa0]
xor eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x24]
je 0x65674d
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x14]
add esp, 0x14
jmp fcn.006684c2
push ebx
mov ebx, dword [esp + 0x24]
cmp word [ebx], 2
push edi
jne 0x656862
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov eax, ecx
shr ecx, 2
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push 2
mov byte [ebp + 7], 0
mov byte [ebp + 6], 0
mov byte [ebp + 5], 0
mov byte [ebp + 4], 0
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x65684c
cmp dword [0x70eff8], 0x200
jl 0x6567ff
mov eax, dword [esp + 0x34]
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x10
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push 0xc8000014
push esi
call sub.WS2_32.dll_WSAIoctl
test eax, eax
jge 0x6567d1
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dh, cl
mov dword [ebp + 4], ecx
movzx eax, byte [ebp + 6]
movzx ecx, byte [ebp + 7]
mov dl, byte [ebp + 5]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
cmp edx, 0x7f000001
jne 0x6567ff
mov edx, dword [ebx + 4]
mov dword [ebp + 4], edx
movzx ecx, byte [ebp + 6]
movzx edx, byte [ebp + 7]
xor eax, eax
mov ah, byte [ebp + 4]
mov al, byte [ebp + 5]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
jne 0x656846
mov eax, dword [esp + 0x34]
push eax
push ebx
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x656846
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x656846
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], eax
push esi
call sub.WS2_32.dll_closesocket
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x14]
add esp, 0x14
jmp fcn.006684c2
mov edi, dword [esp + 0x20]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
xor ecx, dword [esp + 0x1c]
pop edi
mov eax, 0xfffffffd
pop ebx
add esp, 0x14
jmp fcn.006684c2
Function at 0x656920
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jge 0x65692b
xor eax, eax
ret
push ebp
push esi
push edi
push 0x5c
call fcn.00597fb0
mov edx, dword [esp + 0x14]
mov ebp, eax
xor eax, eax
mov ecx, 0x17
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [ebp + 8], 0x656890
mov dword [ebp + 0xc], 0x6568a0
mov al, byte [edx]
add esp, 4
test al, al
mov ecx, edx
je 0x656976
nop
cmp al, 0x2e
je 0x65696c
cmp al, 0x30
jl 0x656976
cmp al, 0x39
jg 0x656976
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x656960
jmp 0x65697b
cmp byte [ecx], 0
jne 0x6569f2
xor esi, esi
lea ecx, [ecx]
xor eax, eax
mov al, byte [edx]
xor ecx, ecx
cmp al, 0x30
jl 0x6569a4
lea ebx, [ebx]
cmp al, 0x39
jg 0x6569a4
and eax, 0xf
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [eax + ecx*2]
mov al, byte [edx]
cmp al, 0x30
jge 0x656990
movsx edi, byte [edx]
xor eax, eax
cmp esi, 3
setge al
dec eax
and eax, 0x2e
cmp edi, eax
jne 0x6569de
cmp ecx, 0xff
jg 0x6569de
mov eax, dword [ebp + 4]
shl eax, 8
or eax, ecx
inc edx
inc esi
cmp esi, 4
mov dword [ebp + 4], eax
mov dword [ebp], 1
jl 0x656980
pop edi
pop esi
mov eax, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ebp], 0xfffffffe
mov dword [ebp + 4], 0
mov eax, ebp
pop ebp
ret
mov esi, edx
lea edi, [ebp + 0x10]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push ebp
push 0x6568c0
push 0
push 0
mov byte [ebp + 0x4f], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x656a24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x65c4d0
Capabilities:
Create thread

Disassembly:
push ecx
push 0
mov dword [0x70f15c], 0
mov dword [0x6dda28], 0xffffffff
call fcn.0065c250
push 0x70f138
call fcn.0065c250
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x65c490
push 0
push 0
mov dword [0x70f160], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x70f160], eax
je 0x65c53a
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x70f160]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x65d970
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x18c
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
test esi, esi
je 0x65daa8
push edi
mov ecx, 0x63
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], fcn.0065d970
mov dword [esi + 4], 0x65d4a0
mov dword [esi + 8], fcn.0065d510
mov dword [esi + 0xc], fcn.0058a1c0
mov dword [esi + 0x10], 0x65d730
mov dword [esi + 0x14], 0x65d7f0
mov dword [esi + 0x18], 0x65d800
mov dword [esi + 0x1c], 0x65d890
mov dword [esi + 0x20], fcn.0058a1c0
mov dword [esi + 0x24], 0x65d8e0
mov dword [esi + 0x28], 0x663d80
mov dword [esi + 0x2c], 0x65d940
mov dword [esi + 0x30], 0x65d950
mov dword [esi + 0x34], 0x65d960
mov ecx, dword [str.TAPI]
lea eax, [esi + 0x48]
mov dword [eax], ecx
mov dl, byte [0x69e350]
mov byte [eax + 4], dl
lea eax, [esi + 0x188]
push eax
push 0
push esi
push 0x65d3f0
push 0
push 0
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x65da5e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0
call edi
mov eax, dword [esi + 0x80]
test eax, eax
je 0x65da50
cmp dword [esi + 0x80], 1
pop edi
jne 0x65da79
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00663fa0
mov dword [esi + 0x68], eax
add esp, 0xc
or eax, 0xffffffff
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 2
mov eax, esi
pop esi
pop ebx
ret
Function at 0x65eba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push edi
mov edi, eax
cmp dword [edi + 0x80], 3
jne 0x65ebe9
mov eax, dword [edi + 0xac]
cmp dword [edi + 0xa8], eax
je 0x65ebe9
push esi
mov esi, dword [edi + 0xb0]
add esi, eax
cmp dword [esi], 0
je 0x65ebd6
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [esi]
cmp eax, 0xfa
jb 0x65ebe8
mov eax, esi
call fcn.0065e6e0
test eax, eax
jl 0x65ebe8
call sub.KERNEL32.dll_GetTickCount
mov dword [esi], eax
pop esi
pop edi
ret

Function at 0x65f7b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x22c
mov eax, dword [0x6ddfa0]
xor eax, dword [esp + 0x22c]
push edi
mov edi, ecx
mov dword [esp + 0x22c], eax
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x65f7e7
call sub.KERNEL32.dll_GetTickCount
xor eax, edi
test eax, eax
mov dword [edi + 0x84], eax
je 0x65f7d6
mov eax, dword [edi + 0x84]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
call fcn.0065f650
mov ecx, dword [esp + 0x22c]
xor ecx, dword [esp + 0x230]
pop edi
add esp, 0x22c
jmp fcn.006684c2
Function at 0x6613e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6ddfa0]
xor eax, dword [esp + 0x194]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x661424
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, dword [esp + 0x194]
add esp, 0x194
jmp fcn.006684c2
mov eax, dword [0x70f1a4]
test eax, eax
jne 0x661438
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x70f1a4], eax
push 0x4c
call fcn.0066536e
mov edx, eax
add esp, 4
test edx, edx
je 0x66145e
push edi
xor eax, eax
mov ecx, 0x13
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0xffffffff
mov dword [edx + 0x1c], eax
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, dword [esp + 0x194]
mov eax, edx
add esp, 0x194
jmp fcn.006684c2
Function at 0x661d10
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x3c]
test ecx, ecx
push edi
mov edi, dword [esp + 0x18]
je 0x661d33
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x38], eax
je 0x661d57
test edi, edi
jne 0x661d3f
test ebp, ebp
jne 0x661d3f
test ebx, ebx
je 0x661dbc
push esi
call fcn.00661610
mov ecx, dword [esi + 0x3c]
add esp, 4
test ecx, ecx
je 0x661dbc
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x38], eax
jne 0x661dbc
add eax, 0xfffffff4
cmp eax, 1
lea esi, [ecx + 0xc]
jge 0x661d69
mov esi, 0x6ab29a
jmp 0x661d6d
mov byte [esi + eax], 0
test edi, edi
je 0x661d90
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx + 3]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x20]
mov dword [edi], edx
test ebp, ebp
je 0x661db1
movzx edi, byte [ecx + 6]
xor edx, edx
mov dh, byte [ecx + 4]
mov dl, byte [ecx + 5]
movzx ecx, byte [ecx + 7]
shl edx, 8
or edx, edi
shl edx, 8
or edx, ecx
mov dword [ebp], edx
test ebx, ebx
je 0x661dbf
pop edi
mov dword [ebx], esi
pop esi
pop ebp
pop ebx
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x661e50
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
mov eax, dword [0x70f2b0]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x661e7d
push 0xa
push 0xffffffffffffffff
push 0x69e868
push 0x70f1a8
mov dword [0x70f2b0], 1
call fcn.00661e50
add esp, 0x10
mov edx, dword [esp + 0x18]
cmp edx, ebx
mov ebp, dword [esp + 0xc]
jge 0x661e8d
neg edx
jmp 0x661ea7
xor eax, eax
nop
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x661e90
mov byte [ebp + 0x100], bl
mov dword [ebp + 0x104], ebx
cmp dword [esp + 0x14], ebx
jge 0x661ecc
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp byte [ecx], bl
je 0x661f42
jmp 0x661ec0
inc eax
cmp byte [ecx + eax], bl
jne 0x661ec0
mov dword [esp + 0x14], eax
cmp eax, ebx
jle 0x661f42
push esi
shl edx, 8
mov eax, edx
push edi
xor edi, edi
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x661f40
xor ecx, ecx
Function at 0x661f50
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
push ebp
push esi
mov esi, dword [esp + 0xc]
mov al, byte [esi + 0x100]
mov ebp, dword [esi + 0x104]
jle 0x661ff4
movzx ecx, al
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea edi, [ecx + esi]
mov ecx, ebp
and ecx, 0xff
mov dword [esp + 0x1c], edx
jmp 0x661f90
mov al, byte [esp + 0x14]
lea esp, [esp]
movzx edx, byte [edi]
xor edx, ecx
mov ecx, dword [edx*4 + 0x69e468]
shr ebp, 8
xor ebp, ecx
inc al
movzx edx, al
mov byte [esp + 0x14], al
lea edi, [edx + esi]
xor eax, eax
mov al, byte [edi]
xor edx, edx
mov ecx, ebp
and ecx, 0xff
mov dl, byte [ecx + esi]
mov byte [edi], dl
mov byte [ecx + esi], al
sub eax, edx
mov dl, byte [ebx]
and eax, 0xff
mov al, byte [eax + esi]
xor dl, al
mov eax, dword [esp + 0x1c]
mov byte [ebx], dl
inc ebx
dec eax
mov dword [esp + 0x1c], eax
jne 0x661f88
mov cl, byte [esp + 0x14]
pop edi
pop ebx
mov dword [esi + 0x104], ebp
mov byte [esi + 0x100], cl
pop esi
pop ebp
ret
mov dword [esi + 0x104], ebp
mov byte [esi + 0x100], al
pop esi
pop ebp
ret
Function at 0x662dc0
Capabilities:
Write file on windows

Disassembly:
test edx, edx
push ebp
push esi
push edi
je 0x662e81
mov eax, dword [esp + 0x10]
mov ebp, dword [edx]
mov ecx, dword [eax + 0x1900]
mov esi, dword [eax + 0x18fc]
add ebp, 8
sub esi, ecx
lea edi, [ebp + 8]
cmp esi, edi
jge 0x662df0
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
mov esi, dword [eax + 0x1904]
shl esi, 0xb
add esi, ecx
push ebx
lea ebx, [esi + eax + 0x8fc]
mov byte [ebx], 0x47
mov byte [ebx + 1], 0x53
mov al, byte [edx]
mov byte [ebx + 2], al
mov cl, byte [edx]
not cl
mov byte [ebx + 3], cl
lea esi, [edx + 8]
lea eax, [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.00662b70
mov esi, dword [esp + 0x14]
mov byte [ebx + ebp + 4], al
mov byte [ebx + ebp + 5], ah
mov byte [ebx + ebp + 6], 0xd
mov byte [ebx + ebp + 7], 0xa
mov eax, dword [esi + 0x1900]
test eax, eax
pop ebx
jne 0x662e62
mov eax, dword [esi + 0x6c]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov eax, dword [esi + 0x1900]
add ebp, 8
add eax, ebp
mov dword [esi + 0x1900], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1908], eax
jmp 0x662e85
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x1900]
test eax, eax
je 0x662ee6
mov ecx, dword [esi + 0xa8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x662ee6
mov ecx, dword [esi + 0x1900]
lea edx, [esi + 0x98]
push edx
mov edx, dword [esi + 0x1904]
lea eax, [esi + 0xb4]
push eax
push ecx
mov ecx, dword [esi + 0x6c]
shl edx, 0xb
lea eax, [edx + esi + 0x8fc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor dword [esi + 0x1904], 1
mov dword [esi + 0x1900], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x662f70
Capabilities:
Write file on windows

Disassembly:
cmp dword [edx], 0
jne 0x662fc9
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc0]
jne 0x662fc9
mov eax, dword [edx + 8]
cmp eax, 1
jne 0x662f98
mov dword [edx + 8], 2
mov dword [esp + 4], ecx
jmp fcn.00662dc0
cmp eax, 2
jne 0x662fb1
cmp dword [ecx + 0xbc], 2
jne 0x662fc9
mov dword [ecx + 0xbc], 4
ret
cmp eax, 3
jne 0x662fc9
cmp dword [ecx + 0xbc], 4
jne 0x662fc9
mov dword [ecx + 0xbc], 7
ret

Function at 0x662fd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x814
mov eax, dword [0x6ddfa0]
xor eax, dword [esp + 0x814]
mov dword [esp + 0x810], eax
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x66300f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [ebx]
call edi
xor eax, esi
test eax, eax
mov dword [esi + 0xc0], eax
je 0x663000
pop edi
mov eax, dword [esi + 0xc0]
push esi
lea edx, [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
call fcn.00662dc0
mov ecx, dword [esp + 0x814]
xor ecx, dword [esp + 0x818]
add esp, 0x818
jmp fcn.006684c2
Function at 0x663fa0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
push esi
push 0x1934
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
mov esi, eax
xor eax, eax
test esi, esi
je 0x664150
push edi
mov ecx, 0x64d
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], fcn.00663fa0
mov dword [esi + 4], fcn.00663650
mov dword [esi + 8], 0x663720
mov dword [esi + 0xc], fcn.0058a1c0
mov dword [esi + 0x10], fcn.00663bf0
mov dword [esi + 0x14], 0x663c50
mov dword [esi + 0x18], fcn.00663cd0
mov dword [esi + 0x1c], fcn.00663d30
mov dword [esi + 0x20], fcn.0058a1c0
mov dword [esi + 0x24], fcn.00663d40
mov dword [esi + 0x28], 0x663d80
mov dword [esi + 0x2c], 0x663d90
mov dword [esi + 0x30], fcn.00663ed0
mov dword [esi + 0x34], 0x663f50
mov ecx, dword [str.SERIAL]
lea eax, [esi + 0x48]
mov dword [eax], ecx
mov dx, word [0x69e8d0]
mov word [eax + 4], dx
mov cl, byte [0x69e8d2]
lea edx, [esi + 0x1910]
push edx
mov byte [eax + 6], cl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [esp + 0x18]
add edi, 0x10
mov eax, edi
imul eax, dword [esp + 0x1c]
push eax
push 0
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], eax
call ebx
push eax
call ebp
mov dword [esi + 0xdc], edi
imul edi, dword [esp + 0x20]
push edi
mov dword [esi + 0xe0], edi
xor edi, edi
push edi
mov dword [esi + 0xd4], eax
call ebx
push eax
call ebp
mov dword [esi + 0xf0], eax
mov dword [esi + 0x8f8], edi
mov dword [esi + 0x1904], edi
mov dword [esi + 0x1900], edi
mov dword [esi + 0x18fc], 0x800
mov dword [esi + 0xbc], 1
mov dword [esi + 0xc0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push 1
push 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xb8], eax
mov dword [esi + 0x6c], 0xffffffff
call edi
push 0
push 1
push 1
push 0
mov dword [esi + 0x80], eax
call edi
push 0
push 1
push 1
push 0
mov dword [esi + 0x94], eax
call edi
mov dword [esi + 0xa8], eax
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x663310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x66413d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret