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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x42fcd1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42fce0
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x4301bd
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe0
mov eax, 0x5283a1
call fcn.004f416f
mov ebx, ecx
mov edi, dword [ebx + 4]
push dword [edi]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx + 4]
cmp dword [eax + 4], esi
je 0x4301fc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.004f41cb
ret
add eax, 0x10
push eax
push 4
push ebx
push 0x430042
push esi
push esi
call fcn.004ec077
mov ecx, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
je 0x430367
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4302cd
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.0042c6d3
pop ecx
mov edi, eax
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 2
call fcn.004036d7
mov esi, eax
push str.SetThreadPriority_failed:
push esi
mov byte [ebp - 4], 3
call fcn.00406897
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.004080d0
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x43028d
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.004025ae
push 1
lea esi, [ebp - 0x4c]
call fcn.00401501
and dword [ebp - 4], edi
jmp 0x4302cd
mov eax, dword [ebx + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x430381
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.0042c6d3
pop ecx
mov edi, eax
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 7
call fcn.004036d7
mov esi, eax
push str.ResumeThread_failed:
push esi
mov byte [ebp - 4], 8
call fcn.00406897
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.004080d0
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x430339
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 7
call fcn.004025ae
push 1
lea esi, [ebp - 0x4c]
call fcn.00401501
xor bl, bl
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x4301f6
mov eax, dword [ebx + 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebx + 4]
mov byte [eax + 0xd], 0
mov bl, 1
jmp 0x430369
Function at 0x43083b
Capabilities:
Read file on windows

Disassembly:
push 0x444
mov eax, 0x52c40d
call fcn.004f416f
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 0x430865
mov eax, dword [eax]
xor ecx, ecx
push 0xc
mov word [eax], cx
call fcn.004e7983
mov esi, eax
pop ecx
mov dword [ebp - 0x444], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4308d1
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004303f1
test al, al
jne 0x4308cf
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], str.HashImplementation::reset_failed
call fcn.004e780f
push 0x55ebe8
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004f083e
mov ebx, esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x4308e5
mov eax, dword [edi]
jmp 0x4308e7
mov eax, edi
push 0x5424ec
push eax
call fcn.004eb9d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x430914
test ebx, ebx
je 0x43090c
mov esi, ebx
call fcn.004307e8
push ebx
call fcn.004e7927
pop ecx
xor al, al
call fcn.004f41cb
ret
push esi
call fcn.004ec553
pop ecx
push esi
test eax, eax
jne 0x430956
push 0x400
lea eax, [ebp - 0x41c]
push 1
push eax
call fcn.004ebd39
add esp, 0x10
test eax, eax
je 0x430914
push eax
lea eax, [ebp - 0x41c]
push eax
mov eax, ebx
call fcn.00430440
test al, al
jne 0x430914
push esi
call fcn.004eba54
pop ecx
jmp 0x4308fa
call fcn.004eba54
pop ecx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
call fcn.00430822
mov ebx, eax
mov eax, dword [ebp - 0x440]
mov byte [ebp - 4], 3
call fcn.00403e2e
push 1
xor edi, edi
lea esi, [ebp - 0x438]
call fcn.00401501
mov esi, dword [ebp - 0x43c]
test esi, esi
je 0x4309a4
call fcn.004307e8
push esi
call fcn.004e7927
pop ecx
mov al, 1
jmp 0x43090e

Function at 0x430b36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x430b67
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edx
sub eax, ecx
push 1
push eax
push ecx
call fcn.004ebead
add esp, 0x10
cmp eax, 1
jne 0x430b63
mov al, al
jmp 0x430b69
mov byte [esi + 0x18], 1
xor al, al
pop esi
pop ebp
ret 4
Function at 0x45ed8e
Capabilities:
Get file version info

Disassembly:
push 0xe0
mov eax, 0x52644d
call fcn.004f4139
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 0x45eddd
push str.updtDispDevEnumClass::GetBasicFileVersion_failed
push 2
pop ecx
call fcn.004284f3
pop ecx
xor al, al
jmp 0x45ef47
push esi
call fcn.004e7e51
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 0x45ee7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xec]
push eax
call fcn.004036d7
mov esi, eax
and dword [ebp - 4], 0
push str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
push esi
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x45ee43
lea eax, [ebp - 0x30]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xec]
call fcn.004025ae
cmp dword [ebp - 0x38], 0
je 0x45edd6
push dword [ebp - 0x38]
call fcn.004e7f73
jmp 0x45edd5
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x53a5c4
push dword [ebp - 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45eec3
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 0x45ef35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xec]
push eax
call fcn.004036d7
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.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x45ef0e
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xec]
call fcn.004025ae
mov byte [ebp - 0x31], 0
cmp dword [ebp - 0x38], 0
je 0x45ef44
push dword [ebp - 0x38]
call fcn.004e7f73
pop ecx
mov al, byte [ebp - 0x31]
call fcn.004f41bc
ret 0xc
Function at 0x4632f6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc4
mov eax, 0x526206
call fcn.004f4139
push str.Enter_updtShimAPIClass::GetVerifierInfo
push 3
pop ecx
call fcn.004284f3
lea eax, [edi + 0x1a4]
xor ebx, ebx
mov dword [esp], 0x53bb14
lea esi, [edi + 0x1a0]
push eax
mov dword [esi], ebx
mov byte [edi + 0x1c0], bl
call fcn.00403fad
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push dword [0x573dfc]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4633d0
lea eax, [ebp - 0xd0]
push eax
call fcn.004036d7
mov esi, eax
mov dword [ebp - 4], ebx
push str._GetVerifierInfo__Open_key:
push esi
call fcn.00406897
push dword [0x573dfc]
push esi
call fcn.00406897
push str._failed
push esi
call fcn.00406897
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4633a5
lea eax, [ebp - 0x2c]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xd0]
call fcn.004025ae
xor al, al
jmp 0x46348d
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 0x463402
push str.Query_VerifyDriverLevel_failed
push 2
pop ecx
call fcn.004284f3
pop ecx
jmp 0x463465
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 0x463465
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.0040a839
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 + 0x1a4]
push eax
call fcn.00403fad
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.00460ab5
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x1a0], ebx
push str.Exit_updtShimAPIClass::GetVerifierInfo
setne al
push 3
pop ecx
mov byte [edi + 0x1c0], al
call fcn.004284f3
pop ecx
mov al, 1
call fcn.004f41bc
ret
Function at 0x463605
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x572480]
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 0x46363d
xor al, al
jmp 0x46367a
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 0x463639
cmp dword [ebp - 0x58], esi
je 0x46366e
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.004053b1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e72ee
leave
ret
Function at 0x46426e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x522f97
call fcn.004f40d0
push 0x53bb14
push dword [ebp + 8]
xor ebx, ebx
call fcn.00403fad
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 0x464336
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.0040a839
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x4642f7
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 0x464314
push str.Unsupported
push dword [ebp + 8]
call fcn.00403fad
push str.Cannot_get_PackageVersion
push 2
pop ecx
call fcn.004284f3
pop ecx
jmp 0x46431f
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00403fad
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.00460ab5
mov al, bl
call fcn.004f41a8
ret
Function at 0x46c836
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf0
mov eax, 0x525fc1
call fcn.004f4139
mov eax, dword [ebp + 8]
push str.SYSTEMCurrentControlSetControlClass_
lea esi, [ebp - 0x4c]
mov edi, ecx
mov dword [ebp - 0x60], eax
call fcn.0040319e
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.Enter_updtDeviceEnumClass::GetAdapterName_n
push 3
pop ecx
mov byte [ebp - 0x4d], 1
call fcn.004284f3
pop ecx
push edi
mov eax, esi
push eax
call fcn.004053b1
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x46c885
mov eax, esi
lea ecx, [ebp - 0x58]
push ecx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x46c93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xfc]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 1
push str._GetAdapterName__Open_key:
push esi
call fcn.00406897
push esi
lea ecx, [ebp - 0x4c]
call fcn.004080d0
add esp, 0xc
push str._failed_ec
push esi
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x46c903
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004014ad
mov byte [ebp - 4], bl
lea eax, [ebp - 0xfc]
call fcn.004025ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004014ad
mov al, bl
call fcn.004f41bc
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
mov edi, str.NetCfgInstanceId
push edi
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
call esi
mov dword [ebp - 0x54], eax
cmp eax, ebx
jne 0x46c9a3
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x5c]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x54], ebx
call fcn.0040a839
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x24]
push ebx
push ebx
push edi
push dword [ebp - 0x58]
call esi
push dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x60]
call fcn.00403fad
mov byte [ebp - 4], bl
lea esi, [ebp - 0x24]
call fcn.00460ab5
jmp 0x46c9b6
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x46c9b1
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x54], ebx
je 0x46c9cc
xor ecx, ecx
push str._GetDriverProperty__Get_ProviderName_failed_n
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 0x4d], bl
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Exit_updtDeviceEnumClass::GetAdapterName_n
push 3
pop ecx
call fcn.004284f3
mov bl, byte [ebp - 0x4d]
pop ecx
jmp 0x46c927
Function at 0x47b888
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x572480]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x579c64], ebx
jne 0x47b8e3
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47b8c9
xor al, al
jmp 0x47b8eb
cmp byte [esp + 0x10], 2
jne 0x47b8db
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x47b8e3
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x47b8c5
inc dword [0x579c64]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x47b907
xor ecx, ecx
push 0x559e78
inc ecx
call fcn.004284f3
pop ecx
push 0xffffffffffffffff
call fcn.004f1ecf
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.004e9070
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.004e9070
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e72ee
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x572480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x47bb81
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x47bb71
dec ecx
jne 0x47bb74
push 0x11
jmp 0x47bb73
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 0x47bb90
xor al, al
jmp 0x47bc15
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x47bbc3
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 0x47bbc3
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 0x47bbe0
call edi
mov dword [ebx + 0x60], eax
jmp 0x47bbf9
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 0x47bbfd
xor al, al
jmp 0x47bc13
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 0x47bc11
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e72ee
leave
ret 4
Function at 0x47bc23
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xe8
mov eax, 0x525850
call fcn.004f4139
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov edi, edx
jne 0x47bc43
xor al, al
jmp 0x47bd54
cmp dword [esi + 0x64], 0xffffffff
jne 0x47bc58
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 0x47bd11
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47bd0a
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00424615
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.004036d7
mov esi, eax
push str.updtSocket::Connect:_Unknown_hostname_
push esi
mov byte [ebp - 4], 1
call fcn.00406897
push esi
mov ecx, edi
call fcn.004080d0
add esp, 0xc
push 0x27
push esi
call fcn.0040d413
pop ecx
pop ecx
lea eax, [ebp - 0x40]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x47bcd6
lea eax, [ebp - 0x40]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.00401501
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.004025ae
push 1
lea esi, [ebp - 0x5c]
call fcn.00401501
jmp 0x47bc3c
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 0x47bd4e
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x64], 0xffffffff
jmp 0x47bc3c
mov byte [esi + 0x1d], 1
mov al, 1
call fcn.004f41bc
ret 4

Function at 0x47bde9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x572480]
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 0x47be4c
lea ecx, [ebp - 0x108]
jmp 0x47be52
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x47be5f
lea edx, [ebp - 0x214]
jmp 0x47be61
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 0x47be7a
xor eax, eax
jmp 0x47beac
cmp eax, 0xffffffff
jne 0x47be84
or eax, 0xffffffff
jmp 0x47beac
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 0x47beaa
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x47be7f
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e72ee
leave
ret 8
Function at 0x47bebc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0042cd83
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 1], 1
jmp 0x47bf49
jle 0x47beec
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
jmp 0x47bef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47bf64
cmp dword [ebp + 0xc], 0
je 0x47bf5a
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
jne 0x47bf37
test ecx, ecx
js 0x47bf37
lea esi, [ebp - 0x10]
call fcn.0042cd83
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
push 0
push 0x2710
push ecx
push eax
call fcn.00500140
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x47bf5a
push ecx
push 1
call fcn.0047bde9
mov byte [ebp - 1], 0
test eax, eax
js 0x47bf64
je 0x47bf5a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x47bedf
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x47bf5d

Function at 0x4e72ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x572480]
jne 0x4e72f8
repz ret
jmp fcn.004ed3ab