joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ed50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x30], 0x4c005c
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x30]
mov eax, 0x100f8b1c
mov dword [ebp - 0x2c], 0x67006f
mov dword [ebp - 0x28], 0x43005c
mov edx, 0x16
mov dword [ebp - 0x24], 0x6d006f
sub esi, eax
mov dword [ebp - 0x20], 0x750070
mov dword [ebp - 0x1c], 0x650074
mov dword [ebp - 0x18], 0x5a0072
mov dword [ebp - 0x14], 0x320031
mov dword [ebp - 0x10], 0x6c002e
mov dword [ebp - 0xc], 0x67006f
nop dword [eax]
lea ecx, [edx + 0x7fffffe8]
test ecx, ecx
je 0x1002edde
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002edde
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002edc0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x100f8b1c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret

Function at 0x1002ee00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x30], 0x4c005c
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x30]
mov eax, 0x100f8aec
mov dword [ebp - 0x2c], 0x67006f
mov dword [ebp - 0x28], 0x43005c
mov edx, 0x16
mov dword [ebp - 0x24], 0x6d006f
sub esi, eax
mov dword [ebp - 0x20], 0x750070
mov dword [ebp - 0x1c], 0x650074
mov dword [ebp - 0x18], 0x5a0072
mov dword [ebp - 0x14], 0x320031
mov dword [ebp - 0x10], 0x6c002e
mov dword [ebp - 0xc], 0x67006f
nop dword [eax]
lea ecx, [edx + 0x7fffffe8]
test ecx, ecx
je 0x1002ee8e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002ee8e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002ee70
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x100f8aec
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret

Function at 0x1002eeb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x28], 0x6f0043
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x28]
mov eax, 0x100f8ab4
mov dword [ebp - 0x24], 0x70006d
mov dword [ebp - 0x20], 0x740075
mov edx, 0x12
mov dword [ebp - 0x1c], 0x720065
sub esi, eax
mov dword [ebp - 0x18], 0x5f005a
mov dword [ebp - 0x14], 0x4e0043
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
nop
lea ecx, [edx + 0x7fffffec]
test ecx, ecx
je 0x1002ef2e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002ef2e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1002ef10
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x100f8ab4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret
Function at 0x10032d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb140
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1001b9a0
push 1
mov ecx, eax
call fcn.10054e40
call fcn.1001b9a0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10051eb0
lea ecx, [ebp - 0x41]
mov dword [ebp - 4], 0
call fcn.1002ee00
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1001a330
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x10032dc4
mov eax, dword [eax]
push eax
call fcn.1004aab0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x10032e08
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032dfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032e98
push edx
push ecx
call fcn.10068042
add esp, 8
cmp dword [0x100f8b18], 0
jne 0x10032e49
mov dword [0x100f8b18], 1
call fcn.1001ba30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
call fcn.10031520
push 0
push 0
push eax
push 0x10033a60
push 0
push 0
call fcn.10092ac7
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10032e7f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10032e75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032e9d
push edx
push ecx
call fcn.10068042
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret
call fcn.10092d65
call fcn.10092d65
int3
Function at 0x10038000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7950
mov eax, dword fs:[0]
push eax
mov eax, dword [0x100f4384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0x30]
or eax, 0xffffffff
mov dword [ecx], vtable.CLayerControlBase.0
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10038043
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10038060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7970
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100f4384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
mov dword [esi], vtable.CLayerControlBase.0
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100380a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp + 8], 1
je 0x100380b7
push 0x48
push esi
call fcn.10068042
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10038310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbaf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100f4384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
add ebx, 0x30
mov eax, dword [ebx]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x10038362
cmp ecx, dword [esi]
jne 0x10038362
lock inc dword [eax]
jmp 0x10038392
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x100384fb
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi]
inc eax
add eax, eax
push eax
push dword [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.100089c0
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1003847c
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100383b0
sub edi, edx
sar edi, 1
je 0x1003847c
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x14], eax
mov eax, ecx
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
test edi, edi
js 0x10038500
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x100383f9
push edi
mov ecx, ebx
call fcn.10006cb0
mov edx, dword [ebx]
mov eax, dword [ebp - 0x10]
lea ecx, [edi + edi]
cmp eax, dword [ebp - 0x14]
ja 0x1003844e
lea eax, [edx + eax*2]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x10038464
test eax, eax
jne 0x10038424
call fcn.10092efd
mov dword [eax], 0x16
call fcn.10092d55
jmp 0x10038461
mov eax, dword [edx - 8]
add eax, eax
cmp eax, ecx
jae 0x1003843f
call fcn.10092efd
mov dword [eax], 0x22
call fcn.10092d55
jmp 0x10038461
push ecx
push dword [ebp + 0xc]
push edx
call fcn.1008f060
add esp, 0xc
jmp 0x10038461
mov eax, dword [edx - 8]
push ecx
push dword [ebp + 0xc]
add eax, eax
push eax
push edx
call fcn.100089c0
add esp, 0x10
lea ecx, [edi + edi]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10038500
mov dword [eax - 0xc], edi
xor edx, edx
mov eax, dword [ebx]
mov word [ecx + eax], dx
jmp 0x10038483
mov ecx, ebx
call fcn.1000ece0
mov eax, dword [ebx]
test eax, eax
je 0x1003850a
mov ecx, esi
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100384b6
test dx, dx
je 0x100384b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100384b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10038490
xor eax, eax
jmp 0x100384bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x100384c8
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100384e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100070e0
push 0x80070057
call fcn.100058e0
push 0x80004005
call fcn.100058e0
int3
Function at 0x1003a870
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100398e0
push 0
push 0
call fcn.10092ac7
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x1003c980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x1003c9aa
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003c9d6
push 1
mov ecx, esi
call fcn.1003c750
pop esi
pop ebp
ret 8
cmp dword [esi + 0x2c], 0
push edi
je 0x1003c9b6
mov edi, dword [esi + 0x34]
jmp 0x1003c9b9
mov edi, dword [esi + 0x30]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003c9d5
test edi, edi
je 0x1003c9d5
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 8

Function at 0x1003c9e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x1003ca11
mov eax, dword [esi + 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1003ca3d
push 1
lea ecx, [esi - 0x24]
call fcn.1003c750
mov eax, 1
pop esi
pop ebp
ret 0xc
cmp dword [esi + 8], 0
push edi
je 0x1003ca1d
mov edi, dword [esi + 0x10]
jmp 0x1003ca20
mov edi, dword [esi + 0xc]
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003ca3c
test edi, edi
je 0x1003ca3c
push 0
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x1003d690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x26], bl
mov dword [ebp - 0x2c], ebx
jb 0x1003d6b8
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x1003d7bd
push esi
mov esi, 1
cmp dword [ebp - 0x2c], esi
jle 0x1003d7b5
nop dword [eax]
mov edx, dword [edi + esi*4]
test edx, edx
je 0x1003d75d
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
mov eax, edx
mov dword [ebp - 0x10], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x30], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003d703
sub eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push edx
call fcn.100112e0
push 0
push 0
push 0
push 0
xor eax, eax
lea ecx, [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0xc], eax
or ebx, 1
cmp dword [ebp - 0x10], 8
mov word [ebp - 8], ax
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 3
push ecx
push eax
call fcn.10098dc4
add esp, 0x24
test eax, eax
jne 0x1003d75d
mov byte [ebp - 0x25], 1
cmp word [ebp - 0xc], ax
jne 0x1003d761
mov byte [ebp - 0x25], 0
test bl, 1
je 0x1003d79f
mov edx, dword [ebp - 0x10]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x1003d79f
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003d795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d7d0
push edx
push ecx
call fcn.10068042
add esp, 8
cmp byte [ebp - 0x25], 0
jne 0x1003d7b1
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x1003d6e0
jmp 0x1003d7b5
mov byte [ebp - 0x26], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x26]
xor ecx, ebp
pop edi
pop ebx
call fcn.100683c1
mov esp, ebp
pop ebp
ret
call fcn.10092d65
int3
Function at 0x1003f150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc4f2
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x818], 0
mov word [esi], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x81c], 1
test ecx, ecx
je 0x1003f280
test eax, eax
je 0x1003f280
test ebx, ebx
je 0x1003f280
lea edx, [ebp - 0x818]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003f26f
cmp dword [ebp - 0x818], eax
je 0x1003f280
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.1008f5e0
add esp, 0xc
mov dword [ebp - 0x820], 0x800
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push ebx
push 0
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1003f26f
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f251
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.100112e0
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x1003f280
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret
Function at 0x10040f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100f4384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x100f9f0c
mov dword [ebp - 0x28], 0x6c005c
lea esi, [ebp - 0x28]
mov dword [ebp - 0x24], 0x640075
mov dword [ebp - 0x20], 0x730061
mov edx, 0x13
mov dword [ebp - 0x1c], 0x690068
sub esi, eax
mov dword [ebp - 0x18], 0x6c005f
mov dword [ebp - 0x14], 0x67006f
mov dword [ebp - 0x10], 0x2e006f
mov dword [ebp - 0xc], 0x6e0070
mov dword [ebp - 8], 0x67
nop
lea ecx, [edx + 0x7fffffeb]
test ecx, ecx
je 0x10040fde
movzx ecx, word [esi + eax]
test cx, cx
je 0x10040fde
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10040fc0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x100f9f0c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret
Function at 0x10049800
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcfba
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100f4384]
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.10006280
mov ecx, eax
test ecx, ecx
je 0x100499c4
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.10006280
mov ecx, eax
test ecx, ecx
je 0x100499ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.10006280
mov ecx, eax
test ecx, ecx
je 0x100499d8
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 0x100498e2
xor ecx, ecx
jmp 0x10049900
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 0x100498f0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10006dc0
push edi
mov ecx, ebx
call fcn.10004ff0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1004991c
xor ecx, ecx
jmp 0x10049934
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10049924
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.10006dc0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.1004a150
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.10004ff0
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 0x10049975
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 0x100499ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100499ae
cmp dword [esi + 0x10], 0
je 0x100499a5
push dword [edi]
call fcn.1009d4f3
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.100058e0
push 0x80004005
call fcn.100058e0
push 0x80004005
call fcn.100058e0
int3
Function at 0x10049f50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd0a8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100f4384]
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 0x1004a124
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10049fa5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x1004a124
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10049fc3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x1004a124
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10049fe1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x1004a124
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10049fff
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x1004a124
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1004a124
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1004a024
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 0x1004a057
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x1004a06f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x1004a0ad
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.100075d0
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.1008eae0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x100cdd7c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1004ace0
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 0x1004a0db
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x1004a114
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x1004a114
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.1002e280
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.10004bc0
lea ecx, [ebp - 0x28]
call fcn.10004bc0
lea ecx, [ebp - 0x34]
call fcn.1001ae30
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.100683c1
mov esp, ebp
pop ebp
ret 4