joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c230
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x49c2d3
test eax, eax
jbe 0x49c2d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49c2d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49c27e
xor esi, esi
jmp 0x49c284
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49c2af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00436310
add esi, eax
push esi
mov ebx, esi
call fcn.00436310
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49c290
pop ebp
test edi, edi
pop edi
jne 0x49c2d3
test ebx, ebx
je 0x49c2d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ae610
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x49c3f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49c50d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c50d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c0edc
mov esi, eax
test esi, esi
je 0x49c50d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49c50d
mov ecx, esi
call fcn.0049c380
cmp edi, eax
jge 0x49c50d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x49c493
mov dword [esp + 0x34], 1
jmp 0x49c4ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49c50d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0049b8f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4c1880
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c18b8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bf86d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bf845
jmp 0x4c18c4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c2f6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c2fb0
call fcn.004c8f65
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c2fb0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c2fa7
xor eax, eax
jmp 0x4c2fb8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c2fbe
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c9495
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c94c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c94e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c93fb
jmp 0x4c94e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c94e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c93fb
test edi, edi
mov eax, edi
jne 0x4c94cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40114e
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, 0x1828
push esi
call fcn.00401399
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00401477
add esp, 0x10
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x401132
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x401191
xor eax, eax
jmp 0x4011dc
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov dword [ebp - 4], esi
cmp ebx, 0x102
jne 0x4011bc
push str._timeout
call fcn.00401779
pop ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp ebx, esi
pop ebx
jne 0x4011cc
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], 1
sete al
pop edi
pop esi
leave
ret 8

Function at 0x4015c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x407048
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp + 8], 0
mov dword [ebp - 4], eax
test eax, eax
jle 0x4016d7
inc dword [esi]
mov ecx, dword [esi]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + ecx*4 - 4], edi
xor edi, edi
inc edi
cmp byte [0x407048], 0x22
jne 0x401618
mov dword [ebp + 8], edi
cmp eax, edi
mov edx, edi
jle 0x401666
cmp dword [ebp + 8], 0
je 0x401633
cmp byte [edx + 0x407048], 0x22
jne 0x401660
and dword [ebp + 8], 0
jmp 0x401660
lea ecx, [edx + 0x407048]
cmp byte [ecx], 0x20
jne 0x401658
mov byte [ecx], 0
inc edx
cmp byte [edx + 0x407048], 0x20
je 0x401641
mov eax, dword [esi]
lea ecx, [edx + 0x407048]
mov dword [ebx + eax*4], ecx
inc dword [esi]
cmp byte [ecx], 0x22
jne 0x401660
mov dword [ebp + 8], edi
inc edx
cmp edx, dword [ebp - 4]
jl 0x40161e
and dword [ebp - 4], 0
cmp dword [esi], 0
jle 0x4016c8
mov edi, ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jbe 0x4016b8
mov eax, dword [edi]
add eax, ebx
cmp byte [eax], 0x22
jne 0x4016b2
cmp byte [eax - 1], 0x5c
je 0x4016b2
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add eax, ebx
push ecx
lea ecx, [eax + 1]
push ecx
push eax
call fcn.00401499
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov byte [eax + ecx - 2], 0
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x401682
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi]
jl 0x401671
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [ebx + eax*4 - 4]
cmp byte [ecx], 0
pop ebx
jne 0x4016d7
dec eax
mov dword [esi], eax
pop edi
pop esi
leave
ret 8
Function at 0x402064
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
push ebx
push esi
push edi
push 0x41
mov edi, ecx
pop ebx
mov dword [ebp - 4], 0x1a
push ebx
lea eax, [ebp - 0x17c]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x4020ea
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.00401ff7
cmp eax, 0xffffffff
je 0x4020ea
imul eax, eax, 0x1828
lea esi, [eax + edi + 0x15e0]
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, dword [esi]
imul ecx, ecx, 0x104
add ecx, eax
lea eax, [ecx + edi + 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [esi]
inc ebx
dec dword [ebp - 4]
jne 0x40207c
push 0x34
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x402253
xor ebx, ebx
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00401ff7
cmp eax, 0xffffffff
je 0x40223c
imul eax, eax, 0x1828
cmp dword [eax + edi + 0x17f8], ebx
jne 0x40223c
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test byte [ebp - 4], 0x80
je 0x40223c
push 0x34
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x402233
lea eax, [ebp - 0x44]
push eax
call fcn.00403e72
cmp al, bl
je 0x402216
movsx eax, al
lea ecx, [ebp - 0x384]
push ecx
push eax
lea eax, [ebp - 0x280]
push str._c:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push str.FMP_1
push 4
call fcn.00401b00
add esp, 0x18
push 0x34
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push str.FMP_2
push 4
mov esi, eax
call fcn.00401b00
pop ecx
pop ecx
cmp esi, ebx
je 0x402216
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.00401ff7
cmp eax, 0xffffffff
je 0x402216
imul eax, eax, 0x1828
lea esi, [eax + edi + 0x15e0]
lea ecx, [ebp - 0x280]
push ecx
mov ecx, dword [esi]
imul ecx, ecx, 0x104
add ecx, eax
lea eax, [ecx + edi + 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [esi]
push 0x104
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
test eax, eax
jne 0x402174
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push 0x34
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x40210a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4038f8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40397b
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x403945
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 8]
je 0x40394b
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40392d
jmp 0x403970
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp + 0x10], eax
jbe 0x40397b
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40397d
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4039e9
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push 0x405c74
xor edi, edi
push eax
mov dword [ebp - 4], edi
call esi
push 0x13c
lea eax, [ebp - 0x244]
push edi
push eax
mov dword [ebp - 0x248], edi
call fcn.00401447
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403acc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x403ab3
push edi
push edi
push 4
push edi
push edi
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x403aac
lea eax, [ebp - 0x108]
push eax
push str._nno_read:__s
call fcn.00401779
inc dword [ebp - 4]
pop ecx
pop ecx
jmp 0x403ab3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403a4b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403f62
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x170
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrA]
push edi
mov edi, str._Volume
push edi
push dword [ebp + 0x78]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x403f9a
push dword [ebp + 0x78]
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403fbb
push 0x34
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x78]
call ebx
push 0x34
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push edi
push dword [ebp + 0x7c]
call esi
test eax, eax
je 0x403fd4
push dword [ebp + 0x78]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403ff5
push 0x34
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 0x7c]
call ebx
push 0x34
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push 0x5c
lea eax, [ebp + 0x14]
push eax
call fcn.00404416
push 0x5c
lea eax, [ebp - 0x48]
push eax
call fcn.00404416
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x404040
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, dword [ebp + 0x74]
sub esp, 0x820
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x78]
push esi
push edi
cmp eax, ebx
je 0x40405e
mov byte [eax], bl
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x404067
mov byte [eax], bl
push dword [ebp + 0x70]
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x1b8]
push eax
call fcn.004043f7
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404238
push 0x3ff
lea eax, [ebp - 0x7b7]
push ebx
push eax
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov byte [ebp - 0x7b8], bl
call fcn.00401447
add esp, 0xc
push ebx
lea ecx, [ebp + 0x70]
push ecx
mov eax, 0x400
push eax
mov dword [ebp - 0x7b4], eax
lea eax, [ebp - 0x7b8]
push eax
push 0xc
lea eax, [ebp + 0x5c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x404238
push 0x1ff
lea eax, [ebp - 0x3b7]
push ebx
push eax
mov byte [ebp - 0x3b8], bl
call fcn.00401447
push 0x7f
lea eax, [ebp - 0x33]
push ebx
push eax
mov byte [ebp - 0x34], bl
call fcn.00401447
push 0x7f
lea eax, [ebp - 0xb3]
push ebx
push eax
mov byte [ebp - 0xb4], bl
call fcn.00401447
mov eax, dword [ebp - 0x7ac]
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
add esp, 0x24
mov edi, 0x405cdc
cmp eax, ebx
je 0x404171
lea eax, [ebp + eax - 0x7b8]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x34]
push eax
call esi
mov eax, dword [ebp - 0x7a8]
cmp eax, ebx
je 0x40419c
lea eax, [ebp + eax - 0x7b8]
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xb4]
push eax
call fcn.0040450a
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3b8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
lea eax, [ebp - 0x3b8]
push eax
call esi
mov edi, dword [ebp + 0x7c]
mov eax, dword [ebp - 0x79c]
mov ecx, dword [ebp + 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ecx], eax
cmp edi, ebx
je 0x4041f0
push 0x80
lea eax, [ebp - 0x3b8]
push eax
push edi
call esi
mov byte [edi + 0x7f], bl
mov edi, dword [ebp + 0x78]
cmp edi, ebx
je 0x404233
push 0x70
lea eax, [ebp - 0x3b8]
push eax
push edi
call esi
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x74]
mov byte [edi + 0x6f], bl
call fcn.00403d69
test eax, eax
je 0x404233
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x405cd0
push edi
call esi
lea eax, [ebp + 0x4c]
push eax
push edi
call esi
push str._Device
push edi
call esi
xor eax, eax
inc eax
jmp 0x40423a
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x404244
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push dword [ebp + 8]
call fcn.00404028
test eax, eax
je 0x40425e
or eax, 0xffffffff
jmp 0x4042d1
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.004043f7
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4042cc
push ebx
push esi
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x2d1080
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
je 0x4042cc
mov eax, dword [ebp - 8]
jmp 0x4042cf
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4

Function at 0x4042d5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x9c
push ebx
push esi
push edi
push 0x98
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00401447
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp + 0x7c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [eax + 0x2c], edx
mov edx, ecx
shl edx, 8
add edx, esi
xor ebx, ebx
cmp dword [ebp - 0x18], 2
mov dword [eax + 0x30], edx
sete bl
xor edx, edx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], esi
mov dword [eax], ebx
test ebx, ebx
je 0x40437b
cmp ecx, 4
sete dl
xor edi, edi
inc edi
mov dword [eax + 4], edx
cmp ecx, 5
jne 0x404350
test esi, esi
jne 0x404350
mov edx, edi
jmp 0x404352
xor edx, edx
mov dword [eax + 8], edx
cmp ecx, 5
jne 0x404362
cmp esi, edi
jl 0x404362
mov edx, edi
jmp 0x404364
xor edx, edx
mov dword [eax + 0xc], edx
cmp ecx, 6
jne 0x404374
test esi, esi
jne 0x404374
mov edx, edi
jmp 0x404376
xor edx, edx
mov dword [eax + 0x10], edx
jmp 0x40439e
xor edi, edi
inc edi
test esi, esi
sete dl
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edx
xor edx, edx
cmp esi, edi
sete dl
mov dword [eax + 0x1c], edx
xor edx, edx
cmp esi, 0x5a
setge dl
mov dword [eax + 0x20], edx
cmp ecx, 5
jge 0x4043b4
test ebx, ebx
jne 0x4043b0
cmp ecx, 4
jl 0x4043b0
cmp esi, edi
jge 0x4043b4
xor ecx, ecx
jmp 0x4043b6
mov ecx, edi
pop edi
pop esi
mov dword [eax + 0x34], ecx
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x404754
Capabilities:
Create process on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push ebx
push esi
push edi
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x407ac0]
add eax, 0x104
push eax
call fcn.004014fe
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x264]
push str._s_s
push eax
call esi
push str..bat
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x160]
push str._sdel__s_s
push eax
call esi
mov eax, dword [0x407ac0]
add esp, 0x24
push 0x80
add eax, 0x104
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4048ca
mov eax, dword [0x407ac0]
add eax, 0x104
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
lea eax, [ebp - 0x768]
push str._echo_off_r_n:Repeat_r_ndel___s___NUL_1_NUL_2_NUL_r_nif_exist___s__goto_Repeat_r_ndel___s___NUL_1_NUL_2_NUL_r_n
push eax
call esi
add esp, 0x14
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x768]
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x768]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x40
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00401447
mov dword [ebp - 0x18], edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x568]
push 0x40519c
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
call esi
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x264]
push eax
xor eax, eax
push eax
push 0x40
push eax
push eax
push eax
lea ecx, [ebp - 0x568]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418a80
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x418aa9
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418ab8
mov eax, 1
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx