joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d25
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
push edi
push 6
pop ecx
mov esi, str.abcdefghijklmnopqrstuvwxyz
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], 1
cmp dword [ebp + 8], 0
jne 0x408d62
call fcn.0040a391
cdq
push 5
pop ecx
idiv ecx
add edx, 5
mov dword [ebp + 8], edx
and dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.0040a73f
pop ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040a387
pop ecx
and dword [ebp - 0x2c], 0
jmp 0x408d88
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 8]
jge 0x408de7
cmp dword [ebp - 8], 0
je 0x408dc9
cmp dword [ebp - 0x2c], 0
jle 0x408dc9
call fcn.0040a391
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.00409f00
pop ecx
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebp + ecx - 0x24]
mov byte [eax], cl
jmp 0x408de5
call fcn.0040a391
cdq
push 0x1a
pop ecx
idiv ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 0x61
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], al
jmp 0x408d81
cmp dword [ebp - 8], 0
je 0x408eb7
push dword [ebp + 0xc]
call fcn.00408f2f
pop ecx
push eax
call fcn.00409160
pop ecx
test eax, eax
je 0x408e0b
mov byte [ebp - 0x30], 0x5b
jmp 0x408e0f
mov byte [ebp - 0x30], 0x5b
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x30]
mov byte [eax], cl
mov dword [ebp - 0xc4], 0x94
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc0], 5
jne 0x408e46
cmp dword [ebp - 0xbc], 0
jne 0x408e46
mov byte [ebp - 0x30], 0x31
jmp 0x408e7f
cmp dword [ebp - 0xc0], 5
jne 0x408e7b
cmp dword [ebp - 0xbc], 1
jne 0x408e7b
push 0x4158b4
lea eax, [ebp - 0xb0]
push eax
call fcn.0040aed0
pop ecx
pop ecx
test eax, eax
je 0x408e75
mov byte [ebp - 0x30], 0x2d
jmp 0x408e79
mov byte [ebp - 0x30], 0x2d
jmp 0x408e7f
mov byte [ebp - 0x30], 0x2d
mov eax, dword [ebp - 4]
mov byte [eax + 1], 0x6e
mov eax, dword [ebp - 4]
mov byte [eax + 2], 0x4c
mov eax, dword [ebp - 4]
mov byte [eax + 3], 0x68
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0x2d
mov eax, dword [ebp - 4]
mov byte [eax + 5], 0x56
mov eax, dword [ebp - 4]
mov byte [eax + 6], 0x4e
mov eax, dword [ebp - 4]
mov byte [eax + 7], 0x43
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0x5d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x2c]
and byte [eax], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x408f2f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0x10
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.00409ce0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
push str._d._d._d._d
push 0x418168
call fcn.00409c85
add esp, 0x18
mov eax, 0x418168
leave
ret

Function at 0x408ffa
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
jmp 0x409010
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x200
jae 0x409066
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
mov eax, dword [eax + 0x416908]
cmp eax, dword [ebp + 8]
jne 0x409064
push 0
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
push dword [eax + 0x41690c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
and dword [eax + 0x416908], 0
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
push dword [eax + 0x416910]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x409009
mov eax, dword [ebp - 8]
leave
ret

Function at 0x40906b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
jmp 0x40907c
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x200
jae 0x4090aa
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
cmp dword [eax + 0x41690c], 0
je 0x4090a8
push 0
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
push dword [eax + 0x41690c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x409075
leave
ret

Function at 0x409111
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40915c
cmp dword [ebp - 0x8c], 1
jne 0x40915c
push 0x4158cc
lea eax, [ebp - 0x80]
push eax
call fcn.0040aed0
pop ecx
pop ecx
test eax, eax
je 0x40915c
push 1
pop eax
jmp 0x40915e
xor eax, eax
leave
ret
Function at 0x409216
Capabilities:
Check if file exists
Create process on windows
Delete registry value
Get common file path
Get file attributes
Query environment variable
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
call fcn.0040906b
push 0
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x415288
call fcn.004054c9
pop ecx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x4152bc
call fcn.004054c9
pop ecx
push eax
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x714]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x714]
push eax
push 0x4158d8
lea eax, [ebp - 0x310]
push eax
call fcn.00409c85
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jbe 0x409414
lea eax, [ebp - 0x310]
push eax
push str._echo_off_r_n:repeat_r_ndel____1__r_nif_exist____1__goto_repeat_r_ndel___s_
lea eax, [ebp - 0x714]
push eax
call fcn.00409c85
add esp, 0xc
push 0
lea eax, [ebp - 0x718]
push eax
lea eax, [ebp - 0x714]
push eax
call fcn.00409f00
pop ecx
push eax
lea eax, [ebp - 0x714]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0
lea eax, [ebp - 0x76c]
push eax
call fcn.00409ce0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x75c]
push eax
call fcn.00409ce0
add esp, 0xc
mov dword [ebp - 0x750], 0x41817c
mov dword [ebp - 0x75c], 0x44
mov dword [ebp - 0x730], 1
and word [ebp - 0x72c], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4093ad
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
push str.__comspec____c__s__s
lea eax, [ebp - 0x714]
push eax
call fcn.00409c85
add esp, 0x10
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x76c]
push eax
lea eax, [ebp - 0x75c]
push eax
push 0
push 0
push 0x4008
push 1
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
leave
ret

Function at 0x4096de
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x409820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409843
xor eax, eax
jmp 0x409927
mov edx, dword [ebp - 4]
push edx
call fcn.0040a73f
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40985f
xor eax, eax
jmp 0x409927
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40988b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040a99e
add esp, 4
xor eax, eax
jmp 0x409927
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0x4159b8
mov ecx, dword [ebp - 0x10]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409919
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
cmp eax, 0xa28
jne 0x409919
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
and edx, 0xffff
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x884
je 0x4098e3
cmp dword [ebp - 0x18], 0xb4c
je 0x4098f6
jmp 0x409909
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040a99e
add esp, 4
mov eax, 1
jmp 0x409927
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040a99e
add esp, 4
mov eax, 2
jmp 0x409927
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040a99e
add esp, 4
xor eax, eax
jmp 0x409927
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040a99e
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f34d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415f48
cmp edx, dword [eax]
je 0x40f36f
add eax, 8
inc ecx
cmp eax, 0x415fd8
jl 0x40f360
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415f48]
jne 0x40f49d
mov eax, dword [0x4181a8]
cmp eax, 1
je 0x40f477
test eax, eax
jne 0x40f3a0
cmp dword [0x4159e4], 1
je 0x40f477
cmp edx, 0xfc
je 0x40f49d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f3d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409d40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409f00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f41a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409f00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4126cc
push edi
call fcn.0040a8a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409d40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409d50
lea eax, [ebp - 0xa0]
push 0x4126ac
push eax
call fcn.00409d50
push dword [esi + 0x415f4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409d50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410cd3
add esp, 0x2c
pop edi
jmp 0x40f49d
lea eax, [ebp + 8]
lea esi, [esi + 0x415f4c]
push 0
push eax
push dword [esi]
call fcn.00409f00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4069a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [eax]
push edi
push ebx
xor edi, edi
and esi, 7
mov dword [esp + 0xc], 0xffffffff
push ebp
mov edx, dword [esp + 0x18]
lea esp, [esp]
lea ebp, [edi + edx]
lea eax, [edx + 0x258]
cmp ebp, eax
jae 0x4069e2
lea ecx, [ecx]
mov cl, byte [ebp]
and cl, 0xfe
cmp cl, 0xe8
je 0x4069e2
inc ebp
cmp ebp, eax
jb 0x4069d2
mov edi, ebp
sub edi, edx
cmp ebp, eax
mov eax, edi
jae 0x406ad8
sub eax, dword [esp + 0x10]
cmp eax, 3
jbe 0x406a15
xor esi, esi
mov al, byte [ebp + 4]
mov dword [esp + 0x10], edi
test al, al
je 0x406a50
cmp al, 0xff
je 0x406a50
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x4069c2
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4069fb
movzx eax, byte [esi + 0x1000e87c]
mov ecx, ebp
sub ecx, eax
cmp byte [esi + 0x1000e874], 0
mov al, byte [ecx + 4]
je 0x406a3e
test al, al
je 0x406a3e
cmp al, 0xff
jne 0x4069fb
and esi, 3
add esi, esi
mov dword [esp + 0x10], edi
or esi, 1
inc edi
jmp 0x4069c2
movzx ecx, byte [ebp + 2]
movzx edx, al
movzx eax, byte [ebp + 3]
shl edx, 8
or edx, eax
movzx eax, byte [ebp + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea esp, [esp]
lea eax, [edi + edx + 5]
test esi, esi
je 0x406aae
movzx edx, byte [esi + 0x1000e87c]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x406a9b
cmp bl, 0xff
jne 0x406aae
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x406a72
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [ebp + 4], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [ebp + 3], dl
mov byte [ebp + 2], cl
mov byte [ebp + 1], al
add edi, 5
jmp 0x4069ba
sub eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, 3
jbe 0x406af1
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ecx
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x14]
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ecx
ret

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

Disassembly:
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x50], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x4c], edx
mov dword [eax + 0x54], edx
lea esi, [eax + 0x6c]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x406c39
pop esi
ret
Function at 0x4084a2
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x4084b2
pop edi
pop ebx
ret

Function at 0x4084e2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
or ecx, edx
mov edi, edi
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
sar ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [edi + ebx*4]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x4084f2
pop esi
pop ebp
pop ebx
ret

Function at 0x408792
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [esp], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
push ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
xor edx, edx
push edi
cmp edx, dword [esp + 0x1c]
jae 0x408905
mov eax, edx
or eax, 8
xor edi, edi
cmp eax, 1
je 0x40881c
lea ebx, [ebx]
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 4]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x4087f2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x4087d6
cmp edx, 0x10
jae 0x40889f
lea eax, [edx - 8]
mov dword [esp + 8], eax
lea esp, [esp]
cmp edx, dword [esp + 0x1c]
jae 0x408905
or eax, 8
xor edi, edi
cmp eax, 1
je 0x408883
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 0x104]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x408856
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, 0x10
jb 0x408842
cmp edx, dword [esp + 0x1c]
jae 0x408905
lea eax, [edx - 0x10]
mov dword [esp + 8], eax
lea ebx, [ebx]
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x4088e8
lea esp, [esp]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x4088c2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, dword [esp + 0x1c]
jb 0x4088b2
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x40a3b2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea eax, [edi + 0x3234c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jmp 0x40a3d2
xor edx, edx
lea ecx, [edx + 1]
mov dword [esp + 0xc], 4
lea ecx, [ecx]
movzx ebx, word [edi + ecx*2 + 0x329f0]
mov eax, esi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [edi + ebx*4 + 0x30c9c]
add ecx, ecx
shr esi, 1
or ecx, eax
sub dword [esp + 0xc], 1
jne 0x40a3e2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x40a3d2
pop esi
pop ebp
mov dword [edi + 0x3238c], 0
pop ebx
add esp, 0xc
ret
Function at 0x40a442
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov eax, 4
push edi
mov dword [esp + 0x18], eax
movzx ebp, byte [edx + eax + 0x3049c]
mov ecx, ebp
mov esi, ebp
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov edi, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], 0
sub edi, esi
mov ebx, 1
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40a4d4
jmp 0x40a496
mov ebp, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, ebp
mov eax, edi
and eax, 1
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x3290a]
mov ebp, eax
neg ebp
sar ebp, 4
shr ecx, 4
and ebp, 0x7f
xor ecx, ebp
mov ecx, dword [edx + ecx*4 + 0x30c9c]
add dword [esp + 0x10], ecx
add ebx, ebx
shr edi, 1
or ebx, eax
sub dword [esp + 0x14], 1
jne 0x40a492
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x20], ecx
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x80
jb 0x40a455
lea eax, [edx + 0x3270c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
sub eax, edx
lea ebp, [edx + 0x31b54]
sub eax, 0x31b4c
lea edi, [edx + 0x3174c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 4
jmp 0x40a522
xor ebx, ebx
cmp dword [edx + 0x32390], ebx
jbe 0x40a57d
lea ebx, [ebx]
mov eax, ebx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x40a571
lea esp, [esp]
mov ebp, dword [esp + 0x10]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebp + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add esi, dword [edx + ebp*4 + 0x30c9c]
mov eax, ecx
cmp eax, 1
jne 0x40a542
mov ebp, dword [esp + 0x18]
mov dword [edi + ebx*4], esi
inc ebx
cmp ebx, dword [edx + 0x32390]
jb 0x40a532
mov eax, 0xe
cmp dword [edx + 0x32390], eax
jbe 0x40a5a0
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x32390]
jb 0x40a58a
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebp], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp + 4], ecx
mov eax, 4
lea ecx, [ebp + 8]
lea ecx, [ecx]
movzx esi, byte [edx + eax + 0x3049c]
mov esi, dword [edi + esi*4]
mov ebx, dword [esp + 0x14]
add esi, dword [ebx + ecx]
inc eax
mov dword [ecx], esi
add ecx, 4
cmp eax, 0x80
jb 0x40a5c2
sub dword [esp + 0x10], 0xffffff80
sub dword [esp + 0x14], 0x200
add ebp, 0x200
add edi, 0x100
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebp
jne 0x40a522
pop edi
pop esi
pop ebp
mov dword [edx + 0x3baf0], 0
pop ebx
add esp, 0x210
ret