joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ffcb
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x100f3f7e
call fcn.100786ee
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x100700c2
cmp byte [esi + 0x4a], bl
je 0x100700c2
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x10070007
xor al, al
jmp 0x100700c4
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.1000c280
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10070065
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x1007006a
dec eax
je 0x1007006e
dec eax
dec eax
je 0x100700be
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100070e0
mov al, bl
jmp 0x100700c4
mov edx, dword [ebp - 0x2c]
jmp 0x10070030
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1007007a
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x100700a0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1007008d
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.10075c1f
add esp, 0x10
cmp edi, eax
jne 0x10070053
cmp byte [esi + 0x4a], 0
je 0x100700be
test edi, edi
jne 0x10070022
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10005670
jmp 0x10070022
mov bl, 1
jmp 0x10070055
mov al, 1
call fcn.10078738
ret
Function at 0x100700ca
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x100f3f51
call fcn.100786ee
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x100700ec
xor eax, eax
jmp 0x1007025f
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x1007011a
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x1007011a
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x1007025f
cmp dword [esi + 0x54], ebx
je 0x1007025a
mov ecx, esi
call fcn.1006f775
cmp dword [esi + 0x44], ebx
jne 0x1007014a
push dword [esi + 0x54]
push edi
call fcn.1006f7fc
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x1007025f
jmp 0x1007025a
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.1000c280
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10070207
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x1007024f
cmp eax, ebx
jg 0x1007020f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100701b9
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x100701de
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100701cc
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.10075c1f
add esp, 0x10
cmp edi, eax
jne 0x1007024f
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x1007023e
test edi, edi
jne 0x1007016b
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x10070254
push 8
call fcn.10005670
jmp 0x1007016b
mov edx, dword [ebp - 0x2c]
jmp 0x1007017d
cmp eax, 3
jne 0x1007024f
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.1006f7fc
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x1007022e
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100070e0
mov ax, si
jmp 0x1007025f
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100070e0
mov ax, word [ebp + 8]
jmp 0x1007025f
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.100070e0
mov eax, 0xffff
call fcn.10078738
ret 4
Function at 0x100709cd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101577f8], 0
push esi
push edi
jne 0x10070943
call fcn.100708af
test eax, eax
je 0x10070988
mov eax, dword [0x101577f8]
cmp eax, 1
jne 0x10070964
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10070988
jmp 0x100709ca
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x100709ca
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1007098c
xor eax, eax
jmp 0x100709ca
mov eax, dword [esi]
push dword [0x101577f8]
call edi
mov edi, eax
test edi, edi
je 0x100709ae
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x100709ca
lea edi, [esi + 0xff0]
push esi
push dword [0x101577f8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x100709b4
mov eax, esi
pop edi
pop esi
ret
jmp 0x1007092f

Function at 0x100719c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1014f644]
jne 0x100719cb
repz ret
jmp fcn.1007b4a4
Function at 0x1008f220
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1007c494
and dword [ebp - 0x14], 0
cmp dword [0x10158638], 0
mov dword [ebp - 0x18], eax
jne 0x1008f2d3
push 0x10109fa4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1008f37b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1008f37b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10158638], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1015863c], eax
call edi
push eax
call esi
push 0x10109f58
push ebx
mov dword [0x10158640], eax
call edi
push eax
call esi
mov dword [0x10158648], eax
test eax, eax
je 0x1008f2d3
push 0x10109f40
push ebx
call edi
push eax
call esi
mov dword [0x10158644], eax
mov eax, dword [0x10158644]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1008f32c
cmp dword [0x10158648], ecx
je 0x1008f32c
push eax
call esi
push dword [0x10158648]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1008f32c
test ebx, ebx
je 0x1008f32c
call edi
test eax, eax
je 0x1008f323
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1008f323
test byte [ebp - 8], 1
jne 0x1008f32c
or dword [ebp + 0x10], 0x200000
jmp 0x1008f35f
mov eax, dword [0x1015863c]
cmp eax, dword [ebp - 0x18]
je 0x1008f35f
push eax
call esi
test eax, eax
je 0x1008f35f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008f35f
mov eax, dword [0x10158640]
cmp eax, dword [ebp - 0x18]
je 0x1008f35f
push eax
call esi
test eax, eax
je 0x1008f35f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10158638]
call esi
test eax, eax
je 0x1008f37b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1008f37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100719c1
leave
ret

Function at 0x10094570
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.1007ada0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x100975b0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.1008ef40
mov eax, dword [0x1014f644]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x10097637
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10097637
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.10084cb9
add esp, 0x10
test eax, eax
jns 0x1009760d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100719c1
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.10084cb9
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100976c9
call fcn.10097470
test eax, eax
jle 0x100976c9
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x100976dd
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100719c1
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100719c1
add esp, 0x108
ret

Function at 0x10097730
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x10097756
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x10097747
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x1009a0f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.10098e00
add esp, 0xc
test eax, eax
js 0x10099578
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x100993ad
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x10099370
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x10099574
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x1010b430]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1010b430]
and esi, 0xff
mov esi, dword [esi*4 + 0x1010c030]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c830]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1010b430]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1010cc30]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x1010b430]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1010c430]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x1010b430]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1010b430]
and esi, 0xff
mov esi, dword [esi*4 + 0x1010c030]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c830]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x1010b430]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c430]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1010b430]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1010cc30]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x1010b430]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1010b430]
and esi, 0xff
mov esi, dword [esi*4 + 0x1010c030]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c830]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x1010b430]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c430]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1010b430]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1010cc30]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x1010b430]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1010b430]
and esi, 0xff
mov esi, dword [esi*4 + 0x1010c030]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c830]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x1010b430]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1010b430]
and edi, 0xff
xor esi, dword [edi*4 + 0x1010c430]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1010cc30]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x100993c1
pop edi
xor eax, eax
pop esi
pop ebx
ret
jmp 0x10099330
Function at 0x1009a100
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.1008ef40
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
mov ebp, eax
cmp ebx, 0x10
jb 0x1009a17a
shr ebx, 4
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov ecx, edi
sub ebp, esi
mov eax, esi
sub ecx, esi
mov edx, 4
lea ecx, [ecx]
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
dec edx
mov dword [ecx + eax - 4], ebx
jne 0x1009a140
mov eax, dword [esp + 0x34]
push eax
push edi
push edi
call dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov ebp, edi
sub ebx, 0x10
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec dword [esp + 0x10]
mov dword [esp + 0x30], ebx
jne 0x1009a130
mov eax, dword [esp + 0x38]
test ebx, ebx
je 0x1009a277
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, 1
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, 2
sub ecx, esi
mov dword [esp + 0x1c], ecx
mov edx, ebp
sub edx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
jmp 0x1009a1bb
mov edx, dword [esp + 0x10]
cmp eax, ebx
jae 0x1009a229
mov ebx, dword [esp + 0x14]
lea ecx, [eax + esi]
mov dl, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x1009a21e
mov dl, byte [esi + eax + 1]
xor dl, byte [eax + ebp + 1]
mov byte [edi + eax + 1], dl
mov edx, dword [esp + 0x1c]
add edx, ecx
cmp edx, ebx
jae 0x1009a221
mov dl, byte [esi + eax + 2]
xor dl, byte [eax + ebp + 2]
mov byte [edi + eax + 2], dl
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, ebx
jae 0x1009a226
mov cl, byte [esi + eax + 3]
xor cl, byte [eax + ebp + 3]
add eax, 4
mov byte [edi + eax - 1], cl
cmp eax, 0x10
jb 0x1009a1b7
jmp 0x1009a249
inc eax
jmp 0x1009a229
add eax, 2
jmp 0x1009a229
add eax, 3
cmp eax, 0x10
jae 0x1009a249
mov edx, 0x10
sub ebp, edi
lea ecx, [eax + edi]
sub edx, eax
lea ebx, [ebx]
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
dec edx
jne 0x1009a240
mov ecx, dword [esp + 0x34]
push ecx
push edi
push edi
call dword [esp + 0x48]
add esp, 0xc
mov ebp, edi
cmp ebx, 0x10
jbe 0x1009a273
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x1009a182
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
pop edi
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
add esp, 0x14
ret
Function at 0x1009a530
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1008ef40
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x1009a575
test ebx, ebx
je 0x1009a575
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x1009a550
cmp ebx, 0x10
jb 0x1009a5ed
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x1009a5da
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + ebp - 4], edx
jne 0x1009a5c7
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x10]
jne 0x1009a5a6
test ebx, ebx
je 0x1009a629
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec ebx
mov byte [eax + ecx - 1], dl
jne 0x1009a610
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1009aaf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1008ef40
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x1009ab39
test edi, edi
je 0x1009ab39
mov cl, byte [ebx + esi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc ebx
dec edi
and ebx, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x1009ab10
cmp edi, 0x10
jb 0x1009abb4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.1009aac0
mov eax, esi
mov ecx, 4
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [ebx + eax - 4], edx
jne 0x1009ab92
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x10]
jne 0x1009ab70
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x1009abfb
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push esi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.1009aac0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + esi]
sub ebp, esi
sub ecx, esi
add ebx, edi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + ecx - 1], dl
jne 0x1009abe2
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
pop ecx
ret
Function at 0x1009ac40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1008ef40
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1009ac8c
test ebp, ebp
je 0x1009ac8c
mov ecx, dword [esp + 0x2c]
mov dl, byte [eax + ecx]
mov esi, dword [esp + 0x18]
xor dl, byte [esi]
mov ecx, dword [esp + 0x1c]
mov byte [ecx], dl
inc ecx
inc esi
inc eax
dec ebp
and eax, 0xf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jne 0x1009ac60
mov esi, dword [esp + 0x28]
movzx ebx, byte [esi + 0xc]
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xe]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 0xf]
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, ecx
cmp ebp, 0x10
jb 0x1009ad2c
mov edi, ebp
shr edi, 4
add ebx, edi
cmp ebx, edi
jae 0x1009acc3
sub edi, ebx
xor ebx, ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push edx
push edi
push eax
push ecx
call dword [esp + 0x48]
mov edx, ebx
mov eax, ebx
mov ecx, ebx
shr edx, 0x18
shr eax, 0x10
shr ecx, 8
add esp, 0x14
mov byte [esi + 0xc], dl
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], bl
test ebx, ebx
jne 0x1009ad16
mov eax, 0xc
mov ecx, 1
movzx edx, byte [eax + esi - 1]
dec eax
add ecx, edx
mov byte [eax + esi], cl
shr ecx, 8
test eax, eax
jne 0x1009ad04
shl edi, 4
add dword [esp + 0x1c], edi
add dword [esp + 0x18], edi
sub ebp, edi
cmp ebp, 0x10
jae 0x1009acb4
mov eax, dword [esp + 0x10]
test ebp, ebp
je 0x1009ada9
mov edi, dword [esp + 0x2c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
push 1
push edi
push edi
call dword [esp + 0x48]
inc ebx
mov ecx, ebx
mov edx, ebx
mov eax, ebx
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
add esp, 0x14
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], al
mov byte [esi + 0xf], bl
test ebx, ebx
jne 0x1009ad79
mov edx, esi
call fcn.1009ac10
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea eax, [edx + edi]
sub ecx, edi
sub esi, edi
add edx, ebp
mov edi, edi
mov bl, byte [ecx + eax]
xor bl, byte [eax]
inc eax
dec ebp
mov byte [esi + eax - 1], bl
jne 0x1009ad90
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [edx], eax
pop ebx
pop ecx
ret