joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x417734]
mov ecx, dword [0x4132b0]
test eax, eax
mov dword [edi - 1], ecx
je 0x404591
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x248]
lea eax, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x4046a2
test byte [ebp - 0x248], 0x10
je 0x40464f
cmp byte [ebp - 0x21c], 0x2e
je 0x404685
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x4132b4]
lea ecx, [ebp - 0x108]
push ecx
mov word [edi - 1], ax
call fcn.00404530
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x404685
lea edx, [ebp - 0x108]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404685
inc dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4045b3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x108]
mov byte [ebp + eax - 0x109], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
push 0
push eax
call fcn.00401470
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404a81
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.00401590
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x4049f8
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401570
add esp, 0xc
push 4
push 0x4177c0
push esi
call fcn.00401520
mov ecx, dword [0x4177c0]
add esp, 0xc
push ecx
call fcn.0040ba70
mov edx, dword [0x4177c0]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.00401520
mov eax, dword [0x4177c0]
add esp, 0xc
push eax
push edi
call fcn.00402420
mov ecx, dword [0x4177c0]
add esp, 8
push ecx
push edi
call fcn.004025c0
add esp, 8
test eax, eax
jne 0x404a86
mov edx, dword [0x4177c0]
push edi
lea eax, [ebx + edx + 4]
mov dword [0x4177a8], eax
call fcn.0040bb20
add esp, 4
push esi
call fcn.00401560
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00404a90
add esp, 0xc
mov dword [0x416228], eax
test eax, eax
jne 0x404dee
call fcn.00404740
test eax, eax
mov dword [0x416228], eax
je 0x404e1b
jle 0x404e04
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402ed0
add esp, 0x10
call fcn.00404c60
mov eax, dword [0x416228]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404c60
test eax, eax
mov dword [0x416228], eax
je 0x404e42
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402ed0
mov eax, dword [0x416228]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [ebp - 0x14]
push str.Dialog_d
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x14]
push 0x104
push edx
push ebx
push eax
call fcn.004017f0
add esp, 0x10
test eax, eax
jne 0x404f72
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x118]
test al, al
je 0x404fcc
lea edx, [ebp - 0x118]
push edx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x41776c]
lea ecx, [ebp - 0x118]
test eax, eax
push ecx
je 0x404fb2
mov edx, dword [0x417768]
push eax
push str._s____s
push edx
call edi
mov eax, dword [0x417768]
add esp, 0x10
push eax
push 0
push 0x46f
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d1c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x406d63
cmp edx, 0x10
jl 0x406d4f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x406d3c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x406d63
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x406d5b
and edx, 3
cmp edx, 3
jne 0x406d77
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x406d7c
cmp edx, 2
jne 0x406d88
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x406d8d
cmp edx, 1
jne 0x406d93
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40cc00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x417468]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40cc1f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x417464], 1
mov byte [0x417460], bl
jne 0x40cc79
mov ecx, dword [0x419d28]
test ecx, ecx
je 0x40cc67
mov esi, dword [0x419d24]
sub esi, 4
cmp esi, ecx
jb 0x40cc67
mov eax, dword [esi]
test eax, eax
je 0x40cc60
call eax
mov ecx, dword [0x419d28]
sub esi, 4
cmp esi, ecx
jae 0x40cc52
push 0x41301c
push 0x413014
call fcn.0040ccb0
add esp, 8
push 0x413024
push 0x413020
call fcn.0040ccb0
add esp, 8
test ebx, ebx
jne 0x40cca0
push ebp
mov dword [0x417468], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x40e530
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x417588]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40e572
call edi
mov esi, eax
test esi, esi
je 0x40e55c
mov eax, 1
jmp 0x40e56d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40e67f
mov eax, 2
mov dword [0x417588], eax
cmp eax, 1
jne 0x40e612
test esi, esi
jne 0x40e58b
call edi
mov esi, eax
test esi, esi
je 0x40e67f
cmp word [esi], 0
mov eax, esi
je 0x40e5a5
add eax, 2
cmp word [eax], 0
jne 0x40e593
add eax, 2
cmp word [eax], 0
jne 0x40e593
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40e604
push edi
call fcn.0040ba70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e604
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40e5f6
push ebx
call fcn.0040bb20
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40e67f
test ebx, ebx
jne 0x40e623
call ebp
mov ebx, eax
test ebx, ebx
je 0x40e67f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40e63b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e62b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e62b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ba70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40e65d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40ed80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4159b0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40eda4
add eax, 8
inc ebp
cmp eax, 0x415a40
jb 0x40ed95
cmp ecx, dword [ebp*8 + 0x4159b0]
jne 0x40ef4b
mov eax, dword [0x417408]
cmp eax, 1
je 0x40ef0d
test eax, eax
jne 0x40edd0
cmp dword [0x4137c8], 1
je 0x40ef0d
cmp ecx, 0xfc
je 0x40ef4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ee0b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40ee54
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4124e4
add ebx, ecx
push ebx
call fcn.00410580
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4124c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4159b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004104f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x419c20]
test eax, eax
je 0x40ef1e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40ef28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4159b4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40f650
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x419d20]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40f7fd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x419c20]
lea edi, [ecx*4 + 0x419c20]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40f7fd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40f6be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40f6cf
push 2
push ebp
push eax
call fcn.0040f590
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f82e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40f779
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40f72a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40f717
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40f6fa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f81f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40f775
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40f6f6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f7ee
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f7c2
cmp eax, 5
jne 0x40f7ab
mov dword [0x417424], eax
mov dword [0x417420], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00410680
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40f7e2
cmp byte [ebp], 0x1a
jne 0x40f7e2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417420], 0x1c
jmp 0x40f807
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x417420], 9
pop edi
pop esi
pop ebp
mov dword [0x417424], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f775
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f85f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40f779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f779
Function at 0xb81130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0xba364c], 0
push esi
push edi
mov esi, edx
jne 0xb81146
call section..text
or eax, 0xffffffff
mov edi, 0x80
add esi, 2
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0xba3648]
movzx edx, byte [esi - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
movzx ecx, byte [esi - 4]
xor eax, dword [edx*4 + 0xba3648]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0xba3648]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0xba3648]
sub edi, 1
jne 0xb81151
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xb81450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0xba2004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movsx edi, cl
push edi
push str.GetPhyDiskInfo__C_n
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b8], eax
call fcn.00b81370
push edi
push str.._C:
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00b81230
add esp, 0x18
lea eax, [ebp - 0x8c]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0xb814da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_open_the_disk__C:_error:_u_n
call fcn.00b81370
add esp, 0xc
jmp 0xb81640
push 0
lea eax, [ebp - 0x290]
push eax
push 0x20
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0xb81625
cmp dword [ebp - 0x2b4], 0
je 0xb81625
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
movups xmm1, xmmword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2b8]
movq xmm0, qword [ebp - 0x29c]
movups xmmword [eax], xmm1
movq qword [eax + 0x10], xmm0
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
push eax
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push edi
push str._C:_is_in_PhysicalDrive_d_Offset:_llu_n
call fcn.00b81370
add esp, 0x14
lea eax, [ebp - 0x8c]
push dword [ebp - 0x2ac]
push str..PhysicalDrive_d
push 0x80
push eax
call fcn.00b81230
add esp, 0x10
lea eax, [ebp - 0x8c]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0xb815c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2ac]
push str.Could_not_open_the_disk_PhysicalDrive_d___error:_u_n
call fcn.00b81370
add esp, 0xc
jmp 0xb81640
push 0
lea eax, [ebp - 0x290]
push eax
push 0x200
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xb81601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x290]
push str.ReadFile_failed__dwSize:_u__error:_u_n
call fcn.00b81370
add esp, 0xc
push esi
call ebx
jmp 0xb81640
mov ecx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0xd4]
push esi
mov dword [ecx], eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00b83088
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS_failed__error:_u_n
call fcn.00b81370
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00b83088
mov esp, ebp
pop ebp
ret
Function at 0xb81660
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0xba2004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x22c], edx
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0xb816bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_this_file__error:_u_n
call fcn.00b81370
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00b83088
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0xb816e0
push str.Failed_to_get_vlnk_file_size_n
call fcn.00b81370
add esp, 4
jmp 0xb817bf
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x8000
jne 0xb817b0
test eax, eax
jne 0xb817b0
push 0x200
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00b83ee0
add esp, 0xc
lea eax, [ebp - 0x24]
push 0
push eax
push 0x200
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xb817bf
mov dword [ebp - 0x14], 0x77772020
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x10], 0x65762e77
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x796f746e
mov esi, 0xc
mov dword [ebp - 8], 0x74656e2e
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0xb817bf
add ecx, 4
add edx, 4
sub esi, 4
jae 0xb81760
mov esi, dword [ebp - 0x218]
lea edx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x218], edi
call fcn.00b81130
add esp, 4
cmp esi, eax
jne 0xb817bf
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0xb817a9
mov ecx, 0x80
lea esi, [ebp - 0x228]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, 1
jmp 0xb817bf
push eax
push ecx
push str.Invalid_vlnk_file_length__llu_n
call fcn.00b81370
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00b83088
mov esp, ebp
pop ebp
ret
Function at 0xb8f56a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00b8f1e7
Function at 0xb6c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b6c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb6c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6c06a
add dl, dl
jne 0xb6c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6c0dc
xor eax, eax
add dl, dl
jne 0xb6c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb6c17d
add dl, dl
jne 0xb6c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb6c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb6c075
mov eax, 1
add dl, dl
jne 0xb6c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb6c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6c0e1
sub eax, ebx
mov ebx, 1
jne 0xb6c128
mov ecx, 1
add dl, dl
jne 0xb6c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb6c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb6c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb6c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb6c136
cmp eax, 0x7d00
jae 0xb6c16d
cmp eax, 0x500
jb 0xb6c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6c075
cmp eax, 0x7f
ja 0xb6c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb6c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb6c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10