joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403364
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x2420920], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4033b0
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040335d
mov eax, dword [0x4284d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ef
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420920], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420920]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x241febc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x241f86c], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x241feb8], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2420920], 0x213
mov dword [ebp - 0x18], edx
jne 0x4034ba
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403357
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4033ec
cmp dword [0x2420920], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403524
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2420920]
mov ecx, dword [0x241f870]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035a0
mov edi, ecx
mov ebx, eax
cmp dword [0x2420920], 0x959
jne 0x403594
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403364
add edi, 8
dec ebx
jne 0x403551
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403966
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2420920], 0x400
push edi
jne 0x4039b8
push esi
push esi
call fcn.00403c46
push esi
push esi
call fcn.00403c46
push esi
push esi
push esi
call fcn.004044e0
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.00404565
pop ecx
push esi
call fcn.004042f7
pop ecx
mov eax, dword [0x428b54]
mov dword [0x2420920], eax
mov eax, dword [0x428b2c]
mov dword [0x2420924], eax
call fcn.00403674
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a1f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a2d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4039da
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403a5c
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a65
inc edi
cmp edi, 0x11915
jl 0x403a2f
mov eax, dword [0x241f870]
mov dword [0x241feb4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a017
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427e30]
jne 0x40a021
repz ret
jmp fcn.0040d7d9
Function at 0x40c95b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ee3
and dword [ebp - 4], 0
cmp dword [0x42946c], 0
mov ebx, eax
jne 0x40ca0c
push 0x402374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cabd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402368
push edi
call esi
test eax, eax
je 0x40cabd
push eax
call fcn.00405e71
mov dword [esp], 0x402358
push edi
mov dword [0x42946c], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402344
push edi
mov dword [0x429470], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402328
push edi
mov dword [0x429474], eax
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x42947c], eax
test eax, eax
je 0x40ca0c
push 0x402310
push edi
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x429478], eax
mov eax, dword [0x429478]
cmp eax, ebx
je 0x40ca64
cmp dword [0x42947c], ebx
je 0x40ca64
push eax
call fcn.00405eec
push dword [0x42947c]
mov esi, eax
call fcn.00405eec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ca64
test edi, edi
je 0x40ca64
call esi
test eax, eax
je 0x40ca5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ca5b
test byte [ebp - 0xc], 1
jne 0x40ca64
or dword [ebp + 0x10], 0x200000
jmp 0x40ca9d
mov eax, dword [0x429470]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ca9d
mov eax, dword [0x429474]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42946c]
call fcn.00405eec
pop ecx
test eax, eax
je 0x40cabd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cabf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret
Function at 0x4033c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4033d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403410
lea ebx, [ebx]
cmp esi, eax
jae 0x403414
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403400
cmp esi, eax
jb 0x40341a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403e60
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x5a56c4
push 1
push 0
push 0x5a56b4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x403ea3
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
call fcn.0053e0b6
add esp, 8
jmp 0x403edd
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x403eca
push esi
push str.get_localPolicy_failed:_0x_08lx_n
call fcn.0053e0b6
add esp, 8
jmp 0x403edd
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x403eed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
test eax, eax
je 0x403efd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x405ea0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push 0xffffffffffffffff
push 0x571046
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x5d4d80]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
xor bl, bl
mov dword [esp + 0x18], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405f2c
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test ecx, ecx
jge 0x405f03
fadd qword [0x5ac408]
mov edx, dword [esp + 0x18]
fmul qword [0x5ac428]
fild dword [esp + 0x18]
test edx, edx
jge 0x405f1b
fadd qword [0x5ac408]
faddp st(1)
fcomp qword [0x5ac420]
fnstsw ax
test ah, 5
jp 0x405f2c
mov bl, 1
push 0x208
lea eax, [esp + 0x138]
push 0
push eax
call fcn.00542b10
add esp, 0xc
push 0x104
lea ecx, [esp + 0x138]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test bl, bl
je 0x405fbb
push 6
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edx, [esp + 0x10]
push edx
call fcn.00403e60
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x350], 0
call fcn.00403ff0
lea ebx, [esp + 0x10]
call fcn.004041d0
mov dword [esp + 0x348], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406026
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x406026
push 2
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [esp + 0xc]
push ecx
push 0x5a5d38
push 1
push 0
push 0x5a5d28
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x138]
mov dword [esp + 0x34c], 1
call fcn.004043a0
lea ebx, [esp + 0xc]
call fcn.004042f0
mov dword [esp + 0x348], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x406026
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0053d842
add esp, 0x344
ret
Function at 0x409a80
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x570ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0x5a68d0
lea ecx, [esp + 0x14]
call fcn.00403630
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0xec], eax
test eax, eax
je 0x409c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409c1b
push str._V2.06
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.PC_Link
call fcn.00403630
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x30], 1
call fcn.0041b560
mov ecx, eax
mov byte [esp + 0x30], 0
call fcn.0041bec0
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x30], 2
call fcn.0040a8e0
add esp, 0xc
mov byte [esp + 0x24], 3
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call fcn.0042c707
mov esi, eax
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409bdd
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call fcn.0042c707
mov edx, dword [esi + 0x20]
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409bc0
push 9
mov ecx, esi
call fcn.0042fed8
test edi, edi
je 0x409bca
mov eax, dword [edi + 0x20]
push eax
jmp 0x409bce
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
mov ecx, esi
call fcn.0042fed8
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x40a810
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5706b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0xe
push 0x5a6a34
mov ecx, 0x5d6d98
call fcn.004030f0
lea esi, [esp + 0xc]
call fcn.0040cb30
push str.AutelPdfUpLoad
push eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call fcn.0040a8e0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a8ac
mov edx, dword [esp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x40c110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x56f138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.0040b810
mov eax, 0x5a708c
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c170
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.0040c300
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.0040b810
cmp dword [esp + 0x24], 8
jb 0x40c1b7
mov edx, dword [esp + 0x10]
push edx
call fcn.00427143
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x40c820
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x2c]
push ebp
push edi
xor edi, edi
push eax
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebp, [esi + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x98]
sub ecx, dword [esi + 0x94]
je 0x40c8cf
mov edx, dword [esi + 0x28]
push 0xf
push edx
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edi, dword [esi + 0x98]
mov eax, dword [esi + 0x98]
sub edi, dword [esi + 0x94]
sub eax, dword [esi + 0x94]
jne 0x40c880
call fcn.0053e0a6
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x28]
push ebx
lea ebx, [esi + 0x3c]
push ebx
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c8c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40c8ce
mov ecx, dword [esi + 0x28]
push 1
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x40c8e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
push edi
xor eax, eax
lea edi, [esi + 8]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call ebx
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebp
cmp dword [esp + 0x20], 0
je 0x40c9b5
push edi
call ebx
mov edx, dword [esi + 0x28]
lea eax, [esi + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1b]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c96b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0x3e5
jne 0x40c96b
mov ecx, dword [esi + 0x28]
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push edi
call ebp
mov edx, dword [esi + 0x84]
movzx eax, byte [esp + 0xf]
mov ecx, dword [esi + 0x80]
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call ebx
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call ebp
cmp dword [esp + 0x20], 0
jne 0x40c924
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40cb30
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57067b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5d4d80]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x802e
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40cc13
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00403630
push 7
push str.Autel_
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.00402af0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cbd1
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
call fcn.00403ad0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x220], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40cc1f
push 0x5a7188
mov ecx, esi
call fcn.00403630
mov eax, esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0053d842
add esp, 0x21c
ret
Function at 0x40d950
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x408
mov eax, dword [0x5d4d80]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x40c]
push ebx
mov ebx, dword [esp + 0x414]
push esi
push edi
mov edi, dword [esp + 0x420]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40da23
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov dword [esp + 0x10], 0
test edi, edi
je 0x40d9cd
lea eax, [esp + 0x14]
push eax
push 0x100
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x14]
push ecx
push edi
call ebp
test eax, eax
jne 0x40d9cd
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x40da0f
push 0x100
lea edx, [esp + 0x218]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x214]
push eax
push ebx
call ebp
test eax, eax
jne 0x40da16
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0053d842
add esp, 0x408
ret
cmp dword [esp + 0x10], 0
jne 0x40d9f4
push edi
push ebx
push esi
call fcn.0040d950
add esp, 0xc
jmp 0x40d9f6
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0053d842
add esp, 0x408
ret