joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bde70
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 0x4bdef5
push esi
call fcn.004bd910
add esp, 4
test al, al
je 0x4bdef5
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 0x4bdee4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp - 4]
push eax
push edi
call fcn.004a91b0
add esp, 0xc
test eax, eax
je 0x4bdee4
push eax
push 0x11
push str.d:code.aliyun.comcore_liblibschromium_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004af000
lea ecx, [ebp - 0xb4]
call fcn.004b1880
push esi
push 0x4bdd60
mov dword [esi], edi
call fcn.004be7d0
add esp, 8
pop edi
mov eax, dword [esi]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4be550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5852e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x58c3c0
call fcn.004b9210
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 0x4be5b6
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4be5b2
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 0x4be5b2
xor bl, bl
jmp 0x4be5c8
mov bl, 1
jmp 0x4be5c8
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 0x4be5ea
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448d48
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.004be380
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d48
mov esp, ebp
pop ebp
ret
Function at 0x4c15c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536d6f
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
mov eax, dword [0x5852e0]
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 0x4c1687
cmp dword [0x58c3d4], 3
jg 0x4c1677
push 1
push 2
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc0], 3
call fcn.00447a00
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.004bb9a0
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.00447770
add esp, 8
test bl, 1
je 0x4c1687
lea ecx, [ebp - 0xc0]
call fcn.004b1880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5010
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 0x4c5025
mov edx, dword [edx]
xor eax, eax
push esi
mov esi, 0x811c9dc5
test edi, edi
je 0x4c5042
movzx ecx, byte [eax + edx]
inc eax
xor ecx, esi
imul esi, ecx, 0x1000193
cmp eax, edi
jb 0x4c5031
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00513f74
imul ecx, edx, 0x41a7
add esp, 8
imul eax, eax, 0xb14
pop esi
sub ecx, eax
jns 0x4c506d
add ecx, 0x7fffffff
mov eax, dword [ebx + 0x1c]
pop edi
and eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4c5600
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 0x4c561c
cmp dword [edi + eax*4 + 0x10], 0
je 0x4c5673
cmp ecx, 1
jle 0x4c562f
cmp dword [edx + ecx*4 + 0x10], 0
jne 0x4c562f
push str.cmp_called_with_b__x_b__wds_1___0
jmp 0x4c5678
sub eax, ecx
jne 0x4c566a
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 0x4c5663
sub esi, eax
nop dword [eax]
cmp eax, edi
jbe 0x4c566d
mov ecx, dword [eax - 4]
sub eax, 4
mov edx, dword [esi + eax]
cmp ecx, edx
je 0x4c5650
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 0x554940
push 2
call fcn.00508e24
add esp, 4
push eax
call fcn.004c8980
add esp, 0xc
push 1
call fcn.0050e362
int3

Function at 0x4c56a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x58c3c0
call fcn.004b9210
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4c56c4
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 0x4c56df
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
pop ebp
ret
Function at 0x4ca040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004ca170
add esp, 8
test al, al
je 0x4ca065
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4ca065
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4ca170
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4ca4f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ca51b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ca51b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb9a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5852e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], esi
test ebx, ebx
je 0x4cbb70
cmp dword [ebx], 2
jne 0x4cbb70
cmp dword [esi + 0x14], 8
jb 0x4cb9e6
mov esi, dword [esi]
mov dword [ebp - 0x218], esi
cmp dword [ebx + 0x10], 0
je 0x4cba00
xor esi, esi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448d48
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4cb9ec
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cba1b
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4cb9ec
mov ecx, dword [ebx + 0x20]
mov eax, 0x532ae21d
push edi
mov edi, dword [ebx + 0x1c]
mov esi, 1
sub ecx, edi
mov dword [ebp - 0x210], 0
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4cbb5d
mov dword [ebp - 0x214], 0
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004fbfe0
mov eax, dword [ebp - 0x214]
add esp, 0xc
add eax, 4
add eax, edi
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cbaa0
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x4cbade
lea ebx, [ecx + 0x5c]
nop word [eax + eax]
cmp word [ebp + ecx*2 - 0x20c], 0x2f
jne 0x4cbad3
mov word [ebp + ecx*2 - 0x20c], bx
inc ecx
cmp ecx, eax
jb 0x4cbac0
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x214]
mov eax, dword [eax + edi]
test byte [eax + 0x26], 0x10
je 0x4cbb01
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x4cbb26
test esi, esi
je 0x4cbb24
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0x210]
call fcn.004cbb90
test eax, eax
je 0x4cbb24
mov esi, 1
jmp 0x4cbb26
xor esi, esi
mov ecx, dword [ebx + 0x20]
add edi, 0x314
inc dword [ebp - 0x210]
mov eax, 0x532ae21d
mov dword [ebp - 0x214], edi
mov edi, dword [ebx + 0x1c]
sub ecx, edi
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x210], ecx
jb 0x4cba60
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448d48
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d48
mov esp, ebp
pop ebp
ret
Function at 0x4cbe10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5852e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x4cbff5
test edi, edi
je 0x4cbff5
mov ecx, dword [esi + 0x20]
mov eax, 0x532ae21d
sub ecx, dword [esi + 0x1c]
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4cbff5
imul eax, ebx, 0x314
mov ebx, dword [esi + 0x1c]
mov ebx, dword [eax + ebx]
test byte [ebx + 0x26], 0x10
jne 0x4cbff5
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x18], eax
ja 0x4cbff5
mov esi, dword [esi + 0xc]
mov edx, dword [ebx + 0x2a]
movzx eax, word [edx + esi + 0x1c]
movzx ecx, word [edx + esi + 0x1a]
add eax, edx
add ecx, eax
lea eax, [esi + 0x1e]
add eax, ecx
movzx ecx, word [ebx + 0xa]
mov dword [ebp - 8], eax
test cx, cx
jne 0x4cc00a
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x4cbefd
test eax, eax
je 0x4cbec9
cmp ecx, esi
jb 0x4cbec9
push esi
push eax
push edi
call fcn.004fb4e0
add esp, 0xc
jmp 0x4cbefd
push ecx
push 0
push edi
call fcn.004fbfe0
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4cbee8
call fcn.004ff622
mov dword [eax], 0x16
jmp 0x4cbef8
cmp dword [ebp - 0xc], esi
jae 0x4cbefd
call fcn.004ff622
mov dword [eax], 0x22
call fcn.004ff549
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x4cbfee
or eax, 0xffffffff
cmp edx, 8
jb 0x4cbfc6
mov esi, edx
shr esi, 3
nop dword [eax]
movzx ecx, byte [edi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
movzx ecx, byte [edi + 7]
add edi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
sub esi, 1
jne 0x4cbf20
test edx, edx
je 0x4cbfea
nop word [eax + eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x555628]
sub edx, 1
jne 0x4cbfd0
not eax
jmp 0x4cbff0
xor eax, eax
cmp eax, dword [ebx + 0x10]
je 0x4cc036
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448d48
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 8
jne 0x4cbff5
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edi
push dword [ebx + 0x14]
push eax
call fcn.004cea30
add esp, 0x14
test eax, eax
je 0x4cbff5
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x10]
jne 0x4cbff5
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d48
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cc0c0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538b4f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5852e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call fcn.00448e83
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4cc117
push 0x58
push 0
push esi
call fcn.004fbfe0
add esp, 0xc
mov ecx, esi
call fcn.004cb0a0
mov esi, eax
jmp 0x4cc119
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x4cc12b
mov edi, dword [edi]
test edi, edi
je 0x4cc1c8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cc1c8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4cc1c8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x4cc1c8
push 0
push 0
push 0
push 2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [esi + 4], 0
mov dword [esi + 8], eax
je 0x4cc1c8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4cc1c8
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.004cb500
test eax, eax
je 0x4cc1c8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4cc1de
mov ecx, esi
call fcn.004cb1c0
push 0x58
push esi
call fcn.00448aa0
add esp, 8
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 0x4cc4d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x4cc5cf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4cc5cf
or eax, 0xffffffff
cmp esi, 8
jb 0x4cc5a7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
sub edi, 1
jne 0x4cc500
pop edi
test esi, esi
je 0x4cc5ca
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x556e70]
sub esi, 1
jne 0x4cc5b0
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ceb40
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5852e0]
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.004fbfe0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4cece8
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.004032c0
test al, al
jne 0x4cec07
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cebe5
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00403ba0
push 0
push esi
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.004cf560
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 0x4cec45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
je 0x4cec9b
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 0x4cec9b
push 0x53cad8
mov ecx, edi
call fcn.00402df0
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 0x4ceccb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4ceccb
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.0041d850
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 0x4ceccb
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.00448d48
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004032a0
int3
Function at 0x4ced00
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5852e0]
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.004fbfe0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4ceea8
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.004032c0
test al, al
jne 0x4cedc7
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ceda5
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00403ba0
push 0
push esi
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.004cf560
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 0x4cee05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
je 0x4cee5b
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 0x4cee5b
push 0x53cad8
mov ecx, edi
call fcn.00402df0
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 0x4cee8b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4cee8b
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.0041d850
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 0x4cee8b
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.00448d48
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004032a0
int3
Function at 0x4ceec0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538c00
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5852e0]
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.004cf350
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004cf560
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 0x4cef2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
je 0x4cef5f
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 0x4cef5f
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x53cad8
call fcn.00402df0
jmp 0x4cef6d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d850
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 0x4cef8c
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
Function at 0x4cefb0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5852e0]
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.004fbfe0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4cf158
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.004032c0
test al, al
jne 0x4cf077
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf055
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00403ba0
push 0
push esi
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.004cf560
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 0x4cf0b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
je 0x4cf10b
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 0x4cf10b
push 0x53cad8
mov ecx, edi
call fcn.00402df0
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 0x4cf13b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4cf13b
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.0041d850
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 0x4cf13b
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.00448d48
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004032a0
int3