joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b4b39
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x7ad6f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6b4b7f
cmp word [ebx], dx
jne 0x6b4b7f
or byte [eax + edi + 0x28], 4
jmp 0x6b4b84
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x6b4ce7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x6b4cc7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x6b4bc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6b4bfb
cmp eax, edx
jae 0x6b4c09
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x6b4ba0
jmp 0x6b4ce7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6b4cc2
cmp dword [ebp - 0x18], 0
je 0x6b4cc2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x7ad6f8]
test byte [eax + edi + 0x28], 0x48
je 0x6b4c98
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x6b4c5c
mov word [esi], cx
jmp 0x6b4c93
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x7ad6f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7ad6f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x7ad6f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x6b4ce7
pop eax
cmp word [ebp - 4], ax
jne 0x6b4ca8
cmp esi, ebx
jne 0x6b4ca8
mov word [esi], ax
jmp 0x6b4ce4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006b3e08
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x6b4ce7
push 0xd
pop eax
jmp 0x6b4ca3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x7ad6f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x6b4ce1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x6b4ce7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6b8206
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c858
push 0x75c850
push str.FlsAlloc
push 0x1f
call fcn.006b7fb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6b823a
push dword [ebp + 8]
mov ecx, esi
call dword [0x6ebb00]
call esi
jmp 0x6b8240
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6b8284
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c868
push 0x75c860
push str.FlsGetValue
push 0x21
call fcn.006b7fb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6b82bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x6ebb00]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6b82c3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c870
push 0x75c868
push str.FlsSetValue
push 0x22
call fcn.006b7fb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6b82fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6ebb00]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x6b8344
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x75c5f4
push str.GetTempPath2W
push 5
call fcn.006b7fb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6b837e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6ebb00]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]

Function at 0x6bc2a7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006bc229
Function at 0x6bcd90
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x6bcddb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.006bcf2b
test al, al
jne 0x6bcdd5
sub edx, 2
cmp edx, edi
jne 0x6bcdbb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x6bcdfd
lea eax, [edi + 2]
cmp edx, eax
je 0x6bcdfd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.006bccdc
add esp, 0x10
jmp 0x6bcef7
push esi
lea ecx, [ebp - 0x255]
call fcn.006bcf2b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6bce40
push dword [ebp - 0x25c]
jmp 0x6bcded
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x6bce7d
cmp word [ebp - 0x226], 0
je 0x6bce9e
cmp word [ebp - 0x226], ax
jne 0x6bce7d
cmp word [ebp - 0x224], 0
je 0x6bce9e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.006bccdc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x6bceea
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x6bce57
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x6bced2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x6bcef7
push 0x6bcb0c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.006aa6d0
add esp, 0x10
jmp 0x6bcec7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0068d76f
leave
ret
Function at 0x6bd7f4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x6bd891
push ebx
push esi
call fcn.006bd7bd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.006bbbc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6bd83e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6bd890
push edi
push eax
call fcn.006b64d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6bd85e
call fcn.006b649b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6bd88f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.006bbbc1
add esp, 0x20
test eax, eax
jne 0x6bd87d
push edi
call fcn.006b649b
jmp 0x6bd885
push ebx
call fcn.006b649b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x6bd894
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6bd8a5
pop esi
ret
push ebx
push edi
push esi
call fcn.006bd7bd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006b64d5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6bd8cd
push ebx
push esi
push edi
call fcn.00690890
add esp, 0xc
push 0
call fcn.006b649b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x6be027
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006bdb42

Function at 0x6bff5e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.006b61b0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6bffcd
cmp esi, dword [ebp - 4]
je 0x6bffc8
cmp dword [ebp + 0xc], 0
je 0x6bffc8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x6bffa5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.006bfab0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x6bffcf
xor eax, eax
inc eax
jmp 0x6bffcf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x6c0034
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.006b61b0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.006b61b0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x6c00ab
cmp word [ecx], dx
je 0x6c00ab
mov eax, dword [0x76676c]
push edi
dec eax
push eax
push 0x766658
call fcn.006bffd3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x6c011e
cmp word [eax], dx
je 0x6c011e
mov eax, dword [edi]
test eax, eax
je 0x6c00cf
cmp word [eax], dx
je 0x6c00cf
lea eax, [ebp - 0x10]
push eax
call fcn.006bf9b6
jmp 0x6c00d8
lea eax, [ebp - 0x10]
push eax
call fcn.006bfa51
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x6c0148
mov eax, dword [0x766654]
push dword [ebp - 0x14]
dec eax
push eax
push 0x766348
call fcn.006bffd3
add esp, 0xc
test al, al
je 0x6c0148
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x6c0113
cmp word [eax], di
je 0x6c0113
lea eax, [ebp - 0x10]
push eax
call fcn.006bf9b6
pop ecx
jmp 0x6c014a
lea eax, [ebp - 0x10]
push eax
call fcn.006bfa51
jmp 0x6c0110
mov eax, dword [edi]
test eax, eax
je 0x6c0135
cmp word [eax], dx
je 0x6c0135
lea eax, [ebp - 0x10]
push eax
call fcn.006bf96b
pop ecx
jmp 0x6c0148
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x6c0213
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.006bfe58
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x6c0213
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x6c0213
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x6c0213
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6c01a0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.006b8445
test ebx, ebx
je 0x6c020e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.006b8445
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6c0213
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6c0213
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.006ae45f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x6c0215
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0068d76f
leave
ret
Function at 0x6c1220
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.006c119c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6c138f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6c138f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6c1344
jg 0x6c127c
test eax, eax
je 0x6c133a
push 1
push 0x1000
call fcn.006b7b44
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6c129f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6c1331
push 0x8000
push ebx
call fcn.006b097a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6c12c8
jg 0x6c12c3
cmp ecx, 0x1000
jb 0x6c12c8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006b5c56
add esp, 0x10
cmp eax, 0xffffffff
je 0x6c130d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6c12c3
jl 0x6c12f4
test ecx, ecx
jne 0x6c12b5
push dword [ebp - 0xc]
push ebx
call fcn.006b097a
push esi
call fcn.006b649b
add esp, 0xc
xor ebx, ebx
jmp 0x6c139d
cmp byte [edi + 0x24], 0
je 0x6c1324
cmp dword [edi + 0x20], 5
jne 0x6c1324
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6c132f
mov ebx, dword [edi + 0x18]
jmp 0x6c1331
xor ebx, ebx
push esi
call fcn.006b649b
pop ecx
jmp 0x6c139d
test ecx, ecx
jg 0x6c1306
jl 0x6c1344
test eax, eax
jae 0x6c1306
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006b3e08
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6c1364
cmp byte [edi + 0x1c], 0
je 0x6c1306
jmp 0x6c1395
push ebx
call fcn.006afcfc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6c1306
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6c139d
cmp byte [edi + 0x1c], 0
je 0x6c139a
mov ebx, dword [edi + 0x18]
jmp 0x6c139d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006b3e08
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6caa50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
not eax
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, 8
jbe 0x6cab26
test bl, 7
je 0x6caa89
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x769368]
test bl, 7
jne 0x6caa70
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x6cab26
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x18], ebx
add dword [esp + 0x18], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x769768]
xor edx, dword [ecx*4 + 0x769b68]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x76a768]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x76ab68]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x769368]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x76a368]
movzx ecx, bl
mov ebx, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x769f68]
xor edx, dword [eax*4 + 0x76af68]
mov eax, edx
cmp ebx, edi
jb 0x6caaa0
test esi, esi
je 0x6cab4a
nop word [eax + eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x769368]
sub esi, 1
jne 0x6cab30
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x6d2090
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1e4]
mov edx, dword [esi + 0xa94]
add eax, 0x355
and edx, dword [esp + 0x20]
shl eax, 4
add eax, edx
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x20]
cmp ebx, 0xffffffff
jne 0x6d21fb
mov ebx, dword [esp + 0x14]
mov dword [esi + eax*4 + 0x28], 0
mov eax, dword [esi + 0x20]
push ebp
mov dword [esi + eax*4 + 0xfc], ecx
mov ebp, dword [esi + 0x20]
inc ebp
mov dword [esi + 0x20], ebp
mov edi, dword [ebx]
mov eax, edi
mov edx, dword [ebx + 0x18]
sub eax, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + ecx - 1]
mov ecx, 8
sub cl, byte [esi + 0xa98]
mov eax, dword [esi + 0xa9c]
and eax, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esi + 0xa98]
shl eax, cl
add edx, eax
mov eax, edi
sub eax, dword [ebx + 0x18]
imul ecx, edx, 0x600
mov edx, dword [ebx + 0x14]
movzx edx, byte [eax + edx]
add ecx, 0xaa0
add ecx, esi
cmp dword [esi + 0x1e4], 7
mov dword [esp + 0x24], ecx
jge 0x6d214e
push edx
push 8
push ecx
push esi
call fcn.006d3370
add esp, 0x10
jmp 0x6d21af
sub edi, dword [esi + 0x1e8]
sub edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ebx, 0x100
add edx, ebx
movzx edi, byte [edi + eax - 1]
mov eax, edx
add edi, edi
shr eax, 7
mov ecx, ebx
and eax, 1
and ecx, edi
mov dword [esi + ebp*4 + 0x28], eax
add ecx, ebx
mov eax, edx
add edx, edx
shr eax, 8
add eax, ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x20]
mov dword [esi + eax*4 + 0xfc], ecx
mov eax, edi
inc dword [esi + 0x20]
xor eax, edx
mov ebp, dword [esi + 0x20]
not eax
and ebx, eax
cmp edx, 0x10000
jb 0x6d2167
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x1e4]
pop ebp
cmp eax, 3
jg 0x6d21ce
xor eax, eax
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
cmp eax, 9
jg 0x6d21e7
add eax, 0xfffffffd
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0xfffffffa
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
mov edi, dword [esp + 0x1c]
mov dword [esi + eax*4 + 0x28], 1
mov eax, dword [esi + 0x20]
push edi
mov dword [esi + eax*4 + 0xfc], ecx
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x1e4]
add ecx, 0x3610
lea eax, [esi + eax*4]
lea ecx, [esi + ecx*2]
cmp ebx, 4
jae 0x6d225a
mov dword [eax + 0x28], 1
mov eax, dword [esi + 0x20]
push ebx
push edx
push esi
mov dword [esi + eax*4 + 0xfc], ecx
inc dword [esi + 0x20]
call fcn.006d3690
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0x20]
mov dword [esi + eax*4 + 0xfc], ecx
lea eax, [ebx - 4]
inc dword [esi + 0x20]
push eax
push edx
push esi
call fcn.006d3220
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
Function at 0x6d2370
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x6d23b1
lea eax, [ebx + 0x104]
mov ecx, edx
nop
movaps xmm0, xmmword [0x7692b0]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x7692b0]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x6d2390
cmp byte [esp + 0x30], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x6d25b5
mov dword [esp + 8], 0
test edx, edx
je 0x6d25b5
push ebp
lea ebp, [ebx + 0x404]
lea ecx, [ebx + 0x4808]
mov dword [esp + 0x10], ebp
push esi
mov dword [esp + 0x1c], ecx
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [ecx], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [esp + 0x30], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [esp + 0x38], esi
movzx eax, byte [eax + 0x76d368]
movzx edx, byte [ecx + 0x76d368]
movzx ecx, word [ebx + 2]
mov dword [esp + 0x20], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x76d368]
add eax, edx
mov dword [esp + 0x24], eax
movzx eax, byte [ecx + 0x76d368]
add eax, edx
mov dword [esp + 0x28], eax
test edi, edi
je 0x6d258b
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
shl edi, 3
mov dword [esp + 0x18], edi
nop dword [eax]
cmp esi, 8
jae 0x6d24d5
lea edx, [esi + 8]
xor ebp, ebp
mov esi, dword [esp + 0x10]
nop
mov ecx, edx
lea edi, [esi*8]
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
lea eax, [edi + edx]
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x76d368]
add ebp, eax
cmp edx, 1
jne 0x6d2480
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
add eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [ebp + esi*4], eax
inc esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], esi
cmp esi, eax
jb 0x6d2470
jmp 0x6d258b
cmp esi, eax
jae 0x6d258b
nop dword [eax]
cmp esi, 0x10
jae 0x6d2542
mov edx, esi
xor ebp, ebp
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edi + edx]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
mov edi, esi
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x76d368]
add ebp, eax
cmp edx, 1
jne 0x6d24f0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
add eax, ebp
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [ebp + esi*4], eax
inc esi
mov dword [esp + 0x38], esi
cmp esi, dword [esp + 0x30]
jb 0x6d24e0
jmp 0x6d258b
xor edi, edi
lea eax, [esi + 0xf0]
nop word [eax + eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x76d368]
add edi, ecx
cmp eax, 1
jne 0x6d2550
mov eax, dword [esp + 0x28]
add eax, edi
mov dword [ebp + esi*4], eax
inc esi
cmp esi, dword [esp + 0x30]
jb 0x6d2542
mov eax, dword [esp + 0x10]
add ebp, 0x440
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
cmp eax, dword [esp + 0x34]
jb 0x6d23f4
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret