joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404381
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x414c0e]
test eax, eax
jg 0x404394
and dword [0x4149ac], 0
xor eax, eax
ret
push esi
mov esi, 0x800
push edi
cmp eax, esi
ja 0x4043a1
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x4149a8]
push dword [0x413ca0]
call edi
cmp dword [0x413cb0], 0
mov dword [0x4149ac], eax
je 0x40440c
cmp eax, 0xffffffff
je 0x40440c
cmp eax, esi
je 0x40441c
test eax, eax
js 0x40440c
mov ax, word [section..data]
push dword [0x413cb4]
inc ax
movzx eax, ax
push eax
call fcn.00401b92
mov eax, dword [0x4149ac]
test eax, eax
jne 0x404405
push esi
push dword [0x4149a8]
push dword [0x413ca0]
call edi
mov dword [0x4149ac], eax
cmp eax, 0xffffffff
je 0x40440c
mov esi, eax
cmp eax, esi
je 0x40441c
push 2
call fcn.0040262c
mov eax, dword [0x4149ac]
sub dword [0x414c0e], eax
cmp dword [0x413ca4], 0
mov esi, dword [0x4149a8]
mov dword [0x4152a8], esi
je 0x404457
mov edi, eax
test edi, edi
je 0x404457
call fcn.00405e72
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405e8c
inc esi
dec edi
pop ecx
jne 0x40443d
mov eax, dword [0x4149ac]
mov ecx, eax
dec eax
pop edi
mov dword [0x4149ac], eax
mov eax, ecx
pop esi
ret

Function at 0x405e8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x414970]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x414c20]
mov ecx, dword [0x414978]
mov dword [0x414970], eax
movzx eax, al
add eax, dword [0x414974]
imul eax, eax, 0x8088405
inc eax
mov dword [0x414974], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x414c20]
mov dword [0x414978], ecx
ret

Function at 0x405f18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x411198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x413cac]
mov esi, ecx
call fcn.00405ee0
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401167
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00405e72
movzx ecx, byte [edx]
xor eax, ecx
mov byte [edx], al
movzx eax, al
push eax
call fcn.00405e8c
inc esi
pop ecx
cmp esi, 0xc
jl 0x405f47
cmp dword [0x413ca8], 0
movzx eax, byte [ebp - 5]
pop esi
je 0x405f86
movzx ecx, byte [0x414c07]
cmp ax, cx
je 0x405f8f
or eax, 0xffffffff
jmp 0x405f91
movzx ecx, byte [0x414c0d]
jmp 0x405f7c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060d3
leave
ret

Function at 0x4060d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411198]
jne 0x4060dd
repz ret
jmp fcn.00407681
Function at 0x40cb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004071b8
and dword [ebp - 0x14], 0
cmp dword [0x414948], 0
mov dword [ebp - 0x18], eax
jne 0x40cc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ccc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40fc54
push ebx
call edi
test eax, eax
je 0x40ccc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x414948], eax
call edi
push eax
call esi
push 0x40fc30
push ebx
mov dword [0x41494c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x414950], eax
call edi
push eax
call esi
mov dword [0x414958], eax
test eax, eax
je 0x40cc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x414954], eax
mov eax, dword [0x414954]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cc78
cmp dword [0x414958], ecx
je 0x40cc78
push eax
call esi
push dword [0x414958]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cc78
test ebx, ebx
je 0x40cc78
call edi
test eax, eax
je 0x40cc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cc6f
test byte [ebp - 8], 1
jne 0x40cc78
or dword [ebp + 0x10], 0x200000
jmp 0x40ccab
mov eax, dword [0x41494c]
cmp eax, dword [ebp - 0x18]
je 0x40ccab
push eax
call esi
test eax, eax
je 0x40ccab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ccab
mov eax, dword [0x414950]
cmp eax, dword [ebp - 0x18]
je 0x40ccab
push eax
call esi
test eax, eax
je 0x40ccab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x414948]
call esi
test eax, eax
je 0x40ccc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ccc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004060d3
leave
ret
Function at 0x10002e90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0b9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100d703c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.10002b90
mov ecx, edi
call fcn.10003050
test al, al
jne 0x10002ee2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x174
call fcn.1009ea7d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 7
mov word [esi + 0x14], ax
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov byte [ebp - 4], 2
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
mov byte [ebp - 4], 3
lea eax, [esi + 0x60]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 5
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], 0xffffffff
mov dword [eax + 0x40], 0x50
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [ebp - 4], 6
lea ecx, [esi + 0xac]
call fcn.10004830
mov byte [ebp - 4], 7
lea eax, [esi + 0x114]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 8
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 9
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], 7
mov word [eax + 0x30], cx
mov byte [ebp - 4], 0xa
mov dword [eax + 0x48], 0x64
mov byte [eax + 0x4c], 1
mov byte [ebp - 4], 0xb
mov dword [esi + 0x16c], 0x64
mov byte [esi + 0x170], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0x1c]
mov dword [edi], esi
push eax
lea eax, [edi + 4]
mov ecx, esi
push eax
call fcn.10004990
test al, al
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100d703c]
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 - 0x64], ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x100030a5
xor al, al
jmp 0x10003232
mov eax, dword [ebp - 0x5c]
mov esi, 1
mov dword [ebp - 0x60], esi
cmp eax, esi
jle 0x10003229
nop dword [eax + eax]
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x1000321d
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100030f2
sub eax, edi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.10003a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 8
push str.mapping
push 0
call fcn.10003dc0
add esp, 0xc
lea ecx, [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000318d
push 0xffffffffffffffff
add eax, 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100035a0
mov esi, eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x64]
add edi, 4
cmp edi, esi
je 0x10003184
mov ecx, edi
call fcn.10003a00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
jmp 0x10003200
mov edx, dword [ebp - 0x18]
cmp edi, 8
push 6
cmovae ecx, dword [ebp - 0x28]
push str.mutex
push 0
call fcn.10003dc0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10003208
push 0xffffffffffffffff
add eax, 6
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100035a0
mov esi, eax
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x64]
add edi, 0x1c
cmp edi, esi
je 0x100031f9
mov ecx, edi
call fcn.10003a00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10003a00
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
inc esi
mov dword [ebp - 0x60], esi
cmp esi, eax
jl 0x100030c0
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
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.1009ea6c
mov esp, ebp
pop ebp
ret
Function at 0x10004510
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.100041e0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x1000457a
cmp eax, 0x3ff
ja 0x1000457a
jne 0x10004580
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ea6c
mov esp, ebp
pop ebp
ret
Function at 0x1000aa50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1f2c
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x260]
mov dword [esi], 0
push 0
push eax
call fcn.1009cb90
add esp, 8
mov dword [ebp - 4], 0
xor eax, eax
push 0xf
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.PdfCompress.dll
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10003a60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100100d0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.10003a00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
call fcn.1009bc60
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x1000ab55
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.10003a00
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 8
cmovae eax, dword [ebp - 0x248]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi], eax
test ebx, ebx
je 0x1000ab9d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.10003a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.10003a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009ea6c
mov esp, ebp
pop ebp
ret
Function at 0x1000cf70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2568
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100d703c]
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 edi, dword [esi + 8]
test edi, edi
jne 0x1000cfab
xor al, al
jmp 0x1000d04f
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x1000cfc7
mov eax, dword [edi]
test eax, eax
je 0x1000cfc7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1000d02c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1000cb10
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1000d06b
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1000d024
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1000ccd0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000d04d
mov eax, dword [edi]
test eax, eax
je 0x1000d046
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
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.1009ea6c
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000d083
push ecx
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 0x1000d00e
mov bl, 1
jmp 0x1000d02e
Function at 0x1000f4d0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.1000e3c0

Function at 0x1000f720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1000f748
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1000f78c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1009ea6c
add esp, 0x418
ret
cmp eax, 0x208
jae 0x1000f774
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000f7a4
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10003a60
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.1009ea6c
add esp, 0x418
ret

Function at 0x10011490
Capabilities:
Read file on windows

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

Function at 0x100114d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1001150a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1001150a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001150a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001150a
cmp edi, dword [esi]
jne 0x1001150a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10011550
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100d703c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100115b3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100115b3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001158e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100115b3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1009ea6c
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1009ea6c
add esp, 8
ret 4
Function at 0x10011690
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2a48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100d703c]
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
mov edi, ecx
cmp esi, 0xffffffff
jne 0x100116c8
xor al, al
jmp 0x10011747
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100116d8
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x100116ea
mov al, 1
jmp 0x10011747
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10011cc0
test al, al
je 0x10011734
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10011734
mov bl, 1
jmp 0x10011736
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov al, bl
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.1009ea6c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2a48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100d703c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100117a6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001180a
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10011cc0
test al, al
je 0x100117fb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
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.1009ea6c
mov esp, ebp
pop ebp
ret
Function at 0x10011830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2d60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100d703c]
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
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10011867
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1001187b
mov al, 1
jmp 0x10011a02
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10011885
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100118b0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10011770
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
cmp ebx, 0xffffffff
jne 0x100118f8
xor al, al
jmp 0x10011a02
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10011902
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011930
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003a60
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10011690
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
test bl, bl
je 0x100118f1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10011979
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x10011874
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10011cc0
test al, al
je 0x100119c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x100119c3
mov bl, 1
jmp 0x100119f1
cmp dword [esi + 0x14], 8
jb 0x100119cb
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
call fcn.10003770
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10011690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10003a00
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov al, bl
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.1009ea6c
mov esp, ebp
pop ebp
ret