joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5618e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xb0], 0
je 0x47e796
cmp dword [0x5ed7dc], 0
je 0x47e814
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47e7b0
push 0x80004005
call fcn.00401340
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.0047e5b0
mov esi, dword [esp + 8]
test eax, eax
je 0x47e7f0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e7f0
push esi
call fcn.0044be30
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 0x47e814
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 0x47f6a1
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x47f6bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x33c], 0
cmp dword [esi + 0xec], 0
jl 0x47f6d6
mov ecx, esi
call fcn.00473080
mov ecx, esi
call fcn.00473180
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 0x47f729
push edi
mov ecx, eax
call fcn.00504314
mov edi, eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
cmp eax, dword [0x5ed818]
je 0x47f716
mov dword [0x5ed818], eax
mov ecx, dword [0x5ed0c0]
push edi
add ecx, 0x15d4
call fcn.004cedf0
pop edi
mov ecx, esi
call fcn.00474da0
cmp dword [0x5ed7a4], 0
je 0x47f740
mov ecx, esi
call fcn.0047e760
cmp dword [esi + 0x90], 0
je 0x47f74f
dec dword [0x5c3214]
cmp dword [0x5ba354], 0
jne 0x47f768
cmp dword [0x5ed754], 0
je 0x47f768
mov ecx, esi
call fcn.00477350
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jle 0x47f782
mov ecx, dword [0x5ba378]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x8c]
call eax
mov ecx, esi
call fcn.0051965b
mov ecx, dword [0x5ed0c0]
call fcn.0046b750
mov ecx, dword [0x5ba378]
mov edx, dword [ecx + 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
pop ecx
ret
Function at 0x4874a0
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4874be
mov ecx, dword [0x5ba378]
call fcn.00411c70
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044f460
add esp, 4
test eax, eax
je 0x4874b7
cmp dword [esp + 0x1c], 0
push esi
je 0x487591
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x487591
push ebp
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x18], eax
call ebp
mov dword [esp + 0x10], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487510
sub eax, edx
sar eax, 1
mov edi, eax
lea esi, [edi + ebx + 1]
lea ecx, [esi + esi]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edi
push edx
mov ebp, eax
push esi
push ebp
call fcn.0044c530
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
sub esi, edi
lea edx, [ebp + edi*2]
push esi
push edx
call fcn.0044c530
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0x20
push eax
call esi
push ebx
call esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
lea ecx, [ebx + ebx + 2]
push ecx
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 ebx
push edx
inc ebx
push ebx
push eax
call fcn.0044c530
add esp, 0x10
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 0x4875e1
mov eax, dword [0x5ed224]
push 0
push eax
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x487600
Capabilities:
Read clipboard data

Disassembly:
sub esp, 8
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x487615
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.0044f460
add esp, 4
test eax, eax
je 0x48760f
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 0x487695
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4876f4
call ebx
push 0x64
call ebp
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044f460
add esp, 4
push 0xd
call edi
mov esi, eax
test esi, esi
je 0x487663
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.0044d300
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.0046d8e0
add esp, 0xc
test eax, eax
je 0x4876e7
mov edx, dword [ebp]
push edx
call fcn.004ff96a
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 0x487691
push esi
push esi
push esi
push 0x59da
call fcn.0044ef40
add esp, 0x10
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x48a2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56334a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x5c
call fcn.004ff930
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x48a30c
mov ecx, eax
call fcn.00419d60
mov edi, eax
jmp 0x48a30e
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.00478750
mov eax, dword [esi + 0x80]
imul eax, dword [0x5c3e88]
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 [0x5c3e74]
add ecx, edx
push eax
mov dword [esp + 0x14], ecx
push ecx
mov ecx, edi
call fcn.00419d80
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x48ae00
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xa0]
mov ebp, dword [eax + 0x2e8]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x48ae44
mov eax, dword [eax + 0x334]
mov edx, ebp
jmp 0x48ae30
cmp dword [eax + 0x14], 0
je 0x48ae3c
mov esi, dword [eax]
lea ecx, [ecx + esi + 1]
add eax, 0x24
sub edx, 1
jne 0x48ae30
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
mov ebx, eax
xor eax, eax
add esp, 4
xor esi, esi
mov word [ebx], ax
test ebp, ebp
jle 0x48aede
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x10], ecx
jmp 0x48ae80
mov edx, dword [edi + 0xa0]
mov eax, dword [edx + 0x334]
cmp dword [eax + ebp + 0x14], 0
je 0x48aed4
mov ecx, edx
mov edx, dword [ecx + 0x334]
mov edi, dword [edx + ebp]
mov ecx, dword [esp + 0x14]
lea eax, [edx + ebp]
mov eax, dword [eax + 8]
dec edi
push edi
push eax
sub ecx, esi
push ecx
lea edx, [ebx + esi*2]
push edx
call fcn.0044c530
add esi, edi
mov edi, dword [esp + 0x28]
mov eax, 0xd
mov word [ebx + esi*2], ax
inc esi
mov ecx, 0xa
add esp, 0x10
mov word [ebx + esi*2], cx
inc esi
add ebp, 0x24
sub dword [esp + 0x10], 1
jne 0x48ae80
xor edx, edx
mov word [ebx + esi*2], dx
mov edi, dword [edi + 0x20]
test esi, esi
jne 0x48af07
mov ecx, dword [0x5ba378]
call fcn.00411c70
push ebx
call fcn.004ff96a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
call fcn.0044f460
add esp, 4
test eax, eax
je 0x48af53
lea eax, [esi + esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
inc esi
push esi
push eax
call fcn.0044c530
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call fcn.004ff96a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x48e2b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x56337b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
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 0x48e3db
push 1
push 1
push 0
push 1
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
call fcn.0047f200
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.004ff95f
movzx ecx, word [esi]
add esp, 4
mov ebx, eax
test cx, cx
je 0x48e3be
xor eax, eax
test cx, cx
je 0x48e361
movzx ecx, cx
cmp cx, 0xd
je 0x48e361
movzx ecx, word [esi + eax*2 + 2]
inc eax
test cx, cx
jne 0x48e350
xor ecx, ecx
test eax, eax
jle 0x48e38a
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 0x48e373
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 0x48e3ad
add esi, 2
mov edx, 0xa
cmp dx, word [esi]
jne 0x48e3ad
add esi, 2
push eax
push ebx
mov ecx, edi
call fcn.0048af70
movzx ecx, word [esi]
test cx, cx
jne 0x48e346
push ebx
call fcn.004ff96a
mov eax, dword [esp + 0x18]
push eax
call fcn.004ff96a
add esp, 8
mov eax, 1
jmp 0x48e4c4
mov eax, dword [edi + 0x74]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0x334]
mov esi, dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48e408
push 0x80004005
call fcn.00401340
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 [0x5ba378]
mov dword [esp + 0x448], 0
call fcn.00412560
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48e482
push esi
call fcn.00412410
add esp, 4
push 0
test eax, eax
je 0x48e471
mov ecx, dword [0x5ed0c0]
push 1
push 1
push esi
add ecx, 0xc2c
call fcn.004dea10
mov edi, 1
jmp 0x48e49b
push 0
push esi
call fcn.004b3500
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48e49b
mov ecx, dword [0x5ed0c0]
lea edx, [esp + 0x20]
push edx
push esi
add ecx, 0x5fc
call fcn.004b6f10
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 0x48e4c2
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.0053f73f
add esp, 0x42c
ret
Function at 0x4ac210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x563dab
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
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.005089db
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4ac276
push 0x80004005
call fcn.00401340
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 + 0x5ba60c]
cmp ebx, esi
mov dword [esp + 0x43c], esi
jle 0x4ac31d
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.0053fe1c
push 0x57713c
lea eax, [esp + 0x30]
push 0x208
push eax
call fcn.0053fd9f
add esp, 0x18
test esi, esi
jl 0x4ac3ce
cmp esi, dword [edi + 0x5ba60c]
jge 0x4ac3ce
mov ecx, dword [edi + 0x5ba608]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x24]
push 0x208
push edx
call fcn.0053fd9f
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call ebp
test eax, eax
jne 0x4ac374
inc esi
cmp esi, ebx
jl 0x4ac2b0
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 0x4ac348
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.0053f73f
add esp, 0x42c
ret 8
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4ac31d
lea edx, [esp + 0x20]
push edx
call fcn.0044b7b0
add esp, 4
test eax, eax
jne 0x4ac398
xor ecx, ecx
jmp 0x4ac3af
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4ac3a0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401e40
mov esi, dword [esp + 0x1c]
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4ac3d3
call fcn.00507f95
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00433f60
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
lea ecx, [ecx + edi*4]
push edx
call fcn.004060b0
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 0x4ac41b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4ac34a
Function at 0x4ac430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x563deb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
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.0053fe1c
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x28]
push 0x208
push ecx
call fcn.0053fd9f
add esp, 0x18
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ac4f7
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4ac63e
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4ac4d9
call fcn.00507f95
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.00433f60
mov edx, dword [esi + 4]
lea ecx, [edx + edi*4]
push ebp
call fcn.004060b0
jmp 0x4ac63e
mov ecx, dword [esi + 0x358]
mov eax, dword [0x5ed638]
test ecx, ecx
je 0x4ac58a
test eax, eax
jne 0x4ac585
xor edi, edi
cmp dword [0x5ba550], ebx
jle 0x4ac55e
jmp 0x4ac520
movzx eax, byte [edi + 0x5ba514]
lea ecx, [eax + eax*2]
shl ecx, 6
cmp dword [ecx + 0x5ba594], 0
je 0x4ac54d
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004ac210
mov ebx, eax
test ebx, ebx
jne 0x4ac63e
inc edi
cmp edi, dword [0x5ba550]
jl 0x4ac520
test ebx, ebx
jne 0x4ac63e
cmp dword [esi + 0x33c], 0
je 0x4ac63e
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ac5a5
push 0x80004005
call fcn.00401340
test ecx, ecx
je 0x4ac58a
dec eax
test eax, eax
jle 0x4ac55e
cmp eax, dword [0x5ba550]
jge 0x4ac55e
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004ac210
jmp 0x4ac55e
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.00402140
mov ebx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x23
push ebx
call fcn.0050c485
cmp eax, 6
jne 0x4ac617
mov edi, dword [esi + 0x32c]
add esi, 0x324
test edi, edi
jge 0x4ac5fe
call fcn.00507f95
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00433f60
mov ecx, dword [esi + 4]
lea ecx, [ecx + edi*4]
push ebp
call fcn.004060b0
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 0x4ac63e
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.0053f73f
add esp, 0x424
ret 4
Function at 0x4ad730
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x804
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
xor ebx, ebx
push 0x7cf
lea eax, [esp + 0x3d]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x44], bl
call fcn.0053ff80
add esp, 0xc
push ebx
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x10]
push edx
mov eax, ecx
push eax
push ebx
push ebx
push str.CNCertificate
mov esi, 1
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x7d0
call dword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
jne 0x4ad7aa
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0053f73f
add esp, 0x804
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x28
push esi
push ebx
push str.EPContainer
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
call edi
test eax, eax
jne 0x4ad802
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x4ad802
push 0x20
push esi
push ebx
push str.EPContainer
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x4ad802
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0053f73f
add esp, 0x804
ret
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x38], str.EPContainer
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.CRYPT32.dll_CertCreateSelfSignCertificate]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4ad86c
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x80c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0x804
ret

Function at 0x4ad890
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push 0
push 2
push eax
call dword [sym.imp.CRYPT32.dll_CryptFindCertificateKeyProvInfo]
test eax, eax
jne 0x4ad8aa
add esp, 0x40
ret
push 0x38
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.0053ff80
add esp, 0xc
cmp dword [esp + 0x44], 0
mov dword [esp + 8], 4
mov dword [esp + 0x38], 0x212
je 0x4ad8e2
lea edx, [esp + 0x44]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x48]
lea eax, [esp]
push eax
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
mov dword [esp + 0x4c], 0x80
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
neg eax
sbb eax, eax
inc eax
add esp, 0x40
ret
Function at 0x4ad920
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

Function at 0x4ade30
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
je 0x4ade68
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0053f73f
add esp, 0x194
ret
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov edi, eax
push edi
mov ecx, esi
call fcn.004adc20
test edi, edi
pop edi
je 0x4adea0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0053f73f
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
mov eax, 1
mov dword [esi + 0x28], eax
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0x194
ret

Function at 0x4adec0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, 2
push esi
mov edi, ecx
mov word [ebx], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4adf1d
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4adf07
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebx + 4]
push 4
push ecx
call fcn.0053f74e
add esp, 0x10
jmp 0x4adf20
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov ecx, edi
call fcn.004adc20
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov dword [ebx + 4], eax
mov edi, dword [esp + 0x1c]
test edi, edi
jg 0x4adfc3
mov esi, dword [esp + 0x18]
push 0x581ab4
push esi
call dword [sym.imp.WSOCK32.dll_getservbyname]
test eax, eax
je 0x4adf53
mov dx, word [eax + 8]
pop edi
pop esi
mov word [ebx + 2], dx
mov eax, 1
pop ebx
ret 0x10
mov ecx, 0x578bb0
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4adf80
test dl, dl
je 0x4adf7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4adf80
add eax, 2
add ecx, 2
test dl, dl
jne 0x4adf60
xor eax, eax
jmp 0x4adf85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4adf8e
lea edi, [eax + 0x15]
jmp 0x4adfc3
mov ecx, 0x578b4c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4adfb5
test dl, dl
je 0x4adfb1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4adfb5
add eax, 2
add ecx, 2
test dl, dl
jne 0x4adf95
xor eax, eax
jmp 0x4adfba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4adfc3
mov edi, 0x16
push edi
call dword [sym.imp.WSOCK32.dll_htons]
pop edi
mov word [ebx + 2], ax
pop esi
mov eax, 1
pop ebx
ret 0x10