joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000aff0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10026860
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002e080]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x1000b193
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1000b193
call fcn.10011b90
push esi
call fcn.10011c50
push 0x48
lea eax, [esi + 0x20]
push ebx
push eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
call fcn.10017090
mov ecx, dword [edi + 0x250]
mov dword [esi + 0x70], ecx
mov edx, dword [edi + 0x254]
mov dword [esi + 0x74], edx
mov eax, dword [edi + 0x258]
mov ecx, dword [edi + 0x25c]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
add esp, 0xc
mov dword [edi + 0x298], ebx
mov dword [edi + 0x29c], ebx
mov dword [edi + 0x2a0], ebx
mov dword [edi + 0x2a4], ebx
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [edi + 0xc]
cmp ecx, 0x1f4
jb 0x1000b0ed
lea ecx, [edi + 0x1c]
mov dword [edi + 0xc], eax
cmp ecx, ebx
je 0x1000b0e3
mov edx, dword [edi + 0x14]
call fcn.10012c10
mov edx, dword [edi + 0x14]
xor ecx, ecx
call fcn.10012ba0
lea eax, [edi + 0x1c]
lea ecx, [esp + 0x14]
call fcn.10002750
test byte [esp + 0x10], 0x10
je 0x1000b111
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.1000bca0
jmp 0x1000b129
mov dword [esp + 0x40], 1
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.1000b3b0
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1000b145
mov eax, dword [esp + 0x14]
push eax
call fcn.10013b8f
add esp, 4
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 7
call fcn.10011f80
fstp qword [esi + 0x60]
fld qword [edi + 0x230]
call fcn.10023fa0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [edi + 0xc]
cmp edx, 0x1f4
jb 0x1000b193
mov dword [edi + 0xc], eax
cmp esi, ebx
jl 0x1000b193
mov edx, dword [edi + 0x14]
mov ecx, esi
call fcn.10012ba0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x1000cea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026500
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ZwCreateFile
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x48]
mov dword [0x100304ec], eax
call fcn.10013510
mov dword [ebp - 4], 0
push str.UpdateUpdate.ini
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100080e0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x1000cf1b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10013b8f
add esp, 4
mov eax, dword [ebp - 0x2c]
xor edx, edx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
jae 0x1000cf3b
lea eax, [ebp - 0x2c]
push eax
push 6
push str.Nshow
push str.Samefrag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
imul eax, eax, 0xe10
mov dword [0x1002f568], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x1000cf72
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10013b8f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x1000d280
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push ebx
mov ebx, ecx
mov ecx, dword [esi]
push edi
cmp ecx, eax
je 0x1000d2c7
mov edx, dword [ebp - 0x214]
push edx
push eax
call fcn.1000db10
mov edi, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x214], eax
call fcn.1000dad0
mov eax, dword [ebp - 0x214]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1000d2f8
mov edx, dword [ebp - 0x214]
push edx
push eax
call fcn.1000db10
mov edi, dword [esi + 0x14]
add esp, 8
mov dword [ebp - 0x214], eax
call fcn.1000dad0
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x14], eax
cmp dword [0x10032008], 0
je 0x1000d398
mov edi, 8
cmp dword [ebx + 0x14], edi
jb 0x1000d313
mov eax, dword [ebx]
jmp 0x1000d315
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000d398
test al, 0x10
je 0x1000d398
push esi
call fcn.1000d6b0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.10017090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp dword [ebx + 0x10], 3
ja 0x1000d398
cmp dword [ebx + 0x14], edi
jb 0x1000d368
mov ebx, dword [ebx]
push 3
lea ecx, [ebp - 0x210]
push ecx
push ebx
call fcn.10015258
add esp, 0xc
test eax, eax
jne 0x1000d398
mov edx, dword [0x1002f5dc]
cmp dword [0x1002f5f0], edi
jae 0x1000d391
mov edx, 0x1002f5dc
mov ecx, esi
call fcn.1000d3b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x1000d3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100264c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1002e080]
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, edx
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
cmp esi, ebx
jne 0x1000d3ef
mov eax, 0x1002a5fc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000d402
xor eax, eax
jmp 0x1000d519
mov dword [ebp - 0x1c], ebx
test al, 0x10
je 0x1000d4a6
xor eax, eax
mov word [ebp - 0x2c], ax
mov edi, 7
mov eax, esi
mov dword [ebp - 0x18], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000d420
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.10002660
mov dword [ebp - 4], ebx
mov ecx, esi
push ecx
lea esi, [ebp - 0x48]
call fcn.10013600
add esp, 4
mov byte [ebp - 4], 2
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x1000d465
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10013b8f
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.1000d870
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x1000d494
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10013b8f
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
jmp 0x1000d514
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
lea edx, [eax + 2]
jmp 0x1000d4c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000d4c0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.10002660
mov dword [ebp - 4], 3
add edi, 0x10
mov ecx, esi
call fcn.1000d870
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x1000d504
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10013b8f
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov eax, 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.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x1000d6b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026928
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1002e080]
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 eax, dword [ebp + 8]
xor edi, edi
push 0x1000
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0x1000
call fcn.10013b84
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
cmp esi, edi
jne 0x1000d711
push edi
push edi
push edi
push 0x6e6577
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x1000
push edi
push esi
call fcn.10017090
mov dword [ebp - 4], edi
push str.Config.ini
lea ecx, [ebp - 0x2c]
push 0x1002f5c0
push ecx
call fcn.10001900
add esp, 0x18
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x4c], edi
mov edi, 8
jmp 0x1000d750
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.10013750
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x1000d76a
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], edi
jb 0x1000d771
mov eax, dword [eax]
push ecx
push 0x800
push esi
push 0x1002a5fc
push eax
push str.ExcludeList
call ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], edi
jb 0x1000d79a
mov edx, dword [ebp - 0x48]
push edx
call fcn.10013b8f
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d7b3
sub eax, edx
sar eax, 1
je 0x1000d7d6
mov ecx, dword [ebp - 0x58]
mov edx, esi
call fcn.1000d3b0
inc dword [ebp - 0x4c]
jmp 0x1000d750
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x1000d7eb
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10013b8f
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x1000d814
push esi
call fcn.10014cb1
add esp, 4
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e370
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
push edi
sar eax, 2
mov dword [esp + 0xc], 0
test eax, eax
je 0x1000e490
cmp dword [0x10032004], 0
jne 0x1000e490
cmp dword [section.sdcoredl], 0
je 0x1000e3c1
jmp 0x1000e3b0
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [section.sdcoredl], 0
jne 0x1000e3b0
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, dword [esp + 0xc]
inc eax
sar ecx, 2
mov edx, ebx
mov dword [esp + 0x10], eax
call fcn.10005ef0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx + 0xc]
cmp ecx, 0x1f4
jb 0x1000e3ff
mov dword [ebx + 0xc], eax
test edi, edi
js 0x1000e3ff
mov edx, dword [ebx + 0x14]
mov ecx, edi
call fcn.10012ba0
mov edx, dword [esi]
mov eax, dword [esp + 0xc]
mov edi, dword [edx + eax*4]
lea ecx, [edi + 0x38]
test ecx, ecx
je 0x1000e478
mov edx, dword [edi + 0x2c]
sub edx, dword [edi + 0x28]
sar edx, 4
cmp edx, 1
jbe 0x1000e478
cmp dword [edi], 2
je 0x1000e478
push edi
call fcn.1000b1c0
add esp, 4
test eax, eax
jne 0x1000e478
mov dword [edi], 2
add dword [esi + 0x40], 1
adc dword [esi + 0x44], eax
mov ecx, dword [edi + 0x18]
add dword [esi + 0x48], ecx
mov edx, dword [edi + 0x1c]
adc dword [esi + 0x4c], edx
mov ecx, dword [edi + 8]
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x68]
adc dword [esi + 0x54], eax
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 0x6c]
mov edi, dword [edi + 0x14]
cmp eax, edi
ja 0x1000e46e
jb 0x1000e467
cmp ecx, edx
jae 0x1000e46e
xor eax, eax
mov dword [esi + 0x68], eax
jmp 0x1000e475
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], eax
mov edx, dword [esi + 4]
sub edx, dword [esi]
mov eax, dword [esp + 0x10]
sar edx, 2
mov dword [esp + 0xc], eax
cmp eax, edx
jb 0x1000e395
fld qword [ebx + 0x240]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fldcw word [esp + 0xc]
cmp ecx, 1
ja 0x1000e4c2
mov ecx, 1
fld qword [ebx + 0x238]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [ebx + 8]
fldcw word [esp + 0xc]
cmp eax, ecx
jbe 0x1000e4f5
mov ecx, eax
fld qword [ebx + 0x230]
mov dword [ebx + 8], ecx
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov esi, dword [esp + 0x10]
dec esi
fldcw word [esp + 0xc]
cmp ecx, esi
jae 0x1000e527
mov esi, ecx
mov dword [ebx + 8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx + 0xc]
cmp ecx, 0x1f4
jb 0x1000e54e
mov dword [ebx + 0xc], eax
test esi, esi
js 0x1000e54e
mov edx, dword [ebx + 0x14]
mov ecx, esi
call fcn.10012ba0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ed40
Capabilities:
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1000ee3a
cmp ebx, 0xffffffff
je 0x1000ee3a
push edi
push 0x60
lea edi, [esi + 0x298]
push 0
push edi
mov dword [ebp - 4], 0
call fcn.10017090
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push 0x60
push edi
push 0
push 0
push 0x90064
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x1000ee3a
mov ecx, dword [esi + 0x228]
test ecx, ecx
je 0x1000edb9
mov edx, dword [esi + 0x2ac]
mov eax, dword [esi + 0x2a8]
push edx
push eax
mov eax, dword [esi + 0x14]
call fcn.10003230
mov eax, dword [esi + 0x2c8]
mov dword [esi + 0x300], eax
test eax, eax
je 0x1000ee3a
mov edx, dword [esi + 0x2ac]
mov ecx, dword [esi + 0x2a8]
push 0
push eax
mov dword [esi + 0x254], edx
mov edx, dword [esi + 0x2d4]
mov dword [esi + 0x250], ecx
lea ecx, [eax + 0xf]
mov eax, dword [esi + 0x2d0]
push edx
push eax
mov dword [esi + 0x304], ecx
call fcn.1001b9e0
mov dword [esi + 0x2f8], eax
mov dword [esi + 0x2fc], edx
mov esi, dword [esi + 0x2c4]
test esi, esi
jne 0x1000ee1b
mov esi, 0x1000
push 0
push esi
push 0
push 0x80000000
call fcn.1001aae0
pop esi
mov dword [0x1002f564], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ee50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10026860
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002e080]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000ef88
mov ecx, dword [edi + 0x2fc]
mov eax, dword [edi + 0x2f8]
test ecx, ecx
jne 0x1000eeb8
cmp eax, 1
ja 0x1000eeb8
mov eax, 1
mov dword [edi + 0x2f8], eax
mov dword [edi + 0x2fc], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000eed2
sub eax, edx
sar eax, 1
cmp eax, 3
ja 0x1000eef2
mov eax, edi
call fcn.1000f4f0
jmp 0x1000ef79
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.10002750
test bl, 0x10
je 0x1000ef34
xor esi, esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x14]
push eax
call fcn.1000f7a0
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1000ef2e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10013b8f
add esp, 4
mov dword [esp + 0x24], esi
jmp 0x1000ef6a
mov dword [esp + 0x40], 1
lea eax, [esp + 0x14]
push eax
call fcn.1000f920
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1000ef62
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10013b8f
add esp, 4
mov dword [esp + 0x24], 0
xor edx, edx
mov word [esp + 0x14], dx
mov dword [esp + 0x28], 7
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x1000ef88
call fcn.10011f80
fstp qword [ecx + 0x60]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x10010b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100259db
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [ebp - 4], edi
fldz
fstp qword [esi + 0x44]
mov dword [esi + 0x4c], edi
push edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call fcn.10014c60
fldz
mov dword [ebp - 0x18], eax
fstp qword [ebp - 0x24]
add esp, 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edi
call fcn.10011a30
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002530b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
cmp ecx, edx
je 0x10010c73
mov eax, edx
cmp edx, edx
je 0x10010c70
lea esp, [esp]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0xc], ebx
add eax, 0x10
add ecx, 0x10
cmp eax, edx
jne 0x10010c50
mov dword [esi + 0x38], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x10010c8a
push eax
call fcn.10013b8f
add esp, 4
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100120a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x1002e080]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push 0x21c
lea eax, [esp + 0x18]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.10017090
add esp, 0xc
cmp esi, ebx
jne 0x100120e4
mov esi, 0x1002a5fc
push 0x1002a468
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.10013c67
add esp, 0xc
cmp dword [esp + 0xc], ebx
je 0x100121b3
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
sar ecx, 2
xor esi, esi
cmp ecx, ebx
jbe 0x100121a6
cmp esi, ecx
jae 0x10012193
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + esi*4]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + esi*4]
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + esi*4]
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
cmp ecx, 1
je 0x10012155
cmp ecx, 2
je 0x10012155
mov dword [esp + 0x14], ebx
mov eax, dword [eax + esi*4]
push 0x103
add eax, 0x38
push eax
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.10014cbc
mov eax, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x28]
xor edx, edx
push 0x220
push ecx
mov word [esp + 0x24e], dx
call fcn.10014130
add esp, 0x20
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x10012119
mov edx, dword [esp + 0xc]
push edx
call fcn.10013f65
add esp, 4
mov ecx, dword [esp + 0x234]
pop esi
pop ebx
xor ecx, esp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret
Function at 0x10012820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026350
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x10012947
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10012860
sub ecx, esi
sar ecx, 1
je 0x10012947
xor ecx, ecx
mov word [ebp - 0x48], cx
mov ecx, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10012890
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.10002660
mov dword [ebp - 4], edi
mov edx, esi
push edx
lea esi, [ebp - 0x2c]
call fcn.10013600
add esp, 4
mov byte [ebp - 4], 2
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x100128d3
mov eax, dword [ebp - 0x48]
push eax
call fcn.10013b8f
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jae 0x100128ee
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001290d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], esi
jae 0x10012908
lea eax, [ebp - 0x2c]
xor edx, edx
mov word [eax], dx
push edi
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
mov ecx, 0x1002f5dc
call fcn.100021b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x10012937
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10013b8f
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
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.10013b9a
mov esp, ebp
pop ebp
ret 4