joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1006c0f9
cmp dword [ebp + 0x10], 0
je 0x1006c0f9
cmp dword [ebp + 0x14], 0
je 0x1006c0f9
cmp dword [ebp + 0xc], 0x104
jge 0x1006c0a9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1006c0a9
push esi
push dword [edi + 8]
call fcn.10078a90
jmp 0x1006c0b2
push esi
push dword [edi + 8]
call fcn.10078cf0
add esp, 8
test eax, eax
jne 0x1006c0e0
push eax
push 0xffffffffffffffff
push eax
push dword [edi + 8]
call fcn.100773a0
add esp, 0x10
test eax, eax
jne 0x1006c0e0
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.1006bd30
pop edi
pop esi
pop ebp
ret 0x10
push dword [ebp + 0x14]
mov eax, 1
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.1006bd30
pop edi
pop esi
pop ebp
ret 0x10
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10

Function at 0x1007f190
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x1007f1b2
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x44], eax
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call fcn.1018dd13
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 6], cl
cmp dword [eax + 0x58], 0
je 0x1007f1d4
push ecx
push esi
call fcn.1007f310
mov eax, dword [esi + 0x10]
push esi
mov eax, dword [eax + 0x58]
call eax
add esp, 0xc
push 1
call fcn.101a38e2
int3

Function at 0x100821f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 1
call fcn.10076ff0
add esp, 4
sub eax, esi
je 0x10082250
mov edi, dword [ebp + 0x10]
dec eax
push edi
push ebx
mov dword [ebp - 8], eax
call fcn.10077ee0
add esp, 8
cmp eax, 3
jne 0x10082272
test esi, esi
je 0x10082246
push edi
push ebx
call fcn.10077de0
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.10078050
add esp, 0x10
test eax, eax
jg 0x1008229a
xor esi, esi
mov eax, dword [ebp - 8]
inc edi
test eax, eax
jne 0x10082211
call fcn.10190d97
mov edi, dword [eax]
test esi, esi
je 0x100822a1
push 1
push ebx
call fcn.10077410
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.10078470
add esp, 0xc
test esi, esi
je 0x10082246
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push eax
call fcn.101979e8
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x10082246
mov esi, 1
jmp 0x10082248
push ebx
call fcn.10077590
push edi
call fcn.101a23b1
push eax
push 0x101daba0
push ebx
call fcn.100774d0
push edi
push ebx
call fcn.10077500
add esp, 0x1c
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100826d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
mov dword [ebp - 0x218], ebx
call fcn.10078320
mov edi, dword [ebp + 0x10]
add esp, 8
mov ebx, dword [ebp - 0x214]
mov esi, 0x200
nop word [eax + eax]
lea eax, [ebp - 0x210]
push eax
call fcn.10078f60
cmp esi, edi
mov ecx, edi
push ebx
cmovbe ecx, esi
mov esi, ecx
push esi
push 1
push eax
call fcn.101a1e74
add dword [ebp - 0x210], eax
add esp, 0x14
sub edi, eax
je 0x10082750
cmp eax, esi
je 0x10082720
lea eax, [ebp - 0x210]
push eax
call fcn.10078fa0
mov ebx, dword [ebp - 0x218]
add esp, 4
test edi, edi
je 0x10082789
push 0xffffffffffffffff
push ebx
call fcn.10077330
add esp, 8
test eax, eax
jne 0x10082789
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x1009c0e0
Capabilities:
Create service
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cb231
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x1022b584]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xf003f
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x1009c154
mov eax, 0x80004003
jmp 0x1009c328
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x250]
push 1
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push 0xf01ff
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov dword [ebp - 0x248], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24c], eax
call fcn.100a97a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1009c288
push 0x14
mov dword [ebp - 0x230], ecx
mov byte [ebp - 0x240], cl
lea ecx, [ebp - 0x240]
push str.lua_system_helper.cc
mov dword [ebp - 0x22c], 0xf
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x2ec]
push 0x5a
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.10007f90
mov esi, eax
push str.Create_service_err_code_:
push esi
mov byte [ebp - 4], 2
call fcn.10008dd0
add esp, 8
mov ecx, esi
push dword [ebp - 0x24c]
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2ec]
call fcn.10008e90
lea ecx, [ebp - 0x228]
call fcn.10007310
lea ecx, [ebp - 0x240]
call fcn.10007310
mov esi, dword [ebp - 0x254]
mov edi, dword [ebp - 0x248]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1018d4b0
push str.SYSTEMCurrentControlSet_services_
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.10190daa
push esi
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.10197a40
add esp, 0x24
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1009c30a
push str.WOW64
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1009c326
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x1009c326
mov eax, 0x80004005
jmp 0x1009c328
xor eax, eax
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.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x1009cb40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.1018d4b0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.1018d4b0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1009cba3
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x1009cba8
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x1009cbc6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x1009cbc8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x1009cbdc
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x1022f5ac]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101799ce
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1009edb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x238], eax
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1009ee7d
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.1018d4b0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1009ee76
push ebx
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1009ee5c
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], edi
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1009ee5c
cmp dword [ebp - 0x234], ebx
je 0x1009ee6f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1009ee20
jmp 0x1009ee75
mov edi, dword [ebp - 0x228]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101799ce
mov esp, ebp
pop ebp
ret

Function at 0x1009ee90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.1018d4b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1009eefc
push eax
call fcn.1009ef30
mov edi, eax
add esp, 4
test edi, edi
je 0x1009eefc
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009ef10
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.10010980
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x100a04f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cbb5a
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1022b584]
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, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x100a0611
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push 0
push eax
mov dword [ebp - 0x220], 0x208
mov dword [ebp - 0x224], 1
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a05d3
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a05b5
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1000f6e0
mov edi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100a05f2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.101799ce
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10009b10
int3
Function at 0x100a55df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x100a5604
xor eax, eax
jmp 0x100a5660
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100a5631
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x100a5631
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x100a56e5
cmp dword [edi + 0x4c], 0
je 0x100a565a
mov ecx, edi
call fcn.100a52a4
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100a5670
push dword [edi + 0x4c]
push ebx
call fcn.100a4e5c
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x100a565f
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101799ce
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x101d1650]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x100a565a
cmp eax, 1
jle 0x100a56b8
cmp eax, 3
jne 0x100a565a
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x100a564c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100a56d5
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.101979e8
add esp, 0x10
cmp esi, eax
jne 0x100a565a
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x100a565a
mov ax, bx
jmp 0x100a565f
Function at 0x100a8bc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc2aa
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1022b584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x100a8d84
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x100a8d8e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x100a8d98
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x100a8ca2
xor ecx, ecx
jmp 0x100a8cc0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8cb0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000f6e0
push edi
mov ecx, ebx
call fcn.100117f0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100a8cdc
xor ecx, ecx
jmp 0x100a8cf4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a8ce4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.1000f6e0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.100a9520
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.100117f0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a8d35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x100a8d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a8d6e
cmp dword [esi + 0x10], 0
je 0x100a8d65
push dword [edi]
call fcn.101ab638
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
int3
Function at 0x100a9320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc398
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x100a94f4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100a9375
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x100a94f4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100a9393
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x100a94f4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100a93b1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x100a94f4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100a93cf
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x100a94f4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100a94f4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100a93f4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x100a9427
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x100a943f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x100a947d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.1000cb80
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.1018c580
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x101e0d94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100a9cf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a94ab
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x100a94e4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100a94e4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.10010da0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.10008970
lea ecx, [ebp - 0x28]
call fcn.10008970
lea ecx, [ebp - 0x34]
call fcn.10054240
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.101799ce
mov esp, ebp
pop ebp
ret 4
Function at 0x100a9890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc457
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1022b584]
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 ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x100a98da
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a98e6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.10034f40
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x100a9953
push 0x48
call fcn.10179990
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x100a9947
push 0x48
push 0
push ebx
call fcn.1018d4b0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.100a8bc0
jmp 0x100a9949
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a9980
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10034f40
push 3
push 0x101e0d94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1002df80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a99cf
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x100a9a1e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100a9a1e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.10034f40
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.10008970
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a9a54
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a9a4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a9a91
push edx
push ecx
call fcn.101799c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x100a9a73
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.101799ce
mov esp, ebp
pop ebp
ret 0x14
call fcn.10190cce
int3