joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46be60
Capabilities:
Hash data using sha1

Disassembly:
push edi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, 0x60
test dl, 1
mov edi, edx
jne 0x46bec3
test edi, 2
jne 0x46bed3
mov ecx, ebx
xor eax, eax
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x46be91
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and ebx, 1
je 0x46be99
mov byte [edi], 0
mov dword [edx], 0x67452301
mov eax, 1
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebx
pop edi
ret
lea edi, [edx + 1]
mov bl, 0x5f
test edi, 2
mov byte [edx], 0
je 0x46be7a
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
sub ebx, 2
jmp 0x46be7a

Function at 0x46bf20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 1
mov eax, dword [esp + 4]
jmp fcn.00444c70

Function at 0x46c1a0
Capabilities:
Hash data using sha1

Disassembly:
push edi
xor eax, eax
push esi
mov ecx, 0x18
push ebx
sub esp, 0x70
mov edx, dword [esp + 0x84]
lea ebx, [esp + 0x10]
mov edi, ebx
mov esi, dword [esp + 0x88]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x67452301
test edx, edx
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
je 0x46c1ff
mov ecx, edx
mov edx, dword [esp + 0x80]
mov eax, ebx
call fcn.004495d0
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.adb.exe_SHA1_Final
mov dword [esp], ebx
mov dword [esp + 4], 0x60
call sym.adb.exe_OPENSSL_cleanse
add esp, 0x70
mov eax, esi
pop ebx
pop esi
pop edi
ret

Function at 0x46c230
Capabilities:
Hash data using sha224

Disassembly:
push edi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, 0x70
test dl, 1
mov edi, edx
jne 0x46c2b0
test edi, 2
jne 0x46c2c0
mov ecx, ebx
xor eax, eax
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x46c261
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and ebx, 1
je 0x46c269
mov byte [edi], 0
mov dword [edx], 0xc1059ed8
mov eax, 1
mov dword [edx + 4], 0x367cd507
mov dword [edx + 8], 0x3070dd17
mov dword [edx + 0xc], 0xf70e5939
mov dword [edx + 0x10], 0xffc00b31
mov dword [edx + 0x14], 0x68581511
mov dword [edx + 0x18], 0x64f98fa7
mov dword [edx + 0x1c], 0xbefa4fa4
mov dword [edx + 0x6c], 0x1c
pop ebx
pop edi
ret
lea edi, [edx + 1]
mov bl, 0x6f
test edi, 2
mov byte [edx], 0
je 0x46c24a
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
sub ebx, 2
jmp 0x46c24a
Function at 0x46c2f0
Capabilities:
Hash data using sha256

Disassembly:
push edi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, 0x70
test dl, 1
mov edi, edx
jne 0x46c370
test edi, 2
jne 0x46c380
mov ecx, ebx
xor eax, eax
shr ecx, 2
test bl, 2
rep stosd dword es:[edi], eax
je 0x46c321
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and ebx, 1
je 0x46c329
mov byte [edi], 0
mov dword [edx], 0x6a09e667
mov eax, 1
mov dword [edx + 4], 0xbb67ae85
mov dword [edx + 8], 0x3c6ef372
mov dword [edx + 0xc], 0xa54ff53a
mov dword [edx + 0x10], 0x510e527f
mov dword [edx + 0x14], 0x9b05688c
mov dword [edx + 0x18], 0x1f83d9ab
mov dword [edx + 0x1c], 0x5be0cd19
mov dword [edx + 0x6c], 0x20
pop ebx
pop edi
ret
lea edi, [edx + 1]
mov bl, 0x6f
test edi, 2
mov byte [edx], 0
je 0x46c30a
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
sub ebx, 2
jmp 0x46c30a

Function at 0x46c410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 1
mov eax, dword [esp + 4]
jmp fcn.004461d0

Function at 0x46c8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 1
mov eax, dword [esp + 4]
jmp fcn.00447350
Function at 0x46d560
Capabilities:
Hash data using sha256

Disassembly:
push esi
push ebx
sub esp, 0xf4
mov eax, dword [esp + 0x104]
lea ebx, [esp + 0x18]
mov esi, dword [esp + 0x108]
mov dword [esp], ebx
mov dword [esp + 0x18], 0xf3bcc908
mov dword [esp + 8], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0x84caa73b
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 4], eax
mov dword [esp + 0x28], 0xfe94f82b
mov dword [esp + 0x2c], 0x3c6ef372
mov dword [esp + 0x30], 0x5f1d36f1
mov dword [esp + 0x34], 0xa54ff53a
mov dword [esp + 0x38], 0xade682d1
mov dword [esp + 0x3c], 0x510e527f
mov dword [esp + 0x40], 0x2b3e6c1f
mov dword [esp + 0x44], 0x9b05688c
mov dword [esp + 0x48], 0xfb41bd6b
mov dword [esp + 0x4c], 0x1f83d9ab
mov dword [esp + 0x50], 0x137e2179
mov dword [esp + 0x54], 0x5be0cd19
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0x40
call sym.adb.exe_SHA512_Update
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.adb.exe_SHA512_Final
mov dword [esp], ebx
mov dword [esp + 4], 0xd8
call sym.adb.exe_OPENSSL_cleanse
add esp, 0xf4
mov eax, esi
pop ebx
pop esi
ret

Function at 0x46d6a0
Capabilities:
Hash data using sha224

Disassembly:
push esi
push ebx
sub esp, 0xf4
mov eax, dword [esp + 0x104]
lea ebx, [esp + 0x18]
mov esi, dword [esp + 0x108]
mov dword [esp], ebx
mov dword [esp + 0x18], 0xc1059ed8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x1c], 0xcbbb9d5d
mov dword [esp + 0x20], 0x367cd507
mov dword [esp + 0x24], 0x629a292a
mov dword [esp + 4], eax
mov dword [esp + 0x28], 0x3070dd17
mov dword [esp + 0x2c], 0x9159015a
mov dword [esp + 0x30], 0xf70e5939
mov dword [esp + 0x34], 0x152fecd8
mov dword [esp + 0x38], 0xffc00b31
mov dword [esp + 0x3c], 0x67332667
mov dword [esp + 0x40], 0x68581511
mov dword [esp + 0x44], 0x8eb44a87
mov dword [esp + 0x48], 0x64f98fa7
mov dword [esp + 0x4c], 0xdb0c2e0d
mov dword [esp + 0x50], 0xbefa4fa4
mov dword [esp + 0x54], 0x47b5481d
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0x30
call sym.adb.exe_SHA512_Update
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.adb.exe_SHA512_Final
mov dword [esp], ebx
mov dword [esp + 4], 0xd8
call sym.adb.exe_OPENSSL_cleanse
add esp, 0xf4
mov eax, esi
pop ebx
pop esi
ret

Function at 0x46d8c0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x46d8ee
xor edx, edx
xor eax, eax
movzx ecx, byte [edi + edx]
xor cl, byte [esi + edx]
add edx, 1
or eax, ecx
cmp edx, ebx
jne 0x46d8d7
movzx eax, al
pop ebx
pop esi
pop edi
ret
xor eax, eax
jmp 0x46d8ea
Function at 0x46d900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x46d928
mov edx, dword [esp + 8]
mov eax, 0x811c9dc5
add ebx, edx
movzx ecx, byte [edx]
add edx, 1
xor ecx, eax
imul eax, ecx, 0x1000193
cmp edx, ebx
jne 0x46d914
pop ebx
ret
mov eax, 0x811c9dc5
pop ebx
ret
Function at 0x486980
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [esp + 0x118]
lea ebp, [esp + 0x10]
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x114]
mov dword [esp + 4], 0x20
mov esi, dword [esp + 0x110]
mov dword [esp], edi
call sym.adb.exe_SHA512
movzx eax, byte [esp + 0x2f]
mov dword [esp + 4], ebp
lea ebp, [esp + 0x50]
mov dword [esp], ebp
mov dword [esp + 8], 0x56f480
and eax, 0x3f
or eax, 0x40
mov byte [esp + 0x2f], al
and byte [esp + 0x10], 0xf8
call fcn.00480640
mov edx, ebp
mov eax, esi
call fcn.0047f410
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov edx, dword [esi]
mov dword [ebx + 0x20], edx
mov edx, dword [esi + 4]
mov dword [ebx + 0x24], edx
mov edx, dword [esi + 8]
mov dword [ebx + 0x28], edx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x2c], edx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x30], edx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x34], edx
mov edx, dword [esi + 0x18]
mov dword [ebx + 0x38], edx
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0x3c], edx
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x486ae0
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x15c
mov eax, dword [esp + 0x164]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
and byte [esp + 0x18], 0xf8
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 8], 0x56f480
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
shr eax, 0x18
and eax, 0x7f
or eax, 0x40
mov byte [esp + 0x37], al
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp + 0xb0]
mov dword [esp], eax
call fcn.00480640
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x100]
lea eax, [esp + 0x38]
call fcn.0047cd80
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x100]
lea eax, [esp + 0x60]
call fcn.0047ce60
lea edx, [esp + 0x60]
lea eax, [esp + 0x88]
call fcn.0047e440
lea ecx, [esp + 0x88]
lea edx, [esp + 0x38]
mov eax, ecx
call fcn.0047d0c0
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x88]
call fcn.0047cb10
add esp, 0x15c
ret
Function at 0x49d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
lea esi, [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49d6ef
xor eax, eax
lea esi, [esi]
add ebx, 1
movzx ebx, bl
lea edi, [esi + ebx*4]
mov edx, dword [edi]
add ecx, edx
movzx ecx, cl
lea ebp, [esi + ecx*4]
mov dword [esp], ebp
mov ebp, dword [ebp]
mov dword [edi], ebp
mov edi, dword [esp]
mov dword [edi], edx
mov edi, dword [esp + 0x20]
add edx, ebp
movzx edx, dl
mov edx, dword [esi + edx*4]
xor dl, byte [edi + eax]
mov edi, dword [esp + 0x24]
mov byte [edi + eax], dl
add eax, 1
cmp eax, dword [esp + 0x1c]
jne 0x49d6b0
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b21b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov edi, dword [esp + 0xd4]
lea esi, [esp + 0x2c]
mov ebx, dword [esp + 0xdc]
mov dword [esp], edi
call sym.adb.exe_EVP_MD_size
mov dword [esp], esi
mov dword [esp + 0x18], eax
call sym.adb.exe_HMAC_CTX_init
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x10], 0
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
call sym.adb.exe_HMAC_Init_ex
test eax, eax
je 0x4b23c9
mov ecx, dword [esp + 0xd8]
test ecx, ecx
je 0x4b23b9
mov dword [esp + 0x1c], 1
lea ebp, [esp + 0x60]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xd8], eax
cmovbe eax, dword [esp + 0xd8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edi, eax
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x28], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], cl
call sym.adb.exe_HMAC_Init_ex
test eax, eax
je 0x4b23de
mov eax, dword [esp + 0xcc]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 4], eax
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x4b23de
lea eax, [esp + 0x28]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x4b23de
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_HMAC_Final
test eax, eax
je 0x4b23de
test edi, edi
jne 0x4b23e2
cmp dword [esp + 0xd0], 1
mov dword [esp + 0x14], 1
jbe 0x4b23a5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.adb.exe_HMAC_Init_ex
test eax, eax
je 0x4b23de
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.adb.exe_HMAC_Update
test eax, eax
je 0x4b23de
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_HMAC_Final
test eax, eax
je 0x4b23de
test edi, edi
je 0x4b238f
xor eax, eax
lea esi, [esi]
movzx edx, byte [ebp + eax]
xor byte [ebx + eax], dl
add eax, 1
cmp eax, edi
jne 0x4b2380
add dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xd0]
jne 0x4b2317
add ebx, edi
add dword [esp + 0x1c], 1
sub dword [esp + 0xd8], edi
jne 0x4b222f
mov edx, dword [esp + 0xd0]
xor eax, eax
test edx, edx
setne al
mov edi, eax
mov dword [esp], esi
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 0xac
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x4b23c9
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
jmp 0x4b2301
Function at 0x4b26f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea esi, [ebp + 0x10]
mov dword [esp + 4], esi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__vscprintf]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x4b274c
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004e0e80
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
mov dword [esp], ebx
call fcn.004ebfd0
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
jmp 0x4b2956
cmp eax, edi
jg 0x4b2a19
test eax, eax
jle 0x4b2a19
add esi, eax
sub edi, eax
test edi, edi
je 0x4b29f5
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
test eax, eax
mov ebx, eax
jns 0x4b2942
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4b2a00
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x4b29e3
call esi
mov dword [esp], eax
call fcn.004b5a60
mov dword [ebp - 0x20], eax
call esi
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.dnssd_clientstub_read_all__d__failed__ld__ld__d__s
mov dword [esp], 0x1388
call fcn.004b26f0
test ebx, ebx
mov eax, 0xffffffff
jns 0x4b29f7
call esi
cmp eax, 0x2733
setne al
movzx eax, al
sub eax, 2
jmp 0x4b29f7
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.dnssd_clientstub_read_all:_EINTR_continue
mov dword [esp], 0x3e8
call fcn.004b26f0
jmp 0x4b2956
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
mov edx, 0x587154
mov ecx, eax
xor eax, eax
cmp ecx, 0x2733
jne 0x4b29af
mov eax, 0xffffffff
jmp 0x4b29f7
Function at 0x4b2a40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
test ecx, ecx
mov dword [ebp - 0x1c], eax
jne 0x4b2a63
jmp 0x4b2ad0
shr eax, 0x1f
test al, al
jne 0x4b2a88
add esi, ebx
sub edi, ebx
je 0x4b2ad0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, edi
mov ebx, eax
jbe 0x4b2a56
xor eax, eax
test ebx, ebx
mov esi, 0x587154
js 0x4b2ada
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.dnssd_clientstub_write_all__d__failed__ld__ld__d__s
mov dword [esp], 0x1388
call fcn.004b26f0
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], edx
call edx
mov dword [esp], eax
call fcn.004b5a60
mov edx, dword [ebp - 0x20]
mov esi, eax
call edx
jmp 0x4b2a93
Function at 0x4b37c0
Capabilities:
Get socket status

Disassembly:
mov edx, dword [0x5b1e68]
test edx, edx
je 0x4b37d0
mov eax, edx
ret
push ebp
mov ebp, esp
sub esp, 0x138
lea edx, [ebp - 0x114]
mov dword [ebp - 0x108], eax
add eax, 1
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x114], 0xa
mov dword [ebp - 0x110], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
je 0x4b3840
mov eax, dword [0x5b1e68]
leave
ret
mov dword [esp + 4], str.dnssd_clientstub_wait_for_daemon_timed_out
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, 0xfffeffe0
mov dword [0x5b1e68], 0xfffeffe0
leave
ret
Function at 0x4b5d30
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 8], 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b5e50
xor esi, esi
xor ebx, ebx
lea edi, [ebp - 0x20]
jmp 0x4b5db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4b5e85
test ebx, ebx
je 0x4b5d9d
mov dword [esp], ebx
call fcn.004ebfd0
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x4b5e66
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 0x30
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
sub esp, 0x20
test eax, eax
je 0x4b5d80
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x30], eax
mov eax, ebx
je 0x4b5ea0
mov dword [ebp - 0x34], ebx
jmp 0x4b5e17
add edx, 1
add eax, 0x24
cmp edx, dword [ebp - 0x30]
je 0x4b5ea4
mov esi, dword [eax]
mov edi, str.Bonjour_Service
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
jne 0x4b5e08
mov edx, dword [eax + 0xc]
mov ebx, dword [ebp - 0x34]
cmp edx, 1
sete al
cmp edx, 7
sete dl
or eax, edx
movzx esi, al
test ebx, ebx
je 0x4b5e68
mov dword [esp], ebx
call fcn.004ebfd0
jmp 0x4b5e68
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4b5e66
call ebx
test eax, eax
je 0x4b5d72
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b5e7b
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b5ea0
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b5def
nop
xor esi, esi
jmp 0x4b5e3e
mov ebx, dword [ebp - 0x34]
xor esi, esi
jmp 0x4b5e3e
Function at 0x4bdcc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
mov eax, 0x16
sub esp, 8
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4bdceb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, eax
cmp edx, 0xffffffff
mov edx, 0
mov dword [ebx], eax
mov eax, 0xc
cmovne eax, edx
add esp, 8
pop ebx
ret

Function at 0x4bdd10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
cmp eax, 1
sbb eax, eax
and eax, 0x16
leave
ret

Function at 0x4bfce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [edx + 0x10]
cmp eax, 0xffffffff
mov edx, dword [edi + 8]
mov dword [ebp - 0x1c], edx
je 0x4bfda0
imul eax, eax, 0x58
mov eax, dword [eax + 0x5b2300]
test eax, eax
je 0x4bfe0f
xor esi, esi
lea ebx, [edi + 0x54]
mov dword [ebp - 0x20], edi
mov edi, esi
mov esi, dword [ebp + 0xc]
jmp 0x4bfd2c
add edi, 1
add ebx, 0x18
cmp edi, 0x20
je 0x4bfd90
mov eax, dword [ebx]
test eax, eax
je 0x4bfd21
mov ecx, dword [ebx + 4]
cmp byte [ecx], 3
jne 0x4bfd21
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4bfda8
mov dword [esi + edi*8 + 0x1c], eax
add edi, 1
add ebx, 0x18
cmp edi, 0x20
jne 0x4bfd2c
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x50]
jmp 0x4bfd01
mov dword [esp], 0
mov esi, edi
mov edi, dword [ebp - 0x20]
call fcn.004c7070
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
lea eax, [esi + esi*2]
mov eax, dword [edi + eax*8 + 0x54]
mov dword [esp + 0xc], str.could_not_open_device__s__interface__d_:__s
mov dword [esp + 8], str.winusbx_open
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b6600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 0xfffffffc
cmp edx, 2
je 0x4bfd92
xor eax, eax
cmp edx, 5
setne al
lea eax, [eax + eax - 3]
jmp 0x4bfd92
mov eax, 0xfffffffd
jmp 0x4bfd92