joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d4fce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4d4e11
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 0
jne 0x4d4e11
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x4d4e40
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 1
jne 0x4d4e2e
lea eax, [ebp - 0x28]
push eax
push 0x12
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.004830bc
jmp 0x4d4e40
lea eax, [ebp - 0x28]
push eax
push 0x11
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.004830bc
xor eax, eax
push ebp
push 0x4d4fa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x3c
mov edx, 0x104
call fcn.004908a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00490734
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4d4e85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00490734
mov dword [ebp - 0x20], eax
jmp 0x4d4e8a
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 1
jne 0x4d4e9c
mov dword [ebp - 0x1c], 0x1000
jmp 0x4d4ea3
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0x4d48dc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f71d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004d4fdc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4d4f8c
xor eax, eax
push ebp
push 0x4d4f85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 0
jne 0x4d4f43
lea eax, [ebp - 0x131]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
call fcn.0048b558
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x131]
call fcn.00486d2c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call sym.chemax.exe__Fileutil_RemoveBackSlash_qqrx17System_AnsiString
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.0049031c
jmp 0x4d4f54
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
call fcn.0049031c
mov eax, dword [ebp - 4]
add eax, 0x40
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
call fcn.0049031c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x48], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4f8c
mov eax, dword [ebp - 0xc]
push eax
call sub.OLE32.DLL_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4fb0
cmp dword [ebp - 0x28], 0
je 0x4d4fa8
mov eax, dword [ebp - 0x28]
push eax
call sub.OLE32.DLL_CoTaskMemFree
ret
Function at 0x4d580c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00490724
xor eax, eax
push ebp
push 0x4d5867
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d5848
test byte [ebp - 0xc], 0x10
jne 0x4d584c
xor eax, eax
jmp 0x4d584e
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d586e
lea eax, [ebp - 4]
call fcn.004902c8
ret

Function at 0x4d6390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.004903b0
mov esp, ebp
pop ebp
ret

Function at 0x4d63c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.004903b0
mov esp, ebp
pop ebp
ret

Function at 0x4d63f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.004903b0
mov esp, ebp
pop ebp
ret
Function at 0x4d690c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6adb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.OLE32.DLL_CoInitialize
xor eax, eax
push ebp
push 0x4d6aab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004928b0
push eax
mov eax, dword [0x4f75e0]
push eax
push 5
push 0
mov eax, dword [0x4f75e4]
push eax
call sub.OLE32.DLL_CoCreateInstance
call fcn.004830bc
xor eax, eax
push ebp
push 0x4d6a91
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004928b0
push eax
push 0x4f7164
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax]
call fcn.004830bc
xor eax, eax
push ebp
push 0x4d6a74
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.004830bc
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x4d6af0
push dword [ebp - 8]
push 0x4d6afc
lea eax, [ebp - 0x32c]
mov edx, 3
call fcn.00490630
mov eax, dword [ebp - 0x32c]
call fcn.00490734
mov edx, eax
lea eax, [ebp - 0x11d]
call fcn.00486bfc
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push 0
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push 0x104
lea eax, [ebp - 0x328]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x11d]
push eax
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 0xffffffffffffffff
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004830bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6a7b
lea eax, [ebp - 0x14]
call fcn.004928b0
ret
Function at 0x4d6b04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6c4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.OLE32.DLL_CoInitialize
xor eax, eax
push ebp
push 0x4d6c22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.004928b0
push eax
mov eax, dword [0x4f75e0]
push eax
push 5
push 0
mov eax, dword [0x4f75e4]
push eax
call sub.OLE32.DLL_CoCreateInstance
call fcn.004830bc
xor eax, eax
push ebp
push 0x4d6c08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.004830bc
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x4d6c64
push dword [ebp - 4]
push 0x4d6c70
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00490630
mov eax, dword [ebp - 0x11c]
call fcn.00490734
mov edx, eax
lea eax, [ebp - 0x115]
call fcn.00486bfc
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00490520
mov eax, dword [ebp - 0x120]
call fcn.004865f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6c0f
lea eax, [ebp - 0xc]
call fcn.004928b0
ret
Function at 0x402260
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40229a
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0x4022a1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0x402280
jmp 0x4022a3
mov eax, 0x1505
jmp 0x4022a3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x402990
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402b56
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebp, ebp
je 0x402b4f
mov edx, 0x5e6ea9af
mov eax, ebp
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
jmp 0x402a33
mov edx, dword [esp]
mov eax, edx
sub eax, dword [esp + 4]
add ebx, eax
mov ebp, edx
not ebp
mov esi, dword [esp + 0xc]
and ebp, esi
not esi
mov eax, ecx
mov edx, 0x80078071
mul edx
and esi, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
mov dword [esp], eax
mov eax, edi
mov edx, 0x80078071
mul edx
sub ecx, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov edx, 0x15b0
sub ebp, esi
je 0x402b4f
xor eax, eax
cmp edx, 8
mov dword [esp], edx
jb 0x402ab4
and edx, 0x1ff8
mov dword [esp + 4], edx
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
add eax, 8
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 7]
add edi, esi
mov esi, ecx
xor esi, edi
and ecx, edi
lea ecx, [esi + ecx*2]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402a50
add ebx, eax
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ebp
mov esi, eax
sub esi, edx
jae 0x4029eb
mov ebp, edx
and ebp, 3
mov dword [esp + 4], eax
je 0x402b02
mov dword [esp + 8], esi
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0x402ae0
mov ebp, dword [esp + 4]
sub ebp, eax
mov esi, dword [esp + 8]
cmp esi, 0xfffffffc
ja 0x4029e0
jmp 0x402b0f
mov ebp, eax
mov edx, ebx
cmp esi, 0xfffffffc
ja 0x4029e0
mov eax, dword [esp]
sub eax, ebp
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 3]
add edi, esi
add ecx, edi
add ebp, 4
cmp eax, ebp
jne 0x402b20
jmp 0x4029e0
shl ecx, 0x10
or ecx, edi
jmp 0x402b5b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402bc8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402bca
not eax
xor esi, esi
nop
nop
nop
nop
movzx ebx, byte [ecx + esi]
mov edi, eax
shr edi, 4
xor eax, ebx
and eax, 0xf
xor edi, dword [eax*4 + 0x43f80c]
mov eax, edi
shr eax, 4
shr ebx, 4
mov ebp, ebx
and ebp, edi
and edi, 0xf
or edi, ebx
xor edi, ebp
xor eax, dword [edi*4 + 0x43f80c]
inc esi
cmp edx, esi
jne 0x402b90
not eax
jmp 0x402bca
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407c5b
mov ebx, dword [esp + 0x18]
cmp eax, 1
jne 0x407c63
mov word [ebx], 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, word [ebx + 4]
add word [ebx], cx
cmp eax, 3
jl 0x407cfb
mov edx, 2
mov ecx, 2
sub ecx, eax
mov dword [esp], ecx
xor edi, edi
mov ebx, 1
jmp 0x407ca9
movzx ebp, word [esi + edi*4]
add word [esi + ebx*4], bp
mov word [esi + edi*4], bx
inc edi
mov ecx, dword [esp]
add ecx, ebx
inc ecx
inc ebx
cmp ecx, 1
je 0x407d0a
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + edi*4]
cmp edx, eax
jge 0x407cbe
movzx ebp, word [esi + edx*4]
cmp cx, bp
jae 0x407cd0
mov word [esi + ebx*4], cx
mov word [esi + edi*4], bx
inc edi
cmp edx, eax
jge 0x407c90
jmp 0x407cd9
inc edx
mov word [esi + ebx*4], bp
cmp edx, eax
jge 0x407c90
cmp edi, ebx
jge 0x407cf0
movzx ebp, word [esi + edi*4]
movzx ecx, word [esi + edx*4]
cmp bp, cx
jb 0x407c94
jmp 0x407cf4
movzx ecx, word [esi + edx*4]
inc edx
add word [esi + ebx*4], cx
jmp 0x407c9d
lea edx, [eax - 2]
mov word [ebx + eax*4 - 8], 0
jmp 0x407d92
lea edx, [eax - 2]
mov ebx, dword [esp + 0x18]
mov word [ebx + eax*4 - 8], 0
cmp eax, 3
jl 0x407d92
lea edi, [eax - 3]
mov ebp, ebx
mov ebx, eax
and ebx, 3
xor ebx, 2
mov esi, edi
je 0x407d44
mov esi, edi
movzx ecx, word [ebp + esi*4]
movzx ecx, word [ebp + ecx*4]
inc ecx
mov word [ebp + esi*4], cx
dec esi
dec ebx
jne 0x407d30
mov ebx, dword [esp + 0x18]
cmp edi, 3
jb 0x407d92
nop
nop
nop
movzx ecx, word [ebx + esi*4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4], cx
movzx ecx, word [ebx + esi*4 - 4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 4], cx
movzx ecx, word [ebx + esi*4 - 8]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 8], cx
movzx ecx, word [ebx + esi*4 - 0xc]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 0xc], cx
add esi, 0xfffffffc
cmp esi, 0xffffffff
jne 0x407d50
dec eax
mov ecx, 1
xor esi, esi
jmp 0x407dac
lea ecx, [edi + edi]
inc esi
test edi, edi
je 0x407c5b
test edx, edx
mov dword [esp], ecx
js 0x407de0
lea edi, [edx + 1]
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebx + edx*4]
cmp esi, ecx
jne 0x407df0
inc ebp
dec edx
cmp edi, ebp
jne 0x407dc0
mov edx, 0xffffffff
jmp 0x407df2
xor edi, edi
jmp 0x407df5
mov edi, ebp
mov ecx, dword [esp]
mov ebp, ecx
sub ebp, edi
jle 0x407da0
and ebp, 3
je 0x407e28
lea ecx, [ebx + eax*4]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], si
inc ebx
add ecx, 0xfffffffc
cmp ebp, ebx
jne 0x407e10
mov ebp, dword [esp]
sub ebp, ebx
sub eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0x407e2a
mov ebp, ecx
mov ecx, edi
sub ecx, dword [esp]
cmp ecx, 0xfffffffc
ja 0x407da0
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx + eax*4], si
mov word [ebx + eax*4 - 4], si
mov word [ebx + eax*4 - 8], si
mov word [ebx + eax*4 - 0xc], si
add eax, 0xfffffffc
add ebp, 0xfffffffc
cmp ebp, edi
jg 0x407e40
jmp 0x407da0
Function at 0x408720
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x446f58], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x447914], edx
test eax, eax
je 0x4087af
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x447918], edx
add eax, 2
jmp 0x408730
mov dword [0x446f54], 0x270
pop esi
ret

Function at 0x408990
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0x4089f5
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax + 0xff8]
shr edx, 1
xor edi, edx
mov dword [ecx + eax + 0x1384], edi
add eax, 4
jne 0x4089b0
mov eax, 0x270
jmp 0x408acf
cmp eax, 0x4e0
jb 0x408acf
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0x408a10
mov esi, dword [ecx + 0xd50]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0xd54]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 4]
xor edi, edx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
cmp eax, 0x18c
jne 0x408a60
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 0x7ffffffe
mov edx, 0x80000000
and edx, dword [ecx + 0x1380]
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
ret
Function at 0x40ae40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov esi, esp
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x3c
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x448310]
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40aeee
sar edx, 1
lea edi, [esi + 0x34]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x442598]
xor eax, eax
jmp 0x40b36d
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41aba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov dword [ecx], 0
mov dword [esp], 0x960c9404
mov dword [esp + 4], 0x8a6a8809
mov dword [esp + 8], 0x8e5d8c64
mov dword [esp + 0xc], 0x8251805f
mov dword [esp + 0x10], 0x86858453
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xcb
xor cl, byte [esp + eax]
add cl, 0xa8
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x14
jb 0x41abe0
lea edi, [esi + 4]
movzx eax, word [esp]
mov ebx, edi
test ax, ax
je 0x41ac31
lea ecx, [esp + 2]
mov ebx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ac20
mov word [ebx], 0
call fcn.004087c0
mov ecx, eax
mov ebp, 0x51eb851f
mul ebp
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
mov eax, ecx
and eax, 0x7d
mov edx, ecx
and edx, 2
or ecx, 2
imul ecx, edx
xor edx, 2
imul edx, eax
movsx eax, byte [edx + ecx + 0x4402bc]
mov word [ebx], ax
movsx eax, byte [edx + ecx + 0x4402bd]
mov word [ebx + 2], ax
call fcn.004087c0
mov ecx, eax
mul ebp
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
mov eax, ecx
and eax, 0x7d
mov edx, ecx
and edx, 2
or ecx, 2
imul ecx, edx
xor edx, 2
imul edx, eax
movsx eax, byte [edx + ecx + 0x4402bc]
mov word [ebx + 4], ax
movsx eax, byte [edx + ecx + 0x4402bd]
mov word [ebx + 6], ax
mov word [ebx + 8], 0x5f
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0xa], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0xc], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0xe], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x10], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x12], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x14], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x16], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x18], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x1a], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x1c], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x1e], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x20], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x22], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x24], ax
call fcn.004087c0
movzx eax, al
add eax, eax
movsx ecx, byte [eax + 0x440385]
mov word [ebx + 0x26], cx
movsx eax, byte [eax + 0x440386]
mov word [ebx + 0x28], ax
mov word [ebx + 0x2a], 0
push 0x65ba7050
push dword [0x449670]
call int.0043ce00
add esp, 8
push 0
push 0xf00c7
push 0
push 0
push 0
push edi
call eax
mov dword [esi], eax
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret