joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008df0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068415
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100a7008]
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]
mov ecx, 0x100aa321
call fcn.10066665
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x200
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x418]
mov ecx, esi
call fcn.1000fb20
test al, al
jne 0x10008e7e
mov ecx, esi
call fcn.1000e6b0
mov ecx, 0x10080860
call fcn.1000e6b0
xor al, al
jmp 0x10008f7d
lea ecx, [ebp - 0x218]
call fcn.1000f870
push 0x10080888
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008ebd
mov ecx, str.netsh.exe
call fcn.1000e6b0
xor al, al
jmp 0x10008f7d
push str.interface_ip_set_dns__
lea ecx, [ebp - 0x430]
call fcn.100034a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ee0
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.100076c0
cmp byte [ebp + 0xc], 0
lea ecx, [ebp - 0x430]
je 0x10008f17
push 6
push str.__dhcp
jmp 0x10008f1e
push 0x18
push str.__static_114.114.114.114
call fcn.100076c0
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
push 0
cmovae eax, dword [ebp - 0x430]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.100039c0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e7c0
Capabilities:
Check if file exists
Create process on windows
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b94
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x100a7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100aa321
call fcn.10066665
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.1000f870
push 0x10080888
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000e84b
mov ecx, str.Get_path_failed_r_n
call fcn.1000e6b0
xor al, al
jmp 0x1000ea1e
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 4
call fcn.1000f5c0
lea ecx, [ebp - 0x230]
test al, al
je 0x1000e8a9
push 0x1c
push str.interface_ip_reset_ipset.log
jmp 0x1000e8b0
push 0x1e
push str.interface_ip_reset___ipset.log
call fcn.10003b10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmovae eax, dword [ebp - 0x230]
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call esi
push 0
push 0
push str.winsock_reset
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call esi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x574]
call fcn.100054e0
lea edx, [ebp - 0x578]
mov dword [ebp - 0x578], 0
lea ecx, [ebp - 0x574]
mov dword [ebp - 0x234], 1
call fcn.1000eb10
test al, al
je 0x1000e9f2
push 0x100802b8
lea ecx, [ebp - 0x24c]
call fcn.100034a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x574]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e960
sub ecx, edx
lea eax, [ebp - 0x574]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.100076c0
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x234]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 4
push ecx
push 4
push 0x10080338
push eax
push 0x80000002
call esi
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 0
cmovae eax, dword [ebp - 0x24c]
push 0
push 1
push str.NameServer
push eax
push 0x80000002
call esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24c]
call fcn.100039c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 4
mov ecx, 0x10080da8
call fcn.1000e6b0
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x230]
call fcn.100039c0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret
Function at 0x1000ee30
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x100a7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x100aa321
call fcn.10066665
test esi, esi
jne 0x1000ee65
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x80
xor ebx, ebx
lea eax, [ebp - 0x84]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000eeb0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x1000eec0
cmp eax, 0x47
jne 0x1000eef3
mov ecx, esi
call fcn.1000f000
test al, al
je 0x1000eef3
test ebx, ebx
je 0x1000eef3
lea edi, [esi + 0x1b0]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp ebx, eax
jne 0x1000eef3
push str.169.254
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x1000eef9
mov esi, dword [esi]
test esi, esi
jne 0x1000eeb0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.1006413c
mov esp, ebp
pop ebp
ret
Function at 0x1000f900
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069d65
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100a7008]
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 esi, ecx
mov ecx, 0x100aa321
call fcn.10066665
lea eax, [ebp - 0x448]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000fb04
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x428], 0x104
xor edi, edi
mov dword [ebp - 0x42c], 4
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 0x104
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x1000fafc
nop dword [eax + eax]
lea eax, [ebp - 0x44c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000faa4
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000fa9c
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x444]
call fcn.100034a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x444]
mov eax, dword [esi + 4]
push ecx
cmp dword [esi + 8], eax
je 0x1000fa74
mov ecx, eax
call fcn.100035d0
add dword [esi + 4], 0x18
jmp 0x1000fa7c
push eax
mov ecx, esi
call fcn.10010670
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.100039c0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44c]
call ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x428]
inc edi
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1000f9e0
push dword [ebp - 0x448]
call ebx
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.1006413c
mov esp, ebp
pop ebp
ret
Function at 0x10012510
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100a7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
xor esi, esi
mov ecx, 0x100aa321
mov dword [ebp - 0x1c], esi
call fcn.10066665
push 0x30
call fcn.10064185
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.10002200
mov edi, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x3c], 7
movups xmm0, xmmword [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
movups xmmword [edi + 0x14], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x24], xmm0
mov dword [edi + 0x2c], esi
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.100119a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [edi + 0x30]
lea eax, [ebp - 0x50]
push eax
call fcn.10012e80
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x48]
nop word [eax + eax]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x3c]
mov byte [ebp - 4], 2
or esi, 2
mov dword [ebp - 0x1c], esi
and esi, 0xfffffffd
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
add eax, ecx
cmp edi, eax
je 0x10012682
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10012617
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov ecx, edi
mov dword [ebp - 0x20], eax
dec edx
mov eax, edi
and ecx, 3
shr eax, 2
and edx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push 0
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
push dword [eax + ecx*4]
mov ecx, dword [ebp - 0x18]
add ecx, 0x44
call fcn.10004f10
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x10012682
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001267c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], 6
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [eax + 0x14], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x24], xmm0
mov dword [eax + 0x2c], 0
inc edi
jmp 0x100125e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x7d0
jae 0x100126a0
mov ecx, 0x7d0
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [edi + 0x14], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x24], xmm0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret 4
Function at 0x10016f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ba1f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100a7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, 0x100aa321
call fcn.10066665
mov dword [ebx], vtable.RC::RCThreadBase.0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 2
lea edi, [ebx + 0x14]
mov dword [ebx], vtable.RC::RCNetRepairOperater.0
mov byte [ebx + 8], 0
mov dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
lea esi, [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x18], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10064185
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 5
lea esi, [edi + 0x1c]
mov dword [ebp - 0x18], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10064185
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 7
lea esi, [edi + 0x30]
mov dword [ebp - 0x18], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10064185
mov dword [esi], eax
add esp, 0xc
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 9
lea esi, [edi + 0x44]
push 0x10004d30
push 0x10004ce0
push 7
push 0xc
push esi
mov dword [ebp - 0x18], esi
call fcn.100642d6
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.10005070
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c3fc
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100a7008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x100aa321
call fcn.10066665
mov eax, dword [esi + 4]
test eax, eax
je 0x10019992
cmp byte [eax + 0x54], 0
je 0x10019992
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.10017de0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x100198a4
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001995f
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.1002e950
add esp, 4
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10019945
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001993b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001993b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006414d
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10019984
cmp byte [ebp - 0x18], 0
je 0x10019984
mov eax, dword [esi]
test eax, eax
je 0x10019980
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a730
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c759
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100a7008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, 0x100aa321
call fcn.10066665
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.1001e4a0
mov dword [edi], eax
mov dword [ebp - 4], 2
lea eax, [edi + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
push str.A4C652B6_551C_4A59_A6B2_9ECB46820AAF
call fcn.100034a0
mov byte [ebp - 4], 8
lea esi, [edi + 0x20]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], 0
mov dword [esi], 0
mov word [esi + 4], 0
je 0x1001a7f1
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
jmp 0x1001a7f3
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1001a815
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001a815
mov byte [esi + 5], 1
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.100039c0
mov byte [ebp - 4], 0xb
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001c3e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d118
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100a7008]
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, ecx
mov ebx, dword [ebp + 8]
mov ecx, 0x100aa321
call fcn.10066665
add edi, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 4
call fcn.10064185
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.1002fdb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.100306e0
test al, al
jne 0x1001c478
mov byte [ebp - 0x55], al
jmp 0x1001c48e
mov edx, dword [ebp - 0x34]
mov ecx, edi
mov eax, dword [ebp - 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x5c], eax
call fcn.100430e0
mov byte [ebp - 0x55], al
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x1001c4a9
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1001c4a9
mov dword [esi], 0xffffffff
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.100039c0
mov byte [ebp - 4], 2
mov dword [ebp - 4], 9
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001c4e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1001c4e1
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.1006414d
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x55], 0
je 0x1001c551
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1001c50a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1001c528
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1001c525
mov eax, dword [edi]
push eax
call esi
cmp dword [edi + 0x14], 8
jb 0x1001c530
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1001c53a
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1001c555
cmp dword [ebx + 0x14], 8
jb 0x1001c54e
mov ebx, dword [ebx]
push ebx
call esi
xor al, al
jmp 0x1001c557
mov al, 1
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.1006413c
mov esp, ebp
pop ebp
ret 4
Function at 0x10028230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x100a96f3
push edi
call fcn.10066665
cmp dword [ebx + 0x38], 0
je 0x10028268
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002828a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1002828c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10028311
jg 0x100282a1
test esi, esi
je 0x10028311
test ecx, ecx
jl 0x100282ea
jg 0x100282ab
test eax, eax
je 0x100282ea
cmp edi, ecx
jg 0x100282bf
jl 0x100282b5
cmp esi, eax
jae 0x100282bf
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x100282ed
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10028311
jg 0x100282f7
test esi, esi
je 0x10028311
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10028311
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10028330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x100a96f3
call fcn.10066665
cmp dword [edi + 0x38], 0
je 0x10028368
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002838a
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1002838c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1002842c
jg 0x100283a9
test esi, esi
je 0x1002842c
test ecx, ecx
jl 0x100283f6
jg 0x100283b3
test eax, eax
je 0x100283f6
cmp ebx, ecx
jg 0x100283c7
jl 0x100283bd
cmp esi, eax
jae 0x100283c7
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100283fd
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1002842c
jg 0x10028407
test esi, esi
je 0x1002842c
cmp dword [edi + 0x4c], 0
je 0x1002842c
mov ecx, edi
call fcn.10029930
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc