joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442850
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
jne 0x4428e8
xor eax, eax
jmp 0x442ae9
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x442a8d
cmp dword [ebp - 0x23c], 0
je 0x44292d
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x240], 0
je 0x44294d
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00429a56
add esp, 8
test eax, eax
je 0x442969
jmp 0x442a72
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x44298c
mov eax, dword [ebp - 0x248]
cmp eax, dword [ebp + 0xc]
je 0x442991
jmp 0x442a72
mov ecx, dword [ebp - 0x230]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x4429b9
jmp 0x442a72
lea edx, [ebp - 0x240]
push edx
push 0xf01ff
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4429db
jmp 0x442a72
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x254]
push edx
push 1
mov eax, dword [ebp - 0x240]
push eax
call fcn.00442e70
add esp, 0x10
test eax, eax
jne 0x442a14
jmp 0x442a72
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
push edx
call fcn.004430a0
add esp, 4
test eax, eax
jne 0x442a59
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
mov dword [ebp - 0x244], 1
mov edx, dword [ebp - 0x254]
push edx
call fcn.00442e50
add esp, 4
mov dword [ebp - 0x254], 0
jmp 0x442a8d
mov eax, dword [ebp - 0x254]
push eax
call fcn.00442e50
add esp, 4
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44290d
cmp dword [ebp - 0x23c], 0
je 0x442aad
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x240], 0
je 0x442acd
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x250], 0xffffffff
je 0x442ae3
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x442d50
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x442d62
cmp dword [ebp + 0xc], 0
jne 0x442d69
xor eax, eax
jmp 0x442e44
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x442e19
cmp dword [ebp - 4], 0
je 0x442dce
mov eax, dword [ebp - 4]
push eax
call fcn.00429021
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x442de7
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00429021
add esp, 4
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x442df4
jmp 0x442e19
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042c2e7
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.0042c2e7
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x442d8c
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00429021
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x442e33
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x442e41
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x443b60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004288a0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x244], eax
jmp 0x443be5
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x443c22
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00429a56
add esp, 8
test eax, eax
jne 0x443c20
mov ecx, dword [ebp - 0x238]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
jmp 0x443c22
jmp 0x443bcf
cmp dword [ebp - 4], 0xffffffff
je 0x443c39
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x443ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004288a0
add esp, 0xc
push 0
push 0x28
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret

Function at 0x443d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea eax, [ebp - 0x254]
push eax
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x25c], 0xffffffff
lea ecx, [ebp - 0x258]
push ecx
push 0x4571a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x443d60
jmp 0x443d77
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x25c], 0xffffffff
push str.c:ksscore.dll_
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443d9f
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x260]
add eax, 1
mov dword [ebp - 0x260], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret

Function at 0x444060
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0x3e8
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x214], str.c:_test.exe
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x424], 0
jmp 0x4440e0
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x218]
jae 0x4441aa
mov ecx, dword [ebp - 0x424]
push ecx
push str.c:_test_d.exe
push 0x103
lea edx, [ebp - 0x210]
push edx
call fcn.004296aa
add esp, 0x10
mov eax, dword [ebp - 0x424]
push eax
push 0x456df4
push 0x103
lea ecx, [ebp - 0x420]
push ecx
call fcn.004296aa
add esp, 0x10
push 1
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x428]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4441a5
push 0x208
lea edx, [ebp - 0x210]
push edx
push 1
push 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4440d1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x444220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x808], 0
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.004288a0
add esp, 0xc
push 0
push 0x23
lea ecx, [ebp - 0x808]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44427d
lea edx, [ebp - 0x808]
push edx
push str.CSIDL_COMMON_APPDATA_s_n
call fcn.0042a2a2
add esp, 8
push 0
push 0x2d
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4442a8
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_COMMON_TEMPLATES_s_n
call fcn.0042a2a2
add esp, 8
push 0
push 0x28
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4442fe
push 0x5c
lea eax, [ebp - 0x808]
push eax
call fcn.004267c0
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x4442fe
mov ecx, dword [ebp - 0x80c]
mov word [ecx], 0
lea edx, [ebp - 0x808]
push edx
push str.document_and_settings_s_n
call fcn.0042a2a2
add esp, 8
push 0
push 0x1a
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4443b3
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_APPDATA_s_n
call fcn.0042a2a2
add esp, 8
push 0x5c
lea edx, [ebp - 0x808]
push edx
call fcn.004267c0
add esp, 8
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x4443b3
mov eax, dword [ebp - 0x810]
mov word [eax], 0
push str.Local_Settings
lea ecx, [ebp - 0x808]
push ecx
call fcn.0042891a
add esp, 8
lea edx, [ebp - 0x808]
push edx
push str.local_settings_s_n
call fcn.0042a2a2
add esp, 8
mov eax, dword [ebp - 0x810]
mov word [eax], 0
push str.Local
lea ecx, [ebp - 0x808]
push ecx
call fcn.0042891a
add esp, 8
lea edx, [ebp - 0x808]
push edx
push str.local_s_n
call fcn.0042a2a2
add esp, 8
push 0
push 0x15
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4443de
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_TEMPLATES_s_n
call fcn.0042a2a2
add esp, 8
push 0
push 0x2e
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x444409
lea eax, [ebp - 0x808]
push eax
push str.CSIDL_COMMON_DOCUMENTS_s_n
call fcn.0042a2a2
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x444420
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x44446b
push str.Error_at_WSAStartup___n
call fcn.00429eed
add esp, 4
mov eax, 1
jmp 0x44451b
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4444a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_at_socket__:__ld_n
call fcn.00429eed
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x44451b
mov word [ebp - 0x1a8], 2
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1a4], eax
mov cx, word [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a6], ax
push 0x10
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x444509
push str.bind___failed._n
call fcn.00429eed
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x44451b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret

Function at 0x444530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x456744
push str.e:KSMCore.log
call fcn.0042d41c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x444579
push str.open_file_success
call fcn.00429eed
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.0042aa90
add esp, 4
jmp 0x44458d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_file_fail___d
call fcn.00429eed
add esp, 8
push 0x114
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 5
ja 0x4445e1
cmp dword [ebp - 0x124], 5
jne 0x4445d5
cmp dword [ebp - 0x120], 1
jae 0x4445e1
mov dword [ebp - 0x12c], 0
jmp 0x4445eb
mov dword [ebp - 0x12c], 1
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push str.major_d_minor_d_id_d_build_d_n
call fcn.00429eed
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x444632
push str.The_system_meets_the_requirements._n
call fcn.00429eed
add esp, 4
jmp 0x44463f
push str.The_system_does_not_meet_the_requirements._n
call fcn.00429eed
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x444650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0043e100
mov eax, dword [0x4605d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1010], 0
mov word [ebp - 0x1008], 0
push 0xffe
push 0
lea eax, [ebp - 0x1006]
push eax
call fcn.004288a0
add esp, 0xc
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x444810
mov eax, dword [ebp - 0x1010]
push eax
call fcn.0042837a
add esp, 4
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
mov edx, dword [ebp - 0x1020]
push edx
mov eax, dword [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4447fe
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1018]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x1020]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x444765
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
jmp 0x44481c
mov eax, 1
test eax, eax
je 0x4447d7
mov ecx, dword [ebp - 0x1018]
mov edx, dword [ecx]
shr edx, 0x10
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x1018]
mov edx, dword [ecx]
and edx, 0xffff
movzx eax, dx
push eax
push str.StringFileInfo_04x_04xOriginalFileName
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x1010]
push edx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x1020]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4447cb
jmp 0x4447d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 0x1028], eax
mov ecx, dword [ebp - 0x1028]
push ecx
call fcn.00428c38
add esp, 4
mov dword [ebp - 0x1020], 0
jmp 0x44480e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
jmp 0x44481c
jmp 0x44481c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x1020], 0
je 0x44484a
mov edx, dword [ebp - 0x1020]
mov dword [ebp - 0x102c], edx
mov eax, dword [ebp - 0x102c]
push eax
call fcn.00428c38
add esp, 4
mov dword [ebp - 0x1020], 0
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c24
mov esp, ebp
pop ebp
ret
Function at 0x444970
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x444984
or eax, 0xffffffff
jmp 0x444adf
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0x4574bc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041c860
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
shl eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x444a0f
cmp dword [ebp - 4], 0
jne 0x444a57
cmp dword [ebp - 8], 0
je 0x444a28
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x444a41
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
push ecx
push 0x4574c8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
jmp 0x444adf
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x4574d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x4574e0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, dword [ebp - 4]
push ecx
push 0x4574e4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 8], 0
je 0x444ac4
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x444add
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x444af0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push 1
push 0x457214
call fcn.00443a70
add esp, 8
push 1
push str.SeAssignPrimaryTokenPrivilege
call fcn.00443a70
add esp, 8
push 1
push str.SeIncreaseQuotaPrivilege
call fcn.00443a70
add esp, 8
push 1
push str.SeTcbPrivilege
call fcn.00443a70
add esp, 8
push str.finding_explore.exe_n
call fcn.0042a2a2
add esp, 4
push 0x4572f4
call fcn.00443b60
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x444ca7
push str.open_token_of_explore.exe_n
call fcn.0042a2a2
add esp, 4
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x444c9d
cmp dword [ebp - 0xc], 0
je 0x444c9d
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x444bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImpersonateLoggedOnUser_failed_with__d_n
call fcn.0042a2a2
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.winsta0default
push 0x10
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004288a0
add esp, 0xc
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 1
push 2
push 0
push 0xf01ff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x444c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_failed_with__d_n
call fcn.0042a2a2
add esp, 8
xor eax, eax
jmp 0x444cae
push str.CreateProcessAsUserW_n
call fcn.0042a2a2
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push str.c:windows_notepad.exe
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x444c72
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x444c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUserW_failed_with__d_n
call fcn.0042a2a2
add esp, 8
push str.CreateProcessAsUserW_finished_n
call fcn.0042a2a2
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042d9e7
xor eax, eax
mov esp, ebp
pop ebp
ret