joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474b95
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xb0]
mov ebx, 1
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
test edi, edi
jne 0x474bc1
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], ebp
jle 0x474bc1
cmp dword [esi + 0x64], ebp
jne 0x474bd4
xor ebx, ebx
cmp dword [esi + 0xb0], 0
jne 0x474c2c
test ebx, ebx
je 0x474c2c
push 1
push 0
jmp 0x474c32
push 0xffffffffffffffff
push 0x33
push 0x54ff
call fcn.0050bdf5
cmp eax, 6
jne 0x474c13
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [esi + 0x24]
mov ecx, edi
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x474bc1
xor ebx, ebx
mov ebp, edi
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
jmp 0x474bc1
cmp eax, 2
jne 0x474bc1
mov dword [esi + 0xb0], edi
pop edi
pop esi
mov dword [esp + 8], ebp
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x24]
push 1
push eax
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
test eax, eax
jne 0x474c46
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x474c67
mov ecx, dword [esi + 0x24]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
call fcn.00470330
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x474c79
mov edi, dword [esp + 0x14]
mov dword [esi + 0xb0], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x47a5b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x562d7b
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xc34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0xc4c]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc68]
mov eax, dword [esp + 0xc64]
mov esi, dword [esp + 0xc5c]
mov ebp, dword [esp + 0xc6c]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x47a62d
push edi
push 0x208
lea ecx, [esp + 0x840]
push ecx
push eax
call fcn.0044ee60
add esp, 0x10
lea edi, [esp + 0x838]
mov ecx, dword [0x5ed80c]
mov ebx, dword [0x5ed810]
xor edx, edx
xor eax, eax
mov word [esp + 0x18], dx
mov word [esp + 0x428], ax
cmp dword [ecx - 0xc], eax
je 0x47a778
mov edx, dword [esp + 0xc70]
mov ecx, dword [esp + 0xc60]
push edx
push 0x208
lea eax, [esp + 0x20]
push eax
push ebp
push ecx
push esi
push 0x208
lea edx, [esp + 0x444]
push edx
push ebx
push edi
call fcn.00478520
add esp, 0x28
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47a79f
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47a6b3
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push 0x54b6
push edx
mov dword [esp + 0xc60], 0
call fcn.00402170
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x14
push eax
call fcn.0050bda7
cmp eax, 6
jne 0x47a74b
lea ecx, [esp + 0x18]
push ecx
call fcn.0046e110
xor edx, edx
mov word [esp + 0x1c], dx
mov edx, dword [esp + 0xc74]
push edx
push 0x208
xor eax, eax
mov word [esi], ax
xor ecx, ecx
lea eax, [esp + 0x24]
push eax
push ebp
mov word [esp + 0x43c], cx
mov ecx, dword [esp + 0xc74]
push ecx
push esi
push 0x208
lea edx, [esp + 0x448]
push edx
push ebx
push edi
call fcn.00478520
add esp, 0x2c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a79f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47a79f
cmp dword [esp + 0xc70], eax
jne 0x47a79f
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0xc60]
push ecx
push edi
push esi
call fcn.0054013c
push ebx
push edi
push esi
call fcn.005400bf
add esp, 0x18
mov ecx, dword [esp + 0xc4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc34]
xor ecx, esp
call fcn.0053fa67
add esp, 0xc44
ret
Function at 0x47c3f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x824
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
mov esi, dword [esp + 0x82c]
lea eax, [esp + 0x414]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x41c]
push 0x57e774
push edx
call fcn.004506e0
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c442
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00401e70
mov ecx, dword [esp + 0x824]
pop esi
xor ecx, esp
call fcn.0053fa67
add esp, 0x824
ret
Function at 0x47f270
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x564778
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xb0], 0
je 0x47f2a6
cmp dword [0x5ed76c], 0
je 0x47f324
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47f2c0
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0047f0c0
mov esi, dword [esp + 8]
test eax, eax
je 0x47f300
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f300
push esi
call fcn.0044dfe0
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x480101
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x324]
test eax, eax
je 0x48011f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x324], 0
cmp dword [esi + 0xec], 0
jl 0x480136
mov ecx, esi
call fcn.00474090
mov ecx, esi
call fcn.00474190
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
mov dword [esp + 4], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x480189
push edi
mov ecx, eax
call fcn.00503c1f
mov edi, eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
cmp eax, dword [0x5ed7a8]
je 0x480176
mov dword [0x5ed7a8], eax
mov ecx, dword [0x5ed04c]
push edi
add ecx, 0x14fc
call fcn.004d0120
pop edi
mov ecx, esi
call fcn.00475b30
cmp dword [0x5ed734], 0
je 0x4801a0
mov ecx, esi
call fcn.0047f270
cmp dword [esi + 0x90], 0
je 0x4801af
dec dword [0x5c3194]
cmp dword [0x5ba284], 0
jne 0x4801c8
cmp dword [0x5ed6e4], 0
je 0x4801c8
mov ecx, esi
call fcn.00478050
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jle 0x4801e2
mov ecx, dword [0x5ba2a8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x8c]
call eax
mov ecx, esi
call fcn.00518fad
mov ecx, dword [0x5ed04c]
call fcn.0046c600
mov ecx, dword [0x5ba2a8]
mov edx, dword [ecx + 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
pop ecx
ret
Function at 0x486ee0
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x486efe
mov ecx, dword [0x5ba2a8]
call fcn.00411ad0
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00450ac0
add esp, 4
test eax, eax
je 0x486ef7
cmp dword [esp + 0x1c], 0
push edi
je 0x486fd6
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x486fd6
push ebx
push ebp
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x18], eax
call ebx
mov dword [esp + 0x10], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486f50
sub eax, edx
sar eax, 1
mov ebp, eax
add esi, ebp
add esi, esi
lea ecx, [esi + 2]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call ebx
mov edx, dword [esp + 0x10]
add ebp, ebp
push ebp
mov ebx, eax
push edx
push ebx
call fcn.005402a0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax]
push ecx
push edx
add ebp, ebx
push ebp
call fcn.005402a0
mov ecx, dword [esp + 0x2c]
xor eax, eax
add esp, 0x18
mov word [esi + ebx], ax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
call esi
push edi
call esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebp
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
lea edi, [esi + esi + 2]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x18]
push edi
push edx
push eax
call fcn.005402a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xd
call esi
cmp dword [esp + 0x24], 0
je 0x487024
mov eax, dword [0x5ed1b4]
push 0
push eax
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x487040
Capabilities:
Read clipboard data

Disassembly:
sub esp, 8
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x487055
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.00450ac0
add esp, 4
test eax, eax
je 0x48704f
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp], 0
push 0xd
mov dword [ecx], 0
mov dword [esp + 0x14], 5
call edi
mov ebx, dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, eax
test esi, esi
jne 0x4870d5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jle 0x487134
call ebx
push 0x64
call ebp
mov edx, dword [esp + 0x1c]
push edx
call fcn.00450ac0
add esp, 4
push 0xd
call edi
mov esi, eax
test esi, esi
je 0x4870a3
mov ebp, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x24]
push edi
push eax
call fcn.0044df70
add esp, 8
push esi
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
mov ecx, dword [ebp]
push edi
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0
call fcn.0046e7d0
add esp, 0xc
test eax, eax
je 0x487127
mov edx, dword [ebp]
push edx
call fcn.004ff267
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [ebp], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test esi, esi
jne 0x4870d1
call ebx
push esi
push esi
push esi
push 0x59da
call fcn.00450540
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x489bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5634da
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x5c
call fcn.004ff238
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x489c3c
mov ecx, eax
call fcn.00419c60
mov edi, eax
jmp 0x489c3e
xor edi, edi
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xd0]
push 0
push 0
push 1
push 0
push eax
push ecx
mov ecx, dword [esi + 0xa0]
push 0
lea edx, [esp + 0x28]
push edx
push 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x30], 0
call fcn.004791c0
mov eax, dword [esi + 0x80]
imul eax, dword [0x5c3e08]
mov edx, dword [esi + 0x64]
mov ecx, dword [esp + 0xc]
sub edx, eax
mov eax, dword [esi + 0x160]
add eax, dword [esi + 0x68]
push esi
add eax, dword [0x5c3df4]
add ecx, edx
push eax
mov dword [esp + 0x14], ecx
push ecx
mov ecx, edi
call fcn.00419ca0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x48a7b0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xa0]
mov ebp, dword [eax + 0x2d0]
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x48a7f4
mov eax, dword [eax + 0x31c]
mov edx, ebp
jmp 0x48a7e0
cmp dword [eax + 0x14], 0
je 0x48a7ec
mov esi, dword [eax]
lea ecx, [ecx + esi + 1]
add eax, 0x24
sub edx, 1
jne 0x48a7e0
lea eax, [ecx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff272
mov ebx, eax
xor eax, eax
add esp, 4
xor esi, esi
mov word [ebx], ax
test ebp, ebp
jle 0x48a88a
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x10], ecx
jmp 0x48a830
mov edx, dword [edi + 0xa0]
mov eax, dword [edx + 0x31c]
cmp dword [eax + ebp + 0x14], 0
je 0x48a880
mov ecx, edx
mov edx, dword [ecx + 0x31c]
mov edi, dword [edx + ebp]
lea eax, [edx + ebp]
mov edx, dword [eax + 8]
dec edi
lea ecx, [edi + edi]
push ecx
push edx
lea eax, [ebx + esi*2]
push eax
call fcn.005402a0
add esi, edi
mov edi, dword [esp + 0x20]
mov ecx, 0xd
mov word [ebx + esi*2], cx
inc esi
mov edx, 0xa
add esp, 0xc
mov word [ebx + esi*2], dx
inc esi
add ebp, 0x24
sub dword [esp + 0x10], 1
jne 0x48a830
xor eax, eax
mov word [ebx + esi*2], ax
mov edi, dword [edi + 0x20]
test esi, esi
jne 0x48a8b3
mov ecx, dword [0x5ba2a8]
call fcn.00411ad0
push ebx
call fcn.004ff267
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call fcn.00450ac0
add esp, 4
test eax, eax
je 0x48a8fd
lea edi, [esi + esi + 2]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.005402a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call fcn.004ff267
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x48daa0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x56350b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xa0]
cmp dword [ecx + 0x100], 0
mov dword [esp + 0x18], edi
je 0x48dbcb
push 1
push 1
push 0
push 1
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
call fcn.0047fcf0
mov esi, dword [esp + 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff272
movzx ecx, word [esi]
add esp, 4
mov ebx, eax
test cx, cx
je 0x48dbae
xor eax, eax
test cx, cx
je 0x48db51
movzx ecx, cx
cmp cx, 0xd
je 0x48db51
movzx ecx, word [esi + eax*2 + 2]
inc eax
test cx, cx
jne 0x48db40
xor ecx, ecx
test eax, eax
jle 0x48db7a
mov edx, esi
mov ecx, ebx
sub edx, ebx
mov edi, eax
mov dword [esp + 0x1c], eax
mov bp, word [edx + ecx]
mov word [ecx], bp
add ecx, 2
sub edi, 1
jne 0x48db63
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
xor edx, edx
mov word [ebx + ecx*2], dx
lea esi, [esi + eax*2]
mov ecx, 0xd
cmp cx, word [esi]
jne 0x48db9d
add esi, 2
mov edx, 0xa
cmp dx, word [esi]
jne 0x48db9d
add esi, 2
push eax
push ebx
mov ecx, edi
call fcn.0048a910
movzx ecx, word [esi]
test cx, cx
jne 0x48db36
push ebx
call fcn.004ff267
mov eax, dword [esp + 0x18]
push eax
call fcn.004ff267
add esp, 8
mov eax, 1
jmp 0x48dcb4
mov eax, dword [edi + 0x74]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x31c]
mov esi, dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48dbf8
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
push 0
push 0x208
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x5ba2a8]
mov dword [esp + 0x448], 0
call fcn.004123d0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48dc72
push esi
call fcn.00412280
add esp, 4
push 0
test eax, eax
je 0x48dc61
mov ecx, dword [0x5ed04c]
push 1
push 1
push esi
add ecx, 0xc2c
call fcn.004dee60
mov edi, 1
jmp 0x48dc8b
push 0
push esi
call fcn.004b2bf0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48dc8b
mov ecx, dword [0x5ed04c]
lea edx, [esp + 0x20]
push edx
push esi
add ecx, 0x5fc
call fcn.004b6620
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48dcb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0053fa67
add esp, 0x42c
ret
Function at 0x4ac630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x563f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x444]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
call fcn.0050830c
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4ac696
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x448]
lea edi, [eax + eax*2]
shl edi, 6
mov ebx, dword [edi + 0x5ba584]
cmp ebx, esi
mov dword [esp + 0x43c], esi
jle 0x4ac73d
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push 0x208
push edx
call fcn.0054013c
push 0x5770a4
lea eax, [esp + 0x30]
push 0x208
push eax
call fcn.005400bf
add esp, 0x18
test esi, esi
jl 0x4ac7ee
cmp esi, dword [edi + 0x5ba584]
jge 0x4ac7ee
mov ecx, dword [edi + 0x5ba580]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x24]
push 0x208
push edx
call fcn.005400bf
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call ebp
test eax, eax
jne 0x4ac794
inc esi
cmp esi, ebx
jl 0x4ac6d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0053fa67
add esp, 0x42c
ret 8
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4ac73d
lea edx, [esp + 0x20]
push edx
call fcn.0044d6f0
add esp, 4
test eax, eax
jne 0x4ac7b8
xor ecx, ecx
jmp 0x4ac7cf
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4ac7c0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401e70
mov esi, dword [esp + 0x1c]
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4ac7f3
call fcn.005078a4
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00433f00
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
lea ecx, [ecx + edi*4]
push edx
call fcn.00405fa0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac83b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4ac76a
Function at 0x4ac850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x55d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x43c]
mov esi, ecx
mov eax, dword [esi + 0x338]
push eax
lea eax, [esp + 0x1c]
push 0x208
push eax
xor ebx, ebx
call fcn.0054013c
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x28]
push 0x208
push ecx
call fcn.005400bf
add esp, 0x18
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ac917
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4aca5e
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4ac8f9
call fcn.005078a4
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.00433f00
mov edx, dword [esi + 4]
lea ecx, [edx + edi*4]
push ebp
call fcn.00405fa0
jmp 0x4aca5e
mov ecx, dword [esi + 0x358]
mov eax, dword [0x5ed5c8]
test ecx, ecx
je 0x4ac9aa
test eax, eax
jne 0x4ac9a5
xor edi, edi
cmp dword [0x5ba488], ebx
jle 0x4ac97e
jmp 0x4ac940
movzx eax, byte [edi + 0x5ba44c]
lea ecx, [eax + eax*2]
shl ecx, 6
cmp dword [ecx + 0x5ba50c], 0
je 0x4ac96d
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004ac630
mov ebx, eax
test ebx, ebx
jne 0x4aca5e
inc edi
cmp edi, dword [0x5ba488]
jl 0x4ac940
test ebx, ebx
jne 0x4aca5e
cmp dword [esi + 0x33c], 0
je 0x4aca5e
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ac9c5
push 0x80004005
call fcn.00401350
test ecx, ecx
je 0x4ac9aa
dec eax
test eax, eax
jle 0x4ac97e
cmp eax, dword [0x5ba488]
jge 0x4ac97e
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004ac630
jmp 0x4ac97e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x18]
push 0x53d9
push edx
mov dword [esp + 0x440], 0
call fcn.00402170
mov ebx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x23
push ebx
call fcn.0050bda7
cmp eax, 6
jne 0x4aca37
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4aca1e
call fcn.005078a4
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00433f00
mov ecx, dword [esi + 4]
lea ecx, [ecx + edi*4]
push ebp
call fcn.00405fa0
lea eax, [ebx - 0x10]
mov dword [esp + 0x434], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aca5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0053fa67
add esp, 0x424
ret 4
Function at 0x4ad830
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 0x80
mov eax, 1
push 0xffff
mov ecx, eax
push esi
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x24], 1
call edi
pop edi
pop esi
pop ecx
ret 4