joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9070
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f537c]
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 ecx, 0x602360
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
call fcn.0046f110
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.00476010
mov esi, dword [edi + 0x10]
test esi, esi
je 0x466efb
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x466e64
cmp edx, 0x7fffffff
jne 0x466e64
movsd xmm0, qword [0x5bc010]
jmp 0x466e71
call fcn.0059feb0
divsd xmm0, qword [0x5bbfe8]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov ecx, edi
mov dword [ebp - 0x20], str.average_overhead
mov esi, eax
call fcn.004694b0
test eax, eax
je 0x466efb
movsd xmm0, qword [ebp - 0x30]
push 0
push 0
movsd qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x11]
movlpd qword [ebp - 0x28], xmm0
push ecx
lea ecx, [ebp - 0x20]
movlpd qword [ebp - 0x30], xmm0
push ecx
push 1
push 0
push 0
push str.overhead
push 0x602cab
push 0x4d
push dword [ebp - 0x24]
mov ecx, eax
mov byte [ebp - 0x11], 4
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call fcn.004732a0
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.0046eb20
mov ecx, 0x602360
call fcn.0046f110
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x20], eax
add ecx, 0x1e8
lea eax, [ebp - 0x20]
push eax
call fcn.0047e1e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1dc]
call fcn.004786f0
mov esi, dword [edi + 8]
add esp, 8
test esi, esi
je 0x466f7b
push 0x466fb0
push 0x40
push 0x60
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.0045a921
push 0x1810
push esi
call fcn.0045a8df
add esp, 8
mov dword [edi], vtable.base::MessageLoop::DestructionObserver.0
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.0045a8ed
mov esp, ebp
pop ebp
ret
Function at 0x46b340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx]
sub eax, esi
sar eax, 2
test eax, eax
je 0x46b3b1
push ebx
push edi
mov edi, eax
mov ebx, dword [esi]
lea esi, [esi + 4]
movzx edx, al
movzx ecx, bl
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ecx, 8
xor eax, dword [edx*4 + 0x5b9368]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
xor eax, dword [edx*4 + 0x5b9368]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5b9368]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5b9368]
sub edi, 1
jne 0x46b353
pop edi
pop ebx
pop esi
ret
Function at 0x46c130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x46c158
call fcn.00470e40
cmp dword [eax], 1
jl 0x46c158
mov dword [ebp - 4], 0x10000
jmp 0x46c15a
xor esi, esi
push 8
call fcn.0045a8af
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp - 4]
mov dword [ebx], ecx
setne cl
push ebx
push 0x4797e0
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x46c1a2
push 8
push ebx
call fcn.0045a8df
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x46c1b8
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f110
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, 0xfffffffe
jne 0x46f187
push esi
call fcn.00474270
add esp, 4
test al, al
je 0x46f187
push edi
lea edi, [esi + 4]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x46f184
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.00413b60
add esp, 0xc
test eax, eax
je 0x46f184
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004636d0
lea ecx, [ebp - 0xb4]
call fcn.00466340
mov dword [esi], edi
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x470c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x470c66
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
push esi
push dword [edi + 0x1dc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x470cae
push dword [edi + 0x1dc]
call esi
mov esi, eax
mov edx, dword [esi + 8]
test edx, edx
je 0x470cae
cmp ebx, dword [edx + 0x1808]
jne 0x470cae
mov eax, dword [ebp + 0xc]
movzx ecx, ax
cmp ecx, dword [esi + 0xc]
jne 0x470cae
movzx eax, word [ebp + 0xe]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, edx
jne 0x470d12
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x470cc7
cmp byte [esi + 4], 0
jne 0x470cc7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x470d06
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmp eax, dword [edi + 0x210]
jne 0x470d06
cmp ebx, dword [ecx + 0x1808]
jne 0x470cfd
movzx eax, word [ebp + 0xe]
pop esi
pop edi
pop ebx
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, ecx
pop ebp
ret 0xc
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4730e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x5f537c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5f558c]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x47310b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x473110
call fcn.0046bac0
mov eax, 1
mov ecx, 0x602d88
lock xadd dword [ecx], eax
inc eax
mov dword [ebp - 8], 0x100
mov dword [esi + 4], eax
mov dword [ebp - 0xc], eax
cmp eax, 0x100
jl 0x47316d
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045c630
add esp, 0xc
test eax, eax
je 0x47316d
push eax
push 0xd2
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0xbc]
call fcn.004636d0
lea ecx, [ebp - 0xbc]
call fcn.00466340
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x602d90], eax
mov al, 1
mov ecx, dword [ebp - 4]
mov byte [esi], 1
xor ecx, ebp
pop esi
call fcn.0045a8ed
mov esp, ebp
pop ebp
ret 4
Function at 0x473a00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa691
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f537c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.00473190
test al, al
je 0x473bc1
mov eax, dword [0x5f558c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x473a51
call fcn.0046bac0
mov ecx, eax
mov eax, dword [0x60319c]
cmp dword [ecx + eax*4], 0
jne 0x473bc1
push 0x70
call fcn.0045a8af
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x473b97
push 0x70
push 0
push edi
call fcn.0056c750
mov dword [edi], 0
add esp, 0xc
mov dword [edi + 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x20], 0
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047bd40
mov dword [esi], eax
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047bd60
mov dword [esi], eax
lea esi, [edi + 0x34]
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047bd20
mov dword [esi], eax
lea eax, [edi + 0x3c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea esi, [edi + 0x54]
mov byte [ebp - 4], 5
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0045a8af
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 6
mov dword [edi + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x473b8e
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x473b85
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.0040ca10
mov ecx, edi
call fcn.00475440
jmp 0x473b99
xor edi, edi
mov eax, dword [0x5f558c]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x473bb9
call fcn.0046bac0
mov ecx, eax
mov eax, dword [0x60319c]
mov dword [ecx + eax*4], edi
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 0x4748e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5f537c]
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 eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
push ecx
push 3
push eax
call fcn.00479f50
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x474973
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.00472870
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4749a9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47499f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4749c6
push edx
push ecx
call fcn.0045a8df
add esp, 8
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.0045a8ed
mov esp, ebp
pop ebp
ret 4
call fcn.0057097a
int3

Function at 0x4749d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, 0xfffffffe
jne 0x474a55
push esi
call fcn.00474270
add esp, 4
test al, al
je 0x474a55
push edi
lea edi, [esi + 4]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x474a44
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.00413b60
add esp, 0xc
test eax, eax
je 0x474a44
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004636d0
lea ecx, [ebp - 0xb4]
call fcn.00466340
push esi
push 0x4747d0
mov dword [esi], edi
call fcn.004756b0
add esp, 8
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f537c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x602360
call fcn.0046f110
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
mov al, byte [eax + 0x65]
test al, al
lea eax, [ebp - 0x20]
je 0x4753e6
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4753e2
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4753e2
xor bl, bl
jmp 0x4753f8
mov bl, 1
jmp 0x4753f8
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x47541a
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a8ed
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004751b0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a8ed
mov esp, ebp
pop ebp
ret
Function at 0x4786f0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a973f
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
mov eax, dword [0x5f537c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4787b7
cmp dword [0x602374], 3
jg 0x4787a7
push 1
push 2
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc0], 3
call fcn.00410120
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
mov dword [ebp - 0x18], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 0x23
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00471ea0
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 2
push str.Failed_to_TlsSetValue__.
mov ebx, 1
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040fb80
add esp, 8
test bl, 1
je 0x4787b7
lea ecx, [ebp - 0xc0]
call fcn.00466340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ca40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push edi
mov ebx, ecx
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x47ca55
mov edx, dword [edx]
xor eax, eax
push esi
mov esi, 0x811c9dc5
test edi, edi
je 0x47ca72
movzx ecx, byte [eax + edx]
inc eax
xor ecx, esi
imul esi, ecx, 0x1000193
cmp eax, edi
jb 0x47ca61
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.0058a147
imul ecx, edx, 0x41a7
add esp, 8
imul eax, eax, 0xb14
pop esi
sub ecx, eax
jns 0x47ca9d
add ecx, 0x7fffffff
mov eax, dword [ebx + 0x1c]
pop edi
and eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x47d240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x602360
call fcn.0046f110
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x47d264
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop ebp
ret
mov ecx, dword [eax + 0xa8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x47d27f
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
pop ebp
ret
Function at 0x4831d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab81f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f537c]
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.00408cf0
mov ecx, eax
test ecx, ecx
je 0x483384
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.00408cf0
mov ecx, eax
test ecx, ecx
je 0x48338e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00408cf0
mov ecx, eax
test ecx, ecx
je 0x483398
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 0x4832a8
xor ecx, ecx
jmp 0x4832c0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4832b0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040a9f0
push edi
mov ecx, ebx
call fcn.00406bb0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4832dc
xor ecx, ecx
jmp 0x4832f4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4832e4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040a9f0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00483f00
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00406bb0
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 0x483335
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 0x48336e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48336e
cmp dword [esi + 0x10], 0
je 0x483365
push dword [edi]
call fcn.0058b6e0
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.00407940
push 0x80004005
call fcn.00407940
push 0x80004005
call fcn.00407940
int3
Function at 0x483d80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab908
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f537c]
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 0x483ee1
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.__set_log_lev0
push edi
call ebx
test eax, eax
je 0x483dd8
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 4]
jmp 0x483ee1
push str.__set_log_lev1
push edi
call ebx
test eax, eax
je 0x483df2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
jmp 0x483ee1
push str.__set_log_lev2
push edi
call ebx
test eax, eax
je 0x483e0c
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 4]
jmp 0x483ee1
push str.__set_log_lev3
push edi
call ebx
test eax, eax
je 0x483e26
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 4]
jmp 0x483ee1
push str.__reload_log_switch
push edi
call ebx
test eax, eax
je 0x483ee1
push 3
mov ecx, esi
call fcn.00483d40
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.004057b0
push 0x5bd7d0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004853f0
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 0x483e7e
push 0
mov ecx, esi
call fcn.00483d40
lea eax, [esi + 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x483e8f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x44], 0
mov byte [ebp - 4], 1
je 0x483ed1
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x483ed1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x483ed1
push str._______log_reload_switch
lea ecx, [ebp - 0x44]
call fcn.004059a0
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.00406670
lea ecx, [ebp - 0x2c]
call fcn.0041e1b0
lea ecx, [ebp - 0x28]
call fcn.00406670
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.0045a8ed
mov esp, ebp
pop ebp
ret 4
Function at 0x485830
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abc4b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5f537c]
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 edx, dword [edi]
mov eax, dword [ebp + 8]
push eax
call dword [edx]
cmp byte [edi + 0xc], 0
je 0x485966
mov ebx, dword [edi + 0x14]
lea esi, [edi + 0x20]
push 0x180
push 0x40
push 0x8109
push ebx
push esi
call fcn.0058c1a7
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x485946
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0056c750
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.00405460
push 0x5bd544
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push ebx
push str.open
push eax
call fcn.00403140
add esp, 8
push eax
call fcn.00403140
add esp, 8
push eax
call fcn.00403140
add esp, 8
mov ecx, eax
call fcn.0041ed90
push eax
call fcn.00403140
add esp, 8
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00485770
cmp dword [eax + 0x14], 8
jb 0x485929
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xd8]
call fcn.00406670
lea ecx, [ebp - 0xa8]
call fcn.004070e0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48595c
push 2
push 0
push eax
call fcn.0058c79a
add esp, 0xc
jmp 0x48595f
or eax, 0xffffffff
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x485a84
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor bl, bl
push 0
push eax
call esi
test eax, eax
movzx edx, bl
mov ecx, 1
cmove edx, ecx
mov dword [ebp - 0xac], edx
test dl, dl
jne 0x4859b9
cmp dword [ebp + 0xc], 0
je 0x4859b1
push 0xffffffffffffffff
push dword [edi + 4]
call esi
mov byte [ebp - 0xac], 1
jmp 0x4859b9
test dl, dl
je 0x485a84
lea ecx, [edi + 0x24]
mov dword [ebp - 0xb8], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
cmp eax, ecx
je 0x485a5d
mov esi, dword [ecx]
mov dword [ecx], 0
mov edx, dword [ecx + 4]
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], eax
mov dword [ecx + 8], 0
cmp esi, edx
je 0x485a5d
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x485a2a
mov ecx, dword [esi]
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x485a49
push dword [esi + 0x10]
push ecx
push eax
call fcn.0058aa27
mov edx, dword [ebp - 0xbc]
add esp, 0xc
mov ecx, eax
jmp 0x485a4c
or ecx, 0xffffffff
mov ebx, dword [edi + 8]
add esi, 0x18
add ebx, ecx
mov dword [edi + 8], ebx
cmp esi, edx
jne 0x485a20
jmp 0x485a60
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0xb8]
call fcn.00465f30
cmp byte [ebp - 0xac], 0
je 0x485a80
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
jmp 0x485a87
mov eax, dword [edi + 8]
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.0045a8ed
mov esp, ebp
pop ebp
ret 8