joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x55312b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x55314f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x55316a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x55d1b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ec770
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00473d30
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00473d30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x66c174]
test eax, eax
je 0x55d268
cmp ebp, eax
jne 0x55d268
mov eax, dword [0x66c178]
test eax, eax
je 0x55d268
cmp ebx, eax
jb 0x55d268
add eax, 0x493e0
cmp eax, ebx
jb 0x55d268
mov ebp, dword [0x66c17c]
push 1
inc ebp
push 0x66c090
lea ecx, [esp + 0x18]
mov dword [0x66c17c], ebp
call fcn.00554240
push 0x66c0c0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00473f80
push 0x66c0b0
mov ecx, edi
call fcn.00473f80
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x55d2de
push edi
push esi
mov dword [0x66c17c], 0
call fcn.0055d5e0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x66c090
call fcn.00554240
push 0xffffffffffffffff
push 0
mov ecx, 0x66c0c0
mov dword [esp + 0x38], 1
mov dword [0x66c174], ebp
mov dword [0x66c178], ebx
call fcn.00473d30
push esi
mov ecx, 0x66c0c0
call fcn.00473f80
push 0xffffffffffffffff
push 0
mov ecx, 0x66c0b0
call fcn.00473d30
push edi
mov ecx, 0x66c0b0
call fcn.00473f80
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.005542a0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x55d300
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ec796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.005b9f38
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005b9f38
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x55d439
mov edx, dword [0x64f34c]
mov cx, word [0x64f350]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.005bbaf7
mov eax, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.005ba17a
mov edx, dword [0x641250]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.005bbc1a
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005ba17a
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.005bba83
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.005bba83
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x55d35b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x55d470
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ec7b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00472060
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00472060
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x55d5aa
mov cl, byte [0x64f356]
mov dx, word [0x64f354]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.00466e10
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.004726e0
mov edx, dword [0x5f5610]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.00467a80
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004726e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004677c0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004677c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x55d4cb
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x55d5e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ec7d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00473d30
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00473d30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x55d719
mov edx, dword [0x64f34c]
mov cx, word [0x64f350]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.0046c6e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.004743c0
mov edx, dword [0x5f5614]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.0046d230
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004743c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0046cf50
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0046cf50
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x55d63b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x55e5d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
xor eax, eax
mov al, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
mov bl, byte [eax*2 + 0x5fb3b8]
mov cl, byte [ecx + esi]
test bl, cl
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x55e5e7
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x55e628
lea eax, [ebx + ebx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 0x5fb460]
mov dword [edi], 0
mov esi, ecx
mov dword [ebp], 0
mov edx, esi
cmp edx, 0x1c
jge 0x55e65c
mov cl, byte [esp + edx + 0x50]
jmp 0x55e660
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x55e651
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x55e67e
mov cl, byte [esp + edx + 0x50]
jmp 0x55e682
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x55e673
xor edx, edx
mov eax, 0x5fb3c8
xor ecx, ecx
mov cl, byte [edx + 0x5fb470]
cmp byte [esp + ecx + 0x18], 0
je 0x55e6ad
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [edx + 0x5fb488]
cmp byte [esp + ecx + 0x18], 0
je 0x55e6c4
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x55e694
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x55e61b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.0055e710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x565210
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
push ebp
lea edi, [esi + 0xec]
mov ecx, edi
call fcn.0056b360
test al, al
jne 0x565231
pop edi
pop esi
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.005697d0
cmp eax, 1
jne 0x565246
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov al, byte [esi + 0xe8]
test al, al
je 0x565258
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x20]
call fcn.0056a880
push ebp
mov ecx, edi
call fcn.0056b380
mov ecx, dword [esi + 0x114]
call fcn.00569210
test al, al
je 0x56530f
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x56528a
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
jbe 0x5652fb
mov eax, dword [esi + 0xc]
mov cl, byte [edi + eax]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.00567f80
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00567f80
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x5652a8
mov ecx, esi
call fcn.00567cd0
test al, al
jne 0x56530f
push 0xffffffffffffff94
mov ecx, esi
call fcn.00564eb0
mov eax, dword [esi + 0x114]
mov di, word [eax + 0xe]
test di, di
je 0x56532d
cmp di, 8
je 0x565333
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00564eb0
cmp di, 8
jne 0x56536a
mov al, byte [esi + 4]
test al, al
je 0x565342
lea eax, [esi + 0xcc]
jmp 0x565344
xor eax, eax
push 0x38
push 0x64f35c
lea ecx, [esi + 0x28]
push 0xfffffffffffffff1
push ecx
mov dword [esi + 0x50], eax
call fcn.00560430
test eax, eax
je 0x56536a
cmp eax, 2
je 0x56536a
push eax
mov ecx, esi
call fcn.00564eb0
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + 0x18]
mov dword [esi + 0x64], edx
call fcn.00569210
test al, al
je 0x565383
add dword [esi + 0x64], 0xfffffff4
mov eax, dword [esi + 0x114]
pop edi
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x68], 0
mov dword [esi + 0x60], ecx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe8], 0xff
pop esi
mov al, 1
pop ebp
ret 4
Function at 0x566480
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5ecb9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [esp + 0x23c]
push ebx
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.005bbaf7
push 0x63461c
lea ecx, [esp + 0xc]
mov dword [esp + 0x240], 0
call fcn.005b8816
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00566000
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
mov byte [esp + 0x24c], 1
call fcn.0045442e
add esp, 0x10
or edi, 0xffffffff
test eax, eax
je 0x5665b9
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0056cf9f
push 0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 2
call fcn.0056d064
test eax, eax
jne 0x566579
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.0056ebce
add esp, 8
test eax, eax
je 0x566564
push esi
call fcn.0056eb40
add esp, 4
test eax, eax
jne 0x566564
lea ecx, [esp + 0x30]
push ecx
call fcn.0056eb40
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.0056cfde
mov eax, edi
jmp 0x5665ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.0056cfde
xor eax, eax
jmp 0x5665ab
lea ecx, [esp + 0x14]
call fcn.0056d28a
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x14]
and al, 0xfe
mov byte [esp + 0x240], 1
inc eax
mov esi, eax
call fcn.0056cfde
mov eax, esi
cmp eax, edi
pop esi
sete al
test al, al
jne 0x5665b9
xor bl, bl
jmp 0x5665bb
mov bl, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x23c], 0
call fcn.005bba83
test bl, bl
jne 0x566646
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00566000
mov eax, dword [eax]
mov byte [esp + 0x244], 3
push eax
call fcn.00566480
add esp, 0xc
lea ecx, [esp + 0xc]
test al, al
sete bl
mov byte [esp + 0x23c], 0
call fcn.005bba83
test bl, bl
jne 0x56661d
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x566646
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call fcn.005bba83
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call fcn.005bba83
mov ecx, dword [esp + 0x234]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret
Function at 0x566e10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0xe8], 1
je 0x566e22
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x114]
push ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.005b6c10
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x566f6c
push ebp
push edi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x566eca
mov ecx, dword [ebx + 0x114]
call fcn.00569210
test al, al
je 0x566ea5
mov eax, dword [ebx + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x566ea5
mov esi, dword [ebx + 0x70]
mov edi, dword [ebx + 0x1c]
add esi, ebp
and edi, 0xfffd
or edi, 2
mov cl, byte [esi]
push ecx
mov ecx, ebx
call fcn.00567c60
mov edx, edi
mov al, byte [esi]
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
inc ebp
mov byte [esi], al
mov eax, dword [ebx + 0x64]
cmp ebp, eax
jb 0x566e71
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x70]
push 0
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.0056a4f0
mov dword [ebx + 0x64], 0
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x38], edx
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x114]
cmp word [ecx + 0xe], 8
jne 0x566f05
mov esi, dword [ebx + 0x3c]
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.0055f130
test eax, eax
je 0x566ef6
cmp eax, 2
je 0x566ef6
push eax
mov ecx, ebx
call fcn.00564eb0
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
sub edx, esi
add eax, edx
mov dword [ebx + 0x64], eax
jmp 0x566f5f
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
jb 0x566f11
mov eax, ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x30]
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
mov ecx, dword [ebx + 0x64]
add ebp, eax
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
ja 0x566e52
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x566f80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe8], 1
je 0x566f90
xor al, al
pop esi
ret
mov eax, dword [esi + 0x114]
push ebx
mov dword [esi + 0x2c], 0
push ebp
cmp word [eax + 0xe], 8
push edi
jne 0x56704a
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x567015
mov ecx, dword [esi + 0x114]
call fcn.00569210
test al, al
je 0x566ff0
mov eax, dword [esi + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x566ff0
mov edi, dword [esi + 0x70]
mov ecx, esi
add edi, ebp
call fcn.00567de0
mov cl, byte [edi]
mov bl, al
push ecx
mov ecx, esi
call fcn.00567c60
mov dl, byte [edi]
xor dl, bl
inc ebp
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebp, eax
jb 0x566fca
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x70]
push 0
push edx
push eax
lea ecx, [esi + 0x78]
call fcn.0056a4f0
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x38], ecx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x34], edx
mov edi, dword [esi + 0x3c]
lea eax, [esi + 0x28]
push 4
push eax
call fcn.0055f130
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x64]
sub ecx, edi
add edx, ecx
test eax, eax
mov dword [esi + 0x64], edx
je 0x566fab
cmp eax, 1
je 0x56704a
cmp eax, 2
je 0x56704a
push eax
mov ecx, esi
call fcn.00564eb0
mov eax, dword [esi + 0x64]
test eax, eax
jbe 0x5670af
mov ecx, dword [esi + 0x114]
call fcn.00569210
test al, al
je 0x56709d
mov eax, dword [esi + 0x64]
xor ebx, ebx
test eax, eax
jbe 0x56709d
mov edi, dword [esi + 0x70]
mov ebp, dword [esi + 0x1c]
add edi, ebx
and ebp, 0xfffd
mov ecx, esi
or ebp, 2
mov dl, byte [edi]
push edx
call fcn.00567c60
mov eax, ebp
mov dl, byte [edi]
xor eax, 1
imul eax, ebp
sar eax, 8
xor dl, al
inc ebx
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebx, eax
jb 0x567069
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x70]
push 0
push ecx
push edx
lea ecx, [esi + 0x78]
call fcn.0056a4f0
mov eax, dword [esi + 0x114]
pop edi
pop ebp
pop ebx
cmp word [eax + 0xe], 8
jne 0x5670d9
lea ecx, [esi + 0x28]
push ecx
call fcn.0055f4b0
test eax, eax
je 0x5670d9
cmp eax, 2
je 0x5670d9
push eax
mov ecx, esi
call fcn.00564eb0
mov eax, dword [esi + 0x114]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x1c], ecx
lea ecx, [esi + 0xec]
call fcn.0056b6f0
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe8], 0
call fcn.0056a9a0
mov al, 1
pop esi
ret

Function at 0x5674b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.005674e0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call fcn.005bba83
mov al, bl
pop ebx
ret
Function at 0x567cd0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x5ecd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push 0xc
lea ecx, [esp + 0x1c]
call fcn.0056a8f0
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.005695c0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
and eax, 0xfffd
mov edi, dword [esi + 0x14]
or al, 2
mov dl, byte [ecx + ebp]
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.005b6c00
mov dl, bl
mov ecx, edi
and edx, 0xff
and ecx, 0xff
xor edx, ecx
mov ecx, esi
shr edi, 8
mov eax, dword [eax + edx*4]
mov edx, dword [esi + 0x18]
xor eax, edi
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.00567f80
inc ebp
mov dword [esi + 0x1c], eax
cmp ebp, 0xc
jl 0x567d10
mov ecx, dword [esi + 0x114]
call fcn.00569220
mov esi, dword [esi + 0x114]
test al, al
je 0x567da5
xor ecx, ecx
mov cl, byte [esi + 0x11]
cmp cl, bl
jmp 0x567dad
mov edx, dword [esi + 0x14]
shr edx, 0x18
cmp dl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
sete bl
call fcn.0056a970
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret