joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 8], 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov esi, ecx
push eax
inc esi
push esi
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x10013c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x10013c16
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x10013c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x10013cbf
mov eax, dword [ebp + 0xc]
push eax
jmp 0x10013cac
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.1007b170
mov ecx, dword [ebp + 8]
mov eax, esp
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ecx
push 0xfde9
mov dword [ebp - 4], eax
call esi
test eax, eax
je 0x10013cbf
lea edx, [ebp - 0x14]
push 8
push edx
mov edx, dword [ebp + 0xc]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push eax
push 0xfde9
call esi
test eax, eax
je 0x10013cbf
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.1007c270
mov esi, eax
add esp, 8
test esi, esi
jne 0x10013d4c
call fcn.1007c22d
cmp dword [eax], 2
je 0x10013ca8
call fcn.1007c22d
cmp dword [eax], 9
jne 0x10013cb7
mov edx, dword [ebp + 0xc]
push edx
push ebx
call fcn.1007c1a7
add esp, 8
mov esi, eax
test esi, esi
jne 0x10013d4c
push 0xab
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10026360
mov eax, dword [ebp + 0xc]
push 0x100ac914
push eax
push 0x100ac910
push ebx
push str.fopen_
push 5
call fcn.10026a50
add esp, 0x2c
call fcn.1007c22d
cmp dword [eax], 2
jne 0x10013d28
push 0xae
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10026360
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xb0
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10026360
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013da0
push eax
call fcn.10010e40
mov edi, eax
add esp, 4
test edi, edi
jne 0x10013d75
push esi
call fcn.1007c0f9
add esp, 4
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.10010fa0
push esi
push 1
push 0x6a
push edi
call fcn.10011310
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014880
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [edi + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.10010fa0
add esp, 8
test esi, esi
jg 0x100148cd
push esi
call fcn.10014a20
add esp, 4
test eax, eax
je 0x100148cd
push 0xa
push edi
call fcn.10010fc0
add esp, 8
mov eax, esi
pop edi
pop esi
ret

Function at 0x1001c840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x1001c859
mov esi, ebx
mov ebx, eax
jmp 0x1001c85b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jg 0x1001c86b
mov eax, edi
jmp 0x1001c875
push eax
push edi
call fcn.1001de20
add esp, 8
test eax, eax
jne 0x1001c87d
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x1001c8a1
push ebp
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x1001c887
pop ebp
cmp eax, dword [esi + 4]
jge 0x1001c8b8
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x1001c8a6
mov eax, dword [esi + 4]
test eax, eax
mov dword [edi + 4], eax
jle 0x1001c8d9
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1001c8d6
dec eax
test eax, eax
jg 0x1001c8c8
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x1002be80
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1002bf66
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x1002bef3
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x1002bf4a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x1002bf06
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x1002bf36
mov ebx, 0x3d
jmp 0x1002bf44
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1002be9a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x1002e230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x124
mov eax, dword [esp + 0x13c]
push ebx
push esi
push eax
mov ebx, 1
call fcn.1002d350
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
jge 0x1002e262
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
push ebp
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.100618c0
mov edx, dword [esp + 0x158]
mov ebp, dword [esp + 0x154]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x13c]
add esp, 4
mov dword [esp + 0x18], ebp
test edx, edx
jne 0x1002e29b
mov dword [esp + 0x13c], edx
jmp 0x1002e2b9
mov eax, dword [esp + 0x13c]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x1002e2b9
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x13c], ecx
mov eax, dword [esp + 0x150]
test eax, eax
je 0x1002e3ff
jmp 0x1002e2d9
mov edx, dword [esp + 0x138]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jle 0x1002e2df
mov ebp, esi
mov eax, ebx
mov ecx, ebx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ebx
shr ecx, 0x10
shr eax, 8
mov byte [esp + 0x15], cl
mov ecx, dword [esp + 0x14c]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x13c]
push 0
push ecx
push eax
lea ecx, [esp + 0x70]
push edx
push ecx
mov byte [esp + 0x2b], bl
call fcn.100615e0
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x154]
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.10061820
lea edx, [esp + 0x34]
push 4
lea eax, [esp + 0x88]
push edx
push eax
call fcn.10061820
lea ecx, [esp + 0x50]
push 0
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.10061840
mov edi, dword [esp + 0x48]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x180]
add esp, 0x38
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jle 0x1002e3e2
dec eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x144]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x144]
push eax
mov eax, dword [esp + 0x15c]
push ecx
push edx
push eax
call fcn.10061990
add esp, 0x1c
test ebp, ebp
jle 0x1002e3d7
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x24]
sub esi, eax
mov edi, ebp
mov cl, byte [esi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x1002e3ca
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x1002e389
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, ebp
inc ebx
add edx, ebp
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], edx
jne 0x1002e2ca
lea edx, [esp + 0x64]
push edx
call fcn.10061960
add esp, 4
mov eax, 1
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x124
ret
Function at 0x1003f050
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
cmp esi, 0x80
mov byte [eax], 0
jle 0x1003f06c
mov esi, 0x80
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x1003f07c
cmp ecx, 0x400
jle 0x1003f081
mov ecx, 0x400
test esi, esi
jle 0x1003f098
mov edi, dword [esp + 0x1c]
mov edx, eax
sub edi, eax
mov ebp, esi
mov bl, byte [edi + edx]
mov byte [edx], bl
inc edx
dec ebp
jne 0x1003f08f
xor edx, edx
cmp esi, 0x80
mov dl, byte [eax + esi - 1]
jge 0x1003f0ca
mov edi, eax
sub edi, esi
mov bl, byte [edi + esi]
add ebx, edx
xor edx, edx
and ebx, 0xff
inc esi
cmp esi, 0x80
mov dl, byte [ebx + 0x1009d908]
mov byte [esi + eax - 1], dl
jl 0x1003f0aa
lea esi, [ecx + 7]
mov edx, 0x80
neg ecx
sar esi, 3
and ecx, 7
mov edi, 0xff
sub edx, esi
sar edi, cl
xor ecx, ecx
mov cl, byte [edx + eax]
and edi, ecx
xor ecx, ecx
mov cl, byte [edi + 0x1009d908]
mov edi, edx
mov byte [edx + eax], cl
dec edx
test edi, edi
je 0x1003f11a
lea edi, [edx + eax]
lea ebp, [edx + 1]
xor edx, edx
mov dl, byte [edi + esi]
xor edx, ecx
xor ecx, ecx
dec ebp
dec edi
mov cl, byte [edx + 0x1009d908]
mov byte [edi + 1], cl
test ebp, ebp
ja 0x1003f102
lea esi, [eax + 0xfc]
mov ecx, 0x7f
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx + eax - 1]
mov bh, byte [ecx + eax]
and edx, 0xffff
sub esi, 4
or edx, ebx
sub ecx, 2
mov dword [esi + 4], edx
jns 0x1003f125
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10041080
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp eax, 0x10
push edi
jb 0x100410eb
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
shr eax, 4
mov dword [esp + 0x10], eax
mov ecx, esi
sub ebp, edi
mov eax, edi
sub ecx, edi
mov edx, 4
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
dec edx
mov dword [ecx + eax - 4], ebx
jne 0x100410ae
mov eax, dword [esp + 0x24]
push eax
push esi
push esi
call dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ebp, esi
add esp, 0xc
sub ebx, 0x10
add edi, 0x10
add esi, 0x10
dec eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
jne 0x100410a1
jmp 0x100410f3
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10041176
mov edx, ebp
mov ebx, esi
xor eax, eax
sub edx, edi
sub ebx, edi
mov ecx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
jmp 0x10041115
mov edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jae 0x10041132
mov dl, byte [ecx + edx]
mov bl, byte [ecx]
xor dl, bl
mov ebx, dword [esp + 0x18]
inc eax
mov byte [ecx + ebx], dl
inc ecx
cmp eax, 0x10
jb 0x10041111
jmp 0x1004114c
cmp eax, 0x10
jae 0x1004114c
mov ecx, 0x10
sub ebp, esi
lea edx, [eax + esi]
sub ecx, eax
mov al, byte [edx + ebp]
mov byte [edx], al
inc edx
dec ecx
jne 0x10041143
mov ecx, dword [esp + 0x24]
push ecx
push esi
push esi
call dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov ebp, esi
jbe 0x10041176
sub eax, 0x10
add edi, 0x10
add esi, 0x10
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100410fb
mov eax, dword [esp + 0x28]
mov edx, dword [ebp]
pop edi
pop esi
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
pop ecx
ret
Function at 0x100411a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x10041226
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
cmp ebp, 0x10
jb 0x10041207
mov eax, ebp
shr eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
push eax
push edi
push esi
call dword [esp + 0x48]
mov ecx, ebx
add esp, 0xc
mov eax, edi
sub ecx, edi
mov edx, 4
mov ebx, dword [ecx + eax]
xor dword [eax], ebx
add eax, 4
dec edx
jne 0x100411e2
mov eax, dword [esp + 0x30]
mov ebx, esi
sub ebp, 0x10
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x30], eax
jne 0x100411c9
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x100412ac
mov ebp, dword [esp + 0x30]
cmp ebp, 0x10
jb 0x100412ac
shr ebp, 4
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call dword [esp + 0x48]
mov ebp, esi
lea eax, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub ebp, eax
sub ebx, edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x2c], ebp
sub edx, eax
jmp 0x1004126e
mov ebp, dword [esp + 0x2c]
lea eax, [esp + ecx + 0x14]
add ecx, 4
mov ebp, dword [eax + ebp]
mov dword [esp + 0x10], ebp
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
cmp ecx, 0x10
mov dword [ebx + eax], ebp
mov ebp, dword [esp + 0x10]
mov dword [edx + eax], ebp
jb 0x1004126a
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub ebp, 0x10
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], eax
jne 0x10041236
test ebp, ebp
je 0x10041367
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call dword [esp + 0x48]
mov ebp, esi
lea ecx, [esp + 0x20]
sub ebp, ecx
mov edx, edi
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x20]
sub edx, ecx
mov ecx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
sub ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
jmp 0x100412f4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jae 0x10041323
lea ebx, [eax + ebp]
add ecx, eax
add edx, eax
mov bl, byte [esp + ebx + 0x14]
lea ecx, [esp + ecx + 0x14]
mov byte [esp + 0x28], bl
mov bl, byte [esp + eax + 0x14]
xor bl, byte [ecx]
inc eax
cmp eax, 0x10
mov byte [esp + edx + 0x14], bl
mov dl, byte [esp + 0x28]
mov byte [ecx], dl
jb 0x100412ec
mov ecx, dword [esp + 0x30]
cmp ecx, 0x10
jbe 0x10041349
sub ecx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x100412b4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, 0x10
jae 0x10041367
mov ecx, dword [esp + 0x38]
sub esi, ecx
lea edx, [eax + ecx]
mov ecx, 0x10
sub ecx, eax
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x1004135e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10041630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
test ebx, ebx
push edi
jle 0x1004177c
cmp ebx, 0x80
jg 0x1004177c
mov edi, dword [esp + 0x48]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x44]
push eax
push edi
push edi
mov dword [esp + 0x28], edx
call dword [esp + 0x5c]
lea eax, [ebx + 7]
add esp, 0xc
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x4c]
sar ebp, 3
test eax, eax
je 0x100416bf
test ebp, ebp
jle 0x1004170d
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
lea esi, [esp + 0x20]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x100416ac
jmp 0x10041709
xor esi, esi
test ebp, ebp
jle 0x1004170d
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
sub ebx, edx
lea edx, [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
jmp 0x100416ef
mov ebx, dword [esp + 0x38]
lea ecx, [esp + esi + 0x20]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
mov byte [ecx], dl
xor bl, dl
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x100416eb
mov ebx, dword [esp + 0x40]
mov ebp, ebx
and ebp, reloc.WS2_32.dll_getsockopt
jns 0x1004171c
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebp, ebp
jne 0x1004174d
lea eax, [esp + eax + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, 8
xor esi, esi
sub ecx, ebp
lea eax, [esp + eax + 0x10]
mov dword [esp + 0x40], ecx
jmp 0x10041764
mov ecx, dword [esp + 0x40]
mov dl, byte [eax + esi + 1]
mov bl, byte [eax + esi]
shr dl, cl
mov ecx, ebp
shl bl, cl
or dl, bl
mov byte [esi + edi], dl
inc esi
cmp esi, 0x10
jl 0x10041760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x100417e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x24]
test esi, esi
je 0x1004181d
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x10041821
mov eax, dword [esp + 0x14]
mov cl, byte [esi + edi]
xor cl, byte [eax]
mov byte [ebp], cl
inc ebp
inc eax
dec ebx
inc esi
mov dword [esp + 0x14], eax
and esi, 0xf
mov dword [esp + 0x1c], ebx
jne 0x100417f6
jmp 0x10041821
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x10
jb 0x1004188e
mov eax, ebx
shr eax, 4
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
push edx
push edi
push edi
call dword [esp + 0x38]
add esp, 0xc
cmp esi, 0x10
jae 0x1004186c
mov edx, dword [esp + 0x14]
mov ecx, 0x13
mov ebx, ebp
sub ecx, esi
sub edx, edi
sub ebx, edi
lea eax, [esi + edi]
shr ecx, 2
mov esi, dword [edx + eax]
xor esi, dword [eax]
add eax, 4
dec ecx
mov dword [ebx + eax - 4], esi
jne 0x10041859
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub ebx, 0x10
add ebp, 0x10
add ecx, 0x10
xor esi, esi
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x1004182f
test ebx, ebx
je 0x100418c9
mov eax, dword [esp + 0x20]
push eax
push edi
push edi
call dword [esp + 0x38]
mov edx, dword [esp + 0x20]
add esp, 0xc
dec ebx
lea eax, [esi + edi]
sub edx, edi
sub ebp, edi
lea ecx, [ebx + 1]
add esi, ecx
mov bl, byte [eax + edx]
xor bl, byte [eax]
inc eax
dec ecx
mov byte [eax + ebp - 1], bl
jne 0x100418b1
mov ecx, dword [esp + 0x28]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x1005a0a0
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x18
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
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
ret
Function at 0x1005b9a0
Capabilities:
Hash data using sha224

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x1c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
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
ret

Function at 0x1005ba00
Capabilities:
Hash data using sha256

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x1c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
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
ret
Function at 0x1005cf80
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x1005d020
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x1005f5f0
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x17
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov eax, 1
pop edi
ret
Function at 0x100610c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x10061121
mov al, byte [edi]
test al, al
je 0x10061121
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x100610d9
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret