joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a695c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00452178
mov esi, eax
test esi, esi
je 0x4a6988
mov edx, dword [esi]
mov ecx, esi
push str.menuItem
call dword [edx + 4]
test eax, eax
je 0x4a6988
mov eax, esi
jmp 0x4a6a8a
mov ecx, dword [0x692890]
test ecx, ecx
je 0x4a699b
call fcn.0044a517
mov esi, eax
jmp 0x4a699d
xor esi, esi
push ebx
push edi
push 0x2800
call fcn.008280c8
mov edi, eax
mov dword [esp], 0x5000
call fcn.008280c8
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
push str.menuItem
push str.FindChildByID2_Failed__no_window_of_class___s__with_id_of___d__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00456916
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x4a6a02
xor ecx, ecx
push ecx
push ecx
push eax
push edi
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
call fcn.008120b6
pop ecx
test esi, esi
je 0x4a6a41
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
call dword [eax + 0x2c]
test al, al
je 0x4a6a41
push dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
push str.SOUI::SWindow::FindChildByID2
push 0x1e9
push str.E:_suohaonekeyfun_souiSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [eax + 0x34]
jmp 0x4a6a7f
mov ebx, 0x2800
push ebx
call fcn.008280c8
mov dword [esp], 0x1e9
mov esi, eax
push str.E:_suohaonekeyfun_souiSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByID2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push ebx
push esi
call fcn.004568f7
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
call fcn.008120b6
pop ecx
push edi
call fcn.008120b6
pop ecx
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8

Function at 0x4a7e25
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a7e8d
mov ecx, esi
call fcn.004a7e92
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x4a7e68
push 0
call fcn.00455636
and dword [esi + 0x3ac], 0
mov ecx, dword [0x6929e0]
lea ecx, [ecx + 8]
call fcn.004a8fb5
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x4a7e8d
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.004a8d29
pop esi
pop ebp
ret 4
Function at 0x4af75f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x6929f7], 0
jne 0x4af80e
push esi
push 0x624a6c
call fcn.004bf107
mov dword [esp], 0x624a48
call fcn.004bf107
mov dword [esp], 0x624b8c
call fcn.004bf107
mov dword [esp], 0x624c08
call fcn.004bf107
mov dword [esp], 0x624b68
call fcn.004bf107
mov esi, 0x624cd8
push esi
call fcn.004ca3b4
push esi
call fcn.004ca3b4
push 0x624cf8
call fcn.004ca3b4
push 0x624d18
call fcn.004ca3b4
push 0x624b10
call fcn.004ca3b4
push 0x624c98
call fcn.004ca3b4
push 0x624cb8
call fcn.004ca3b4
push 0x624bb0
call fcn.004ca3b4
push 0x624bd0
call fcn.004ca3b4
add esp, 0x28
mov byte [0x6929f7], 1
pop esi
jmp 0x4d3404
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4d340c
mov dword [edx*4 + 0x6a6b80], ecx
inc edx
cmp edx, 0x100
jb 0x4d3407
mov esi, 0x800
jmp 0x4d3454
mov ecx, dword [edx*4 + 0x6a6780]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x6a6b80]
mov dword [edx*4 + 0x6a6b80], ecx
inc edx
cmp edx, esi
jb 0x4d3438
mov eax, 0x5f4050
mov esi, 0x5f3f70
mov dword [0x6a6b7c], eax
mov dword [0x6a6b74], eax
mov dword [0x6a6b78], esi
call fcn.004ef84c
mov ecx, dword [0x6a6b74]
test eax, eax
cmove ecx, esi
mov dword [0x6a6b74], ecx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4b1301
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4b1310
Capabilities:
Copy file
Delete file

Disassembly:
push 0x44
mov eax, 0x601eb8
call fcn.005574d7
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4b1401
cmp dword [esi + 0x10], 0x104
ja 0x4b1401
push esi
call fcn.004b12f3
pop ecx
test al, al
jne 0x4b1348
inc al
jmp 0x4b1403
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.004aa604
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.004b18a2
push 0x1e
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.00812c16
mov eax, dword [ebp - 0x40]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x3a], edi
or eax, 0x414
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x36], edi
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp ecx, 8
jb 0x4b13fd
mov eax, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 0x1000
jb 0x4b13f4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406360
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
call fcn.0081c138
pop ecx
pop ecx
mov al, bl
jmp 0x4b1403
xor al, al
call fcn.00557486
ret
Function at 0x4b4321
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa8], 5
jne 0x4b4348
cmp dword [ebp + 0xc], 0
je 0x4b4348
mov ecx, esi
call fcn.004b41af
mov eax, 0x80004005
jmp 0x4b446a
xor ecx, ecx
push edi
cmp dword [esi + 0x64], ecx
jne 0x4b4377
push 0x6256cc
call fcn.004b461d
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4b4467
mov edx, dword [ecx]
lea eax, [esi + 0x24]
push eax
call dword [edx + 0x14]
jmp 0x4b4467
cmp byte [esi + 0x74], cl
jne 0x4b438c
cmp byte [esi + 0x80], cl
jne 0x4b438c
cmp byte [esi + 0x8c], cl
je 0x4b43f3
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4b4397
mov eax, dword [eax]
push ecx
push 0x80
push 3
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b43f3
xor edx, edx
lea ecx, [esi + 0x78]
cmp byte [esi + 0x74], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x80], al
lea ecx, [esi + 0x84]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x8c], cl
push eax
lea eax, [esi + 0x90]
cmovne ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esi + 0x6d], 0
je 0x4b440e
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x4b4404
mov eax, dword [eax]
push dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea edi, [esi + 0x54]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b441b
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.004b461d
pop ecx
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4b4467
push dword [esi + 0xa4]
mov eax, dword [ecx]
push dword [esi + 0xa0]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x4b444f
mov eax, 0x80004005
jmp 0x4b4469
mov ecx, dword [esi + 0xac]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4c5d30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60317e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x689640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], vtable.NCompress::NLzma::CDecoder.0
push 0x6894e8
push eax
mov dword [esi + 4], vtable.NCompress::NLzma::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NLzma::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NLzma::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NLzma::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NLzma::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NLzma::CDecoder.6.0
call fcn.004e8899
push dword [esi + 0x24]
call fcn.004c4a6b
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4c5daf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x4cd17c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
and dword [edi + 0x2cb0], 0
cmp dword [edi + 0x2cb8], 2
jne 0x4cd1c2
push 1
lea ecx, [edi + 0x38]
call fcn.004cd0ea
test eax, eax
je 0x4cd1bb
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.004cc95e
jmp 0x4cd382
and dword [edi + 0x2cb8], 0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
push ebx
push 8
pop ecx
sub ecx, edx
mov dword [ebp - 0x10], edx
shr eax, cl
shr eax, 0x10
cmp dword [edi + 0x2ca0], 0x25
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x2cac]
jae 0x4cd1fe
test eax, eax
mov ebx, 0x6279b4
mov ecx, 0x6279a4
mov eax, 0x6279e4
jmp 0x4cd20f
test eax, eax
mov ebx, 0x6279d4
mov ecx, 0x6279c4
mov eax, 0x627a20
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov ecx, ebx
xor eax, dword [ebp - 8]
mov edx, 0xff
push esi
xor esi, esi
mov cl, byte [ecx]
sar edx, cl
not edx
test eax, edx
je 0x4cd24b
mov edi, dword [ebp - 4]
inc esi
mov edx, 0xff
mov cl, byte [esi + ebx]
mov eax, dword [edi + esi*4]
xor eax, dword [ebp - 8]
sar edx, cl
not edx
test eax, edx
jne 0x4cd231
mov edi, dword [ebp - 0xc]
movzx eax, byte [esi + ebx]
lea ebx, [edi + 0x38]
add eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebx], eax
call fcn.004cd05f
cmp esi, 9
jb 0x4cd301
jne 0x4cd27d
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x4cd379
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x4cd2b0
push 0x627860
call fcn.004cc9f6
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.004cd0ea
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x4cd373
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x627828
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.004cc9f6
add eax, 2
cmp eax, 0x101
jne 0x4cd2e4
cmp esi, 0xa
jne 0x4cd2e4
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x4cd380
cmp ebx, 0x100
lea ecx, [eax + 1]
cmovb ecx, eax
mov eax, dword [edi + 0x2cc8]
dec eax
cmp ebx, eax
lea esi, [ecx + 1]
cmovb esi, ecx
jmp 0x4cd35d
mov ecx, dword [edi + 0x2ca0]
and dword [edi + 0x2cb8], 0
add ecx, esi
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [edi + 0x2ca0], ecx
mov ecx, edi
push 0x627908
call fcn.004cc9f6
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x4cd35a
dec dword [edi + ebx*4 + 0x1494]
mov eax, dword [edi + ecx*4 + 0x490]
inc dword [edi + eax*4 + 0x1494]
mov dword [edi + ecx*4 + 0x494], eax
mov dword [edi + ecx*4 + 0x490], ebx
add esi, 2
mov eax, dword [edi + 0x78]
push esi
push ebx
mov dword [edi + eax*4 + 0x68], ebx
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x7c], ebx
and eax, 3
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], esi
mov ecx, edi
call fcn.004cc95e
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4d5e86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jb 0x4d5eaf
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x4d5e9d
cmp esi, 4
jb 0x4d5eb9
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x4d5ecc
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
jmp 0x4d5ed5
mov eax, edx
mov edi, ecx
cmp esi, 1
jbe 0x4d5ee0
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
jmp 0x4d5ee8
mov edx, eax
mov ecx, edi
test esi, esi
je 0x4d5eed
movzx ecx, byte [ecx]
xor edx, ecx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x4d7205
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x4d72e0
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x4d72e0
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x4d7249
mov byte [ebx], 0
jmp 0x4d7257
mov edx, 0x2791
cmp cx, dx
jne 0x4d72e0
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x692e48], esi
jbe 0x4d72e0
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x692e50]
cmp eax, dword [edx + 8]
jne 0x4d72b6
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x4d72b6
xor eax, eax
cmp byte [ebx], al
je 0x4d7295
cmp dword [edx + 4], eax
jmp 0x4d7297
cmp dword [edx], eax
sete al
test eax, eax
jne 0x4d72b3
mov cl, byte [edx + 0x18]
test ch, ch
je 0x4d72ac
test cl, cl
sete al
jmp 0x4d72af
movzx eax, cl
test eax, eax
je 0x4d72c1
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x692e48]
jb 0x4d7273
jmp 0x4d72e0
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x4d72de
mov eax, 0x80004002
jmp 0x4d72e2
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d941f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
cmp eax, 3
jae 0x4d943e
push edi
call fcn.004da18d
jmp 0x4d9496
mov ecx, dword [edi]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [edi + 0x24]
xor edx, dword [edi + eax*4 + 0x60]
mov eax, dword [edi + 4]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
push dword [edi + 0x30]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x28]
push dword [edi]
push dword [edi + 4]
push esi
push dword [ebp + 8]
call fcn.004da30c
add esp, 0x20
inc dword [edi + 0x14]
inc dword [edi]
inc dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x4d9497
push edi
call fcn.004d9e1b
pop ecx
sub ebx, 1
jne 0x4d942b
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d9e95
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x34], ecx
lea esi, [eax + 0x60]
mov word [eax + 0x1e], cx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x4d9ec3
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x4d9ebe
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4da622
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4da615
cmp esi, ecx
jae 0x4da705
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x4da69b
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x627fc0]
xor ecx, eax
or ecx, edx
jmp 0x4da6eb
cmp edi, 6
jbe 0x4da6eb
cmp edx, 4
jne 0x4da6eb
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4da634
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4db23b
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x4e4736
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
add esi, 2
lea esi, [edx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x4e47cc
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x4e4771
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x4e476e
cmp ecx, 0x10
jne 0x4e475d
mov dword [ebp + 0x10], edi
cmp edi, 0x10
jb 0x4e479a
mov ecx, dword [ebp - 4]
mov esi, edi
shr esi, 4
add ecx, 0x10
push esi
mov edx, ebx
call dword [0x6a6b68]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
test edi, edi
je 0x4e47c6
xor eax, eax
lea ecx, [esi + 0x10]
mov edi, esi
mov edx, esi
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x6a6b68]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x4e47ba
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

Function at 0x4e4af9
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
cmp dword [ebp + 0x10], edi
jbe 0x4e4b52
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [edi + ebx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6a6b80]
movzx eax, cl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x6a6b80]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x4e4b18
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x1c], edx
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4e4b66
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e4bec
mov edx, eax
mov edi, dword [ebp + 0xc]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, byte [eax + edi]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x6a6b80]
movzx eax, bl
add eax, edx
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x6a6b80]
mov eax, dword [ebp - 4]
mov byte [eax + edi], cl
inc eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x4e4b87
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, edi
pop edi
mov dword [edx + 0x14], esi
pop esi
mov dword [edx + 0xc], ebx
pop ebx
leave
ret 0xc

Function at 0x4e4bfe
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ecx
jbe 0x4e4c88
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov dl, byte [ecx + eax]
mov eax, edi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, dl
mov byte [eax + esi], cl
movzx eax, dl
xor eax, ebx
mov ecx, dword [ebp - 4]
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0x6a6b80]
movzx eax, bl
add eax, dword [ebp - 8]
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebp - 8], esi
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x6a6b80]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4e4c1f
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4e4d5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00812c16
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
add esp, 0xc
xor edx, edx
sub esi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 0x14
jb 0x4e4d93
lea eax, [ebp - 0xa4]
push eax
call fcn.004fa522
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004fa554
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004f9c0a
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
call fcn.00817892
leave
ret