joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a540
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096d76
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100c6394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0x40
lea edi, [eax + 8]
mov dword [eax], vtable.GameModeAndWebStateIdentifyImp.0
push 0
push edi
mov dword [eax + 4], 0
call fcn.100569b0
mov dword [ebp - 0x14], edi
add esp, 0xc
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
lea esi, [edi + 0x24]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10014c90
mov dword [esi], eax
add edi, 0x2c
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100202c0
mov dword [edi], eax
lea esi, [edi + 8]
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10011e80
mov dword [esi], eax
mov dword [edi + 0x10], 0x3e8
mov edi, dword [ebp - 0x10]
push 0x70
push 0
lea esi, [edi + 0x48]
push esi
call fcn.100569b0
mov dword [esi], 0
xorps xmm0, xmm0
mov dword [esi + 4], 0
add esp, 0xc
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
movups xmmword [esi + 0x58], xmm0
movq qword [esi + 0x68], xmm0
mov eax, edi
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov byte [edi + 0xb8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001ac70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096dd0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100c6394]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x34]
call fcn.10013290
mov esi, dword [ebx + 0x2c]
push dword [esi + 4]
lea ecx, [ebx + 0x2c]
mov dword [ebp - 4], 0
call fcn.10012100
mov eax, dword [ebx + 0x2c]
push 0x2a8
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax + 8], esi
mov dword [ebx + 0x30], 0
push dword [ebx + 0x2c]
call fcn.1004cc8b
add esp, 8
mov esi, dword [ebx + 0x24]
mov dword [ebp - 4], 1
push dword [esi + 4]
lea ecx, [ebx + 0x24]
mov byte [ebp - 4], 2
call fcn.10012160
mov eax, dword [ebx + 0x24]
push 0x1c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x24]
mov dword [eax], esi
mov eax, dword [ebx + 0x24]
mov dword [eax + 8], esi
mov dword [ebx + 0x28], 0
push dword [ebx + 0x24]
call fcn.1004cc8b
add esp, 8
lea ecx, [ebx + 0x18]
mov dword [ebp - 4], 3
call fcn.10020700
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 4
call fcn.10020700
mov ecx, ebx
mov dword [ebp - 4], 5
call fcn.10020700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001cce0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009711b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100c6394]
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
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [0x100c5104]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x44], ebx
call fcn.1003e050
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
sub ecx, 1
jne 0x1001ce69
call eax
push 0x76
push str.d:jenkins.jenkinsworkspacelib_commonmodeidentifymodeidentifyldsmodeidentifyldsmodeidentifymodeidentifyimp.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000a9b0
push 3
push 0x1009de28
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a9b0
mov byte [ebp - 4], 1
call fcn.1003e050
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xe8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004330
mov esi, eax
push str.Create_Instance_mutex_BroadcastWndMutex_:
push esi
mov byte [ebp - 4], 2
call fcn.10005560
add esp, 8
mov ecx, esi
push ebx
call fcn.100053b0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.10005880
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001ce1f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ce15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cea0
push edx
push ecx
call fcn.1004cc8b
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x1001ce61
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ce57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cea5
push edx
push ecx
call fcn.1004cc8b
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x44]
call eax
cmp eax, 0xb7
jne 0x1001ce82
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
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.1004d00a
mov esp, ebp
pop ebp
ret
call fcn.10059b09
call fcn.10059b09
int3
Function at 0x1001e7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097326
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100c6394]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1001e89c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1001e89c
call fcn.1001b870
mov esi, eax
jmp 0x1001e98c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001e8bf
call fcn.1001b870
jmp 0x1001e97f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001e8dd
call fcn.1001b870
jmp 0x1001e97f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001e8fe
mov esi, 0x8007000e
jmp 0x1001e981
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001b740
jmp 0x1001e928
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001e93f
mov esi, 0x8007000e
jmp 0x1001e981
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001e95f
call fcn.1001b870
jmp 0x1001e97f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1001e650
mov esi, eax
test edi, edi
je 0x1001e98c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1001e9b0
lea ecx, [ebp - 0x418]
call fcn.1001ccd0
nop word [eax + eax]
mov eax, esi
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.1004d00a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001fa40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x1001fa6f
push 0
push 0
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001fa68
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1001fa84
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0x10], 0
add esi, 0x18
je 0x1001fa90
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x18]
test esi, esi
je 0x1001fa9e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1f4
mov ecx, esi
call fcn.1001f630
test al, al
jne 0x1001fab7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
ret
Function at 0x1002a9c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009832b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100c6394]
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 + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x1002ab4b
mov eax, dword [edx + ecx*4]
cmp dword [eax - 0xc], 0
je 0x1002ab4b
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
push ecx
push 0x1009e3b0
push eax
call fcn.10008350
mov eax, dword [ebp - 0x220]
add esp, 0xc
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
cmp edi, eax
je 0x1002ab40
or ebx, 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1002aa9a
cmp ecx, dword [esi]
jne 0x1002aa9a
lock inc dword [eax]
jmp 0x1002aad4
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x1002ab8f
mov ecx, dword [ebx]
lea eax, [esi + 0x10]
mov dword [esi + 4], ecx
mov ecx, dword [ebx]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x228]
push ecx
push eax
call fcn.1000c3d0
add esp, 0x10
or ebx, 0xffffffff
add esi, 0x10
cmp dword [esi - 0xc], 0
je 0x1002ab1a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100569b0
mov eax, dword [ebp - 0x22c]
add esp, 0xc
push esi
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002ab6b
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002ab31
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x230]
jne 0x1002aa73
lea ecx, [ebp - 0x224]
call fcn.1000f490
mov al, 1
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.1004d00a
mov esp, ebp
pop ebp
ret 0xc
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002ab80
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x224]
call fcn.1000f490
xor al, al
jmp 0x1002ab4d
call fcn.10008db0
int3
Function at 0x10030710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009711b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100c6394]
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 ebx, ecx
call fcn.1003e050
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003086a
push 0x7c
push str.d:jenkins.jenkinsworkspacelib_commonmodeidentifymodeidentifyldsmodeidentifyldsmodeidentifyuia_uielement_identify.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000a9b0
push 3
push 0x1009de28
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a9b0
mov byte [ebp - 4], 1
call fcn.1003e050
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x88
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004330
mov esi, eax
push str.create_stop_event_:
push esi
mov byte [ebp - 4], 2
call fcn.10005560
add esp, 8
mov ecx, esi
push dword [ebx + 0x18]
call fcn.10015650
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.10005880
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10030828
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003081e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100308b9
push edx
push ecx
call fcn.1004cc8b
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x1003086a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10030860
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100308be
push edx
push ecx
call fcn.1004cc8b
add esp, 8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x44]
push eax
push 0
push ebx
push 0x10031240
push 0
push 0
mov dword [ebp - 0x44], 0
call fcn.1006508c
add esp, 0x18
mov dword [ebx + 0x1c], 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.1004d00a
mov esp, ebp
pop ebp
ret
call fcn.10059b09
call fcn.10059b09
int3
Function at 0x10035350
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10035381
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10035370
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x10035cb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push 0xc8
push 0
lea edi, [esi + 8]
mov dword [esi], eax
lea ebx, [esi + 4]
mov dword [ebx], 0
push edi
call fcn.100569b0
push 0xc8
lea eax, [esi + 0xd0]
push 0
push eax
call fcn.100569b0
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x10035d33
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10035d33
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x64
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_InternalGetWindowText]
test eax, eax
jne 0x10035d20
push 0x64
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [esi + 0xd0]
push eax
push dword [ebx]
call fcn.10006c50
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1003cd60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009948f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c6394]
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.10006af0
mov ecx, eax
test ecx, ecx
je 0x1003cf14
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.10006af0
mov ecx, eax
test ecx, ecx
je 0x1003cf1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.10006af0
mov ecx, eax
test ecx, ecx
je 0x1003cf28
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
mov dword [esi + 0x10], eax
test edx, edx
jne 0x1003ce38
xor ecx, ecx
jmp 0x1003ce50
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ce40
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10008270
push edi
mov ecx, ebx
call fcn.100052b0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1003ce6c
xor ecx, ecx
jmp 0x1003ce84
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ce74
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.10008270
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.1003dbe0
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.100052b0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003cec5
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 0x1003cefe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003cefe
cmp dword [esi + 0x10], 0
je 0x1003cef5
push dword [edi]
call fcn.10067f9a
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.10005e80
push 0x80004005
call fcn.10005e80
push 0x80004005
call fcn.10005e80
int3
Function at 0x1003da60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099578
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100c6394]
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 [ebp + 8]
test edi, edi
je 0x1003dbc1
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.__set_log_lev0
push edi
call ebx
test eax, eax
je 0x1003dab8
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 4]
jmp 0x1003dbc1
push str.__set_log_lev1
push edi
call ebx
test eax, eax
je 0x1003dad2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
jmp 0x1003dbc1
push str.__set_log_lev2
push edi
call ebx
test eax, eax
je 0x1003daec
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 4]
jmp 0x1003dbc1
push str.__set_log_lev3
push edi
call ebx
test eax, eax
je 0x1003db06
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 4]
jmp 0x1003dbc1
push str.__reload_log_switch
push edi
call ebx
test eax, eax
je 0x1003dbc1
push 3
mov ecx, esi
call fcn.1003da20
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004140
push 0x100a52c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1003f130
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 0x1003db5e
push 0
mov ecx, esi
call fcn.1003da20
lea eax, [esi + 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1003db6f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x44], 0
mov byte [ebp - 4], 1
je 0x1003dbb1
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x1003dbb1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1003dbb1
push str._______log_reload_switch
lea ecx, [ebp - 0x44]
call fcn.1002d060
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x44]
call fcn.10004de0
lea ecx, [ebp - 0x2c]
call fcn.1001ad60
lea ecx, [ebp - 0x28]
call fcn.10004de0
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.1004d00a
mov esp, ebp
pop ebp
ret 4
Function at 0x1003fd20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099973
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100c6394]
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 + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x1009dcb8
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.1000a9b0
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret