joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40498a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.004048db
mov edi, eax
cmp edi, ebx
je 0x4049f8
cmp dword [ebp - 0x218], ebx
je 0x4049f1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x404abb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404a1c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0040498a
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x404a85
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x404a00
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x404a67
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x404aa1
mov esi, eax
call fcn.004042cb
jmp 0x404aa7
cmp dword [ebp - 0x218], ebx
je 0x404a99
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x404abb
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x404ab9
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret 4
Function at 0x404d93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x404de5
call fcn.004041d9
mov esi, eax
jmp 0x404eaa
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x404dfe
call fcn.004041d9
jmp 0x404e9c
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x404df4
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x404e2e
mov esi, 0x8007000e
jmp 0x404e9e
push 2
push eax
call fcn.00412507
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x404e4e
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.004113a4
jmp 0x404e5a
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x404e27
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x404df4
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x414]
call fcn.0040584f
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x404ec3
lea eax, [ebp - 0x408]
call fcn.0040cdf0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret 0xc
Function at 0x405fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00416210
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406043
cmp dword [ebp - 0x114], 5
jae 0x40603f
cmp dword [ebp - 0x114], 4
jne 0x406043
cmp dword [ebp - 0x110], 0x5a
jb 0x406043
xor eax, eax
jmp 0x406046
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416201
leave
ret
Function at 0x40946e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
lea esi, [ebx + 0x1e0]
call fcn.0040642d
cmp dword [ebx + 0x58], 0xffffffff
jle 0x4094e5
cmp byte [ebx + 0x322], 2
jb 0x4094e5
lea eax, [ebx + 0x354]
lea edi, [ebx + 0x204]
call fcn.00403316
lea eax, [ebx + 0x358]
lea edi, [ebx + 0x208]
call fcn.00403316
jmp 0x409504
mov edi, 0x42c8e4
push edi
lea eax, [ebx + 0x204]
push eax
call fcn.004028bb
push edi
lea eax, [ebx + 0x208]
push eax
call fcn.004028bb
push 1
push 0
push dword [ebx + 0x1e0]
mov dword [ebx + 0x200], 3
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004019ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416201
leave
ret
Function at 0x409b0e
Capabilities:
Hide graphical window

Disassembly:
push ecx
and dword [0x4365ac], 0
push ebx
push esi
push 0
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, edi
call fcn.0040946e
cmp dword [edi + 0x210], 0
mov eax, dword [edi + 0x1e0]
mov dword [edi + 0x2c], eax
je 0x409b62
cmp byte [edi + 0x2ed], 0
jne 0x409b50
lea esi, [edi + 0x214]
call fcn.00403f5c
mov eax, dword [edi + 0x210]
and dword [edi + 0x1d8], 0
mov ecx, dword [eax]
push eax
call dword [ecx]
or dword [edi + 0x58], 0xffffffff
push edi
call fcn.0040987f
pop esi
pop ebx
pop ecx
ret
Function at 0x40aca8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push edi
xor edi, edi
cmp dword [0x4365a0], edi
sete al
mov dword [0x4365a0], eax
cmp eax, edi
je 0x40adda
lea eax, [ebx + 0x364]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
push 1
mov dword [ebp - 0x54], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x1b8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call esi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
lea esi, [ebx + 0x390]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], edi
mov dword [ebx + 0x394], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 0x2c
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], 1
mov dword [ebx + 0x398], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
lea edi, [ebp - 0x34]
add eax, dword [ebp - 0x58]
mov dword [ebx + 0x39c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebx + 4]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0
push 0x26
push 0xf2
push 8
push 8
push dword [ebx + 4]
push dword [ebx + 0x1b0]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebx + 0x1b0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x1b0]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0x9c4
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40ae0b
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push dword [ebx + 0x1b0]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x364]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00416201
leave
ret
Function at 0x40e196
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x40e1c4
cmp eax, 0x79
jne 0x40e1bb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x40e1c4
cmp dword [esi + 0xa8], 0x20
jne 0x40e236
cmp dword [ebp + 8], 0xf100
jne 0x40e236
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x40e1f3
mov eax, esi
call fcn.0041028c
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e236
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x40e236
test byte [esi + 0x84], 0x40
jne 0x40e22b
mov al, byte [esi + 0x85]
test al, 2
je 0x40e220
test al, 4
jne 0x40e220
test al, 8
je 0x40e220
mov al, 1
call fcn.0041030a
push edi
mov edi, esi
call fcn.00410265
pop edi
jmp 0x40e230
cmp eax, 0x20
je 0x40e236
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x410358
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x4103a2
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x4103c9
shr eax, 2
test al, 1
je 0x4103d2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x410405
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x42e964
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x410404
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x416201
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433024]
jne 0x41620b
repz ret
jmp fcn.00418f0e
Function at 0x4216ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041b6fd
and dword [ebp - 0x14], 0
cmp dword [0x4363d4], 0
mov dword [ebp - 0x18], eax
jne 0x42175f
push 0x42c7ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c7e0
push ebx
call edi
test eax, eax
je 0x421807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x42c7d0
push ebx
mov dword [0x4363d4], eax
call edi
push eax
call esi
push 0x42c7bc
push ebx
mov dword [0x4363d8], eax
call edi
push eax
call esi
push 0x42c7a0
push ebx
mov dword [0x4363dc], eax
call edi
push eax
call esi
mov dword [0x4363e4], eax
test eax, eax
je 0x42175f
push 0x42c788
push ebx
call edi
push eax
call esi
mov dword [0x4363e0], eax
mov eax, dword [0x4363e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4217b8
cmp dword [0x4363e4], ecx
je 0x4217b8
push eax
call esi
push dword [0x4363e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4217b8
test ebx, ebx
je 0x4217b8
call edi
test eax, eax
je 0x4217af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4217af
test byte [ebp - 8], 1
jne 0x4217b8
or dword [ebp + 0x10], 0x200000
jmp 0x4217eb
mov eax, dword [0x4363d8]
cmp eax, dword [ebp - 0x18]
je 0x4217eb
push eax
call esi
test eax, eax
je 0x4217eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4217eb
mov eax, dword [0x4363dc]
cmp eax, dword [ebp - 0x18]
je 0x4217eb
push eax
call esi
test eax, eax
je 0x4217eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4363d4]
call esi
test eax, eax
je 0x421807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret
Function at 0x425a86
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x436438], 0
push esi
push edi
jne 0x4259fc
call fcn.00425968
test eax, eax
je 0x425a41
mov eax, dword [0x436438]
cmp eax, 1
jne 0x425a1d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x425a41
jmp 0x425a83
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x425a83
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x425a45
xor eax, eax
jmp 0x425a83
mov eax, dword [esi]
push dword [0x436438]
call edi
mov edi, eax
test edi, edi
je 0x425a67
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x425a83
lea edi, [esi + 0xff0]
push esi
push dword [0x436438]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x425a6d
mov eax, esi
pop edi
pop esi
ret
jmp 0x4259e8

Function at 0x426430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.004262c0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
shr ecx, 3
and ecx, 0x3f
mov dword [ebp - 8], edx
mov eax, 0x38
cmp ecx, 0x38
jb 0x426499
mov eax, 0x78
sub eax, ecx
push 0x435130
call fcn.004262c0
lea eax, [ebp - 0xc]
push eax
mov eax, 8
call fcn.004262c0
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
push 0x58
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
push 0
push esi
mov dword [edi + 0xc], ecx
call fcn.00416210
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.00416201
mov esp, ebp
pop ebp
ret 8
Function at 0x4266b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x435270]
movzx ecx, byte [eax + 4]
mov byte [eax], dl
movzx edx, byte [ecx + 0x435270]
movzx ecx, byte [eax + 8]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 0x435270]
movzx ecx, byte [eax + 0xc]
mov byte [eax + 8], dl
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xc], dl
movzx ecx, byte [eax + 1]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 1], dl
movzx ecx, byte [eax + 5]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 5], dl
movzx ecx, byte [eax + 9]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 9], dl
movzx ecx, byte [eax + 0xd]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xd], dl
movzx ecx, byte [eax + 2]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 2], dl
movzx ecx, byte [eax + 6]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 6], dl
movzx ecx, byte [eax + 0xa]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xa], dl
movzx ecx, byte [eax + 0xe]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xe], dl
movzx ecx, byte [eax + 3]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 3], dl
movzx ecx, byte [eax + 7]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 7], dl
movzx ecx, byte [eax + 0xb]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xb], dl
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ecx + 0x435270]
mov byte [eax + 0xf], dl
ret

Function at 0x426790
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x435170]
movzx ecx, byte [eax + 4]
mov byte [eax], dl
movzx edx, byte [ecx + 0x435170]
movzx ecx, byte [eax + 8]
mov byte [eax + 4], dl
movzx edx, byte [ecx + 0x435170]
movzx ecx, byte [eax + 0xc]
mov byte [eax + 8], dl
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xc], dl
movzx ecx, byte [eax + 1]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 1], dl
movzx ecx, byte [eax + 5]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 5], dl
movzx ecx, byte [eax + 9]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 9], dl
movzx ecx, byte [eax + 0xd]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xd], dl
movzx ecx, byte [eax + 2]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 2], dl
movzx ecx, byte [eax + 6]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 6], dl
movzx ecx, byte [eax + 0xa]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xa], dl
movzx ecx, byte [eax + 0xe]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xe], dl
movzx ecx, byte [eax + 3]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 3], dl
movzx ecx, byte [eax + 7]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 7], dl
movzx ecx, byte [eax + 0xb]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xb], dl
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ecx + 0x435170]
mov byte [eax + 0xf], dl
ret
Function at 0x427060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x4270b3
mov ebx, ecx
and ebx, 0x80000003
jns 0x427094
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov dl, byte [ecx + edi]
sar eax, 2
add eax, esi
mov byte [eax + ebx*4], dl
mov eax, dword [esi + 0x10]
add eax, eax
inc ecx
add eax, eax
cmp ecx, eax
jl 0x427085
mov ecx, dword [esi + 0x18]
mov eax, esi
call fcn.00426870
mov eax, dword [esi + 0x18]
dec eax
cmp eax, 1
jl 0x427162
mov ecx, eax
add ecx, ecx
lea ebx, [esi + ecx*8 + 0x3d]
mov dword [ebp - 4], eax
call fcn.00426510
mov eax, esi
call fcn.004266b0
movzx edx, byte [ebx - 1]
xor byte [esi], dl
movzx eax, byte [ebx]
xor byte [esi + 4], al
movzx ecx, byte [ebx + 1]
xor byte [esi + 8], cl
movzx edx, byte [ebx + 2]
xor byte [esi + 0xc], dl
movzx eax, byte [ebx + 3]
xor byte [esi + 1], al
movzx ecx, byte [ebx + 4]
xor byte [esi + 5], cl
movzx edx, byte [ebx + 5]
xor byte [esi + 9], dl
movzx eax, byte [ebx + 6]
xor byte [esi + 0xd], al
movzx ecx, byte [ebx + 7]
xor byte [esi + 2], cl
movzx edx, byte [ebx + 8]
xor byte [esi + 6], dl
movzx eax, byte [ebx + 9]
xor byte [esi + 0xa], al
movzx ecx, byte [ebx + 0xa]
xor byte [esi + 0xe], cl
movzx edx, byte [ebx + 0xb]
xor byte [esi + 3], dl
movzx eax, byte [ebx + 0xc]
xor byte [esi + 7], al
movzx ecx, byte [ebx + 0xd]
xor byte [esi + 0xb], cl
movzx edx, byte [ebx + 0xe]
xor byte [esi + 0xf], dl
mov edi, esi
call fcn.00426a90
sub ebx, 0x10
dec dword [ebp - 4]
jne 0x4270d5
call fcn.00426510
mov eax, esi
call fcn.004266b0
movzx eax, byte [esi + 0x3c]
xor byte [esi], al
movzx ecx, byte [esi + 0x3d]
xor byte [esi + 4], cl
movzx edx, byte [esi + 0x3e]
xor byte [esi + 8], dl
movzx eax, byte [esi + 0x3f]
xor byte [esi + 0xc], al
movzx ecx, byte [esi + 0x40]
xor byte [esi + 1], cl
movzx edx, byte [esi + 0x41]
xor byte [esi + 5], dl
movzx eax, byte [esi + 0x42]
xor byte [esi + 9], al
movzx ecx, byte [esi + 0x43]
xor byte [esi + 0xd], cl
movzx edx, byte [esi + 0x44]
xor byte [esi + 2], dl
movzx eax, byte [esi + 0x45]
xor byte [esi + 6], al
movzx ecx, byte [esi + 0x46]
xor byte [esi + 0xa], cl
movzx edx, byte [esi + 0x47]
xor byte [esi + 0xe], dl
movzx eax, byte [esi + 0x48]
xor byte [esi + 3], al
movzx ecx, byte [esi + 0x49]
xor byte [esi + 7], cl
movzx edx, byte [esi + 0x4a]
xor byte [esi + 0xb], dl
movzx eax, byte [esi + 0x4b]
xor byte [esi + 0xf], al
mov ecx, dword [esi + 0x10]
add ecx, ecx
add ecx, ecx
xor eax, eax
test ecx, ecx
jle 0x42720a
lea ebx, [ebx]
mov edi, eax
shr edi, 2
mov edx, eax
add edi, esi
and edx, 3
mov dl, byte [edi + edx*4]
mov edi, dword [ebp + 8]
mov byte [eax + edi], dl
inc eax
cmp eax, ecx
jl 0x4271f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x427220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x427272
mov ebx, ecx
and ebx, 0x80000003
jns 0x427253
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov dl, byte [ecx + edi]
sar eax, 2
add eax, esi
mov byte [eax + ebx*4], dl
mov eax, dword [esi + 0x10]
add eax, eax
inc ecx
add eax, eax
cmp ecx, eax
jl 0x427244
xor ecx, ecx
mov eax, esi
call fcn.00426870
mov ecx, dword [esi + 0x18]
mov ebx, 1
dec ecx
cmp ecx, ebx
jl 0x427321
lea edi, [esi + 0x4d]
nop
mov eax, esi
call fcn.00426790
call fcn.004265e0
mov ecx, esi
call fcn.00426f30
movzx edx, byte [edi - 1]
xor byte [esi], dl
movzx eax, byte [edi]
xor byte [esi + 4], al
movzx ecx, byte [edi + 1]
xor byte [esi + 8], cl
movzx edx, byte [edi + 2]
xor byte [esi + 0xc], dl
movzx eax, byte [edi + 3]
xor byte [esi + 1], al
movzx ecx, byte [edi + 4]
xor byte [esi + 5], cl
movzx edx, byte [edi + 5]
xor byte [esi + 9], dl
movzx eax, byte [edi + 6]
xor byte [esi + 0xd], al
movzx ecx, byte [edi + 7]
xor byte [esi + 2], cl
movzx edx, byte [edi + 8]
xor byte [esi + 6], dl
movzx eax, byte [edi + 9]
xor byte [esi + 0xa], al
movzx ecx, byte [edi + 0xa]
xor byte [esi + 0xe], cl
movzx edx, byte [edi + 0xb]
xor byte [esi + 3], dl
movzx eax, byte [edi + 0xc]
xor byte [esi + 7], al
movzx ecx, byte [edi + 0xd]
xor byte [esi + 0xb], cl
movzx edx, byte [edi + 0xe]
xor byte [esi + 0xf], dl
mov eax, dword [esi + 0x18]
inc ebx
dec eax
add edi, 0x10
cmp ebx, eax
jle 0x427290
mov eax, esi
call fcn.00426790
call fcn.004265e0
mov ecx, dword [esi + 0x18]
lea eax, [ecx*4]
movzx edx, byte [esi + eax*4 + 0x3c]
xor byte [esi], dl
movzx edx, byte [esi + eax*4 + 0x3d]
xor byte [esi + 4], dl
movzx edx, byte [esi + eax*4 + 0x3e]
xor byte [esi + 8], dl
movzx edx, byte [esi + eax*4 + 0x3f]
xor byte [esi + 0xc], dl
add ecx, 4
add ecx, ecx
movzx ecx, byte [esi + ecx*8]
xor byte [esi + 1], cl
movzx edx, byte [esi + eax*4 + 0x41]
xor byte [esi + 5], dl
movzx ecx, byte [esi + eax*4 + 0x42]
xor byte [esi + 9], cl
movzx edx, byte [esi + eax*4 + 0x43]
xor byte [esi + 0xd], dl
movzx ecx, byte [esi + eax*4 + 0x44]
xor byte [esi + 2], cl
movzx edx, byte [esi + eax*4 + 0x45]
xor byte [esi + 6], dl
movzx ecx, byte [esi + eax*4 + 0x46]
xor byte [esi + 0xa], cl
movzx edx, byte [esi + eax*4 + 0x47]
xor byte [esi + 0xe], dl
movzx ecx, byte [esi + eax*4 + 0x48]
xor byte [esi + 3], cl
movzx edx, byte [esi + eax*4 + 0x49]
xor byte [esi + 7], dl
movzx ecx, byte [esi + eax*4 + 0x4a]
xor byte [esi + 0xb], cl
movzx edx, byte [esi + eax*4 + 0x4b]
xor byte [esi + 0xf], dl
mov ecx, dword [esi + 0x10]
add ecx, ecx
add ecx, ecx
xor eax, eax
test ecx, ecx
jle 0x4273e1
mov edi, eax
shr edi, 2
mov edx, eax
add edi, esi
and edx, 3
mov dl, byte [edi + edx*4]
mov edi, dword [ebp + 8]
mov byte [eax + edi], dl
inc eax
cmp eax, ecx
jl 0x4273c7
pop edi
pop esi
pop ebx
pop ebp
ret 4