joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b91d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4b9362
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b934c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4b921f
lea ebp, [eax + 0xe]
jmp 0x4b922b
cmp eax, 0x17
jne 0x4b92d9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4b92d9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4b92d9
cmp eax, ebp
jb 0x4b92d9
push 0x20
call dword [0x55d300]
mov esi, eax
add esp, 4
test esi, esi
je 0x4b9341
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x55d300]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4b9330
push ebp
push dword [edi + 0x18]
push eax
call fcn.004e38c0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4b92c5
push eax
call dword [0x55d30c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4b9316
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4b92d5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4b9212
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4b92f8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4b9348
push ebx
call fcn.004b9190
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x55d304]
push esi
call dword [0x55d304]
add esp, 8
jmp 0x4b92e8
push esi
mov ebp, 8
call dword [0x55d304]
add esp, 4
jmp 0x4b92e8
mov ebp, 8
jmp 0x4b92e8
test ebx, ebx
jne 0x4b9358
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4bdd50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x198]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4bdd9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ac850
add esp, 0xc
push dword [esp + 0x18]
push ebx
push 0x52b434
push dword [esi]
call fcn.004bd660
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4bdee0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x130]
jne 0x4be02b
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x4bdf17
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf22
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf2d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf60
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf6a
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf74
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf7e
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf89
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4bdf94
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004bd770
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x198]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4bdfea
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004ac850
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.004bddc0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x198]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4be028
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004ac850
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4cbc50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55d910]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004e7022
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4cbcb5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4cbcb5
lea eax, [esp]
push eax
call dword [0x55d30c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d9122
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004d9122
add esp, 0x108
ret
Function at 0x4de9dd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x50597e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55d910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e8a8e
mov dword [ebp - 0x14], eax
cmp dword [0x567bac], esi
jne 0x505a71
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5059fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x505b51
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x505b51
push 0x53aa98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x505b51
push eax
call ebx
push 0x53aaa4
push edi
mov dword [0x567bac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x567bb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x567bb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x567bbc], eax
test eax, eax
je 0x505a6e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x567bb8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x505a96
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x505a89
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x505aab
push 4
pop eax
jmp 0x505b53
cmp dword [ebp - 0x14], esi
je 0x505aab
push dword [0x567bac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x505a90
mov eax, dword [0x567bb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x505b09
cmp dword [0x567bbc], edi
je 0x505b09
push eax
call ebx
push dword [0x567bbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x505b09
test eax, eax
je 0x505b09
call ecx
test eax, eax
je 0x505afe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x505afe
test byte [ebp - 8], 1
jne 0x505b09
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x505b39
mov eax, dword [0x567bb0]
cmp eax, edi
je 0x505b36
push eax
call ebx
test eax, eax
je 0x505b36
call eax
mov esi, eax
test esi, esi
je 0x505b36
mov eax, dword [0x567bb4]
cmp eax, edi
je 0x505b36
push eax
call ebx
test eax, eax
je 0x505b36
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x567bac]
call ebx
test eax, eax
je 0x505b51
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x505b53
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9122
mov esp, ebp
pop ebp
ret
Function at 0x401190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011dd
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.AltDefaultUserName
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x84]
call fcn.004192a0
push str.HomeDrive
call fcn.00405cb6
add esp, 4
lea ecx, [esi + 0x88]
push eax
call fcn.004192a0
mov ecx, esi
call fcn.00401220
mov eax, 1
pop esi
add esp, 0x10c
ret

Function at 0x401220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
push eax
push 1
push str.Start_Page
push str.SoftWareMicrosoftInternet_ExplorerMain
push 0x80000003
call fcn.00401df0
mov ecx, esi
call fcn.00401360
mov ecx, esi
call fcn.004027c0
mov ecx, esi
call fcn.004016c0
push 1
push 4
push str.871C5380_42A0_1069_A2EA_08002B30309D
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel
push 0x80000003
mov ecx, esi
call fcn.00402120
lea eax, [esi + 0x88]
lea ecx, [esp + 4]
push eax
call fcn.00418ed8
push str.Documents_and_Settings_
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.004194f3
lea ecx, [esi + 0x84]
push ecx
lea ecx, [esp + 8]
call fcn.0041952f
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.Internet_Explorer.lnk
call fcn.004191d1
push ecx
lea eax, [esp + 0xc]
mov edx, esp
mov dword [esp + 0x14], esp
push 0x427190
push eax
push edx
mov byte [esp + 0x2c], 1
call fcn.004193ac
mov ecx, esi
mov byte [esp + 0x20], 0
call fcn.00402590
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Internet_Explorer.lnk
call fcn.004191d1
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
lea edx, [esp + 0x10]
push 0x427180
push edx
push ecx
mov byte [esp + 0x30], 2
call fcn.004193ac
mov ecx, esi
mov byte [esp + 0x24], 0
call fcn.004017d0
mov ecx, esi
call fcn.004029b0
mov ecx, esi
call fcn.00403240
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00419163
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret
Function at 0x4016c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x427ec4]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
lea eax, [esi + 0x88]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 1
call fcn.00419250
lea ecx, [esp + 8]
push str.Documents_and_Settings_
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004193ac
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.00419250
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00419163
lea eax, [esi + 0x84]
lea ecx, [esp + 8]
push eax
call fcn.00419250
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.0041952f
push str.Application_DataMicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 8]
call fcn.004194f3
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x427408
call fcn.004191d1
push 0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x30], 3
call fcn.00418ed8
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.004017d0
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.00419163
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00419163
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x402590
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e5b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x238]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x234], 1
call fcn.00418ed8
lea ecx, [esp + 0x23c]
mov byte [esp + 0x230], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.0041952f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x238]
push edx
call fcn.00419250
push 0x10000000
push ecx
lea eax, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00418ed8
mov ecx, esi
call fcn.00403150
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x238]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40275b
lea eax, [esp + 0xc]
push eax
push 0x421ed8
push 1
push 0
push 0x421ec8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402715
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x421ee8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x402715
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x8c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
push 0x4275f8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edi, [esi + 0x78]
push str.IEXPLORE.exe
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004193ac
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x238], 3
call dword [edx + 0x50]
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call fcn.00419163
mov eax, dword [esp + 0xc]
mov edi, dword [edi]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x238]
push 1
push eax
call ebp
push 0x80000000
push ecx
lea edx, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00418ed8
mov ecx, esi
call fcn.00403150
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.00419163
lea ecx, [esp + 0x238]
mov byte [esp + 0x230], 0
call fcn.00419163
lea ecx, [esp + 0x23c]
mov dword [esp + 0x230], 0xffffffff
call fcn.00419163
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x228
ret 8
Function at 0x4027c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e5d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov dword [esp + 0x18], ecx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.004196c1
push 0
push 0x1002
push str.C:1.txt
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call fcn.00419736
mov eax, dword [0x427ec4]
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.lnkfile
push 0x80000000
mov byte [esp + 0x54], 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x1e
call ebp
test eax, eax
jne 0x40284d
push 0x427674
jmp 0x402852
push 0x427668
lea ecx, [esp + 0x28]
call fcn.004198a9
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
call fcn.00419547
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.IsShortcut
push ecx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
jne 0x4028af
push 0x427650
lea ecx, [esp + 0x28]
call fcn.004198a9
mov edx, dword [esp + 0x10]
push str.IsShortcut
push edx
xor edi, edi
call ebx
jmp 0x4028bd
push 0x427644
lea ecx, [esp + 0x28]
call fcn.004198a9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x1e
push ecx
push 0xf003f
push 0
push str.piffile
push 0x80000000
call ebp
test eax, eax
jne 0x4028f3
push 0x42762c
jmp 0x4028f8
push 0x427620
lea ecx, [esp + 0x28]
call fcn.004198a9
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
push 0x1e
call fcn.00419547
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.IsShortcut
push ecx
call esi
mov esi, eax
test esi, esi
jne 0x402947
push 0x427650
lea ecx, [esp + 0x28]
call fcn.004198a9
mov edx, dword [esp + 0x10]
push str.IsShortcut
push edx
call ebx
jmp 0x402955
push 0x427644
lea ecx, [esp + 0x28]
call fcn.004198a9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x402968
test esi, esi
jne 0x402973
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x70], 1
lea ecx, [esp + 0x24]
call fcn.00419a66
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0
call fcn.00419163
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.004196f3
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x402ef0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, ecx
push 0x10000000
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.004191d1
mov ecx, edi
call fcn.00403150
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push esi
call ebx
push esi
lea ecx, [esp + 0x10]
call fcn.004191d1
push 0
mov dword [esp + 0x230], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x403026
lea eax, [esp + 0x14]
push eax
push 0x421ed8
push 1
push 0
push 0x421ec8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402fee
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x421ee8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x402fee
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x402fee
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x8c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
push esi
call ebx
push 0x80000000
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.004191d1
mov ecx, edi
call fcn.00403150
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00419163
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret 4
Function at 0x403060
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x8c0
push esi
push edi
push 2
lea eax, [esp + 0xcc]
push 0x400
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [esp + 0x8d0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xd0]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, dword [esp + 0x8cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x4dc]
push 4
push ecx
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea edx, [esp + 0xc8]
push 0
push edx
push 0
push 0
push 4
lea eax, [esp + 0x4dc]
push 4
push eax
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea ecx, [esp + 0x8cc]
call fcn.00419163
pop edi
pop esi
add esp, 0x8c0
ret 8