joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10327aa
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1032858
push edi
push 0x10020
push dword [esi + 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x103284c
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1032830
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x103282b
push dword [esi + 0x98]
call fcn.010325ca
test eax, eax
jge 0x103282b
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x1032845
push ebx
push 0xc0004003
push 1
push 0x10a6b58
call fcn.01025c81
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x103286d
push ebx
push 0xc0004000
push 1
push 0x10a6b58
call fcn.01025c81
add esp, 0x10
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x103a5aa
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x108e17d
call fcn.01027038
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.01042c9f
mov esi, eax
cmp esi, ebx
jl 0x103a628
mov eax, dword [ebp - 0x18]
cmp eax, ebx
push edi
mov edi, 0x1001eb0
jne 0x103a5e5
mov eax, edi
push ebx
push 1
push eax
push dword [ebp + 8]
call fcn.0101e9ba
mov esi, eax
cmp esi, ebx
jl 0x103a627
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x103a600
mov eax, edi
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0xc], ebx
je 0x103a625
cmp dword [ebp - 0x18], ebx
je 0x103a616
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
call fcn.01074b2e
mov esi, eax
cmp esi, ebx
jl 0x103a627
xor esi, esi
pop edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0101937d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1043bec
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], eax
call fcn.01043b7f
mov edi, eax
test edi, edi
jl 0x1043ca4
push 0
push 1
push esi
call fcn.0101ecfe
mov edi, eax
test edi, edi
jl 0x1043ca4
cmp dword [ebp + 0x14], 0
mov eax, dword [esi + 4]
mov ebx, 0x1001eb0
je 0x1043c47
test eax, eax
jne 0x1043c37
mov eax, ebx
push 1
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call fcn.010332c5
jmp 0x1043c5a
test eax, eax
jne 0x1043c4d
mov eax, ebx
push 0
push 1
push eax
push dword [ebp + 0xc]
call fcn.0101e9ba
mov edi, eax
test edi, edi
jl 0x1043ca4
mov eax, dword [esi + 4]
test eax, eax
jne 0x1043c69
mov eax, ebx
push eax
lea eax, [esi + 0x18]
push eax
call fcn.01074b2e
mov edi, eax
test edi, edi
jl 0x1043ca4
mov esi, dword [esi + 4]
test esi, esi
jne 0x1043c82
mov esi, ebx
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
push 0x100b6e0
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0103d47f
add esp, 0x10
xor edi, edi
jmp 0x1043cb8
push dword [ebp + 0xc]
push 0x100b690
push edi
push dword [ebp + 8]
call fcn.0103d47f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x104fc88
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x108f581
call fcn.01027038
sub esp, 0x874
mov eax, dword [0x10a1e18]
and dword [ebp - 0x814], 0
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x819]
push eax
mov ebx, ecx
push 0x100d248
lea ecx, [ebp - 0x83c]
call fcn.0101a5f5
and dword [ebp - 4], 0
lea eax, [ebp - 0x83c]
push eax
call fcn.010219e1
xor eax, eax
lea edi, [ebp - 0x82c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x880]
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x10]
push edi
mov dword [ebp - 0x880], 0x44
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
xor eax, eax
cmp esi, eax
jl 0x104fdef
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x818]
xor esi, esi
cmp eax, esi
mov dword [ecx], eax
je 0x104fdbc
push edi
lea ecx, [ebp - 0x818]
call fcn.0104f4ef
mov eax, dword [ebp - 0x838]
cmp eax, esi
jne 0x104fd4c
mov eax, 0x1001eb0
push dword [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push 0x100d2b4
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push dword [ebp - 0x818]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
push dword [ebx + 0x24]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x104fdbc
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x880]
push eax
push esi
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push 0x420
push esi
push esi
push esi
push eax
push esi
push dword [ebx + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x104fde0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x104fdce
call esi
mov esi, eax
jmp 0x104fdef
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x104fdef
mov eax, dword [ebp - 0x82c]
mov dword [ebx + 0x28], eax
mov dword [ebp - 0x82c], esi
cmp dword [ebp - 0x814], 0
je 0x104fe04
push dword [ebp - 0x814]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x82c], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x104fe1b
push dword [ebp - 0x82c]
call edi
cmp dword [ebp - 0x828], 0
je 0x104fe2c
push dword [ebp - 0x828]
call edi
push 1
lea ecx, [ebp - 0x83c]
call fcn.0101937d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cfd1
leave
ret 4

Function at 0x105006c
Capabilities:
Add user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 1
push 0
call sub.NETAPI32.dll_NetLocalGroupAdd
test eax, eax
pop edi
je 0x10500b9
cmp eax, 0x8af
je 0x10500b9
cmp eax, 0x563
je 0x10500b9
test eax, eax
jle 0x10500bb
and eax, 0xffff
or eax, 0x80070000
jmp 0x10500bb
xor eax, eax
leave
ret 8
Function at 0x10500c4
Capabilities:
Delete user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
call sub.NETAPI32.dll_NetLocalGroupDel
test eax, eax
je 0x10500e5
jle 0x10500e7
and eax, 0xffff
or eax, 0x80070000
jmp 0x10500e7
xor eax, eax
pop ebp
ret 4

Function at 0x10500f0
Capabilities:
Delete user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
call sub.NETAPI32.dll_NetUserDel
test eax, eax
je 0x1050111
jle 0x1050113
and eax, 0xffff
or eax, 0x80070000
jmp 0x1050113
xor eax, eax
pop ebp
ret 4

Function at 0x105026b
Capabilities:
Add user account
Add user account to group

Disassembly:
mov eax, 0x108f5c6
call fcn.01027038
sub esp, 0x78
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
push 0x18
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.01033784
mov esi, eax
cmp esi, ebx
jl 0x10503c3
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
or dword [ebp - 0x48], 0xffffffff
or dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x84]
push eax
push 2
push 0
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x6c], 0x10041
call sub.NETAPI32.dll_NetUserAdd
mov esi, eax
cmp esi, 0x8b0
jne 0x1050338
lea eax, [ebp - 0x10]
push eax
push 0xa
push edi
push 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x1050342
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
call fcn.01018b82
test eax, eax
jne 0x1050342
push eax
lea eax, [ebp + 0x10]
push eax
push 0x3eb
push edi
push 0
mov dword [ebp + 0x10], ebx
call sub.NETAPI32.dll_NetUserSetInfo
mov esi, eax
test esi, esi
je 0x1050350
jle 0x10503c3
and esi, 0xffff
or esi, 0x80070000
jmp 0x10503c3
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x14], edi
jne 0x105035f
mov eax, 0x1001eb0
push 1
lea ecx, [ebp - 0x14]
push ecx
push 3
push eax
push 0
call sub.NETAPI32.dll_NetLocalGroupAddMembers
test eax, eax
je 0x105038e
cmp eax, 0x562
je 0x105038e
test eax, eax
jg 0x1050382
mov esi, eax
jmp 0x10503c3
and eax, 0xffff
or eax, 0x80070000
jmp 0x105037e
push 0x100d338
push edi
call fcn.01024e44
mov esi, eax
test esi, esi
jl 0x10503c3
push 0x100d308
push edi
call fcn.01024e44
mov esi, eax
test esi, esi
jl 0x10503c3
push 0x100d2d0
push edi
call fcn.01024e44
mov esi, eax
test esi, esi
jl 0x10503c3
xor esi, esi
cmp dword [ebp - 0x10], 0
je 0x10503d1
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
push 1
lea ecx, [ebp - 0x24]
call fcn.0101937d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x1054bae
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.01054b7c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x40
push 1
push 0
push 0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1054c23
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x80090016
je 0x1054bf4
test eax, eax
jle 0x1054c0d
and eax, 0xffff
or eax, 0x80070000
jmp 0x1054c0d
push 0x48
push 1
push 0
push 0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1054c23
call edi
test eax, eax
jg 0x1054c11
call edi
mov esi, eax
jmp 0x1054c25
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1054c25
xor esi, esi
test esi, esi
jge 0x1054c31
mov ecx, dword [ebp - 4]
call fcn.01054b7c
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1054ccb
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov eax, 0x80070057
jne 0x1054ced
mov esi, eax
cmp dword [ebp + 0xc], ebx
jne 0x1054cf4
mov esi, eax
cmp esi, ebx
jl 0x1054d9b
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.010207a8
mov esi, eax
cmp esi, ebx
jl 0x1054d7f
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1054d59
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1054d59
push ebx
push ebx
push dword [edi + 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x1054d7d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1054d6b
call esi
mov esi, eax
jmp 0x1054d7f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1054d7f
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x1054d8d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], ebx
je 0x1054d9b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10590fa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x108ff00
call fcn.01027038
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.0105abfc
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 3
call fcn.0105ac6f
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
or dword [esi + 8], 0xffffffff
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 4
mov dword [esi + 4], eax
call fcn.0101d500
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x105ac6f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x108ff8d
call fcn.01027038
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
call fcn.0105abfc
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x105b26c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0106262b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0101dc46
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x105b2bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x105b302
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x105b302
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x105b0f9
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x105b326
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x105b314
call esi
mov esi, eax
jmp 0x105b32a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x105b32a
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x105d6dd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.0105d53b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0105cfa0
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x105d72d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x105d773
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x105d773
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x105d5e1
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x105d797
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x105d785
call esi
mov esi, eax
jmp 0x105d79b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x105d79b
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x10668d8
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01061694
push 0
push 1
mov ecx, ebx
call fcn.01062729
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.01061ed6
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1066928
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x106696e
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x106696e
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x106683f
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1066992
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1066980
call esi
mov esi, eax
jmp 0x1066996
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1066996
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x10680b1
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10911c9
call fcn.01027038
sub esp, 0x440
mov eax, dword [0x10a1e18]
or dword [ebp - 0x42c], 0xffffffff
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x4a], bl
mov dword [ebp - 0x10], eax
je 0x10681e8
lea eax, [ebp - 0x42d]
push eax
push 0x10101c8
lea ecx, [ebp - 0x440]
call fcn.0101a5f5
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 4], ebx
call fcn.010219e1
mov eax, dword [ebp - 0x43c]
cmp eax, ebx
jne 0x1068115
mov eax, 0x1001eb0
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x42c], eax
jne 0x1068167
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10681cc
cmp eax, ebx
jle 0x1068153
and eax, 0xffff
or eax, 0x80070000
push 1
lea ecx, [ebp - 0x440]
mov esi, eax
call fcn.0101937d
jmp 0x106820c
push eax
lea ecx, [ebp - 0x44c]
call fcn.01074f6a
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.01074df1
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.01067e4a
lea ecx, [ebp - 0x428]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.01074e21
cmp esi, ebx
jge 0x10681c9
push 1
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x44c], 0x100a9ac
call fcn.0101937d
jmp 0x10681f7
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.0106709e
lea ecx, [ebp - 0x440]
push 1
mov esi, eax
call fcn.0101937d
cmp esi, ebx
jl 0x10681f7
jmp 0x10681f5
mov ecx, edi
call fcn.01067fc3
mov esi, eax
cmp esi, ebx
jl 0x106820c
xor esi, esi
cmp dword [ebp - 0x42c], 0xffffffff
je 0x106820c
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cfd1
leave
ret

Function at 0x106bdda
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10917da
call fcn.01027038
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
call fcn.0101d953
xor ebx, ebx
lea edi, [esi + 0x20]
mov dword [esi], 0x10107a8
mov dword [ebp - 4], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0106afd8
push 0x1010570
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0101a536
push edi
call fcn.010219e1
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3d], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x106e618
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1091ae8
call fcn.01027038
sub esp, 0x74
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x20], 0
push edi
jne 0x106e752
lea eax, [ebp - 0xd]
push eax
push 0x1010980
lea ecx, [ebp - 0x38]
call fcn.0101a5f5
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.010219e1
lea ebx, [esi + 0x24]
and dword [ebx], 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0107329d
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jl 0x106e6b6
mov eax, dword [ebp - 0x34]
cmp eax, ecx
jne 0x106e679
mov eax, 0x1001eb0
push ecx
push 0x80
push 3
push ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x106e6c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x106e748
test eax, eax
jle 0x106e6b4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push 1
lea ecx, [ebp - 0x38]
call fcn.0101937d
jmp 0x106e76b
push eax
lea ecx, [ebp - 0x28]
call fcn.01074f6a
push 0
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call dword [eax + 4]
test eax, eax
jl 0x106e748
cmp dword [ebp - 0x18], 0x100af05
jne 0x106e748
push ebx
lea ecx, [ebp - 0x28]
call fcn.01035cc0
test eax, eax
jl 0x106e748
lea ebx, [esi + 0x28]
lea ecx, [ebp - 0x80]
call fcn.0106e06e
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0106e43b
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.0106cc4f
mov edi, dword [ebp - 0x1c]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0106e0a8
test eax, eax
jge 0x106e700
push edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0106e47b
push 1
lea ecx, [ebp - 0x38]
call fcn.0101937d
xor edi, edi
cmp dword [ebp - 0x14], 0xffffffff
mov byte [esi + 0x20], 1
mov byte [esi + 0x21], 0
je 0x106e76b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret