joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c170
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x649ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x50c1b9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x50c1b9
mov al, 1
jmp 0x50c234
cmp dword [ebp - 0x14], 0
je 0x50c232
lea ecx, [ebp - 0x20]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x50c1da
mov byte [ebp - 0xd], 1
jmp 0x50c1de
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050cee0
movzx edx, al
test edx, edx
je 0x50c223
lea ecx, [ebp - 0x20]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call fcn.0049cfb0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50c234
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x50c5f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x649ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x50c63d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x50c63d
mov al, 1
jmp 0x50c6bc
cmp dword [ebp - 0x14], 0
je 0x50c6ba
lea ecx, [ebp - 0x20]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x50c65e
mov byte [ebp - 0xd], 1
jmp 0x50c662
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050cee0
movzx eax, al
test eax, eax
je 0x50c6ab
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call fcn.0049cfb0
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
mov al, byte [ebp - 0xe]
jmp 0x50c6bc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00485d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x50f220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b518
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050d680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x50f26f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x50f26f
mov eax, dword [ebp - 0x18]
jmp 0x50f2e5
cmp dword [ebp - 0x14], 0
je 0x50f2e2
lea ecx, [ebp - 0x28]
call fcn.00499a00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x50f290
mov byte [ebp - 0xd], 1
jmp 0x50f294
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0050cee0
movzx edx, al
test edx, edx
je 0x50f2d3
lea ecx, [ebp - 0x28]
call fcn.0040b0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00485d80
mov eax, dword [ebp - 0x1c]
jmp 0x50f2e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00485d80
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x50f530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64de70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00487c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x50f577
xor al, al
jmp 0x50f673
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0050e0c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040b0c0
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x50f5ae
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c]
jbe 0x50f5c9
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00485d80
mov al, byte [ebp - 0xd]
jmp 0x50f673
lea ecx, [ebp - 0x34]
call fcn.00499a00
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
jmp 0x50f5ee
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jae 0x50f637
lea ecx, [ebp - 0x18]
call fcn.0040b0c0
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
test eax, eax
jne 0x50f635
lea ecx, [ebp - 0x18]
call fcn.0040b0c0
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x34]
call fcn.00499cf0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00487820
jmp 0x50f5e5
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jne 0x50f648
mov dword [ebp - 0x28], 1
jmp 0x50f64f
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00485d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00485d80
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x517a90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 5]
test ecx, ecx
je 0x517ac4
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 6]
test eax, eax
je 0x517ac4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], edx
mov al, 1
jmp 0x517b0f
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x517af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x517af2
xor al, al
jmp 0x517b0f
xor edx, edx
mov eax, dword [ebp - 8]
mov cl, 0x20
call fcn.00616b30
xor ecx, ecx
add eax, dword [ebp - 0xc]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x5181f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x518209
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.0049cfb0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x519040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jbe 0x51905b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x519089
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x51909e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x51909e
xor eax, eax
jmp 0x5190b8
cmp dword [ebp - 0xc], 0
je 0x5190aa
mov byte [ebp - 1], 1
jmp 0x5190ae
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.00518490
mov esp, ebp
pop ebp
ret 0x10
Function at 0x519420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x519435
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x5194b3
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x519457
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x5194b3
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x5194bf
mov byte [ebp - 1], 1
jmp 0x5194c3
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.00518490
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5228f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64ef60
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x30]
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x52296c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5265e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov ecx, dword [ebp + 8]
call fcn.0048de90
mov ecx, dword [ebp + 0xc]
call fcn.0048de90
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00526c90
push 0x6660ec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x526641
lea eax, [ebp - 0x4c]
push eax
call dword [ebp - 4]
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00526c90
mov esp, ebp
pop ebp
ret 8
Function at 0x527130
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], closesocket
mov dword [eax + 4], 0
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x5271a3
lea ecx, [ebp - 0x64]
push ecx
call dword [ebp - 0x68]
test eax, eax
je 0x5271a3
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00518250
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x5271cd
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004ddea0
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret 4
Function at 0x53cba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
jmp 0x53cbb8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jae 0x53cbea
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x3c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4 + 0x30], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax + edx*4 + 0x24], 0
jmp 0x53cbaf
mov dword [ebp - 4], 0
jmp 0x53cbfc
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x53cc33
imul ecx, dword [ebp - 4], 0x18
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
call ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax + edx*4 + 0x68], 0
jmp 0x53cbf3
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0
mov esp, ebp
pop ebp
ret 4

Function at 0x543560
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x543578
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x5435cd
mov ecx, dword [ebp - 4]
shl ecx, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x54359c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x5435be
mov eax, dword [ebp - 8]
shl eax, 1
mov ecx, dword [ebp - 8]
shr ecx, 0x1f
xor edx, edx
sub edx, ecx
and edx, 0x4c11db7
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x543593
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x6ac158], ecx
jmp 0x54356f
mov esp, ebp
pop ebp
ret
Function at 0x54be40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
and ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
shr edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
neg eax
and eax, 0x7ff
xor edx, eax
shr edx, 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ecx + edx*4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 2
jae 0x54be58
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x54bea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 4]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
shr eax, 8
add edx, eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp + 0xc]
shr eax, 7
and eax, 1
neg eax
and eax, 0x7ff
xor edx, eax
shr edx, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add eax, dword [ecx + edx*4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor edx, dword [ebp + 0xc]
not edx
and edx, dword [ebp - 4]
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x54bebf
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x552280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 3
jae 0x5522a6
mov ecx, dword [ebp + 8]
push ecx
call fcn.00553a70
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jmp 0x5523bd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x14]
jbe 0x5522cf
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [edx + eax*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax]
shl eax, 8
or ecx, eax
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx edx, byte [eax + edx]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 + 0x60]
and ecx, 0xffff
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jne 0x55230d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 8]
jne 0x5523bd
mov ecx, dword [ebp + 8]
push ecx
call fcn.005530c0
cmp dword [ebp + 0xc], 0
jne 0x552286
mov esp, ebp
pop ebp
ret 8
Function at 0x5531d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp + 8]
mov byte [edx + 0x1f], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x468], 0xffffffff
mov dword [edx + 0x46c], 0xffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00553d60
mov dword [ebp - 4], 0
jmp 0x553236
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x553287
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x553257
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jae 0x553278
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
xor eax, eax
sub eax, edx
and eax, 0xedb88320
xor ecx, eax
mov dword [ebp - 8], ecx
jmp 0x55324e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x60], eax
jmp 0x55322d
mov esp, ebp
pop ebp
ret 4

Function at 0x557ac0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x5be0cd19
pop ebp
ret 4
Function at 0x557de0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xb8], ecx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557aa0
mov dword [ebp - 0xb4], 0x3e8
mov dword [ebp - 0xd0], 0x64
mov dword [ebp - 0xd4], 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xbc], eax
push 4
lea ecx, [ebp - 0xbc]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.00557b70
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xbc], eax
push 4
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00557b70
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x557eef
push str.SystemFunction036
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x557ee2
push 0x20
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0xc8]
movzx ecx, al
test ecx, ecx
je 0x557ee2
mov dword [ebp - 0xb4], 0x64
push 0x20
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557b70
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x557f15
push 8
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00557b70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xcc], eax
push 4
lea edx, [ebp - 0xcc]
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557b70
mov dword [ebp - 0xc4], 0
jmp 0x557f51
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0x64
jae 0x557f90
mov edx, dword [ebp - 0xb8]
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557970
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00557aa0
push 0x20
mov edx, dword [ebp - 0xb8]
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557b70
jmp 0x557f42
mov ecx, dword [ebp - 0xb4]
sub ecx, 1
mov dword [ebp - 0xb4], ecx
jne 0x557eef
mov edx, dword [ebp - 0xb8]
push edx
lea eax, [ebp - 0xb0]
push eax
call fcn.00557970
mov ecx, dword [ebp - 0xb8]
mov byte [ecx + 0x20], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret