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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5726c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c524c]
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, 0x5d1b28
mov dword [edi], vtable.base::debug::TraceLog::ThreadLocalEventBuffer.0
call fcn.004f8de0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.004fece0
mov esi, dword [edi + 0x10]
test esi, esi
je 0x4f1e0b
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x4f1d74
cmp edx, 0x7fffffff
jne 0x4f1d74
movsd xmm0, qword [0x594750]
jmp 0x4f1d81
call fcn.00563b40
divsd xmm0, qword [0x594738]
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.004f44f0
test eax, eax
je 0x4f1e0b
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 0x5d2473
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.004fc6b0
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.004f8a20
mov ecx, 0x5d1b28
call fcn.004f8de0
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.00505f50
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1dc]
call fcn.00501190
mov esi, dword [edi + 8]
add esp, 8
test esi, esi
je 0x4f1e8b
push 0x4f1ef0
push 0x40
push 0x60
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.004746b1
push 0x1810
push esi
call fcn.004747df
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.0047467d
mov esp, ebp
pop ebp
ret
Function at 0x4f5660
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 0x4f56d1
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 + 0x591b18]
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 + 0x591b18]
movzx edx, cl
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x591b18]
movzx ecx, al
xor ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x591b18]
sub edi, 1
jne 0x4f5673
pop edi
pop ebx
pop esi
ret
Function at 0x4f8de0
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 0x4f8e57
push esi
call fcn.004fd4e0
add esp, 4
test al, al
je 0x4f8e57
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 0x4f8e54
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.004e8ea0
add esp, 0xc
test eax, eax
je 0x4f8e54
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004eecc0
lea ecx, [ebp - 0xb4]
call fcn.004f14d0
mov dword [esi], edi
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fa520
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 0x4fa536
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 0x4fa57e
push dword [edi + 0x1dc]
call esi
mov esi, eax
mov edx, dword [esi + 8]
test edx, edx
je 0x4fa57e
cmp ebx, dword [edx + 0x1808]
jne 0x4fa57e
mov eax, dword [ebp + 0xc]
movzx ecx, ax
cmp ecx, dword [esi + 0xc]
jne 0x4fa57e
movzx eax, word [ebp + 0xe]
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, edx
jne 0x4fa5e2
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4fa597
cmp byte [esi + 4], 0
jne 0x4fa597
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x4fa5d6
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmp eax, dword [edi + 0x210]
jne 0x4fa5d6
cmp ebx, dword [ecx + 0x1808]
jne 0x4fa5cd
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 0x4fc4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5c687c]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x4fc51b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4fc520
call fcn.004f5ea0
mov eax, 1
mov ecx, 0x5d2550
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 0x4fc57d
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004e8bc0
add esp, 0xc
test eax, eax
je 0x4fc57d
push eax
push 0xd2
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_storage.cc
lea ecx, [ebp - 0xbc]
call fcn.004eecc0
lea ecx, [ebp - 0xbc]
call fcn.004f14d0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x5d2558], eax
mov al, 1
mov ecx, dword [ebp - 4]
mov byte [esi], 1
xor ecx, ebp
pop esi
call fcn.0047467d
mov esp, ebp
pop ebp
ret 4
Function at 0x4fcdb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573931
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c524c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.004fc5a0
test al, al
je 0x4fcf71
mov eax, dword [0x5c687c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4fce01
call fcn.004f5ea0
mov ecx, eax
mov eax, dword [0x5d2964]
cmp dword [ecx + eax*4], 0
jne 0x4fcf71
push 0x70
call fcn.004747af
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4fcf47
push 0x70
push 0
push edi
call fcn.0051e890
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.00503c40
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.00503c60
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.00430660
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.004747af
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 0x4fcf3e
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4fcf35
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.0041cb30
mov ecx, edi
call fcn.004fe1e0
jmp 0x4fcf49
xor edi, edi
mov eax, dword [0x5c687c]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4fcf69
call fcn.004f5ea0
mov ecx, eax
mov eax, dword [0x5d2964]
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 0x4fda40
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 0x4fdac5
push esi
call fcn.004fd4e0
add esp, 4
test al, al
je 0x4fdac5
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 0x4fdab4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.004e8ea0
add esp, 0xc
test eax, eax
je 0x4fdab4
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004eecc0
lea ecx, [ebp - 0xb4]
call fcn.004f14d0
push esi
push 0x4fd930
mov dword [esi], edi
call fcn.004fe3a0
add esp, 8
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4fe120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x5d1b28
call fcn.004f8de0
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 0x4fe186
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4fe182
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 0x4fe182
xor bl, bl
jmp 0x4fe198
mov bl, 1
jmp 0x4fe198
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 0x4fe1ba
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047467d
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.004fdf50
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047467d
mov esp, ebp
pop ebp
ret
Function at 0x501190
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572bff
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
mov eax, dword [0x5c524c]
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 0x501257
cmp dword [0x5d1b3c], 3
jg 0x501247
push 1
push 2
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc0], 3
call fcn.0048a5f0
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.004fb570
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.0048a360
add esp, 8
test bl, 1
je 0x501257
lea ecx, [ebp - 0xc0]
call fcn.004f14d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x504920
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 0x504935
mov edx, dword [edx]
xor eax, eax
push esi
mov esi, 0x811c9dc5
test edi, edi
je 0x504952
movzx ecx, byte [eax + edx]
inc eax
xor ecx, esi
imul esi, ecx, 0x1000193
cmp eax, edi
jb 0x504941
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00538271
imul ecx, edx, 0x41a7
add esp, 8
imul eax, eax, 0xb14
pop esi
sub ecx, eax
jns 0x50497d
add ecx, 0x7fffffff
mov eax, dword [ebx + 0x1c]
pop edi
and eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x504f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
mov eax, dword [edi + 0x10]
cmp eax, 1
jle 0x504f2c
cmp dword [edi + eax*4 + 0x10], 0
je 0x504f83
cmp ecx, 1
jle 0x504f3f
cmp dword [edx + ecx*4 + 0x10], 0
jne 0x504f3f
push str.cmp_called_with_b__x_b__wds_1___0
jmp 0x504f88
sub eax, ecx
jne 0x504f7a
add edx, 0x10
lea eax, [ecx - 1]
add edi, 0x14
push esi
lea eax, [edi + eax*4]
lea esi, [edx + ecx*4]
mov ecx, dword [eax]
mov edx, dword [esi]
cmp ecx, edx
jne 0x504f73
sub esi, eax
nop dword [eax]
cmp eax, edi
jbe 0x504f7d
mov ecx, dword [eax - 4]
sub eax, 4
mov edx, dword [esi + eax]
cmp ecx, edx
je 0x504f60
cmp ecx, edx
sbb eax, eax
and eax, 0xfffffffe
inc eax
pop esi
pop edi
pop ebp
ret
pop esi
xor eax, eax
pop edi
pop ebp
ret
push str.cmp_called_with_a__x_a__wds_1___0
push 0x593c20
push 2
call fcn.00530f7d
add esp, 4
push eax
call fcn.00507f90
add esp, 0xc
push 1
call fcn.005328a3
int3

Function at 0x504fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d1b28
call fcn.004f8de0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x504fd4
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 0x504fef
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
pop ebp
ret
Function at 0x50db60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5647c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c524c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x400000
push eax
call fcn.0050e570
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0047e830
add esp, 0x14
test eax, eax
jne 0x50dbe9
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x50dd14
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x5d2bc0]
mov esi, dword [ebp - 0x10]
test edi, edi
jne 0x50dc45
push 0x5c68a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5d2bc0], edi
jne 0x50dc34
push 0x1c
call fcn.004747af
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x50dc29
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
jmp 0x50dc2b
xor ecx, ecx
xchg dword [ebp - 0x14], eax
mov dword [0x5d2bc0], ecx
push 0x5c68a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5d2bc0]
cmp dword [edi], 0
jne 0x50dca8
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x50dcf2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x50dca8
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x50dcf2
cmp dword [edi + 4], 0
je 0x50dcf2
cmp dword [edi + 0xc], 0
je 0x50dcf2
mov esi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50dcdc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50dd14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50e1f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575231
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c524c]
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, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x224], edi
call fcn.0051e890
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00415b60
mov ecx, eax
test ecx, ecx
je 0x50e398
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.0040e320
test al, al
jne 0x50e2b7
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e295
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0041aed0
push 0
push esi
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.0050ec00
add esp, 0x10
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50e2f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
je 0x50e34b
push 0
push dword [ebp - 0x220]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50e34b
push 0x5798f8
mov ecx, edi
call fcn.00406970
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x50e37b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x50e37b
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004204d0
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x50e37b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0047467d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e300
int3
Function at 0x50e3b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575231
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c524c]
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, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x224], edi
call fcn.0051e890
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00415b60
mov ecx, eax
test ecx, ecx
je 0x50e558
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.0040e320
test al, al
jne 0x50e477
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e455
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.0041aed0
push 0
push esi
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.0050ec00
add esp, 0x10
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50e4b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
je 0x50e50b
push 0
push dword [ebp - 0x220]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50e50b
push 0x5798f8
mov ecx, edi
call fcn.00406970
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x50e53b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x50e53b
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004204d0
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x50e53b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0047467d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e300
int3
Function at 0x50e570
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575270
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c524c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0050e9f0
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0050ec00
add esp, 0x18
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50e5de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
je 0x50e60f
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50e60f
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x5798f8
call fcn.00406970
jmp 0x50e61d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004204d0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x50e63c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret