joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56c0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0xc], 0
je 0x56c104
cmp dword [ebp + 8], 0
jne 0x56c123
cmp dword [ebp + 0x18], 0
je 0x56c11c
push str.NULL_buf_or_bufSize
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x56c21d
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x56c199
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x56c184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26
jne 0x56c169
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x56c21d
cmp dword [ebp + 0x18], 0
je 0x56c17b
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004f52c0
xor al, al
jmp 0x56c21d
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x56c192
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x56c21d
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x56c203
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR90.dll_fread
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x56c1d0
mov al, 1
jmp 0x56c21d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call sub.MSVCR90.dll_ferror
add esp, 4
test eax, eax
je 0x56c1f7
cmp dword [ebp + 0x18], 0
je 0x56c1f1
mov ecx, dword [ebp + 0x18]
call fcn.004f51f0
xor al, al
jmp 0x56c21d
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x56c21d
cmp dword [ebp + 0x18], 0
je 0x56c21b
push str.No_file_is_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x56c230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0056bb40
movzx eax, al
test eax, eax
jne 0x56c267
cmp dword [ebp + 0x18], 0
je 0x56c260
push str.Failed_to_write_because_file_is_not_open.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x56c3c0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
je 0x56c283
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 8], 0x989680
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x56c3be
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x56c2bb
jg 0x56c2b3
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jbe 0x56c2bb
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x56c2c1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x56c335
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x56c2fd
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
je 0x56c333
cmp dword [ebp + 0x18], 0
je 0x56c32c
push 1
push str.WriteFileError
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [ebp + 0x18]
call fcn.004f51f0
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x56c3c0
jmp 0x56c37e
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x56c37e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCR90.dll_fwrite
add esp, 0x10
cmp eax, 1
je 0x56c378
cmp dword [ebp + 0x18], 0
je 0x56c374
push str.fwrite_failed.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x56c3c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x56c3b9
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp + 0x14]
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, edx
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x56c28a
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x56c3d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fedb
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0xffffffff
je 0x56c4bb
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x56c49d
cmp dword [ebp + 8], 0
je 0x56c495
lea ecx, [ebp - 0x9c]
call fcn.004ecd60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004eefc0
lea ecx, [ebp - 0x9c]
call fcn.005d1cb0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004eceb0
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x56c4ec
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0056c510
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x56c4ec
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 8], 0
je 0x56c4e6
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 8]
push edx
call fcn.004f4150
add esp, 4
push eax
call sub.MSVCR90.dll__filelengthi64
add esp, 4
jmp 0x56c4ec
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret 4

Function at 0x56ed00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x594a10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 0x28
call fcn.005d1cb0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x594adc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x594a6e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xdc]
mov eax, dword [ecx]
mov dword [edx + 0x118], eax
jmp 0x594a7e
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + 0x118], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 3]
push ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
push 0x6b51d0
lea edx, [ebp - 0xd8]
push edx
call sub.MSVCR90.dll_sprintf
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
add ecx, 0xa0
call fcn.004ee6a0
jmp 0x594aed
mov ecx, dword [ebp - 0xdc]
add ecx, 0xa0
call fcn.004ea9a0
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + 0x114], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret
Function at 0x595810
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0x6119a407
je 0x595833
push 0
call fcn.004f3eb0
add esp, 4
xor eax, eax
jmp 0x59587c
mov ecx, dword [ebp + 8]
call fcn.005d1cb0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x59586f
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x595845
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ecx + 0xc]
mov eax, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x596730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611f81
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70635c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable._ckSymSettings.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x100
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004e5ed0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e5ed0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004e5ed0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004e5ed0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x88], 0x80
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x8c], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x28], 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x59ec50
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004f6640
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.Sha2.0
cmp dword [ebp + 8], 0
jle 0x59ee12
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x180
jg 0x59eca8
cmp dword [ebp - 0x18], 0x180
je 0x59ed48
cmp dword [ebp - 0x18], 0xa0
je 0x59ecba
cmp dword [ebp - 0x18], 0x100
je 0x59ed01
jmp 0x59ee12
cmp dword [ebp - 0x18], 0x200
je 0x59edae
jmp 0x59ee12
mov dword [ebp - 4], 0
jmp 0x59eccc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x59ece8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x6b6e90]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x59ecc3
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x59ee12
mov dword [ebp - 8], 0
jmp 0x59ed13
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x59ed2f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6b6fa8]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x59ed0a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x59ee12
mov dword [ebp - 0xc], 0
jmp 0x59ed5a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x59ed81
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x6b6fc8]
mov edx, dword [eax*8 + 0x6b6fcc]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x59ed51
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
jmp 0x59ee12
mov dword [ebp - 0x10], 0
jmp 0x59edc0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x59ede7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x6b7288]
mov edx, dword [eax*8 + 0x6b728c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x59edb7
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x59f560
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x180
jg 0x59f5a0
cmp dword [ebp - 0x18], 0x180
je 0x59f640
cmp dword [ebp - 0x18], 0xa0
je 0x59f5b2
cmp dword [ebp - 0x18], 0x100
je 0x59f5f9
jmp 0x59f70a
cmp dword [ebp - 0x18], 0x200
je 0x59f6a6
jmp 0x59f70a
mov dword [ebp - 4], 0
jmp 0x59f5c4
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x59f5e0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x6b6e90]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x59f5bb
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x59f70a
mov dword [ebp - 8], 0
jmp 0x59f60b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x59f627
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6b6fa8]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x59f602
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x59f70a
mov dword [ebp - 0xc], 0
jmp 0x59f652
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x59f679
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x6b6fc8]
mov edx, dword [eax*8 + 0x6b6fcc]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x59f649
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
jmp 0x59f70a
mov dword [ebp - 0x10], 0
jmp 0x59f6b8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x59f6df
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x6b7288]
mov edx, dword [eax*8 + 0x6b728c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x59f6af
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5aae30
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov esp, ebp
pop ebp
ret
Function at 0x5c2f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x10], 0
je 0x5c2f62
cmp dword [ebp + 0x14], 0
jne 0x5c2f69
mov al, 1
jmp 0x5c30bb
mov ecx, dword [ebp + 0x18]
call fcn.00598070
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004e69e0
movzx ecx, al
test ecx, ecx
jne 0x5c2fad
push str.Unable_to_allocate_CTR_mode_output_buffer.
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x5c30bb
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004e48a0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x488
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x4a8
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x4c8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
test edx, edx
jle 0x5c309e
cmp dword [ebp - 4], 0
jne 0x5c3066
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x5c303c
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jl 0x5c3066
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov cl, byte [eax]
add cl, 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x28]
mov byte [edx], cl
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
movzx ecx, byte [eax]
test ecx, ecx
je 0x5c3064
jmp 0x5c3066
jmp 0x5c3033
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x1c]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x1c]
mov byte [ecx], al
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
add eax, 1
xor edx, edx
div dword [ebp - 0x20]
mov dword [ebp - 4], edx
jmp 0x5c2ff9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x4c8], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004e5d30
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x5e0670
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6157d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70635c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jge 0x5e06a2
xor al, al
jmp 0x5e072f
cmp dword [ebp + 0x10], 0
jne 0x5e06af
xor al, al
jmp 0x5e072f
push str.getEntropy
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004f53f0
mov dword [ebp - 4], 0
mov byte [ebp - 0x1d], 0
call fcn.004f40c0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5e06f1
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x1e]
jmp 0x5e072f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x5e070b
mov byte [ebp - 0x1d], 1
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dl, byte [ebp - 0x1d]
mov byte [ebp - 0x1f], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004f54a0
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x5eb3e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 0
jmp 0x5eb408
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x5eb422
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x1ac], al
jmp 0x5eb3ff
movzx ecx, byte [ebp - 0x1ac]
and ecx, 0xf8
mov byte [ebp - 0x1ac], cl
movzx edx, byte [ebp - 0x18d]
and edx, 0x7f
mov byte [ebp - 0x18d], dl
movzx eax, byte [ebp - 0x18d]
or eax, 0x40
mov byte [ebp - 0x18d], al
mov dword [ebp - 4], 0
jmp 0x5eb467
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x5eb482
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x188], eax
jmp 0x5eb45e
lea edx, [ebp - 0x1ac]
push edx
lea eax, [ebp - 0x188]
push eax
call fcn.005eb820
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.005ebee0
add esp, 8
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.005eb670
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call fcn.005eb520
add esp, 4
mov dword [ebp - 4], 0
jmp 0x5eb4ec
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jae 0x5eb506
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax*4 - 0x88]
mov byte [edx], cl
jmp 0x5eb4e3
xor eax, eax
mov ecx, dword [ebp - 0x18c]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret