joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416cb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cf28
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
call fcn.0040f990
mov ecx, eax
test ecx, ecx
jne 0x416cf9
push 0x80004005
call fcn.0040f6f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x416d84
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x416d7d
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004101a0
mov esi, dword [ebp - 0x14]
add esp, 8
test esi, esi
je 0x416cef
mov eax, dword [ebp - 0x244]
push esi
push dword [eax]
call fcn.0047fbd3
add esp, 8
test eax, eax
je 0x416dc3
lea eax, [ebp - 0x240]
push eax
push edi
call ebx
test eax, eax
jne 0x416d40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416da5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x416d86
Function at 0x419f20
Capabilities:
Check if file exists
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d70b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1c
xor eax, eax
mov dword [ebp - 0x234], 7
push str.Z:EFIMicrosoftBootBCD_JP
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.0040e610
cmp dword [ebp - 0x238], 0
jne 0x419f8b
xor bl, bl
jmp 0x419fab
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x419fc9
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0040f5b0
test bl, bl
je 0x41a092
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004793f0
push str._bcdedit.exe
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x260]
call fcn.0040c1a0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41a002
mov eax, dword [eax]
push str.Z:EFIMicrosoftBootBCD_JP
push eax
push str._s__import__s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040edf0
mov eax, dword [ebp - 0x24c]
add esp, 0x14
cmp eax, 8
jb 0x41a03f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x230]
push eax
call fcn.00425290
mov eax, dword [ebp - 0x21c]
add esp, 4
cmp eax, 8
jb 0x41a092
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040f5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x41e4b0
Capabilities:
Check mutex on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4c6374]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
push edi
push str.KuaiMaMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x41e676
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41e50f
push 1
push 0x4b837c
push 0x4b96f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
jmp 0x41e68c
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004793f0
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00408ac0
push 7
push str.Tools_
lea ecx, [esp + 0x10]
call fcn.0040ce70
lea eax, [esp + 8]
push eax
call fcn.0041e6b0
add esp, 4
push esi
call fcn.00437836
add esp, 4
push 0x6e8
call fcn.00475cf0
add esp, 4
mov esi, eax
push 0x6e8
push 0
push esi
call fcn.004793f0
add esp, 8
mov ecx, esi
call fcn.00410530
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4ca428], eax
test eax, eax
jne 0x41e5b2
push 1
push str.ERROR
push 0x4b9758
push 0
call esi
mov eax, dword [0x4ca428]
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x96c80000
push str.KuaiMaSetupTools
push 0
mov ecx, eax
call fcn.0043929f
mov ecx, dword [0x4ca428]
lea edx, [esp + 8]
lea eax, [ecx + 0x524]
cmp eax, edx
je 0x41e608
push 0xffffffffffffffff
mov ecx, edx
push 0
push ecx
mov ecx, eax
call fcn.0040ec30
mov ecx, dword [0x4ca428]
test ecx, ecx
jne 0x41e621
push 1
push str.ERROR
push str.p_MainFrameWNd_new_failed
push ecx
call esi
mov ecx, dword [0x4ca428]
call fcn.00439140
mov ecx, dword [0x4ca428]
push 5
call fcn.00442b20
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00436594
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x41e692
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.0040f5b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00475cda
mov esp, ebp
pop ebp
ret 0x10
push 1
push str.ERROR
push 0x4b9700
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00475cda
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e6b0
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 8
jb 0x41e6d3
mov ebx, dword [esi]
jmp 0x41e6d5
mov ebx, esi
push 0x4b972c
push 0x8b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41e7ce
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e7ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x41e7ce
push 0x208
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0
push 0
push eax
call fcn.004793f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41e74e
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0047f8eb
add esp, 0xc
lea eax, [ebp - 0x214]
push str.Tools.7z
push 0x104
push eax
call fcn.0047fd48
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0xffffffff
jne 0x41e7e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, ebx
lea ecx, [ebp - 0x214]
call fcn.00413c60
test al, al
je 0x41e7ce
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x421dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e608
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x421eee
cmp byte [ebx + 0x3d], 0
je 0x421eee
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x421e19
xor al, al
jmp 0x421ef0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00423d00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x421e7f
sub eax, 1
je 0x421e83
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x421ed6
xor bl, bl
jmp 0x421ed8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x421eb8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00481349
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x421e7b
cmp byte [ebx + 0x3d], 0
je 0x421ed6
test esi, esi
jne 0x421e41
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040e790
jmp 0x421e3e
mov bl, 1
cmp ecx, 0x10
jb 0x421eea
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040f330
mov al, bl
jmp 0x421ef0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x422de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c166
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c6374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00475cf0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042f4a6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424090
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 4], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x42410f
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42410f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
call eax
mov eax, dword [ebp - 0xc]
cmp eax, 6
jne 0x4240f1
cmp dword [ebp - 8], 3
jne 0x42410f
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x42410f
cmp dword [ebp - 8], 0
jne 0x42410f
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
push 0x118
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004793f0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4241a8
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x124]
cmp ecx, 5
jne 0x424166
cmp eax, 1
jne 0x424166
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x12], 1
jne 0x4241a8
cmp ecx, 6
jne 0x4241a8
test eax, eax
jne 0x424186
lea eax, [ecx - 5]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x42419e
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp eax, 2
mov eax, 3
je 0x4241ad
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x424580
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e906
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x418], edi
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004793f0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004793f0
add esp, 0x18
mov dword [ebp - 0x414], 0x100
lea eax, [ebp - 0x410]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
test esi, esi
jne 0x424608
xor al, al
jmp 0x4247da
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea eax, [ebp - 0x414]
push eax
push 0x100
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x424688
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x448]
call fcn.00408ac0
lea eax, [ebp - 0x448]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00416630
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x424688
inc eax
lea ecx, [ebp - 0x448]
push eax
push dword [ebp - 0x448]
call fcn.0040f5b0
push 0x100
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004793f0
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004793f0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
lea eax, [ebp - 0x410]
add esp, 0x18
push 0x100
push eax
push esi
call edi
test eax, eax
je 0x4247d1
nop
lea eax, [ebp - 0x414]
push eax
push 0x100
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x424791
xor eax, eax
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
cmp word [ebp - 0x210], ax
je 0x424740
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424731
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040e610
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 4], 1
call fcn.00416630
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
cmp eax, 8
jb 0x424791
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.0040f5b0
push 0x100
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004793f0
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004793f0
add esp, 0x18
lea eax, [ebp - 0x410]
push 0x100
push eax
push esi
call edi
test eax, eax
jne 0x4246d0
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x425120
Capabilities:
Get common file path
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea78
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x320], ecx
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004793f0
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x42525a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004793f0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0x4b9aa8
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0040edf0
push 0x3900
call fcn.00476211
push 0x3900
mov edi, eax
push 0
push edi
call fcn.004793f0
add esp, 0x2c
test edi, edi
je 0x42525a
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x31c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x425251
push 0
lea eax, [ebp - 0x31c]
push eax
push 0x3900
push edi
push 0
push 0
push 0x70050
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x425251
cmp dword [edi], 1
mov ecx, dword [ebp - 0x320]
sete al
push edi
mov byte [ecx], al
call fcn.0047621a
add esp, 4
mov bl, 1
jmp 0x42525c
push edi
call fcn.0047621a
add esp, 4
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x425271
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040f5b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x427c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ef48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4c6374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.USM8PE8L_.ISO
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0040c1a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x427c6c
xor bl, bl
jmp 0x427c7c
cmp dword [eax + 0x14], 8
jb 0x427c74
mov eax, dword [eax]
push eax
call edi
test eax, eax
setne bl
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x427c91
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f5b0
test bl, bl
je 0x427cd3
push str.USM8PE8L_.ISO
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0040c1a0
add esp, 4
mov dl, 1
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00415680
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x427cd3
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f5b0
push str._scldr
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x427cef
xor bl, bl
jmp 0x427cff
cmp dword [eax + 0x14], 8
jb 0x427cf7
mov eax, dword [eax]
push eax
call edi
test eax, eax
setne bl
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x427d14
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f5b0
test bl, bl
je 0x427d56
push str._scldr
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0040c1a0
add esp, 4
mov dl, 1
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.00415680
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x427d56
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f5b0
push str.Ghost.ba_
lea edx, [esi + 0x48]
lea ecx, [ebp - 0x24]
call fcn.0040c1a0
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x427d73
xor bl, bl
jmp 0x427d83
cmp dword [eax + 0x14], 8
jb 0x427d7b
mov eax, dword [eax]
push eax
call edi
test eax, eax
setne bl
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x427d98
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.0040f5b0
test bl, bl
je 0x427dd4
push str.Ghost.ba_
lea edx, [esi + 0x48]
lea ecx, [ebp - 0x3c]
call fcn.0040c1a0
add esp, 4
mov dl, 1
mov dword [ebp - 4], 2
mov ecx, eax
call fcn.00415680
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x427dd4
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040f5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x427eaf
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x427eb8
test ecx, ecx
je 0x427eaf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x427e70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x427f2f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x427f38
test ecx, ecx
je 0x427f2f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x427ef0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4caa20], ecx
inc eax
cmp eax, 0x100
jb 0x428183
cmp eax, 0x800
jae 0x428253
nop
mov edx, dword [eax*4 + 0x4ca620]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4caa20]
mov dword [eax*4 + 0x4caa20], edx
inc eax
cmp eax, 0x800
jb 0x428230
mov dword [0x4caa18], 0x42af10
call fcn.0042b1c0
mov ecx, dword [0x4caa18]
test eax, eax
mov edx, 0x42afb0
cmove ecx, edx
mov dword [0x4caa18], ecx
pop ecx
ret