joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408822
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x588], eax
mov eax, dword [ebp + 0x594]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
mov esi, 0x400
push ebx
push ebx
push esi
push esi
push 1
push 6
push 0x80003
push 0x40eda8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40889b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x408865
cmp eax, 0xe7
je 0x408865
jmp 0x4089a6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4088bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x408978
mov eax, dword [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4088c3
push ebx
sub eax, edx
lea ecx, [ebp - 0x80]
push ecx
inc eax
push eax
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408900
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.sendMessageToBroker_WriteFile_error:__d_n
call fcn.0040af24
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4089a6
push 0x1ff
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x200
lea eax, [ebp + 0x388]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
jne 0x408946
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x408965
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp - 0x78]
push 0x40ee14
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
cmp esi, ebx
je 0x40891b
jmp 0x408978
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ReadFile_error:__d_n
call fcn.0040af24
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
mov edi, 0x40ee18
lea esi, [ebp - 0x78]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408993
inc eax
jmp 0x4089a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ConnectNamedPipe_error:__d_n
call fcn.0040af24
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x58c
leave
ret
Function at 0x408af3
Capabilities:
Check if file exists
Check mutex on windows
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x610
mov eax, dword [0x41228c]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
xor bl, bl
call fcn.004089cc
test eax, eax
je 0x408cb1
call fcn.00407201
test eax, eax
je 0x408cb1
push esi
mov esi, dword [esp + 0x624]
push edi
push 0xa
mov edi, str._shutdown
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408b3d
inc bl
push ebp
push str.SunJavaBrokerMutex
push 1
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebp
je 0x408ca5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x408c9e
test bl, bl
jne 0x408cae
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push 0x40eef4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c4a
push 0x1ff
lea eax, [esp + 0x21]
push ebp
push eax
mov byte [esp + 0x28], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x200
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x408bda
call edi
cmp eax, 0xea
je 0x408bb6
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x220]
push 0x40ef0c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [esp + 0x228]
push eax
call fcn.00408580
add esp, 0x10
mov edi, str.SUCCESS
test eax, eax
jne 0x408c10
mov edi, str.FAILED
push ebp
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebp
jne 0x408c38
push str.Pipe__close_pipe_n
call fcn.0040af24
pop ecx
push esi
call ebx
cmp edi, ebp
je 0x408c96
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408b7d
call edi
cmp eax, 2
jne 0x408c61
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408b7d
cmp eax, 0xe7
jne 0x408c84
push 0xffffffffffffffff
push str..pipejbrokerpipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x408b7d
call edi
jmp 0x408b7d
push eax
push str.pipe_CreateFile_error:__d_n
call fcn.0040af24
pop ecx
pop ecx
jmp 0x408b7d
push dword [esp + 0x10]
call ebx
jmp 0x408cae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x408cae
call fcn.004089c0
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x610]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b376
add esp, 0x610
ret 0x10

Function at 0x40a6c1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x412664], 0
je 0x40a6cd
mov al, 1
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push 0
push 1
push 0
push 0x40f27c
mov edi, 0x412664
push edi
call esi
test eax, eax
jne 0x40a70f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a70b
push 8
push 1
push 0
push str.__SunJavaKernel
push edi
call esi
test eax, eax
jne 0x40a70f
xor al, al
jmp 0x40a711
mov al, 1
pop edi
pop esi
ret
Function at 0x40a98c
Capabilities:
Check if file exists
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x790], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a9df
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x40a9df
call ebx
push eax
push str.CopyPath_DeleteFile_error:__d_n
call fcn.0040af24
pop ecx
pop ecx
xor al, al
jmp 0x40aab5
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x40aa0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyPath_CreateFile_error:__d_n
jmp 0x40a9d1
push ebx
lea eax, [ebp - 0x74]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x70]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40aa58
cmp dword [ebp - 0x74], ebx
je 0x40aa80
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40aa60
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x74]
jne 0x40aa71
push ebx
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call esi
cmp eax, ebx
jne 0x40aa25
jmp 0x40aa84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyPath_WriteFile_error:__d_n
jmp 0x40a9d1
push str.CopyPath_WriteFile_short_written_count_n
call fcn.0040af24
jmp 0x40a9d7
cmp eax, ebx
jne 0x40aa95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyPath_ReadFile_error:__d_n
jmp 0x40a9d1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40aab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyPath_CloseHandle_error:__d_n
jmp 0x40a9d1
mov al, 1
mov ecx, dword [ebp + 0x790]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x794
leave
ret
Function at 0x40b376
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41228c]
jne 0x40b380
repz ret
jmp fcn.0040b979
Function at 0x41b43d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41b464
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je fcn.0041b46d
or byte [eax + ecx], 2
Function at 0x401330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.00458a7c
mov eax, dword [0x4ad780]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
mov dword [esp + 0xc], vtable.CFileException.0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.0045866d
mov eax, dword [esp + 0x30]
push 0
test eax, eax
mov dword [esp + 0x28], 2
push 0x80
jne 0x401437
mov edi, dword [esp + 0x34]
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4014c1
mov ecx, dword [0x4ad780]
mov dword [esp + 0x2c], ecx
push edi
lea edx, [esp + 0x30]
push str.Can_not_create_file___s_
push edx
mov byte [esp + 0x30], 3
call fcn.00451685
mov eax, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
push eax
call fcn.0045f42f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call fcn.004584d6
mov dword [esp + 8], vtable.CFileException.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 4
call fcn.004584d6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
mov edi, dword [esp + 0x34]
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4014c1
mov ecx, dword [0x4ad780]
mov dword [esp + 0x2c], ecx
push edi
lea edx, [esp + 0x30]
push str.Can_not_open_file___s__n
push edx
mov byte [esp + 0x30], 5
call fcn.00451685
mov eax, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
push eax
call fcn.0045f42f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call fcn.004584d6
mov dword [esp + 8], vtable.CFileException.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 6
call fcn.004584d6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
mov dword [esp + 8], vtable.CFileException.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 7
call fcn.004584d6
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4025a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46daf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
push ebx
push esi
mov esi, dword [esp + 0x860]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 8], ecx
jne 0x4025d8
mov eax, 1
jmp 0x4027b6
lea ecx, [esp + 0x14]
call fcn.004372eb
push ebx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x860], ebx
call fcn.004373b0
cmp eax, ebx
jne 0x40261e
lea ecx, [esp + 0x14]
call fcn.00437366
lea ecx, [esp + 0x14]
mov dword [esp + 0x858], 0xffffffff
call fcn.0043732a
mov eax, 1
jmp 0x4027b6
push edi
lea ecx, [esp + 0x18]
call fcn.00437366
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x23e]
mov word [esp + 0x23c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [esp + 0x240]
push str._s.
push eax
call fcn.0043f684
add esp, 0xc
lea ecx, [esp + 0x23c]
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.004373b0
cmp eax, ebx
je 0x40278c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
call fcn.004375d6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00437599
test eax, eax
jne 0x402781
mov ecx, 0x81
lea edi, [esp + 0x3a]
mov word [esp + 0x38], bx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x20]
stosw word es:[edi], ax
call fcn.004377d1
push 0x104
mov ecx, eax
mov byte [esp + 0x864], 1
call fcn.004588a7
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0043f59c
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x860], bl
call fcn.004584d6
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x38]
cmp eax, ebx
je 0x402742
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x44a]
mov word [esp + 0x448], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x448]
push eax
push esi
push 0x4a958c
push ecx
call fcn.0043f684
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x448]
push edx
call fcn.004025a0
jmp 0x402781
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x652]
mov word [esp + 0x650], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x650]
push eax
push esi
push 0x4a958c
push ecx
call fcn.0043f684
add esp, 0x10
lea edx, [esp + 0x650]
push edx
call ebp
cmp dword [esp + 0x18], ebx
jne 0x402679
pop ebp
lea ecx, [esp + 0x18]
call fcn.00437366
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x18]
mov dword [esp + 0x85c], 0xffffffff
call fcn.0043732a
mov eax, 1
pop edi
mov ecx, dword [esp + 0x850]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x854
ret 4
Function at 0x405540
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46df30
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
test ebx, ebx
push edi
mov esi, ecx
jne 0x405586
mov ecx, dword [esp + 0x20]
push str.Configure_file_is_empty__n
call fcn.00458853
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edi, [esi + 0x1f0]
push ebx
mov ecx, edi
call fcn.0045866d
push 0x5c
mov ecx, edi
call fcn.004512ef
cmp eax, 0xffffffff
je 0x4055e2
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00451277
lea edi, [esi + 0x1d4]
push eax
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0045861d
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004584d6
push str.NVBackup
mov ecx, edi
call fcn.00458853
push ebx
push 0
push str.SaveToLocalFlag
push 0x4a9c1c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
mov dword [esi + 0x1d8], eax
je 0x405672
mov eax, dword [esi + 0x1d4]
push eax
call fcn.00430b50
add esp, 4
test eax, eax
jne 0x405672
mov ecx, dword [0x4ad780]
mov dword [esp + 0x1c], ecx
mov esi, dword [esi + 0x1d4]
lea edx, [esp + 0x1c]
push esi
push str.Create_directory___s__fail.
push edx
mov dword [esp + 0x20], 1
call fcn.00451685
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 0
push eax
call fcn.0045f42f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004584d6
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x406d00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x406d3c
mov ecx, dword [esp + 8]
push ebx
push esi
lea esi, [eax + 1]
mov eax, dword [esp + 0xc]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x474bec]
xor ax, bx
inc ecx
dec esi
jne 0x406d18
pop esi
pop ebx
ret
mov ax, word [esp + 4]
ret

Function at 0x407110
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40713a
lea eax, [esi + 0x34]
mov dword [esi + 0x3c], 1
push eax
push 0
push esi
push 0x407180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop esi
ret
Function at 0x407190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x64c
push esi
push 0x12
push 0
push 0
push 0x474df0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4071bb
xor eax, eax
pop esi
add esp, 0x64c
ret 4
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
push ebp
push edi
mov dword [esp + 0x34], 0x1c
xor ebp, ebp
mov byte [esp + 0x10], 1
mov ecx, 0x183
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x474df0
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4072c4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push edx
push esi
mov dword [esp + 0x30], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x40722e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40730c
push 0
lea eax, [esp + 0x258]
push 0x200
push eax
push 0
lea ecx, [esp + 0x28]
push 0xc
push ecx
push esi
call ebx
push 0
lea edx, [esp + 0x458]
push 0x200
push edx
push 0
lea eax, [esp + 0x28]
push 0
push eax
push esi
call ebx
push 0x20019
push 1
push 0
lea ecx, [esp + 0x24]
push 1
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x4072ab
lea edx, [esp + 0x14]
lea eax, [esp + 0x54]
push edx
push eax
push 0
push 0
push str.PortName
push edi
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x664]
push edx
call fcn.00407470
inc ebp
jmp 0x40730c
mov ecx, dword [esp + 0x660]
xor ebp, ebp
mov byte [esp + 0x10], 0
call fcn.00407800
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x12
push ebp
push ebp
push 0x474df0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], 0x1c
mov eax, dword [esp + 0x660]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x407332
cmp esi, 0xffffffff
jne 0x4071d3
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x64c
ret 4
cmp esi, 0xffffffff
je 0x40733e
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x64c
ret 4
Function at 0x409eb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46e456
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00459ad6
cmp eax, ebx
je 0x40a017
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, ebx
je 0x40a017
lea ecx, [esp + 0x21c]
push ecx
mov ecx, eax
call fcn.00413000
test eax, eax
je 0x40a017
lea edx, [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push 0x104
push eax
push 0x4b1a08
push str.password
push 0x4a9f94
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x14]
push ecx
call fcn.0043f601
add esp, 4
cmp eax, ebx
jne 0x409f86
mov edx, dword [esi + 0x5c]
push str.admin
push edx
call fcn.0043f64f
add esp, 8
neg eax
sbb eax, eax
inc eax
jmp 0x40a019
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.0045854a
mov ecx, dword [0x4ad780]
mov dword [esp + 0x42c], ebx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x434], 1
call fcn.0040a0f0
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x5c]
push ecx
push edx
call fcn.0043f64f
add esp, 8
cmp eax, ebx
mov byte [esp + 0x42c], bl
lea ecx, [esp + 0xc]
jne 0x409ffe
call fcn.004584d6
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004584d6
mov eax, 1
jmp 0x40a019
call fcn.004584d6
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.004584d6
xor eax, eax
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x418380
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46f88e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push esi
push edi
mov esi, ecx
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f84
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x444], ebx
call fcn.004372eb
mov eax, dword [0x4ad780]
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x236]
mov word [esp + 0x234], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x4b1ca8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x238]
mov byte [esp + 0x448], 2
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x234]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0043f59c
lea edx, [esp + 0x23c]
push 0x2e
push edx
call fcn.0043f5c1
mov word [eax], bx
lea eax, [esp + 0x244]
push str..ini
push eax
call fcn.0043f572
lea ecx, [esp + 0x44]
push 0x5c
push ecx
call fcn.0043f5c1
lea edx, [esp + 0x4c]
push str.dl_report_result.txt
push edx
mov word [eax], bx
call fcn.0043f572
mov eax, dword [esi + 0x1d78]
add esp, 0x28
cmp eax, ebx
je 0x418525
lea eax, [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004373b0
test eax, eax
je 0x4184a9
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
lea edx, [esp + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x2c]
push 0x4ab944
push eax
call fcn.0043fd63
add esp, 8
cmp eax, ebx
mov dword [esi + 0x1f38], eax
jne 0x418525
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push str.Open_Success_Report_file___s__fail_
push edx
call fcn.00451685
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.0045f42f
lea ecx, [esp + 0xc]
mov byte [esp + 0x444], 1
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x444], bl
call fcn.0043732a
mov dword [esp + 0x444], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x418563
lea ecx, [esp + 0xc]
mov byte [esp + 0x444], 1
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x444], bl
call fcn.0043732a
mov dword [esp + 0x444], 0xffffffff
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
mov eax, 1
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret