joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ef0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10068050
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1008], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x1001305f
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1001305f
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10012f55
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001305f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.100dd9d0
add esp, 0xc
lea eax, [ebp - 0x804]
xor ebx, ebx
push 0x400
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x10013017
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.100dd9d0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.100ddd27
add esp, 0x14
test eax, eax
je 0x10012fda
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10012fda
mov ecx, ebx
jmp 0x10012fdc
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
push edi
cmovne eax, edx
push eax
push dword [ebp - 0x1008]
call fcn.100ed0b8
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10013045
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.100124d0
mov ebx, eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
Function at 0x100134f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110766
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x1011b8f8
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.100ece58
add esp, 8
test eax, eax
je 0x1001358b
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x10013530
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001364c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x101484a4
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10002420
test al, al
jne 0x1001362e
push 0
push 0x101484a4
jmp 0x10013627
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100dd9d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100135d5
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x10013656
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10002420
test al, al
jne 0x1001362e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013610
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10001c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
int3

Function at 0x10013670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], esi
call fcn.100dd9d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001373e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.10002420
test al, al
jne 0x10013722
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013704
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001c80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
int3
Function at 0x10013780
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10151408
push 0x100ddbd0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10068050
mov eax, dword [0x1015e404]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x1001392e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001392e
mov eax, 1
cmp dword [ebp + 0xc], 0
je 0x10013819
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100137f3
sub ecx, edx
sar ecx, 1
je 0x10013810
push edi
push esi
call fcn.1005bea0
add esp, 8
jmp 0x10013819
push esi
call fcn.1005c340
add esp, 4
test eax, eax
je 0x1001392e
mov dword [ebp - 4], 0
call fcn.100126f0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001384c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.100dd9d0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.100dd9d0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1001392e
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.100dd9d0
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100ed0b8
lea eax, [ebp - 0x224]
push eax
call fcn.100e5717
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x1001392e
nop dword [eax]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10012ef0
add esp, 0xc
test eax, eax
je 0x10013925
lea eax, [ebp - 0xa24]
push eax
call fcn.100e5717
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.100ece58
add esp, 0xc
test eax, eax
je 0x1001394c
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x100138e0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10013930
Function at 0x10013960
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10151428
push 0x100ddbd0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10068050
mov eax, dword [0x1015e404]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a2c], edi
test esi, esi
je 0x10013b0a
mov dword [ebp - 4], 0
call fcn.100126f0
mov dword [ebp - 4], 0xfffffffe
jmp 0x100139eb
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.100dd9d0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.100dd9d0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10013b0a
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100ed0b8
lea eax, [ebp - 0x224]
push eax
call fcn.100e5717
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10013b0a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10012ef0
add esp, 0xc
test eax, eax
je 0x10013afd
lea eax, [ebp - 0xa24]
push eax
call fcn.100e5717
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.100ece58
add esp, 8
test eax, eax
jne 0x10013afd
test edi, edi
je 0x10013aea
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013ac7
sub eax, edx
sar eax, 1
je 0x10013aea
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005bea0
add esp, 8
jmp 0x10013af9
lea eax, [ebp - 0xa24]
push eax
call fcn.1005c340
add esp, 4
test eax, eax
jne 0x10013b28
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10013a73
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10013b0c
Function at 0x10013b30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10151448
push 0x100ddbd0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10068050
mov eax, dword [0x1015e404]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a2c], edi
test esi, esi
je 0x10013cc9
mov dword [ebp - 4], 0
call fcn.100126f0
mov dword [ebp - 4], 0xfffffffe
jmp 0x10013bbb
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.100dd9d0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.100dd9d0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10013cc9
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100ed0b8
lea eax, [ebp - 0x224]
push eax
call fcn.100e5717
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10013cc9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10012ef0
add esp, 0xc
test eax, eax
je 0x10013cbc
lea eax, [ebp - 0xa24]
push eax
call fcn.100e5717
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.100ece58
add esp, 8
test eax, eax
jne 0x10013cbc
test edi, edi
je 0x10013ce7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013c97
sub eax, edx
sar eax, 1
je 0x10013ce7
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005bea0
add esp, 8
test eax, eax
jne 0x10013ce7
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10013c43
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10013ccb
Function at 0x10013cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
xor esi, esi
push edi
cmp dword [0x1015d078], esi
je 0x10013dbc
push str.ntdll.dll
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
call ecx
mov edi, eax
test edi, edi
je 0x10013db0
push str.RtlGetNtVersionNumbers
push edi
call ebx
test eax, eax
je 0x10013d7f
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x12c], esi
je 0x10013db0
cmp dword [ebp - 0x130], 6
jne 0x10013db0
mov eax, dword [0x10161bcc]
mov ecx, 1
cmp dword [ebp - 0x124], 1
cmove eax, ecx
mov dword [0x10161bcc], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1015d078], esi
cmp dword [0x10161bcc], esi
je 0x10013e4e
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.100dd9d0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetProductInfo
push str.kernel32.dll
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
test eax, eax
je 0x10013e2b
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call eax
cmp dword [ebp - 0x124], 2
je 0x10013efc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
cmp dword [0x1015d07c], esi
je 0x10013eee
push str.ntdll.dll
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call ecx
mov edi, eax
test edi, edi
je 0x10013ee8
push str.RtlGetNtVersionNumbers
push edi
call ebx
test eax, eax
je 0x10013eb9
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x124], esi
je 0x10013ee8
cmp dword [ebp - 0x130], 6
jne 0x10013edc
cmp dword [ebp - 0x12c], 2
jae 0x10013ede
jmp 0x10013ee8
jbe 0x10013ee8
mov dword [0x10161bd0], 1
mov dword [0x1015d07c], esi
cmp dword [0x10161bd0], esi
mov eax, 1
cmovne esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
Function at 0x10014280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10151610
push 0x100ddbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x1015e404]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.100dd9d0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014399
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.100dd9d0
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10014399
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x10014399
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.100143cb
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014720
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110838
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1015e404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001476b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x10014789
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x10]
call fcn.100024e0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x1001484a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x100147c7
push esi
lea ecx, [ebp - 0x10]
call fcn.10001b90
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x1001484a
mov dword [eax - 0xc], esi
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
mov eax, 0x614
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ecx
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, dword [ebp - 0x10]
neg eax
mov dword [ebp - 4], 0xffffffff
sbb esi, esi
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10014836
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100017c0
int3
Function at 0x100152a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110920
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1015e404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10015406
cmp dword [ebp + 0xc], 0
je 0x10015406
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10015406
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x10015427
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or ebx, 0xffffffff
test eax, eax
je 0x10015359
push ecx
mov ecx, esp
push esi
call fcn.100024e0
lea eax, [ebp - 0x10]
push eax
call fcn.10012d90
add esp, 8
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.10001900
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10015362
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10015362
push esi
lea ecx, [ebp + 8]
call fcn.10002490
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10015377
push str.file_not_found
jmp 0x100153cc
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015380
sub ecx, edx
sar ecx, 1
je 0x1001539d
push edi
push esi
call fcn.1005bea0
add esp, 8
jmp 0x100153a6
push esi
call fcn.1005c340
add esp, 4
test eax, eax
je 0x100153c7
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push esi
call fcn.10011950
add esp, 0x1c
mov edi, eax
jmp 0x100153d6
push str.file_sign_error
call fcn.1001d9a0
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100153f2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_param
call fcn.1001d9a0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
int3
Function at 0x10015440
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10110950
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1015e404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
jne 0x10015538
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015538
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100154a6
push edi
call esi
test eax, eax
jne 0x10015538
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001554f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100024e0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10011d40
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10015507
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
test esi, esi
mov esi, dword [ebp - 0x14]
push 0
je 0x10015515
push esi
jmp 0x10015516
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10015538
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
int3

Function at 0x100157c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x100157da
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10015e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 0x10]
mov ebx, eax
test esi, esi
je 0x10015e8c
cmp dword [esi], 0
jne 0x10015ea9
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x10015ea9
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10015eb0
cmp eax, 0xffffffff
jne 0x10015e83
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x1001ab80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
test ecx, ecx
jne 0x1001abcd
lea eax, [ebp + 8]
mov dword [ebp + 8], ecx
push eax
push 0x10004
push esi
push 0x1001b490
push dword [esi + 0x84]
push ecx
call fcn.100e4c00
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], ecx
push dword [esi + 0x18]
push eax
call fcn.1001a4a0
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x74]
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebp
ret 4