joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487e80
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x487e9e
mov eax, 0x1000000
pop esi
add esp, 0x50
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x487eb8
mov eax, 0x200
pop esi
add esp, 0x50
ret
mov eax, dword [esp + 0x20]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x487ecc
mov ebp, 1
test al, 2
je 0x487ed3
or ebp, 2
test al, 4
je 0x487eda
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x487ee4
or ebp, 0x10
test al, 0x20
je 0x487eeb
or ebp, 0x20
test ecx, ecx
je 0x487ef7
or ebp, 0x40000000
jmp 0x487efd
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x487f0d
or ebp, 0x800000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x487fbb
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x64], 0x54ad
jne 0x487fbb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x487fbb
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x487fb5
cmp eax, 0x454e
je 0x487fb5
cmp eax, 0x454c
je 0x487fb5
cmp eax, 0x4550
jne 0x487fbb
or ebp, 0x400000
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x487fc6
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
test eax, eax
je 0x487fd4
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test esi, esi
je 0x48803e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00487dc0
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00487dc0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00487dc0
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x488081
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x488260
Capabilities:
Write file on windows

Disassembly:
mov edx, ecx
push ebx
push esi
push edi
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x4882b0
mov edi, dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ecx, [edi + eax]
cmp ecx, esi
jb 0x48828c
pop edi
pop esi
mov dword [edx + 0xc], 0x30000
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x10]
mov ecx, eax
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1c]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x1c], ecx
pop ebx
ret 8
mov eax, dword [edx]
test eax, eax
je 0x4882d8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
mov dword [edx + 0xc], 0x1000000
xor eax, eax
pop ebx
ret 8

Function at 0x488700
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x48876a
mov eax, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
cmp eax, ebp
jae 0x4887bb
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x488726
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x48], ecx
call fcn.00487b90
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x4887b4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4887bb
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
add ecx, eax
push eax
mov eax, dword [ebx + 0x4c]
push esi
push eax
mov dword [ebx + 0x48], ecx
call fcn.00487b90
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0xc], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x48dc0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x48dc3e
call fcn.0048ccd5
mov dword [eax], esi
call fcn.0048ccc2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00495d30
add esp, 0x14
push 0x16
pop eax
jmp 0x48dc93
test dword [ebp + 0xc], 0xfffffff9
jne 0x48dc1a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48dc6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048cce8
pop ecx
call fcn.0048ccc2
mov eax, dword [eax]
jmp 0x48dc93
test al, 0x10
jne 0x48dc91
test al, 1
je 0x48dc91
test byte [ebp + 0xc], 2
je 0x48dc91
call fcn.0048ccd5
mov dword [eax], 5
call fcn.0048ccc2
mov dword [eax], 0xd
jmp 0x48dc62
xor eax, eax
pop esi
pop ebp
ret

Function at 0x49720a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50400c]
jne 0x497214
repz ret
jmp fcn.0049f7a2

Function at 0x49e82b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0049178d
and dword [ebp - 4], 0
cmp dword [0x53ada0], 0
mov ebx, eax
jne 0x49e8dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49e98d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e26b8
push edi
call esi
test eax, eax
je 0x49e98d
push eax
call fcn.0049171b
mov dword [esp], 0x4e26a8
push edi
mov dword [0x53ada0], eax
call esi
push eax
call fcn.0049171b
mov dword [esp], 0x4e2694
push edi
mov dword [0x53ada4], eax
call esi
push eax
call fcn.0049171b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x53ada8], eax
call esi
push eax
call fcn.0049171b
pop ecx
mov dword [0x53adb0], eax
test eax, eax
je 0x49e8dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049171b
pop ecx
mov dword [0x53adac], eax
mov eax, dword [0x53adac]
cmp eax, ebx
je 0x49e934
cmp dword [0x53adb0], ebx
je 0x49e934
push eax
call fcn.00491796
push dword [0x53adb0]
mov esi, eax
call fcn.00491796
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49e934
test edi, edi
je 0x49e934
call esi
test eax, eax
je 0x49e92b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49e92b
test byte [ebp - 0xc], 1
jne 0x49e934
or dword [ebp + 0x10], 0x200000
jmp 0x49e96d
mov eax, dword [0x53ada4]
cmp eax, ebx
je 0x49e96d
push eax
call fcn.00491796
pop ecx
test eax, eax
je 0x49e96d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49e96d
mov eax, dword [0x53ada8]
cmp eax, ebx
je 0x49e96d
push eax
call fcn.00491796
pop ecx
test eax, eax
je 0x49e96d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x53ada0]
call fcn.00491796
pop ecx
test eax, eax
je 0x49e98d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49e98f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a6fce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a7006
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a5085
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a505d
jmp 0x4a7012
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a86bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a86fe
call fcn.004ae366
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a86fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a86f5
xor eax, eax
jmp 0x4a8706
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a870c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ae896
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ae8c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ae8e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ae7fc
jmp 0x4ae8e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ae8e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ae7fc
test edi, edi
mov eax, edi
jne 0x4ae8cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40cce0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40cd11
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40cd18
cmp ebx, dword [ebp + 8]
jae 0x40cd18
xor eax, eax
jmp 0x40cf08
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40cd29
xor eax, eax
inc eax
jmp 0x40cf07
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40cd3f
cmp ecx, edx
jae 0x40ce84
cmp dword [eax + 4], 0
je 0x40cd48
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40cd30
cmp dword [ebp + 8], 0
je 0x40cd6a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40ce84
cmp eax, esi
jae 0x40ce84
mov eax, dword [0x6f8ba578]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40cd8f
cmp dword [esi*4 + 0x6f8ba580], edi
je 0x40ce88
inc esi
cmp esi, eax
jl 0x40cd7d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x6f881288]
test eax, eax
je 0x40cf04
cmp dword [ebp - 8], 0x1000000
jne 0x40cf04
test byte [ebp - 0xc], 0xcc
je 0x40ce0d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40cf04
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40cf04
cmp word [eax + 0x18], 0x10b
jne 0x40cf04
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40cf04
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ce0d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ce0d
test byte [ecx + 0x27], 0x80
jne 0x40ce84
push 1
push 0x6f8ba5c0
call dword [0x6f881284]
test eax, eax
jne 0x40cd21
mov ecx, dword [0x6f8ba578]
test ecx, ecx
mov edx, ecx
jle 0x40ce41
lea eax, [ecx*4 + 0x6f8ba57c]
cmp dword [eax], edi
je 0x40ce41
dec edx
sub eax, 4
test edx, edx
jg 0x40ce35
test edx, edx
jne 0x40ce72
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ce4e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ce66
lea eax, [edx*4 + 0x6f8ba580]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ce54
cmp ecx, 0x10
jge 0x40ce72
inc ecx
mov dword [0x6f8ba578], ecx
push 0
push 0x6f8ba5c0
call dword [0x6f881284]
jmp 0x40cd21
xor eax, eax
jmp 0x40cf07
test esi, esi
jle 0x40cd21
mov ebx, dword [0x6f881284]
push 1
push 0x6f8ba5c0
call ebx
test eax, eax
jne 0x40cd21
cmp dword [esi*4 + 0x6f8ba580], edi
je 0x40cede
mov eax, dword [0x6f8ba578]
lea esi, [eax - 1]
test esi, esi
jl 0x40cecc
cmp dword [esi*4 + 0x6f8ba580], edi
je 0x40cec8
dec esi
jns 0x40cebc
test esi, esi
jge 0x40cedc
cmp eax, 0x10
jge 0x40ced7
inc eax
mov dword [0x6f8ba578], eax
lea esi, [eax - 1]
jmp 0x40cede
je 0x40cef6
xor ecx, ecx
test esi, esi
jl 0x40cef6
lea eax, [ecx*4 + 0x6f8ba580]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40cee4
push 0
push 0x6f8ba5c0
call ebx
jmp 0x40cd21
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cef0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, ecx
push ecx
mov dword [ebp - 4], eax
call fcn.0040cc90
mov esi, eax
add esp, 4
xor ebx, ebx
mov dword [ebp - 8], esi
lea edi, [esi*4]
test edi, edi
jle 0x40cf68
mov eax, dword [ebp - 4]
lea esi, [eax + 8]
lea esi, [esi + edi*4]
lea ecx, [eax + 8]
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x40cf25
mov esi, dword [ebp - 8]
cmp esi, 1
jle 0x40d0ea
mov edi, dword [ebp - 4]
lea ebx, [esi - 1]
add edi, 4
nop word [eax + eax]
mov edx, dword [edi + 0xc]
lea edi, [edi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [edi - 3]
mov ecx, dword [ecx*4 + 0x4ad060]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ac460]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ae0a0]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ac860]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4ac860]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ac460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ad060]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ae0a0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4ac860]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ac460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ad060]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ae0a0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4ac860]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ac460]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ad060]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ae0a0]
mov dword [edi + 8], ecx
sub ebx, 1
jne 0x40cf80
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd50
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x214]
test eax, eax
je 0x40dd9a
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0x10
push ebx
push 0
push 0
push 0
push 0x10
push esi
push eax
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jns 0x40ddc3
push eax
push str.BCryptEncrypt_x_n
call fcn.00459e20
add esp, 8
mov ecx, edi
call fcn.0040dcf0
lea eax, [esi + 0x10]
mov dword [ebp + 0xc], eax
cmp esi, eax
jae 0x40ddc3
sub ebx, esi
mov edx, dword [edi + 0x1e0]
lea eax, [ebx + esi]
push eax
push esi
mov ecx, edi
call fcn.0040d100
add esi, 0x10
add esp, 8
cmp esi, dword [ebp + 0xc]
jb 0x40dda6
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40ddd0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x214]
test eax, eax
je 0x40de1a
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0x10
push ebx
push 0
push 0
push 0
push 0x10
push esi
push eax
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x40de51
push eax
push str.BCryptDecrypt_x_n
call fcn.00459e20
add esp, 8
mov ecx, edi
call fcn.0040dcf0
lea eax, [esi + 0x10]
mov dword [ebp + 0xc], eax
cmp esi, eax
jae 0x40de51
lea ecx, [edi + 0xf0]
sub ebx, esi
nop dword [eax]
mov edx, dword [edi + 0x1e0]
lea eax, [ebx + esi]
push eax
push esi
call fcn.0040d640
add esi, 0x10
lea ecx, [edi + 0xf0]
add esp, 8
cmp esi, dword [ebp + 0xc]
jb 0x40de30
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40de60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
call fcn.0040e000
mov dword [ebp - 0x1c], eax
lea edi, [edx + 0x1e4]
add eax, 0xfffffff0
mov dword [ebp - 0x24], eax
add eax, esi
mov dword [ebp - 0x20], eax
cmp esi, eax
jae 0x40dedf
nop
mov ecx, dword [esi]
xor ecx, dword [edi]
mov eax, dword [esi + 4]
xor eax, dword [edi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 8]
xor ecx, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor eax, dword [edi + 0xc]
push ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
mov dword [ebp - 0xc], ecx
mov ecx, edx
push eax
call fcn.0040dd50
mov edx, dword [ebp - 0x18]
mov edi, ebx
add esi, 0x10
add ebx, 0x10
cmp esi, dword [ebp - 0x20]
jb 0x40dea0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp + 0x10]
push ecx
movzx eax, cl
push eax
lea eax, [ebp - 4]
sub eax, ecx
push eax
call fcn.00481280
mov eax, dword [ebp + 0x10]
add esp, 0xc
sub eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0047f730
mov eax, dword [edi]
add esp, 8
xor dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
xor dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
xor dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
xor dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push eax
call fcn.0040dd50
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40df50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
add eax, 0xfffffff1
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
add eax, edi
mov dword [ebp - 0x18], eax
cmp edi, eax
jae 0x40dfd9
nop word [eax + eax]
movups xmm0, xmmword [edi]
push ecx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push edi
movups xmmword [ebp - 0x28], xmm0
call fcn.0040ddd0
mov ecx, dword [ebx + 0x1e4]
add edi, 0x10
mov eax, dword [ebx + 0x1e8]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ecx, dword [ebx + 0x1ec]
mov eax, dword [ebx + 0x1f0]
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
add esi, 0x10
movups xmmword [ebx + 0x1e4], xmm0
cmp edi, dword [ebp - 0x18]
jb 0x40df80
movzx ecx, byte [esi - 1]
mov eax, dword [ebp + 0x10]
sub eax, ecx
pop edi
lea edx, [ecx - 1]
mov ecx, dword [ebp - 4]
cmp edx, 0xf
pop esi
cmova eax, dword [ebp + 0x10]
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0x10