joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441ed0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov eax, 0x2020
push ebx
call fcn.005e3260
xor esi, esi
sub esp, eax
mov ebx, ecx
mov eax, dword [esp + 0x2034]
mov word [esp + 0x20], si
lea esi, [esp + 0x20]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebx + 8]
sub esp, 0xc
mov dword [esp], esi
mov dword [ebx], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov edx, edi
sar edx, 1
cmp edx, 7
mov dword [esp + 0x1c], edx
ja 0x441f50
cmp edx, 1
mov eax, dword [ebx]
jne 0x441f90
movzx ecx, word [esp + 0x20]
mov word [eax], cx
xor ecx, ecx
mov dword [ebx + 4], edx
mov word [eax + edx*2], cx
add esp, 0x2020
mov eax, ebx
pop ebx
pop esi
pop edi
ret 8
lea eax, [esp + 0x1c]
mov dword [esp + 4], 0
mov ecx, ebx
mov dword [esp], eax
call fcn.006c61c0
sub esp, 8
mov dword [ebx], eax
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
jmp 0x441f39
test edx, edx
je 0x441f39
jmp 0x441f72

Function at 0x441fa0
Capabilities:
Get disk information

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x441fc9
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
cmp eax, 1
jbe 0x441fc9
cmp word [ebx + 2], 0x3a
je 0x442015
mov eax, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
je 0x441ff3
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x34
pop ebx
pop esi
ret 8
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_canWriteFile_:__wfopen_failed:__S_n
mov dword [esp], 0x849160
call fcn.0041f010
add esp, 0x34
xor eax, eax
pop ebx
pop esi
ret 8
lea esi, [esp + 0x28]
mov dword [esp + 4], 0x73b93e
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
movzx eax, word [ebx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x442090
mov eax, dword [esp + 0x24]
shr eax, 0x13
xor eax, 1
and eax, 1
jmp 0x441feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.Error:_canWriteFile_:_GetVolumeInformation_1__failed_with_error__d_n
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp], 0x849160
call fcn.0041f010
cmp esi, 3
jne 0x442079
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Path_not_found:__S_n
mov dword [esp], 0x849160
call fcn.0041f010
jmp 0x442079
Function at 0x4420d0
Capabilities:
Delete file
Get common file path
Get disk information

Disassembly:
push esi
push ebx
sub esp, 0x234
mov ebx, dword [esp + 0x240]
mov dword [esp + 0x24], 0
mov dword [esp], ebx
call fcn.00441300
test ebx, ebx
je 0x442107
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
cmp eax, 1
jbe 0x442107
cmp word [ebx + 2], 0x3a
je 0x442150
lea esi, [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SDIO
mov dword [esp], ebx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
mov dword [esp + 0x24], eax
je 0x442143
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x234
pop ebx
pop esi
ret 4
lea esi, [esp + 0x28]
mov dword [esp + 4], 0x73b93e
mov dword [esp], esi
call sub.msvcrt.dll_wcscpy
movzx eax, word [ebx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x4421c3
mov eax, dword [esp + 0x24]
shr eax, 0x13
xor eax, 1
and eax, 1
jmp 0x442143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.Error:_canWriteDirectory_:_GetVolumeInformation_1__failed_with_error__d_n
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp], 0x849160
call fcn.0041f010
cmp esi, 3
jne 0x4421b4
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Path_not_found:__S_n
mov dword [esp], 0x849160
call fcn.0041f010
jmp 0x4421b4

Function at 0x442210
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
add esp, 0x1c
ret 4
Function at 0x442260
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0xd
sub esp, 0x6c
lea edx, [esp + 0x2c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x24], 0x3c
mov edi, edx
mov dword [esp + 0x28], 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], str.Run__S__S__d__d__n
mov dword [esp], 0x849160
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebp
call fcn.0041f5d0
mov dword [esp + 4], 0x73ba38
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x442360
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x73ba38
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
test ebx, ebx
je 0x442352
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov ebx, dword [esp + 0x20]
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
sub esp, 4
jmp 0x44231a
Function at 0x442680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x70], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp], 0x73ba42
call edi
sub esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.Wow64DisableWow64FsRedirection
mov dword [esp], eax
call esi
sub esp, 8
mov ebx, eax
mov dword [esp], 0x73ba42
call edi
sub esp, 4
mov dword [esp + 4], str.Wow64RevertWow64FsRedirection
mov dword [esp], eax
call esi
sub esp, 8
test ebx, ebx
mov dword [ebp - 0x80], eax
setne dl
test eax, eax
setne al
and dl, al
mov byte [ebp - 0x79], dl
je 0x4428b0
lea eax, [ebp - 0x70]
mov dword [esp], eax
call ebx
sub esp, 4
test eax, eax
setne byte [ebp - 0x7a]
lea ebx, [ebp - 0x4c]
mov dword [esp], str._windir_System32control.exe
mov dword [ebp - 0x54], ebx
call sub.msvcrt.dll_wcslen
lea esi, [eax + eax]
mov ecx, esi
sar ecx, 1
cmp ecx, 7
mov edx, ecx
mov dword [ebp - 0x6c], ecx
ja 0x442861
cmp ecx, 1
mov eax, dword [ebp - 0x54]
jne 0x4428a2
movzx ecx, word [str._windir_System32control.exe]
lea edi, [ebp - 0x6c]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x50], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x54]
mov dword [esp], 0x869458
mov ecx, edi
mov dword [esp + 4], eax
call fcn.00441ed0
mov eax, dword [ebp - 0x54]
sub esp, 8
cmp eax, ebx
je 0x442772
mov dword [esp], eax
call fcn.006febf0
xor eax, eax
mov ecx, 0xd
mov edi, ebx
rep stosd dword es:[edi], eax
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 4], str.Run__S__S__d__d__n
mov dword [esp], 0x849160
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 1
call fcn.0041f5d0
mov dword [esp + 4], 0x73ba38
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x442850
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x73ba38
mov dword [esp], 0
mov dword [esp + 8], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
cmp byte [ebp - 0x79], 0
je 0x44282f
cmp byte [ebp - 0x7a], 0
je 0x44282f
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x80]
call eax
sub esp, 4
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x64]
cmp eax, edx
je 0x442841
mov dword [esp], eax
call fcn.006febf0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
sub esp, 4
jmp 0x442815
lea edi, [ebp - 0x6c]
lea ecx, [ebp - 0x54]
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.006c61c0
mov edx, dword [ebp - 0x6c]
sub esp, 8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str._windir_System32control.exe
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
jmp 0x442742
test ecx, ecx
lea edi, [ebp - 0x6c]
je 0x442742
jmp 0x442883
mov byte [ebp - 0x7a], 0
jmp 0x442702
Function at 0x4437a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor ebx, ebx
sub esp, 0x48
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00409ba0
sub esp, 8
cmp dword [esp + 0x28], 4
jg 0x4437d1
add esp, 0x48
mov eax, ebx
pop ebx
ret 4
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x443890
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], 4
mov eax, dword [esp + 0x30]
cmp edx, 5
je 0x4438e3
cmp edx, 0xb
mov ebx, 1
je 0x443878
lea edx, [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], str.RPSessionInterval
mov dword [esp], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4438c0
cmp dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
sete bl
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, ebx
add esp, 0x48
pop ebx
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegOpenKeyEx__d_n
mov ebx, 1
mov dword [esp], 0x849160
call fcn.0041f010
add esp, 0x48
mov eax, ebx
pop ebx
ret 4
cmp eax, 2
je 0x443930
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegQueryValueEx__d_n
mov dword [esp], 0x849160
call fcn.0041f010
mov eax, dword [esp + 0x30]
jmp 0x443878
lea edx, [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisableSR
mov dword [esp], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x443940
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
sete bl
jmp 0x443878
mov eax, dword [esp + 0x30]
xor ebx, ebx
jmp 0x443878
cmp eax, 2
je 0x4438dd
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SystemProtectionEnabled__:_error_in_RegQueryValueEx__d_n
mov ebx, 1
mov dword [esp], 0x849160
call fcn.0041f010
mov eax, dword [esp + 0x30]
jmp 0x443878
Function at 0x443970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0x38
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x443a13
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov ebx, 0xffffffff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [esp + 0x20]
cmove ebx, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
mov eax, ebx
pop ebx
ret
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_GetRestorePointCreationFrequency__:_error_in_RegOpenKeyEx__d_n
mov ebx, 0xfffffffe
mov dword [esp], 0x849160
call fcn.0041f010
jmp 0x443a0c

Function at 0x443a40
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
sub esp, 0x38
mov ebx, dword [esp + 0x40]
cmp ebx, 0xfffffffe
jne 0x443a54
add esp, 0x38
pop ebx
ret 4
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20106
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x443ae0
cmp ebx, 0xffffffff
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
je 0x443b00
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov dword [esp + 0x10], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
pop ebx
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR_in_SetRestorePointCreationFrequency__:_error_in_RegOpenKeyEx__d_n
mov dword [esp], 0x849160
call fcn.0041f010
add esp, 0x38
pop ebx
ret 4
mov dword [esp + 4], str.SystemRestorePointCreationFrequency
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
sub esp, 8
jmp 0x443ac9
Function at 0x447f20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x21e]
lea ecx, [ebp - 0x230]
sub esp, 0x244
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], pe_nt_image_headers32
mov dword [ebp - 0x228], eax
xor eax, eax
mov byte [ebp - 0x220], 0
mov word [ebp - 0x21e], ax
mov eax, dword [ebp + 8]
mov dword [ebp - method.Pg.virtual_0], vtable.Pg.0
mov dword [esp], eax
call fcn.00403e10
mov ebx, dword [ebp - 0x228]
sub esp, 4
movzx eax, word [ebx]
test ax, ax
je 0x448080
mov edx, ebx
jmp 0x447f9e
add edx, 2
test cx, cx
mov eax, ecx
je 0x448080
cmp ax, 0x5f
movzx ecx, word [edx + 2]
jne 0x447f90
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x447f90
xor eax, eax
mov word [edx], ax
mov eax, dword [0x720348]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [esp], ebx
call dword [eax + 0x18]
sub esp, 4
test eax, eax
je 0x448080
lea ecx, [ebp - 0x10a]
lea edx, [ebp - 0x11c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x8511a0
mov dword [esp + 4], str._ws_s
mov dword [ebp - 0x114], ecx
mov dword [esp], edx
xor ecx, ecx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x110], pe_nt_image_headers32
mov byte [ebp - 0x10c], 0
mov dword [ebp - method.Pg.virtual_0], vtable.Pg.0
mov word [ebp - 0x10a], cx
call fcn.00403a60
mov eax, dword [ebp - 0x114]
mov dword [esp + 4], str.Old_file:__S_n
mov dword [esp], 0x849160
mov dword [esp + 8], eax
call fcn.0041f5d0
mov eax, dword [ebp - 0x114]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wremove]
mov eax, dword [ebp - 0x118]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x448080
mov dword [esp], eax
call fcn.006febd0
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x44809c
mov dword [esp], eax
call fcn.006febd0
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x467050
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov esi, ecx
sub esp, 0x20
mov dword [esp + 0x14], eax
movzx eax, word [eax]
mov ebp, dword [esp + 0x38]
mov dword [esp + 4], ecx
shr ax, 4
movzx ecx, ax
xor eax, 0x7f
movzx eax, ax
mov ebx, dword [ebp + ecx*4]
mov eax, dword [ebp + eax*4]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
movzx eax, word [edi + 2]
mov word [esp], ax
shr ax, 4
movzx ecx, ax
xor eax, 0x7f
test esi, esi
movzx eax, ax
mov ebx, dword [ebp + ecx*4]
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
je 0x467114
shl edx, 4
add edi, 4
mov dword [esp], 0
lea esi, [esi]
mov eax, dword [esp]
xor esi, esi
or eax, 8
nop
lea esi, [esi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
lea ebx, [edi + ecx*2]
and eax, 0x7ff
movzx ebx, word [ebx + edx]
xor eax, ebx
sar eax, 4
add esi, dword [ebp + eax*4]
cmp ecx, 1
mov eax, ecx
jne 0x4670d0
add esi, dword [esp + 8]
mov eax, dword [esp]
mov ebx, dword [esp + 0x34]
mov dword [ebx + eax*4], esi
add eax, 1
cmp eax, 8
mov dword [esp], eax
je 0x467120
cmp dword [esp + 4], eax
jne 0x4670c0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
cmp eax, 8
jbe 0x467114
sub eax, 8
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp], 0
add edi, 0x104
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp]
or eax, 8
xor esi, esi
mov esi, esi
lea edi, [edi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
lea ebx, [edi + ecx*2]
and eax, 0x7ff
movzx ebx, word [ebx + edx]
xor eax, ebx
sar eax, 4
add esi, dword [ebp + eax*4]
cmp ecx, 1
mov eax, ecx
jne 0x467160
add esi, dword [esp + 8]
mov eax, dword [esp]
mov ebx, dword [esp + 0x34]
cmp eax, 7
mov dword [ebx + eax*4 + 0x20], esi
je 0x4671b0
add dword [esp], 1
mov eax, dword [esp]
cmp dword [esp + 0xc], eax
jne 0x467152
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
cmp eax, 0x10
jbe 0x467114
sub eax, 0x10
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
add esi, 0x204
add eax, edx
mov dword [esp + 4], eax
lea esi, [esi]
mov eax, edi
xor ebx, ebx
or ah, 1
mov esi, esi
lea edi, [edi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
movzx edx, word [esi + ecx*2]
and eax, 0x7ff
xor edx, eax
mov eax, ecx
sar edx, 4
add ebx, dword [ebp + edx*4]
cmp ecx, 1
jne 0x4671f0
add ebx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [eax + edi*4 + 0x40], ebx
add edi, 1
cmp dword [esp], edi
jne 0x4671e0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4672f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
lea esi, [eax + 0x30f40]
sub esp, 0x21c
mov dword [esp + 0x10], eax
add eax, 0x32b74
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ebx, 0x7fffffff
xor ebp, ebp
movzx edx, byte [eax + esi + 0x30740]
mov eax, edx
mov ecx, edx
sub ebx, edx
and eax, 1
shr ecx, 1
or eax, 2
sub ecx, 1
movzx eax, al
shl eax, cl
sub esi, eax
add eax, ebx
add eax, eax
test ecx, ecx
mov dword [esp], eax
je 0x467393
mov ebx, 1
nop
mov eax, dword [esp + 8]
mov edx, dword [esp]
add ebx, ebx
mov edi, esi
shr esi, 1
and edi, 1
add eax, ebx
or ebx, edi
movzx eax, word [eax + edx]
mov edx, edi
neg edx
and edx, 0x7ff
xor eax, edx
mov edx, dword [esp + 4]
sar eax, 4
add ebp, dword [edx + eax*4]
sub ecx, 1
jne 0x467360
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x1c], ebp
add eax, 1
mov dword [esp + 0xc], eax
add eax, 0xffffff80
jne 0x467320
mov esi, dword [esp + 0x10]
lea ebx, [esi + 0x31dd4]
lea ebp, [esi + 0x32974]
lea ecx, [esi + 0x319d4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 0x88]
test eax, eax
je 0x467468
mov dword [esp + 8], esi
mov edi, dword [esp + 0xc]
xor ebp, ebp
mov esi, dword [esp + 4]
mov dword [esp + 0x14], ebx
mov dword [esp], ecx
lea esi, [esi]
mov eax, ebp
xor ebx, ebx
or eax, 0x40
mov esi, esi
lea edi, [edi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
movzx edx, word [edi + ecx*2]
and eax, 0x7ff
xor edx, eax
mov eax, ecx
sar edx, 4
add ebx, dword [esi + edx*4]
cmp ecx, 1
jne 0x467400
mov eax, dword [esp]
mov dword [eax + ebp*4], ebx
mov eax, dword [esp + 8]
add ebp, 1
mov eax, dword [eax + 0x88]
cmp eax, ebp
ja 0x4673f0
cmp eax, 0xe
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp]
mov esi, dword [esp + 8]
jbe 0x467468
mov eax, 0xe
lea esi, [esi]
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [ecx + eax*4], edx
add eax, 1
cmp dword [esi + 0x88], eax
ja 0x467450
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, 4
movzx edi, byte [esi + eax + 0x30740]
mov edx, dword [esp + eax*4 + 0x1c]
add edx, dword [ecx + edi*4]
mov dword [ebx + eax*4], edx
add eax, 1
cmp eax, 0x80
jne 0x467483
add ecx, 0x100
add ebx, 0x200
sub dword [esp + 0xc], 0xffffff80
cmp dword [esp + 0x18], ecx
jne 0x4673c9
mov eax, dword [esp + 0x10]
mov dword [eax + 0x80], 0
add esp, 0x21c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x46d0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 0x30f40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x46d1b0
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x2c]
mov edi, 1
shl edi, cl
sub eax, 1
test edi, edi
mov dword [ebp + 0x378c4], eax
mov dword [ebp + 0x3307c], eax
je 0x46d1a0
lea esi, [ebp + 0x32c78]
xor ebx, ebx
mov ecx, eax
mov dword [esp + 8], esi
lea esi, [ebp + 0x33080]
nop
lea esi, [esi]
mov eax, dword [esp + 0xc]
mov dword [esp], esi
mov edx, ebx
add esi, 0x440
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
call fcn.00467050
mov ecx, dword [ebp + 0x3307c]
mov dword [ebp + ebx*4 + 0x37480], ecx
add ebx, 1
cmp edi, ebx
jne 0x46d110
mov ecx, dword [ebp + 0x50]
mov edi, 1
shl edi, cl
test edi, edi
je 0x46d1a0
lea eax, [ebp + 0x374c0]
mov ecx, dword [ebp + 0x378c4]
lea esi, [ebp + 0x378c8]
xor ebx, ebx
mov dword [esp + 8], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0xc]
mov dword [esp], esi
mov edx, ebx
add esi, 0x440
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
call fcn.00467050
mov ecx, dword [ebp + 0x378c4]
mov dword [ebp + ebx*4 + 0x3bcc8], ecx
add ebx, 1
cmp edi, ebx
jne 0x46d170
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
lea ebx, [ebp + 0x30f40]
xor esi, esi
call fcn.004672f0
movzx eax, word [ebp + 0x32c5a]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], eax
lea eax, [ebp + 0x32c58]
mov dword [esp + 8], eax
nop
lea esi, [esi]
mov eax, esi
mov edx, dword [esp + 8]
mov edi, esi
and eax, 1
shr edi, 1
mov ecx, eax
neg eax
and edi, 1
or ecx, 2
and eax, 0x7ff
xor eax, dword [esp + 0x10]
movzx edx, word [edx + ecx*2]
mov ebp, edi
neg ebp
and ebp, 0x7ff
sar eax, 4
xor edx, ebp
mov ebp, dword [ebx + eax*4]
lea eax, [ecx + ecx]
sar edx, 4
or eax, edi
mov edi, dword [esp + 8]
add ebp, dword [ebx + edx*4]
mov edx, esi
shr edx, 2
and edx, 1
movzx ecx, word [edi + eax*2]
add eax, eax
mov edi, edx
or eax, edx
mov edx, esi
neg edi
shr edx, 3
and edi, 0x7ff
neg edx
xor ecx, edi
mov edi, dword [esp + 8]
and edx, 0x7ff
sar ecx, 4
add ebp, dword [ebx + ecx*4]
movzx eax, word [edi + eax*2]
xor eax, edx
sar eax, 4
add ebp, dword [ebx + eax*4]
mov eax, dword [esp + 0x28]
mov dword [eax + esi*4 + 0x325d4], ebp
add esi, 1
cmp esi, 0x10
jne 0x46d1e0
mov ebp, eax
mov dword [eax + 0x84], 0
jmp 0x46d0d0