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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x67b374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041d048
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x44b558
lea eax, [ebp - 0x14]
push eax
call fcn.0044aed7
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x44b534
push 0
call fcn.00412821
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44b558
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00412821
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450cb7
leave
ret 0x14
Function at 0x44e40c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x5f7911
call fcn.00451557
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.004145d0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041227b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004145d6
mov ecx, eax
call fcn.00412976
test al, al
je 0x44e4fa
push ebx
lea ecx, [ebp - 0x94]
call fcn.00412472
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00412452
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44e49d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00412352
jmp 0x44e5db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44e489
push esi
mov dword [ebp - 0x2c8], edi
call fcn.00450d2e
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x44e5c6
push edi
call fcn.00450d29
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00412352
jmp 0x44e5d9
call fcn.004145d6
push eax
lea ecx, [ebp - 0x94]
call fcn.00412455
call fcn.00414799
test al, al
je 0x44e51b
call fcn.004145dc
jmp 0x44e532
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00412452
push eax
call fcn.0042654a
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x44e489
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00425f8a
add esp, 0x14
test eax, eax
jne 0x44e489
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x44e489
push esi
call fcn.00450d2e
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00426921
add esp, 0x18
test eax, eax
je 0x44e5b6
cmp eax, 0x600
je 0x44e5b6
push edi
call fcn.00450d29
pop ecx
call fcn.00414799
test al, al
jne 0x44e4e6
push ebx
call fcn.00425de6
jmp 0x44e4e5
call fcn.00414799
test al, al
jne 0x44e5c6
push ebx
call fcn.00425de6
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00412352
test edi, edi
jne 0x44e64d
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e649
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44e649
push esi
mov dword [ebp - 0x2d0], edi
call fcn.00450d2e
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x44e645
push edi
call fcn.00450d29
pop ecx
xor edi, edi
test edi, edi
jne 0x44e64d
xor eax, eax
jmp 0x44e668
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0044e670
push 1
push edi
mov esi, eax
call fcn.00450cc8
pop ecx
pop ecx
mov eax, esi
call fcn.00451501
ret 4
Function at 0x4537a4
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x5f7be6
call fcn.00451557
mov edi, edx
mov esi, ecx
xor eax, eax
mov ecx, edi
mov ebx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x14], 8
jb 0x4537c8
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4537d2
mov eax, dword [esi]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x453824
cmp dword [edi + 0x14], 8
jb 0x4537e8
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x40]
call fcn.00405af0
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], ebx
jb 0x453803
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.00405af0
push 3
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x40]
pop ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
call fcn.004537a4
test al, al
je 0x453828
mov byte [ebp - 0x48], 1
test bl, 2
je 0x453838
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.00405f90
test bl, 1
je 0x453845
lea ecx, [ebp - 0x40]
call fcn.00405f90
mov al, byte [ebp - 0x48]
call fcn.00451501
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x453bb0
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x453bbe
Capabilities:
Copy file
Delete file

Disassembly:
push 0x3c
mov eax, 0x5f7caf
call fcn.00451557
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x453c76
cmp dword [esi + 0x10], 0x104
ja 0x453c76
call fcn.00453ba8
test al, al
jne 0x453bf3
inc al
jmp 0x453c78
xor edi, edi
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0040a990
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push edi
add eax, 2
mov dword [ebp - 4], edi
push eax
call fcn.004110f0
push 0x1e
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.005c7c50
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.00405f90
mov al, bl
jmp 0x453c78
xor al, al
call fcn.00451501
ret
Function at 0x454d3a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x98], 5
jne 0x454d61
cmp dword [ebp + 0xc], 0
je 0x454d61
mov ecx, esi
call fcn.00454ba6
mov eax, 0x80004005
jmp 0x454e74
xor ecx, ecx
push edi
cmp dword [esi + 0x54], ecx
jne 0x454d90
push 0x608394
call fcn.00455019
pop ecx
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x454e71
mov edx, dword [ecx]
lea eax, [esi + 0x14]
push eax
call dword [edx + 0x14]
jmp 0x454e71
cmp byte [esi + 0x64], cl
jne 0x454d9f
cmp byte [esi + 0x70], cl
jne 0x454d9f
cmp byte [esi + 0x7c], cl
je 0x454dfd
lea eax, [esi + 0x44]
cmp dword [eax + 0x14], 8
jb 0x454daa
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 0x454dfd
xor edx, edx
lea ecx, [esi + 0x68]
cmp byte [esi + 0x64], dl
cmovne edx, ecx
xor eax, eax
cmp byte [esi + 0x70], al
lea ecx, [esi + 0x74]
push edx
cmovne eax, ecx
xor ecx, ecx
cmp byte [esi + 0x7c], cl
push eax
lea eax, [esi + 0x80]
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 + 0x5d], 0
je 0x454e18
lea eax, [esi + 0x44]
cmp dword [eax + 0x14], 8
jb 0x454e0e
mov eax, dword [eax]
push dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edi, [esi + 0x44]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x454e25
mov eax, dword [edi]
push eax
push str.FileDone:_s_n
call fcn.00455019
pop ecx
pop ecx
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x454e71
push dword [esi + 0x94]
mov eax, dword [ecx]
push dword [esi + 0x90]
push edi
call dword [eax + 0x1c]
test al, al
jne 0x454e59
mov eax, 0x80004005
jmp 0x454e73
mov ecx, dword [esi + 0x9c]
push dword [esi + 0x94]
push dword [esi + 0x90]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x459752
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x68aee9], 0
jne 0x459801
mov ecx, 0x608564
call fcn.00464cb9
mov ecx, 0x608540
call fcn.00464cb9
mov ecx, 0x608664
call fcn.00464cb9
mov ecx, 0x608688
call fcn.00464cb9
mov ecx, 0x608640
call fcn.00464cb9
mov ecx, 0x608520
call fcn.0047596f
mov ecx, 0x6084a0
call fcn.0047596f
mov ecx, 0x6084c0
call fcn.0047596f
mov ecx, 0x6084e0
call fcn.0047596f
mov ecx, 0x608588
call fcn.0047596f
mov ecx, 0x6085a8
call fcn.0047596f
mov ecx, 0x608460
call fcn.0047596f
mov ecx, 0x608480
call fcn.0047596f
mov ecx, 0x6085c8
call fcn.0047596f
mov ecx, 0x6085e8
call fcn.0047596f
mov byte [0x68aee9], 1
jmp 0x478a37
ret
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x478a3f
mov dword [ecx*4 + 0x692fa0], edx
inc ecx
cmp ecx, 0x100
jb 0x478a3a
mov edx, 0x400
mov ecx, dword [edx + 0x692ba0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x692fa0]
mov dword [edx + 0x692fa0], ecx
add edx, 4
cmp edx, 0x2000
jb 0x478a69
mov eax, 0x5f4ff0
mov esi, 0x5f4f10
mov dword [0x692f94], eax
mov dword [0x692f8c], eax
mov dword [0x692f90], esi
call fcn.00490095
mov ecx, dword [0x692f8c]
test eax, eax
cmove ecx, esi
mov dword [0x692f8c], ecx
pop esi
ret
Function at 0x46492a
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], edx
sub edx, 1
je 0x46494c
sub edx, 3
je 0x464943
sub edx, 6
jne 0x464950
add ecx, 0x10
jmp fcn.0047e320
or dword [ecx + 8], 0xffffffff
or dword [ecx + 0xc], 0xffffffff
ret
or dword [ecx + 4], 0xffffffff
ret
Function at 0x478b93
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov byte [ebp - 1], dl
or dword [ebx], 0xffffffff
cmp dword [ecx], 0x23170f69
jne 0x478c6c
mov eax, 0x40c1
cmp word [ecx + 4], ax
jne 0x478c6c
mov edi, dword [ebp + 0xc]
mov edx, 0x2790
mov byte [edi], 1
movzx eax, word [ecx + 6]
cmp ax, dx
jne 0x478bd8
mov byte [edi], 0
jmp 0x478be6
mov edx, 0x2791
cmp ax, dx
jne 0x478c6c
mov eax, dword [ecx + 8]
xor esi, esi
mov ecx, dword [ecx + 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], ecx
cmp dword [0x68b328], esi
jbe 0x478c6c
mov ch, byte [ebp + 8]
mov edx, dword [esi*4 + 0x68b330]
cmp eax, dword [edx + 8]
jne 0x478c42
mov ebx, dword [ebp - 8]
cmp ebx, dword [edx + 0xc]
mov ebx, dword [ebp + 0x10]
jne 0x478c42
xor eax, eax
cmp byte [edi], al
je 0x478c21
cmp dword [edx + 4], eax
jmp 0x478c23
cmp dword [edx], eax
sete al
test eax, eax
jne 0x478c3f
mov cl, byte [edx + 0x18]
test ch, ch
je 0x478c38
test cl, cl
sete al
jmp 0x478c3b
movzx eax, cl
test eax, eax
je 0x478c4d
mov eax, dword [ebp + 0xc]
inc esi
cmp esi, dword [0x68b328]
jb 0x478bff
jmp 0x478c6c
movzx ecx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
xor ecx, 1
cmp dword [edx + 0x14], 1
cmove ecx, eax
test ecx, ecx
je 0x478c6a
mov eax, 0x80004002
jmp 0x478c6e
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x479c25
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x2c], edi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x28], ebx
cmp ebx, 3
jae 0x479c4c
call fcn.0047a461
xor eax, eax
jmp 0x479d4c
mov ecx, dword [esi]
mov dword [ebp - 8], 2
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [esi + 0x24]
xor edx, dword [esi + eax*4 + 0x60]
movzx edx, dx
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], ecx
mov dword [ebx + edx*4], eax
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
sub edx, eax
cmp edx, ebx
jae 0x479d2d
cmp dword [ebp - 0x10], edx
sbb eax, eax
sub ecx, edx
and eax, ebx
mov ebx, dword [ebp - 0x14]
sub eax, edx
add eax, dword [ebp - 0x10]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
cmp al, byte [ecx + ebx]
jne 0x479d11
mov eax, dword [ebp - 4]
mov ebx, eax
mov al, byte [eax]
jmp 0x479cf3
inc ebx
cmp ebx, dword [ebp - 0x24]
je 0x479d1f
mov al, byte [ebx]
mov ecx, ebx
sub ecx, edx
cmp al, byte [ecx]
je 0x479ce7
mov ecx, dword [ebp - 4]
sub ebx, ecx
cmp dword [ebp - 8], ebx
jae 0x479d14
lea eax, [edx - 1]
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, 8
mov dword [ebp - 8], ebx
jmp 0x479d14
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x18], 1
je 0x479d2d
mov eax, dword [ebp - 0xc]
jmp 0x479cad
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
lea eax, [edx - 1]
mov dword [edi + 4], eax
add edi, 8
sub edi, dword [ebp - 0x2c]
sar edi, 2
inc dword [esi + 0x14]
inc dword [esi]
inc dword [esi + 4]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jne 0x479d4a
mov ecx, esi
call fcn.0047a0eb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47a15d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or dword [ecx + 0x468], 0xffffffff
xor edx, edx
or dword [ecx + 0x46c], 0xffffffff
push esi
push edi
mov dword [ecx + 0x34], edx
lea esi, [ecx + 0x60]
mov word [ecx + 0x1e], dx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
push 8
mov ecx, edx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x47a193
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x47a18e
pop edi
pop esi
ret
Function at 0x47c354
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp edx, 8
jb 0x47c375
push edi
mov edi, edx
shr edi, 3
mov eax, dword [ecx + 4]
sub edx, 8
xor eax, dword [ecx]
add ecx, 8
xor esi, eax
sub edi, 1
jne 0x47c362
pop edi
cmp edx, 4
jb 0x47c37f
xor esi, dword [ecx]
add ecx, 4
and edx, 3
cmp edx, 2
jbe 0x47c390
movzx eax, byte [ecx]
shl eax, 0x10
xor esi, eax
inc ecx
cmp edx, 1
jbe 0x47c39e
movzx eax, byte [ecx]
shl eax, 8
xor esi, eax
inc ecx
test edx, edx
je 0x47c3a7
movzx ecx, byte [ecx]
xor esi, ecx
mov eax, esi
pop esi
ret
Function at 0x47e05a
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 0x47e090
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x47e083
cmp esi, ecx
jae 0x47e173
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 0x47e109
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 + 0x60a6a8]
xor ecx, eax
or ecx, edx
jmp 0x47e159
cmp edi, 6
jbe 0x47e159
cmp edx, 4
jne 0x47e159
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 0x47e0a2
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47e320
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x485ca6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 4]
mov ebx, edx
mov edx, dword [ecx]
add esi, 2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea esi, [ecx + esi*4]
mov dword [ebp - 4], esi
test edi, edi
je 0x485d3c
cmp edx, 0x10
je 0x485ce2
mov al, byte [esi + edx]
xor byte [ebx], al
inc edx
inc ebx
sub edi, 1
je 0x485cdf
cmp edx, 0x10
jne 0x485cce
mov dword [ebp + 8], edi
lea ecx, [esi + 0x10]
mov dword [ebp - 8], ecx
cmp edi, 0x10
jb 0x485d0e
mov esi, edi
mov edx, ebx
shr esi, 4
push esi
call dword [0x692f80]
mov ecx, dword [ebp - 8]
shl esi, 4
add ebx, esi
sub edi, esi
mov esi, dword [ebp - 4]
push 0x10
mov dword [ebp + 8], edi
pop edx
test edi, edi
je 0x485d37
xor eax, eax
mov edi, esi
push 1
mov edx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [0x692f80]
mov ecx, dword [ebp + 8]
xor edx, edx
sub esi, ebx
mov al, byte [esi + ebx]
xor byte [ebx], al
inc edx
inc ebx
sub ecx, 1
jne 0x485d2b
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x486037
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 0x486090
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 + 0x692fa0]
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 + 0x692fa0]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x486056
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 0x4860a4
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 0x48612a
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 + 0x692fa0]
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 + 0x692fa0]
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 0x4860c5
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 0x48613c
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 0x4861c6
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 + 0x692fa0]
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 + 0x692fa0]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x48615d
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 0x4862d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x67b374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, dl
mov edi, ecx
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005c7c50
lea eax, [ebp - 0x44]
add esp, 0xc
xor esi, esi
sub edi, eax
lea ecx, [ebp - 0x44]
add ecx, esi
mov al, byte [edi + ecx]
xor byte [ecx], al
inc esi
cmp esi, 0x14
jb 0x486308
lea ecx, [ebp - 0xa4]
call fcn.004999af
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.004999da
mov edx, ebx
lea ecx, [ebp - 0xa4]
call fcn.00499086
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450cb7
leave
ret 4
Function at 0x487f96
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x487fb9
xor eax, eax
jmp 0x4880e4
add dword [ebp + 8], 5
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x487fdd
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x487fda
inc edi
cmp edi, edx
jb 0x487fcd
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4880d2
cmp ecx, 2
jbe 0x488066
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4880c0
movzx eax, byte [edi + 3]
mov edx, dword [ebp + 8]
shl ecx, 8
add edx, ebx
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, edx
sub eax, edx
cmp dword [ebp + 0x10], 0
cmove ecx, eax
mov dword [ebp - 8], ecx
mov edx, ecx
test esi, esi
je 0x48809a
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x488098
mov eax, dword [ebp + 8]
mov edx, 0x100
shl edx, cl
add eax, ebx
dec edx
xor edx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x488096
add edx, eax
jmp 0x488098
shr esi, cl
test esi, esi
je 0x487ff6
cmp esi, 4
ja 0x48808b
cmp esi, 3
je 0x48808b
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x487ff6
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x487fc6
sub edx, eax
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
push 5
mov byte [edi + 4], dl
mov edx, dword [ebp - 0xc]
pop eax
jmp 0x4880c8
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x487fc6
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc