joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bd5d6
cmp eax, 3
jne 0x4bd74b
mov ebp, dword [0x574a30]
test ebp, ebp
je 0x4bd74b
mov dword [esp], 0
jmp 0x4bd5f7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4bd629
mov ebx, dword [ebp]
mov edi, dword [ebp + 4]
test edi, edi
je 0x4bd794
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd5f0
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [esp], eax
jmp 0x4bd5f0
test byte [esp], 1
je 0x4bd74b
mov ebp, dword [0x574a30]
test ebp, ebp
je 0x4bd74b
mov dword [esp], 0
jmp 0x4bd657
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4bd689
mov ebx, dword [ebp]
mov edi, dword [ebp + 4]
test edi, edi
je 0x4bd794
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd650
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [esp], eax
jmp 0x4bd650
test byte [esp], 1
je 0x4bd74b
mov ebp, dword [0x574a30]
test ebp, ebp
je 0x4bd74b
mov dword [esp], 0
jmp 0x4bd6b7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4bd6e9
mov ebx, dword [ebp]
mov edi, dword [ebp + 4]
test edi, edi
je 0x4bd794
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd6b0
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [esp], eax
jmp 0x4bd6b0
test byte [esp], 1
je 0x4bd74b
mov ebp, dword [0x574a30]
test ebp, ebp
je 0x4bd74b
mov dword [esp], 0
jmp 0x4bd717
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4bd745
mov ebx, dword [ebp]
mov edi, dword [ebp + 4]
test edi, edi
je 0x4bd794
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd710
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [esp], eax
jmp 0x4bd710
test byte [esp], 1
jne 0x4bd75c
movzx eax, byte [0x571700]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebp, dword [0x574a30]
jmp 0x4bd767
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x4bd74b
mov ebx, dword [ebp]
mov edi, dword [ebp + 4]
test edi, edi
je 0x4bd794
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd764
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4bd764
ud2

Function at 0x4bdcd0
Capabilities:
Get system information on windows

Disassembly:
push esi
sub esp, 0x24
mov esi, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bdd0a
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
add esp, 0x24
pop esi
ret
mov dword [esi], 2
mov dword [esi + 4], 0x563ec0
mov eax, esi
add esp, 0x24
pop esi
ret
Function at 0x4be2d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4be2f4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4be309
cmp dword [eax], 0
je 0x4be309
add eax, 4
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4be2e9
mov eax, dword [edi]
test eax, eax
je 0x4be376
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4be38b
mov esi, eax
test eax, eax
jne 0x4be34c
push 4
push 0xc
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4be39b
mov dword [eax], 0
mov dword [eax + 8], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4be390
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4be365
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x4be367
mov ecx, dword [eax + 4]
jmp 0x4be367
xor ecx, ecx
mov dword [esi], 1
lea eax, [esi + 4]
mov dword [esi + 4], ecx
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4be31c
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
jmp 0x4be344
push 4
push 0xc
call fcn.005062c0
add esp, 8
ud2

Function at 0x4be3b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x4be47d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4be3db
cmp dword [eax], 0
mov esi, eax
jne 0x4be478
mov eax, dword [edi]
test eax, eax
je 0x4be49b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4be4b4
mov esi, eax
test eax, eax
jne 0x4be42e
push 4
push 0xc
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4be4cc
mov dword [eax], 0
mov dword [eax + 8], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4be4be
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4be447
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x4be449
mov eax, dword [ecx + 4]
jmp 0x4be449
xor eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi], 1
mov dword [esi + 4], eax
je 0x4be478
test ecx, ecx
je 0x4be478
lock dec dword [ecx]
jne 0x4be478
lea eax, [esp + 4]
push eax
call fcn.00421aa0
add esp, 4
add esi, 4
jmp 0x4be4b6
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4be3d0
jmp 0x4be3db
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4be3f6
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
jmp 0x4be426
push 4
push 0xc
call fcn.005062c0
add esp, 8
ud2
Function at 0x4be4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4be505
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4be51a
cmp byte [eax + 4], 0
je 0x4be51a
add eax, 5
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4be4f9
mov eax, dword [edi]
test eax, eax
je 0x4be580
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4be595
mov esi, eax
test eax, eax
jne 0x4be55a
push 4
push 8
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4be5a5
mov dword [eax], edi
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4be59a
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
je 0x4be573
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
mov byte [esi + 4], 1
lea eax, [esi + 5]
mov byte [esi + 5], cl
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4be52d
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
jmp 0x4be552
push 4
push 8
call fcn.005062c0
add esp, 8
ud2

Function at 0x4be5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x4be6a1
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4be5eb
cmp dword [eax], 0
mov esi, eax
jne 0x4be69c
mov eax, dword [edi]
test eax, eax
je 0x4be6bf
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4be6d8
mov esi, eax
test eax, eax
jne 0x4be63e
push 4
push 0x10
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4be6f0
mov dword [eax], 0
mov dword [eax + 0xc], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4be6e2
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4be65c
mov eax, dword [edx]
mov dword [edx], 0
test eax, eax
mov ecx, eax
je 0x4be660
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
jmp 0x4be660
xor eax, eax
xor ecx, ecx
mov edx, dword [esi + 8]
mov dword [esp + 8], edx
movsd xmm0, qword [esi]
movsd qword [esp], xmm0
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp dword [esp], 0
je 0x4be69c
mov eax, dword [esp + 8]
test eax, eax
je 0x4be69c
lock dec dword [eax]
jne 0x4be69c
lea eax, [esp + 8]
push eax
call fcn.00421ae0
add esp, 4
add esi, 4
jmp 0x4be6da
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4be5e0
jmp 0x4be5eb
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4be606
xor esi, esi
mov eax, esi
add esp, 0xc
pop esi
pop edi
ret
push edi
call fcn.00505af0
add esp, 4
jmp 0x4be636
push 4
push 0x10
call fcn.005062c0
add esp, 8
ud2
Function at 0x4be700
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x20
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x4be7ef
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4be732
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4be7ea
mov eax, dword [edi]
test eax, eax
je 0x4be80d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4be826
mov esi, eax
test eax, eax
jne 0x4be78c
push 8
push 0x20
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4be83f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4be831
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4be7ab
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x4be7d9
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4be7cb
movaps xmm0, xmmword [esp]
jmp 0x4be7d9
lea ecx, [esp + 0x10]
call fcn.004bf290
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x4be828
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4be725
jmp 0x4be732
push edi
call fcn.00505af0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4be74d
xor esi, esi
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push edi
call fcn.00505af0
add esp, 4
jmp 0x4be784
push 8
push 0x20
call fcn.005062c0
add esp, 8
ud2
Function at 0x4bf290
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x10
mov esi, ecx
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4bf2d6
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call fcn.004c4870
ud2

Function at 0x4bf2e0
Capabilities:
Create thread

Disassembly:
push edi
push esi
push 4
push 8
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4bf371
mov edi, eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push 0x4bf380
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4bf32e
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4bf350
push dword [ecx + 8]
push eax
push dword [edi]
call fcn.0040dc90
add esp, 0xc
push 4
push 8
push edi
call fcn.0040dc90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
pop esi
pop edi
ret
push 4
push 8
call fcn.005062c0
add esp, 8
ud2

Function at 0x4c0830
Capabilities:
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c088a
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [edi], 0
je 0x4c0868
mov eax, dword [edi + 8]
test eax, eax
je 0x4c0868
lock dec dword [eax]
jne 0x4c0868
lea eax, [edi + 8]
push eax
call fcn.00421ae0
add esp, 4
push 4
push 0x10
push edi
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4c0895
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop esi
pop edi
ret
push esi
call fcn.00505af0
add esp, 4
jmp 0x4c0842
push esi
call fcn.00505af0
add esp, 4
jmp 0x4c087c

Function at 0x4c08a0
Capabilities:
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi + 8]
mov eax, dword [esi]
test eax, eax
je 0x4c08fa
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [edi], 0
je 0x4c08d8
mov eax, dword [edi + 4]
test eax, eax
je 0x4c08d8
lock dec dword [eax]
jne 0x4c08d8
lea eax, [edi + 4]
push eax
call fcn.00421aa0
add esp, 4
push 4
push 0xc
push edi
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4c0905
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop esi
pop edi
ret
push esi
call fcn.00505af0
add esp, 4
jmp 0x4c08b2
push esi
call fcn.00505af0
add esp, 4
jmp 0x4c08ec
Function at 0x4c0fc0
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [esp + 0x1cc]
mov esi, dword [esp + 0x1c8]
movzx edi, word [eax + 8]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov word [esp + 2], di
mov eax, dword [0x574ab0]
cmp eax, 3
jne 0x4c10ba
cmp ebx, 0x17f
ja 0x4c10d3
lea esi, [esp + 0x34]
push ebx
push ebp
push esi
call fcn.004f5b80
add esp, 0xc
mov byte [esp + ebx + 0x34], 0
inc ebx
lea eax, [esp + 8]
push ebx
push esi
push eax
call fcn.004d3440
add esp, 0xc
cmp dword [esp + 8], 0
je 0x4c104e
mov esi, dword [esp + 0x1c8]
mov eax, dword [0x564018]
mov ecx, dword [0x56401c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4c10e3
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
lea edx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
mov esi, dword [esp + 0x1c8]
test eax, eax
je 0x4c10a6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4c10e3
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], di
mov dword [esi], eax
jmp 0x4c10e3
push 0x574ab0
call fcn.00505ba0
add esp, 4
cmp ebx, 0x17f
jbe 0x4c1000
lea eax, [esp + 2]
push eax
push ebx
push ebp
push esi
call fcn.00506110
add esp, 0x10
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c10f0
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x4c11b3
mov edi, dword [eax + 4]
mov eax, dword [0x574ab0]
cmp eax, 3
jne 0x4c127a
mov ebp, esp
push 1
push edi
push ebp
call fcn.004ce6b0
add esp, 0xc
movzx eax, byte [esp]
cmp al, 4
jne 0x4c11cf
mov eax, dword [esp + 4]
cmp word [edi], 0
mov dword [esp + 0x1c], eax
je 0x4c11ee
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
movsd xmm0, qword [edi + 0x14]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [edi + 4]
movsd xmm1, qword [edi + 0xc]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push ebp
call fcn.004debd0
add esp, 4
mov edi, eax
rol di, 8
push ebp
call fcn.0041db40
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x20], xmm0
push ebp
call fcn.004a1f70
add esp, 4
mov ebx, eax
push ebp
call fcn.004debe0
movups xmm0, xmmword [esp + 0x24]
add esp, 4
mov ecx, 0x1c
mov dx, 0x17
jmp 0x4c1223
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x4c1270
movzx ecx, byte [esp + 3]
movzx edi, word [esp + 1]
mov edx, dword [esp + 4]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x4c1270
movzx eax, word [edi + 6]
mov word [esp + 4], ax
mov eax, dword [edi + 2]
mov dword [esp], eax
push ebp
call fcn.004deb80
add esp, 4
mov edi, eax
rol di, 8
push ebp
call fcn.0041db40
add esp, 4
mov ebx, dword [eax]
xorps xmm0, xmm0
mov ecx, 0x10
mov dx, 2
mov word [esp], dx
mov word [esp + 2], di
mov dword [esp + 4], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], eax
push ecx
push ebp
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4c1253
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4c1270
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x574ab0
call fcn.00505ba0
add esp, 4
jmp 0x4c111c
Function at 0x4c1760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea edx, [esp + 0x50]
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
push ecx
push edx
push dword [eax]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4c188f
movzx ecx, word [esp + 0x50]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4c18a8
cmp ecx, 0x17
jne 0x4c18ce
cmp eax, 0x1c
jb 0x4c18e9
movzx eax, word [esp + 0x52]
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x58]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x10], xmm1
rol ax, 8
push dword [esp + 0x68]
push dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.004deb90
add esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov word [esi], 1
movsd qword [esp + 0x12], xmm0
movsd xmm0, qword [esp + 0x44]
movsd qword [esp + 0x1a], xmm1
mov dword [esp + 0x2a], eax
movsd qword [esp + 0x22], xmm0
movsd xmm1, qword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
movsd xmm2, qword [esp + 0x20]
movsd qword [esi + 0xa], xmm1
movsd xmm1, qword [esp + 0x26]
movsd qword [esi + 0x12], xmm2
movsd qword [esi + 2], xmm0
movsd qword [esi + 0x18], xmm1
jmp 0x4c18e1
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov byte [esi + 4], 0
mov dword [esi + 8], eax
jmp 0x4c18dc
cmp eax, 0x10
jb 0x4c18e9
movzx ecx, word [esp + 0x52]
lea eax, [esi + 2]
rol cx, 8
push ecx
push dword [esp + 0x58]
push eax
call fcn.004deb60
add esp, 0xc
mov word [esi], 0
jmp 0x4c18e1
mov dword [esi + 4], 2
mov dword [esi + 8], 0x564030
mov word [esi], 2
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
ud2
Function at 0x4c4730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4c47af
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x4c47d7
test eax, eax
js 0x4c47bf
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4c47cf
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], 0x564144
mov dword [esp + 0x40], 2
mov dword [esp + 0x34], 0
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x56418c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x56412c
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
lea esi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x4d4c60
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x48], 1
push eax
push ecx
push esi
call fcn.004cd5b0
add esp, 0xc
mov ecx, esi
call fcn.00435a00
mov ecx, 7
int 0x29
ud2

Function at 0x4c54a0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ecx, esp
push dword [esp + 0x48]
call fcn.004c9a00
add esp, 4
cmp dword [esp], 0
je 0x4c54cc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x4c5507
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push 1
push eax
push ecx
call fcn.004bd460
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4c5515
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
ret
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c5533
mov byte [esi], 4
test ebx, ebx
jne 0x4c554d
jmp 0x4c550c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4c550c
add ebx, ebx
push 2
push ebx
push edi
call fcn.0040dc90
add esp, 0xc
jmp 0x4c550c