joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499cb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x499cf4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ebx, dword [str.hpr_ff_set]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], 0
push 2
push esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0045b220
mov edi, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x499d77
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x499d82
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x499dab
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
Function at 0x499dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x499e14
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push dword [0x5d67d4]
push 0x57e340
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ebx, dword [str.sa_ff_set]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], 0
push 2
push esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0045b220
mov edi, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x499e97
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 8], eax
test edi, edi
je 0x499ea2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], ebx
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x499ecb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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
Function at 0x49c040
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x147c
call fcn.00527d30
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1478], eax
lea eax, [ebp - 0x147c]
push eax
mov dword [ebp - 0x1464], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x146c]
push eax
lea eax, [ebp - 0x1468]
push eax
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
mov edx, dword [ebp - 0x1468]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x1458], esi
mov dword [ebp - 0x145c], ecx
nop
cmp esi, dword [ebp - 0x146c]
jae 0x49c237
cmp dword [ebp + 0x10], 0
jne 0x49c0d1
mov eax, dword [ecx + edx]
cmp eax, dword [ebp - 0x147c]
jne 0x49c21f
mov ebx, dword [ebp - 0x1478]
mov eax, dword [ecx + edx + 4]
mov dword [ebp - 0x1474], eax
mov dword [ebx], eax
xor ebx, ebx
mov eax, dword [ecx + edx + 8]
mov dword [ebp - 0x1470], eax
mov dword [ebp - 0x1460], ebx
cmp dword [edi + 4], ebx
je 0x49c21f
mov ecx, dword [edi + 8]
xor esi, esi
test ecx, ecx
je 0x49c120
mov edi, dword [edi]
mov eax, edi
jmp 0x49c110
cmp dword [eax], ebx
jne 0x49c1b9
inc esi
add eax, 4
cmp esi, ecx
jb 0x49c110
xor esi, esi
test esi, esi
je 0x49c20d
lea ebx, [ebx]
test ebx, ebx
jne 0x49c207
mov eax, dword [ebp - 0x1470]
test eax, eax
je 0x49c250
push eax
push dword [esi]
call fcn.00526fc5
add esp, 8
test eax, eax
jne 0x49c1cc
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x49c1c1
push dword [ebp - 0x1474]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x49c1cc
push 0xa28
lea eax, [ebp - 0x1454]
push eax
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x49c1b0
push 1
push dword [esi + 4]
lea eax, [ebp - 0x1454]
push eax
call fcn.004d6e20
add esp, 0xc
test eax, eax
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x1460], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49c1cc
mov esi, dword [edi + esi*4]
jmp 0x49c122
mov ebx, 1
mov dword [ebp - 0x1460], ebx
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x49c1fd
mov ebx, dword [ebp - 0x1464]
xor edx, edx
mov eax, dword [esi + 0xc]
mov edi, dword [ebx + 8]
div edi
inc edx
cmp edx, edi
jae 0x49c1f7
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x49c1e4
mov ebx, dword [ebp - 0x1460]
mov esi, ecx
test ecx, ecx
jne 0x49c130
mov edx, dword [ebp - 0x1468]
mov esi, dword [ebp - 0x1458]
mov ecx, dword [ebp - 0x145c]
mov edi, dword [ebp - 0x1464]
inc esi
add ecx, 0x10
mov dword [ebp - 0x1458], esi
mov dword [ebp - 0x145c], ecx
test ebx, ebx
je 0x49c0b0
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525878
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045a8f0
int3
Function at 0x49cca0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
push dword [0x5d68cc]
push dword [0x5d68c8]
push reloc.WS2_32.dll_accept
call fcn.00511e70
add esp, 0x10
test eax, eax
jne 0x49ce5b
push esi
push dword [0x5d68cc]
push dword [0x5d68c8]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00511e70
add esp, 0x10
test eax, eax
jne 0x49ce5b
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49cd30
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00525ee0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x49cde6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0045a5f0
lea ecx, [ebp - 0x21c]
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x49cdec
lea ecx, [edx - 1]
test ecx, ecx
js 0x49ce7d
cmp ecx, edx
jg 0x49ce7d
cmp word [eax + ecx*2], 0x5c
je 0x49cdd6
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0049ba80
push 0x582d00
lea ecx, [ebp - 0x21c]
call fcn.0047f960
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x49cdff
push eax
call esi
test eax, eax
jne 0x49ce34
lea ecx, [ebp - 0x21c]
call fcn.0045abd0
lea eax, [ebp - 0x21c]
push eax
push 0x2a
call fcn.004e32f0
add esp, 8
test eax, eax
jns 0x49ce87
lea eax, [ebp - 0x21c]
push eax
push 0x26
call fcn.004e32f0
add esp, 8
test eax, eax
jns 0x49ce87
mov edx, dword [ebp - 0x21c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49ce5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.00525878
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0045a8f0
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x49ce7d
cmp ecx, edx
jg 0x49ce7d
cmp word [eax + ecx*2], 0x5c
je 0x49ceaf
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0049ba80
push str.GoogleChromeApplicationchrome.exe
lea ecx, [ebp - 0x21c]
call fcn.0047f960
push dword [ebp - 0x21c]
call esi
mov edi, dword [ebp - 0x21c]
neg eax
mov dword [ebp - 4], 0xffffffff
sbb esi, esi
add edi, 0xfffffff0
neg esi
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49cef4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x49ce60
Function at 0x49cf00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569cc9
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
xor esi, esi
mov dword [ebp - 4], 0
test eax, eax
je 0x49cf58
push dword [edi + 4]
push eax
call fcn.0045a910
push dword [edi]
call fcn.0052616f
add esp, 0xc
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], esi
je 0x49d0c3
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x49d0c3
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d0c3
lea ecx, [ebp - 0x8c]
call fcn.004cc970
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004ce1d0
push dword [0x5893f8]
lea ecx, [ebp - 0x8c]
call fcn.004cdd90
test al, al
je 0x49d0b4
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cce70
test al, al
je 0x49d0b4
lea ecx, [ebp - 0xbc]
call fcn.0048cc20
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cdae0
test al, al
je 0x49d08b
cmp dword [ebp - 0xbc], 6
jne 0x49d08b
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cd5b0
xor esi, esi
cmp dword [ebp - 0x98], esi
jle 0x49d080
nop
push esi
lea ecx, [ebp - 0x9c]
call fcn.0049d340
cmp dword [eax], 2
jne 0x49d077
push esi
lea ecx, [ebp - 0x9c]
call fcn.0049d340
mov ecx, edi
push dword [eax + 4]
call fcn.0045a6b0
inc esi
cmp esi, dword [ebp - 0x98]
jl 0x49d050
lea ecx, [ebp - 0x9c]
call fcn.0048ce90
mov edx, dword [ebp - 0xb8]
mov esi, 1
add edx, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d0b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004ccab0
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d0e7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x49d380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a5fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [edi], esi
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], esi
je 0x49d485
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x49d485
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d485
lea ecx, [ebp - 0x8c]
call fcn.004cc970
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004ce1d0
push dword [0x5893f8]
lea ecx, [ebp - 0x8c]
call fcn.004cdd90
test al, al
je 0x49d476
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cce70
test al, al
je 0x49d476
lea ecx, [ebp - 0xac]
call fcn.0048cc20
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cdae0
test al, al
je 0x49d466
cmp dword [ebp - 0xac], 3
jne 0x49d466
cmp byte [ebp - 0xa4], 0
je 0x49d466
mov dword [edi], 1
lea ecx, [ebp - 0xac]
mov esi, 1
call fcn.004aa2a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004ccab0
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d4a9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x49ec10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573750
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp + 0xc]
call fcn.0045abd0
mov dword [ebp - 0x1c], 0
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49ec68
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
xor ebx, ebx
call fcn.0045abd0
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004a1fd0
test eax, eax
je 0x49eca3
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
jne 0x49ecb1
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0049db40
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
cmp dword [edi - 0xc], ebx
jle 0x49ed52
lea ecx, [ecx]
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x49ec5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push esi
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x14]
push edi
push str._sLocal_Storagechrome_extension__s__d.localstorage
push eax
call fcn.0045acb0
mov esi, dword [ebp - 0x14]
add esp, 0x14
cmp dword [esi - 0xc], 0
je 0x49ed22
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test ebx, ebx
je 0x49ed22
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0045a580
mov dword [ebp - 0x1c], 1
inc dword [ebp - 0x18]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49ed43
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x49ed4f
mov esi, dword [ebp - 0x18]
jmp 0x49ecc0
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49ed70
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
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
Function at 0x4a0c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a5fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d6b80]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [edi]
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [ecx - 0xc], esi
je 0x4a0d1c
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x4a0d1c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a0d1c
lea ecx, [ebp - 0x8c]
call fcn.004cc970
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004ce1d0
push dword [0x5893f8]
lea ecx, [ebp - 0x8c]
call fcn.004cdd90
test al, al
je 0x4a0d0d
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cce70
test al, al
je 0x4a0d0d
lea ecx, [ebp - 0xac]
call fcn.0048cc20
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cdae0
test al, al
je 0x4a0cfd
cmp dword [ebp - 0xac], 4
jne 0x4a0cfd
mov eax, dword [ebp - 0x9c]
mov dword [ebx], eax
lea ecx, [ebp - 0xac]
mov esi, 1
call fcn.004aa2a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004ccab0
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a0d40
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4a3280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a5fe
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 4], 0
xor esi, esi
call fcn.0045abd0
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], esi
je 0x4a3394
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x4a3394
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a3394
lea ecx, [ebp - 0x8c]
call fcn.004cc970
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004ce1d0
push dword [0x5893f8]
lea ecx, [ebp - 0x8c]
call fcn.004cdd90
test al, al
je 0x4a3385
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cce70
test al, al
je 0x4a3385
lea ecx, [ebp - 0xac]
call fcn.0048cc20
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x8c]
call fcn.004cdae0
test al, al
je 0x4a3375
cmp dword [ebp - 0xac], 2
jne 0x4a3375
mov eax, dword [ebp - 0xa8]
cmp dword [eax - 0xc], esi
je 0x4a3375
lea eax, [ebp - 0xa8]
mov ecx, edi
push eax
call fcn.0045a580
lea ecx, [ebp - 0xac]
mov esi, 1
call fcn.004aa2a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004ccab0
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a33b8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4a3c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a718
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4a3c87
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0045abd0
lea eax, [ebp - 0x10]
push eax
push dword [0x5d68cc]
push dword [0x5d68c8]
push reloc.WS2_32.dll_accept
call fcn.00511e70
mov edi, dword [ebp + 8]
add esp, 0x10
or ebx, 0xffffffff
test eax, eax
jne 0x4a3d2b
lea eax, [ebp - 0x10]
push eax
push dword [0x5d68cc]
push dword [0x5d68c8]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00511e70
add esp, 0x10
test eax, eax
jne 0x4a3d2b
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0049c6b0
mov edi, eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4a3d15
mov ecx, dword [esi]
push esi
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
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [esi - 0xc]
test ecx, ecx
setne al
test eax, eax
je 0x4a3cec
test ecx, ecx
js 0x4a3d58
push 0x57e140
push esi
call fcn.00526d32
add esp, 8
test eax, eax
je 0x4a3d58
sub eax, esi
sar eax, 1
je 0x4a3dad
push 0x5c
push esi
call fcn.00529034
add esp, 8
test eax, eax
jne 0x4a3d6c
or eax, 0xffffffff
jmp 0x4a3d70
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0045b030
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0045a580
mov edx, dword [ebp + 8]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a3daa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push str.User_Data
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00480bb0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0045a580
mov edx, dword [ebp + 8]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a3dee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a3cec
mov edi, 1
jmp 0x4a3cf7