joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [esp + 0x5a]
push 0
push eax
mov dword [esp + 0x18], 1
movsw word es:[edi], word [esi]
call fcn.004660d0
add esp, 0xc
test ebx, ebx
jne 0x401c71
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00466d50
add esp, 0x214
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
push 2
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c58
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push str.Start
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00466d50
add esp, 0x214
ret
Function at 0x401f40
Capabilities:
Start service

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [0x49ec54]
mov edx, dword [0x49ec58]
mov eax, dword [str.Estdlock]
push ebx
push ebp
push esi
push edi
push 0x1f6
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x49ec5c]
mov dword [esp + 0x18], ecx
mov cx, word [0x49ec60]
lea edx, [esp + 0x26]
push ebp
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call fcn.004660d0
add esp, 0xc
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402015
push 0xf003f
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402005
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
jne 0x401ffe
call fcn.00402140
xor edi, edi
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0x214
ret

Function at 0x402700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402733
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40275e
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40275e
cmp esi, dword [esp + 4]
jne 0x40275e
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x402770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4027a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4027ce
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4027ce
cmp esi, dword [esp + 4]
jne 0x4027ce
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x402940
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor edx, edx
div dword [esi + 8]
push edi
mov ebp, 1
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.00402840
mov ecx, dword [esi + 8]
mov ebx, eax
mov eax, dword [esp + 0x3c]
xor edx, edx
div ecx
add esp, 8
sub ecx, edx
mov edi, ecx
cmp edi, ebp
jbe 0x402986
mov edi, ebp
test ebx, ebx
jne 0x4029a1
mov ecx, dword [esp + 0x30]
mov ebx, edi
shl ebx, 9
push ebx
push 0
push ecx
call fcn.004660d0
add esp, 0xc
jmp 0x402a02
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
lea eax, [edx + ebx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4029d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402a1d
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x1c]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a1d
cmp ebx, dword [esp + 0x18]
jne 0x402a1d
mov dword [esp + 0x1c], 1
add dword [esp + 0x34], edi
add dword [esp + 0x30], ebx
inc dword [esp + 0x14]
sub ebp, edi
test ebp, ebp
je 0x402a27
mov esi, dword [esp + 0x2c]
jmp 0x402960
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x402a40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push 1
push eax
mov esi, ebp
call fcn.00402840
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x402b0b
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
sub edi, edx
cmp edi, eax
jbe 0x402a8a
mov edi, eax
mov esi, dword [ebp]
lea eax, [edx + ecx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402abd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402b0b
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402b0b
cmp ebx, dword [esp + 0x14]
jne 0x402b0b
mov eax, dword [esp + 0x34]
add dword [esp + 0x30], edi
add dword [esp + 0x2c], ebx
inc dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x34], eax
test eax, eax
jne 0x402a58
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x19000
call fcn.004435c9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402b4c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x19000
push 0
push ebx
call fcn.004660d0
mov esi, dword [esp + 0x3c]
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
test ebp, ebp
je 0x402bec
mov ecx, 0x200
mul ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
mov edi, ebp
cmp ebp, 0xc8
jbe 0x402b8f
mov edi, 0xc8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x34]
push eax
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402c2a
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
mov esi, edi
shl esi, 9
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402c2a
cmp esi, dword [esp + 0x14]
jne 0x402c2a
sub ebp, edi
jne 0x402b80
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea eax, [ebx + 4]
mov dword [ebx], 0xfffffff8
mov dword [eax], 0xffffffff
add eax, 4
mov ecx, 2
cmp edx, 0x6400
jbe 0x402c4c
push ebx
call fcn.004435be
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.004435be
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
test edx, edx
je 0x402c5b
mov dword [eax], ecx
dec edx
add eax, 4
inc ecx
test edx, edx
jne 0x402c50
mov eax, dword [esi + 8]
mov ecx, 0xc8
cmp eax, ecx
jae 0x402c69
mov ecx, eax
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x2c]
push ebx
call fcn.00402770
add esp, 4
test eax, eax
je 0x402c2a
push ebx
call fcn.004435be
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareLenovo_
push closesocket
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404b6c
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x404c60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
mov edi, ecx
push 0
push edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x404ca8
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466d50
add esp, 0x220
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004435c9
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404cfa
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404cf1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d14
push ebp
call fcn.004435be
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466d50
add esp, 0x220
ret
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x404db0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x404d30
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.00468ca3
add esp, 0x10
push 0x49ebb0
lea edx, [esp + 0x28]
push edx
call ebx
push 0x49ebc0
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d92
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x404d30
jmp 0x404daf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404da0
pop ebx
push ebp
call fcn.004435be
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00466d50
add esp, 0x220
ret
Function at 0x405010
Capabilities:
Access the windows event log

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.estdisk
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
jne 0x405044
push str.Cannot_register_the_event_source.
call fcn.0046916b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 1
push 0
push 0xc0020001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x405072
push str.Cannot_report_the_event.
call fcn.0046916b
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
ret
Function at 0x4053e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40544f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push str.SDiskPath
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call ebp
xor eax, eax
test edi, edi
sete al
test eax, eax
jne 0x4054b2
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SoftwareLenovo_
push closesocket
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40549e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push esi
push edi
push edi
push str.SDiskPath
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call ebp
xor edx, edx
test edi, edi
sete dl
mov edi, edx
test edi, edi
jne 0x4054b0
push esi
call fcn.00405160
add esp, 4
test eax, eax
je 0x4054b0
call fcn.00405090
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x406150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push ebp
call fcn.0044358f
mov edi, eax
add esp, 4
test edi, edi
jne 0x40616a
pop edi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x4061b3
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call fcn.004435be
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x4068c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x140
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x13c], eax
mov dl, byte [ecx]
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
cmp dl, 2
jne 0x406a04
lea esi, [ecx + 4]
mov ecx, 0x42
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add eax, 2
mov edi, 0x80
jmp 0x406914
mov dl, byte [esp + 0x18]
inc bl
movzx ecx, bl
mov bl, byte [esp + ecx + 0x48]
add dl, bl
movzx edx, dl
mov dword [esp + 0x18], edx
lea edx, [esp + edx + 0x48]
mov dword [esp + 0x1c], edx
mov dl, byte [edx]
mov byte [esp + ecx + 0x48], dl
mov esi, dword [esp + 0x1c]
add dl, bl
mov byte [esi], bl
movzx edx, dl
movzx edx, byte [esp + edx + 0x48]
xor byte [eax - 2], dl
inc cl
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x48]
mov byte [esp + 0x17], bl
mov byte [esp + 0x17], dl
mov dl, byte [esp + 0x18]
add dl, byte [esp + 0x17]
movzx ebx, byte [esp + 0x17]
movzx edx, dl
lea esi, [esp + edx + 0x48]
mov dword [esp + 0x18], edx
mov dl, byte [esi]
mov byte [esp + ecx + 0x48], dl
add dl, byte [esp + 0x17]
mov byte [esi], bl
movzx edx, dl
movzx edx, byte [esp + edx + 0x48]
xor byte [eax - 1], dl
inc cl
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x48]
mov byte [esp + 0x17], dl
mov dl, byte [esp + 0x18]
add dl, byte [esp + 0x17]
movzx ebx, byte [esp + 0x17]
movzx edx, dl
lea esi, [esp + edx + 0x48]
mov dword [esp + 0x18], edx
mov dl, byte [esi]
mov byte [esp + ecx + 0x48], dl
add dl, byte [esp + 0x17]
mov byte [esi], bl
inc cl
movzx edx, dl
movzx edx, byte [esp + edx + 0x48]
xor byte [eax], dl
movzx ebx, cl
mov dl, byte [esp + ebx + 0x48]
mov cl, byte [esp + 0x18]
add cl, dl
movzx ecx, cl
lea esi, [esp + ecx + 0x48]
mov dword [esp + 0x18], ecx
mov cl, byte [esi]
mov byte [esp + ebx + 0x48], cl
add cl, dl
movzx ecx, cl
mov byte [esi], dl
movzx edx, byte [esp + ecx + 0x48]
xor byte [eax + 1], dl
add eax, 4
sub edi, 1
jne 0x406910
jmp 0x406ab5
cmp dl, 3
je 0x406ab5
cmp dl, 4
je 0x406ab5
cmp dl, 5
je 0x406ab5
cmp dl, 1
jne 0x406ab5
mov edi, dword [ecx + 0x1e4]
mov ebx, dword [ecx + 0x1e8]
mov ebp, dword [ecx + 0x1ec]
mov esi, eax
mov eax, dword [ecx + 0x1f0]
add ecx, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x20
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004090d0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
xor dword [esp + 0x30], ebp
mov ebp, dword [esi + 8]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
xor eax, edi
mov edi, dword [esi]
xor ecx, ebx
mov ebx, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 8
add esi, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x3c], edx
jne 0x406a55
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0x140
ret
Function at 0x406e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
lea edi, [esp + 0x34]
call fcn.00408a20
mov ecx, dword [esp + 0x220]
mov edi, dword [esp + 0x214]
mov ebp, dword [esp + 0x21c]
shr ebx, 4
mov eax, ebx
mov ebx, dword [esp + 0x218]
mov dword [esp + 0x30], ecx
test eax, eax
jbe 0x406ee0
mov dword [esp + 0x10], eax
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.004090d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor dword [esp + 0x24], ebp
mov ebp, dword [esi + 8]
xor dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
xor eax, edi
mov edi, dword [esi]
xor ecx, ebx
mov ebx, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 8
add esi, 0x40
sub dword [esp + 0x10], 1
mov dword [esp + 0x30], edx
jne 0x406e80
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0x21c
ret

Function at 0x406f00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push edi
lea edi, [esp + 0x20]
call fcn.00408a20
mov eax, dword [esp + 0x200]
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x208]
mov edi, dword [esp + 0x20c]
shr esi, 4
mov ebx, esi
test ebx, ebx
jbe 0x406fa7
lea esi, [ebp + 8]
xor eax, dword [esi - 8]
xor ecx, dword [esi - 4]
xor edx, dword [esi]
xor edi, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
call fcn.00408af0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
add esp, 8
add esi, 0x10
sub ebx, 1
jne 0x406f57
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0x208
ret
Function at 0x408150
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x4c4720], 0
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, edx
je 0x40824c
test eax, eax
je 0x40824c
push esi
mov esi, dword [0x4c4728]
xor edx, edx
div esi
test edx, edx
jne 0x40824b
push ebp
cmp ecx, 1
jne 0x4081dc
mov ebp, edi
test eax, eax
jbe 0x40824a
sub ebx, edi
mov dword [esp + 0x10], eax
lea edi, [ebx + ebp]
push edi
mov ecx, ebp
call fcn.00407ed0
add esp, 4
xor ecx, ecx
mov eax, edi
test esi, esi
jle 0x4081be
lea ecx, [ecx]
mov dl, byte [ecx + 0x4c2d80]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, esi
jl 0x4081b0
push esi
push ebp
push 0x4c2d80
call fcn.00466150
add esp, 0xc
add ebp, esi
sub dword [esp + 0x10], 1
jne 0x408197
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
cmp ecx, 2
jne 0x40822d
test eax, eax
jbe 0x40824a
mov ebp, ebx
sub ebp, edi
mov dword [esp + 0x10], eax
lea ecx, [ecx]
lea ebx, [edi + ebp]
push ebx
call fcn.00407c50
add esp, 4
xor ecx, ecx
mov eax, ebx
test esi, esi
jle 0x40820f
mov dl, byte [ecx + edi]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, esi
jl 0x408204
push esi
push edi
push 0x4c2d80
call fcn.00466150
add esp, 0xc
add edi, esi
sub dword [esp + 0x10], 1
jne 0x4081f0
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
test eax, eax
jbe 0x40824a
sub ebx, edi
mov ebp, eax
lea eax, [ebx + edi]
push eax
mov ecx, edi
call fcn.00407ed0
add esp, 4
add edi, esi
sub ebp, 1
jne 0x408235
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret

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

Disassembly:
mov edx, dword [eax + 4]
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [eax]
test ebp, ebp
jbe 0x4082f7
push ebx
push esi
inc cl
movzx esi, cl
mov bl, byte [eax + esi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + esi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [edi], cl
inc edi
sub ebp, 1
mov dword [esp + 0x14], esi
mov ecx, esi
jne 0x4082c3
pop esi
pop ebx
pop edi
mov dword [eax + 4], edx
mov dword [eax], ecx
pop ebp
ret