joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4645c8]
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.0042a350
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.0042a8b5
mov esp, ebp
pop ebp
ret

Function at 0x445f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4645c8]
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.0042a350
add esp, 0xc
mov dword [ebp - 0x25c], 0xffffffff
lea ecx, [ebp - 0x258]
push ecx
push 0x45b068
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x445fa0
jmp 0x445fb7
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 0x445fdf
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.0042a8b5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4645c8]
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.0042a350
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.0042a350
add esp, 0xc
mov dword [ebp - 0x424], 0
jmp 0x446320
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x218]
jae 0x4463ea
mov ecx, dword [ebp - 0x424]
push ecx
push str.c:_test_d.exe
push 0x103
lea edx, [ebp - 0x210]
push edx
call fcn.0042aa83
add esp, 0x10
mov eax, dword [ebp - 0x424]
push eax
push 0x45acbc
push 0x103
lea ecx, [ebp - 0x420]
push ecx
call fcn.0042aa83
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 0x4463e5
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 0x446311
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x446460
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x4645c8]
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 0x4464ab
push str.Error_at_WSAStartup___n
call fcn.0042bdd5
add esp, 4
mov eax, 1
jmp 0x44655b
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 0x4464e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_at_socket__:__ld_n
call fcn.0042bdd5
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x44655b
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 0x446549
push str.bind___failed._n
call fcn.0042bdd5
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 0x44655b
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.0042a8b5
mov esp, ebp
pop ebp
ret

Function at 0x446570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x45a60c
push str.e:KSMCore.log
call fcn.0042fc39
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4465b9
push str.open_file_success
call fcn.0042bdd5
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.0042a958
add esp, 4
jmp 0x4465cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_file_fail___d
call fcn.0042bdd5
add esp, 8
push 0x114
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.0042a350
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 0x446621
cmp dword [ebp - 0x124], 5
jne 0x446615
cmp dword [ebp - 0x120], 1
jae 0x446621
mov dword [ebp - 0x12c], 0
jmp 0x44662b
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.0042bdd5
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x446672
push str.The_system_meets_the_requirements._n
call fcn.0042bdd5
add esp, 4
jmp 0x44667f
push str.The_system_does_not_meet_the_requirements._n
call fcn.0042bdd5
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x446690
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00440fc0
mov eax, dword [0x4645c8]
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.0042a350
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 0x446850
mov eax, dword [ebp - 0x1010]
push eax
call fcn.00429e2e
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 0x44683e
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 0x4467a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
jmp 0x44685c
mov eax, 1
test eax, eax
je 0x446817
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 0x44680b
jmp 0x446817
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.0042acac
add esp, 4
mov dword [ebp - 0x1020], 0
jmp 0x44684e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
jmp 0x44685c
jmp 0x44685c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x1020], 0
je 0x44688a
mov edx, dword [ebp - 0x1020]
mov dword [ebp - 0x102c], edx
mov eax, dword [ebp - 0x102c]
push eax
call fcn.0042acac
add esp, 4
mov dword [ebp - 0x1020], 0
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x4469b0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4469c4
or eax, 0xffffffff
jmp 0x446b1f
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 0x45b384
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041f0f0
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 0x446a4f
cmp dword [ebp - 4], 0
jne 0x446a97
cmp dword [ebp - 8], 0
je 0x446a68
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 0x446a81
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 0x45b390
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
jmp 0x446b1f
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x45b39c
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 0x45b3a8
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 0x45b3ac
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 8], 0
je 0x446b04
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 0x446b1d
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 0x446b30
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push 1
push 0x45b0dc
call fcn.00445bd0
add esp, 8
push 1
push str.SeAssignPrimaryTokenPrivilege
call fcn.00445bd0
add esp, 8
push 1
push str.SeIncreaseQuotaPrivilege
call fcn.00445bd0
add esp, 8
push 1
push str.SeTcbPrivilege
call fcn.00445bd0
add esp, 8
push str.finding_explore.exe_n
call fcn.0042a9d4
add esp, 4
push 0x45b1bc
call fcn.00445da0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x446ce7
push str.open_token_of_explore.exe_n
call fcn.0042a9d4
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 0x446cdd
cmp dword [ebp - 0xc], 0
je 0x446cdd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x446bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImpersonateLoggedOnUser_failed_with__d_n
call fcn.0042a9d4
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.0042a350
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.0042a350
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 0x446c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_failed_with__d_n
call fcn.0042a9d4
add esp, 8
xor eax, eax
jmp 0x446cee
push str.CreateProcessAsUserW_n
call fcn.0042a9d4
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 0x446cb2
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 0x446cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUserW_failed_with__d_n
call fcn.0042a9d4
add esp, 8
push str.CreateProcessAsUserW_finished_n
call fcn.0042a9d4
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.0042ef7c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x446d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0042a350
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 1
push 0x45aff0
call fcn.00445bd0
add esp, 8
push 0x45b01c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x446e2b
push str.ZwSetSystemTime
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x446e21
mov word [ebp - 0x224], 0x2f0f
mov word [ebp - 0x21e], 1
mov word [ebp - 0x21c], 1
mov word [ebp - 0x216], 1
mov word [ebp - 0x21a], 1
mov word [ebp - 0x222], 1
mov word [ebp - 0x218], 1
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push 0
lea ecx, [ebp - 0x238]
push ecx
call dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
push edx
push str.mysetsystemtime0x_08x_n
call fcn.0042a9d4
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret

Function at 0x446ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], str.e:_test_abcd.exe
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0042a350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
jmp 0x446f40
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0x64
jge 0x446f66
push 0x103
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
push 0
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
jmp 0x446f31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x45afac
call fcn.0042a9d4
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
jmp 0x446fa7
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 0x64
jge 0x446fe0
push 0x25
mov eax, dword [ebp - 0x214]
push eax
call fcn.00403c60
add esp, 8
test eax, eax
je 0x446fde
push 0x103
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x446f98
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x45afb4
call fcn.0042a9d4
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x447200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4645c8]
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.0042a350
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 0x44725d
lea edx, [ebp - 0x808]
push edx
push str.CSIDL_COMMON_APPDATA_s_n
call fcn.0042a9d4
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 0x447288
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_COMMON_TEMPLATES_s_n
call fcn.0042a9d4
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 0x4472de
push 0x5c
lea eax, [ebp - 0x808]
push eax
call fcn.00403c80
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x4472de
mov ecx, dword [ebp - 0x80c]
mov word [ecx], 0
lea edx, [ebp - 0x808]
push edx
push str.document_and_settings_s_n
call fcn.0042a9d4
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 0x447393
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_APPDATA_s_n
call fcn.0042a9d4
add esp, 8
push 0x5c
lea edx, [ebp - 0x808]
push edx
call fcn.00403c80
add esp, 8
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x447393
mov eax, dword [ebp - 0x810]
mov word [eax], 0
push str.Local_Settings
lea ecx, [ebp - 0x808]
push ecx
call fcn.0042ac66
add esp, 8
lea edx, [ebp - 0x808]
push edx
push str.local_settings_s_n
call fcn.0042a9d4
add esp, 8
mov eax, dword [ebp - 0x810]
mov word [eax], 0
push str.Local
lea ecx, [ebp - 0x808]
push ecx
call fcn.0042ac66
add esp, 8
lea edx, [ebp - 0x808]
push edx
push str.local_s_n
call fcn.0042a9d4
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 0x4473be
lea ecx, [ebp - 0x808]
push ecx
push str.CSIDL_TEMPLATES_s_n
call fcn.0042a9d4
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 0x4473e9
lea eax, [ebp - 0x808]
push eax
push str.CSIDL_COMMON_DOCUMENTS_s_n
call fcn.0042a9d4
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x447690
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x464], 0xffffffff
mov word [ebp - 0x460], 0
push 0x206
push 0
lea eax, [ebp - 0x45e]
push eax
call fcn.0042a350
add esp, 0xc
push str.c:windows_system32.
push 0x103
lea ecx, [ebp - 0x460]
push ecx
call fcn.0042aa83
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
je 0x4477a0
mov word [ebp - 0x670], 0
push 0x206
push 0
lea ecx, [ebp - 0x66e]
push ecx
call fcn.0042a350
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
push str.c:windows_system32_s
push 0x103
lea eax, [ebp - 0x670]
push eax
call fcn.0042aa83
add esp, 0x10
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
and edx, 0x10
jne 0x447781
cmp dword [ebp - 0x468], 0xffffffff
je 0x447781
lea eax, [ebp - 0x670]
push eax
call fcn.00446690
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44779b
jmp 0x4477a0
jmp 0x4476ff
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret
Function at 0x447840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4645c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0x27
push 2
lea eax, [ebp - 4]
push eax
push 9
push str.RELAX
call fcn.0044e540
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x459c14
call fcn.0042a9d4
add esp, 8
push 0x459c2c
push str.e:_test.log
call fcn.0042fc39
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x447978
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0042c211
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0042fde4
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042c211
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.00429e2e
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042a350
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042c83f
add esp, 0x10
mov byte [ebp - 0x20], 0x27
mov byte [ebp - 0x1f], 0x52
mov byte [ebp - 0x1e], 0x45
mov byte [ebp - 0x1d], 0x4c
mov byte [ebp - 0x1c], 0x41
mov byte [ebp - 0x1b], 0x58
mov byte [ebp - 0x1a], 0x85
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0x27
push 9
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044e540
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
push str.npos___d_n
call fcn.0042a9d4
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0042acac
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0042a958
add esp, 4
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a8b5
mov esp, ebp
pop ebp
ret