joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015440
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x1003ea4b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x10a4]
lea ebx, [edi + 0x10a4]
mov ecx, ebx
push dword [eax + 4]
call fcn.100166a0
mov eax, dword [ebx]
lea ebp, [edi + 0xc20]
mov ecx, ebp
lea esi, [edi + 0x1098]
mov dword [eax + 4], eax
mov eax, dword [ebx]
lea edx, [ecx + 2]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
mov eax, dword [esi]
mov dword [esi + 4], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100154c0
sub ecx, edx
sar ecx, 1
je 0x10015652
push esi
push ebp
mov ecx, edi
call fcn.10015680
xor eax, eax
push 0x208
push eax
mov word [esp + 0x254], ax
lea eax, [esp + 0x256]
push eax
call fcn.1002ee90
add esp, 0xc
mov dword [esp + 0x38], 0x104
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
push 0x208
push eax
mov word [esp + 0x45a], ax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call fcn.1002ee90
add esp, 0xc
mov dword [esp + 0x38], 0x104
cmp dword [edi + 0x103c], 0
jne 0x1001555d
push str.AdvApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x103c], eax
push str.GetUserNameW
push dword [edi + 0x103c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001557e
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x40]
push ecx
call eax
xor eax, eax
mov word [esp + 0x242], ax
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x100155cc
mov edi, eax
cmp byte [edi + 0x69c], 1
jne 0x100155c9
lea eax, [esp + 0x24c]
push eax
push edi
call fcn.1002fbbc
add esp, 8
test eax, eax
jne 0x100155c7
lea eax, [esp + 0x3c]
push eax
lea eax, [edi + 0x280]
push eax
call fcn.1002fbbc
add esp, 8
test eax, eax
je 0x100155cc
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x10015652
lea ecx, [esp + 0x3c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100155e0
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x258]
push eax
push 0
call fcn.10015220
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x24]
call fcn.10002800
mov dword [esp + 0x468], 0
movzx eax, byte [0x100552e5]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.10016d20
mov dword [esp + 0x468], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.10002860
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.1002d43e
add esp, 0x458
ret
Function at 0x10015e30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1003eb18
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
push 0x100552e8
mov dword [esp + 0xc], 0x100552e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x18], 0
lea eax, [esi + 0xc20]
cmp word [eax], 0
je 0x10015e8f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.10015440
mov dword [esp + 0x18], 0xffffffff
push 0x100552e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1002d43e
add esp, 0x14
ret
Function at 0x100181c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003efe6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 4], ecx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [esp + 8], ecx
mov byte [ecx], 0
mov dword [esp + 0x14], 0
mov byte [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [esp + 0x14], 1
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1003f240
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.10002fb0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x100192e0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x100192e0
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x100192e0
lea eax, [ecx - 2]
push eax
push ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10013480
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.10004c80
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.10002860
lea ecx, [esp + 0x24]
call fcn.10013390
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x1001931f
push dword [esp + 0x24]
call fcn.1002dcc0
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1002d43e
add esp, 0x44
ret
Function at 0x10019360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1003f240
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.10002fb0
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x10019430
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x10019430
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x10019430
lea eax, [ecx - 2]
push eax
push ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10013480
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.10004c80
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.10002860
lea ecx, [esp + 0x24]
call fcn.10013390
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001945b
test al, 0x10
jne 0x1001945b
mov bl, 1
jmp 0x1001945d
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x10019478
push dword [esp + 0x24]
call fcn.1002dcc0
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1002d43e
add esp, 0x44
ret
Function at 0x100198d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1003f339
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.1002dde1
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x10047a24
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.10002d50
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.1001c000
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x100199b4
push dword [esp + 0x18]
call fcn.1002dcc0
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x10019ef0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x1003f468
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x10019f32
xor al, al
jmp 0x10019ff7
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x10019f48
mov eax, dword [edi]
test eax, eax
je 0x10019f48
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10019fd2
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x100199f0
push 0
push 0
call fcn.1002fea2
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x10019fbb
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x10019fa6
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10019fbb
mov bl, 1
jmp 0x10019fd4
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x10019fca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10019ba0
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
test edi, edi
je 0x10019ff5
mov eax, dword [edi]
test eax, eax
je 0x10019fed
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1002d43e
add esp, 0x14
ret
Function at 0x1001a460
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x110
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.1002ee90
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001a4f0
cmp dword [esp + 0x10], 6
jb 0x1001a4f0
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.1001a310
add esp, 0xc
test al, al
je 0x1001a4f0
cmp word [esi], 0
je 0x1001a4f0
mov al, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1002d43e
add esp, 0x120
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0x104
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.1001a310
add esp, 0xc
test al, al
je 0x1001a51c
cmp word [esi], 0
jne 0x1001a4d8
lea eax, [esp + 4]
mov dword [esp + 4], 0x104
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.1001a310
add esp, 0xc
test al, al
je 0x1001a548
cmp word [esi], 0
jne 0x1001a4d8
mov ecx, dword [esp + 0x120]
xor al, al
pop esi
xor ecx, esp
call fcn.1002d43e
add esp, 0x120
ret
Function at 0x1001ab00
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x2848
call fcn.1003ab40
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x2844], eax
push ebx
push esi
push 0x1ffe
xor ebx, ebx
lea eax, [esp + 0x852]
push ebx
push eax
mov esi, ecx
call fcn.1002ee90
add esp, 0xc
mov eax, 0x22
mov word [esp + 0x84c], ax
test esi, esi
je 0x1001acfc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x1001acfc
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x854]
push eax
call esi
push 0x10048d3c
lea eax, [esp + 0x854]
push eax
call esi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1001ace2
push str.ShellExecuteW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x1001ace2
push edi
lea ecx, [esp + 0x1c]
call fcn.1001a560
xor edi, edi
lea esi, [esp + 0x1c]
lea esp, [esp]
cmp word [esi], bx
je 0x1001abe0
push 1
push 0
lea eax, [esp + 0x85c]
push eax
push esi
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x1001abee
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1001abc0
jmp 0x1001ac10
imul ebx, edi, 0x210
cmp dword [esp + ebx + 0x224], 0
mov ebx, dword [esp + ebx + 0x228]
jne 0x1001ac08
add ebx, 0x10
test ebx, ebx
jne 0x1001acbd
push 1
push 0
push 0
lea eax, [esp + 0x860]
push eax
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x1001acb8
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [esp + 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [esp + 0x18], str._programfiles_Internet_Exploreriexplore.exe
xor eax, eax
push 0x206
push eax
mov word [esp + 0x654], ax
lea eax, [esp + 0x656]
push eax
call fcn.1002ee90
add esp, 0xc
lea eax, [esp + 0x64c]
push 0x103
push eax
push dword [esp + esi*4 + 0x1c]
call edi
lea eax, [esp + 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001acb0
push 1
push 0
lea eax, [esp + 0x85c]
push eax
lea eax, [esp + 0x658]
push eax
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x1001acb8
inc esi
cmp esi, 2
jb 0x1001ac48
jmp 0x1001acbd
mov ebx, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2844]
xor ecx, esp
call fcn.1002d43e
add esp, 0x2848
ret
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2844]
xor ecx, esp
call fcn.1002d43e
add esp, 0x2848
ret
mov ecx, dword [esp + 0x284c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.1002d43e
add esp, 0x2848
ret
Function at 0x1001ad40
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1001ad5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov byte [esi + 9], 0
mov eax, dword [esp + 8]
cmp dword [eax + 0x10], 0
je 0x1001ad70
cmp dword [eax + 0x14], 8
jb 0x1001ad72
mov eax, dword [eax]
jmp 0x1001ad72
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x1001ada6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov edx, 2
cmp eax, 0xb7
cmove ecx, edx
cmp dword [esi + 4], 0
mov dword [esi], ecx
setne al
pop esi
ret 4
cmp dword [esi + 4], 0
mov dword [esi], 1
setne al
pop esi
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x1003f516
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.10002fb0
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x1001aeab
push 3
push 0x100491dc
lea ecx, [esi + 0x1c]
call fcn.10002d50
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x1001b280
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x1001b28d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1001b288
cmp dword [eax], 0xffffffff
je 0x1001b288
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x1001b340
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1001b36d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1002d43e
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001b359
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001b3a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1001b3a7
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1002d43e
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.1002d43e
add esp, 8
ret 4
Function at 0x1001b460
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1001b47a
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1001b3d0
test al, al
je 0x1001b46e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.1001b3d0
test al, al
je 0x1001b46e
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x1001b4e7
cmp dword [esp + 0x14], edi
jne 0x1001b4e7
mov eax, dword [esi]
test eax, eax
jne 0x1001b4d4
xor bl, bl
jmp 0x1001b4e7
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001b4d0
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.1001b3d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8

Function at 0x1001c0b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.1002ee90
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1001c127
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.10002890
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1002d43e
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.1002d43e
add esp, 0x210
ret
Function at 0x1001c160
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x1003f708
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10052120]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x10052120]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x1001c19e
mov eax, dword [esi]
jmp 0x1001c1a0
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x1001c1a8
mov ecx, dword [edi]
push 0xb
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1001c27f
cmp dword [esi + 0x14], 8
jb 0x1001c1c4
mov eax, dword [esi]
jmp 0x1001c1c6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001c2bc
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.10002fb0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.1001c690
test al, al
je 0x1001c28a
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x1001c237
mov ecx, dword [esi]
jmp 0x1001c239
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1001c28a
cmp dword [esi + 0x14], 8
jb 0x1001c24f
mov eax, dword [esi]
jmp 0x1001c251
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x1001c259
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0xc]
test eax, eax
je 0x1001c283
call fcn.1001c2e0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.10002860
mov al, 1
jmp 0x1001c2be
mov edx, esi
call fcn.1001c140
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1001c2a5
push dword [esp + 0xc]
call fcn.1002dcc0
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1002d43e
add esp, 0x28
ret