joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fc20
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [ecx + 0x2c]
push esi
mov esi, edx
test al, 1
je 0x47fc33
mov eax, 0xfffff00d
pop esi
pop ecx
ret
test eax, 0x10000
jne 0x47fc42
mov eax, 0xfffff031
pop esi
pop ecx
ret
mov eax, dword [ecx + 8]
sub eax, 7
je 0x47fcc9
sub eax, 5
je 0x47fc89
sub eax, 2
je 0x47fc5c
mov eax, 0xfffff02a
pop esi
pop ecx
ret
cmp dword [ecx + 0x88], 0
ja 0x47fcc9
lea eax, [esp + 4]
push eax
push ecx
call fcn.0047a630
add esp, 8
test eax, eax
je 0x47fc84
mov ecx, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.004822d0
mov eax, dword [esi]
pop esi
pop ecx
ret
cmp dword [ecx + 0x88], 0
ja 0x47fcc9
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 1
push esi
push dword [ecx + 0x90]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x47fcc2
call dword [0x4eb3b8]
mov ecx, eax
pop esi
add esp, 4
jmp fcn.004822d0
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov eax, 0xfffff008
pop esi
pop ecx
ret

Function at 0x47fde0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
push edi
push 0xc
mov ebx, edx
mov esi, ecx
call dword [0x50bacc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47fe01
pop edi
pop esi
mov eax, 0xfffff027
pop ebx
ret
mov eax, dword [esp + 0x10]
push 0
push 4
push edi
push 0x47fd70
push 0
push 0
mov dword [edi], ebx
mov dword [edi + 4], eax
call fcn.004ab9d7
add esp, 0x18
test eax, eax
jne 0x47fe51
call fcn.004a905f
mov ebx, dword [eax]
call fcn.004a905f
push edi
mov esi, dword [eax]
call dword [0x50bad8]
add esp, 4
call fcn.004a905f
mov dword [eax], esi
cmp ebx, 0x16
jbe 0x47fe5f
pop edi
pop esi
mov eax, 0xfffff01a
pop ebx
ret
mov dword [esi], eax
xor ebx, ebx
push eax
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
movzx eax, byte [ebx + 0x47fea4]
jmp dword [eax*4 + 0x47fe90]
Function at 0x4804a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [esp + 0xc], 1
mov ebx, ecx
cmp dword [esi + 0x90], 0xffffffff
je 0x4804c5
pop esi
mov eax, 0xfffff00e
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4804ed
call dword [0x4eb3b8]
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x48050d
push 0
push edi
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x48051a
call dword [0x4eb0cc]
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [esp + 0x1c], 0x17
mov eax, dword [0x50f760]
cmove eax, dword [0x50f75c]
mov ecx, dword [0x50f6f4]
test ecx, ecx
je 0x480552
test dword [esi + 0x2c], 0x100000
jne 0x480552
test eax, eax
jne 0x480552
push 3
push edi
call ecx
test eax, eax
je 0x48059d
or dword [esi + 0x2c], 0x40000
test dword [esi + 0x2c], 0x2000000
je 0x48056a
push ecx
mov edx, edi
call fcn.00480440
add esp, 4
test eax, eax
jne 0x4805d8
test dword [esi + 0x2c], 0x4000000
je 0x4805c2
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4805b3
call dword [0x4eb3b8]
jmp 0x4805be
mov ebx, dword [0x4eb0cc]
call ebx
cmp eax, 1
je 0x480552
call ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.00480470
test eax, eax
jne 0x4805d8
cmp dword [esp + 0x1c], 0x17
mov dword [esi + 0x90], edi
jne 0x4805d6
or dword [esi + 0x2c], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x480830
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x90], 0xffffffff
jne 0x48088c
movzx eax, word [edi]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x480864
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [0x4eb3b8]
movzx eax, word [edi]
mov edx, esi
push ecx
mov ecx, dword [esi + 4]
push eax
push ebx
call fcn.004804a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x48088c
push ebx
call dword [0x4eb3ac]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
cmp word [edi], 0x17
jne 0x4808b1
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esp + 0x18]
push edi
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4808da
call dword [0x4eb3b8]
cmp eax, 0x2740
jne 0x4808e3
mov dword [esi + 0x94], eax
or dword [esi + 0x2c], 0x200
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x481860
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xa0
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, edx
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esi + 0x2c]
and edi, 0xfffdffff
mov dword [esi + 0x2c], edi
mov ebx, dword [ebp + 0x20]
test ebx, ebx
jns 0x481911
mov ecx, ebx
call fcn.004848b0
mov edx, eax
cmp edx, 0x2738
je 0x481911
cmp edx, 0x2746
je 0x481905
cmp edx, 0x2744
je 0x481905
test edi, 0x100
je 0x481a4e
mov ecx, esi
call fcn.00476710
test dword [esi + 0x2c], 0x80000
je 0x4818db
xor ecx, ecx
xor eax, eax
jmp 0x4818e7
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push 0
lea eax, [esp + 0x14]
mov ecx, edx
push 0
push eax
call fcn.004822d0
push eax
jmp 0x481a42
test edi, 0x80000
je 0x481a4e
test edi, 0x80000
jne 0x481936
sar ebx, 0x1f
lea eax, [esi + 0x88]
and ebx, 2
push ebx
push eax
lea eax, [esi + 0x80]
push eax
push dword [ebp + 0x24]
jmp 0x481a42
test edi, 0x100
je 0x481a4e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov eax, dword [esi + 0x110]
push 0x10000
push esi
mov dword [esp + 0x20], 0
call eax
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x481a34
cmp dword [esp + 0x10], 0
je 0x481a34
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004a1140
add esp, 0xc
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push 0
push 0
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
add byte [ebx + 0x1274fff8], al
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
jmp 0x481a42
call dword [0x4eb3b8]
mov edx, eax
cmp edx, 0x2738
jne 0x481a03
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
jmp 0x481a42
cmp edx, 0x2733
jne 0x481a18
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
jmp 0x481a42
cmp edx, 0x2746
je 0x481a0b
cmp edx, 0x2744
je 0x481a0b
mov ecx, esi
call fcn.00476710
jmp 0x4818ef
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0xfffff024
mov eax, dword [esi + 0x10c]
push esi
call eax
add esp, 0x14
mov eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x1c]
and eax, 0x20100
cmp eax, 0x100
jne 0x481a6a
mov edx, esi
mov ecx, ebx
call fcn.00481730
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x481a8f
test ecx, ecx
jne 0x481a8f
test al, 8
jne 0x481a8f
or eax, 8
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004879f1
add esp, 0xa0
ret
Function at 0x482e50
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0x10000
push 0x10000
push 0xff
mov edi, edx
mov ebx, ecx
push 0
push 0x40040003
push dword [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, dword [esp + 0x14]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x482ea1
mov ebp, dword [0x4eb0cc]
call ebp
test eax, eax
jg 0x482f20
call ebp
jmp 0x482f2a
push 0
push ecx
push eax
mov edx, edi
mov ecx, ebx
call fcn.00482830
add esp, 0xc
test eax, eax
je 0x482ec7
push dword [esi + 0x3c]
call dword [0x4eb070]
mov dword [esi + 0x3c], 0xffffffff
jmp 0x482e8a
lea eax, [esi + 0x20]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push eax
mov dword [eax + 0x10], 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x482f58
mov ebp, dword [0x4eb0cc]
call ebp
cmp eax, 0x3e5
je 0x482f58
call ebp
cmp eax, 0x217
jne 0x482f06
mov dword [esi + 0x20], 0
jmp 0x482f2d
push dword [esi + 0x3c]
call dword [0x4eb070]
mov dword [esi + 0x3c], 0xffffffff
call ebp
test eax, eax
jg 0x482f20
call ebp
jmp 0x482f2a
call ebp
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x482f52
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4846b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x41c
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
lea eax, [esp + 0x288]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x484837
xorps xmm0, xmm0
mov eax, 2
movups xmmword [0x50f730], xmm0
push 0
mov word [0x50f730], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, 0x50f734
mov word [0x50f732], ax
mov ecx, str.0.0.0.0
call fcn.00481f70
test eax, eax
jne 0x484843
push ecx
call fcn.00476640
add esp, 4
test eax, eax
jne 0x484848
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [reloc.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x48479b
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x48484d
test dword [esp + 0x10], 0x20000
mov ecx, 1
mov eax, dword [0x50f760]
cmove eax, ecx
push edi
mov dword [0x50f760], eax
call dword [0x4eb3ac]
cmp eax, 0xffffffff
jne 0x4847ac
jmp 0x48485f
call esi
mov ecx, eax
call fcn.00484680
test eax, eax
je 0x484871
push 0
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
add byte [ebx - 0x7c08], cl
je 0x484813
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x48487f
test dword [esp + 0x10], 0x20000
mov ecx, 1
mov eax, dword [0x50f75c]
cmove eax, ecx
push edi
mov dword [0x50f75c], eax
call dword [0x4eb3ac]
cmp eax, 0xffffffff
jne 0x484820
jmp 0x48488d
call esi
mov ecx, eax
call fcn.00484680
test eax, eax
je 0x48489b
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.004879f1
add esp, 0x41c
ret
mov edx, str.WSAStartup
mov ecx, eax
call fcn.00482240
call fcn.004a974b
call fcn.004a974b
call dword [0x4eb3b8]
mov edx, str.getsockopt
mov ecx, eax
call fcn.00482240
call dword [0x4eb3b8]
mov edx, str.closesocket
mov ecx, eax
call fcn.00482240
call esi
mov edx, str.socket
mov ecx, eax
call fcn.00482240
call esi
mov edx, str.getsockopt
mov ecx, eax
call fcn.00482240
call esi
mov edx, str.closesocket
mov ecx, eax
call fcn.00482240
call esi
mov edx, str.socket
mov ecx, eax
call fcn.00482240
int3

Function at 0x48a437
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4a15d4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4ef88c
push 0x4ef884
push str.FlsAlloc
push 0
call fcn.004a1554
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1606
push dword [ebp + 8]
mov ecx, esi
call fcn.00488245
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x4a1648
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4ef89c
push 0x4ef894
push str.FlsGetValue
push 2
call fcn.004a1554
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4a1679
mov ecx, esi
call fcn.00488245
call esi
jmp 0x4a167f
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4a1682
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4ef8a4
push 0x4ef89c
push str.FlsSetValue
push 3
call fcn.004a1554
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4a16b6
mov ecx, esi
call fcn.00488245
call esi
jmp 0x4a16bc
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4b2635
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b24b2

Function at 0x4b7d60
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7a02
Function at 0x4c4470
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9611
mov eax, dword fs:[0]
push eax
mov eax, 0x11cc
call fcn.004889d0
mov eax, dword [0x50b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x4c44b2
xor al, al
jmp 0x4c46d7
mov ecx, dword [0x50f3f8]
test ecx, ecx
jne 0x4c44d8
call fcn.00477be0
test eax, eax
je 0x4c44c9
xor ecx, ecx
jmp 0x4c44d8
mov dword [0x50f3f8], 0x50f400
mov ecx, 0x50f400
sub esp, 8
lea edx, [ebp - 0x1198]
push 0x301
push esi
call fcn.0047e0e0
mov edi, eax
add esp, 0x10
test edi, edi
js 0x4c44ab
lea ecx, [ebp - 0x1198]
call fcn.0047df80
sub esp, 0xc
lea ecx, [ebp - 0x1060]
call fcn.0040be20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1060]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x24]
push 0x4f925c
push edi
call fcn.004afc75
mov esi, eax
mov dword [ebp - 0x11c4], 0
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x11a8], esi
mov dword [ebp - 0x11a4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x11c0], 0x100
mov dword [ebp - 0x11a0], eax
add esp, 8
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x11bc], 0x144
mov dword [ebp - 0x119c], eax
lea eax, [ebp - 0x11a8]
mov dword [ebp - 0x11d8], eax
movups xmmword [ebp - 0x11d4], xmm0
mov byte [ebp - 0x11b8], 0
mov byte [ebp - 0x11b4], 0x20
mov dword [ebp - 0x11b0], 4
mov dword [ebp - 0x11ac], 0
lea eax, [ebp - 0x11d8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1060]
call fcn.0040bf40
push esi
call fcn.004a6781
mov ecx, dword [0x50f3f8]
add esp, 4
test ecx, ecx
jne 0x4c45f5
call fcn.00477be0
test eax, eax
je 0x4c45e6
xor ecx, ecx
jmp 0x4c45f5
mov dword [0x50f3f8], 0x50f400
mov ecx, 0x50f400
push ecx
push edi
lea edx, [ebp - 0x1198]
call fcn.0047e200
add esp, 8
lea ecx, [ebp - 0x1198]
call fcn.0047df80
push 0xa
push 0x4f9260
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
call fcn.00401320
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1014]
cmp eax, 0x10
jb 0x4c4694
mov ecx, dword [ebp - 0x1028]
inc eax
cmp eax, 0x1000
jb 0x4c468b
test cl, 0x1f
jne 0x4c46f3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4c46f3
sub ecx, eax
cmp ecx, 4
jb 0x4c46f3
cmp ecx, 0x23
ja 0x4c46f3
mov ecx, eax
push ecx
call fcn.00487cad
add esp, 4
push dword [ebp - 0x11cc]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
call fcn.004a6274
push 1
push dword [ebp - 0x11d0]
call fcn.00487eb6
add esp, 0xc
lea ecx, [ebp - 0x1060]
call fcn.0040bdb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
call fcn.004a30af
int3
Function at 0x4c6860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x18]
push 0xc8
mov esi, edx
mov dword [esp + 0x18], edi
push 0
push eax
mov dword [esp + 0x18], esi
mov ebx, ecx
call fcn.004a1140
add esp, 0xc
cmp esi, 0x88
jl 0x4c6994
mov eax, 0xf0f0f0f1
lea edi, [esp + 0x28]
mul dword [esp + 0xc]
sub edi, ebx
lea esi, [ebx + 0x80]
mov ecx, edx
shr ecx, 7
imul eax, ecx, 0xffffff78
mov dword [esp + 0x10], ecx
add dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
xor eax, eax
cmp ecx, esi
ja 0x4c68e9
lea ecx, [esp + 0x98]
cmp ecx, ebx
jae 0x4c6950
lea ecx, [esi - 0x60]
nop dword [eax]
movups xmm0, xmmword [esp + eax*8 + 0x18]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x18], xmm1
movups xmm0, xmmword [esp + eax*8 + 0x28]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x28], xmm1
add eax, 8
movups xmm0, xmmword [edi + ecx - 0x50]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [edi + ecx - 0x50], xmm1
movups xmm0, xmmword [edi + ecx - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [edi + ecx - 0x40], xmm1
cmp eax, 0x10
jl 0x4c68f0
cmp eax, 0x11
jge 0x4c6966
nop dword [eax + eax]
mov ecx, dword [esi + eax*8 - 0x80]
xor dword [esp + eax*8 + 0x18], ecx
mov ecx, dword [esi + eax*8 - 0x7c]
xor dword [esp + eax*8 + 0x1c], ecx
inc eax
cmp eax, 0x11
jl 0x4c6950
lea ecx, [esp + 0x18]
call fcn.004c6aa0
add ebx, 0x88
add esi, 0x88
sub edi, 0x88
sub dword [esp + 0x10], 1
jne 0x4c68d4
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push esi
lea eax, [esp + 0xe4]
push ebx
push eax
call fcn.0049f640
add esp, 0xc
mov byte [esp + esi + 0xe0], 1
inc esi
mov eax, 0x88
sub eax, esi
push eax
lea eax, [esp + 0xe4]
add eax, esi
push 0
push eax
call fcn.004a1140
or byte [esp + 0x173], 0x80
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + ecx*8 + 0x18]
movups xmm1, xmmword [esp + ecx*8 + 0xe0]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x18], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x28]
movups xmm1, xmmword [esp + ecx*8 + 0xf0]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x28], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x38]
movups xmm1, xmmword [esp + ecx*8 + 0x100]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x38], xmm1
movups xmm0, xmmword [esp + ecx*8 + 0x48]
movups xmm1, xmmword [esp + ecx*8 + 0x110]
pxor xmm1, xmm0
movups xmmword [esp + ecx*8 + 0x48], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x4c69e0
cmp ecx, 0x11
jge 0x4c6a71
shl ecx, 3
nop dword [eax + eax]
mov eax, dword [esp + ecx + 0xe0]
xor dword [esp + ecx + 0x18], eax
mov eax, dword [esp + ecx + 0xe4]
xor dword [esp + ecx + 0x1c], eax
add ecx, 8
cmp ecx, 0x88
jl 0x4c6a50
lea ecx, [esp + 0x18]
call fcn.004c6aa0
push 0xc8
mov eax, ecx
push eax
push edi
call fcn.0049f640
mov ecx, dword [esp + 0x180]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
Function at 0x4c94a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x4c94c1
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x4c94c1
mov al, 1
jmp 0x4c94c3
xor al, al
mov byte [esi + 0x20], al
test al, al
je 0x4c9500
mov edi, dword [ebx + 4]
sub edi, dword [ebx]
sar edi, 2
cmp edi, 1
jne 0x4c94db
xor edx, edx
jmp 0x4c94e4
call fcn.004a84ac
xor edx, edx
div edi
mov eax, dword [ebx]
push 0x2d
mov ebx, dword [eax + edx*4]
lea edx, [esi + 0x823]
add ebx, 0x18
mov ecx, dword [ebx]
lea ecx, [ecx + 8]
call fcn.00481b80
jmp 0x4c9537
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
sar edi, 2
cmp edi, 1
jne 0x4c9511
xor edx, edx
jmp 0x4c951d
call fcn.004a84ac
mov ecx, dword [ebp + 8]
xor edx, edx
div edi
mov eax, dword [ecx]
push 0x10
mov ebx, dword [eax + edx*4]
lea edx, [esi + 0x823]
add ebx, 0x18
mov ecx, dword [ebx]
lea ecx, [ecx + 4]
call fcn.00481af0
mov ebx, dword [ebx]
add esp, 4
cmp dword [esi + 0x11bc], 2
je 0x4c954f
mov dword [esi + 0x11bc], 2
movzx eax, word [esi + 0x1188]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x44
mov word [ebx + 2], ax
call fcn.00487a02
mov ecx, dword [esi + 0x11e8]
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [eax], ecx
push 0xa8
call fcn.00487a02
mov edi, dword [0x50f3f8]
add esp, 4
mov ecx, dword [esi + 0x11e8]
mov dword [esi + 0x1268], eax
mov dword [eax], ecx
test edi, edi
jne 0x4c95b3
call fcn.00477be0
test eax, eax
jne 0x4c95b3
mov dword [0x50f3f8], 0x50f400
mov edi, 0x50f400
mov edx, dword [esi + 0x1268]
lea eax, [edi + 8]
mov dword [edx + 4], edi
lea ecx, [edx + 0x10]
mov dword [edx + 8], 0xc
mov dword [edx + 0x2c], 0x20
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0x14], eax
mov dword [eax], ecx
mov dword [edi + 0xc], ecx
mov dword [edx + 0x18], 0xffffffff
mov dword [edx + 0x30], 0
mov dword [edx + 0x40], 0
mov dword [edx + 0x8c], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x90], 0xffffffff
mov dword [edx + 0x3c], 0
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa0], 0
mov dword [edx + 0x9c], 0
mov dword [edx + 0x94], 0
mov edi, dword [esi + 0x1268]
mov eax, dword [edi + 0x90]
cmp eax, 0xffffffff
je 0x4c9677
push 4
lea ecx, [ebp + 8]
mov dword [ebp + 8], 1
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4c9677
call dword [0x4eb3b8]
test eax, eax
jne 0x4c967e
or dword [edi + 0x2c], 0x2000000
mov edx, dword [esi + 0x1268]
cmp dword [edx + 8], 0xc
jne 0x4c96b1
movzx eax, word [ebx]
cmp eax, 2
jne 0x4c9699
mov eax, 0x10
jmp 0x4c96a3
cmp eax, 0x17
jne 0x4c96b1
mov eax, 0x1c
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ebx
call fcn.00480d10
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4cdf60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea060
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x50b06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.xmrig::CommonConfig.0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0x1010000
mov dword [esi + 0x10], 1
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x3c
mov dword [esi + 0x24], 5
mov dword [esi + 0x28], 5
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
lea ecx, [ebp - 0x48]
call fcn.004cbe60
push eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 9
call fcn.0040bb60
push dword [ebp - 0x14]
call fcn.004a6274
push dword [ebp - 0x18]
call fcn.004a6274
push dword [ebp - 0x1c]
call fcn.004a6274
push dword [ebp - 0x20]
call fcn.004a6274
push dword [ebp - 0x24]
call fcn.004a6274
push dword [ebp - 0x28]
call fcn.004a6274
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00406070
mov dword [esi], vtable.xmrig::Config.0
mov eax, esi
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 1
mov word [esi + 0x6c], 1
mov byte [esi + 0x6e], 0
mov dword [esi + 0x70], 0x46
mov dword [esi + 0x74], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret