joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004082e9
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004082e9
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004082e9
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004082e9
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004082e9
mov dword [0x41203c], eax
call fcn.004082e9
test eax, eax
jge 0x402550
push 8
call fcn.004082e9
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004082e9
pop ecx
push 1
call fcn.004082e9
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004082e9
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004082e9
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004082e9
jmp 0x402495

Function at 0x4082e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4082f8
pop dword [ebp - 0x28]
mov eax, 0x49ab7f9b
sub eax, 0x496afca3
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x35cee
push 0
mov eax, 0x4f15ecdd
add eax, 0xb12af3fb
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x3a4f
xor ebx, ebx
add ebx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x28]
mov edi, 0x244c4ea5
add edi, 0x7fa7df54
sub dword [ebp - 4], ebx
mov edx, dword [esi]
xor dword [ebp - 0xc], edi
sub edx, edi
sub dword [ebp - 0xc], 0xe67b456e
mov dword [ebx], edx
add dword [ebp - 4], 0x507b42da
add ebx, 0xa01a954d
sub ebx, 0xa01a9549
add esi, 4
loop 0x40834d
add eax, 0xdc0f
mov ebx, eax
add eax, 5
mov ecx, 0x6de9f468
add ecx, 0x92560b98
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1803fdd0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.18015d01
test al, al
je 0x1803fe74
call fcn.180408cc
test al, al
jne 0x1803fe74
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1803fe17
call fcn.1801ba7c
mov ebx, eax
jmp 0x1803fe70
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18081b1c
push 2
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1803fe4c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1803fe57
call fcn.1801ba7c
mov ebx, eax
test esi, esi
je 0x1803fe5e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1803fe76
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret

Function at 0x180409a4
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0xc], eax
call fcn.18041664
test al, al
je 0x180409cc
xor eax, eax
jmp 0x18040a7f
call fcn.1803ff1b
mov esi, eax
mov ecx, esi
call fcn.1801d087
test esi, esi
jns 0x180409e8
lfence
mov eax, esi
jmp 0x18040a7f
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18040a14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18040a7d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18040a7d
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18081b1c
push 2
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18040a4b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push 1
push 3
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18040a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18040a60
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x18040a6b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18118dc8
leave
ret
Function at 0x1808187c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x180818b7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1808189e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x180818af
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x180818b9
inc edi
add eax, 0x28
cmp edi, esi
jb 0x18081894
xor eax, eax
pop edi
pop esi
ret

Function at 0x180833b6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [ebx - 0x6fb43], al
inc dword [ecx]
jne 0x18083468
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.1808184c
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.180817ad
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x180837b4
cmp dword [ebp - 0x6fc], 2
jne 0x18083525
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
invalid
test dword [ecx - 8], esi
invalid
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403024
pop dword [ebp - 0x38]
mov eax, 0xe2976385
sub eax, 0xe2573361
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xf1b93f1a
sub dword [ebp - 0x48], 0xa366f9cf
mov dword [ebp - 0x44], 0x5d675803
add dword [ebp - 0x44], 0xd4cbf442
mov dword [ebp - 0x40], 0x2d4275c6
add dword [ebp - 0x40], 0x1f09ce68
mov dword [ebp - 0x3c], 0x9529d105
add dword [ebp - 0x3c], 0x6ad62efb
lea eax, [ebp - 0x48]
push eax
mov eax, 0x51ef0f3e
add eax, 0xae51713a
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x15ade1f4
sub dword [ebp - 0x48], 0xa13b789e
mov dword [ebp - 0x44], 0x5fcac2e
sub dword [ebp - 0x44], 0xc4904ab9
mov dword [ebp - 0x40], 0xad5f6921
sub dword [ebp - 0x40], 0x49effcb5
mov dword [ebp - 0x3c], 0x4767b46f
add dword [ebp - 0x3c], 0xb8984b91
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x742d26df
sub eax, 0x73eca663
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3592c
push 0
call eax
mov ecx, 0x4224
mov edi, eax
mov ebx, 0x4be84d3a
sub ebx, 0x4ba3393a
add ebx, dword [ebp - 0x38]
mov esi, 0x64de97e8
add dword [ebp - 8], esi
mov edx, dword [ebx]
xor edx, esi
sub dword [ebp - 8], 0xca353837
mov dword [edi], edx
xor dword [ebp - 0x30], 0xc7a2bde1
add edi, 4
add ebx, 0x250a1b22
add ebx, 0xdaf5e4e2
loop 0x40313a
add eax, 0xfb63
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x38b16579
sub ecx, 0x38716579
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10001a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001a89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001ac4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001ac0
lea ebx, [ebx]
cmp esi, eax
jae 0x10001ac4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001ab0
cmp esi, eax
jb 0x10001aca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x100078e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002d28b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x1003b518]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x1003b518
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x24], 2
mov ebx, dword [esp + 0x30]
cmp dword [ebx], 0
sete al
test al, al
jne 0x1000795f
push 0
push 0x1f7
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incRegistry.h
push 0x80070057
call fcn.10002410
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
test eax, eax
je 0x1000798c
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jg 0x1000798c
push 0
push 0x63
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incRefCounted.h
push 0xe0e00000
call fcn.10002410
mov eax, dword [ebp]
mov ecx, dword [esi]
cmp ecx, eax
je 0x100079a0
mov dword [esi], eax
test ecx, ecx
je 0x100079a0
call fcn.10009480
lea eax, [ebx + 4]
push eax
lea ecx, [ebp + 4]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.100121e0
add esp, 0xc
mov byte [esp + 0x24], 3
push eax
mov ecx, edi
call fcn.10006550
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100079e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x100079f6
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
jmp 0x100079f9
mov dword [esi + 8], ebp
mov dword [esp + 0x24], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x10007ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002d611
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.10007610
mov dword [esp + 0x20], 1
lea ecx, [esp + 0xc]
push ecx
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.100078e0
mov dword [esp + 8], 1
mov byte [esp + 0x20], 0
lea ecx, [esp + 0xc]
call fcn.10007c40
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 8
Function at 0x10009be0
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x10009c56
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx]
call eax
test al, al
je 0x10009c1e
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esi + 8]
push 0x36
push str..XmlBuilder.cpp
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push eax
call fcn.10004f60
add esp, 0xc
cmp dword [esi + 8], 0xffffffff
je 0x10009c56
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x29
mov edi, eax
mov eax, dword [esi + 8]
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incHandles.h
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call fcn.10004f60
add esp, 0xc
push edi
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
ret

Function at 0x10009ca0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [eax + 4]
cmp esi, 0x7fffffff
ja 0x10009cf5
mov eax, dword [eax]
mov edx, dword [esp + 8]
push 0xb0
push str..XmlBuilder.cpp
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.10004f60
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x10009d0b
push 0
push 0xb1
push str..XmlBuilder.cpp
push 0xe0e00000
call fcn.10002410
push 0
push 0x21d
push str.c:dvsp4_build_sw_relgpu_drv_r265_r265_36installer2.0incNVI2Defns.h
push 0x80070057
call fcn.10002410
pop esi
ret

Function at 0x1000b780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10029c19
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0xd8
mov dword [esp + 0x18], eax
push str..AutoString.cpp
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push eax
call fcn.10004f60
add esp, 0xc
push 0x1003b518
lea ecx, [esp + 0xc]
call fcn.100015b0
mov dword [esp + 0x30], 2
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str._04d__02d__02dT_02d:_02d:_02d._03d
push eax
call fcn.10004510
mov esi, dword [esp + 0x5c]
add esp, 0x24
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.10006980
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
lea ecx, [esp + 8]
call fcn.10002310
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x1000cba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000cbca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000cbc7
cmp eax, 3
je 0x1000cbc7
push 0
push 0
call fcn.10009b80
xor al, al
ret
mov al, 1
ret

Function at 0x1000cbd0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
test ebp, 0xffffced8
je 0x1000cbf6
push 0
push 0x462
push str..FilePath.cpp
push 0x80070057
call fcn.10002410
mov eax, dword [esp + 0x10]
push esi
mov esi, ebp
not esi
test eax, esi
je 0x1000cc19
push 0
push 0x463
push str..FilePath.cpp
push 0x80070057
call fcn.10002410
mov eax, dword [ebx]
push edi
push eax
mov edi, 0x80
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000cc36
push 0
push 0
call fcn.10009b80
cmp ebp, edi
je 0x1000cc42
and esi, eax
or esi, dword [esp + 0x18]
mov edi, esi
cmp edi, eax
je 0x1000cc65
mov eax, dword [ebx]
push 0x479
push str..FilePath.cpp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call fcn.10004f60
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000cc70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10029f59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0x1003b518
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
call fcn.100015b0
mov dword [esp + 0x24], 2
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, 0x104
nop
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x1000cce3
push esi
lea ecx, [esp + 0x14]
call fcn.10001dc0
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x14]
mov edi, edx
call fcn.10001e10
push edi
push esi
call ebp
test eax, eax
je 0x1000cd67
cmp eax, esi
je 0x1000cd67
jb 0x1000cd01
mov esi, eax
jmp 0x1000ccc0
cmp eax, 0x7fffffff
sbb ecx, ecx
neg ecx
jne 0x1000cd22
push 0
push 0x652
push str..FilePath.cpp
push 0x80004005
call fcn.10002410
push eax
lea ecx, [esp + 0x14]
call fcn.10001e10
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.10007500
mov dword [esp + 0x14], 1
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.10002310
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0
push 0
call fcn.10009b80
int3
Function at 0x1000cd80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10029f59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0x1003b518
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
call fcn.100015b0
mov dword [esp + 0x24], 2
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x104
nop
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x1000cdf3
push esi
lea ecx, [esp + 0x14]
call fcn.10001dc0
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x14]
mov edi, edx
call fcn.10001e10
push edi
push esi
call ebp
test eax, eax
je 0x1000ce77
cmp eax, esi
je 0x1000ce77
jb 0x1000ce11
mov esi, eax
jmp 0x1000cdd0
cmp eax, 0x7fffffff
sbb ecx, ecx
neg ecx
jne 0x1000ce32
push 0
push 0x6c4
push str..FilePath.cpp
push 0x80004005
call fcn.10002410
push eax
lea ecx, [esp + 0x14]
call fcn.10001e10
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.10007500
mov dword [esp + 0x14], 1
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.10002310
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0
push 0
call fcn.10009b80
int3

Function at 0x1000d120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000d137
push 0
push 0
call fcn.10009b80
shr eax, 4
not eax
and eax, 1
ret
Function at 0x1000d4a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1002a099
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x1000d50b
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.10002290
mov dword [esp + 0x18], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
jne 0x1000d546
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.10002290
mov dword [esp + 0x18], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1000d340
add esp, 8
mov dword [esp + 0x18], 1
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.10008c10
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.1000d3f0
add esp, 8
mov byte [esp + 0x18], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10004d30
mov byte [esp + 0x18], 1
lea ecx, [esp + 0xc]
call fcn.10002310
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.10002290
mov dword [esp + 8], 1
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.10002310
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x1000d8a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1002a120
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1003949c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], 1
mov dword [esp + 0x24], ebx
or edi, 0xffffffff
cmp dword [esi + 0x1c], edi
jne 0x1000d93a
mov eax, dword [esi + 0x18]
push ebx
push 0x4000100
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], 1
cmp eax, edi
jne 0x1000d933
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000d91d
cmp eax, 3
jne 0x1000d92c
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.10003900
jmp 0x1000d93a
push ebx
push ebx
call fcn.10009b80
mov dword [esp + 0x10], edi
mov dword [esi + 0x1c], eax
mov dword [esp + 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x1000d960
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1003949c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov byte [ebp - 0x1c], bl
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [ebp - 0x1c], al
mov dword [ebp - 4], ebx
cmp byte [ebp + 8], bl
jne 0x1000d9f7
cmp dword [esi + 0x1c], 0xffffffff
jne 0x1000d9f7
mov ecx, dword [esi + 0x18]
cmp dword [ecx - 0xc], ebx
je 0x1000d9f7
mov byte [ebp - 4], al
mov ecx, esi
call fcn.1000d8a0
mov dword [ebp - 4], ebx
jmp 0x1000d9f7
mov eax, dword [esi + 0x1c]
or edi, 0xffffffff
cmp eax, edi
je 0x1000da3a
cmp byte [ebp + 8], bl
je 0x1000da1b
push ebx
push 0x9af
push str..FilePath.cpp
push 0xe0e00000
call fcn.10002410
push 0x9b3
push str..FilePath.cpp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call fcn.10004f60
add esp, 0xc
mov dword [esi + 0x1c], edi
jmp 0x1000da5f
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], ebx
je 0x1000da5f
cmp byte [ebp + 8], bl
jne 0x1000da52
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000da5f
mov eax, dword [esi + 0x18]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x1003b518
lea ecx, [ebp + 8]
call fcn.100015b0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
lea eax, [ebp + 8]
push eax
call fcn.10006550
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.10002310
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x1c], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4