joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d0039dd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], ecx
cmp dword [esi], 0x66
jne 0x7d003b6e
push edi
push ebx
push 0x453
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 9
mov dword [ebp + 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
mov dword [ebp - 0x24], 3
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0x3f
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp - 0x28]
and ebx, 2
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
sub edi, dword [ebp + 0xc]
neg edi
sbb edi, edi
inc edi
test ebx, ebx
mov dword [ebp - 8], edi
je 0x7d003a7a
mov eax, edi
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0xf
mov dword [ebp + 0xc], eax
jmp 0x7d003a84
mov dword [ebp + 0xc], 5
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x1c]
inc ecx
push ecx
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
test ebx, ebx
je 0x7d003ab7
neg edi
sbb edi, edi
and edi, 6
add edi, 8
jmp 0x7d003aba
push 8
pop edi
push edi
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.7d003d27
test eax, eax
je 0x7d003aeb
mov eax, dword [edi + 0x234]
jmp 0x7d003af1
mov eax, dword [edi + 0x230]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi + 0x18]
call edi
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 2
push dword [esi + 0x18]
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 0xc], eax
lea eax, [esi + 0x1c]
push 0
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0xb4]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call ebx
push dword [ebp - 0xc]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 4]
push dword [esi + 0x18]
call edi
cmp dword [ebp - 8], 0
je 0x7d003b69
test byte [ebp - 0x28], 1
je 0x7d003b69
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x7d005948
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
test eax, eax
je 0x7d005958
and dword [eax], 0
mov edi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.7d00559b
test eax, eax
mov dword [ebp + 8], eax
je 0x7d0059fc
cmp eax, 0x80004005
jne 0x7d005982
mov dword [ebp + 8], 0x80070002
jmp 0x7d0059fc
push edi
call fcn.7d00557e
test eax, eax
jne 0x7d0059f8
or ebx, 0xffffffff
push ebx
push edi
call sym.SHELL32.dll_PathIsSlowW
test eax, eax
jne 0x7d0059f8
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x7d0059e6
push edi
call fcn.7d005618
test eax, eax
jne 0x7d0059e6
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x7d0059ed
cmp dword [ebp + 0xc], 0
je 0x7d0059db
push 4
push edi
push 0
push dword [ebp + 0xc]
call sym.SHELL32.dll_SHPathPrepareForWriteW
test eax, eax
jl 0x7d0059db
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7d0059e6
and dword [ebp + 8], 0
jmp 0x7d0059ed
mov dword [ebp + 8], 0x80070002
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7d0059fc
mov dword [eax], ebx
jmp 0x7d0059fc
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x7d005ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
xor ebx, ebx
push edi
push ebx
push ebx
mov edi, 0x7cf3f0c4
push 0x7cf3f0a0
push edi
xor ebp, ebp
call esi
test eax, eax
je 0x7d006014
push 2
pop ebp
push 1
push ebx
push 0x7cf3f088
push edi
call esi
test eax, eax
je 0x7d006026
or ebp, 1
mov eax, dword [0x7d04b77c]
cmp eax, 5
jne 0x7d006043
push ebx
push ebx
push 0x7cf44570
push 0x7cf444f0
call esi
mov dword [0x7d04b77c], eax
cmp eax, ebx
je 0x7d00604a
or ebp, 0x10
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x7d00610d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov dword [ebp - 4], 0x80004005
je 0x7d006172
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jbe 0x7d00616b
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call fcn.7d042358
mov edi, eax
pop ecx
test edi, edi
jne 0x7d006149
mov eax, 0x8007000e
jmp 0x7d006175
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x7d006162
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0xc]
mov dword [ebp - 4], eax
push edi
call fcn.7cf5aedf
pop ecx
jmp 0x7d006172
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7d007109
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov esi, ecx
push 0x3fd
push dword [esi + 4]
call ebx
mov ebp, eax
call fcn.7d00e572
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
push 0x18
push 0x40e
push ebp
mov dword [esi + 0x20], eax
call edi
push dword [esp + 0x10]
push 0
push 0x402
push ebp
call edi
push 0
push 0
push 0x408
push ebp
call edi
push 0x3fd
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x28]
lea edx, [esp + 0x14]
push edx
mov dword [esi + 0x30], esi
mov dword [ecx], eax
xor eax, eax
push eax
push ecx
push 0x7d00742c
push eax
push eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
mov dword [esi + 0x24], eax
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x7d008ba3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, ecx
je 0x7d008c09
mov eax, dword [esi]
lea ecx, [eax + 1]
push ecx
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 4]
push 0x50
sub eax, dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [edi + 0x34]
call ebx
push eax
push dword [ebp + 0xc]
push dword [edi + 0x34]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0x1c]
add dword [esi], eax
jmp 0x7d008c20
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [ebp + 0xc]
push dword [edi + 0x34]
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push dword [edi + 0x34]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push 2
push eax
push dword [edi + 0x34]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
xor eax, eax
push 0x15
push eax
push eax
push dword [esi]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [edi + 0x34]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x28]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push dword [ebp + 0x24]
add eax, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x1c]
add dword [esi], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [edi + 0x34]
call fcn.7d005fbf
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x7d00bde7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xffffffff
lea ebx, [esi + 0x14]
je 0x7d00be22
push dword [esi + 0x1c]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x7d00be1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7d00be75
mov ecx, esi
call fcn.7d00be7a
lea eax, [ebp - 0x24c]
push 0x104
push eax
push dword [0x7d04b780]
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
test eax, eax
je 0x7d00be75
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push ebx
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x24c]
push eax
push ecx
push eax
mov dword [ebp - 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x7d00be75
mov ecx, esi
call fcn.7d00be7a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7d00ce3e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.7d0086bf
test eax, eax
je 0x7d00ce84
cmp dword [esi + 4], 0x100
jne 0x7d00ce81
cmp dword [esi + 8], 0x1b
jne 0x7d00ce81
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x74]
test eax, eax
je 0x7d00ce81
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x7d00ce81
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
push 1
pop eax
pop edi
pop esi
ret 8

Function at 0x7d00d2c2
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x7d00d2d0
call fcn.7d00d4d6
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop esi
ret
Function at 0x7d00d2df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.7d041c90
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x7d00d2fc
mov dword [edi], ebx
mov ecx, esi
call fcn.7d00d286
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x7d00d3fe
mov ecx, esi
call fcn.7d00d67d
push 4
call dword [sym.imp.COMCTL32.dll_DPA_Create]
cmp eax, ebx
mov dword [esi + 0x228], eax
jne 0x7d00d333
mov dword [ebp - 8], 0x8007000e
jmp 0x7d00d3e5
cmp dword [esi + 0x220], ebx
mov dword [ebp - 4], ebx
jle 0x7d00d3e5
push dword [ebp - 4]
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0x1048
push 0x7cf44a58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7d00d3d0
cmp dword [ebp - 0x10], 1
jne 0x7d00d3d0
cmp word [ebp - 0x1078], ax
je 0x7d00d3d0
lea eax, [ebp - 0x1078]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
call fcn.7d042358
mov ebx, eax
pop ecx
test ebx, ebx
je 0x7d00d3d0
push edi
lea eax, [ebp - 0x1078]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToUnicode]
push ebx
push ParseURLA
push dword [esi + 0x228]
call dword [sym.imp.COMCTL32.dll_DPA_InsertPtr]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x220]
jl 0x7d00d342
mov edi, dword [ebp + 8]
mov ecx, esi
call fcn.7d00d4d6
test edi, edi
je 0x7d00d3fe
mov esi, dword [esi + 0x228]
test esi, esi
je 0x7d00d3fe
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x7d00d408
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1070
call fcn.7d041c90
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push esi
push edi
test eax, eax
mov esi, ecx
je 0x7d00d427
and dword [eax], 0
mov ecx, esi
call fcn.7d00d2c2
cmp dword [esi + 0x228], 0
jne 0x7d00d43f
push 1
pop eax
jmp 0x7d00d4d0
mov ecx, esi
call fcn.7d00d286
test eax, eax
jl 0x7d00d4d0
mov eax, dword [esi + 0x228]
xor edi, edi
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 8], eax
jle 0x7d00d4bb
push edi
lea eax, [ebp - 0x28]
push 0x7cf44a58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x228]
add esp, 0xc
lea ecx, [ebp - 0x1070]
mov eax, dword [eax + 4]
push 0x824
push ecx
mov eax, dword [eax + edi*4]
push eax
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToUnicode]
lea eax, [ebp - 0x1070]
push 0x1048
push eax
push 1
lea eax, [ebp - 0x28]
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x7d00d4b5
inc dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 8]
jl 0x7d00d45f
mov ecx, esi
call fcn.7d00d4d6
mov eax, dword [ebp + 8]
test eax, eax
je 0x7d00d4ce
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x7d00dc3d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
lea eax, [ebp - 0x88]
push 0x3f
mov edi, 0x4b0
mov esi, ecx
push eax
push edi
mov dword [ebp - 4], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x7d00dc7e
cmp word [ebp - 0x88], 0
jne 0x7d00dcb6
push 0x10
push 0x2760
push 0x2767
push dword [esi + 4]
push dword [0x7d04cdfc]
call sym.SHELL32.dll_ShellMessageBoxW
add esp, 0x14
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0
push 0x401
push dword [esi + 4]
call ebx
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x7d00dd76
lea eax, [ebp - 0x290]
push 0x104
mov edi, 0x4b2
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp word [ebp - 0x290], 0
mov dword [ebp - 8], eax
je 0x7d00dd3e
lea eax, [ebp - 0x290]
push eax
call sym.SHELL32.dll_PathIsExe
test eax, eax
je 0x7d00dd3e
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7d00dd76
push eax
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFindOnPathW]
test eax, eax
jne 0x7d00dd76
push 0x10
push 0x2760
push 0x2768
push dword [esi + 4]
push dword [0x7d04cdfc]
call sym.SHELL32.dll_ShellMessageBoxW
add esp, 0x14
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0
push 0x401
push dword [esi + 4]
call ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7d00e588
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov esi, 0x7cf34ad8
lea edi, [ebp - 0x14]
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
call esi
mov ebx, eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add eax, eax
mov dword [ebp - 8], 0x41
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x220]
mov ax, word [ebp - 8]
cmp dword [ebp + 8], 0xffffffff
mov word [ebp - 0x14], ax
je 0x7d00e602
lea eax, [ebp - 0x14]
push 0x100
push eax
call fcn.7cf8639b
test eax, eax
jne 0x7d00e64b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x7d00e64b
cmp dword [ebp + 8], 0xffffffff
je 0x7d00e61c
cmp dword [ebp + 8], eax
jne 0x7d00e64b
cmp dword [ebp - 4], 0
je 0x7d00e631
push dword [ebp + 0xc]
push esi
call edi
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add esi, dword [ebp - 0x18]
mov ax, word [ebp - 8]
inc dword [ebp - 4]
push dword [ebp + 0x10]
mov word [esi], ax
inc esi
inc esi
push esi
call edi
add dword [ebp - 4], ebx
lea eax, [ebx + ebx]
add esi, eax
inc dword [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x7d00e5e2
cmp word [ebp - 0x220], 0
jne 0x7d00e664
push 1
pop eax
jmp 0x7d00e679
push dword [ebp + 0x18]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x7d00ebac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 0x147
push edi
call esi
push dword [ebp + 0x18]
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp + 0xc], 0xffffffff
je 0x7d00ec52
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push 0x148
push edi
call esi
cmp eax, 0xffffffff
jne 0x7d00ec01
mov word [ebp - 0x208], bx
push ebx
push dword [ebp + 0xc]
push 0x150
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x7d00ec4e
cmp esi, 0xffffffff
je 0x7d00ec4e
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jne 0x7d00ec34
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x7d00ec4e
cmp dword [ebp + 0x10], ebx
jne 0x7d00ec3f
lea esi, [ebp - 0x208]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x7d00ec52
or dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x7d00f2a4
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
test byte [0x7d04e8c0], 2
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
jne 0x7d00f37d
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
mov ecx, 0xff
sub ecx, eax
test ecx, ecx
jle 0x7d00f39d
mov esi, str.WINDOWSPIF
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call edi
push 0x5c
push esi
mov dword [0x7d04b860], eax
call fcn.7d017a75
mov ecx, dword [0x7d04b860]
lea edx, [ecx*2 + 0x7d04b866]
cmp eax, edx
jne 0x7d00f305
dec ecx
mov dword [0x7d04b860], ecx
lea eax, [ecx*2 + str.WINDOWSPIF]
push 0x7cf45138
push eax
mov dword [0x7d04b864], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add dword [0x7d04b860], 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x7d00f34b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x7d00f36f
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x7d00f354
movsx edi, al
and edi, 0x10
shr edi, 4
test edi, edi
je 0x7d00f36f
mov eax, dword [0x7d04b860]
inc dword [0x7d04b860]
mov word [eax*2 + str.WINDOWSPIF], 0x5c
jmp 0x7d00f376
sub dword [0x7d04b860], 3
or byte [0x7d04e8c0], 2
test ebx, ebx
je 0x7d00f39d
mov eax, dword [0x7d04b860]
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [eax*2 + str.WINDOWSPIF]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
pop esi
pop ebx
ret 4

Function at 0x7d00f3a3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x800]
push esi
push eax
mov edi, 0x7cf3339c
push dword [ebp + 8]
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x7d00f3f9
test eax, eax
je 0x7d00f3f9
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x7d00f3f7
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x7d00f3f9
mov ebx, edi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x7d00f402
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x7d04e8c0], 1
jne 0x7d00f519
xor al, al
push edi
push esi
cmp al, 0xb
push ebx
jae 0x7d00f4e9
mov esi, 0x7cf45064
mov ebx, 0x1000
mov edi, 0x7cf44bd8
mov eax, dword [esi - 4]
mov edx, dword [esi]
test dl, 5
mov eax, dword [eax]
je 0x7d00f481
test dl, 4
je 0x7d00f450
mov ecx, dword [esi + 4]
and eax, ecx
test ebx, edx
je 0x7d00f450
xor eax, ecx
push edi
push eax
push dword [esi - 8]
push dword [esi - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi]
test cl, 4
je 0x7d00f4c8
test eax, eax
je 0x7d00f46c
mov eax, dword [esi + 4]
test ebx, ecx
je 0x7d00f473
xor eax, dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi - 4]
not ecx
and ecx, dword [edx]
or eax, ecx
jmp 0x7d00f4c8
test dl, 2
je 0x7d00f4cd
push eax
lea eax, [ebp - 0x208]
push 0x7cf44ea8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push 0x104
push eax
lea eax, [ebp - 0x208]
push eax
push dword [esi - 8]
push dword [esi - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x206]
push eax
call fcn.7d017bab
mov ecx, dword [esi - 4]
mov dword [ecx], eax
add esi, 0x14
push 0x14
mov eax, esi
pop ecx
sub eax, 0x7cf45058
sub eax, 0xc
cdq
idiv ecx
cmp eax, 0xb
jb 0x7d00f434
push 0x5c
mov esi, str.COMSPEC
push 0x10
push esi
call fcn.7d00f3a3
push eax
call fcn.7d017a75
test eax, eax
je 0x7d00f50f
add eax, 2
push 0xd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
or byte [0x7d04e8c0], 1
pop ebx
pop esi
pop edi
leave
ret
Function at 0x7d010444
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp dword [esi + 0x40], 0xffffffff
lea ebx, [esi + 0x14]
mov dword [esp + 0x10], edi
mov dword [ebx], edi
jne 0x7d01048d
mov ecx, dword [esi + 0x10]
test cl, 0x40
jne 0x7d01048d
test ch, 0x20
mov eax, str._DEFAULT.PIF
jne 0x7d010473
lea eax, [esi + 0x48]
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
jne 0x7d0104a4
push dword [esp + 0x1c]
push esi
call fcn.7d00f51b
jmp 0x7d0105ca
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push eax
call ebp
cmp eax, 0x171
jb 0x7d0105bd
or byte [esi + 0x11], 1
push eax
push esi
call fcn.7d01037e
cmp eax, 0xffffffff
je 0x7d0105b9
push edi
push edi
push edi
push dword [esi + 0x40]
call ebp
push edi
push ebx
push dword [ebx]
push dword [esi + 0x1c]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
and dword [esi + 0x10], 0xfffffffe
test byte [esi + 0x11], 0x20
je 0x7d010529
mov eax, dword [esi + 0x1c]
push edi
inc eax
push edi
inc eax
push 0x1e
push eax
mov eax, dword [esi + 0x250]
push 0xffffffffffffffff
lea eax, [esi + eax*2 + 0x258]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 0x1c]
push 0x3f
add eax, 0x24
push eax
lea eax, [esi + 0x258]
push eax
call fcn.7d018229
push edi
push edi
push str.WINDOWS_VMM_4.0
push esi
call fcn.7d010b81
test eax, eax
jne 0x7d01053f
call fcn.7d00f402
push edi
mov ebx, str.WINDOWS_NT__4.0
push edi
push ebx
push esi
call fcn.7d010b81
test eax, eax
jne 0x7d01055e
push 0x68c
push edi
push ebx
push esi
call fcn.7d010984
push edi
mov ebx, str.WINDOWS_NT__3.1
push edi
push ebx
push esi
call fcn.7d010b81
test eax, eax
jne 0x7d0105a8
push 0x8e
push edi
push ebx
push esi
call fcn.7d010984
push edi
push edi
push ebx
push esi
call fcn.7d010b81
mov ebx, eax
cmp ebx, edi
je 0x7d0105a8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebx + 0xc]
push 0x7cf45168
push eax
call ebp
add ebx, 0x4c
push 0x7cf45144
push ebx
call ebp
cmp dword [esp + 0x1c], edi
jne 0x7d0105b1
dec dword [esi + 0x18]
mov dword [esp + 0x10], 1
and byte [esi + 0x11], 0xfe
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x40], 0xffffffff
mov eax, dword [esi + 0x10]
test al, 0x20
jne 0x7d0105d6
and al, 0xbf
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8