joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008fc60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x101913d0], 0
je 0x1008fc8e
nop word [eax + eax]
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x101913d0], 0
jne 0x1008fc80
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x10190ed0], 0
je 0x1008fe28
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x1008fcd0.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x1008fcd0.36
movzx eax, byte [eax + 0x1008fe68]
jmp dword [eax*4 + 0x1008fe50]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x1008fcfe
cmp byte [esi + 3], 0x70
jne case.0x1008fcd0.36
cmp byte [esi + 4], 0x3b
jne case.0x1008fcd0.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x1008fe12
cmp al, 0x70
jne case.0x1008fcd0.36
cmp byte [esi + 3], 0x6f
jne case.0x1008fcd0.36
cmp byte [esi + 4], 0x73
jne case.0x1008fcd0.36
cmp byte [esi + 5], 0x3b
jne case.0x1008fcd0.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x1008fe12
cmp byte [esi + 2], 0x75
jne case.0x1008fcd0.36
cmp byte [esi + 3], 0x6f
jne case.0x1008fcd0.36
cmp byte [esi + 4], 0x74
jne case.0x1008fcd0.36
cmp byte [esi + 5], 0x3b
jne case.0x1008fcd0.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x1008fe12
cmp byte [esi + 2], 0x74
jne case.0x1008fcd0.36
cmp byte [esi + 3], 0x3b
jne case.0x1008fcd0.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x1008fe12
cmp byte [esi + 2], 0x74
jne case.0x1008fcd0.36
cmp byte [esi + 3], 0x3b
jne case.0x1008fcd0.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x1008fe12
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x1008fdd0
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x10190cd0]
cmp al, 0xff
je 0x1008fdf7
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x10190cd0]
cmp al, 0xff
jne 0x1008fdb8
jmp 0x1008fdf7
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x10190cd0]
cmp al, 0xff
je 0x1008fdf7
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x10190cd0]
cmp al, 0xff
jne 0x1008fde0
lea ecx, [esp + 8]
call fcn.1008fec0
cmp byte [esi], 0x3b
jne 0x1008fe32
mov ecx, dword [esp + 8]
inc esi
jmp 0x1008fe16
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x10190ed0], 0
jne 0x1008fcb0
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push str.expected__
lea ecx, [esp + 0x14]
call fcn.1008cc30
push 0x101b7630
lea eax, [esp + 0x10]
push eax
call fcn.1012139b
popfd
std
or byte [eax], dl
xlatb
cld
or byte [eax], dl
std
or byte [eax], dl
test ch, bh
or byte [eax], dl
xor ch, bh
or byte [eax], dl
or al, 0xfe
or byte [eax], dl
add byte [0x5050505], al
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x10090360
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x101b900c]
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
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1009039a
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10090476
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.1009cf20
test al, al
je 0x10090415
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10090456
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009044c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090514
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
jne 0x10090476
xor al, al
jmp 0x100904f8
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 0
push eax
push esi
xor bl, bl
call edi
cmp dword [ebp - 0x14], 0x40
jne 0x100904ef
mov eax, 0x5a4d
cmp word [ebp - 0x6c], ax
jne 0x100904ef
push 0
push 0
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100904ef
push 0
lea eax, [ebp - 0x14]
push eax
push 0xf8
lea eax, [ebp - 0x164]
push eax
push esi
call edi
cmp dword [ebp - 0x14], 0xf8
jne 0x100904ef
mov eax, dword [ebp - 0x164]
cmp eax, 0x4550
je 0x100904ed
mov ecx, 0x454e
cmp ax, cx
jne 0x100904ef
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
int3
Function at 0x10091a10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101539b8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101b900c]
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 0x10091a4b
xor al, al
jmp 0x10091aee
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x10091a67
mov eax, dword [edi]
test eax, eax
je 0x10091a67
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 0x10091acb
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 0x10091560
push 0
push 0
call fcn.1012df2d
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10091b0a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x10091ac3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10091720
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10091aec
mov eax, dword [edi]
test eax, eax
je 0x10091ae5
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.10109e31
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 0x10091b22
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 0x10091aad
mov bl, 1
jmp 0x10091acd
Function at 0x10091ff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x101b900c]
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 0x10092029
call fcn.100921f0
cmp byte [0x101be034], 0
jne 0x1009203c
mov eax, 0x80000001
jmp 0x100921c2
mov eax, dword [esi]
test eax, eax
jne 0x100920bc
push 8
call fcn.10109e42
mov edi, eax
add esp, 4
mov dword [ebp - 0x150], edi
mov dword [ebp - 4], 0
push 1
call fcn.10109e42
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.10121f10
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 0x100920ab
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 0x100921b1
call fcn.1007bb80
test al, al
jne 0x100920fe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1007c590
test al, al
je 0x100921b1
mov ecx, dword [esi]
add ecx, 4
call fcn.1007b5c0
call fcn.1007bb80
test al, al
je 0x100921b1
push str.Advapi32.dll
lea ecx, [ebp - 0x14c]
call fcn.10003530
mov dword [ebp - 4], 2
lea eax, [ebp - 0x14c]
push eax
call fcn.100932a0
mov ecx, eax
call fcn.10093360
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x138]
cmp edx, 8
jb 0x1009216d
mov ecx, dword [ebp - 0x14c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10092163
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100921df
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], ax
test edi, edi
je 0x100921b1
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100921b1
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x100921b1
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100921c0
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.10109e31
mov esp, ebp
pop ebp
ret 4
call fcn.10129d79
int3
Function at 0x10095090
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016252f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101b900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.100035a0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.100035a0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.100035a0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.100035a0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.100035a0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.100035a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10095120
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016252f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101b900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.100035a0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.100035a0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.100035a0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.100035a0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.100035a0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.100035a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10098860
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101629ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101b900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.100264c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.100264c0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.100264c0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.100264c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.100264c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.100264c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1009ac90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x1009ad12
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x1009ad12
test ecx, ecx
je 0x1009ad0e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1009acd0
xor eax, eax
jmp 0x1009ad17
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1009ad21
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10109e31
add esp, 0xc
ret 0xc

Function at 0x1009bcc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101541b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101b900c]
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 0x1009bcff
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x1009bd14
mov al, 1
jmp 0x1009bdb3
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.1009cf20
test al, al
je 0x1009bd5e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x1009bd5e
mov bl, 1
jmp 0x1009bd60
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1009bd9d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009bd93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009bdcf
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
int3
Function at 0x1009bde0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101541b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101b900c]
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 0x1009be16
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1009bec0
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.1009cf20
test al, al
je 0x1009be6f
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
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1009beac
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009bea2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009bedd
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
int3
Function at 0x1009c440
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101631c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101b900c]
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
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x1009c479
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1009c483
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x1009c49a
mov al, 1
jmp 0x1009c5e1
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.1009cf20
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1009cf20
test al, al
jne 0x1009c516
cmp byte [ebp - 0x48], al
je 0x1009c53a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x1009c53a
mov bl, 1
jmp 0x1009c53c
xor bl, bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1009c57a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009c570
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009c5fd
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1009c5cb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009c5c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009c602
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov al, bl
mov dword [ebp - 0x2c], 7
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
call fcn.10129d79
int3
Function at 0x1009c920
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.10121f10
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1009c95e
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x1009c966
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1009c9c6
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1009c990
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10003610
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10109e31
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10109e31
add esp, 0x210
ret

Function at 0x1009d1e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163308
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101b900c]
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 0x1009d223
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.100a1e00
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1009d24c
lea eax, [esi + 8]
jmp 0x1009d24e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x1009d25e
cmp dword [ebx + 0x14], 8
jb 0x1009d260
mov ebx, dword [ebx]
jmp 0x1009d260
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1009d281
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1009d281
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1009d2aa
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 0x1009d2bf
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1010a1d5
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.10109e31
mov esp, ebp
pop ebp
ret 4
Function at 0x1009d300
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161c28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101b900c]
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 0x1009d343
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.100a1f30
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1009d36d
lea ecx, [esi + 8]
jmp 0x1009d36f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x1009d384
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1009d386
mov eax, dword [ebx]
jmp 0x1009d386
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 0x1009d3d1
call ecx
cmp eax, 5
jne 0x1009d3cb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x1009d3bb
cmp dword [ebx + 0x14], 8
jb 0x1009d3bd
mov ebx, dword [ebx]
jmp 0x1009d3bd
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 0x1009d3ef
call ecx
cmp eax, 0xb7
jne 0x1009d3e4
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.1007c9f0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1009d415
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 0x1009d42a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1010a1d5
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.10109e31
mov esp, ebp
pop ebp
ret 4