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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf9e715
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], edi
mov byte [ebp - 0x88], 0
lea esi, [ebp - 0x88]
mov dword [ebp - 4], 1
call fcn.00efb790
test eax, eax
je 0xefc170
push edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
push 0xfbe3a5
mov ecx, ebx
mov byte [ebx], 0
call fcn.00eb2a60
mov byte [ebp - 4], 0
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x8c], 1
jb 0xefc2af
mov eax, dword [ebp - 0x88]
push eax
jmp 0xefc2a7
push 1
push 0xfbe3c8
lea ecx, [ebp - 0x88]
call fcn.00eb4040
push str.BaseSeting.ini
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00eb6670
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
mov esi, 0x10
cmp dword [ebp - 0x58], esi
jae 0xefc1ae
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0xefc200
push edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
push 0xfbe3a5
mov ecx, ebx
mov byte [ebx], al
call fcn.00eb2a60
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x58], esi
jb 0xefc1f1
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00f325e4
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], edi
jmp 0xefc293
push 0x3f
lea edx, [ebp - 0x4f]
push edi
push edx
mov byte [ebp - 0x50], 0
call fcn.00f36830
add esp, 0xc
cmp dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x6c]
jae 0xefc21e
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x50]
call fcn.00efbad0
mov edi, 0xf
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], edi
mov byte [ebx], 0
test eax, eax
jne 0xefc244
push eax
push 0xfbe3a5
jmp 0xefc25e
lea eax, [ebp - 0x50]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xefc250
sub eax, edx
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, ebx
call fcn.00eb2a60
mov esi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x58], esi
jb 0xefc289
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00f325e4
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp - 0x74], esi
jb 0xefc2af
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00f325e4
add esp, 4
mov eax, ebx
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.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefc2f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf9b6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xfcf584]
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, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0xefc364
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00eb7520
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00eb7130
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0xefc356
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00f325e4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
push 0xfbe584
push esi
call fcn.00f34378
mov edi, eax
add esp, 8
test edi, edi
jne 0xefc398
mov edx, esi
call fcn.00eb7920
push 0xfbe584
push esi
call fcn.00f34378
mov edi, eax
add esp, 8
test edi, edi
jne 0xefc398
lea eax, [edi + 0x6e]
jmp 0xefc3be
mov esi, dword [ebp + 8]
push edi
push esi
push 1
push ebx
call fcn.00f3453e
add esp, 0x10
cmp eax, esi
je 0xefc3b3
mov eax, 0x1d
jmp 0xefc3be
push edi
call fcn.00f34869
add esp, 4
xor eax, eax
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.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefc3e0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf9e6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0xfcf584]
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 eax, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x10
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x14], ebx
jb 0xefc421
mov eax, dword [esi]
jmp 0xefc423
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0xefc473
cmp dword [esi + 0x14], ebx
jb 0xefc437
mov ecx, dword [esi]
jmp 0xefc439
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00eb7520
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00eb7130
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0xefc465
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00f325e4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [esi + 0x14], ebx
jb 0xefc47c
mov eax, dword [esi]
jmp 0xefc47e
mov eax, esi
push 0xfbe584
push eax
call fcn.00f34378
mov edi, eax
add esp, 8
test edi, edi
jne 0xefc4c2
cmp dword [esi + 0x14], ebx
jb 0xefc49b
mov edx, dword [esi]
jmp 0xefc49d
mov edx, esi
call fcn.00eb7920
cmp dword [esi + 0x14], ebx
jb 0xefc4a9
mov esi, dword [esi]
push 0xfbe584
push esi
call fcn.00f34378
mov edi, eax
add esp, 8
test edi, edi
jne 0xefc4c2
lea eax, [edi + 0x6e]
jmp 0xefc4f2
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], ebx
jb 0xefc4cf
mov eax, dword [eax]
push edi
push esi
push 1
push eax
call fcn.00f3453e
add esp, 0x10
cmp eax, esi
je 0xefc4e7
mov eax, 0x1d
jmp 0xefc4f2
push edi
call fcn.00f34869
add esp, 4
xor eax, eax
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.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefc510
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf9c808
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xfcf584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0xefc551
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0xefc588
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0xefc574
mov edx, dword [ebp + 8]
push edx
call fcn.00f325e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
jmp 0xefc597
mov esi, 0x10
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0xefc5a2
lea eax, [ebp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0xefc603
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0xefc62f
push 0xfa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 5
jl 0xefc592
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], 0x10
jb 0xefc574
mov ecx, dword [ebp + 8]
push ecx
call fcn.00f325e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 4
push 0
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
test edi, edi
jne 0xefc660
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0xefc574
mov eax, dword [ebp + 8]
push eax
call fcn.00f325e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
push edi
test eax, eax
jne 0xefc6a6
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00f8c760
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00f8c760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xefc6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x10
mov dword [ebp - 0x40], eax
cmp dword [edi + 0x14], ebx
jb 0xefc6f9
mov eax, dword [edi]
jmp 0xefc6fb
mov eax, edi
push 0xfbe470
push eax
call fcn.00f34378
mov esi, eax
add esp, 8
test esi, esi
jne 0xefc74e
cmp dword [edi + 0x14], ebx
jb 0xefc718
mov edx, dword [edi]
jmp 0xefc71a
mov edx, edi
call fcn.00eb7920
cmp dword [edi + 0x14], ebx
jb 0xefc726
mov edi, dword [edi]
push 0xfbe470
push edi
call fcn.00f34378
mov esi, eax
add esp, 8
test esi, esi
jne 0xefc74e
lea eax, [esi + 0x6e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
push esi
call fcn.00f343c1
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00f336f5
add esp, 0xc
test eax, eax
js 0xefc7f4
push 0x400000
call fcn.00f330b5
push esi
mov edi, eax
call fcn.00f35ab6
add esp, 8
test eax, eax
jne 0xefc7d2
push 0x400000
push 0
push edi
call fcn.00f36830
push esi
push 0x400000
push 1
push edi
call fcn.00f35e06
push esi
mov ebx, eax
call fcn.00f35ade
add esp, 0x20
test eax, eax
jne 0xefc7c5
mov ecx, dword [ebp - 0x40]
push ebx
push edi
call fcn.00eb4040
push esi
call fcn.00f35ab6
add esp, 4
test eax, eax
je 0xefc782
jmp 0xefc7d2
push str.Read_error
call fcn.00f35b2e
add esp, 4
push edi
call fcn.00f33498
push esi
call fcn.00f34869
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
push esi
call fcn.00f34869
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 0x3ee
pop ebx
call fcn.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefca40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0xfcf584]
xor eax, esp
mov dword [esp + 0xa8], eax
xor eax, eax
push ebx
push esi
push edi
mov edi, edx
mov byte [esp + 0x90], al
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
cmp dword [edi + 0x10], eax
jne 0xefcaec
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 0x10
mov edx, dword [ecx + 0x10]
jb 0xefcaf7
mov ecx, dword [ecx]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
push ecx
mov eax, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00ed2e60
lea esi, [esp + 0x14]
lea ebx, [esp + 0x94]
call fcn.00ed2f20
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
push ecx
call fcn.00eb26c0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0xefcb53
mov edi, dword [edi]
lea edx, [esp + 0x6c]
push edx
push edi
call fcn.00f3367b
mov ecx, dword [esp + 0xbc]
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefcb80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0xfcf584]
xor eax, esp
mov dword [esp + 0xac], eax
xor eax, eax
push ebx
push esi
mov esi, ecx
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov byte [esp + 0x90], al
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
cmp edi, eax
je 0xefcca7
mov ecx, edi
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, al
jne 0xefcc20
sub ecx, ebx
je 0xefcca7
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00ed2e60
lea esi, [esp + 0x14]
lea ebx, [esp + 0x70]
call fcn.00ed2f20
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call fcn.00eb26c0
lea edx, [esp + 0x9c]
push edx
push edi
call fcn.00f3367b
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xb4]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00f32239
mov esp, ebp
pop ebp
ret

Function at 0xefd110
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xefd19e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0xefd164
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
Function at 0xefd410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push 0
push 0x1000
push 4
push 0
push 0
push 0x10000000
push str..pipeProcessHelper_communication_pipe
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0xefd473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0xefd503
push 0x12c
push str..pipeProcessHelper_communication_pipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0xefd503
inc ebx
cmp ebx, 3
jl 0xefd424
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0xefd503
push 0xa74
lea ecx, [ebp - 0xa7c]
push edi
push ecx
call fcn.00f36830
mov edx, dword [ebp + 8]
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0xa74
lea ecx, [ebp - 0xa7c]
push ecx
push esi
mov dword [ebp - 0xa7c], 0x1008
mov dword [ebp - 0xa78], edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xefd4f3
push edi
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0xa7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xefd4f3
mov edi, dword [ebp - 0xa78]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xefd940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xefd990
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0xefd98a
shr eax, 8
cmp al, 2
jne 0xefd98a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00f32239
mov esp, ebp
pop ebp
ret

Function at 0xf063f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0xf06423
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0xf06570
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0xf0658b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0xf065bf
cmp eax, 2
jg 0xf065bf
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0xfaada8]
push 2
push edx
call fcn.00f3453e
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00f3453e
add esp, 0x20
xor eax, eax
ret

Function at 0xf067d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0xf0684c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0xf06821
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.00f0b3e0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00f06730
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8594], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xf08330
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [edi + 0x408], eax
push 4
lea ecx, [ebp - 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xf08369
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00f066b0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0xf08980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0xfcf584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a4], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0xf08b17
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], pe_nt_image_headers32
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0xf08a0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00f0b3e0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00f06730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], pe_nt_image_headers32
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xf08a5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00f0b3e0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00f06730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.00f08940
test eax, eax
jne 0xf08ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.00f0b3e0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00f06730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.00f08940
test eax, eax
jne 0xf08b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.00f0b3e0
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00f06730
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00f32239
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00f088e0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f32239
mov esp, ebp
pop ebp
ret

Function at 0xf08b40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xf08b86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00f0b3e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00f066b0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00f066b0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xf08c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x554]
test esi, esi
je 0xf08c6b
mov eax, dword [edi + 0xc]
test eax, eax
je 0xf08c6b
push 0xf08c00
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.00f105c0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0xf08c74
mov dword [edi + 0x554], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0xf08c7d
mov dword [eax], esi
cmp dword [esi + 0x150], 0
mov edi, dword [esi + 0x130]
jne 0xf08c6b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0xf08c6b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret