joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e940
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push 4
lea ecx, [ebp - 0x1c]
call fcn.00408cb0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x41da60
call fcn.0040e4a0
mov ecx, dword [esi]
mov bl, al
add esp, 8
cmp byte [ecx], 0
jne 0x40ea52
lea edx, [ebp - 0x11c]
push 0x100
push edx
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x40ea54
lea ecx, [ebp + 8]
call fcn.0040ef30
lea eax, [ebp - 0x11c]
lea ecx, [ebp + 8]
push eax
call fcn.0040f170
push 0x4205e0
lea ecx, [ebp + 8]
call fcn.0040f7b0
test eax, eax
jl 0x40ea2d
lea ecx, [ebp - 8]
call fcn.0040ef30
push 0x4205e0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
push 1
push ecx
lea ecx, [ebp + 8]
call fcn.0040fef0
lea ecx, [ebp - 4]
call fcn.0040ef30
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
push edx
call fcn.0040f340
lea ecx, [ebp - 8]
call fcn.00404a20
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.0040f340
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ea1c
cmp byte [eax], 0
jne 0x40ea14
mov dword [ebp - 4], 0
jmp 0x40ea1c
lea ecx, [ebp - 4]
call fcn.00410680
lea ecx, [ebp - 4]
call fcn.00404040
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x40ea2d
mov bl, 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ea54
cmp byte [eax], 0
je 0x40ea54
lea ecx, [ebp + 8]
call fcn.00410680
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ea54
lea ecx, [ebp + 8]
call fcn.00410680
jmp 0x40ea54
mov bl, 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x41da60
call fcn.00408d80
lea ecx, [ebp - 0x1c]
call fcn.00408db0
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410a90
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x4222f8]
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x410ac5
mov eax, dword [sym.bnfsd.exe_class_btkMemMgr__pDefMemMgr]
push eax
push 0x18
call fcn.00412920
mov esi, eax
add esp, 8
test esi, esi
je 0x410abe
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
jmp 0x410ac0
xor eax, eax
mov dword [0x4222f8], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4222ec]
mov eax, dword [0x4222fc]
inc ecx
test eax, eax
mov dword [0x4222ec], ecx
jne 0x410b13
mov ecx, dword [sym.bnfsd.exe_class_btkMemMgr__pDefMemMgr]
push ecx
push 4
call fcn.00412920
mov esi, eax
add esp, 8
test esi, esi
je 0x410b09
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov dword [0x4222fc], esi
jmp 0x410b13
mov dword [0x4222fc], 0
mov edx, dword [0x4222f8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4222fc]
push edi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
ret
Function at 0x410bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.004110c0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
push edi
push esi
push 0x4109a0
push edi
push edi
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x20], eax
jne 0x410bf4
mov edi, 1
cmp ebx, 1
jne 0x410c11
test edi, edi
jne 0x410c3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410c0a
mov edi, ebx
mov dword [esi + 0x20], 0
test edi, edi
jne 0x410c3f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x410c2f
push eax
mov ecx, esi
call fcn.00410dc0
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esi + 0x14], 1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x411010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push 4
push eax
push str.NUMBER_OF_PROCESSORS
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x41103b
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 1
jge 0x411040
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x412560
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_getenv]
mov esi, ecx
push str.NOINTERACT
call edi
test eax, eax
setne al
push str.HARDMEMDEBUG
mov byte [esi], al
call edi
test eax, eax
setne cl
push str.NOEXIT
mov byte [esi + 2], cl
call edi
add esp, 0xc
test eax, eax
setne dl
mov byte [esi + 1], dl
pop edi
pop esi
ret
Function at 0x4125f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov al, byte [sym.bnfsd.exe_bool_s_bThreadingEnabled]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test al, al
je 0x412642
mov al, byte [0x422350]
test al, al
je 0x412642
call edi
mov esi, eax
mov eax, dword [0x422354]
cmp eax, esi
jne 0x412630
cmp dword [0x422348], 1
jne 0x41262b
inc dword [0x42234c]
jmp 0x412642
call fcn.004110b0
mov eax, dword [0x422344]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x422354], esi
mov al, byte [sym.bnfsd.exe_bool_s_bThreadingEnabled]
mov esi, dword [0x422378]
test al, al
je 0x41269a
mov al, byte [0x422350]
test al, al
je 0x41269a
call edi
cmp dword [0x422354], eax
je 0x412669
call fcn.004110b0
cmp dword [0x422348], 1
jne 0x412683
mov eax, dword [0x42234c]
test eax, eax
je 0x412683
dec eax
mov dword [0x42234c], eax
jmp 0x41269a
mov ecx, dword [0x422344]
mov dword [0x422354], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4126b3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x4126e7
mov al, byte [sym.bnfsd.exe_class_baselibState_theCTState]
test al, al
je 0x4126df
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
push str.Nointeractive_mode___aborting.
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
ret
Function at 0x414030
Capabilities:
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.COMSPEC
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
je 0x4140ba
mov ebx, dword [ebp + 8]
mov edi, esi
test ebx, ebx
je 0x41408e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push ebx
mov edi, eax
push esi
push str._s__e:8196__c__s
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x13
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
push esi
push str._s__e:8196__c
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x414520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.bnfsd.exe_class_btkMemMgr__pDefMemMgr]
push esi
push eax
push 8
call fcn.00412920
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x414570
push 0
push 0
mov dword [esi], ecx
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x414568
push esi
call fcn.00412990
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x41475d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x40121e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x401238
mov eax, 0x40e9f4
push eax
mov esi, str.AI98D.dwCopy0000Key
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push str._s___h0000Key__lx___hEnumKey__lx____s__
push 6
call fcn.00407ea7
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x40131d
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
push eax
lea eax, [ebp - 0x224]
push eax
mov esi, 0x105
push edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
call ebx
test eax, eax
jne 0x40130c
push dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x224]
push dword [ebp - 0x10]
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x40130c
lea ecx, [ebp + 0xc]
mov eax, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
inc dword [ebp - 4]
lea ecx, [ebp - 8]
push edi
push ecx
lea ecx, [ebp - 0x224]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], edi
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], esi
jmp 0x4012b1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.AI98D.dwCopy0000Key
pop ebx
jmp 0x40134b
push edi
push 3
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x40134b
push edi
lea ecx, [ebp - 0x310]
push dword [ebp + 0x10]
call fcn.0040847c
push eax
push esi
push str._s:_RegCreateKeyEx_failed:__s
push 3
call fcn.00407ea7
add esp, 0x10
push dword [ebp + 0x10]
push esi
push str._s____d
push 6
call fcn.00407ea7
mov eax, dword [ebp + 0x10]
add esp, 0x10
pop edi
pop esi
leave
ret 0xc
Function at 0x401542
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
push str.AI98D.RemoveProtocol
push str._s___
push 6
call fcn.00407ea7
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0xf003f
push edi
push str.SystemCurrentControlSetServicesClassNetTrans
push 0x80000002
call fcn.00408497
add esp, 0x20
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4016c8
push ebx
push esi
push 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ebx
lea eax, [ebp - 0x18]
push 5
push eax
push edi
mov dword [ebp - 4], edi
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x4016a8
jmp 0x4015b0
push 1
pop ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2c]
push str.Ndi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401652
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.DeviceID
mov dword [ebp - 0x20], 9
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
test eax, eax
jne 0x40164a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], ebx
jne 0x40168e
lea eax, [ebp - 0x38]
push 0x40c3a0
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x40168e
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40168e
mov dword [ebp - 4], edi
jmp 0x40168e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40168e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 3
mov ebx, eax
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x40168e
push edi
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0040847c
push eax
lea eax, [ebp - 0x2c]
push eax
push str.AI98D.RemoveProtocol
push str._s:_RegOpenKeyEx___ws___2_failed:__s
push 3
call fcn.00407ea7
add esp, 0x14
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push 5
push ecx
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x4015ad
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
pop esi
pop ebx
jne 0x4016c8
push str.EnumNetworkMDC8021X
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
push str.AI98D.RemoveProtocol
push str._s____d
push 6
call fcn.00407ea7
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
leave
ret
Function at 0x4023ce
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1f4
push esi
mov esi, str.AI98D.DriverFound
push edi
push esi
push 0x40ef04
push 6
call fcn.00407ea7
add esp, 0xc
push str.SoftwareMDCNoDriver
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
push 0
test edi, edi
jne 0x402417
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
xor eax, eax
jmp 0x402454
push 3
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x402441
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.0040847c
push eax
push esi
push str._s:_RegDeleteKey_failed:__s
push 3
call fcn.00407ea7
add esp, 0x10
push edi
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, edi
pop edi
pop esi
add esp, 0x1f4
ret

Function at 0x4024ff
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1f4
push esi
mov esi, str.AI98D.VxdRemoved
push edi
push esi
push 0x40ef04
push 6
call fcn.00407ea7
add esp, 0xc
push str.SoftwareMDCVxdInstalled
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
push 0
test edi, edi
jne 0x402548
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
xor eax, eax
jmp 0x402585
push 3
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x402572
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.0040847c
push eax
push esi
push str._s:_RegDeleteKey_failed:__s
push 3
call fcn.00407ea7
add esp, 0x10
push edi
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, edi
pop edi
pop esi
add esp, 0x1f4
ret

Function at 0x40258e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push ebx
push esi
push edi
mov esi, str.AI98D.SetInstallStateRegistry
push dword [ebp + 8]
push esi
push str._s_CurrentState__d__
push 6
call fcn.00407ea7
add esp, 0x10
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0xf003f
push edi
push str.SoftwareMDC802.1X
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, edi
je 0x4025f8
push edi
push 3
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x402641
push edi
push ebx
lea ecx, [ebp - 0x1f8]
call fcn.0040847c
push eax
push esi
push str._s:_RegOpenKeyEx__HKLMSoftwareMDC802.1X___failed:__s
jmp 0x402637
lea eax, [ebp + 8]
push 4
push eax
push 4
push edi
push str.CurrentInstallState
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
push edi
cmp ebx, edi
je 0x40265e
push 3
call fcn.00407ea7
pop ecx
test eax, eax
pop ecx
je 0x402641
push edi
push ebx
lea ecx, [ebp - 0x1f8]
call fcn.0040847c
push eax
push esi
push str._s:_RegSetValueEx__HKLMSoftwareMDC802.1XCurrentInstallState___failed:__s
push 3
call fcn.00407ea7
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, edi
jmp 0x402670
push esi
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402677
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x400
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.AI98D.DeleteDriverFiles
push 0x40ef04
mov esi, ecx
push 6
call fcn.00407ea7
add esp, 0xc
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0xc2
push str.Initiating_Deleting_files._r_n
push 0
push ebx
push dword [esi + 0x80]
call edi
lea eax, [esp + 0x1ac]
push 0xc9
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4026ea
push str.Get_Windows_Directory_failed._r_n
push 0
push ebx
push dword [esi + 0x80]
call edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x344]
push 0xc9
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402716
push str.Get_System_Directory_failed._r_n
push eax
push ebx
push dword [esi + 0x80]
call edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1ac]
push 0xc9
push eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [esp + 0xec]
push str.infothermdc8021x.inf
push eax
call sub.MSVCRT.dll_strcat
lea eax, [esp + 0x1c0]
push 0xc9
push eax
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [esp + 0x298]
push str.infothermdc8021x.pnf
push eax
call sub.MSVCRT.dll_strcat
lea eax, [esp + 0x36c]
push 0xc9
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [esp + 0x48]
push str.mdc8021x.vxd
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x3c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4027be
push str.Deletion_of_mdc8021x.vxd_failed._r_n
push eax
push ebx
push dword [esi + 0x80]
call edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4027e5
push str.Deletion_of_mdc8021x.inf_failed._r_n
push eax
push ebx
push dword [esi + 0x80]
call edi
call ebp
mov esi, eax
jmp 0x4027e9
mov esi, dword [esp + 0x10]
push esi
push str.AI98D.DeleteDriverFiles
push str._s____d
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x402ac1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, str.StatusPrint
push edi
push esi
push str._s___
push 6
call fcn.00407ea7
add esp, 0xc
xor edi, edi
mov dword [ebp - 4], edi
push edi
push 0x80000080
push 2
push edi
push edi
push 0xc0000000
push str.results.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402b1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str._s:___FALSE
push 6
call fcn.00407ea7
add esp, 0xc
jmp 0x402b49
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str._s:___TRUE
push 6
call fcn.00407ea7
add esp, 0xc
push 1
pop edi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
jne 0x4038eb
mov eax, 0x40e9f4
push eax
push str.FC.EtCreatFile
push str._s___path__s___pf__
push 6
call fcn.00407ea7
add esp, 0x10
mov byte [ebp - 1], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403941
lea eax, [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [eax]
push dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403941
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x40394c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
pop esi
pop ebx
mov eax, str.true
jne 0x40395d
mov eax, str.false
push eax
push 0x40cae0
push str._s:____s
push 6
call fcn.00407ea7
mov al, byte [ebp - 1]
add esp, 0x10
leave
ret 8
Function at 0x4079ef
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40cd18
push str._s___
mov esi, ecx
push 6
call fcn.00407ea7
add esp, 0xc
xor ebp, ebp
cmp byte [esi], 0
jne 0x407a47
mov edi, 0x105
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x407a2b
cmp ebx, 0x104
jbe 0x407a47
push str.windows_directory
push str.Windows_directory
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
mov ecx, esi
call fcn.00407628
jmp 0x407a4d
test esi, esi
mov ebp, esi
jne 0x407a52
mov esi, 0x40e9f4
push esi
push str.FC.GetWindowsDirectoryOrNil
push str._s:____s
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x407a6e
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
mov ebx, 0x40cd50
push edi
push ebx
push str._s___
mov edi, ecx
push 6
call fcn.00407ea7
lea esi, [edi + 0x20a]
add esp, 0xc
xor ebp, ebp
cmp byte [esi], 0
jne 0x407b12
push 0x105
push esi
lea ecx, [esp + 0x18]
call fcn.0040860a
mov ecx, edi
call fcn.004079ef
test eax, eax
je 0x407b1a
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.00408636
mov edx, str.infother
lea ecx, [esp + 0x10]
call fcn.00408636
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x407b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push eax
lea ecx, [esp + 0x30]
call fcn.0040847c
push eax
push str.FC.CreateInfOtherDirectoryOrNil
push str._s_Error_in_CreateDirectory:__s
push 6
call fcn.00407ea7
add esp, 0x10
push esi
push ebx
push str._s_Created__s
push 6
call fcn.00407ea7
add esp, 0x10
mov ebp, esi
test ebp, ebp
mov eax, ebp
jne 0x407b1f
mov eax, 0x40e9f4
push eax
push str.FC.CreateInfOtherDirectoryOrNil
push str._s:____s
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x407b41
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40cd90
push str._s___
mov edi, ecx
push 6
call fcn.00407ea7
and dword [esp + 0x1c], 0
lea esi, [edi + 0x105]
add esp, 0xc
cmp byte [esi], 0
jne 0x407ba7
mov ebx, 0x105
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x407b87
cmp ebp, 0x104
jbe 0x407ba7
push str.windows_system32_directory
push str.Windows_system32_directory
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
mov ecx, edi
call fcn.00407628
mov esi, dword [esp + 0x10]
jmp 0x407bad
test esi, esi
mov eax, esi
jne 0x407bb2
mov eax, 0x40e9f4
push eax
push str.FC.GetSystemDirectoryOrNil
push str._s:____s
push 6
call fcn.00407ea7
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret