joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4070c0
cmp dword [ebp + 0xc], 0
jne 0x4070c7
xor eax, eax
jmp 0x407171
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4275c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 4], 0
jne 0x4070fa
mov dword [0x76ee00], 6
xor eax, eax
jmp 0x407171
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x40711b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 0x4275cc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417695
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x4275dc
call fcn.00405dd0
add esp, 8
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4071b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x76dec4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00411b60
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00411b60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00406fe0
add esp, 8
test eax, eax
je 0x407248
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041763b
add esp, 0xc
push 0x4275ec
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00417695
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa7f
mov esp, ebp
pop ebp
ret
Function at 0x407270
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x76dec4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00411b60
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00411b60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004070b0
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041763b
add esp, 0xc
push 0x76de10
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00417695
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.0041763b
add esp, 0xc
push 0x76de20
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.00417695
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0041763b
add esp, 0xc
push 0x76de30
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00417695
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041763b
add esp, 0xc
push 0x76de40
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00417695
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa7f
mov esp, ebp
pop ebp
ret

Function at 0x4073f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push eax
call fcn.00417800
add esp, 4
add eax, 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00417488
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40742b
mov eax, 1
jmp 0x407496
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00411b60
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00417700
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov ecx, 0x414
mov word [ebp - 0x1c], cx
mov dword [ebp - 0x1a], 0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x12], 0x427589
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
push str.Temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 4], 0
jne 0x4074f9
mov dword [0x76ee00], 6
mov eax, 2
jmp 0x407645
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x40751a
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x407531
cmp dword [ebp - 0xc], 1
je 0x407585
jmp 0x4075d7
push 0x427660
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.00417695
add esp, 0xc
push 0x104
push str.Helper
call fcn.00405dd0
add esp, 8
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4075d7
push 0x427670
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417695
add esp, 0xc
push 0x104
push str.DBUtil_Driver
call fcn.00405dd0
add esp, 8
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4075ff
mov ecx, dword [ebp + 8]
push ecx
call fcn.004073f0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4075ff
mov eax, dword [ebp - 8]
jmp 0x407645
lea edx, [ebp - 0x1c]
push edx
call fcn.00407180
add esp, 4
test eax, eax
jne 0x40761d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x407645
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x407645
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x407650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x76dec4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00411b60
add esp, 0xc
mov dword [ebp - 0x10c], 0x752ca8
mov dword [ebp - 0x110], 0x1b158
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004074a0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4076b7
mov eax, 2
jmp 0x4077e7
push 0x427690
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00417695
add esp, 0xc
mov eax, dword [ebp - 0x110]
push eax
call fcn.00417488
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x407702
mov dword [0x76ee00], 0xd
mov eax, 5
jmp 0x4077e7
mov ecx, dword [ebp - 0x110]
push ecx
push 0x752ca8
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004115e0
add esp, 0xc
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00405e20
add esp, 8
mov dword [ebp - 0x118], 0
push 0x4276b4
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00417d6f
add esp, 0xc
test eax, eax
jne 0x407790
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x110]
push edx
push 1
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004180d0
add esp, 0x10
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00417e2d
add esp, 4
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0041746d
add esp, 4
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x110]
je 0x4077be
mov dword [0x76ee00], 8
mov eax, 2
jmp 0x4077e7
cmp dword [ebp + 0xc], 0x104
jb 0x4077e5
cmp dword [ebp + 8], 0
je 0x4077e5
lea ecx, [ebp - 0x108]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.0041763b
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa7f
mov esp, ebp
pop ebp
ret
Function at 0x407c90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.DBUTILDRVMUX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407ccd
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407ccd
mov dword [0x76ee00], 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x76dec4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x12c], 2
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x40885f
mov eax, 3
jmp 0x408a04
cmp dword [ebp + 0x14], 2
jge 0x40886f
mov eax, 3
jmp 0x408a04
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x10c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x10c]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x4088a3
mov eax, 3
jmp 0x408a04
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x118], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx + eax]
test edx, edx
jne 0x4088d7
mov eax, 3
jmp 0x408a04
push 0
lea eax, [ebp - 0x108]
push eax
push 0x104
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x104
jae 0x40890d
cmp dword [ebp - 0x11c], 0
jne 0x408917
mov eax, 2
jmp 0x408a04
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408933
mov eax, 2
jmp 0x408a04
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
push str.newdev.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x40896c
jmp 0x4089e8
push str.UpdateDriverForPlugAndPlayDevicesA
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x408991
jmp 0x4089e8
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
call dword [ebp - 0x120]
test eax, eax
jne 0x4089bd
jmp 0x4089e8
cmp dword [ebp - 0x124], 0
je 0x4089d2
mov dword [ebp - 0x128], 1
jmp 0x4089dc
mov dword [ebp - 0x128], 0
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
cmp dword [ebp - 0x110], 0
je 0x4089fe
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa7f
mov esp, ebp
pop ebp
ret
Function at 0x40aad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
movzx eax, byte [0x7732e6]
cmp eax, 1
jne 0x40aafa
mov al, byte [0x7732e7]
jmp 0x40abc5
mov dword [ebp - 4], 0
jmp 0x40ab0c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jge 0x40ab2c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x7732b8], eax
jmp 0x40ab03
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x7732b4], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x7732ac], eax
push str.Calling_CreateThread_n
call fcn.0040ac50
add esp, 4
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40bf00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x7732b0], eax
push 0xffffffffffffffff
mov ecx, dword [0x7732ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40ab9c
cmp dword [ebp - 8], 0x80
jne 0x40aba9
push str.Something_wrong_in_the_thread_n
call fcn.0040ac50
add esp, 4
cmp dword [0x7732b0], 0
je 0x40abb9
mov byte [0x7732e7], 1
mov byte [0x7732e6], 1
mov al, byte [0x7732e7]
mov esp, ebp
pop ebp
ret
Function at 0x40ac60
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426838
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x76dec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x7732d8
call fcn.0040ce80
test eax, eax
je 0x40ac9d
mov ecx, 0x7732d8
call fcn.0040d3b0
push 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40accd
cmp dword [ebp - 0x14], 0x80010106
je 0x40accd
push str.Error_initializing_COM___n
call fcn.0040ac50
add esp, 4
xor al, al
jmp 0x40ae4c
cmp dword [ebp - 0x14], 0
jne 0x40ad17
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40ad17
cmp dword [ebp - 0x14], 0x80010119
je 0x40ad17
push str.Failed_to_initialize_COM_security._n
call fcn.0040ac50
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x40ae4c
lea ecx, [ebp - 0x18]
call fcn.0040c900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040c9c0
push eax
push 0x428b44
push 1
push 0
push 0x428b34
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40ad7a
push str.Failed_to_create_IWbemLocator_object._n
call fcn.0040ac50
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040cc30
mov al, byte [ebp - 0xd]
jmp 0x40ae4c
lea ecx, [ebp - 0x18]
call fcn.0040ce80
mov dword [ebp - 0x1c], eax
mov ecx, 0x7732d8
call fcn.0040c9c0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTWMI
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40ade3
push str.Could_not_connect._n
call fcn.0040ac50
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040cc30
mov al, byte [ebp - 0xe]
jmp 0x40ae4c
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, 0x7732d8
call fcn.0040ce80
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40ae36
push str.Could_not_set_proxy_blanket._n
call fcn.0040ac50
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040cc30
mov al, byte [ebp - 0xf]
jmp 0x40ae4c
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040cc30
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ec10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040f7a0
movzx eax, al
test eax, eax
jne 0x40ede3
lea ecx, [ebp + 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x10
je 0x40edda
push 0x5c
lea ecx, [ebp + 8]
call fcn.00403da0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40ec89
push 0x2f
lea ecx, [ebp + 8]
call fcn.00403da0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40ec89
mov dword [ebp - 0x1c], 0xf
lea ecx, [ebp + 8]
call fcn.00403e30
mov eax, dword [ebp - 0x1c]
jmp 0x40edfb
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.00403bd0
lea ecx, [ebp - 0x14]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40ecbd
mov dword [ebp - 4], 0xf
jmp 0x40edd0
mov eax, dword [ebp - 0x18]
and eax, 0x400
je 0x40ecef
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00403f30
call fcn.0040f0f0
add esp, 4
cmp eax, 0x17
jne 0x40ecef
mov dword [ebp - 4], 0x13
jmp 0x40edd0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40ed39
push 0
push 0x80
push 1
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xc0000000
lea ecx, [ebp + 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40ed2a
mov dword [ebp - 4], 0xd
jmp 0x40ed34
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40edd0
mov edx, dword [ebp - 0x10]
and edx, 0x400
je 0x40edd0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 8]
push eax
call fcn.00403f30
call fcn.0040f0f0
add esp, 4
cmp eax, 0x14
jne 0x40edc9
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40edc9
lea ecx, [ebp + 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40edc0
push 0
push 0x80
push 1
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0xc0000000
lea ecx, [ebp + 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40edb4
mov dword [ebp - 4], 0xd
jmp 0x40edbe
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40edc7
mov dword [ebp - 4], 0xe
jmp 0x40edd0
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x14]
call fcn.00403e30
jmp 0x40ede1
mov dword [ebp - 4], 0xf
jmp 0x40edea
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp + 8]
call fcn.00403e30
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x58], 0x44
call sym.RunTimesExists__
test al, al
jne 0x40147a
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.RunTimes
mov dword [esp + 4], str.VB6_RunTimes_werden_jetzt_aktualisiert.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea eax, [ebp - 0x68]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43e034
mov dword [esp], str.VBRUN60.EXE
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
cmp eax, 1
jne 0x40147a
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
lea eax, [ebp - 0x68]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43e034
mov dword [esp], str.MAKEUP.EXE
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
cmp eax, 1
jne 0x4014dd
mov dword [ebp - 0x6c], 0
jmp 0x40150b
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Setup.exe
mov dword [esp + 4], str.Die_Datei_Setup.exe_wird_vermisst._nSetup_kann_nicht_fortgesetzt_werden.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x6c]
leave
ret 0x10
Function at 0x403840
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x403876
mov dword [0x445030], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43d010], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43d010], eax
leave
ret

Function at 0x403960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43ba44
mov dword [ebp - 0x1c], 0x403a20
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43d010], 0
mov dword [ebp - 0x44], 0x445040
je 0x403a00
jl 0x403a40
mov dword [ebp - 0x3c], 1
mov eax, dword [0x445030]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x403ae3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x445650]
mov eax, 0xffffffff
test edx, edx
je 0x403a5a
mov eax, dword [0x43d014]
test eax, eax
je 0x403a9a
xor eax, eax
test eax, eax
jne 0x403a90
mov edi, dword [0x43d010]
test edi, edi
js 0x403a90
mov dword [ebp - 0x44], 0x445040
mov ebx, dword [0x43d010]
test ebx, ebx
je 0x403a00
jmp 0x4039ae
xor esi, esi
mov dword [0x43d010], esi
jmp 0x403a68
mov dword [esp], 0x43d018
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x403b21
mov eax, dword [0x43d014]
test eax, eax
jne 0x403a58
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43d014]
test eax, eax
je 0x403abd
jmp 0x403a58
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x403b15
mov dword [esp + 4], eax
mov eax, dword [0x445030]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x403b4a
test edx, edx
je 0x403b35
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43d014], eax
jmp 0x403a58
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4039f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x403b11