joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4699f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x74b1ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x780], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x77c], ecx
mov dword [ebx + 0x784], eax
test ecx, ecx
jne 0x469a63
call sym._1.0.0.4_10001.exe_public:_static_class_DuiLib::MenuObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x469a63
call sym._1.0.0.4_10001.exe_public:_static_class_DuiLib::MenuObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call sym._1.0.0.4_10001.exe_public:_static_class_DuiLib::MenuObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x77c]
test ecx, ecx
je 0x469a8b
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
lea ecx, [ebp - 0x14]
mov ebx, eax
call sym._1.0.0.4_10001.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push closesocket
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x469ad0
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x469acb
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd30a
leave
ret 0x1c
Function at 0x46f767
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x74b1ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x46f7b5
cmp esi, 0x28
jbe 0x46f7af
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x46f7b5
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e5e40
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call sym._1.0.0.4_10001.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd30a
leave
ret 0xc
Function at 0x46fa96
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x670041
call fcn.004cde45
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x46fba6
lea eax, [ebp - 0xa4]
push eax
call sym._1.0.0.4_10001.exe_public:_struct_tagRECT___thiscall_DuiLib::CHotKeyWnd::CalPos_void_
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
push eax
mov ecx, ebx
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46fba6
mov esi, dword [ebx + 0x10]
mov ecx, esi
call sym._1.0.0.4_10001.exe_public:_unsigned_long_int___thiscall_DuiLib::CPaintManagerUI::GetDefaultFontColor_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call sym._1.0.0.4_10001.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call sym._1.0.0.4_10001.exe_public:_void___thiscall_DuiLib::CHotKeyWnd::SetHotKey_unsigned_short_int__unsigned_short_int_
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call sym._1.0.0.4_10001.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CHotKeyWnd::GetHotKeyName_void_
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.0041c184
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym._1.0.0.4_10001.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004cddef
ret 4
Function at 0x47bfe5
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x670e94
call fcn.004cde45
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47c00b
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x47c015
mov ecx, dword [edi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x47c06b
cmp dword [esi + 0x14], 8
jb 0x47c02b
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x40]
call fcn.00408860
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x44], ebx
jb 0x47c046
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x28]
call fcn.00408860
push 3
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
pop ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
push eax
call fcn.0047bfe5
pop ecx
pop ecx
test al, al
je 0x47c06f
mov byte [ebp - 0x48], 1
test bl, 2
je 0x47c07f
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.00403260
test bl, 1
je 0x47c08c
lea ecx, [ebp - 0x40]
call fcn.00403260
mov al, byte [ebp - 0x48]
call fcn.004cddef
ret

Function at 0x47c47b
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 0x47c489
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x47c498
Capabilities:
Copy file
Delete file

Disassembly:
push 0x3c
mov eax, 0x670f91
call fcn.004cde45
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x47c553
cmp dword [esi + 0x10], 0x104
ja 0x47c553
push esi
call fcn.0047c47b
pop ecx
test al, al
jne 0x47c4d0
inc al
jmp 0x47c555
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00409cd0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.0047c82a
push 0x1e
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004e5e40
mov eax, dword [ebp - 0x38]
add esp, 0xc
and eax, 0xffbf
mov dword [ebp - 0x32], edi
or eax, 0x414
mov dword [ebp - 0x48], edi
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2e], edi
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
inc bl
call fcn.00403260
mov al, bl
jmp 0x47c555
xor al, al
call fcn.004cddef
ret
Function at 0x47e512
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa8], 5
jne 0x47e539
cmp dword [ebp + 0xc], 0
je 0x47e539
mov ecx, esi
call fcn.0047e39c
mov eax, 0x80004005
jmp 0x47e65b
xor ecx, ecx
push edi
cmp dword [esi + 0x64], ecx
jne 0x47e568
push 0x68463c
call fcn.0047e7de
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x47e658
mov edx, dword [ecx]
lea eax, [esi + 0x24]
push eax
call dword [edx + 0x14]
jmp 0x47e658
cmp byte [esi + 0x74], cl
jne 0x47e57d
cmp byte [esi + 0x80], cl
jne 0x47e57d
cmp byte [esi + 0x8c], cl
je 0x47e5e4
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x47e588
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 0x47e5e4
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 0x47e5ff
lea eax, [esi + 0x54]
cmp dword [eax + 0x14], 8
jb 0x47e5f5
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 0x47e60c
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.0047e7de
pop ecx
pop ecx
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x47e658
push dword [esi + 0xa4]
mov eax, dword [ecx]
push dword [esi + 0xa0]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x47e640
mov eax, 0x80004005
jmp 0x47e65a
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 0x4827b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x7fb713], 0
jne 0x48285f
push esi
push 0x6849b8
call fcn.0048ccb4
mov dword [esp], 0x684834
call fcn.0048ccb4
mov dword [esp], 0x684ab0
call fcn.0048ccb4
mov dword [esp], 0x684ad4
call fcn.0048ccb4
mov dword [esp], 0x6849dc
call fcn.0048ccb4
mov esi, 0x684898
push esi
call fcn.00496e52
push esi
call fcn.00496e52
push 0x6848b8
call fcn.00496e52
push 0x6848d8
call fcn.00496e52
push 0x684a00
call fcn.00496e52
push 0x684858
call fcn.00496e52
push 0x684878
call fcn.00496e52
push 0x684a58
call fcn.00496e52
push 0x684a78
call fcn.00496e52
add esp, 0x28
mov byte [0x7fb713], 1
pop esi
jmp 0x49f1a3
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 0x49f1ab
mov dword [edx*4 + 0x8026e0], ecx
inc edx
cmp edx, 0x100
jb 0x49f1a6
mov esi, 0x800
jmp 0x49f1f3
mov ecx, dword [edx*4 + 0x8022e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x8026e0]
mov dword [edx*4 + 0x8026e0], ecx
inc edx
cmp edx, esi
jb 0x49f1d7
mov eax, 0x66b830
mov esi, 0x66b750
mov dword [0x8026c4], eax
mov dword [0x8026bc], eax
mov dword [0x8026c0], esi
call fcn.004b6bba
mov ecx, dword [0x8026bc]
test eax, eax
cmove ecx, esi
mov dword [0x8026bc], ecx
pop esi
ret
Function at 0x492adb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66f610
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x74b1ac]
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 0x74b0c4
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.004b009a
push dword [esi + 0x24]
call fcn.00445696
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x492b5a
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 0x499a24
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 0x499a6a
push 1
lea ecx, [edi + 0x38]
call fcn.0049999e
test eax, eax
je 0x499a63
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.00499211
jmp 0x499c28
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 0x499aa6
test eax, eax
mov ebx, 0x68637c
mov ecx, 0x68636c
mov eax, 0x6863ac
jmp 0x499ab7
test eax, eax
mov ebx, 0x68639c
mov ecx, 0x68638c
mov eax, 0x6863e8
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov edx, 0xff
xor eax, dword [ebp - 8]
push esi
mov cl, byte [ebx]
xor esi, esi
sar edx, cl
not edx
test eax, edx
je 0x499af1
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 0x499ad7
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.00499913
cmp esi, 9
jb 0x499ba7
jne 0x499b23
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x499c1f
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x499b56
push 0x686228
call fcn.004992a9
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.0049999e
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x499c19
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x6861f0
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.004992a9
add eax, 2
cmp eax, 0x101
jne 0x499b8a
cmp esi, 0xa
jne 0x499b8a
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x499c26
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 0x499c03
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 0x6862d0
call fcn.004992a9
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x499c00
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.00499211
pop esi
pop ebx
pop edi
leave
ret
Function at 0x49f304
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 0x49f3df
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x49f3df
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x49f348
mov byte [ebx], 0
jmp 0x49f356
mov edx, 0x2791
cmp cx, dx
jne 0x49f3df
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 [0x7fbb50], esi
jbe 0x49f3df
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x7fbb58]
cmp eax, dword [edx + 8]
jne 0x49f3b5
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x49f3b5
xor eax, eax
cmp byte [ebx], al
je 0x49f394
cmp dword [edx + 4], eax
jmp 0x49f396
cmp dword [edx], eax
sete al
test eax, eax
jne 0x49f3b2
mov cl, byte [edx + 0x18]
test ch, ch
je 0x49f3ab
test cl, cl
sete al
jmp 0x49f3ae
movzx eax, cl
test eax, eax
je 0x49f3c0
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x7fbb50]
jb 0x49f372
jmp 0x49f3df
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 0x49f3dd
mov eax, 0x80004002
jmp 0x49f3e1
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a1297
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]
cmp esi, 8
jb 0x4a12c1
push edi
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 0x4a12ae
pop edi
cmp esi, 4
jb 0x4a12cb
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x4a12dc
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
cmp esi, 1
jbe 0x4a12ea
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
test esi, esi
pop esi
je 0x4a12f4
movzx ecx, byte [ecx]
xor edx, ecx
mov eax, edx
pop ebp
ret
Function at 0x4a291a
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 0x4a2939
push edi
call fcn.004a368d
jmp 0x4a2991
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.004a380c
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 0x4a2992
push edi
call fcn.004a3316
pop ecx
sub ebx, 1
jne 0x4a2926
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a3390
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 0x4a33be
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x4a33b9
pop edi
pop esi
pop ebp
ret
Function at 0x4a3aeb
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 0x4a3b21
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4a3b14
cmp esi, ecx
jae 0x4a3c04
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 0x4a3b9a
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 + 0x6868e0]
xor ecx, eax
or ecx, edx
jmp 0x4a3bea
cmp edi, 6
jbe 0x4a3bea
cmp edx, 4
jne 0x4a3bea
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 0x4a3b33
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a4733
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 0x4ac4f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
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 - 8], esi
test edi, edi
je 0x4ac595
push ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x4ac533
mov al, byte [esi + ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edi, 1
je 0x4ac530
cmp ecx, 0x10
jne 0x4ac51f
mov dword [ebp + 0x10], edi
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
cmp edi, 0x10
jb 0x4ac560
mov esi, edi
mov edx, ebx
shr esi, 4
mov ecx, eax
push esi
call dword [0x8026b0]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 8]
push 0x10
mov dword [ebp + 0x10], edi
pop ecx
jmp 0x4ac563
mov dword [ebp - 4], eax
test edi, edi
je 0x4ac58f
mov ecx, dword [ebp - 4]
xor eax, eax
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 [0x8026b0]
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 0x4ac583
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax], ecx
pop edi
pop esi
leave
ret

Function at 0x4ac8bd
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 0x4ac916
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 + 0x8026e0]
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 + 0x8026e0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x4ac8dc
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