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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x45efa5
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0048c840
add esp, 0xc
mov ebx, str._ALLUSERSPROFILE_
push ebx
xor ecx, ecx
call fcn.00407c90
or edi, 0xffffffff
cmp eax, edi
je 0x45efa8
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0045f472
pop ecx
test eax, eax
pop ecx
jne 0x45f0b8
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ebx, str._APPDATA_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
jne 0x45ef8a
mov ebx, str._TEMP_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
jne 0x45ef8a
mov ebx, str._SYSTEM_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
je 0x45eff6
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x45efa1
jmp 0x45f0b8
mov ebx, str._WINDOWS_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
je 0x45f01b
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x45efed
mov ebx, str._CUR_MODULE_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
je 0x45f03d
lea eax, [ebp - 0x210]
push eax
call fcn.0045f3cb
jmp 0x45ef98
mov ebx, str._CUR_EXE_MODULE_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
je 0x45f06c
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45efa1
jmp 0x45f0ab
mov ebx, str._CUR_DIR_
push ebx
xor ecx, ecx
call fcn.00407c90
cmp eax, edi
je 0x45efa1
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0048c840
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call fcn.0045ade1
push 0x3f
xor ecx, ecx
call fcn.0040d032
mov ebx, eax
cmp ebx, edi
je 0x45f14a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00492122
pop ecx
jmp 0x45f13b
and word [ebp + 8], 0
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0049212f
and eax, 0x8000000f
jns 0x45f101
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp + 8]
push 0x4c35d8
push eax
call fcn.00460753
movzx edi, word [ebp + 8]
add esp, 0xc
test ebx, ebx
jl 0x45f159
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp ebx, eax
mov dword [ebp - 4], eax
jge 0x45f159
call fcn.00433e19
mov word [eax + ebx*2], di
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00406080
inc ebx
mov ecx, ebx
mov eax, esi
call fcn.004607ce
cmp ax, 0x3f
je 0x45f0e4
mov eax, esi
call fcn.0045e16c
xor eax, eax
inc eax
jmp 0x45efa3
push 0x80070057
call fcn.0040810c
int3
Function at 0x45f164
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4e131c], 1
mov dword [ebp - 4], esi
jne 0x45f1a3
mov eax, dword [0x4df350]
or dword [0x4e131c], 1
mov ecx, 0x4df350
call dword [eax + 0xc]
add eax, 0x10
push 0x4b28dd
mov dword [0x4e1318], eax
call fcn.0048cee9
pop ecx
mov eax, dword [0x4e1318]
cmp dword [eax - 0xc], esi
jne 0x45f1ec
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0048c840
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4e1318
call fcn.00408167
mov eax, dword [0x4e1318]
add eax, 0xfffffff0
call fcn.00408006
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x45f203
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4e1314], 1
mov dword [ebp - 4], esi
jne 0x45f242
mov eax, dword [0x4df350]
or dword [0x4e1314], 1
mov ecx, 0x4df350
call dword [eax + 0xc]
add eax, 0x10
push 0x4b28ea
mov dword [0x4e1310], eax
call fcn.0048cee9
pop ecx
mov eax, dword [0x4e1310]
cmp dword [eax - 0xc], esi
jne 0x45f28b
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0048c840
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4e1310
call fcn.00408167
mov eax, dword [0x4e1310]
add eax, 0xfffffff0
call fcn.00408006
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x45f2a2
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4af5f9
call fcn.004acfc0
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4df350
mov dword [ebp - 0x10], edi
call fcn.004079e9
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0048c840
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x45f324
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00408167
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x45f472
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4cd3e0
call fcn.004ace28
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x45f520
cmp dword [ebp + 0xc], eax
je 0x45f520
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x45f520
mov ebx, 0x103
cmp esi, ebx
ja 0x45f520
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00478ace
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45f51c
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0048c840
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x45f51c
cmp eax, ebx
ja 0x45f51c
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0048fc76
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x45f51c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x45f52f
push dword [ebp - 0x1c]
call fcn.0048c8ba
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004ace63
ret

Function at 0x45f64f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4af5f9
call fcn.004acfc0
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x206
mov dword [ebp - 4], edi
lea eax, [ebp - 0x216]
push edi
mov dword [ebp - 0x10], edi
push eax
mov word [ebp - 0x218], di
call fcn.0048c840
add esp, 0xc
mov ecx, 0x4df350
call fcn.004079e9
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x45f6d7
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00408167
push str.kinst.log
push esi
call fcn.00407d54
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x45f6e7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push 0x4c0c70
lea eax, [ebp - 4]
push eax
xor esi, esi
xor edi, edi
call fcn.00408124
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.0048c840
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x45f784
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x45f769
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0048e991
test eax, eax
pop ecx
pop ecx
je 0x45f76f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45f747
jmp 0x45f77d
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405148
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x45faa0
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4b2036
call fcn.004acfc0
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00407d54
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x45fae2
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45fae9
call esi
cmp eax, 5
je 0x45faec
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405148
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45ff19
Capabilities:
Move file

Disassembly:
mov eax, 0x4aefa8
call fcn.004acfc0
sub esp, 0x38
push esi
push edi
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00433e19
push eax
lea eax, [ebp - 0x44]
call fcn.00434cd2
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.00434e95
lea eax, [ebp - 0x28]
call fcn.00434fe2
movzx edi, al
test edi, edi
jne 0x45ff89
cmp dword [ebp - 0x14], 0x104
jb 0x45ff6a
xor al, al
jmp 0x45ff86
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x45ff76
lea eax, [ebp - 0x24]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
movzx edi, al
push 0
push 1
lea esi, [ebp - 0x28]
call fcn.00403d21
push 0
push 1
lea esi, [ebp - 0x44]
call fcn.00403d21
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405148
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x460baa
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4b10ed
call fcn.004acfc0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
je 0x460d19
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x460d19
push eax
lea esi, [ebp - 0xa4]
call fcn.004036ac
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.004079a6
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], eax
je 0x460c11
push dword [ebp - 0xa4]
call fcn.0048c7af
pop ecx
mov ecx, 0x4df350
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 0x4c3738
call fcn.004079e9
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push dword [edi]
mov eax, esi
push eax
call fcn.00408167
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x460c46
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
call fcn.00460adf
push dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x460c67
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 0
lea ebx, [ebp - 0x20]
jne 0x460c77
push 0x12c
jmp 0x460c7a
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004607e9
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x460ccd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x460c9b
mov dword [eax], ebx
cmp dword [ebp - 0x10], 0
je 0x460cae
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov esi, 0xfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405148
mov eax, esi
jmp 0x460d1c
push dword [edi]
call esi
test eax, eax
jne 0x460cec
cmp dword [ebp - 0x10], eax
je 0x460ce7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push 0x35
pop esi
jmp 0x460cb3
cmp dword [ebp - 0x10], 0
je 0x460cff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405148
xor eax, eax
jmp 0x460d1c
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x461977
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x461986
mov eax, 0x13a
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461997
mov eax, 0x13b
ret
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.0045eacd
add esp, 0xc
test eax, eax
je 0x4619b1
xor eax, eax
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0045e833
test eax, eax
pop ecx
pop ecx
jne 0x4619ae
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0045e08c
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
ret

Function at 0x461de9
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push esi
push edi
call fcn.00461eb5
test al, al
jne 0x461e06
or eax, 0xffffffff
jmp 0x461eb1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00461f86
test al, al
pop ecx
pop ecx
je 0x461dfe
and dword [ebp - 4], 0
mov esi, str.Data_Buffer
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.iphlpapi.dll_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x461e3b
xor eax, eax
jmp 0x461eb1
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x461e54
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
jmp 0x461e37
push 0x28
call fcn.0048fb7b
mov esi, eax
test esi, esi
pop ecx
je 0x461e4c
mov dword [ebp - 8], 2
push 0x3e8
push 0x28
push esi
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push edi
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x461e8f
cmp dword [esi + 4], 0
jne 0x461e8f
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x461e69
push esi
call fcn.0048c7af
pop ecx
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
call fcn.00461f38
test al, al
je 0x461dfe
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x461eb5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
push esi
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x461f1a
push 0x4df150
call fcn.00462154
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.WSAGetLastError____
push ecx
push str.An_error_occured_in_WSAStartup_operation:
push esi
call fcn.0046200e
add esp, 0xc
push eax
call fcn.0046200e
add esp, 0xc
push eax
call fcn.0042a260
mov esi, eax
call fcn.00461ffb
xor al, al
jmp 0x461f33
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [esp + 0x16]
push eax
call fcn.00492122
pop ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461f86
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x461fcf
push 0x4df150
call fcn.00462154
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.An_error_occured_in_gethostbyname_operation:_WSAGetLastError____
push esi
call fcn.0046200e
add esp, 0xc
push eax
call fcn.0042a260
mov esi, eax
call fcn.00461ffb
xor al, al
jmp 0x461ff6
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0xc]
push 4
push eax
call fcn.0048e807
add esp, 0x10
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462937
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [0x4e106c], ebx
je 0x462955
inc eax
jmp 0x462a44
push esi
push edi
mov byte [ebp + 0x54], bl
lea edi, [ebp + 0x55]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp + 0x68], ebx
lea edi, [ebp + 0x6c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.0048c840
add esp, 0xc
call fcn.00462e4f
push dword [ebp + 0x7c]
mov dword [0x4e1070], eax
push 0x4e1044
call fcn.00408167
call fcn.00462d9c
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp + 0x54]
push 0x4e1048
mov dword [ebp + 0x68], 0xc
mov dword [ebp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x74]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004630c4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x4e1038], eax
call esi
cmp dword [0x4e1038], ebx
mov dword [0x4e103c], eax
je 0x462a40
cmp eax, ebx
je 0x462a40
push ebx
push ebx
push 0x4e1030
push 0x462bef
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x4e1040], eax
je 0x462a40
mov dword [0x4e106c], edi
mov eax, edi
jmp 0x462a42
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x462a4c
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x4e1040], edi
mov dword [0x4e1030], 1
je 0x462a97
mov eax, dword [0x4e103c]
cmp eax, edi
je 0x462a72
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
push dword [0x4e1040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x462a97
push edi
push dword [0x4e1040]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4e103c]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x462aaf
push eax
call esi
mov dword [0x4e103c], edi
mov eax, dword [0x4e1040]
cmp eax, edi
je 0x462ac1
push eax
call esi
mov dword [0x4e1040], edi
mov dword [0x4e106c], edi
pop edi
pop esi
ret
Function at 0x462bfb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afd07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call fcn.00462f9e
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
mov dword [esp + 0x50], ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x462d75
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], ebx
je 0x462d5e
cmp dword [esi + 4], ebx
jne 0x462ca4
mov eax, dword [esi + 0x14]
push 0x4c3dd0
push eax
call fcn.0048ffd6
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x462d5e
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.00406799
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x20], ebx
je 0x462d38
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
jne 0x462cd0
call fcn.0048f57f
push 0xffffffffffffffff
push ebx
add edi, 8
push edi
lea ecx, [esp + 0x30]
call fcn.004067b5
mov eax, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.00462f48
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x462d08
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x462d30
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.004920a0
push dword [esi + 4]
push 2
push 1
push 0x4c015c
call fcn.004920a0
add esp, 0x20
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jne 0x462cc1
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x462d49
push eax
call fcn.00490312
pop ecx
mov dword [esi + 4], ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call fcn.0040674e
jmp 0x462c44
cmp dword [esi], ebx
jne 0x462d75
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x462c44
lea esi, [esp + 0x18]
call fcn.00462fb6
push dword [esp + 0x1c]
call fcn.0048c7af
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462d9c
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x4ae423
call fcn.004acfc0
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x4e1044]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x462e3e
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x462de0
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x462e3d
mov eax, dword [0x4e1044]
add eax, 0xfffffff0
call fcn.00408006
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00462eb4
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x4e1044]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00405148
pop edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret