joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1042cf7
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x10000000
push 3
push ebx
push 7
push 0x10000
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1042d34
push 2
pop edi
push eax
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1042d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1042d64
cmp eax, 3
je 0x1042d64
push esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], ebx
call fcn.01042c4f
xor edi, edi
inc edi
cmp eax, edi
je 0x1042d82
push 0xf012
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1042d30
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
push 2
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1042f03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push ebx
call fcn.01042c4f
push 2
pop esi
cmp eax, esi
jne 0x1042ff3
push edi
mov edi, dword [ebp + 8]
test byte [edi + 0x10], 8
jne 0x1042ff2
push dword [ebp + 0x10]
push ebx
push edi
call fcn.01042e6c
cmp eax, esi
jne 0x1042f4b
mov dword [ebp - 4], 1
jmp 0x1042ff2
cmp dword [0x10bd70c], 0
je 0x1042ff2
cmp dword [ebx + 0x20], 0
jne 0x1042ff2
mov eax, dword [edi + 0x60]
jmp 0x1042fab
cmp ebx, eax
je 0x1042fa9
cmp dword [eax + 0x20], esi
jne 0x1042fa9
cmp dword [eax + 0x14], esi
jne 0x1042f8a
cmp dword [ebx + 0x14], esi
jne 0x1042f8a
mov ecx, dword [eax + 0x38]
cmp ecx, dword [ebx + 0x38]
jne 0x1042f8a
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [ebx + 0x3c]
je 0x1042fb1
cmp dword [ebx + 0x18], esi
jne 0x1042fa9
cmp dword [eax + 0x18], esi
jne 0x1042fa9
push 4
pop ecx
lea edi, [eax + 0x40]
lea esi, [ebx + 0x40]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov edi, dword [ebp + 8]
push 2
pop esi
je 0x1042fba
mov eax, dword [eax]
test eax, eax
jne 0x1042f67
jmp 0x1042fc7
mov dword [ebx + 0x20], 1
jmp 0x1042fc7
mov dword [ebx + 0x20], 2
mov eax, dword [eax + 0x50]
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x20], 0
jne 0x1042ff2
test byte [edi + 0x13], 2
jne 0x1042feb
push dword [ebp + 0x18]
lea eax, [ebx + 0x78]
push dword [ebp + 0x14]
push eax
call fcn.01031106
test eax, eax
je 0x1042feb
mov dword [ebp - 4], esi
jmp 0x1042ff2
mov dword [ebx + 0x20], 1
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14
Function at 0x10430af
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3f0
cmp dword [0x1099608], 0xffffffff
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
je 0x1043156
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.msvcrt.dll_vsprintf]
add esp, 0xc
cmp byte [ebp - 0x3ec], 0
lea esi, [ebp - 0x3ec]
je 0x1043126
push edi
cmp byte [esi], 0xa
jne 0x104311f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1043101
sub eax, edx
inc eax
push eax
lea edi, [esi + 1]
push esi
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov byte [esi], 0xd
add esp, 0xc
mov esi, edi
inc esi
cmp byte [esi], 0
jne 0x10430f7
pop edi
lea eax, [ebp - 0x3ec]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1043130
push 0
lea ecx, [ebp - 0x3f0]
push ecx
sub eax, edx
push eax
lea eax, [ebp - 0x3ec]
push eax
push dword [0x1099608]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.0106bc50
leave
ret
Function at 0x1044720
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x1099608], 0xffffffff
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
jne 0x10447a1
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10149c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1044798
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1099608], eax
je 0x10447a6
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1014968
call fcn.010430af
pop ecx
cmp dword [0x1099608], 0xffffffff
je 0x10447a6
xor eax, eax
inc eax
jmp 0x10447a8
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0106bc50
leave
ret

Function at 0x1044b4e
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov ebx, 0x10c5ba0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x10c5b98]
test esi, esi
je 0x1044b90
push edi
push 0x80
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov esi, dword [esi]
push eax
call dword [sym.imp.msvcrt.dll_free]
test esi, esi
pop ecx
jne 0x1044b69
pop edi
and dword [0x10c5b94], 0
and dword [0x10c5b98], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret

Function at 0x1044d04
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1044d21
xor eax, eax
mov dword [0x10c3b64], esi
inc eax
jmp 0x1044de2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
mov dword [0x10c5b84], eax
call edi
cmp dword [0x10c5b84], esi
mov dword [0x109a6d0], eax
pop edi
jne 0x1044d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014c4c
call fcn.01071ac0
pop ecx
pop ecx
xor eax, eax
jmp 0x1044de2
cmp dword [ebp + 0xc], esi
mov eax, 0x1044cb9
jne 0x1044d70
mov eax, 0x1044c6f
push 0x10c5b8c
push esi
push dword [ebp + 8]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x10c6908], eax
jne 0x1044da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014c10
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1044dd4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x10c6908]
mov dword [ebp - 8], eax
mov eax, dword [0x10c5b84]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
je 0x1044dd4
cmp eax, 1
jne 0x1044dd4
xor esi, esi
inc esi
push dword [0x10c5b84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x10453a2
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x109a6c8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor ecx, ecx
cmp dword [0x10c11dc], 1
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
jne 0x10453d1
mov dword [ebp - 0x10], 5
mov edi, dword [0x109a6cc]
inc edi
mov eax, 0x10c19cc
mov dword [ebp - 0xc], edi
mov edx, dword [eax]
sub edx, dword [eax - 4]
add ecx, dword [eax - 8]
add esi, dword [eax + 4]
add ebx, edx
add eax, 0x14
dec dword [ebp - 0xc]
jne 0x10453e0
test ecx, ecx
je 0x1045401
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
test esi, esi
je 0x104540d
mov eax, ebx
xor edx, edx
div esi
mov ebx, eax
test ebx, ebx
jne 0x1045412
inc ebx
mov edx, dword [ebp - 0x10]
cmp edi, edx
ja 0x104543d
mov ecx, edx
lea eax, [edi + edi*4]
sub ecx, edi
lea eax, [eax*4 + 0x10c19c0]
inc ecx
mov esi, dword [eax + 0x10]
imul esi, dword [eax]
imul esi, ebx
add esi, dword [eax + 8]
add eax, 0x14
dec ecx
mov dword [eax - 8], esi
jne 0x1045428
mov eax, 0x10c19c0
lea ecx, [edx + 1]
mov edx, dword [eax + 0x10]
imul edx, dword [eax]
add dword [ebp - 4], edx
add eax, 0x14
dec ecx
jne 0x1045445
mov eax, 0x10c19c4
mov ecx, dword [eax + 0xc]
imul ecx, dword [eax]
add dword [ebp - 8], ecx
add eax, 0x14
dec edi
jne 0x1045459
cmp dword [0x109a6cc], 7
jae 0x1045483
mov eax, dword [0x10bd83c]
test eax, eax
je 0x1045483
xor edx, edx
div ebx
mov dword [0x10c1a5c], eax
cmp dword [ebp - 4], 0
je 0x1045525
mov eax, dword [ebp - 8]
fild dword [ebp - 8]
test eax, eax
jge 0x104549d
fadd dword [0x1014d08]
mov eax, dword [ebp - 4]
fild dword [ebp - 4]
test eax, eax
jge 0x10454ad
fadd dword [0x1014d08]
fdivp st(1)
fstp dword [ebp - 0x10]
fld dword [0x109a6f0]
fcomp dword [ebp - 0x10]
fnstsw ax
test ah, 5
jp 0x1045525
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x109a6f4]
cmp eax, 0x64
jbe 0x104551b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [ebp - 8]
mov ebx, 0x2b0f
push 0x402
push ebx
push dword [0x10c3b64]
call esi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push eax
call edi
push dword [ebp - 4]
push 0
push 0x406
push ebx
push dword [0x10c3b64]
call esi
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x109a6f4], eax
mov eax, dword [ebp - 0x10]
mov dword [0x109a6f0], eax
jmp 0x1045537
fld dword [0x109a6f0]
fmul qword [0x1014d00]
fstp dword [0x109a6f0]
cmp dword [0x10bd108], 0
pop edi
pop esi
pop ebx
je 0x104554e
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0108895a
leave
ret
Function at 0x104765f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x109a700]
push edi
mov edi, dword [sym.imp.msvcrt.dll__strdup]
jmp 0x10476bd
lea eax, [esi + 0x104]
push eax
call fcn.0104739e
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strcmpi]
test eax, eax
pop ecx
pop ecx
jne 0x10476b7
push esi
call fcn.0104739e
push eax
call edi
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x10476ab
push 0x101505c
call fcn.01071aad
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10476ce
mov esi, dword [esi + 0x20c]
test esi, esi
jne 0x1047675
push dword [ebp + 8]
call edi
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, ebx
jmp 0x10476c7

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 1
call fcn.0104739e
push dword [ebp + 0xc]
mov edi, eax
call fcn.0104739e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov ebx, eax
call esi
cmp eax, 0xffffffff
je 0x10479c2
push ebx
call esi
cmp eax, 0xffffffff
je 0x10479c2
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.010474cd
test eax, eax
je 0x10479c2
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.010474cd
test eax, eax
je 0x10479c2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
ja 0x10479c2
jb 0x10479be
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x10479c2
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1049737
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x1049f74
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1099a38]
push ebx
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x100f678
push eax
xor edi, edi
call fcn.01070fc9
push edi
push 2
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x104a005
push esi
push edi
push 0xfffa
mov esi, 0x1106960
push esi
push 0x1015df8
push 0x100fed0
push ebx
push edi
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x1049ffb
push 0x1015df0
push esi
call dword [sym.imp.msvcrt.dll__mbslwr]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
je 0x1049ffb
inc edi
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
pop esi
jmp 0x104a03a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x104a025
lea eax, [ebp - 0x108]
push eax
push 0x1015dc0
call fcn.01071b29
pop ecx
pop ecx
jmp 0x104a03a
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1015d70
call fcn.01071aea
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x104b3a0
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 4], eax
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x23c], 0x1016318
mov dword [ebp - 0x238], 0x1016300
mov dword [ebp - 0x234], 0x10162e8
mov dword [ebp - 0x230], 0x10162d4
mov dword [ebp - 0x22c], 0x10162c0
mov dword [ebp - 0x228], 0x10162a8
call edi
xor esi, esi
cmp eax, esi
je 0x104b510
cmp eax, 0x20a
ja 0x104b510
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 0x20a], si
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x104b508
test byte [ebp - 0x21c], 8
je 0x104b508
mov dword [ebp - 0x218], esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push ebx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x224], 2
mov dword [ebp - 0x220], 0x11
call edi
test eax, eax
je 0x104b48d
cmp eax, 0x20a
jbe 0x104b49c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x214], 0
je 0x104b502
lea eax, [ebp - 0x210]
push 0x1016294
push eax
call esi
mov eax, dword [ebp - 0x218]
push dword [ebp + eax*4 - 0x23c]
lea eax, [ebp - 0x210]
push eax
call esi
add esp, 0x10
push 2
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0104b21f
test eax, eax
je 0x104b4ed
cmp dword [ebp - 0x214], 0
jne 0x104b4ed
mov dword [ebp - 0x214], eax
inc dword [ebp - 0x218]
cmp dword [ebp - 0x218], 6
jb 0x104b464
jmp 0x104b508
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
jmp 0x104b51d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x104b51d
push 0x7a
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x104b52a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x1099a38]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x101632c
push edi
call fcn.01070fc9
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
jne 0x104b588
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x104b63d
push dword [ebp + 0x10]
push esi
push edi
push 0
call fcn.0104b21f
mov dword [ebp - 0x350], eax
push 0x1016328
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x104b610
push 0x1016324
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x104b610
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push eax
push edi
call fcn.01070fc9
test byte [ebp - 0x34c], 0x10
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push esi
push eax
je 0x104b5f6
call fcn.0104b52a
jmp 0x104b5fd
push 0
call fcn.0104b21f
test eax, eax
je 0x104b610
cmp dword [ebp - 0x350], 0
jne 0x104b610
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x104b59a
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x350]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc

Function at 0x104b64c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 3
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
xor eax, eax
push eax
push eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
push eax
mov byte [ebp - 1], al
lea eax, [ebp - 4]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x104b69b
test byte [ebp - 8], 8
je 0x104b69b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104b52a
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x104bbe9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x1099a38]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x10164dc
mov dword [ebp - 4], eax
mov dword [ebp - 0x4ac], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x4a8], eax
je 0x104bda7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10164c8
push eax
call esi
push 0x10164b0
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4a4], eax
call esi
cmp dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x4b0], eax
je 0x104bd85
cmp eax, ebx
je 0x104bd32
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x10164a0
push edi
call fcn.01070fc9
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01073f21
cmp eax, 1
jne 0x104bd32
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x474]
push eax
push edi
call fcn.01070fc9
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x104bd0f
lea edi, [ebp - 0x310]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x104bcc0
lea eax, [ebp - 0x20c]
push eax
push 0x10094f0
lea eax, [ebp - 0x310]
mov esi, 0x10094ec
push eax
movsw word es:[edi], word [esi]
call fcn.010780c4
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpDecompressOrCopyFileA]
cmp eax, ebx
jne 0x104bd19
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x4b0]
jmp 0x104bd15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x104bd28
push eax
push 0x1016474
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x104bd32
push 0x1016454
call fcn.01071aad
push 0x14
pop ecx
xor eax, eax
lea edi, [ebp - 0x360]
rep stosd dword es:[edi], eax
push 0x40
lea eax, [ebp - 0x350]
push eax
push 0xf0ca
push ebx
mov dword [ebp - 0x360], 0x64
mov dword [ebp - 0x35c], ebx
mov byte [ebp - 0x350], bl
call fcn.010312a2
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x360]
push eax
call dword [ebp - 0x4a4]
mov dword [ebp - 0x4ac], eax
jmp 0x104bd98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1016420
call fcn.01071ac0
pop ecx
pop ecx
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
jmp 0x104bdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10163e0
call fcn.01071ac0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4ac]
pop edi
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x104ce3a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1016d18
push SysStringLen
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x104ce94
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1016d08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x104ce98
xor eax, eax
jmp 0x104cea3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
inc eax
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
mov dword [ebp - 0x210], ecx
mov esi, 0x104
jne 0x104d3e8
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1017610
push 0x10f54c0
call fcn.01070fc9
lea edi, [ebp - 0x20c]
jmp 0x104d3ea
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x104d516
test al, 0x10
je 0x104d516
push esi
lea eax, [ebp - 0x108]
push eax
push 0x1014dcc
push edi
call fcn.01070fc9
push 0
push 2
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x104d501
lea eax, [ebp - 0x214]
push eax
push 0x10175f8
push 0x100d9dc
push esi
call fcn.01070f0a
test eax, eax
jne 0x104d470
push 0x10175cc
call fcn.01071aad
push esi
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
push 0xf00c
call fcn.01037f35
xor eax, eax
jmp 0x104d52e
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 8]
push esi
je 0x104d4f9
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
cmp dword [0x10bd334], 0
jne 0x104d4e5
jmp dword [0x10991a4]
push dword [0x109a030]
push dword [ebp - 0x210]
push edi
call fcn.0107e0ba
jmp 0x104d52b
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
jmp 0x104d52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1017588
jmp 0x104d523
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1017540
call fcn.01071ac0
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 0xc
Function at 0x104dbf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
push 8
pop ecx
mov esi, 0x1017868
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push SysStringLen
mov dword [ebp - 0x214], 1
movsb byte es:[edi], byte [esi]
mov byte [0x1106960], bl
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x104dc6b
push eax
push 0x1017810
call fcn.01071ac0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x104dcf7
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x10177fc
push dword [ebp - 0x210]
mov byte [ebp - 0x108], bl
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x104dcbf
push eax
push 0x10177b0
call fcn.01071ac0
pop ecx
pop ecx
mov dword [ebp - 0x214], 1
jmp 0x104dcdd
lea eax, [ebp - 0x108]
push 0x10177a8
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
je 0x104dcdd
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x210], ebx
je 0x104dcf1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret