joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a286a
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010956c]
inc eax
mov dword [0x1010956c], eax
push 0
call fcn.100a2216
pop ecx
add eax, dword [0x1010956c]
push eax
call fcn.10073963
pop ecx
call fcn.10073970
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100a28c4
xor eax, eax
inc eax
jmp 0x100a2981
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100a28f1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
jmp 0x100a2981
push 0
push 0
push 0
push 6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100a2922
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
pop eax
jmp 0x100a2981
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100a2964
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
jne 0x100a2964
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x58], ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret
Function at 0x100a2a8c
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x234], ecx
cmp dword [ebp + 8], 0
jne 0x100a2ab2
xor eax, eax
jmp 0x100a2c07
call fcn.10020fd3
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100a2acf
and dword [ebp - 0x238], 0
jmp 0x100a2b27
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x100a2aee
and dword [ebp - 0x23c], 0
jmp 0x100a2b1b
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.10084220
mov dword [ebp - 0x240], esp
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x240]
call fcn.100244aa
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100a2c05
and word [ebp - 0x228], 0
push 0x208
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.10071b20
add esp, 0xc
push 0x105
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.100a1ba6
push 0x100d0fb0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a2b9f
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x22c], 0
push 0x100d0fcc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.100776da
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x100a2c05
push dword [ebp - 4]
call fcn.10071f60
pop ecx
mov dword [ebp - 0x230], eax
push dword [ebp - 0x22c]
mov eax, dword [ebp - 0x230]
inc eax
push eax
push 1
push dword [ebp - 4]
call fcn.100778ca
add esp, 0x10
push dword [ebp - 0x22c]
call fcn.100779be
pop ecx
xor eax, eax
inc eax
jmp 0x100a2c07
xor eax, eax
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10071b0a
leave
ret 4
Function at 0x100a2e2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.100a1eec
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100a2e5f
jmp 0x100a2edd
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x100d0a80
call fcn.10071f60
pop ecx
push eax
push str.81539FE6_33C7_4CE7_90C7_1C7B8F2F2D40
call fcn.10094a07
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100a2e91
jmp 0x100a2edd
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100a2eb9
jmp 0x100a2edd
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100a2ed6
jmp 0x100a2edd
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x100a2ef6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.10075252
pop ecx
and dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0xffffffff
je 0x100a2f09
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x100a35c7
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x228], ecx
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x100a362e
lea eax, [ebp - 0x10]
push eax
push 0x100d8138
push 1
push 0
push 0x100d8158
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100a362c
jmp 0x100a3772
jmp 0x100a3635
xor eax, eax
jmp 0x100a37b4
push dword [0x1010515c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x1c]
lea eax, [ebp - 0xc]
push eax
push 0x100d8128
push 0x100d8148
push dword [0x1010515c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x20]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100a3678
jmp 0x100a3772
mov ecx, dword [ebp - 0x228]
add ecx, 4
call fcn.10004ea9
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x80]
cmp dword [ebp + 8], 0
je 0x100a36b9
push dword [ebp + 8]
call fcn.10071feb
pop ecx
test eax, eax
jbe 0x100a36b9
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x88]
push 0x2002
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x70]
mov dword [ebp - 0x14], eax
and word [ebp - 0x220], 0
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x78]
lea eax, [ebp - 8]
push eax
push 0x100c58cc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100a373c
jmp 0x100a3772
push 1
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100a3758
jmp 0x100a3772
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x30]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x40]
cmp dword [ebp - 8], 0
je 0x100a3783
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 8]
cmp dword [ebp - 0xc], 0
je 0x100a3794
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 8]
cmp dword [ebp - 0x10], 0
je 0x100a37a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp dword [ebp - 0x14], 0
setge al
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10071b0a
leave
ret 4
Function at 0x100a38cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x280], ecx
and word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071b20
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x280]
call fcn.100a1ba6
push 0x100d0fd0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x278], 0
push 0x40
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.10071b20
add esp, 0xc
and dword [ebp - 0x228], 0
xor eax, eax
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x278], 0x44
mov dword [ebp - 0x24c], 0x80
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x278]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x100a39db
push dword [ebp - 0x228]
lea ecx, [ebp - 0x27c]
call fcn.1002102a
push eax
mov ecx, dword [ebp - 0x280]
add ecx, 0x74
call fcn.100368b9
lea ecx, [ebp - 0x27c]
call fcn.100213e6
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x22c]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100a3ea2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd6ae
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10003c8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10024ee4
or dword [ebp - 0x250], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
push 0x22c
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x10]
call fcn.10010b64
push eax
call fcn.10075136
pop ecx
pop ecx
test eax, eax
je 0x100a3f76
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x258], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100106f6
mov eax, dword [ebp - 0x258]
jmp 0x100a404b
xor eax, eax
inc eax
je 0x100a402d
push 0x22c
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100a3fbb
or dword [ebp - 0x250], 0xffffffff
jmp 0x100a402d
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x254]
call fcn.10003c8d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.10024ee4
lea ecx, [ebp - 0x254]
call fcn.10010b64
push eax
lea ecx, [ebp - 0x10]
call fcn.10010b64
push eax
call fcn.10075136
pop ecx
pop ecx
test eax, eax
je 0x100a4019
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.100106f6
jmp 0x100a402d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.100106f6
jmp 0x100a3f76
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x25c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100106f6
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10071b0a
leave
ret 4
Function at 0x100a4064
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1010b008
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100a4122
push 0x100d163c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100a4122
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x1003d0cf
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 8
call fcn.10071d4d
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100a40d0
mov ecx, dword [ebp - 0x18]
call fcn.10038017
mov dword [ebp - 0x1c], eax
jmp 0x100a40d4
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push 0x1010b218
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10003d11
push 0x1010b42c
push 0
push dword [ebp - 0x10]
push 0x100a23ca
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100a4122
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x100a4124
xor eax, eax
leave
ret

Function at 0x100a42fc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x118], ecx
and word [ebp - 0x110], 0
push 0xfe
push 0
lea eax, [ebp - 0x10e]
push eax
call fcn.10071b20
add esp, 0xc
push 0x80
lea eax, [ebp - 0x110]
push eax
push 0x100d11d0
call dword [sym.imp.ole32.dll_StringFromGUID2]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
call fcn.1001e317
push 0x2001f
push 0x100d127c
push SysReAllocStringLen
lea ecx, [ebp - 8]
call fcn.10009ba6
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 8]
call fcn.10009e4b
mov ecx, dword [ebp - 0x118]
add ecx, 0x84
call fcn.10003c44
movzx eax, al
test eax, eax
jne 0x100a43af
mov ecx, dword [ebp - 0x118]
add ecx, 0x84
call fcn.10010b64
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x114], 1
lea ecx, [ebp - 8]
call fcn.10009c18
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b0a
leave
ret

Function at 0x100a4594
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.Txdl::CRemoteInjectLauncher.0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.10003c44
movzx eax, al
test eax, eax
jne 0x100a45cc
push 4
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.10010b64
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.100106f6
mov ecx, dword [ebp - 4]
call fcn.10036bf2
leave
ret
Function at 0x100a45e1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bdc18
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001749
mov byte [ebp - 4], 1
mov eax, dword [0x100d667c]
mov dword [ebp - 0x30], eax
push dword [0x100d667c]
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.1003813e
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100d667c]
je 0x100a4691
push dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001903
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x58]
lea ecx, [ebp - 0x2c]
call fcn.10001796
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10001781
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.10001749
call fcn.100a45e1
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004ea9
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100a46b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100a46cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001781
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001781
jmp 0x100a46e5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001781
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001781
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100a4796
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bdc68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x100a47cb
xor eax, eax
jmp 0x100a4921
call fcn.10020fd3
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100a47e5
and dword [ebp - 0x44], 0
jmp 0x100a482b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x100a4801
and dword [ebp - 0x48], 0
jmp 0x100a4825
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.10084220
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x4c]
call fcn.100244aa
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.10071f60
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.1003788a
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100b62e7
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
and dword [ebp - 4], 0
push str.TxdlService.dat
push dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
call fcn.10010930
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100106f6
lea ecx, [ebp - 0x28]
call fcn.10010b64
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a48a6
lea ecx, [ebp - 0x28]
call fcn.10010b64
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x24], 0
push 0x100d0d6c
lea ecx, [ebp - 0x28]
call fcn.10010b64
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100776da
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x100a490f
push dword [ebp - 0x24]
push 1
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.100778ca
add esp, 0x10
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 1
push dword [ebp - 0x10]
call fcn.100778ca
add esp, 0x10
push dword [ebp - 0x24]
call fcn.100779be
pop ecx
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x28]
call fcn.100106f6
mov eax, dword [ebp - 0x3c]
jmp 0x100a4921
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x28]
call fcn.100106f6
mov eax, dword [ebp - 0x40]
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100a54b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be561
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
and dword [ebp - 0x2bc], 0
and word [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.10071b20
add esp, 0xc
push 0x100d249c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x2b8], 0x100d24f8
and word [ebp - 0x2b4], 0
push 0x7e
push 0
lea eax, [ebp - 0x2b2]
push eax
call fcn.10071b20
add esp, 0xc
push 0xa
push 0x40
lea eax, [ebp - 0x2b4]
push eax
push 0
call fcn.100775c8
pop ecx
push eax
call fcn.1007759e
add esp, 0x10
lea ecx, [ebp - 0x2c0]
call fcn.10003c5a
and dword [ebp - 4], 0
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x2d0]
push dword [eax + 0x74]
mov ecx, dword [ebp - 0x2d0]
add ecx, 4
call fcn.10004ea9
push eax
lea eax, [ebp - 0x2b4]
push eax
push str._default__r_ntime_s_r_nPath_s_r_npara_s_r_nsrcName_s_r_n
lea eax, [ebp - 0x2c0]
push eax
call fcn.10016000
add esp, 0x18
lea ecx, [ebp - 0x2c0]
call fcn.10010b64
push eax
lea ecx, [ebp - 0x234]
call fcn.10030aed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.10010763
inc eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.10071417
pop ecx
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x234]
call fcn.10010b64
push eax
push dword [ebp - 0x10]
call fcn.10073370
add esp, 0xc
push 0x55
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.100a14a1
add esp, 0xc
push 0x100d2570
lea eax, [ebp - 0x22c]
push eax
call fcn.100776c7
pop ecx
pop ecx
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x100a565d
push dword [ebp - 0x230]
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
call fcn.100778ca
add esp, 0x10
push dword [ebp - 0x230]
call fcn.100779be
pop ecx
mov dword [ebp - 0x2bc], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c8], eax
push dword [ebp - 0x2c8]
call fcn.10075252
pop ecx
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.100106f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.100106f6
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10071b0a
leave
ret 8
Function at 0x100a6695
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 4], esp
push dword [ebp + 8]
call fcn.10001713
call fcn.100a45e1
add esp, 0x1c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a66c5
xor eax, eax
inc eax
jmp 0x100a66c7
xor eax, eax
leave
ret