joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488d79
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a5cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
push ecx
push esi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push 0x16
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
call ebx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], esi
jne 0x488e82
cmp eax, 0x7a
je 0x488e82
lea eax, [esp + 0x24]
push eax
call fcn.00403aba
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov dword [esp + 0x1a0], esi
call fcn.0040635f
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
push edi
push ebx
call fcn.004109e7
lea eax, [esp + 0xbc]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x198], 1
cmp edi, esi
jle 0x488e55
and edi, 0xffff
or edi, 0x80070000
push 0x9a
push edi
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [esp + 0xf8]
push eax
call fcn.00566ed2
mov eax, dword [esp + 0x10]
shr eax, 1
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.00453ad7
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1a0], 2
push dword [esp + 0xc4]
push esi
push 0x16
push dword [esp + 0x30]
call edi
test eax, eax
jne 0x488f4d
call ebx
mov edi, eax
lea eax, [esp + 0x24]
push eax
call fcn.00403aba
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov byte [esp + 0x1a0], 3
call fcn.0040635f
pop ecx
pop ecx
push edi
push ebx
call fcn.004109e7
lea eax, [esp + 0xd8]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x198], 4
cmp edi, esi
jle 0x488f21
and edi, 0xffff
or edi, 0x80070000
push 0xab
push edi
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [esp + 0xf8]
jmp 0x488e7c
push dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push dword [esp + 0xc4]
xor eax, eax
push dword [esp + 0xc4]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push edi
mov word [edi], ax
call fcn.0048a52c
lea esi, [esp + 0xbc]
call fcn.0043460f
mov eax, edi
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
Function at 0x488faa
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a5c96
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x489257
and dword [esp + 0xc4], 0
xor ecx, ecx
mov dword [esp + 0xc8], 7
mov word [esp + 0xb4], cx
and dword [esp + 0x1d0], ecx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
jmp 0x4890e4
lea ebx, [eax + 0xc]
lea eax, [esp + 0xec]
push 0x5ca284
push eax
call fcn.00410581
add ebx, 0x1c
lea ecx, [esp + 0x110]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x1e0], 1
call fcn.00410706
push 0x5e44ac
push eax
lea eax, [esp + 0xe8]
mov byte [esp + 0x1e8], 2
call fcn.00410678
add esp, 0x18
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xbc]
mov byte [esp + 0x1d8], 3
call fcn.0040eb9d
push 1
xor edi, edi
lea esi, [esp + 0xd4]
call fcn.00404589
push 1
lea esi, [esp + 0x10c]
call fcn.00404589
push 1
lea esi, [esp + 0xf0]
mov byte [esp + 0x1d4], 0
call fcn.00404589
lea eax, [esp + 0x10]
call fcn.004292c9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x489035
mov eax, dword [esp + 0xc4]
add eax, 0xfffffffe
lea ecx, [esp + 0xb4]
call fcn.0040dd03
lea eax, [esp + 0x124]
push eax
call fcn.00403aba
mov esi, eax
push str.HTTP_request_headers:
push esi
mov byte [esp + 0x1d8], 4
call fcn.0040635f
push esi
lea ecx, [esp + 0xc0]
call fcn.00411d36
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x1d0], 5
cmp dword [esp + 0xe4], 8
mov eax, dword [esp + 0xd0]
jae 0x489163
lea eax, [esp + 0xd0]
push eax
push 4
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xd4]
call fcn.00404589
lea eax, [esp + 0x124]
mov byte [esp + 0x1d0], 0
call fcn.004027ed
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x4891a9
lea eax, [esp + 0xb4]
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [esp + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x489247
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpAddRequestHeaders_failed_with
push edi
mov byte [esp + 0x1d8], 6
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [esp + 0xec]
push eax
mov eax, edi
call fcn.00403b24
mov byte [esp + 0x1d0], 7
test esi, esi
jle 0x48921a
and esi, 0xffff
or esi, 0x80070000
push 0xd9
push esi
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [esp + 0x128]
push eax
call fcn.00566ed2
push 1
xor edi, edi
lea esi, [esp + 0xb8]
call fcn.00404589
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
Function at 0x48b2c2
Capabilities:
Read file on windows

Disassembly:
push 0x444
mov eax, 0x5ab792
call fcn.0056bee1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov edi, ecx
mov dword [ebp - 0x440], eax
mov dword [eax + 0x10], ebx
jb 0x48b2ec
mov eax, dword [eax]
xor ecx, ecx
push 0xc
mov word [eax], cx
call fcn.0055db17
mov esi, eax
pop ecx
mov dword [ebp - 0x444], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x48b358
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0048ae67
test al, al
jne 0x48b356
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], str.HashImplementation::reset_failed
call fcn.0055d255
push 0x607550
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.00566ed2
mov ebx, esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x48b36c
mov eax, dword [edi]
jmp 0x48b36e
mov eax, edi
push 0x5e4314
push eax
call fcn.0055e715
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x48b39b
test ebx, ebx
je 0x48b393
mov esi, ebx
call fcn.0048b26f
push ebx
call fcn.0055da69
pop ecx
xor al, al
call fcn.0056bf3d
ret
push esi
call fcn.00562fab
pop ecx
push esi
test eax, eax
jne 0x48b3dd
push 0x400
lea eax, [ebp - 0x41c]
push 1
push eax
call fcn.0055e976
add esp, 0x10
test eax, eax
je 0x48b39b
push eax
lea eax, [ebp - 0x41c]
push eax
mov eax, ebx
call fcn.0048aeb6
test al, al
jne 0x48b39b
push esi
call fcn.0055ece5
pop ecx
jmp 0x48b381
call fcn.0055ece5
pop ecx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
call fcn.0048b2a9
mov ebx, eax
mov eax, dword [ebp - 0x440]
mov byte [ebp - 4], 3
call fcn.0040447e
push 1
xor edi, edi
lea esi, [ebp - 0x438]
call fcn.00404589
mov esi, dword [ebp - 0x43c]
test esi, esi
je 0x48b42b
call fcn.0048b26f
push esi
call fcn.0055da69
pop ecx
mov al, 1
jmp 0x48b395
Function at 0x4c858d
Capabilities:
Get file version info

Disassembly:
push 0xe0
mov eax, 0x5a0ca8
call fcn.0056beab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
mov edi, ecx
push eax
push edi
mov ebx, edx
mov byte [ebp - 0x31], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4c85dc
push str.updtDispDevEnumClass::GetBasicFileVersion_failed
push 2
pop ecx
call fcn.0047feaf
pop ecx
xor al, al
jmp 0x4c8746
push esi
call fcn.0055d741
pop ecx
push eax
push esi
push 0
push edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x4c867e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xec]
push eax
call fcn.00403aba
mov esi, eax
and dword [ebp - 4], 0
push str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4c8642
lea eax, [ebp - 0x30]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xec]
call fcn.004027ed
cmp dword [ebp - 0x38], 0
je 0x4c85d5
push dword [ebp - 0x38]
call fcn.0055da5e
jmp 0x4c85d4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x5c8a58
push dword [ebp - 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4c86c2
mov eax, dword [ebp - 0x48]
mov cx, word [eax + 0xa]
mov edx, dword [ebp - 0x44]
mov word [ebx], cx
mov cx, word [eax + 8]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp - 0x3c]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp - 0x40]
mov word [ecx], ax
jmp 0x4c8734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xec]
push eax
call fcn.00403aba
mov esi, eax
push 2
pop ebx
mov dword [ebp - 4], ebx
push str.GetBasicFileVersion::VerQueryValue_failedError_code__0x_x_n
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4c870d
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xec]
call fcn.004027ed
mov byte [ebp - 0x31], 0
cmp dword [ebp - 0x38], 0
je 0x4c8743
push dword [ebp - 0x38]
call fcn.0055da5e
pop ecx
mov al, byte [ebp - 0x31]
call fcn.0056bf2e
ret 0xc
Function at 0x4cce0f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc4
mov eax, 0x5a0ac9
call fcn.0056beab
push str.Enter_updtShimAPIClass::GetVerifierInfo
push 3
pop ecx
call fcn.0047feaf
lea eax, [edi + 0x1bc]
xor ebx, ebx
mov dword [esp], str.Unknown
lea esi, [edi + 0x1b8]
push eax
mov dword [esi], ebx
mov byte [edi + 0x1d8], bl
call fcn.00404560
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push dword [0x632860]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4ccee9
lea eax, [ebp - 0xd0]
push eax
call fcn.00403aba
mov esi, eax
mov dword [ebp - 4], ebx
push str._GetVerifierInfo__Open_key:
push esi
call fcn.0040635f
push dword [0x632860]
push esi
call fcn.0040635f
push str._failed
push esi
call fcn.0040635f
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4ccebe
lea eax, [ebp - 0x2c]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xd0]
call fcn.004027ed
xor al, al
jmp 0x4ccfa6
lea eax, [ebp - 0x30]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push str.VerifyDriverLevel
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 4
call esi
test eax, eax
je 0x4ccf1b
push str.Query_VerifyDriverLevel_failed
push 2
pop ecx
call fcn.0047feaf
pop ecx
jmp 0x4ccf7e
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.VerifyDrivers
push dword [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call esi
cmp eax, ebx
jne 0x4ccf7e
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
call fcn.0042fa2b
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
push ebx
push ebx
push str.VerifyDrivers
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x20]
lea eax, [edi + 0x1bc]
push eax
call fcn.00404560
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.0043460f
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x1b8], ebx
push str.Exit_updtShimAPIClass::GetVerifierInfo
setne al
push 3
pop ecx
mov byte [edi + 0x1d8], al
call fcn.0047feaf
pop ecx
mov al, 1
call fcn.0056bf2e
ret
Function at 0x4cd6ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x631350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x58]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARENVIDIA_CorporationGlobalNvBackend
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x58], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cd6f2
xor al, al
jmp 0x4cd72f
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push str.Link
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0x4e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cd6ee
cmp dword [ebp - 0x58], esi
je 0x4cd723
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.0040dc78
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055c9d4
leave
ret
Function at 0x4ce5bc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x59c0fa
call fcn.0056be42
push str.Unknown
push dword [ebp + 8]
xor ebx, ebx
call fcn.00404560
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push str.SOFTWARENVIDIA_Corporation_nForce
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ce684
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
mov edi, str.PackageVersion
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
call fcn.0042fa2b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x4ce645
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x4ce662
push str.Unsupported
push dword [ebp + 8]
call fcn.00404560
push str.Cannot_get_PackageVersion
push 2
pop ecx
call fcn.0047feaf
pop ecx
jmp 0x4ce66d
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404560
push dword [ebp - 0x14]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0043460f
mov al, bl
call fcn.0056bf1a
ret
Function at 0x4e024a
Capabilities:
Get storage device properties

Disassembly:
push 0xd0
mov eax, 0x5a0471
call fcn.0056beab
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x40]
push edx
push dword [eax + 4]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x4e02f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00403aba
mov esi, eax
mov dword [ebp - 4], ebx
push str.IOCTL_STORAGE_QUERY_PROPERTY_ec
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x3c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4e02cb
lea eax, [ebp - 0x3c]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xdc]
call fcn.004027ed
xor al, al
jmp 0x4e02f5
mov al, 1
call fcn.0056bf2e
ret 4
Function at 0x4f1779
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a7f52
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor esi, esi
mov dword [esp + 0x14], eax
cmp eax, esi
jne 0x4f17bc
or eax, 0xffffffff
jmp 0x4f185e
mov ecx, dword [ecx - 0x50]
push 7
pop ebx
call fcn.004ea145
push eax
call fcn.004ea57d
mov ebx, eax
mov dword [esp + 0x1c], esi
push esi
mov dword [esp + 0x44], esi
push esi
xor edi, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x20], vtable.GFE::Windows::Event.0
call fcn.0048ad12
push 0x14
lea eax, [esp + 0x24]
push 0
inc edi
push eax
mov dword [esp + 0x4c], edi
call fcn.0055fda0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], esi
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4f184e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4f184e
cmp eax, 0x3e5
jne 0x4f1847
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4f184e
cmp eax, 0x102
je 0x4f184c
or edi, 0xffffffff
jmp 0x4f184e
xor edi, edi
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0048ae45
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f28b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x63add4], ebx
jne 0x4f290f
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f28f5
xor al, al
jmp 0x4f2917
cmp byte [esp + 0x10], 2
jne 0x4f2907
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x4f290f
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4f28f1
inc dword [0x63add4]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x4f2933
xor ecx, ecx
push 0x600944
inc ecx
call fcn.0047feaf
pop ecx
push 0xffffffffffffffff
call fcn.00566dc3
or dword [esi + 0x64], 0xffffffff
push 0x10
lea edi, [esi + 0x20]
push ebx
push edi
mov byte [esi + 0x1d], bl
mov dword [esi + 8], ebx
call fcn.0055fda0
add esp, 0xc
push 2
pop eax
mov word [edi], ax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [esi + 0x6c], eax
push ebx
add esi, 0x30
push esi
call fcn.0055fda0
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret

Function at 0x4f2b70
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x631350]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x4f2bad
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x4f2b9d
dec ecx
jne 0x4f2ba0
push 0x11
jmp 0x4f2b9f
push 6
pop edx
push edx
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
jne 0x4f2bbc
xor al, al
jmp 0x4f2c41
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4f2bef
push 1
lea ecx, [ebp - 0x15]
push ecx
push 4
push 0xffff
push eax
mov byte [ebx + 0x68], 1
mov byte [ebp - 0x15], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4f2bef
call edi
mov dword [ebx + 0x60], eax
push esi
push 0x10
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebx + 0x64]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4f2c0c
call edi
mov dword [ebx + 0x60], eax
jmp 0x4f2c25
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4f2c29
xor al, al
jmp 0x4f2c3f
cmp dword [ebx + 0x5c], 2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4f2c3d
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c9d4
leave
ret 4
Function at 0x4f2c4f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xe8
mov eax, 0x59fbec
call fcn.0056beab
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov edi, edx
jne 0x4f2c6f
xor al, al
jmp 0x4f2d80
cmp dword [esi + 0x64], 0xffffffff
jne 0x4f2c84
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x64], eax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4f2d3d
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4f2d36
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0047bdb1
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.00403aba
mov esi, eax
push str.updtSocket::Connect:_Unknown_hostname_
push esi
mov byte [ebp - 4], 1
call fcn.0040635f
push esi
mov ecx, edi
call fcn.00411d36
add esp, 0xc
push 0x27
push esi
call fcn.0041214a
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4f2d02
lea eax, [ebp - 0x40]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.00404589
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.004027ed
push 1
lea esi, [ebp - 0x5c]
call fcn.00404589
jmp 0x4f2c68
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x24], cx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4f2d7a
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x64], 0xffffffff
jmp 0x4f2c68
mov byte [esi + 0x1d], 1
mov al, 1
call fcn.0056bf2e
ret 4

Function at 0x4f2e20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x631350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x210], edx
cmp byte [ebp + 8], bl
je 0x4f2e83
lea ecx, [ebp - 0x108]
jmp 0x4f2e89
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x4f2e96
lea edx, [ebp - 0x214]
jmp 0x4f2e98
xor edx, edx
push edx
lea edx, [ebp - 0x20c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x4f2eb1
xor eax, eax
jmp 0x4f2ee3
cmp eax, 0xffffffff
jne 0x4f2ebb
or eax, 0xffffffff
jmp 0x4f2ee3
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4f2ee1
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4f2eb6
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c9d4
leave
ret 8