joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa5a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x593258]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4aa5ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aaa63
test al, al
jne 0x4aa5e6
sub edx, 2
cmp edx, edi
jne 0x4aa5cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4aa60e
lea eax, [edi + 2]
cmp edx, eax
je 0x4aa60e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004aa19a
add esp, 0x10
jmp 0x4aa708
push esi
lea ecx, [ebp - 0x255]
call fcn.004aaa63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aa651
push dword [ebp - 0x25c]
jmp 0x4aa5fe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4aa68e
cmp word [ebp - 0x226], 0
je 0x4aa6af
cmp word [ebp - 0x226], ax
jne 0x4aa68e
cmp word [ebp - 0x224], 0
je 0x4aa6af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004aa19a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4aa6fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4aa668
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4aa6e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4aa708
push 0x4a9b82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406294
add esp, 0x10
jmp 0x4aa6d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403625
leave
ret

Function at 0x401ff5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
call fcn.00401f2f
push 0x13
pop eax
xor esi, esi
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x23
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xf
call dword [0x40e008]
call dword [0x40e01c]
cmp eax, 0x57
je 0x402066
push esi
call dword [0x40e024]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x414250], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x13000
jb 0x40206a
call fcn.00401e43
push esi
test eax, eax
jne 0x402060
call dword [0x40e018]
int3
Function at 0x100060a4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100224d0
push str.FlsAlloc
push 0
call fcn.10006024
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100060d6
push dword [ebp + 8]
mov ecx, esi
call fcn.100054a3
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x10006118
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100224f4
push str.FlsGetValue
push 2
call fcn.10006024
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x10006149
mov ecx, esi
call fcn.100054a3
call esi
jmp 0x1000614f
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x10006152
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x10022508
push str.FlsSetValue
push 3
call fcn.10006024
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10006186
mov ecx, esi
call fcn.100054a3
call esi
jmp 0x1000618c
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c050
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c105
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0x71
push 0
push 0
call ebp
add byte [edi + ebx], 0x4e
push 0
push 0
call ebp
add byte [edi + ebx], 0xbd
push 0
push 0
call ebp
xor byte [edi + ebx], 0x11
push 0
push 0
call ebp
add byte [edi + ebx], 0x5f
push 0
push 0
call ebp
add byte [edi + ebx], 0xf
push 0
push 0
call ebp
add byte [edi + ebx], 0x95
push 0
push 0
call ebp
xor byte [edi + ebx], 0x62
push 0
push 0
call ebp
add byte [edi + ebx], 0xc
push 0
push 0
call ebp
add byte [edi + ebx], 0x4f
push 0
push 0
call ebp
xor byte [edi + ebx], 0x57
push 0
push 0
call ebp
add byte [edi + ebx], 0xc1
push 0
push 0
call ebp
xor byte [edi + ebx], 0x47
push 0
push 0
call ebp
add byte [edi + ebx], 0x70
inc ebx
cmp esi, ebx
jne 0x40c070
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c110
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebp, eax
jb 0x40c128
mov ebp, dword [eax]
mov esi, dword [esp + 0x20]
xor esi, edi
cmp edi, 4
jae 0x40c137
mov ecx, edi
jmp 0x40c193
mov dword [esp], edi
shr edi, 2
cmp edi, 2
mov eax, 1
cmovae eax, edi
mov dword [esp + 4], eax
xor ebx, ebx
nop
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, 0x4d6888
push edi
call fcn.00403d41
imul eax, dword [ebp + ebx*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebx
cmp dword [esp + 4], ebx
jne 0x40c150
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1bc
cmp ecx, 2
je 0x40c1b2
cmp ecx, 3
jne 0x40c1cb
movsx eax, byte [ebp + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebp + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebp + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x456593
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4565a4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x10005ec0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b186b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x100f101c]
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 0x10005ef9
call fcn.10006060
cmp byte [0x100f3694], 0
jne 0x10005f0c
mov eax, 0x80000001
jmp 0x1000603c
mov eax, dword [esi]
test eax, eax
jne 0x10005f8c
push 8
call fcn.1007f958
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.1007f958
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.10081e90
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 0x10005f7b
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 0x1000602b
call fcn.1000bc00
test al, al
jne 0x10005fc6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1000c160
test al, al
je 0x1000602b
mov ecx, dword [esi]
add ecx, 4
call fcn.1000b720
call fcn.1000bc00
test al, al
je 0x1000602b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10003940
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.100038a0
test edi, edi
je 0x1000602b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000602b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1000602b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1000603a
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.1007f947
mov esp, ebp
pop ebp
ret 4
Function at 0x10006900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b19d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100f101c]
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.10004040
test eax, eax
jne 0x10006940
xor al, al
jmp 0x10006a74
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006740
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10007e10
lea ecx, [ebp - 0x2c]
call fcn.10003830
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006a61
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x100069a1
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
cmp esi, 0xffffffff
jne 0x10006a61
lea ecx, [ebp - 0x2c]
call fcn.10004040
cmp eax, 2
jbe 0x10006a5d
lea ecx, [ebp - 0x2c]
call fcn.10004040
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.100039b0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x100069e6
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x10006a05
lea ecx, [ebp - 0x2c]
call fcn.10004040
cmp dword [esi + 0x14], 8
jb 0x100069fd
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x10006a5d
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.10007e10
lea ecx, [ebp - 0x2c]
call fcn.10003830
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006a61
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x10006a4c
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
cmp esi, 0xffffffff
jne 0x10006a61
xor bl, bl
jmp 0x10006a63
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10006a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b19d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100f101c]
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.10004040
test eax, eax
jne 0x10006ad0
xor al, al
jmp 0x10006c0a
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006740
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10007e10
lea ecx, [ebp - 0x2c]
call fcn.10003830
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006b3e
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x10006b2d
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
cmp ebx, 0xffffffff
je 0x10006b47
test bl, 0x10
je 0x10006bf7
lea ecx, [ebp - 0x2c]
call fcn.10004040
cmp eax, 2
jbe 0x10006bf3
lea ecx, [ebp - 0x2c]
call fcn.10004040
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.100039b0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10006b77
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x10006b96
lea ecx, [ebp - 0x2c]
call fcn.10004040
cmp dword [esi + 0x14], 8
jb 0x10006b8e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x10006bf3
mov edx, 0x20
lea ecx, [ebp - 0x2c]
call fcn.10007e10
lea ecx, [ebp - 0x2c]
call fcn.10003830
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006bee
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x10006bdd
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
cmp ebx, 0xffffffff
je 0x10006bf3
test bl, 0x10
je 0x10006bf7
xor bl, bl
jmp 0x10006bf9
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10006c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1a10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100f101c]
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.10004040
test eax, eax
jne 0x10006c6f
xor al, al
jmp 0x10006cf9
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006740
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x2c]
call fcn.10007e10
lea ecx, [ebp - 0x2c]
call fcn.10003830
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006cdd
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x10006ccc
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.100038a0
cmp ebx, 0xffffffff
je 0x10006ce6
test bl, 0x10
je 0x10006ce6
mov bl, 1
jmp 0x10006ce8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10007190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1b00
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100f101c]
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.10004040
test eax, eax
jne 0x100071d0
xor al, al
jmp 0x1000738b
push edi
call fcn.10006c30
add esp, 4
test al, al
je 0x100071e4
mov al, 1
jmp 0x1000738b
push 0
mov ecx, edi
call fcn.10003830
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x10007233
lea ecx, [ebp - 0x2c]
call fcn.10003990
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.100114a0
test al, al
je 0x10007224
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003830
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100038a0
push edi
call fcn.10006c30
add esp, 4
test al, al
jne 0x100071dd
mov ecx, edi
call fcn.10004040
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1000732c
mov ecx, edi
call fcn.100039b0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1000726c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1000728f
mov eax, ebx
cmp ecx, 8
jb 0x10007285
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1000731c
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10007610
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004040
test eax, eax
je 0x1000730d
lea eax, [ebp - 0x2c]
push eax
call fcn.10006900
add esp, 4
test al, al
jne 0x1000730d
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000730d
lea ecx, [ebp - 0x44]
call fcn.10003990
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.100114a0
test al, al
je 0x10007301
push 0
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.100038a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100038a0
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x10007260
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.10006900
add esp, 4
test al, al
jne 0x10007382
push 0
mov ecx, edi
call fcn.10003830
push eax
call ebx
test eax, eax
jne 0x10007382
lea ecx, [ebp - 0x44]
call fcn.10003990
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.100114a0
test al, al
je 0x10007373
push 0
lea ecx, [ebp - 0x44]
call fcn.10003830
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.100038a0
push edi
call fcn.10006c30
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10007a60
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10007a76
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.10004040
test eax, eax
je 0x10007a94
mov ecx, dword [esp + 8]
call fcn.10003830
jmp 0x10007a96
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10007ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007ab8
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x10007ad0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1c58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100f101c]
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 0x10007b16
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.1000e6b0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10007b3f
lea ebx, [esi + 8]
jmp 0x10007b41
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10004040
test eax, eax
je 0x10007b57
mov ecx, dword [ebp - 0x18]
call fcn.10003830
jmp 0x10007b59
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10007b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007b7a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10007ba3
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 0x10007bb8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1007fceb
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.1007f947
mov esp, ebp
pop ebp
ret 4
Function at 0x10007bf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1c88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100f101c]
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 0x10007c33
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.1000e770
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10007c60
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x10007c67
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.10004040
test eax, eax
je 0x10007c7b
mov ecx, ebx
call fcn.10003830
jmp 0x10007c7d
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 0x10007cce
call ecx
cmp eax, 5
jne 0x10007cc8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10004040
test eax, eax
je 0x10007cb8
mov ecx, ebx
call fcn.10003830
jmp 0x10007cba
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 0x10007cec
call ecx
cmp eax, 0xb7
jne 0x10007ce1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.1000c4e0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10007d12
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 0x10007d27
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1007fceb
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.1007f947
mov esp, ebp
pop ebp
ret 4