joyce8/EMBER2024-capa huggingface dataset:
Function at 0x628472
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, ecx
push 0x6a1
push dword [edi + 4]
call ebx
push 1
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [edi + 0x70], esi
jne 0x6285b8
push 2
push 0x172
push 0x122
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xa7
call fcn.0058c7b7
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
call esi
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x172
push 0x122
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call ebp
cmp byte [edi + 0x50], 0
push 0x6a0
push dword [edi + 4]
jne 0x628508
call ebx
push 0x40
push 0xf
push 0xc3
jmp 0x628513
call ebx
push 0x40
push 0xf
push 0x109
push 0x13b
push 0xa
push 0
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x136
push 0xd0
push ecx
push eax
call ebp
cmp byte [edi + 0x50], 0
jne 0x62854a
push 0xc0
jmp 0x62854f
push 0xc1
call fcn.0058c7b7
push 0x6a0
push dword [edi + 4]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x10]
push eax
call esi
push 0x6a2
push dword [edi + 4]
call ebx
push 0xa9
mov esi, eax
call fcn.0058c7b7
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [edi + 0x50], cl
setne cl
dec ecx
and ecx, 5
push ecx
push eax
call esi
push 0x6b3
push dword [edi + 4]
call ebx
push 0
push eax
call esi
xor esi, esi
cmp dword [edi + 0x70], 1
jne 0x6286a6
push 2
push 0x64
push 0x136
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xa8
call fcn.0058c7b7
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a0
push dword [edi + 4]
call ebx
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x64
push 0x136
push esi
push esi
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
push esi
push esi
push 0x28
push 0x98
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0xab
mov esi, eax
call fcn.0058c7b7
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, 0x6b3
push esi
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x28
push 0xe4
push ecx
push eax
call ebp
push esi
push dword [edi + 4]
call ebx
push 0xaa
mov esi, eax
call fcn.0058c7b7
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebp
push 0x6b3
push dword [edi + 4]
call ebx
push 5
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x629332
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
lea eax, [ebp - 0x220]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x62936c
mov ecx, esi
movzx eax, word [ecx + 0x733780]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x629355
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00471786
test al, al
jne 0x62939b
mov ecx, esi
movzx eax, word [ecx + 0x733780]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x629384
mov ecx, 0x105
lea eax, [ebp - 0x42c]
push ecx
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
neg eax
pop esi
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x6430d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x67a18d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00679e50

Function at 0x67a198
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00679fd1

Function at 0x68162b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00680f99

Function at 0x681636
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006811d4
Function at 0x68f905
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x6b9bcc
call fcn.00640244
sub esp, 0x678
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
push 8
pop ecx
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [ebp - 0x3c]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
xor eax, eax
inc eax
cpuid
mov dword [esi], eax
lea eax, [ebp - 0x26c]
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], bl
movsd dword es:[edi], dword [esi]
push ebx
push 0x25
push eax
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov edi, 0x105
test eax, eax
je 0x68f9cb
push 0xa
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
je 0x68f9cb
push edi
lea eax, [ebp - 0x478]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x68f9cb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x68f9ce
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x68fa0b
push 0x733780
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.006753bf
add esp, 0xc
lea eax, [ebp - 0x478]
push edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x68fa0b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
push str.cid2_
call fcn.0040eeff
push 0x20
lea eax, [ebp - 0x48]
mov dword [ebp - 4], ebx
push eax
xor esi, esi
lea eax, [ebp - 0x60]
inc esi
push eax
mov dword [ebp - 0x28], esi
call fcn.0068f8e6
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.0040efd9
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0040f52f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x694b3b
test al, 0x10
jne 0x694b4c
xor ebx, ebx
push ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x694b4f
xor ebx, ebx
inc ebx
mov al, bl
pop ebx
ret 4
Function at 0x695786
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6ba46e
call fcn.00640244
sub esp, 0x64
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
test edi, edi
jne 0x6957b2
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 0x84], eax
mov ecx, esi
call fcn.00694981
cmp byte [esi + 0x24], bl
je 0x695925
test al, al
je 0x6957f1
test edi, edi
je 0x6957f1
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x3c]
push eax
call fcn.00696a0e
push eax
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00695786
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
push ebx
push 1
call fcn.0040f52f
mov eax, dword [esi + 0x80]
test eax, eax
je 0x69588e
mov al, byte [eax + 0x74]
test al, al
je 0x69588e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], edi
call fcn.0040f4ab
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x70]
call fcn.00696995
mov ecx, dword [esi + 0x80]
push eax
mov byte [ebp - 4], 6
call fcn.00697767
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040f52f
test edi, edi
jne 0x695886
push 0x2710
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x695878
push 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
push dword [esi + 0x84]
call edi
mov dword [esi + 0x84], ebx
lea ecx, [ebp - 0x6c]
jmp 0x69591d
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
xor esi, esi
lea ecx, [ebp - 0x3c]
inc esi
push str.error
mov dword [ebp - 4], esi
call fcn.0040eeff
push ebx
push str.The_other_end_of_the_pipe_hung_up
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0046a515
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040efd9
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0040f52f
push ebx
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040f52f
push str.remote_ieprocess
lea ecx, [ebp - 0x3c]
call fcn.0040eeff
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x2c
call fcn.00488d2d
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040f52f
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.0040f52f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x695c3d
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 4]
push ebp
push esi
push edi
push eax
push 2
xor ebp, ebp
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push reloc.WS2_32.dll_accept
mov dword [esp + 0x24], ebp
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x695c9f
lea eax, [esp + 0x14]
push eax
call fcn.00696365
cmp dword [eax + 0x14], 8
jb 0x695c86
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.004281f2
push dword [esp + 0x10]
call edi
lea eax, [esp + 0x10]
push eax
push 2
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_SCRIPTURL_MITIGATION
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x695ce2
lea eax, [esp + 0x14]
push eax
call fcn.00696365
cmp dword [eax + 0x14], 8
jb 0x695cc9
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.004281f2
push dword [esp + 0x10]
call edi
lea eax, [esp + 0x10]
push eax
push 2
push ebp
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_CROSS_DOMAIN_REDIRECT_MITIGATION
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x695d25
lea eax, [esp + 0x14]
push eax
call fcn.00696365
cmp dword [eax + 0x14], 8
jb 0x695d0c
mov eax, dword [eax]
push eax
push dword [esp + 0x14]
call esi
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.004281f2
push dword [esp + 0x10]
call edi
call fcn.00696067
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x696067
Capabilities:
Move file

Disassembly:
mov eax, 0x6a16fc
call fcn.00640244
sub esp, 0x38
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0069508d
test eax, eax
je 0x6960f3
push 0x7a6da0
lea eax, [ebp - 0x24]
push eax
call fcn.00694d33
push esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00438c5c
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.00438c5c
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 3
jae 0x6960c1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov ecx, 0x6c111c
mov eax, 0x414
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x32], esi
mov dword [ebp - 0x2e], esi
mov dword [ebp - 0x2a], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.004281f2
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x696e3b
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x6ba66c
call fcn.00640244
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
push ebx
push ebx
lea esi, [edi + 0x2c]
mov dword [edi], 0x743938
mov dword [edi + 0x24], ebx
mov ecx, esi
mov byte [edi + 0x28], 1
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00696f5e
mov dword [esi], eax
lea esi, [edi + 0x34]
mov dword [ebp - 4], ebx
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004916c1
mov dword [esi], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x18], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x69756a
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
mov eax, 0x6af1eb
call fcn.00640244
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebx + 4]
mov dword [ebp - 0x10], ebx
mov ecx, esi
mov dword [ebx], 0x74394c
call fcn.00427b8e
xor edx, edx
lea edi, [ebx + 0x1c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], edx
jb 0x6975ae
mov eax, dword [edi]
jmp 0x6975b0
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov al, byte [ebp + 0xc]
mov byte [ebx + 0x34], al
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x28]
push 0x743950
push eax
mov byte [ebp - 4], 1
mov byte [ebx + 0x74], dl
call fcn.00428ae3
push eax
mov ecx, edi
call fcn.00427c6d
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.004281f2
push esi
push esi
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
call esi
mov dword [ebx + 0x48], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [ebx + 0x5c], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
cmp byte [ebx + 0x34], 0
mov dword [ebx + 0x70], eax
je 0x69764b
cmp dword [edi + 0x14], 8
jb 0x697626
mov edi, dword [edi]
push dword [ebp + 0x18]
xor esi, esi
mov eax, 0x800
push esi
push eax
push eax
push 0xff
push 6
push 0x40080003
push edi
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [ebx + 0x44], eax
jmp 0x69768f
xor esi, esi
mov eax, esi
cmp eax, 2
jne 0x69765f
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [edi + 0x14], 8
jb 0x697669
mov eax, dword [edi]
jmp 0x69766b
mov eax, edi
push esi
push 0x40000080
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x697654
cmp dword [ebx + 0x44], 0xffffffff
je 0x6976a8
push esi
push esi
push ebx
push 0x6977d3
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x697767
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
and dword [esi + 0x68], 0
and dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x697784
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp + 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x6977c4
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x6977c4
push 1
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
pop edi
pop esi
pop ebp
ret 4
Function at 0x6977e1
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov eax, 0x6b3c34
call fcn.00640244
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov byte [edi + 0x74], 1
cmp byte [edi + 0x34], bl
je 0x697842
lea eax, [edi + 0x4c]
mov dword [edi + 0x54], ebx
push eax
push dword [edi + 0x44]
mov dword [edi + 0x58], ebx
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x697842
cmp eax, 0x217
je 0x697842
cmp eax, 0x3e5
jne 0x6978f6
push 0xffffffffffffffff
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x6978f6
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push 0x401
mov dword [ebp - 4], ebx
call fcn.00640585
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
push esi
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 6
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
je 0x6978c1
cmp byte [esi + eax - 1], 0
push esi
sete bl
mov byte [esi + 0x400], 0
call fcn.0040f10e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040f072
push 0
test bl, bl
pop ebx
je 0x697871
push esi
call fcn.00640272
cmp dword [ebp - 0x10], 0
pop ecx
je 0x6978e8
push dword [edi + 0x3c]
lea eax, [ebp - 0x28]
push eax
call dword [edi + 0x38]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f52f
jmp 0x69784b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f52f
mov byte [edi + 0x74], bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6983b4
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6ba045
call fcn.00640244
sub esp, 0x228
push ebx
push esi
push edi
push 0x41
pop eax
push 0x3a
mov word [ebp - 0x14], ax
xor edi, edi
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov dword [ebp - 4], edi
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
mov esi, edi
test ebx, ebx
je 0x69845e
test bl, 1
je 0x698454
lea eax, [esi + 0x41]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x698454
push 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x698454
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00429973
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00438e88
push edi
push 1
test eax, eax
je 0x69847e
lea ecx, [ebp - 0x2c]
call fcn.004281f2
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x6983f5
mov esi, edi
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004281f2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x20]
mov ax, word [ebp - 0x14]
mov word [ecx], ax
lea ecx, [ebp - 0x2c]
call fcn.004281f2
xor esi, esi
inc esi
jmp 0x69845e
Function at 0x6987dd
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 0x110], 2
jne 0x698861
lea eax, [esi + 0xf0]
cmp dword [eax + 0x14], 8
jb 0x6987fd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push str._s:_
push eax
call fcn.004654e1
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jae 0x69881b
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
xor ecx, ecx
test eax, eax
je 0x698848
mov eax, dword [ebp - 8]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10c], eax
jmp 0x698854
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.004281f2
jmp 0x69886f
xor ecx, ecx
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6989ac
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6baa76
call fcn.00640244
sub esp, 0x448
push edi
mov edi, ecx
cmp dword [edi + 0x110], 2
jne 0x6989d0
xor eax, eax
inc eax
jmp 0x698ad7
push esi
movzx esi, word [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push 0x743a1c
push eax
call fcn.004654e1
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push str._c:_
push eax
call fcn.004654e1
add esp, 0x18
mov eax, dword [ebp - 0x2c]
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x698a0c
lea eax, [ebp - 0x2c]
mov edx, 0x104
lea ecx, [ebp - 0x454]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x698ab4
lea eax, [ebp - 0x24c]
push eax
call fcn.00428460
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0xa8]
call fcn.00438cfb
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
jb 0x698a62
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00698756
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], esi
jb 0x698a74
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.006987bc
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x698a87
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.00698784
mov ecx, edi
mov dword [edi + 0x110], 2
call fcn.006987dd
push 7
push edi
call fcn.005d05b5
mov ecx, eax
call fcn.005d08ea
xor esi, esi
inc esi
jmp 0x698abc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004281f2
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100026b1
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002672
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18