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

Disassembly:
cmp ecx, dword [0x40d07c]
jne 0x402c4a
repz ret
jmp fcn.00403449

Function at 0x406f8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403f6c
and dword [ebp - 0x14], 0
cmp dword [0x40e9ac], 0
mov dword [ebp - 0x18], eax
jne 0x407042
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4070ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4070ea
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e9ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e9b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e9b4], eax
call edi
push eax
call esi
mov dword [0x40e9bc], eax
test eax, eax
je 0x407042
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e9b8], eax
mov eax, dword [0x40e9b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40709b
cmp dword [0x40e9bc], ecx
je 0x40709b
push eax
call esi
push dword [0x40e9bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40709b
test ebx, ebx
je 0x40709b
call edi
test eax, eax
je 0x407092
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407092
test byte [ebp - 8], 1
jne 0x40709b
or dword [ebp + 0x10], 0x200000
jmp 0x4070ce
mov eax, dword [0x40e9b0]
cmp eax, dword [ebp - 0x18]
je 0x4070ce
push eax
call esi
test eax, eax
je 0x4070ce
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4070ce
mov eax, dword [0x40e9b4]
cmp eax, dword [ebp - 0x18]
je 0x4070ce
push eax
call esi
test eax, eax
je 0x4070ce
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e9ac]
call esi
test eax, eax
je 0x4070ea
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4070ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c40
leave
ret
Function at 0x10006e40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10189958
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x101ef110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor bl, bl
mov word [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0
cmp dword [eax + 0x10], 0
je 0x10006e8f
cmp dword [eax + 0x14], 8
jb 0x10006e91
mov eax, dword [eax]
jmp 0x10006e91
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10006ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov byte [ebp - 0xf], bl
mov dword [ebp - 4], 0
test esi, esi
je 0x10006ed1
test bl, bl
je 0x10006ed1
mov bl, 1
jmp 0x10006ed3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10006eec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10008cb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10189bde
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101ef110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
add esi, 8
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
call fcn.10005450
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
call fcn.10005450
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10005450
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea edx, [edx + 8]
call fcn.10005ba0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ea30
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.1001d560
Function at 0x1000f1f0
Capabilities:
Copy file

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.1001d390
Function at 0x10010800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x101ef110]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.101652e0
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 0x1001087e
cmp dword [esp + 0x14], 6
jb 0x1001087e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push 0x101c3184
mov edx, 0x101c3198
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10010610
add esp, 0xc
test al, al
je 0x1001087e
cmp word [esi], 0
jne 0x100108d6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, Ordinal_1
call fcn.10010610
add esp, 0xc
test al, al
je 0x100108aa
cmp word [esi], 0
jne 0x100108d6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10010610
add esp, 0xc
test al, al
je 0x100108eb
cmp word [esi], 0
je 0x100108eb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1016100c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.1016100c
mov esp, ebp
pop ebp
ret
Function at 0x10010f20
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.101621c0
push 0xffffffffffffffff
push 0x1018ac18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101ef110]
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
lea eax, [ebp + 0x630]
mov dword [ebp - 0x10], 0
push 0
push eax
call fcn.101652e0
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x10011167
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x10011167
push esi
call edi
cmp eax, 0xffa
jge 0x10011167
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x101c32b8
lea eax, [ebp + 0x630]
push eax
call esi
push 0x101c32bc
lea ecx, [ebp - 0x30]
call fcn.100052e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.10017fd0
mov ecx, eax
call fcn.10018090
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10011035
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001102b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001118c
push edx
push ecx
call fcn.101614ae
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
test esi, esi
je 0x10011167
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x10011167
lea ecx, [ebp]
call fcn.10010900
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x10011094
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x100110a2
inc edi
add esi, 0x210
cmp edi, 3
jl 0x10011074
jmp 0x100110c7
imul eax, edi, 0x210
cmp dword [ebp + eax + 0x208], 0
mov eax, dword [ebp + eax + 0x20c]
jne 0x100110bc
add eax, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10011169
push 1
push 0
push 0
lea eax, [ebp + 0x630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
jbe 0x100110ec
mov eax, 0x10
jmp 0x10011169
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [ebp - 0x18], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [ebp - 0x14], str._programfiles_Internet_Exploreriexplore.exe
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.101652e0
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x18]
call edi
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001115c
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x100110e2
inc esi
cmp esi, 2
jb 0x10011102
mov eax, dword [ebp - 0x10]
jmp 0x10011169
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.1016100c
lea esp, [ebp + 0x283c]
pop ebp
ret
call fcn.10168a09
int3
Function at 0x100111a0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], 0
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x100111c3
cmp dword [eax + 0x14], 8
jb 0x100111c5
mov eax, dword [eax]
jmp 0x100111c5
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100111ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x100111ef
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x10011250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ac48
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101ef110]
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, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10011293
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10019a70
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100112bc
lea eax, [esi + 8]
jmp 0x100112be
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x100112ce
cmp dword [ebx + 0x14], 8
jb 0x100112d0
mov ebx, dword [ebx]
jmp 0x100112d0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100112f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100112f1
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1001131a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001132f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.101614ae
add esp, 8
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.1016100c
mov esp, ebp
pop ebp
ret 4
Function at 0x10011370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018ac78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101ef110]
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, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100113b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10019ba0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100113dd
lea ecx, [esi + 8]
jmp 0x100113df
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x100113f4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100113f6
mov eax, dword [ebx]
jmp 0x100113f6
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x10011441
call ecx
cmp eax, 5
jne 0x1001143b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x1001142b
cmp dword [ebx + 0x14], 8
jb 0x1001142d
mov ebx, dword [ebx]
jmp 0x1001142d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x1001145f
call ecx
cmp eax, 0xb7
jne 0x10011454
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.100157a0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10011485
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001149a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.101614ae
add esp, 8
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.1016100c
mov esp, ebp
pop ebp
ret 4
Function at 0x10012280
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018aec8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101ef110]
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 0x100122bb
xor al, al
jmp 0x1001235e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x100122d7
mov eax, dword [edi]
test eax, eax
je 0x100122d7
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 0x1001233b
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 0x10011dd0
push 0
push 0
call fcn.1016b1e4
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1001237a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x10012333
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10011f90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001235c
mov eax, dword [edi]
test eax, eax
je 0x10012355
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.1016100c
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 0x10012392
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 0x1001231d
mov bl, 1
jmp 0x1001233d

Function at 0x10013ea0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x101ef110]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1016101d
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.101652e0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10013efc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1016100c
add esp, 0x120
ret
Function at 0x10017720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x101ef110]
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 0x10017748
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.101652e0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1001778c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1016100c
add esp, 0x418
ret
cmp eax, 0x208
jae 0x10017774
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 0x100177a4
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.100054b0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.1016100c
add esp, 0x418
ret
Function at 0x1001ab00
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x101ef110]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.101652e0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001ac47
cmp dword [esi + 4], 6
push edi
ja 0x1001ab5b
jne 0x1001abe3
cmp dword [esi + 8], 2
jb 0x1001abe3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1001abe3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001abe3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001abe3
movups xmm0, xmmword [0x101c762c]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x101c763c]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1001abe3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001abe3
cmp word [edi + 2], ax
jbe 0x1001abe3
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 0x1001ac2e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.101652e0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1001ac2e
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.1016100c
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1016100c
add esp, 0x140
ret
Function at 0x1001c950
Capabilities:
Read file on windows

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

Function at 0x1001c990
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1001c9ca
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1001c9ca
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001c9ca
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 0x1001c9ca
cmp edi, dword [esi]
jne 0x1001c9ca
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x1001ca10
Capabilities:
Get file size

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

Function at 0x1001cb50
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1001cbfe
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1001ca90
test al, al
je 0x1001cbfe
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.1001ca90
test al, al
je 0x1001cbfe
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x1001cbd4
cmp dword [esp + 0x14], edi
jne 0x1001cbd4
mov eax, dword [esi]
test eax, eax
jne 0x1001cbc1
xor bl, bl
jmp 0x1001cbd4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001cbbd
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.1001ca90
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8