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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor ebx, ebx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x532b03
xor al, al
jmp 0x532b41
lea eax, [ebp - 0x20c]
cmp byte [ebp + 0xc], bl
je 0x532b17
push eax
call fcn.00532b4e
pop ecx
jmp 0x532b41
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x532b3f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x532b3b
test al, 0x10
je 0x532b3b
mov bl, 1
mov al, bl
jmp 0x532b41
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x532b4e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x532b66
mov al, 1
jmp 0x532bc3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x532b79
shr eax, 4
and al, 1
jmp 0x532bc3
push edi
push 0x5c
pop eax
push eax
push esi
call fcn.0073a793
push 0x2f
push esi
mov edi, eax
call fcn.0073a793
add esp, 0x10
cmp edi, eax
cmovb edi, eax
test edi, edi
je 0x532bc0
xor eax, eax
push esi
mov word [edi], ax
call fcn.00532b4e
pop ecx
test al, al
je 0x532bc0
push 0x5c
pop eax
push 0
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x532bc2
xor al, al
pop edi
pop esi
pop ebp
ret
Function at 0x5330ff
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebp + 8]
jne 0x533122
push esi
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov al, 1
jmp 0x53316b
push edi
push dword [ebp + 8]
push 0
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x533149
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x53314d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x53316a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
pop edi
pop esi
pop ebp
ret

Function at 0x533366
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x533396
xor al, al
jmp 0x5333f0
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x5333e3
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x418]
push ebx
push edi
call fcn.005334a5
add esp, 0x14
test al, al
je 0x5333e7
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x5333af
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x533478
Capabilities:
Access peb ldr_data

Disassembly:
push 8
push 0x8e4ef8
call fcn.00721970
push 0x7e15c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x53341e
xor al, al
jmp 0x533468
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
cmp esi, edi
je 0x53345f
movzx eax, word [esi + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005334a5
add esp, 0x14
test al, al
je 0x53345f
mov esi, dword [esi]
jmp 0x533433
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005331f7
pop ecx
pop ecx
test al, al
jne 0x5334a3
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00533366
pop ecx
pop ecx
test al, al
jne 0x5334a3
pop ebp
jmp 0x5333ff
pop ebp
ret
Function at 0x533682
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x5a4d
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebx], esi
cmp word [esi], ax
jne 0x53374d
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x53374d
lea eax, [edi + 0x18]
push eax
call fcn.005331cb
pop ecx
test eax, eax
je 0x53374d
mov eax, dword [edi + 0x50]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x220], eax
mov eax, 0xb74f
cmp word [esi + 0x38], ax
jne 0x533707
mov eax, 0x2d98
cmp word [esi + 0x3a], ax
jne 0x533707
movzx ecx, word [esi + 0x36]
movzx eax, word [esi + 0x34]
shl ecx, 0x10
add eax, ecx
mov dword [ebx + 0x224], eax
je 0x533707
imul eax, eax, 0xfdca75bb
mov dword [ebx + 0x224], eax
and dword [ebp + 8], 0
lea eax, [ebp + 0xc]
and dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.00533572
add esp, 0xc
test al, al
je 0x533749
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x533749
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x533749
cmp eax, 0x1c
jb 0x533749
push ebx
push eax
lea eax, [ecx + esi]
push eax
push esi
call fcn.005335e4
add esp, 0x10
mov al, 1
jmp 0x53374f
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5350f7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x234
mov eax, 0x7c9d55
call fcn.00720838
mov esi, ecx
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x535108
jns 0x535189
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x535189
push str.error_reading_from_notification_pipe:__s
push 0
push 0x7dbcd8
push str.Network
push 4
lea ecx, [ebp - 0x23c]
call fcn.00523529
and dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
push eax
mov dword [ebp - 0x240], esi
call fcn.00534aec
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 1
call fcn.00536442
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.0053769c
push 2
pop eax
jmp 0x53518b
xor eax, eax
call fcn.007207e2
ret

Function at 0x536fea
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x537010
mov ecx, 0x2000
test ecx, eax
jne 0x537010
or eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret
Function at 0x53720e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push eax
call fcn.00539fa0
add esp, 0xc
test eax, eax
jg 0x53724d
call fcn.00749863
mov dword [eax], 0x26
or eax, 0xffffffff
jmp 0x5372af
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.007547a9
mov esi, eax
pop ecx
cmp esi, 0xffffffff
jne 0x53729f
call fcn.00749863
cmp dword [eax], 2
je 0x5372ac
call fcn.00749863
cmp dword [eax], 0x14
je 0x5372ac
call fcn.00749863
cmp dword [eax], 0x11
je 0x5372ac
push 0
push 1
call fcn.00537012
lea eax, [ebp - 0x20c]
push eax
call fcn.007547a9
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x5372ac
lea eax, [ebp - 0x20c]
push eax
call fcn.00536fea
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret

Function at 0x53744d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0x428
mov eax, 0x7c9f23
call fcn.00720838
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x218]
push 0x104
push ecx
push eax
call fcn.00539fa0
add esp, 0xc
test eax, eax
jg 0x53748b
call fcn.00749863
mov dword [eax], 0x26
or eax, 0xffffffff
jmp 0x537562
lea eax, [ebp - 0x218]
push eax
call fcn.0075244d
mov esi, eax
pop ecx
cmp esi, 0xffffffff
jne 0x537560
call fcn.00749863
cmp dword [eax], 0xd
jne 0x537532
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5374e4
lea eax, [ebp - 0x218]
push eax
call fcn.0075244d
pop ecx
mov esi, eax
jmp 0x537532
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Removing_READ_ONLY_attribute_failed_with_error_code:__d
push 0
push 0x7dbcd8
push str.FileIO
push 4
lea ecx, [ebp - 0x434]
call fcn.00523529
mov ecx, eax
call fcn.005375f5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.00536442
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.0053769c
or dword [ebp - 4], 0xffffffff
call fcn.00749863
cmp dword [eax], 2
je 0x537560
call fcn.00749863
cmp dword [eax], 0x14
je 0x537560
push 0
push 0xa
call fcn.00537012
lea eax, [ebp - 0x218]
push eax
call fcn.0075244d
add esp, 0xc
mov esi, eax
mov eax, esi
call fcn.007207e2
ret

Function at 0x537c80
Capabilities:
Initialize winsock library

Disassembly:
push 0x3b0
mov eax, 0x7c9f4b
call fcn.00720838
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x1a0]
push 0x190
push ebx
push eax
mov byte [esi], bl
call fcn.00739c90
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x537cc5
mov byte [esi], 1
jmp 0x537cff
push str.Failed_to_initialize_sockets_resources.
push ebx
push 0x7dbcd8
push str.SocketResources
push 4
lea ecx, [ebp - 0x3bc]
call fcn.00523529
lea ecx, [ebp - 0x3bc]
mov dword [ebp - 4], ebx
call fcn.00536442
lea ecx, [ebp - 0x3bc]
mov byte [ebp - 4], 1
call fcn.0053769c
mov eax, esi
call fcn.007207e2
ret
Function at 0x539eb4
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx], 0
and dword [ecx + 4], 0
mov dword [ecx + 8], 0x6a09e667
mov dword [ecx + 0xc], 0xbb67ae85
mov dword [ecx + 0x10], 0x3c6ef372
mov dword [ecx + 0x14], 0xa54ff53a
mov dword [ecx + 0x18], 0x510e527f
mov dword [ecx + 0x1c], 0x9b05688c
mov dword [ecx + 0x20], 0x1f83d9ab
mov dword [ecx + 0x24], 0x5be0cd19
ret

Function at 0x5467f1
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx edx, al
add edi, esi
and edx, 1
test esi, esi
je 0x54682a
dec ebx
movzx eax, al
movzx ecx, byte [ebx]
xor ecx, eax
mov al, byte [ebp + 0x14]
add edx, ecx
dec edi
mov byte [edi], dl
shr edx, 8
sub esi, 1
jne 0x546811
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x54d204
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, ebx
je 0x54d28c
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
push esi
push edi
lea esi, [eax - 1]
xor edi, edi
not eax
shr esi, 0x1f
shr eax, 0x1f
and esi, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec esi
and eax, esi
mov dword [ebp + 0x10], esi
xor ecx, eax
mov dword [edx + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
and eax, esi
xor ecx, eax
mov dword [edx + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, esi
and eax, 4
xor ecx, eax
mov dword [edx + 0x10], ecx
xor dword [ebx + 0x10], eax
cmp dword [ebp + 0x14], edi
jle 0x54d28a
mov esi, dword [edx]
mov eax, dword [ebx]
mov ecx, dword [esi + edi*4]
mov edx, dword [eax + edi*4]
xor edx, ecx
and edx, dword [ebp + 0x10]
xor ecx, edx
mov dword [esi + edi*4], ecx
mov eax, dword [ebx]
xor dword [eax + edi*4], edx
inc edi
mov edx, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
jl 0x54d268
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x55446a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push ebx
xor bl, bl
test edx, edx
je 0x55448e
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub esi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
or bl, al
inc ecx
sub edx, 1
jne 0x554480
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x5545a6
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
test edi, edi
je 0x554615
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x554615
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov ebx, 0x200
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.005379c7
add esp, 0x14
lea ecx, [ebp - 0x208]
test eax, eax
cmovs eax, ebx
push esi
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x55475c
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55461b
sub ecx, edx
lea edi, [ecx + 1]
lea eax, [edi + edi]
call fcn.00721a30
mov ebx, esp
xor esi, esi
test ebx, ebx
jne 0x554641
mov ebx, str.no_stack_
jmp 0x5546e0
push edi
push ebx
push edi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x55466a
mov ecx, esi
test edi, edi
je 0x55466a
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x554659
mov ecx, esi
test edi, edi
je 0x5546e0
push 0x43
mov dword [ebp - 0x208], 0x73
pop esi
cmp word [ebx + ecx*2], 0x25
jne 0x5546d9
lea edx, [ecx + 1]
lea edx, [ebx + edx*2]
movzx eax, word [edx]
cmp eax, esi
ja 0x5546b4
je 0x5546b0
cmp eax, 0x2a
je 0x5546aa
cmp eax, 0x2c
jbe 0x5546d9
cmp eax, 0x2e
jbe 0x5546aa
add eax, 0xffffffd0
cmp eax, 9
ja 0x5546d9
inc ecx
add edx, 2
jmp 0x55468a
push 0x63
jmp 0x5546d5
cmp eax, 0x53
je 0x5546d3
cmp eax, 0x63
je 0x5546ce
movzx eax, word [edx]
cmp ax, word [ebp - 0x208]
jne 0x5546d9
push 0x53
jmp 0x5546d5
mov word [edx], si
jmp 0x5546d9
push 0x73
pop eax
mov word [edx], ax
inc ecx
cmp ecx, edi
jb 0x55467d
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.00554771
add esp, 0x14
xor eax, eax
mov word [ebp - 6], ax
call fcn.005544bc
test eax, eax
jle 0x554747
push str.OpenSSL
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x55475c
push esi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push esi
push 1
push esi
push esi
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x55475c
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x560071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [eax + 0x60]
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp + 8], esi
mov dword [ebp - 4], edx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x5600d8
test ebx, ebx
je 0x5600bc
cmp ecx, 0x40
jae 0x5600ba
mov al, byte [ecx + edi + 0x30]
xor al, byte [esi]
mov byte [edx], al
inc edx
inc ecx
mov dword [ebp - 4], edx
inc esi
mov dword [ebp + 8], esi
sub ebx, 1
jne 0x56009f
xor eax, eax
mov dword [edi + 0x70], ecx
test ebx, ebx
je 0x560188
cmp ecx, 0x40
jne 0x5600d8
mov dword [edi + 0x70], eax
add dword [edi + 0x20], 1
jne 0x5600d8
inc dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [ebp - 8], eax
cmp ebx, 0x40
jb 0x56013c
mov eax, ebx
mov esi, ecx
shr eax, 6
xor edx, edx
add ecx, eax
cmp ecx, eax
cmovae edx, ecx
neg esi
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmovae esi, eax
lea eax, [edi + 0x20]
push eax
push edi
shl esi, 6
push esi
push dword [ebp + 8]
push edx
call fcn.0059d6f4
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add dword [ebp + 8], esi
sub ebx, esi
add dword [ebp - 4], esi
mov dword [edi + 0x20], ecx
test ecx, ecx
jne 0x560131
inc dword [edi + 0x24]
cmp ebx, 0x40
jae 0x5600ea
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x560188
push 0x40
lea ebx, [edi + 0x30]
push 0
push ebx
mov dword [ebp + 8], ebx
call fcn.00739c90
lea eax, [edi + 0x20]
push eax
push edi
push 0x40
push ebx
push ebx
call fcn.0059d6f4
mov ebx, dword [ebp - 8]
add esp, 0x20
test ebx, ebx
je 0x560185
mov edx, dword [ebp - 4]
sub esi, edx
xor edi, edi
mov eax, dword [ebp + 8]
lea ecx, [edi + edx]
mov al, byte [eax + edi]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x56016f
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x70], ebx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x56a05e
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x60
push 0
push esi
call fcn.00739c90
add esp, 0xc
mov dword [esi], 0x67452301
xor eax, eax
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
inc eax
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x56b43e
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00739c90
add esp, 0xc
mov dword [esi], 0xc1059ed8
xor eax, eax
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
inc eax
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x56b5dc
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.00739c90
add esp, 0xc
mov dword [esi], 0x6a09e667
xor eax, eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
inc eax
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x56c65d
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
xor eax, eax
inc eax
pop ebp
ret

Function at 0x56ca32
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
xor eax, eax
inc eax
pop ebp
ret
Function at 0x56f923
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x56f93a
xor eax, eax
jmp 0x56f9db
push ebx
push esi
push dword [edi]
call fcn.0054eea4
mov ebx, dword [ebp + 0xc]
mov esi, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
test ebx, ebx
je 0x56f9d6
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x56f97e
test esi, esi
jle 0x56f9b8
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
mov al, byte [ecx + 0x60]
xor al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
sub ebx, 1
jne 0x56f96b
mov ebx, dword [ebp + 0xc]
jmp 0x56f9b8
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x56f99c
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.00739c90
add esp, 0xc
test esi, esi
jle 0x56f9b8
lea ecx, [edi + 0x24]
mov edx, ebx
mov edi, esi
mov al, byte [ecx + 0x40]
xor al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
sub edi, 1
jne 0x56f9a7
mov edi, dword [ebp + 8]
push esi
push ebx
push ebx
push dword [edi]
call fcn.0054f1f1
add esp, 0x10
test eax, eax
jne 0x56f9d6
push esi
push ebx
call fcn.00562841
pop ecx
pop ecx
xor eax, eax
jmp 0x56f9d9
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x5818e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x58192d
mov al, byte [esi]
test al, al
je 0x58192d
push ebx
mov ebx, 0x100
push edi
mov edi, ebx
movsx eax, al
or eax, edi
add edi, ebx
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
inc esi
mov al, byte [esi]
test al, al
jne 0x581903
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop ebx
jmp 0x58192f
xor eax, eax
pop esi
pop ebp
ret

Function at 0x581b47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x581b95
mov al, byte [edi]
test al, al
je 0x581b95
push ebx
mov ebx, 0x100
movsx eax, al
push eax
call fcn.005731bc
or eax, ebx
add ebx, 0x100
pop ecx
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol esi, cl
xor esi, eax
inc edi
mov al, byte [edi]
test al, al
jne 0x581b61
mov eax, esi
shr eax, 0x10
xor eax, esi
pop ebx
jmp 0x581b97
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x58a5de
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.00555426
mov ebx, eax
push ebx
push edi
call fcn.00555325
add esp, 0x10
test eax, eax
je 0x58a62b
push esi
push 2
push ebx
push eax
xor esi, esi
push esi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
cmove esi, ebx
mov eax, esi
shl eax, 3
push eax
push esi
push edi
call fcn.00555381
push edi
call fcn.005554a6
add esp, 0x10
pop esi
test eax, eax
jne 0x58a632
push edi
call fcn.005554a6
pop ecx
pop edi
pop ebx
pop ebp
ret