joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002a90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x848], eax
cmp dword [edi + 0x10], 3
jb 0x10002c8a
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x830], xmm0
mov dword [ebp - 0x810], 0
mov eax, edi
movups xmmword [ebp - 0x820], xmm0
jb 0x10002aea
mov eax, dword [edi]
lea ecx, [ebp - 0x830]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10002b04
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x838], eax
test eax, eax
je 0x10002c8a
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10088fec
add esp, 4
mov dword [ebp - 0x834], eax
lea ecx, [esi + esi]
mov esi, eax
push ecx
push 0
push esi
call fcn.1008bb90
add esp, 0xc
mov bl, 1
cmp dword [edi + 0x14], 8
jb 0x10002b5a
mov edi, dword [edi]
mov eax, dword [ebp - 0x838]
push esi
inc eax
push eax
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10002b90
push esi
xor bl, bl
call fcn.10088fa9
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x840]
mov dword [ebp - 0x838], 0
push eax
push 0x100db7c8
push esi
call edi
test eax, eax
je 0x10002b70
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.1008bb90
mov eax, dword [ebp - 0x83c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10002bde
mov eax, dword [eax]
mov ecx, dword [ebp - 0x840]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.100021f0
add esp, 0x1c
mov dword [ebp - 0x844], 0
lea eax, [ebp - 0x844]
mov dword [ebp - 0x834], 0
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x80c]
push eax
push esi
call edi
test eax, eax
je 0x10002b70
mov edi, dword [ebp - 0x834]
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002c50
sub edx, ecx
mov ecx, dword [ebp - 0x848]
sar edx, 1
push edx
push edi
call fcn.10002eb0
push esi
call fcn.10088fa9
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10088f98
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100048a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
call fcn.100061a0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.10006ac0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008bb90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
call fcn.10006dc0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004960
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002eb0
push 0xe
push str.2345Explorer_
mov ecx, esi
mov dword [ebp - 0x220], 1
call fcn.10002ff0
lea ecx, [ebp - 0x21c]
call fcn.10006220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x100061a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100fc03c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.10088fae
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.1008bb90
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 0x100061fc
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.10088f98
add esp, 0x120
ret
Function at 0x1000b5f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba66b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x1000b629
call fcn.1000b790
cmp byte [0x100fe71c], 0
jne 0x1000b63c
mov eax, 0x80000001
jmp 0x1000b76c
mov eax, dword [esi]
test eax, eax
jne 0x1000b6bc
push 8
call fcn.10088fae
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.10088fae
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.1008bb90
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000b6ab
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1000b75b
call fcn.10006fa0
test al, al
jne 0x1000b6f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.10007500
test al, al
je 0x1000b75b
mov ecx, dword [esi]
add ecx, 4
call fcn.10006ac0
call fcn.10006fa0
test al, al
je 0x1000b75b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10002d70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10002d10
test edi, edi
je 0x1000b75b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b75b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1000b75b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1000b76a
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bf00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100fc03c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.10002ca0
test eax, eax
jne 0x1000bf40
xor al, al
jmp 0x1000c074
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002dc0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.1000d3e0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000c061
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000bfa1
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002d10
cmp esi, 0xffffffff
jne 0x1000c061
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
cmp eax, 2
jbe 0x1000c05d
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.10002ea0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x1000bfe6
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x1000c005
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
cmp dword [esi + 0x14], 8
jb 0x1000bffd
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x1000c05d
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.1000d3e0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000c061
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000c04c
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002d10
cmp esi, 0xffffffff
jne 0x1000c061
xor bl, bl
jmp 0x1000c063
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002d10
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 - 0x14]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x1000c090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100fc03c]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.10002ca0
test eax, eax
jne 0x1000c0d0
xor al, al
jmp 0x1000c20a
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002dc0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.1000d3e0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c13e
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000c12d
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002d10
cmp ebx, 0xffffffff
je 0x1000c147
test bl, 0x10
je 0x1000c1f7
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
cmp eax, 2
jbe 0x1000c1f3
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.10002ea0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x1000c177
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x1000c196
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
cmp dword [esi + 0x14], 8
jb 0x1000c18e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x1000c1f3
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.1000d3e0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c1ee
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000c1dd
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002d10
cmp ebx, 0xffffffff
je 0x1000c1f3
test bl, 0x10
je 0x1000c1f7
xor bl, bl
jmp 0x1000c1f9
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002d10
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 - 0x14]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x1000c230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba810
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10002ca0
test eax, eax
jne 0x1000c26f
xor al, al
jmp 0x1000c2f9
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002dc0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.1000d3e0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c2dd
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000c2cc
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002d10
cmp ebx, 0xffffffff
je 0x1000c2e6
test bl, 0x10
je 0x1000c2e6
mov bl, 1
jmp 0x1000c2e8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002d10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x1000c790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba900
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100fc03c]
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.10002ca0
test eax, eax
jne 0x1000c7d0
xor al, al
jmp 0x1000c98b
push edi
call fcn.1000c230
add esp, 4
test al, al
je 0x1000c7e4
mov al, 1
jmp 0x1000c98b
push 0
mov ecx, edi
call fcn.10002cb0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1000c833
lea ecx, [ebp - 0x2c]
call fcn.10003560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.1001a330
test al, al
je 0x1000c824
push 0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002d10
push edi
call fcn.1000c230
add esp, 4
test al, al
jne 0x1000c7dd
mov ecx, edi
call fcn.10002ca0
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1000c92c
mov ecx, edi
call fcn.10002ea0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1000c86c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1000c88f
mov eax, ebx
cmp ecx, 8
jb 0x1000c885
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1000c91c
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.1000cc10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10002ca0
test eax, eax
je 0x1000c90d
lea eax, [ebp - 0x2c]
push eax
call fcn.1000bf00
add esp, 4
test al, al
jne 0x1000c90d
push 0
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000c90d
lea ecx, [ebp - 0x44]
call fcn.10003560
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1001a330
test al, al
je 0x1000c901
push 0
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002d10
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x1000c860
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.1000bf00
add esp, 4
test al, al
jne 0x1000c982
push 0
mov ecx, edi
call fcn.10002cb0
push eax
call ebx
test eax, eax
jne 0x1000c982
lea ecx, [ebp - 0x44]
call fcn.10003560
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.1001a330
test al, al
je 0x1000c973
push 0
lea ecx, [ebp - 0x44]
call fcn.10002cb0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10002d10
push edi
call fcn.1000c230
add esp, 4
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.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x1000d030
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x1000d046
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.10002ca0
test eax, eax
je 0x1000d064
mov ecx, dword [esp + 8]
call fcn.10002cb0
jmp 0x1000d066
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1000d088
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d088
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x1000d0a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100baa58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100fc03c]
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 [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x1000d0e6
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.10017be0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1000d10f
lea ebx, [esi + 8]
jmp 0x1000d111
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10002ca0
test eax, eax
je 0x1000d127
mov ecx, dword [ebp - 0x18]
call fcn.10002cb0
jmp 0x1000d129
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1000d14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d14a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1000d173
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 0x1000d188
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10088fde
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.10088f98
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d1c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100baa88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100fc03c]
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 0x1000d203
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.10017ca0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1000d230
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x1000d237
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.10002ca0
test eax, eax
je 0x1000d24b
mov ecx, ebx
call fcn.10002cb0
jmp 0x1000d24d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x1000d29e
call ecx
cmp eax, 5
jne 0x1000d298
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10002ca0
test eax, eax
je 0x1000d288
mov ecx, ebx
call fcn.10002cb0
jmp 0x1000d28a
xor eax, eax
push eax
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 0x1000d2bc
call ecx
cmp eax, 0xb7
jne 0x1000d2b1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10007880
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1000d2e2
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 0x1000d2f7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10088fde
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.10088f98
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d750
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x100fc03c]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x1000d782
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10088f98
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1000d7dd
cmp dword [esp + 4], 0x103
jne 0x1000d7dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000d7d3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.10088f98
add esp, 8
ret

Function at 0x1000dc60
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bac28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100fc03c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1000dca3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], edi
je 0x1000dcbf
mov eax, dword [edi]
test eax, eax
je 0x1000dcbf
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 0x1000dd23
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 0x1000d800
push 0
push 0
call fcn.1009290d
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1000dd58
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1000dd1b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1000d9d0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000dd44
mov eax, dword [edi]
test eax, eax
je 0x1000dd3d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
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 0x1000dd70
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 0x1000dd05
mov bl, 1
jmp 0x1000dd25