joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d0a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [0x1003d718]
movzx eax, word [esi + 0x10]
xor ebx, ebx
cmp ax, bx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x1000d0f0
mov eax, dword [esi + 0xc]
imul eax, eax, 0x20080825
push 0xdff6dffa
push 0xe689e67e
mov edi, 0xa20191cb
sub edi, eax
push ebx
push edi
mov dword [esi + 0xc], edi
call fcn.1002ab60
and edi, 7
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ebx, edi
movzx eax, word [esi + 0x10]
lea ecx, [eax + ebx + 4]
shr ecx, 4
lea edi, [esi + 0x1010]
mov byte [edi], cl
mov cl, byte [esi + 0x10]
add cl, bl
add cl, 4
and cl, 0xf
mov byte [esi + 0x1011], cl
mov cx, word [esi + 0x12]
xor cx, word [edi]
xor edx, edx
xor cx, 0x4000
test ax, ax
mov word [esi + 0x1012], cx
jbe 0x1000d14b
movzx eax, dx
lea ecx, [eax + esi]
and eax, 3
mov al, byte [eax + esi + 0xc]
xor al, byte [ecx + 0x14]
inc edx
mov byte [ecx + 0x1014], al
cmp dx, word [esi + 0x10]
jb 0x1000d12e
push ebx
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x10]
lea eax, [eax + esi + 0x1014]
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, word [esi + 0x10]
push edi
push dword [ebp + 8]
lea eax, [eax + ebx + 4]
call fcn.10017067
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016feb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 8]
call fcn.10003551
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10017061
xor eax, eax
mov cl, byte [eax + 0x100340d8]
xor cl, 0x80
mov byte [ebp + eax - 0x14], cl
inc eax
cmp eax, 0x14
jl 0x10017003
mov eax, dword [0x100340ec]
push edi
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx + 4]
add eax, 0x14
push dword [ebx]
call fcn.100033d0
add esp, 0xc
test eax, eax
je 0x1001704c
mov edi, dword [0x100340ec]
push esi
mov esi, dword [0x1003e9e8]
add eax, 0x14
push eax
call fcn.1000388d
pop ecx
pop esi
push 0x14
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10017052
mov edi, ebx
call fcn.1000359f
pop edi
xor eax, eax
inc eax
pop ebx
leave
ret

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
jmp 0x10017099
cmp edi, 0x1000
mov eax, 0x1000
jg 0x1001707e
mov eax, edi
push 0
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call sub.WS2_32.dll_send
test eax, eax
jle 0x100170a3
sub edi, eax
add esi, eax
test edi, edi
jne 0x1001706f
xor eax, eax
inc eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x100170a0

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
jmp 0x100170d9
cmp edi, 0x1000
mov eax, 0x1000
jg 0x100170be
mov eax, edi
push 0
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
push dword [esp + 0x18]
call sub.WS2_32.dll_recv
test eax, eax
jle 0x100170e3
sub edi, eax
add esi, eax
test edi, edi
jne 0x100170af
xor eax, eax
inc eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x100170e0
Function at 0x10017155
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x402c
call fcn.1002aba0
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x4004667f
push edi
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x100171f8
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x100171ff
push ebx
push 0x4000
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, ebx
jle 0x100171f8
mov eax, dword [ebp + 0x10]
mov ax, word [eax + 8]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x14], si
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 0xc]
mov eax, esi
call fcn.10017067
test eax, eax
pop ecx
pop ecx
je 0x100171f8
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x1001717d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp + 0x14]
push eax
mov esi, 0x8004667e
push esi
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp + 0x14], edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x100171f8
push 2
push edi
lea eax, [ebp - 0x4028]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017242
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x10017242
xor edi, edi
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp + 0x14], ebx
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x100171f8
cmp edi, ebx
setne al
jmp 0x100171fa
Function at 0x10017ec5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, edi
call fcn.10017e5f
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x18]
push 4
pop eax
call fcn.100170a7
test eax, eax
pop ecx
pop ecx
je 0x10017f48
cmp dword [edi + 0x1c], 1
jne 0x10017f0c
movzx ecx, byte [ebp - 0x23]
movzx eax, byte [edi + 0xd]
movzx edx, byte [ebp - 0x24]
xor eax, ecx
movzx ecx, byte [edi + 0xc]
shl eax, 8
xor ecx, edx
lea ebx, [eax + ecx - 4]
jmp 0x10017f40
movzx ebx, byte [ebp - 0x23]
mov al, bl
and al, 0x30
cmp al, 0x10
je 0x10017f28
movzx eax, byte [ebp - 0x24]
and ebx, 0xf
shl eax, 4
lea ebx, [ebx + eax - 4]
jmp 0x10017f40
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x18]
push 0x12
pop eax
call fcn.100170a7
test eax, eax
pop ecx
pop ecx
je 0x10017f48
mov ebx, dword [ebp - 0x12]
cmp ebx, 0x1000000
jb 0x10017f51
and dword [ebp - 4], 0
jmp 0x1001803d
cmp dword [edi + 0x1c], 1
mov dword [edi + 4], ebx
lea eax, [edi + 0xe]
je 0x10017f60
lea eax, [ebp - 0x24]
mov ax, word [eax]
xor ax, word [ebp - 0x22]
cmp ebx, 0xffc
mov word [edi + 8], ax
jbe 0x10017f8a
mov esi, dword [edi + 0x14]
call fcn.10003812
mov esi, dword [edi + 4]
call fcn.100037b5
mov dword [edi + 0x14], eax
mov eax, dword [eax]
mov dword [edi], eax
push dword [edi]
mov eax, dword [edi + 4]
push dword [edi + 0x18]
call fcn.100170a7
test eax, eax
pop ecx
pop ecx
je 0x10018051
cmp dword [edi + 0x1c], 0
mov dword [ebp - 4], 1
jne 0x10018021
test ebx, ebx
je 0x10018021
mov ecx, dword [edi + 0xc]
imul ecx, ecx, 0x20080825
push 0xdff6dffa
push 0xe689e67e
mov eax, 0xa20191cb
sub eax, ecx
push 0
push eax
mov dword [edi + 0xc], eax
call fcn.1002ab60
mov dword [ebp - 0xc], eax
movzx eax, byte [edi + 0xc]
and eax, 7
mov esi, eax
mov eax, dword [edi + 4]
cmp esi, eax
mov dword [ebp - 8], edx
ja 0x10018051
sub eax, esi
add eax, dword [edi]
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10018051
mov eax, dword [edi + 4]
sub eax, esi
add eax, dword [edi]
test esi, esi
mov dword [ebp - 4], 1
mov ecx, esi
je 0x1001801e
mov byte [eax], 0
inc eax
dec ecx
jne 0x10018017
sub dword [edi + 4], esi
xor ecx, ecx
cmp dword [edi + 4], ecx
jbe 0x1001803d
mov eax, dword [edi]
mov edx, ecx
and edx, 3
mov dl, byte [edx + edi + 0xc]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 4]
jb 0x10018028
push 0x16
pop ecx
pop esi
lea eax, [ebp - 0x24]
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x10018045
mov eax, dword [ebp - 4]
leave
ret
and dword [ebp - 4], 0
mov esi, edi
call fcn.10017e5f
jmp 0x1001803d
Function at 0x1001805e
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10018085
call fcn.1001a823
push dword [ebp + 8]
call fcn.10016feb
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
xor esi, esi
push esi
push esi
push esi
push 0x10007bc6
push esi
push esi
call edi
mov ebx, 0x100340f0
mov dword [esp + 0xc], 7
push esi
push esi
push ebx
push 0x100178b9
push esi
push esi
call edi
add ebx, 0x28
dec dword [esp + 0xc]
jne 0x100180af
push esi
push esi
push esi
push 0x10017a1e
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000ecb5
push esi
push esi
call edi
push esi
push esi
push esi
push 0x100168ca
push esi
push esi
call edi
push esi
push esi
push esi
push 0x1000ce45
push esi
push esi
call edi
push esi
push esi
push esi
push 0x10016bdb
push esi
push esi
call edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018f83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x10018f8e
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x10019040
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
sub eax, 8
dec edi
jne 0x10018fa5
pop edi
test eax, eax
je 0x10019059
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100321a8]
inc ecx
dec eax
jne 0x10019044
mov eax, esi
pop ebx
not eax
pop esi
ret
Function at 0x1001ac23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
push edi
mov edi, eax
lea esi, [edi + 1]
shr esi, 1
cmp esi, 0x80
ja 0x1001ad18
mov eax, dword [ebp + 0x1c]
add eax, ebx
cmp eax, 0x50
mov dword [ebp - 4], eax
ja 0x1001ad18
cmp dword [ebp + 0xc], 0xe0
ja 0x1001ad18
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xd8]
push eax
call sub.MSVCRT.dll_memcpy
and edi, 1
mov eax, esi
sub eax, edi
add eax, dword [ebp + 0x10]
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 0x1c]
lea eax, [ebp + ebx - 0x58]
push dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp + 0xc]
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x318]
push edi
push eax
xor eax, eax
inc eax
mov ecx, esi
call fcn.1001aaf4
add esp, 0x14
push dword [ebp - 4]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
lea eax, [ebp - 0x238]
push eax
push 2
pop eax
mov ecx, esi
call fcn.1001aaf4
add esp, 0x14
xor eax, eax
test edi, edi
jbe 0x1001ad18
mov cl, byte [ebp + eax - 0x238]
xor cl, byte [ebp + eax - 0x318]
mov edx, dword [ebp + 8]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x1001acff
pop edi
pop esi
leave
ret

Function at 0x1001fe9e
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret

Function at 0x10020561
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esi]
push ebx
push edi
lea edi, [esi + 4]
mov ecx, dword [edi]
lea edx, [eax + ecx]
cmp edx, ecx
mov dword [edi], edx
jae 0x10020576
inc dword [esi + 8]
mov byte [eax + esi + 0x1c], 0x80
inc dword [esi]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, 0x38
jbe 0x100205a9
push 0x40
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
mov dword [esi], 0x40
call fcn.1001fec5
mov dword [esi], ebx
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
lea eax, [eax + esi + 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
mov ecx, eax
shl eax, 3
lea ebx, [esi + 8]
mov edx, dword [ebx]
push 4
shr ecx, 0x1d
mov dword [edi], eax
lea eax, [esi + 0x54]
lea ecx, [ecx + edx*8]
push edi
push eax
mov dword [ebx], ecx
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [esi + 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.1001fec5
push 0x10
lea eax, [esi + 0xc]
push eax
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.1001fe9e
Function at 0x1002060c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 0xac]
push edi
lea edi, [esi + 0x6c]
mov dword [ebp + 8], ecx
mov byte [esi + 0x10d], 0
mov byte [esi + 0x10c], al
je 0x10020643
cmp eax, 1
je 0x10020643
cmp eax, 2
je 0x10020643
cmp eax, 5
jne 0x10020667
sub eax, 0
je 0x10020660
dec eax
je 0x10020657
dec eax
jne 0x10020667
mov eax, esi
call fcn.100221c0
jmp 0x10020667
mov eax, esi
call fcn.100227f8
jmp 0x10020667
mov eax, esi
call fcn.1001fe9e
movzx eax, byte [esi + 0x10c]
sub eax, 0
je 0x100206ab
dec eax
je 0x10020692
dec eax
jne 0x100206d0
cmp ebx, 0x40
push ebx
push edx
jbe 0x100206b2
call fcn.100225ee
push edi
call fcn.10022656
add esp, 0xc
push 0x20
jmp 0x100206cf
cmp ebx, 0x40
push ebx
push edx
jbe 0x100206b2
call fcn.100217b0
push edi
call fcn.10021818
add esp, 0xc
push 0x14
jmp 0x100206cf
cmp ebx, 0x40
ja 0x100206bd
push ebx
push edx
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x100206d0
push edx
mov eax, ebx
call fcn.10020509
push edi
call fcn.10020561
pop ecx
pop ecx
push 0x10
pop ebx
push 0x40
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x40
sub eax, edi
pop ecx
mov dl, byte [edi]
xor dl, 0x5c
mov byte [eax + edi], dl
xor byte [edi], 0x36
inc edi
dec ecx
jne 0x100206ec
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10021818
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x20]
mov dword [ebx], edx
jae 0x10021830
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x10021868
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.10022192
mov eax, esi
call fcn.10020855
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.10022192
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.10020855
lea edi, [esi + 0xc]
push 0x14
pop eax
mov edx, edi
mov ecx, edi
call fcn.10022192
push 0x14
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.100227f8
Function at 0x100221c0
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0xa54ff53a
mov dword [eax + 0x1c], 0x510e527f
mov dword [eax + 0x20], 0x9b05688c
mov dword [eax + 0x24], 0x1f83d9ab
mov dword [eax + 0x28], 0x5be0cd19
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x10022656
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esi]
push ebx
lea ebx, [esi + 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, ecx
push edi
lea edi, [esi + 0x2c]
mov dword [ebx], edx
jae 0x1002266e
inc dword [esi + 8]
mov byte [eax + edi], 0x80
inc dword [esi]
mov eax, dword [esi]
cmp eax, 0x38
jbe 0x100226a6
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
pop eax
mov edx, edi
mov ecx, edi
mov dword [esi], eax
call fcn.10022192
mov eax, esi
call fcn.10022203
and dword [esi], 0
mov eax, dword [esi]
push 0x38
pop ecx
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + edx*8]
shl eax, 3
mov dword [esi + 8], ecx
mov dword [ebx], eax
push 0x40
pop eax
mov edx, edi
mov ecx, edi
call fcn.10022192
push 4
lea eax, [esi + 8]
push eax
lea eax, [edi + 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push 4
push ebx
add edi, 0x3c
push edi
call sub.MSVCRT.dll_memcpy
mov eax, esi
call fcn.10022203
lea edi, [esi + 0xc]
push 0x20
pop eax
mov edx, edi
mov ecx, edi
call fcn.10022192
push 0x20
push edi
push dword [esp + 0x38]
call sub.MSVCRT.dll_memcpy
add esp, 0x30
pop edi
mov eax, esi
pop ebx
jmp fcn.100221c0

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov dword [ebp - 4], ecx
je 0x100227ee
push ebx
push esi
push edi
mov esi, 0xff
mov ecx, dword [ebp - 4]
dec dword [ebp + 0x10]
lea ecx, [eax + ecx + 2]
mov dword [ebp - 8], ecx
movzx ecx, byte [ecx]
mov edi, dword [ebp - 8]
add edx, ecx
and edx, esi
movzx ebx, byte [eax + edx + 2]
mov byte [edi], bl
mov edi, dword [ebp - 4]
inc edi
and edi, esi
mov dword [ebp - 4], edi
mov edi, ebx
add edi, ecx
and edi, esi
mov byte [eax + edx + 2], cl
mov cl, byte [edi + eax + 2]
mov edi, dword [ebp + 0xc]
xor cl, byte [edi]
mov edi, dword [ebp + 8]
inc dword [ebp + 8]
inc dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc], ebx
mov byte [edi], cl
jne 0x1002279d
pop edi
pop esi
pop ebx
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov byte [eax + 1], dl
leave
ret

Function at 0x100227f8
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
mov dword [eax + 0x1c], 0xc3d2e1f0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
ret
Function at 0x10023b11
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x10023b2d
push 4
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x10023b20
pop esi
ret
push 0x10
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x10023b30
pop esi
ret
Function at 0x10024de9
Capabilities:
Encode data using xor

Disassembly:
mov edx, eax
or edx, ecx
sub ecx, eax
test dl, 3
push esi
jne 0x10024e05
push 2
pop edx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x10024df8
pop esi
ret
push 8
pop esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x10024e08
pop esi
ret

Function at 0x10024f0b
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor ecx, ecx
push edi
movzx eax, byte [ecx + 0x1002e1a8]
mov edi, dword [ebp + 8]
dec eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + edi]
and eax, 7
test byte [eax*4 + 0x1002e220], dl
setne al
mov byte [ebp + ecx - 0x78], al
inc ecx
cmp ecx, 0x38
jl 0x10024f15
xor ebx, ebx
push 8
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [ebx + 0x1002e1e0]
add esp, 0xc
xor ecx, ecx
xor edx, edx
cmp ecx, 0x1c
setge dl
mov edi, eax
dec edx
and edx, 0xffffffe4
add edx, 0x38
cmp eax, edx
jl 0x10024f72
lea edi, [eax - 0x1c]
mov dl, byte [ebp + edi - 0x78]
mov byte [ebp + ecx - 0x40], dl
inc ecx
inc eax
cmp ecx, 0x38
jl 0x10024f5a
xor edi, edi
movzx eax, byte [edi + 0x1002e1f0]
cmp byte [ebp + eax - 0x41], 0
je 0x10024fa9
mov eax, edi
cdq
push 6
pop ecx
idiv ecx
mov ecx, dword [edx*4 + 0x1002e220]
lea eax, [ebp + eax - 8]
sar ecx, 2
or byte [eax], cl
inc edi
cmp edi, 0x30
jl 0x10024f83
movzx eax, byte [ebp - 8]
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 4]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 5]
mov dword [esi + ebx*8], eax
movzx eax, byte [ebp - 7]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov dword [esi + ebx*8 + 4], eax
inc ebx
cmp ebx, 0x10
jl 0x10024f41
cmp dword [ebp + 0xc], 1
jne 0x1002502c
xor edi, edi
lea eax, [esi + 0x7c]
mov ebx, dword [eax - 4]
lea edx, [esi + edi*4]
mov ecx, dword [edx]
mov dword [edx], ebx
mov dword [eax - 4], ecx
mov ebx, dword [eax]
lea ecx, [esi + edi*4 + 4]
mov edx, dword [ecx]
inc edi
mov dword [ecx], ebx
mov dword [eax], edx
inc edi
sub eax, 8
cmp edi, 0x10
jl 0x10025009
pop edi
pop ebx
leave
ret
Function at 0x100250a5
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push 0x3f
mov dword [ebp - 4], eax
add edx, 8
mov dword [ebp - 8], 8
pop ecx
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x1002e240]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e440]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e640]
and eax, ecx
xor edi, dword [eax*4 + 0x1002e840]
mov eax, dword [edx - 4]
xor eax, dword [ebp - 4]
xor esi, edi
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x1002e340]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e540]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e740]
and eax, ecx
xor edi, dword [eax*4 + 0x1002e940]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
shr edi, 0x18
and edi, ecx
mov edi, dword [edi*4 + 0x1002e240]
mov ebx, eax
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e440]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e640]
and eax, ecx
xor edi, dword [eax*4 + 0x1002e840]
mov eax, dword [edx - 0xc]
xor dword [ebp - 4], edi
xor eax, esi
mov edi, eax
shr edi, 0x18
mov ebx, eax
and edi, ecx
mov edi, dword [edi*4 + 0x1002e340]
shr ebx, 0x10
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e540]
mov ebx, eax
shr ebx, 8
and ebx, ecx
xor edi, dword [ebx*4 + 0x1002e740]
and eax, ecx
xor edi, dword [eax*4 + 0x1002e940]
mov eax, dword [ebp - 4]
xor eax, edi
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x100250c7
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret