joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da811
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x18]
test eax, eax
jne 0x4da93a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
push 0x248
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x10]
test eax, eax
je 0x4da8bc
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x20], 0
jbe 0x4da8bc
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
dec eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x30], 0x800
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
inc eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x30], eax
jae 0x4da8e2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
inc eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x30], eax
jae 0x4da8fe
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x30]
call fcn.0040b9b3
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
add eax, 0x34
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x4da933
mov ecx, dword [ebp - 0x2c]
call fcn.005c214e
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
call fcn.0053dfdd
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x18], 1
leave
ret

Function at 0x4db311
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
xor bl, bl
call esi
test ax, ax
jns 0x4db326
inc bl
push 0x11
call esi
test ax, ax
jns 0x4db332
or bl, 2
push 0x10
call esi
test ax, ax
jns 0x4db33e
or bl, 4
push 0x14
call esi
test ax, 0x8001
je 0x4db34b
or bl, 8
push 0x90
call esi
test ax, 0x8001
je 0x4db35b
or bl, 0x10
pop esi
mov al, bl
pop ebx
ret
Function at 0x5125d3
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.005102b0
lea ecx, [esi + 0x18]
call fcn.005125a6
lea ecx, [esi + 8]
call fcn.0040552b
mov ecx, esi
pop esi
jmp fcn.0040757d

Function at 0x51664b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x12c
mov eax, 0x6845a1
call fcn.006454eb
mov esi, dword [ebp + 8]
push esi
mov edi, ecx
call fcn.00516348
test al, al
jne 0x51684e
push esi
lea ecx, [edi + 0x78]
call fcn.0046a06e
cmp dword [esi + 0x18], 0x10
jb 0x516681
mov eax, dword [esi + 4]
jmp 0x516684
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x138]
call fcn.00401baa
push 1
push 1
lea eax, [ebp - 0x138]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], ebx
call fcn.005165ba
push ebx
push 1
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.0040234a
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x110]
test al, 6
je 0x5166e6
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x3c]
call fcn.00402235
mov byte [edi + 0x1c], 1
jmp 0x51683f
cmp eax, ebx
jne 0x516834
push 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00402c9d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 3
call fcn.00469525
and dword [ebp - 0x11c], 0
or esi, 0xffffffff
cmp dword [ebp - 0x18], 0
pop ecx
pop ecx
mov ebx, esi
jbe 0x51680d
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x2c]
call fcn.00419487
movzx eax, byte [eax]
push eax
call fcn.00646e7a
test eax, eax
pop ecx
jne 0x516758
cmp ebx, 0xffffffff
jne 0x516752
mov ebx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x11c]
inc dword [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x18]
jb 0x51672b
cmp ebx, 0xffffffff
je 0x51680d
cmp esi, ebx
jb 0x51680d
je 0x51678b
push esi
lea ecx, [ebp - 0x2c]
call fcn.00419487
cmp byte [eax], 0x22
jne 0x51678b
dec esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00419487
cmp byte [eax], 0x22
jne 0x51679a
inc ebx
sub esi, ebx
inc esi
push esi
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00444486
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00515ef5
test al, al
je 0x5167f5
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x5167ca
lea ecx, [ebp - 0x44]
mov eax, dword [edi + 0x14]
add ecx, eax
push ecx
lea ecx, [ebp - 0x64]
call fcn.00401baa
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0051664b
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0040234a
jmp 0x516801
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x58]
call fcn.0046a06e
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040234a
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040234a
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x110], 0
je 0x5166ee
lea ecx, [ebp - 0x110]
call fcn.005163df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.0051632b
call fcn.0064556e
ret 4
Function at 0x519740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
push ebx
push str.computeCrc32Str
lea ecx, [esp + 8]
call fcn.0061a2cd
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
test al, al
mov ebx, dword [esp + 0xc]
je 0x51977c
mov edi, edi
movzx edx, bl
movzx eax, al
xor edx, eax
mov al, byte [ecx + 1]
add ecx, 1
shr ebx, 8
xor ebx, dword [edx*4 + 0x793468]
test al, al
jne 0x519760
lea ecx, [esp + 4]
call fcn.006193de
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x519790
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
push str.computeGenericCrc32
lea ecx, [esp + 0x10]
call fcn.0061a2cd
cmp byte [esp + 0x24], 0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea eax, [ecx + edi]
je 0x5197e9
cmp ecx, eax
mov ebx, dword [esp + 0x14]
je 0x519869
mov edx, dword [esp + 0x20]
movzx esi, byte [ecx]
movzx edi, bl
xor esi, edi
shr ebx, 8
xor ebx, dword [edx + esi*4]
add ecx, 1
cmp ecx, eax
jne 0x5197c4
lea ecx, [esp + 0xc]
call fcn.006193de
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, edi
and esi, 0xfffffffc
add esi, ecx
cmp ecx, esi
not eax
je 0x519841
mov edi, edi
xor eax, dword [ecx]
add ecx, 4
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [edx + ebx*4]
cmp ecx, esi
jne 0x519800
and edi, 3
add edi, ecx
mov esi, edi
cmp ecx, esi
je 0x519865
lea esp, [esp]
movzx edi, byte [ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edx + edi*4]
add ecx, 1
cmp ecx, esi
jne 0x519850
not eax
mov ebx, eax
lea ecx, [esp + 0xc]
call fcn.006193de
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x519880
Capabilities:
Hash data with crc32

Disassembly:
push ecx
push esi
push str.computeCrc32
lea ecx, [esp + 8]
call fcn.0061a2cd
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
jne 0x5198c5
push 0
push 0x793468
push eax
push ecx
push edx
call fcn.00519790
add esp, 0x14
lea ecx, [esp + 4]
mov esi, eax
call fcn.006193de
mov eax, esi
pop esi
pop ecx
ret
push 0x793468
push eax
push ecx
push edx
call fcn.0051f7dc
add esp, 0x10
lea ecx, [esp + 4]
mov esi, eax
call fcn.006193de
mov eax, esi
pop esi
pop ecx
ret

Function at 0x51f7dc
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, ecx
xor eax, eax
shr ecx, 2
je 0x51f820
xor edx, dword [edi]
add edi, 4
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
dec ecx
jne 0x51f7f8
mov ecx, ebx
and ecx, 3
je 0x51f835
xor dl, byte [edi]
inc edi
mov al, dl
shr edx, 8
xor edx, dword [esi + eax*4]
dec ecx
jne 0x51f827
pop ebx
pop esi
pop edi
mov eax, edx
ret
Function at 0x522183
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp esi, edi
je 0x522233
mov eax, dword [edi]
mov dword [esi], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov al, byte [edi + 7]
mov byte [esi + 7], al
mov al, byte [edi + 8]
mov byte [esi + 8], al
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
lea eax, [edi + 0x58]
push eax
lea ecx, [esi + 0x58]
call fcn.0050a058
add edi, 0x64
push edi
lea ecx, [esi + 0x64]
call fcn.0040a202
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x52334c
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, dword [esp + 8]
mov dh, al
mov dl, ah
shr eax, 0x10
shl edx, 0x10
mov dh, al
mov dl, ah
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor eax, eax
shr ecx, 2
xor edx, dword [edi]
add edi, 4
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x7941a8]
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x7941a8]
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x7941a8]
mov al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x7941a8]
dec ecx
jne 0x52336c
mov ah, dl
mov al, dh
shl eax, 0x10
shr edx, 0x10
mov ah, dl
mov al, dh
pop edi
ret
Function at 0x579aec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x579b79
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00646470
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x579b39
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x579b5b
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x579c37
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x579ba1
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x579bac
xor eax, eax
jmp 0x579bf8
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x579bc9
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0057bb48
jmp 0x579bd9
cmp ecx, 2
jne 0x579be2
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0057d69f
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00646470
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x579c23
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x579c37
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x579af7
pop edi
pop ebx
leave
ret
Function at 0x57f937
Capabilities:
Get file attributes

Disassembly:
push 0x24
mov eax, 0x694440
call fcn.006454eb
mov esi, dword [ebp + 8]
mov eax, 0x8001
push eax
push eax
lea ecx, [ebp - 0x30]
call fcn.00624e57
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004d962e
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x57f971
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040234a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00624e9b
mov eax, esi
call fcn.0064556e
ret

Function at 0x5800e2
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x48
mov eax, 0x694689
call fcn.00645482
mov esi, dword [ebp + 0x24c]
push str.determineFilesystemType
push dword [0x7ba200]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
lea eax, [ebp]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004d962e
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 1
jae 0x580140
lea ecx, [ebp + 4]
mov eax, 0x104
push eax
lea edx, [ebp + 0x13c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x5801a4
push 2
pop esi
push edi
push 1
lea ecx, [ebp]
call fcn.0040234a
lea ecx, [ebp - 0x10]
call fcn.006193de
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00644f58
add ebp, 0x244
leave
ret
lea eax, [ebp + 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401baa
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004da304
pop ecx
pop ecx
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040234a
push str.NTFS
lea ecx, [ebp + 0x1c]
call fcn.00405c8e
test eax, eax
lea ecx, [ebp + 0x1c]
jne 0x5801f7
push edi
push esi
call fcn.0040544c
jmp 0x58016c
push 3
push edi
lea eax, [ebp - 0x54]
push eax
call fcn.0040528d
push 0x6fdce4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00405c8e
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push esi
lea ecx, [ebp - 0x54]
inc bl
call fcn.0040544c
push edi
lea ecx, [ebp + 0x1c]
push esi
call fcn.0040544c
test bl, bl
je 0x580169
xor esi, esi
jmp 0x58016c
Function at 0x58043d
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x694747
call fcn.006454eb
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x38], esi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.Ghost::Filesystem::Win32LfoFilesystem.0
call fcn.0040a179
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00405235
push str.constructor
push dword [0x7ba200]
lea ecx, [ebp - 0x30]
call fcn.0061a2ae
lea eax, [ebp - 0x2c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.004d962e
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x5804a8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
sete al
push edi
mov byte [esi + 0x28], al
call fcn.005800e2
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x28]
pop ecx
mov byte [esi + 0x29], 0
jae 0x5804d2
lea eax, [ebp - 0x28]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5804fa
cmp dword [esi + 0x2c], 2
jne 0x5804fa
mov al, byte [ebp - 0x34]
and al, 1
mov byte [esi + 0x29], al
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040234a
lea ecx, [ebp - 0x30]
call fcn.006193de
mov eax, esi
call fcn.0064556e
ret 8

Function at 0x5a6243
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x5b154a
Capabilities:
Create thread

Disassembly:
push str.STHD
push 8
call fcn.005b14bb
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
push 0
push 0x5b1524
mov dword [eax + 4], ecx
call fcn.0064d7c0
add esp, 0xc
ret 8

Function at 0x5b7556
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 3]
push eax
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0x41
mov byte [ebp - 7], 0x54
mov byte [ebp - 6], 0x52
mov byte [ebp - 5], 0x53
call fcn.00647084
add esp, 0xc
test eax, eax
jne 0x5b75c0
push esi
call fcn.005cd0bc
test al, al
pop ecx
je 0x5b75c0
xor eax, eax
inc eax
jmp 0x5b75c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00644f58
leave
ret
Function at 0x5bddc7
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x69d7c3
call fcn.00645482
mov esi, ecx
push str.doUnlock
push dword [0x7bb3b4]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.0061a2ae
cmp dword [esi + 0x90], 2
mov dword [ebp - 4], ebx
jne 0x5bde0a
cmp dword [ebp + 8], 2
jge 0x5bde0a
xor edi, edi
inc edi
mov dword [esi + 0x90], edi
jmp 0x5bde0d
xor edi, edi
inc edi
cmp dword [esi + 0x90], edi
jne 0x5bded5
cmp dword [ebp + 8], edi
jge 0x5bded5
cmp byte [esi + 0xac], bl
jne 0x5bde77
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
lea eax, [ebp - 0x20]
push eax
call fcn.0062686c
lea ecx, [ebp - 0x20]
call fcn.005904dd
cmp byte [esi + 0xac], bl
jne 0x5bde77
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
lea eax, [ebp - 0x20]
push eax
call fcn.0062686c
cmp dword [eax], ebx
mov dword [ebp - 0x10], edi
mov byte [ebp + 0xb], 1
jne 0x5bde7a
mov byte [ebp + 0xb], bl
test byte [ebp - 0x10], 1
je 0x5bde88
lea ecx, [ebp - 0x20]
call fcn.005904dd
cmp byte [ebp + 0xb], bl
je 0x5bde9f
lea ecx, [ebp - 0x18]
call fcn.006193de
mov al, bl
call fcn.0064555a
ret 4
lea edi, [esi + 0x40]
mov ecx, edi
mov dword [esi + 0x90], ebx
mov byte [esi + 0xac], bl
call fcn.00581205
mov dword [edi], ebx
mov dword [edi + 4], ebx
push 0x14
mov byte [esi + 0x48], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
push ebx
mov ecx, esi
call fcn.005bd87b
mov bl, 1
jmp 0x5bde8d
Function at 0x5cd52f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x16c
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x44]
call fcn.00665473
push 0xa9
push esi
lea ecx, [ebp - 0x44]
call fcn.00665481
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.00665495
push 0x10
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x24]
xor ebx, ebx
push eax
mov byte [ebp + 0x54], 0x5b
mov byte [ebp + 0x55], 0x4d
mov byte [ebp + 0x56], 0xe9
mov byte [ebp + 0x57], 0xc1
mov byte [ebp + 0x58], 0x56
mov byte [ebp + 0x59], 0x7b
mov byte [ebp + 0x5a], 0xa2
mov byte [ebp + 0x5b], 0x94
mov byte [ebp + 0x5c], bl
mov byte [ebp + 0x5d], 0xa
mov byte [ebp + 0x5e], 0x6f
mov byte [ebp + 0x5f], 0x8c
mov byte [ebp + 0x60], 0xf7
mov byte [ebp + 0x61], 0x91
mov byte [ebp + 0x62], 0xb1
mov byte [ebp + 0x63], 0xaf
call fcn.00647084
add esp, 0xc
test eax, eax
jne 0x5cd5c8
cmp byte [esi + 0xda], bl
jne 0x5cd5c1
cmp byte [esi + 0xdb], bl
jne 0x5cd5c1
inc eax
jmp 0x5cd6ee
xor eax, eax
jmp 0x5cd6ee
push edi
lea ecx, [ebp - 0x9c]
call fcn.00665473
mov edi, 0xda
push edi
push esi
lea ecx, [ebp - 0x9c]
call fcn.00665481
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00665495
push 0x10
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x34]
push eax
mov byte [ebp + 0x64], 0x6d
mov byte [ebp + 0x65], 0xde
mov byte [ebp + 0x66], 0x16
mov byte [ebp + 0x67], 0x6a
mov byte [ebp + 0x68], bl
mov byte [ebp + 0x69], 0xed
mov byte [ebp + 0x6a], 0x7f
mov byte [ebp + 0x6b], 0xfb
mov byte [ebp + 0x6c], 0x13
mov byte [ebp + 0x6d], 0x54
mov byte [ebp + 0x6e], 0x1e
mov byte [ebp + 0x6f], 0xcd
mov byte [ebp + 0x70], 9
mov byte [ebp + 0x71], 0xd4
mov byte [ebp + 0x72], 0xd7
mov byte [ebp + 0x73], 0x37
call fcn.00647084
add esp, 0xc
test eax, eax
jne 0x5cd66a
cmp byte [esi + 0xda], bl
jne 0x5cd6ff
cmp byte [esi + 0xdb], bl
jne 0x5cd6ff
xor eax, eax
inc eax
jmp 0x5cd6ed
lea ecx, [ebp - 0xf4]
call fcn.00665473
push edi
push esi
lea ecx, [ebp - 0xf4]
call fcn.00665481
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00665495
push 0x10
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp + 0x44], 0xbe
mov byte [ebp + 0x45], 0x5a
mov byte [ebp + 0x46], 0x64
mov byte [ebp + 0x47], 0xba
mov byte [ebp + 0x48], 0xa2
mov byte [ebp + 0x49], 0x73
mov byte [ebp + 0x4a], 0x44
mov byte [ebp + 0x4b], 0x60
mov byte [ebp + 0x4c], 0xc9
mov byte [ebp + 0x4d], 0x3f
mov byte [ebp + 0x4e], 0x32
mov byte [ebp + 0x4f], 0xb4
mov byte [ebp + 0x50], 0x28
mov byte [ebp + 0x51], 0x9d
mov byte [ebp + 0x52], 0xfa
mov byte [ebp + 0x53], 0x3f
call fcn.00647084
add esp, 0xc
test eax, eax
je 0x5cd64a
xor al, al
pop edi
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.00644f58
add ebp, 0x78
leave
ret
xor eax, eax
jmp 0x5cd6ed