joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66238fc0
Capabilities:
Check if file exists
Get disk information

Disassembly:
test esi, esi
je 0x66238fca
cmp word [esi], 0
jne 0x66238fce
push 0x11
pop eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCServerShareW]
test eax, eax
je 0x66238fdd
push 0xf
pop eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCServerW]
test eax, eax
je 0x66238fec
push 0xe
pop eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x66238fca
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
push esi
je 0x66239036
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 0
je 0x66239032
dec eax
dec eax
je 0x6623902e
dec eax
je 0x6623902a
dec eax
je 0x66239026
dec eax
je 0x66239022
dec eax
jne 0x66238fca
push 0xb
pop eax
ret
push 0xa
pop eax
ret
push 9
pop eax
ret
push 8
pop eax
ret
push 7
pop eax
ret
push 0xc
pop eax
ret
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x66239044
push 3
pop eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
ret
Function at 0x662394af
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x1c
mov eax, 0x6624056f
call fcn.6623ba18
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x10], esi
je 0x662394d4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x8004
call dword [sym.imp.GrooveUtil.DLL_public:_static_unsigned_long_int___stdcall_GCStdCryptProv::GetHandle_void_]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
mov edi, 0x2e6b3474
mov ebx, 0x80004005
jne 0x66239501
push ebx
push edi
call fcn.661d7d78
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push esi
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x66239520
push ebx
push edi
call fcn.661d7d78
push 4
pop eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call esi
test eax, eax
jne 0x66239546
push ebx
push edi
call fcn.661d7d78
cmp dword [ebp - 0x18], 4
je 0x66239553
push ebx
push edi
call fcn.661d7d78
lea eax, [ebp - 0x28]
push eax
call fcn.661def35
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
call fcn.661db534
mov eax, dword [ebp - 0x28]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 2
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x6623958f
push 0x80004005
push edi
call fcn.661d7d78
push 1
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GrooveUtil.DLL_public:_static_class_GCStrRetVal___stdcall_GCBase64Coder::Encode_unsigned_char_const___unsigned_long_int__bool_]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x28]
push eax
call fcn.6621d9e9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x662395c1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
call fcn.6623baf0
ret 8

Function at 0x6623a17c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
push ebx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov dword [esi], ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x6623a1dc
cmp dword [ebp + 8], 1
je 0x6623a1b7
cmp dword [ebp + 8], 2
je 0x6623a1b7
push 0xd
pop eax
jmp 0x6623a1dc
cmp edi, ebx
mov eax, dword [ebp - 4]
je 0x6623a1d6
cmp eax, ebx
je 0x6623a1d3
test al, 1
jne 0x6623a1b2
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], bx
je 0x6623a1d6
jmp 0x6623a1b2
mov word [edi], bx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop ebx
leave
ret 4

Function at 0x6623a9c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x66286018]
jne 0x6623a9cb
repz ret
jmp fcn.6623af45
Function at 0x6623b4f5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x66286018]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.6623b3db
mov eax, 0x661d0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x6623b544
cmp dword [ebp - 0x1c], 5
jb 0x6623b55c
jmp 0x6623b558
cmp dword [ebp - 0x10], 1
jne 0x6623b55c
cmp dword [ebp - 0x1c], 4
ja 0x6623b558
jne 0x6623b55c
cmp dword [ebp - 0x18], 0
jbe 0x6623b55c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x66250a50
call fcn.66236176
test eax, eax
jge 0x6623b57d
mov byte [0x66292974], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.6623a9c1
add ebp, 0x78
leave
ret

Function at 0x6623b76a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x66292260], 0
push esi
jne 0x6623b6dd
call fcn.6623b608
test eax, eax
je 0x6623b720
mov eax, dword [0x66292260]
cmp eax, 1
jne 0x6623b6fe
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x6623b720
pop esi
ret
push eax
call dword [0x66292268]
test eax, eax
jne 0x6623b768
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6623b724
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x66292260]
call dword [0x66292268]
mov edi, eax
test edi, edi
je 0x6623b74b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x6623b767
lea edi, [esi + 0xff0]
push esi
push dword [0x66292260]
call dword [0x66292264]
add esi, 0x10
cmp esi, edi
jb 0x6623b751
mov eax, esi
pop edi
pop esi
ret
jmp 0x6623b6ca
Function at 0x4019df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a35
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401a27
cmp esi, ecx
jae 0x401a35
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401a15
cmp esi, ecx
jae 0x401a35
cmp word [esi], 0
je 0x401a35
mov eax, esi
jmp 0x401a37
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a6f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov edi, dword [esi + 0x9c]
cmp edi, 0xffffffff
je 0x40a784
cmp edi, 0x40
jbe 0x40a72d
lea edx, [esi + 0x40]
mov ecx, esi
call fcn.0040aa80
push 0x14
pop edi
mov dword [esi + 0x9c], edi
push ebx
push 0x40
pop eax
sub eax, edi
xor ebx, ebx
push eax
lea eax, [edi + esi]
push ebx
push eax
call fcn.0041e150
add esp, 0xc
movups xmm0, xmmword [esi + ebx*4]
movaps xmm1, xmmword [0x43ca50]
pxor xmm1, xmm0
movups xmmword [esi + ebx*4], xmm1
add ebx, 4
cmp ebx, 0x10
jb 0x40a743
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0040a9e4
push edi
push 0x40
pop edx
mov ecx, esi
call fcn.0040aa0f
or dword [esi + 0x9c], 0xffffffff
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
pop ebx
jmp 0x40a787
lea edi, [esi + 0x40]
test eax, eax
je 0x40a794
push edi
mov edx, eax
call fcn.0040aa0f
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40a798
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x9c], 0xffffffff
je 0x40a7c6
push esi
xor edx, edx
xor ecx, ecx
call fcn.0040a6f8
pop ecx
push edi
lea edi, [esi + 0x40]
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040aa80
xor eax, eax
movups xmm0, xmmword [esi + eax*4]
pxor xmm0, xmmword [0x43ca70]
movups xmmword [esi + eax*4], xmm0
add eax, 4
cmp eax, 0x10
jb 0x40a7d6
mov ecx, edi
call fcn.0040a9e4
push edi
push 0x40
pop edx
mov ecx, esi
call fcn.0040aa0f
push edi
push 0x14
pop edx
lea ecx, [ebp - 0x18]
call fcn.0040aa0f
pop ecx
pop ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040aa80
pop edi
test ebx, ebx
je 0x40a82d
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.0041f800
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bb79
leave
ret
Function at 0x40a83b
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
mov eax, ecx
ror eax, 8
lea esi, [esi + 4]
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp + edx*4 - 0x158], eax
inc edx
cmp edx, 0x10
jb 0x40a851
push 0x40
lea ecx, [ebp - 0x150]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x40a881
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0x14
jmp 0x40a8bf
mov ecx, dword [ebp - 0xc]
not ecx
mov edx, esi
and ecx, eax
rol esi, 5
mov eax, ebx
and eax, dword [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
add esi, ecx
add eax, 0x5a827999
add esi, dword [ebp + edi*4 - 0x158]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, dword [ebp - 0xc]
ror ebx, 2
inc edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
cmp edi, 0x14
jb 0x40a8bc
mov dword [ebp - 0x18], 0x28
xor eax, ebx
mov ecx, esi
xor eax, edx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x14]
add esi, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov edx, ecx
ror ebx, 2
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x28
jb 0x40a903
mov dword [ebp - 0xc], edx
mov edi, edx
mov ecx, ebx
mov edx, esi
xor ecx, edi
rol esi, 5
add esi, dword [ebp - 8]
and ecx, eax
mov eax, ebx
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x18]
add ecx, 0x8f1bbcdc
push 0x3c
add ecx, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 4]
add esi, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edi
mov dword [ebp - 4], eax
ror ebx, 2
mov edi, edx
inc ecx
pop edx
mov dword [ebp - 0x18], ecx
cmp ecx, edx
jb 0x40a945
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor eax, ebx
mov dword [ebp - 0x10], esi
xor eax, ecx
rol esi, 5
add esi, dword [ebp - 8]
add eax, 0xca62c1d6
add eax, dword [ebp + edx*4 - 0x158]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
ror ebx, 2
inc edx
cmp edx, 0x50
jb 0x40a994
add dword [edi + 8], esi
mov eax, ecx
add dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
add dword [edi + 0x14], eax
add dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
add dword [edi + 0x18], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a9e4
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x40ab82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa0
mov dword [ebp - 0x220], eax
mov esi, edx
lea eax, [ebp - 0xcc]
mov edi, ecx
push 0
push eax
call fcn.0041e150
lea eax, [ebp - 0xcc]
mov edx, esi
push eax
mov ecx, edi
call fcn.0040a68d
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xcc]
push 0x28
pop ecx
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040a6f8
mov eax, dword [ebp + 0x18]
add esp, 0x14
dec eax
xor edx, edx
push 0x14
pop ecx
div ecx
add eax, 1
mov dword [ebp - 0x228], eax
je 0x40ad14
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
inc ebx
mov dword [ebp - 0x210], ebx
xor eax, eax
mov dword [ebp - 0x224], ebx
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x15], bl
stosd dword es:[edi], eax
lea esi, [ebp - 0x20c]
push 0x28
pop ecx
push 4
stosd dword es:[edi], eax
pop edx
mov dword [ebp - 0x218], 0x3e8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ebx
shr eax, 0x18
lea edi, [ebp - 0x16c]
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a6f8
lea eax, [ebp - 0x16c]
push eax
push 0x14
pop ebx
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.0040a798
pop ecx
pop ecx
xor edx, edx
mov al, byte [ebp + edx - 0x18]
xor byte [ebp + edx - 0x2c], al
inc edx
cmp edx, ebx
jb 0x40ac93
sub dword [ebp - 0x218], 1
lea esi, [ebp - 0xcc]
push 0x28
pop ecx
lea edi, [ebp - 0x16c]
rep movsd dword es:[edi], dword [esi]
jne 0x40ac6c
mov ecx, dword [ebp - 0x214]
xor edx, edx
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x220]
push 0x14
pop eax
cmp ecx, esi
jae 0x40ace7
mov al, byte [edi + ecx]
inc edx
mov byte [ecx + ebx], al
inc ecx
push 0x14
pop eax
cmp edx, eax
jb 0x40acd4
mov ebx, dword [ebp - 0x210]
sub edi, eax
add dword [ebp - 0x214], eax
inc ebx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], edi
cmp eax, dword [ebp - 0x228]
jb 0x40ac23
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bb79
leave
ret
Function at 0x40adbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40adee
test dl, 7
je 0x40adeb
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub esi, 1
jne 0x40add2
mov dword [ebp - 4], edx
cmp esi, 8
jb 0x40ae7a
mov eax, esi
shr eax, 3
mov dword [ebp + 8], eax
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x1800]
xor ecx, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x1000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x1c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
mov ebx, ecx
add edx, 8
sub dword [ebp + 8], 1
mov dword [ebp - 4], edx
jne 0x40adff
test esi, esi
je 0x40ae92
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub esi, 1
jne 0x40ae7e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

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

Disassembly:
push esi
xor ecx, ecx
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 0x40d104
mov dword [ecx*4 + 0x447d30], edx
inc ecx
cmp ecx, 0x100
jb 0x40d0ff
mov edx, 0x400
mov ecx, dword [edx + 0x447930]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x447d30]
mov dword [edx + 0x447d30], ecx
add edx, 4
cmp edx, 0x2000
jb 0x40d12e
mov dword [0x447d28], 0x40ad23
call fcn.0040d6bb
mov ecx, dword [0x447d28]
test eax, eax
mov edx, fcn.0040adbc
cmove ecx, edx
mov dword [0x447d28], ecx
pop esi
ret
Function at 0x40d3bf
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 0x40d3e2
xor eax, eax
jmp 0x40d50d
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 0x40d406
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40d403
inc edi
cmp edi, edx
jb 0x40d3f6
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x40d4fb
cmp ecx, 2
jbe 0x40d48f
xor esi, esi
movzx ecx, byte [edi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x40d4e9
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 0x40d4c3
and esi, 6
mov eax, ecx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x40d4c1
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 0x40d4bf
add edx, eax
jmp 0x40d4c1
shr esi, cl
test esi, esi
je 0x40d41f
cmp esi, 4
ja 0x40d4b4
cmp esi, 3
je 0x40d4b4
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x40d41f
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x40d3ef
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 0x40d4f1
or esi, 8
xor eax, eax
shr esi, 1
inc eax
add ebx, eax
mov eax, dword [ebp - 4]
jmp 0x40d3ef
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

Function at 0x40dd64
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 0x410079
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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

Function at 0x410102
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 8]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x41014b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 2
movsd dword es:[edi], dword [esi]
pop ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
xor edi, edi
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00410102
mov byte [ebp + edi - 0x10], bl
inc edi
push 2
pop ecx
cmp edi, 0xb
jl 0x410172
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.00410102
cmp bl, byte [ebp + 0x10]
pop ebx
jne 0x4101e7
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp dl, byte [ebp + 0xc]
setne cl
xor eax, eax
mov dword [esi + 0x10], ecx
inc eax
jmp 0x4101e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bb79
leave
ret 0xc
Function at 0x410e66
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x410e88
cmp eax, 2
jne 0x410eaf
mov ecx, esi
call fcn.0041150e
mov esi, eax
test esi, esi
je 0x410eaf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.00422ab2
pop ecx
cmp ebx, 0xffffffff
je 0x410eaf
test bl, 0x10
je 0x410eb3
xor eax, eax
jmp 0x410eb6
xor eax, eax
inc eax
pop esi
pop ebx
ret
Function at 0x411490
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x411507
cmp word [esi], 0
je 0x411507
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042346f
mov edi, eax
pop ecx
test edi, edi
je 0x411507
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, edi
call fcn.00411461
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00411040
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x4114fb
test bl, 7
je 0x4114fb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.00422ab2
mov eax, dword [ebp - 4]
pop ecx
jmp 0x411509
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret