joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.100147e0
mov esi, dword [0x100e7cec]
push 0x100c8680
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x10008d4c
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10008d4c
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10008d4c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x10008d4c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10008d4c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10008d45
push edi
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10008d45
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10008d45
call fcn.10024ed0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
je 0x10008d4c
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
je 0x10008d2d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x10008d4c
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x8c], edi
test ecx, ecx
je 0x10008d4c
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x10008d4c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [0x100e617a]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
test al, al
je 0x10008d65
mov dword [esp + 0x14], 0
jmp 0x10008d7a
push 0x60
push dword [0x100e61dc]
push 0
call esi
mov dword [esp + 0x14], eax
mov al, byte [0x100e617a]
test al, al
je 0x10008d88
mov dword [esp + 0x1c], 0x1c
jmp 0x10008d9d
push 0x60
push dword [0x100e61d4]
push 0x1c
call esi
mov dword [esp + 0x1c], eax
mov al, byte [0x100e617a]
test al, al
je 0x10008da8
mov ebp, 0x14
jmp 0x10008dbb
push 0x60
push dword [0x100e61d4]
push 0x14
call esi
mov ebp, eax
mov al, byte [0x100e617a]
test al, al
je 0x10008dc6
mov edi, 0x18
jmp 0x10008dd9
push 0x60
push dword [0x100e61dc]
push 0x18
call esi
mov edi, eax
mov al, byte [0x100e617a]
test al, al
je 0x10008de4
mov eax, 0x18
jmp 0x10008df0
push 0x60
push dword [0x100e61dc]
push 0x18
call esi
mov dword [ebx + 0x90], eax
lea ecx, [ebx + 0x80]
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x9c], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x94], ebp
mov dword [ebx + 0xa0], eax
push dword [ebx + 4]
call fcn.100148c0
push 0
push 0
push 0x680
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 4
Function at 0x10012780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aef14
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100e6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
lea eax, [esi + 0x30]
mov dword [esi], vtable.RC::RCRCOwnerDrawEdit.0
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 6
lea eax, [esi + 0x58]
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 8
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0xffffff
mov dword [esi + 0x2c], 0x333333
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100140a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
call fcn.100147e0
mov esi, dword [0x100e7cec]
push 0x100c8680
push 0x6b
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x100141b0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100141b0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100141b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x100141b0
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100141b0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x100141a9
push edi
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x100141a9
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100141a9
call fcn.10024ed0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
je 0x100141b0
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
je 0x10014191
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x100141b0
mov ecx, dword [ebx + 0x84]
mov dword [ebx + 0x84], edi
test ecx, ecx
je 0x100141b0
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x100141b0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [0x100e617a]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
test al, al
je 0x100141c6
mov ebp, 0xa
jmp 0x100141d9
push 0x60
push dword [0x100e61dc]
push 0xa
call esi
mov ebp, eax
mov al, byte [0x100e617a]
test al, al
je 0x100141e7
mov dword [esp + 0x10], 0xa
jmp 0x100141fc
push 0x60
push dword [0x100e61dc]
push 0xa
call esi
mov dword [esp + 0x10], eax
mov al, byte [0x100e617a]
test al, al
je 0x10014207
mov edi, 0xa
jmp 0x1001421a
push 0x60
push dword [0x100e61dc]
push 0xa
call esi
mov edi, eax
mov al, byte [0x100e617a]
test al, al
je 0x10014225
mov eax, 0xa
jmp 0x10014231
push 0x60
push dword [0x100e61dc]
push 0xa
call esi
mov dword [ebx + 0x88], eax
lea ecx, [ebx + 0x78]
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x90], edi
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], ebp
mov dword [ebx + 0x98], 0
push dword [ebx + 4]
call fcn.100148c0
or byte [ebx + 0x80], 1
lea ecx, [ebx + 0x78]
call fcn.10014e10
push dword [ebx + 4]
lea ecx, [ebx + 0x78]
call fcn.10014da0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
Function at 0x10014da0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x10014de2
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10014ddd
test edi, 0x21000000
jne 0x10014ddd
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x10014de8
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x10014df9
mov ecx, esi
call fcn.100154c0
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4
Function at 0x10016ba0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af640
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100e6008]
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 + 0x10], 0
jne 0x10016bda
xor al, al
jmp 0x10016d95
call fcn.10016ae0
test al, al
je 0x10016bea
mov al, 1
jmp 0x10016d95
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016bf4
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x10016c47
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], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1001d9a0
test al, al
je 0x10016c38
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006d80
mov ecx, esi
call fcn.10016ae0
test al, al
jne 0x10016be3
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10016d28
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x10016c6e
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x10016c91
mov eax, esi
cmp ecx, 8
jb 0x10016c87
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x10016d1e
push edi
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1000eb00
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x10016d0f
lea ecx, [ebp - 0x40]
call fcn.10016910
test al, al
jne 0x10016d0f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x10016d0f
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 byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.1001d9a0
test al, al
je 0x10016d03
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10006d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10006d80
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x10016c62
mov ecx, esi
call fcn.10016910
test al, al
jne 0x10016d8e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016d3d
mov eax, dword [esi]
push 0
push eax
call ebx
test eax, eax
jne 0x10016d8e
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], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1001d9a0
test al, al
je 0x10016d7f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006d80
mov ecx, esi
call fcn.10016ae0
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.100ab466
mov esp, ebp
pop ebp
ret
Function at 0x100179a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x100e6008]
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 0x100179c8
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 0x10017a0c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.100ab466
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100179f4
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 0x10017a24
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10006df0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.100ab466
add esp, 0x418
ret

Function at 0x10018860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100e6008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100188de
cmp dword [esp + 0x14], 6
jb 0x100188de
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.100186c0
add esp, 0xc
test al, al
je 0x100188de
cmp word [esi], 0
jne 0x10018936
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.100186c0
add esp, 0xc
test al, al
je 0x1001890a
cmp word [esi], 0
jne 0x10018936
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.100186c0
add esp, 0xc
test al, al
je 0x1001894b
cmp word [esi], 0
je 0x1001894b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100ab466
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.100ab466
mov esp, ebp
pop ebp
ret
Function at 0x10018f40
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.100aca00
push 0xffffffffffffffff
push 0x100afa58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x10019141
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x10019141
push esi
call edi
cmp eax, 0xffa
jge 0x10019141
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x100c3354
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.10006a90
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.1001c550
mov ecx, eax
call fcn.1001c610
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10006d80
test esi, esi
je 0x10019141
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10019141
lea ecx, [ebp]
call fcn.10018960
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x10019066
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x10019074
inc edi
add esi, 0x210
cmp edi, 3
jl 0x10019045
jmp 0x10019096
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x1001908e
add ebx, 0x10
test ebx, ebx
jne 0x1001913d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10019138
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], 0x100c7ab0
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001912e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10019138
inc esi
cmp esi, 2
jb 0x100190d0
mov eax, ebx
jmp 0x10019143
mov ebx, 0x10
mov eax, ebx
jmp 0x10019143
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.100ab466
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x10019270
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100e6008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push pe_nt_image_headers32
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100193b2
cmp dword [esi + 4], 6
push edi
ja 0x100192c6
jne 0x1001934e
cmp dword [esi + 8], 2
jb 0x1001934e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1001934e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001934e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001934e
movups xmm0, xmmword [0x100c7e60]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100c7e70]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1001934e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001934e
cmp word [edi + 2], ax
jbe 0x1001934e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10019399
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10019399
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100ab466
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100ab466
add esp, 0x140
ret

Function at 0x10019a70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10019aa8
mov edx, dword [esp + 4]
test edx, edx
je 0x10019aa8
cmp dword [eax], 0xffffffff
je 0x10019aa8
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 0x10019aa8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10019ab0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x10019aea
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10019aea
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10019aea
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 0x10019aea
cmp edi, dword [esi]
jne 0x10019aea
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x10019b30
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100e6008]
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 0x10019b93
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10019b93
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10019b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10019b93
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.100ab466
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100ab466
add esp, 8
ret 4

Function at 0x1001d380
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af908
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1001d3bf
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x1001d3d1
mov al, 1
jmp 0x1001d42e
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.1001d9a0
test al, al
je 0x1001d41b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x1001d41b
mov bl, 1
jmp 0x1001d41d
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10006d80
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.100ab466
mov esp, ebp
pop ebp
ret
Function at 0x1001d450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af908
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e6008]
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 0x1001d486
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001d4ea
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.1001d9a0
test al, al
je 0x1001d4db
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.10006d80
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.100ab466
mov esp, ebp
pop ebp
ret