joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5a58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00474180
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00474190
lea ecx, [esp + 8]
push esi
push ecx
call fcn.00466470
mov ecx, eax
call fcn.004736c0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049c510
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x466700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5a58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00474180
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00474190
lea ecx, [esp + 8]
push esi
push ecx
call fcn.004664f0
mov ecx, eax
call fcn.00473800
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049c510
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x467900
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x20
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
mov ebp, ecx
cmp byte [ebp + 0xea0], 1
je 0x467a0e
mov eax, dword [0x41c4d0]
mov cx, word [0x41c4d4]
push ebx
push esi
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
xor ebx, ebx
push edx
lea eax, [esp + 0x24]
push eax
mov word [esp + 0x2c], cx
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x4679ca
lea ecx, [esi + 0x32]
push edi
push ecx
call fcn.004cce67
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4679c9
mov edx, dword [esp + 0x1c]
push edi
push esi
push edx
lea eax, [esp + 0x30]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4679c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x41c4a8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4679c0
cmp dword [esp + 0x14], ebx
je 0x4679c0
mov eax, dword [esp + 0x18]
push 4
push 0x41c4a0
push eax
call fcn.004cccf0
add esp, 0xc
test eax, eax
jne 0x4679c0
mov byte [esp + 0x13], 1
push edi
call fcn.004cb4e1
add esp, 4
pop edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push 0x41c48c
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4679f3
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
mov byte [ebp + 0xea0], 1
pop ebx
je 0x467a07
cmp byte [esp + 7], 1
jne 0x467a0e
mov byte [ebp + 0xea1], 1
mov al, byte [ebp + 0xea1]
mov ecx, dword [esp + 0x20]
pop ebp
xor ecx, esp
call fcn.004cb3aa
add esp, 0x20
ret
Function at 0x467c30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.004898c0
lea ecx, [eax + 0x6c]
call fcn.0047d0f0
call fcn.004898c0
mov esi, dword [0x53e204]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467bee
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0xe74
lea eax, [edi + 0x2c]
push 0
push eax
call fcn.004caf20
mov ecx, dword [0x53f12c]
add esp, 0xc
mov esi, ecx
test ecx, ecx
je 0x467c22
call fcn.0047ad20
push esi
call fcn.004cada5
add esp, 4
call fcn.00489a10
mov ecx, edi
pop edi
pop esi
jmp 0x47d220
mov ecx, 0x53e208
jmp 0x467bc0
push ebx
call fcn.0047d240
mov bl, al
call fcn.0048f8c0
mov al, bl
pop ebx
ret
Function at 0x469120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [ecx]
test edx, edx
je 0x46914c
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx edi, byte [esi]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x411a98]
dec edx
inc esi
test edx, edx
jne 0x469131
pop edi
pop esi
pop ebx
mov dword [ecx], eax
ret 8

Function at 0x46d790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0x46d79b
mov ecx, dword [ecx + 8]
jmp 0x46d79e
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46d7b1
test al, 0x10
jne 0x46d7b1
mov al, 1
ret
xor al, al
ret

Function at 0x46d7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0x46d7cb
mov ecx, dword [ecx + 8]
jmp 0x46d7ce
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46d7e1
test al, 0x10
je 0x46d7e1
mov al, 1
ret
xor al, al
ret

Function at 0x46e380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e6df6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x46e412
lea eax, [esp + 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x30]
call fcn.0046e330
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esp + 0x268], 0
call fcn.00466f80
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0x41c480
jb 0x46e477
mov eax, dword [esp + 0x34]
push eax
jmp 0x46e46f
cmp dword [esi + 0x1c], 0x10
jb 0x46e41d
mov eax, dword [esi + 8]
jmp 0x46e420
lea eax, [esi + 8]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x50]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x10]
call fcn.0046e330
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x268], 1
call fcn.00466f80
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0xc], 0x41c480
jb 0x46e477
mov edx, dword [esp + 0x14]
push edx
call fcn.004cada5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x260
ret
Function at 0x46ea40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e6f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46eaa6
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042bda0
mov dword [esp + 8], 0x41c63c
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x140], 0
call fcn.00466f80
cmp dword [esp + 0x24], 0x10
mov dword [esp + 8], 0x41c480
jb 0x46eaf9
mov eax, dword [esp + 0x10]
push eax
call fcn.004cada5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x138
ret
Function at 0x4701f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
test edi, edi
je 0x47027c
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x47027c
cdq
and edx, 0xf
add eax, edx
push ebp
mov ebp, eax
sar ebp, 4
test ebp, ebp
jle 0x47027b
mov eax, dword [esi]
xor eax, dword [edi]
mov ecx, dword [edi + 4]
xor ecx, dword [esi + 4]
mov edx, dword [edi + 8]
xor edx, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.0046fa00
mov edx, dword [esi]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
dec ebp
add edi, 0x10
add ebx, 0x10
test ebp, ebp
jg 0x470227
pop ebp
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x14
ret 0xc

Function at 0x470290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, ecx
test edi, edi
je 0x47033e
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x47033e
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [esp + 0xc], eax
test eax, eax
jle 0x47033e
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046fdf0
mov ebp, dword [esi + 0xc]
xor dword [esp + 0x20], ebp
mov ebp, dword [edi]
mov eax, dword [esp + 0x14]
xor eax, dword [esi]
mov ecx, dword [esp + 0x18]
xor ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
xor edx, dword [esi + 8]
mov dword [esi], ebp
mov ebp, dword [edi + 4]
mov dword [esi + 4], ebp
mov ebp, dword [edi + 8]
mov dword [esi + 8], ebp
mov ebp, dword [edi + 0xc]
mov dword [esi + 0xc], ebp
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 8], edx
dec eax
mov dword [ebx + 0xc], ecx
add ebx, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4702d1
pop ebp
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x18
ret 0xc
Function at 0x470360
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov ebx, ecx
test esi, esi
je 0x47049c
mov ecx, dword [esp + 0x40]
test ecx, ecx
jle 0x47049c
mov eax, ecx
cdq
and edx, 0xf
push edi
add eax, edx
mov edi, ecx
sar eax, 4
and edi, 0xf
cmp eax, 1
jle 0x4703c1
and ecx, 0xfffffff0
sub ecx, 0x10
push ecx
push ebp
mov dword [esp + 0x18], ecx
push esi
mov ecx, ebx
call fcn.004701f0
mov eax, dword [esp + 0x10]
add esi, eax
add ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 4]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
mov edx, ecx
push edx
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.0046fa00
test edi, edi
je 0x470467
push edi
add esi, 0x10
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004cb570
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [ebp + 0x10]
push edx
call fcn.004cb570
add esp, 0x18
xor eax, eax
test edi, edi
jle 0x47042e
mov cl, byte [esp + eax + 0x24]
xor byte [esp + eax + 0x14], cl
inc eax
cmp eax, edi
jl 0x470421
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.0046fa00
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x28
ret 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ebp], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebp - 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
pop edi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x28
ret 0xc
Function at 0x4704b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 8], ecx
test ebx, ebx
je 0x4705b5
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4705b5
push esi
mov esi, eax
and esi, 0xf
jne 0x4704ed
mov esi, 0x10
cmp eax, 0x20
push edi
jle 0x470515
mov edx, esi
sub edx, 0x10
neg edx
sbb edx, edx
and edx, 0xfffffff0
add edx, 0x20
and eax, 0xfffffff0
sub eax, edx
mov edi, eax
push edi
push ebp
push ebx
call fcn.00470290
add ebx, edi
add ebp, edi
push esi
lea eax, [ebx + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004cb570
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebx
mov ecx, edi
call fcn.0046fdf0
xor eax, eax
test esi, esi
jle 0x47054d
mov edi, edi
mov cl, byte [esp + eax + 0x14]
xor byte [esp + eax + 0x24], cl
inc eax
cmp eax, esi
jl 0x470540
push esi
lea edx, [esp + 0x28]
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.004cb570
add esp, 0xc
test esi, esi
je 0x4705b3
mov ecx, 0x10
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x28]
push edx
lea eax, [esp + esi + 0x1c]
push eax
call fcn.004cb570
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
mov ecx, edi
call fcn.0046fdf0
mov eax, dword [edi]
xor eax, dword [esp + 0x14]
mov dword [ebp], eax
mov ecx, dword [edi + 4]
xor ecx, dword [esp + 0x18]
mov dword [ebp + 4], ecx
mov edx, dword [edi + 8]
xor edx, dword [esp + 0x1c]
mov dword [ebp + 8], edx
mov eax, dword [edi + 0xc]
xor eax, dword [esp + 0x20]
mov dword [ebp + 0xc], eax
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x28
ret 0xc
Function at 0x4705d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x47070e
test ecx, ecx
jle 0x47070e
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
push ebp
mov ebp, eax
sar ebp, 4
test ebp, ebp
jle 0x47066e
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, edi
call fcn.0046fa00
mov ecx, dword [ebx]
xor ecx, dword [esp + 0x18]
dec ebp
mov dword [esi], ecx
mov edx, dword [ebx + 4]
xor edx, dword [esp + 0x1c]
add esi, 0x10
mov dword [esi - 0xc], edx
mov eax, dword [ebx + 8]
xor eax, dword [esp + 0x20]
add ebx, 0x10
mov dword [esi - 8], eax
mov ecx, dword [ebx - 4]
xor ecx, dword [esp + 0x24]
mov dword [esi - 4], ecx
mov edx, dword [esi - 0x10]
mov dword [edi], edx
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 8]
mov dword [edi + 8], ecx
mov edx, dword [esi - 4]
mov dword [edi + 0xc], edx
test ebp, ebp
jg 0x470615
mov ecx, dword [esp + 0x10]
mov ebp, ecx
and ebp, 0xf
je 0x47070d
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, edi
call fcn.0046fa00
xor ecx, ecx
test ebp, ebp
jle 0x4706b5
lea edx, [esp + 0x18]
sub ebx, edx
mov edx, esi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebx
sub edx, eax
jmp 0x4706a4
mov ebx, dword [esp + 0x14]
lea eax, [esp + ecx + 0x18]
mov bl, byte [ebx + eax]
xor bl, byte [eax]
inc ecx
cmp ecx, ebp
mov byte [edx + eax], bl
jl 0x4706a0
add esi, ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 0x10
jge 0x4706f6
mov ebx, 0x10
sub ebx, ebp
push ebx
lea ecx, [edi + ebp]
push ecx
push edi
call fcn.004cda10
push ebp
sub esi, ebp
push esi
add edi, ebx
push edi
call fcn.004cb570
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x1c
ret 0xc
mov edx, dword [esi - 0x10]
mov dword [edi], edx
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 8]
mov dword [edi + 8], ecx
mov edx, dword [esi - 4]
mov dword [edi + 0xc], edx
pop ebp
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x1c
ret 0xc
Function at 0x470730
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
test esi, esi
je 0x470872
test ebx, ebx
jle 0x470872
cmp ebx, 0x10
jge 0x470794
mov eax, 0x10
sub eax, ebx
push eax
mov dword [esp + 0x14], eax
lea eax, [ebx + edi]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004cb570
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + edx + 0x24]
push esi
push eax
call fcn.004cb570
add esp, 0x18
jmp 0x4707b4
mov ecx, dword [ebx + esi - 0x10]
mov edx, dword [ebx + esi - 0xc]
mov eax, dword [ebx + esi - 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + esi - 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [esp + 0x10], eax
test eax, eax
jle 0x470824
lea edx, [esp + 0x24]
push edx
push edi
mov ecx, edi
call fcn.0046fa00
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
mov dword [edi + 8], edx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov ecx, dword [esi]
xor ecx, dword [esp + 0x24]
add ebp, 0x10
mov dword [ebp - 0x10], ecx
mov edx, dword [esi + 4]
xor edx, dword [esp + 0x28]
add esi, 0x10
mov dword [ebp - 0xc], edx
mov eax, dword [esi - 8]
xor eax, dword [esp + 0x2c]
mov dword [ebp - 8], eax
mov ecx, dword [esi - 4]
xor ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
dec eax
mov dword [ebp - 4], ecx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4707c7
and ebx, 0xf
je 0x470857
lea edx, [esp + 0x24]
push edx
push edi
mov ecx, edi
call fcn.0046fa00
xor ecx, ecx
test ebx, ebx
jle 0x470857
lea eax, [esp + 0x24]
mov edx, eax
sub esi, eax
sub ebp, edx
lea eax, [esp + ecx + 0x24]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, ebx
mov byte [eax + ebp], dl
jl 0x470846
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [edi], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x28
ret 0xc
Function at 0x470890
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, ecx
mov edx, dword [ebp + 0x100]
sub edx, 6
push esi
push edi
test edx, edx
jle 0x4708bd
mov esi, dword [esp + 0x3c]
mov ecx, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
test edx, edx
jle 0x470903
jmp 0x4708d0
cmp esi, dword [ebp + 0x100]
jg 0x470a32
cmp eax, edx
jge 0x4708f7
cmp ecx, 4
jge 0x4708fa
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4 + 4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x4708e0
cmp ecx, 4
jne 0x4708ff
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x4708d0
cmp esi, dword [ebp + 0x100]
jg 0x470a32
mov dword [esp + 0x10], 0x415130
jmp 0x470920
movzx edi, byte [esp + edx*4 + 0x11]
mov al, byte [esp + 0x14]
xor al, byte [edi + 0x411f30]
mov byte [esp + 0x14], al
movzx edi, byte [esp + edx*4 + 0x12]
movzx ebx, byte [edi + 0x411f30]
xor byte [esp + 0x15], bl
movzx edi, byte [esp + edx*4 + 0x13]
movzx ebx, byte [edi + 0x411f30]
xor byte [esp + 0x16], bl
movzx edi, byte [esp + edx*4 + 0x10]
movzx ebx, byte [edi + 0x411f30]
mov edi, dword [esp + 0x10]
xor al, byte [edi]
xor byte [esp + 0x17], bl
inc edi
mov byte [esp + 0x14], al
mov dword [esp + 0x10], edi
mov eax, 1
cmp edx, 8
je 0x470990
cmp edx, eax
jle 0x4709f1
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, edx
jl 0x470980
jmp 0x4709f1
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, 4
jl 0x470990
movzx eax, byte [esp + 0x20]
movzx eax, byte [eax + 0x411f30]
xor byte [esp + 0x24], al
movzx eax, byte [esp + 0x21]
movzx eax, byte [eax + 0x411f30]
xor byte [esp + 0x25], al
movzx eax, byte [esp + 0x22]
movzx eax, byte [eax + 0x411f30]
xor byte [esp + 0x26], al
movzx eax, byte [esp + 0x23]
movzx eax, byte [eax + 0x411f30]
xor byte [esp + 0x27], al
mov eax, 5
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
inc eax
cmp eax, 8
jl 0x4709e3
xor eax, eax
test edx, edx
jle 0x470a26
cmp esi, dword [ebp + 0x100]
jg 0x470a32
cmp eax, edx
jge 0x470a1a
cmp ecx, 4
jge 0x470a1d
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4 + 4]
inc eax
inc ecx
cmp eax, edx
mov dword [ebp + edi*4], ebx
jl 0x470a03
cmp ecx, 4
jne 0x470a22
inc esi
xor ecx, ecx
cmp eax, edx
jl 0x4709f7
cmp esi, dword [ebp + 0x100]
jle 0x470920
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb3aa
add esp, 0x28
ret 4
Function at 0x470a50
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
cmp dword [ecx + 0x100], edx
jle 0x470b3d
push esi
lea eax, [ecx + 0x22]
push edi
jmp 0x470a70
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x414d30]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x414530]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x414930]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x414130]
inc edx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x414d30]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x414930]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x414530]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x414130]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x414d30]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x414930]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x414530]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x414130]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x414d30]
xor esi, dword [edi*4 + 0x414930]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x414530]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x414130]
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x100]
jl 0x470a70
pop edi
pop esi
ret