joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ca50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2251
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1022101c]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
push 0
mov dword [ebp - 0x34], esi
push 0x25
mov dword [ebp - 0x2c], 0
call fcn.1001b0d0
push edi
cmp eax, 0xffffffff
jne 0x1007cab6
mov ecx, esi
call fcn.10005840
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x1007cb63
lea ecx, [ebp - 0x28]
call fcn.10005840
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1007cae8
push edi
mov ecx, esi
call fcn.10005840
jmp 0x1007cb50
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101b0f90
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1007cb3c
cmp eax, dword [ebp - 0x30]
ja 0x1007cb3c
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.10003f00
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.10003cf0
push ebx
call fcn.101b0f8b
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10005450
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003b10
mov eax, esi
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.101b075c
mov esp, ebp
pop ebp
ret 8
Function at 0x1007d6b0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c23dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x1022101c]
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, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.10003b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.10003b60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.10085b60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.10003b10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.10003b10
lea eax, [ebp - 0x294]
push eax
call fcn.10086a40
add esp, 4
test al, al
jne 0x1007d814
xor bl, bl
jmp 0x1007d880
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.10094e50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.10003ac0
test al, al
je 0x1007d83c
xor bl, bl
jmp 0x1007d871
lea eax, [ebp - 0x27c]
push eax
call fcn.10003f50
add esp, 4
cmp esi, eax
je 0x1007d86f
lea ecx, [ebp - 0x27c]
call fcn.10003c50
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1007d864
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.10003cf0
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.10003b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.10003b10
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.101b075c
mov esp, ebp
pop ebp
ret 4
Function at 0x1007d8c0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c244e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x1022101c]
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, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.10003b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.10003b60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.10085b60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.10003b10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.10003b10
lea eax, [ebp - 0x27c]
push eax
call fcn.10086a40
add esp, 4
test al, al
je 0x1007dabe
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.101b076d
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.10091680
test al, al
jne 0x1007dac2
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x1007dabe
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1007daa9
test eax, eax
je 0x1007daa9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101b079d
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x1007db0b
push esi
lea ecx, [ebp - 0x280]
call fcn.10091860
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x1007db0b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1007daf6
test eax, eax
je 0x1007daf6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101b079d
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.10003b10
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.101b075c
mov esp, ebp
pop ebp
ret 4
Function at 0x10084410
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2d8c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1022101c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.10003b10
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10003b10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10003b10
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10003b10
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10003b10
push 0x88
push ebx
call fcn.101b079d
add esp, 8
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 0x10086cd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c3170
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10003ac0
test al, al
je 0x10086d10
xor al, al
jmp 0x10086ec9
mov ecx, edi
call fcn.10086b50
test al, al
je 0x10086d22
mov al, 1
jmp 0x10086ec9
push 0
mov ecx, edi
call fcn.10003ad0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x10086d71
lea ecx, [ebp - 0x2c]
call fcn.10003bb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.100a5430
test al, al
je 0x10086d62
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003ad0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b10
mov ecx, edi
call fcn.10086b50
test al, al
jne 0x10086d1b
mov ecx, edi
call fcn.10003ce0
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10086e6c
mov ecx, edi
call fcn.10003c50
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x10086dac
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x10086dcf
mov eax, ebx
cmp ecx, 8
jb 0x10086dc5
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x10086e5c
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.1001b070
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10003ac0
test al, al
jne 0x10086e4d
lea eax, [ebp - 0x2c]
push eax
call fcn.10086930
add esp, 4
test al, al
jne 0x10086e4d
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10086e4d
lea ecx, [ebp - 0x44]
call fcn.10003bb0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100a5430
test al, al
je 0x10086e41
push 0
lea ecx, [ebp - 0x44]
call fcn.10003ad0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.10003b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b10
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x10086da0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.10086930
add esp, 4
test al, al
jne 0x10086ec2
push 0
mov ecx, edi
call fcn.10003ad0
push eax
call ebx
test eax, eax
jne 0x10086ec2
lea ecx, [ebp - 0x44]
call fcn.10003bb0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.100a5430
test al, al
je 0x10086eb3
push 0
lea ecx, [ebp - 0x44]
call fcn.10003ad0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003b10
mov ecx, edi
call fcn.10086b50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret
Function at 0x10087630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.1000d230
push 0x412
lea eax, [esp + 8]
push 0
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 0x1008768c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.101b075c
add esp, 0x418
ret
cmp eax, 0x208
jae 0x10087674
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.10003f00
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.10003cf0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.101b075c
add esp, 0x418
ret
Function at 0x100900e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1020d070
push 0x101b0f68
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x1022101c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.1000d230
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10090200
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1009016e
test bl, bl
jne 0x100901dd
cmp edi, 0x1a
jne 0x100901dd
mov ecx, esi
call fcn.1000d230
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.10003f00
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003cf0
mov ecx, esi
call fcn.10003ac0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret
Function at 0x10090b60
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x1022101c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
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 0x10090ca2
cmp dword [esi + 4], 6
push edi
ja 0x10090bb6
jne 0x10090c3e
cmp dword [esi + 8], 2
jb 0x10090c3e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10090c3e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10090c3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10090c3e
movups xmm0, xmmword [0x101e5f20]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x101e5f30]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10090c3e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10090c3e
cmp word [edi + 2], ax
jbe 0x10090c3e
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 0x10090c89
push 0x118
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 0x10090c89
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.101b075c
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.101b075c
add esp, 0x140
ret

Function at 0x100912a0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x100912b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.10003ac0
test al, al
jne 0x100912d4
mov ecx, dword [esp + 8]
call fcn.10003ad0
jmp 0x100912d6
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100912f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100912f8
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x10091310
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c4778
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1022101c]
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 eax, dword [esi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10091353
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100ace40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1009137c
lea edi, [eax + 8]
jmp 0x1009137e
xor edi, edi
mov ecx, ebx
call fcn.10003ac0
test al, al
jne 0x10091392
mov ecx, ebx
call fcn.10003ad0
jmp 0x10091394
xor eax, eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100913b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100913b5
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100acfc0
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.101b075c
mov esp, ebp
pop ebp
ret 4

Function at 0x100913f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c4778
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1022101c]
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 eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10091433
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100acf00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1009145d
lea ebx, [eax + 8]
jmp 0x1009145f
xor ebx, ebx
mov ecx, edi
call fcn.10003ac0
test al, al
jne 0x10091473
mov ecx, edi
call fcn.10003ad0
jmp 0x10091475
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x100914c2
call ecx
cmp eax, 5
jne 0x100914bc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10003ac0
test al, al
jne 0x100914ae
mov ecx, edi
call fcn.10003ad0
jmp 0x100914b0
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x100914e0
call ecx
cmp eax, 0xb7
jne 0x100914d5
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.10099940
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100acfc0
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.101b075c
mov esp, ebp
pop ebp
ret 4
Function at 0x10091770
Capabilities:
Read file on windows

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

Function at 0x100917b0
Capabilities:
Write file on windows

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

Function at 0x10091860
Capabilities:
Get file size

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

Function at 0x100919e0
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 0x10091a8e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100918e0
test al, al
je 0x10091a8e
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.100918e0
test al, al
je 0x10091a8e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10091a64
cmp dword [esp + 0x14], edi
jne 0x10091a64
mov eax, dword [esi]
test eax, eax
jne 0x10091a51
xor bl, bl
jmp 0x10091a64
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10091a4d
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.100918e0
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