joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e46
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4339ac]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00409d64
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.usbx
push 0x42c4d8
mov ebx, str.MAIN
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.usbx
push str.DEVL
push ebx
call esi
lea eax, [ebp - 0x108]
push eax
call edi
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x409f06
mov eax, dword [ebp - 4]
add eax, 0x140
push eax
lea eax, [ebp - 0x108]
push 0x42c8a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x40
push str.NezuVirtualUSB
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret 4

Function at 0x409f0a
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x409fa6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409fa6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x26], si
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x409f9a
cmp dword [ebp + 0xc], esi
push edi
mov edi, dword [ebp - 0x14]
je 0x409f89
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
jmp 0x409fa1
mov dword [ebp - 4], 0xfffffffd
mov eax, dword [ebp - 4]
jmp 0x409fa9
or eax, 0xffffffff
pop esi
leave
ret 8
Function at 0x40a1ce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [0x4339ac]
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.00409d64
xor edi, edi
add esi, 0x140
cmp dword [ebp + 8], edi
jne 0x40a219
lea eax, [ebp - 0x104]
push eax
push 0x14
push esi
push str.usbx
push str.BASE
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x40a23c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40a23e
lea eax, [ebp - 0x104]
push eax
push esi
push str.BASE
push str.MAIN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40b6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [0x4339ac]
xor ebx, ebx
cmp dword [esi + 0x8a0], ebx
je 0x40b8b8
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [esi + 0x8e8], ebx
mov dword [esi + 0x8f4], ebx
mov dword [esi + 0x8f0], ebx
call fcn.0040d06b
mov edi, eax
cmp edi, 5
ja 0x40b76d
call fcn.0040d07c
cmp eax, ebx
jl 0x40b76d
mov ecx, edi
imul ecx, ecx, 0x368
lea ecx, [ecx + esi + 0xb0c]
cmp eax, dword [ecx + 0x6cc]
jge 0x40b76d
imul eax, eax, 0x550
lea edx, [edi + 1]
mov dword [esi + 0x8e8], edx
dec edx
mov edi, dword [ecx + 0x6c8]
lea eax, [edi + eax + 0x340]
mov dword [esi + 0x8f0], eax
lea eax, [ecx + 0x5c3]
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
mov dword [esi + 0x8f4], eax
je 0x40b76d
dec edx
je 0x40b76d
dec edx
je 0x40b76a
dec edx
je 0x40b75e
dec edx
je 0x40b76d
dec edx
mov dword [ebp - 4], ebx
je 0x40b76d
mov dword [ebp - 8], ebx
jmp 0x40b76d
cmp dword [ecx + 0x6cc], 1
jle 0x40b76a
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 0x8a4]
call edi
push dword [ebp - 4]
push dword [esi + 0x8a8]
call edi
push dword [ebp - 4]
push dword [esi + 0x8ac]
call edi
xor eax, eax
inc eax
cmp dword [esi + 0x8f8], ebx
jne 0x40b7a1
xor eax, eax
push eax
push dword [esi + 0x8bc]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041cf90
lea eax, [esi + 0x904]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041cf90
lea eax, [esi + 0xa08]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp - 8], 0xffffffff
jne 0x40b84c
cmp eax, 0xffffffff
jne 0x40b84c
xor eax, eax
jmp 0x40b84f
xor eax, eax
inc eax
push eax
push dword [esi + 0x8c0]
call edi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x40b8ae
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041cf90
lea eax, [esi + 0xa08]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
push eax
push dword [esi + 0x8a8]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [0x4339ac]
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041cf90
add esi, 0x904
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40be0f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push esi
push esi
push edi
mov ebx, eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, esi
pop ebx
je 0x40be0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret 4

Function at 0x40be15
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [0x4339ac]
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041cf90
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esi + 0x904]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push 0x42646b
lea eax, [ebp - 0x208]
push eax
push str.edit
push 0
call ebx
add esi, 0xa08
push esi
lea eax, [ebp - 0x104]
push eax
call edi
push 1
push 0
push 0x42646b
lea eax, [ebp - 0x104]
push eax
push str.open
push 0
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bf8f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [0x4339ac]
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esi + 0x8f8], edi
je 0x40bfb4
push 0x65
jmp 0x40c09f
push 0x42646b
push edi
push 0xc
push dword [esi + 0x8b0]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040d07c
cmp eax, edi
jl 0x40c09d
mov ecx, dword [esi + 0x8e8]
imul ecx, ecx, 0x368
lea ecx, [ecx + esi + 0xb0c]
cmp eax, dword [ecx + 0x364]
jge 0x40c09d
mov edx, dword [ecx + 0x360]
imul eax, eax, 0x550
lea eax, [edx + eax + 0xe8]
push eax
push ecx
lea eax, [esi + 0x904]
push eax
lea eax, [ebp - 0x108]
push 0x42cbf0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x21
push str.NezuVirtualUSB
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x658]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x40c048
push 0x64
jmp 0x40c09f
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x40bd36
push edi
push edi
mov dword [0x4339a8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x8f8], eax
jne 0x40c075
push 0x66
jmp 0x40c09f
push eax
mov dword [esi + 0x8fc], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
push dword [esi + 0x8a4]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 1
push dword [esi + 0x8bc]
call edi
jmp 0x40c0a0
push 0x6f
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40c8f6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov ebx, dword [0x4339ac]
mov esi, str.LVDL
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.LVDI
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebx + 0x7a0]
push eax
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ca1a
push dword [ebx + 0x22f4]
call fcn.0041d0e0
mov dword [ebp - 0xc], eax
push dword [ebx + 0x22fc]
call fcn.0041d0e0
cmp dword [ebp + 8], 1
push 4
mov dword [ebp - 0x14], eax
pop esi
jne 0x40c996
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call ebx
jmp 0x40ca11
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call ebx
test eax, eax
je 0x40c9c2
mov dword [ebp - 0x12c], edi
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call ebx
test eax, eax
je 0x40c9f3
mov dword [ebp - 0x12c], edi
jmp 0x40c9f9
mov edi, dword [ebp - 0x12c]
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x14], edi
jne 0x40ca08
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 2
jne 0x40ca11
mov dword [ebp - 0x10], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e6ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
sub edx, 0x10
push ebx
neg edx
push esi
mov esi, ecx
sbb edx, edx
lea eax, [esi + 8]
not edx
and edx, eax
mov eax, dword [esi + 4]
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, 0
je 0x40e71f
call fcn.0040e8aa
jmp 0x40e72f
push ebx
push ecx
push edx
push esi
push edi
push ecx
call fcn.0040db27
pop edi
pop esi
pop edx
pop ecx
pop ebx
test ebx, ebx
mov eax, dword [ebp - 4]
je 0x40e738
mov dword [ebx], eax
mov ecx, dword [esi]
xor ecx, eax
mov dword [esi + 4], ecx
mov dword [esi], edi
xor ecx, ecx
mov eax, dword [0x431dc8]
mov edx, dword [esi + 4]
xor eax, 0x25807724
ror eax, 7
xor eax, edx
rol eax, cl
xor eax, dword [esi]
inc ecx
inc ecx
cmp ecx, 0xc
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov dword [esi], edx
jb 0x40e743
mov edi, eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, 0
je 0x40e77c
call fcn.0040e8aa
jmp 0x40e78c
push ebx
push ecx
push edx
push esi
push edi
push ecx
call fcn.0040db27
pop edi
pop esi
pop edx
pop ecx
pop ebx
test ebx, ebx
mov eax, dword [ebp - 4]
je 0x40e796
mov dword [ebx + 4], eax
mov ecx, dword [esi]
xor ecx, eax
mov dword [esi + 4], ecx
mov dword [esi], edi
xor ecx, ecx
mov edx, dword [0x431dcc]
mov eax, dword [esi + 4]
xor edx, 0x36459714
rol edx, 9
xor edx, eax
rol edx, cl
add ecx, 5
xor edx, dword [esi]
cmp ecx, 0x1e
mov dword [esi + 4], edx
mov dword [esi], eax
jb 0x40e7a1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e7cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
sub edx, 0x10
push ebx
neg edx
push esi
mov esi, ecx
sbb edx, edx
lea eax, [esi + 8]
not edx
and edx, eax
push 0x19
mov ebx, edx
pop ecx
mov eax, dword [0x431dcc]
mov edx, dword [esi]
xor eax, 0x36459714
rol eax, 9
xor eax, edx
rol eax, cl
xor eax, dword [esi + 4]
sub ecx, 5
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], edx
jns 0x40e7e8
push edi
mov edi, eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, 0
je 0x40e820
call fcn.0040e8aa
jmp 0x40e830
push ebx
push ecx
push edx
push esi
push edi
push ecx
call fcn.0040db27
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 4]
xor ecx, eax
test ebx, ebx
mov dword [esi], ecx
mov dword [esi + 4], edi
je 0x40e844
mov dword [ebx + 4], eax
push 0xa
pop ecx
mov eax, dword [0x431dc8]
mov edx, dword [esi]
xor eax, 0x25807724
ror eax, 7
xor eax, edx
rol eax, cl
xor eax, dword [esi + 4]
sub ecx, 2
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], edx
jns 0x40e847
mov edi, eax
lea ecx, [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, 0
je 0x40e87e
call fcn.0040e8aa
jmp 0x40e88e
push ebx
push ecx
push edx
push esi
push edi
push ecx
call fcn.0040db27
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 4]
xor ecx, eax
test ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], ecx
pop edi
je 0x40e8a2
mov dword [ebx], eax
push ebp
pop ebp
pop esi
pop ebx
leave
ret 4
Function at 0x40f137
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov al, byte [esi + 1]
sar eax, 5
and al, 1
mov byte [esi + 0xa], al
xor edx, edx
mov dl, byte [esi + 2]
sar edx, 7
and dl, 1
xor dl, 1
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
je 0x40f16b
mov cl, byte [esi]
jmp 0x40f16f
mov cl, byte [esi]
not cl
mov byte [ebp - 2], cl
mov dl, byte [esi + 1]
and dl, 0x1f
xor eax, eax
shl byte [ebp - 8], 2
mov ebx, edx
mov ecx, edx
xor bl, 1
and cl, 1
and bl, 1
add ebx, ebx
or cl, bl
or byte [ebp - 8], cl
shr dl, 1
inc eax
cmp eax, 4
jl 0x40f17a
mov al, byte [ebp - 8]
xor al, 0xff
mov byte [ebp - 6], al
mov cl, byte [ebp - 8]
mov byte [ebp - 7], cl
mov al, byte [ebp - 6]
mov byte [ebp - 5], al
xor eax, eax
lea ebx, [eax + 8]
mov edi, 0x1f
sar ebx, 2
sub edi, eax
and ebx, 0xfe
mov ecx, edi
add ecx, 8
movzx ebx, byte [ebx + esi + 2]
and ecx, 7
sar ebx, cl
and bl, 1
mov ecx, eax
xor bl, dl
shl bl, cl
xor byte [ebp - 7], bl
lea ebx, [eax + 0x18]
sar ebx, 2
mov ecx, edi
and ebx, 0xfe
add ecx, 0x18
and ecx, 7
movzx ebx, byte [ebx + esi + 2]
sar ebx, cl
and bl, 1
mov ecx, eax
xor bl, dl
shl bl, cl
xor byte [ebp - 5], bl
inc eax
cmp eax, 8
jl 0x40f1b0
xor eax, eax
xor edi, edi
mov dword [esi + 0xc], eax
mov ebx, 0x1f
xor eax, eax
mov al, byte [ebp - 2]
shl eax, 3
mov dword [esi + 0x10], eax
push esi
push ebx
call fcn.0040f26b
mov ecx, ebx
mov edx, dword [ebp - 8]
shr edx, cl
xor edx, dword [esi + 0x10]
add esp, 8
and edx, 1
add edi, edi
or edi, edx
dec ebx
test ebx, ebx
jge 0x40f217
mov dword [esi + 0xc], edi
xor eax, eax
mov al, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov ecx, eax
shl ecx, 2
shl edx, 3
or edx, ecx
mov ecx, eax
add ecx, ecx
or edx, ecx
or edx, eax
mov dword [esi + 0x10], edx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x411144
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4339ac]
xor ebx, ebx
lea esi, [edi + 0xa08]
cmp byte [esi], bl
mov dword [ebp - 8], ebx
je 0x4112c9
cmp dword [ebp + 0xc], ebx
je 0x4112c9
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041cf90
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov esi, 0x80
jne 0x41122b
mov dword [ebp - 0xc], esi
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
cmp dword [ebp + 8], 1
push ebx
sete al
push esi
lea eax, [eax + eax + 2]
push eax
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4112b9
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x411275
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x1fe
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4112a6
cmp dword [ebp + 8], ebx
jne 0x4111c5
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push 0x42d0d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push str.NezuVirtualUSB
lea eax, [ebp - 0x214]
push eax
push dword [edi + 0x658]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x4111c5
or dword [ebp - 8], 0xffffffff
jmp 0x4112c9
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x1fe
cmp eax, esi
jne 0x4112b2
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4112b2
cmp dword [ebp - 4], esi
jne 0x4112b2
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412aa7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x4339ac]
push edi
xor edi, edi
xor ebx, ebx
inc edi
add esi, 0x36b0
cmp dword [ebp + 8], edi
mov dword [ebp - 4], ebx
jne 0x412ae0
mov eax, dword [esi]
cmp eax, ebx
je 0x412ad6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [ebp - 4], edi
jmp 0x412bbf
mov edi, str.WkWin32.dll
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
jne 0x412b20
push edi
lea eax, [ebp - 0x24]
push str._s_Module_Not_Found_Error._r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x412bbf
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x412bbf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, str.WkbGetVersion2
push ebx
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x412b9c
mov ebx, str.WkbEnumPorts2
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x412b9c
mov ebx, str.WkbListPort2
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x412b9c
mov ebx, str.WkbListBox2
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x412b9c
mov ebx, str.WkbOpen2
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x412b9c
mov ebx, str.WkbCrypt2
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x412b9c
mov ebx, str.WkbClose
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x412bb8
push ebx
lea eax, [ebp - 0x24]
push str._s_Proc_Not_Found_Error._r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0xc], 0
jmp 0x412b08
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x414f2a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push 0x2f
lea ecx, [edi + 0x2e]
sub eax, esi
pop edx
mov bl, byte [eax + esi]
xor bl, byte [esi]
inc esi
mov byte [ecx], bl
dec ecx
dec edx
jne 0x414f41
push 5
pop eax
xor ecx, ecx
mov dl, byte [eax + edi]
sub byte [ecx + edi], dl
inc eax
cmp eax, 0x2e
jbe 0x414f60
xor eax, eax
inc ecx
cmp ecx, 0x2f
jb 0x414f52
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x414f6c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push 0x15
lea ecx, [edi + 0x14]
sub eax, esi
pop edx
mov bl, byte [eax + esi]
xor bl, byte [esi]
inc esi
mov byte [ecx], bl
dec ecx
dec edx
jne 0x414f83
push 2
pop eax
xor ecx, ecx
mov dl, byte [eax + edi]
sub byte [ecx + edi], dl
inc eax
cmp eax, 0x14
jbe 0x414fa2
xor eax, eax
inc ecx
cmp ecx, 0x15
jb 0x414f94
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x415467
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [0x4339ac]
add esi, 0x39c0
test ebp, ebp
je 0x415531
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x415530
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + edi + 1]
mov eax, dword [0x4339ac]
push edi
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41552f
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push dword [esi + 4]
call edi
push dword [esi + 4]
mov ebp, eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
dec ebp
push ebp
push 0xb1
push dword [esi + 4]
mov dword [esp + 0x24], eax
call edi
xor ebp, ebp
push ebp
push ebp
push 0xb7
push dword [esi + 4]
call edi
cmp dword [esp + 0x14], ebp
je 0x415520
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x4339ac]
push ebx
push ebp
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
pop esi
pop ebp
ret 4