joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x4ad51a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4ad51a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad4c1
shr eax, 4
pop esi
and eax, 1
pop ebx
pop ebp
ret 4
push edi
push esi
call fcn.005684a2
mov edi, eax
push 0x5c
push edi
call fcn.005964d0
add esp, 0xc
test eax, eax
je 0x4ad511
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.004ad490
push edi
test al, al
jne 0x4ad4fc
call fcn.0054ca06
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.0054ca06
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ad4f3
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x4ad530
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x4ad560
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4ad5c7
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
setne bl
test bl, bl
je 0x4ad5c7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
setne bl
test bl, bl
je 0x4ad5c7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov dword [ebp - 4], edx
mov al, byte [ebx]
test al, al
je 0x4ad65a
push esi
push edi
mov edi, dword [edx + 4]
mov esi, 0x34567890
nop
mov ecx, dword [edx]
lea ebx, [ebx + 1]
movsx eax, al
xor eax, dword [edx]
mov edx, dword [ebp + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
xor eax, ecx
mov ecx, dword [ebp + 8]
mov dword [edx], eax
movzx eax, al
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [edx + 4], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
mov dword [edx + 8], esi
mov al, byte [ebx]
test al, al
jne 0x4ad610
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0250
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b025b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b0270
Function at 0x4b1070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00544f80
mov eax, dword [0x610684]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ecx
push 0
push eax
test esi, esi
jne 0x4b10fd
lea eax, [ebp - 0x1008]
push 0xffd
push eax
call fcn.00449420
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005574de
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x4b10d0
lea eax, [ebp + eax - 0x1008]
jmp 0x4b10d8
cmp eax, 0xffffffff
jne 0x4b1116
lea eax, [ebp - 0xb]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544516
mov esp, ebp
pop ebp
ret
push esi
call fcn.00449420
push dword [eax + 4]
push dword [eax]
call fcn.005573a2
push esi
call fcn.0056002f
add esp, 0x1c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00544516
mov esp, ebp
pop ebp
ret

Function at 0x4bbcbf
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bbcf8
cmp dword [ebp + 0x10], 0
je 0x4bbcf8
cmp dword [ebp + 0x14], 0
je 0x4bbcf8
cmp dword [ebp + 0x18], 0
je 0x4bbcf8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_domain_data_WHERE_domain___d_AND_subdomain___q_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.004bcd6e
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x4bbcfd
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bbd2d
cmp dword [ebp + 0x10], 0
je 0x4bbd2d
cmp dword [ebp + 0x14], 0
je 0x4bbd2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_key_FROM_domain_data_WHERE_domain___d_AND_subdomain___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.004bcb99
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x4bbd32
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bbd59
cmp dword [ebp + 0x10], 0
je 0x4bbd59
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_subdomain_FROM_domain_data_WHERE_domain___d
push dword [ebp + 0x10]
push dword [eax]
call fcn.004bcb99
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x4bc822
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5a48c8
call fcn.00545007
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 0x30]
push eax
lea esi, [edi + 0x18]
push esi
call fcn.004bd14f
add esp, 0xc
test al, al
jne 0x4bc862
push 0xa
pop esi
jmp 0x4bc9ac
lea eax, [ebp - 0x28]
push eax
call fcn.004bd0b5
pop ecx
test al, al
jne 0x4bc897
lea eax, [ebp - 0x28]
push eax
call fcn.004bd249
pop ecx
test al, al
je 0x4bc886
xor esi, esi
inc esi
jmp 0x4bc9ac
push esi
call fcn.004bc68a
mov esi, eax
pop ecx
test esi, esi
jne 0x4bc9ac
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
lea esi, [edi + 4]
push esi
push eax
call fcn.004c2e48
add esp, 0x10
test eax, eax
je 0x4bc8c7
push eax
mov dword [esi], ebx
call fcn.004bc704
pop ecx
mov esi, eax
jmp 0x4bc9ac
push 0x7d0
push dword [esi]
call fcn.004c1aa6
cmp byte [edi + 0x4c], 0
mov esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x4bc9ac
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
sub eax, ebx
je 0x4bc914
sub eax, 1
je 0x4bc90f
sub eax, 1
jne 0x4bc914
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 1
push 3
jmp 0x4bc916
xor ebx, ebx
inc ebx
jmp 0x4bc917
push 2
pop ebx
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004bcd6e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bc95f
push dword [ebp - 0x34]
call fcn.005584ad
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push edi
call fcn.004bcd6e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bc95f
push dword [ebp - 0x34]
call fcn.005584ad
pop ecx
jmp 0x4bc962
mov eax, dword [ebp - 0x30]
cmp ebx, eax
jge 0x4bc96b
push 0xd
pop esi
jmp 0x4bc9a3
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x4bc99f
push eax
mov ecx, edi
call fcn.004bc9c1
mov esi, eax
test esi, esi
jne 0x4bc994
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x4bc979
jmp 0x4bc9aa
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp eax, dword [ebp - 0x2c]
cmove esi, ecx
test esi, esi
je 0x4bc9aa
mov ecx, edi
call fcn.004bc7f4
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044c600
mov eax, esi
call fcn.00544fc2
ret 4

Function at 0x4bce8a
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x5a7f28
call fcn.00545007
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.00508719
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004bd249
add esp, 0xc
test al, al
jne 0x4bced2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044f370
mov eax, edi
call fcn.00544fc2
ret
Function at 0x4bcee5
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x5a4b44
call fcn.00545007
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x4bcf8a
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4bcf7a
cmp word [ebp - 0x218], 0
jne 0x4bcf58
xor eax, eax
jmp 0x4bcf65
lea eax, [ebp - 0x218]
push eax
call fcn.00563959
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0044f430
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x4bcfca
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4bcfca
cmp word [ebp - 0x218], di
jne 0x4bcfa8
mov eax, edi
jmp 0x4bcfb5
lea eax, [ebp - 0x218]
push eax
call fcn.00563959
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0044f430
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x4bd040
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4bd000
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.004bd610
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005087d1
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00452e80
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.0044c600
mov edi, 0x5b2984
push edi
call fcn.005637f0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0044c660
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0044f370
mov al, bl
call fcn.00544fc2
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x610684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00508719
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bd096
test al, 0x10
jbe 0x4bd096
mov bl, 1
jmp 0x4bd098
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0044f370
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00544516
mov esp, ebp
pop ebp
ret
Function at 0x4bd249
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x610684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00508719
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0044f370
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00544516
mov esp, ebp
pop ebp
ret

Function at 0x4e42c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e42d5
xor eax, eax
jmp 0x4e43b4
push ebx
mov ebx, dword [ebp + 8]
push edi
push 8
push ebx
call fcn.004e0bab
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
pop ecx
test edi, edi
je 0x4e4320
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x4e4304
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x4e4304
add eax, eax
cmp eax, dword [esi]
jl 0x4e42fe
imul eax, eax, 0x18
push eax
push ebx
call fcn.004e0bab
mov dword [edi + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x4e4327
push edi
push ebx
call fcn.004e0b4e
pop ecx
pop ecx
xor eax, eax
jmp 0x4e43b2
and dword [ebp - 8], 0
cmp dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
jle 0x4e43b0
lea edx, [eax + 0x10]
sub eax, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0x10]
push dword [ecx]
push ebx
call fcn.004ce526
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx], eax
push dword [ecx + 4]
push ebx
call fcn.004e0d95
mov ecx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.004e0d95
mov edx, dword [ebp - 4]
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [edx - 8], eax
mov al, byte [ecx + 0xc]
and dword [edx], 0xfffffffe
mov byte [edx - 4], al
mov eax, dword [ecx + 0x10]
xor eax, dword [edx]
and eax, 2
xor dword [edx], eax
mov eax, dword [ecx + 0x14]
add ecx, 0x18
mov dword [edx + 4], eax
add edx, 0x18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [esi]
jl 0x4e4343
mov edi, dword [ebp - 0x10]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4febba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x4febe6
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x5b39f8]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x4febcc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x50b3a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4fa8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x610684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x50b3da
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [esi + 8]
push ebx
push 0x5ae9e8
push 1
push 0
push 0x5aeab8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x50b485
cmp dword [ebx], 0
je 0x50b45f
push str.ROOTCIMV2
lea ecx, [ebp - 0x10]
call fcn.0050b0f0
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x50b433
mov edi, dword [eax]
jmp 0x50b435
xor edi, edi
mov ecx, dword [ebx]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [edx + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.0050b840
test edi, edi
js 0x50b485
mov eax, dword [esi + 4]
test eax, eax
je 0x50b481
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jns 0x50b4bb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x50b492
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x50b49e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x50b4aa
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [ebx], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50ba90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x50ed07
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5a5a88
call fcn.00545007
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x50ee07
cmp byte [ebx + 0x3d], 0
je 0x50ee07
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x50ed41
xor al, al
jmp 0x50ee09
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00462f50
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x50ed9f
sub eax, 1
je 0x50eda3
dec eax
sub eax, 1
je 0x50edf5
xor bl, bl
jmp 0x50edf7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x50eddb
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00563c84
add esp, 0x10
cmp esi, eax
jne 0x50ed9b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x50edf5
test esi, esi
jne 0x50ed65
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00453520
jmp 0x50ed5f
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0044c600
mov al, bl
jmp 0x50ee09
mov al, 1
call fcn.00544fc2
ret

Function at 0x511232
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
push edi
call fcn.005111d7
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x5112b7
push 1
push esi
call fcn.005111d7
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x5112ba
mov ecx, edx
mov eax, ebx
shr ecx, 2
test ecx, ecx
je 0x51128c
mov edx, edi
mov dword [ebp - 4], ecx
sub edx, esi
mov edi, esi
mov eax, dword [edx + edi]
xor eax, dword [edi]
lea edi, [edi + 4]
or ebx, eax
sub ecx, 1
jne 0x511274
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
shl eax, 2
sub edx, eax
jne 0x51129c
xor eax, eax
test ebx, ebx
sete al
jmp 0x5112d2
add edi, eax
add esi, eax
mov ecx, ebx
mov eax, ebx
shr eax, 0x10
shr ecx, 0x18
or cl, al
mov eax, ebx
shr eax, 8
or cl, al
or bl, cl
jmp 0x5112ba
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x5112cd
sub edi, esi
mov al, byte [esi + edi]
xor al, byte [esi]
or bl, al
inc esi
sub edx, 1
jne 0x5112c0
test bl, bl
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5112d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push ebx
call fcn.005111d7
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x51135c
push 1
push edi
call fcn.005111d7
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x51135f
push 1
push esi
call fcn.005111d7
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
test al, al
je 0x511362
mov edx, ecx
xor eax, eax
shr edx, 2
test edx, edx
je 0x51134d
mov ecx, edi
mov dword [ebp - 8], edx
mov eax, ebx
sub ecx, esi
sub eax, esi
mov ebx, esi
mov edi, eax
mov eax, dword [ecx + ebx]
xor eax, dword [ebx]
mov dword [edi + ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x511331
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
shl eax, 2
sub ecx, eax
je 0x511378
add ebx, eax
add edi, eax
add esi, eax
jmp 0x511362
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x511378
sub edi, esi
sub ebx, esi
mov al, byte [esi + edi]
xor al, byte [esi]
mov byte [esi + ebx], al
inc esi
sub ecx, 1
jne 0x51136a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51137f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.005111d7
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x5113e3
push 1
push edi
call fcn.005111d7
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
test al, al
je 0x5113e6
mov edx, ecx
xor eax, eax
shr edx, 2
test edx, edx
je 0x5113d6
mov eax, edi
mov dword [ebp - 8], edx
push ebx
sub eax, esi
mov ebx, esi
mov esi, eax
mov eax, dword [esi + ebx]
xor dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x5113c2
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
pop ebx
shl eax, 2
sub ecx, eax
je 0x5113f7
add esi, eax
add edi, eax
jmp 0x5113e6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5113f7
sub edi, esi
mov al, byte [esi + edi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x5113ec
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x511a74
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x511a9e
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0x20
push 0x5bc4f0
push dword [ebp + 8]
call fcn.0054a510
add esp, 0xc
pop ebp
ret