joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10162cc4], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x10162cd4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10026c70
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x10162cd4], 0
call fcn.10001a30
mov ecx, dword [0x10162cd0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10026c70
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x10162cd0], 0
mov dword [0x10162cc4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10162cc8], 0
je 0x10002679
mov eax, dword [0x10162cc8]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10026fe5
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10026c70
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10162cc8], eax
mov dword [0x10162ccc], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10162cd0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10162cd0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100036e0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10003706
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10003711
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000371c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10003727
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10003732
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1000373d
bts eax, 1
test cl, 2
je 0x10003746
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1000381f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10003810
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x100036f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003850
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100571b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1004bab8
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.1002c9a4
add esp, 0xc
test eax, eax
je 0x100038a7
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax]
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1002cbfe
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov dword [ebp - 0x410], edi
mov edx, edi
test edi, edi
je 0x10003902
mov edi, dword [ebp - 0x40c]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x100038e6
mov edi, dword [ebp - 0x410]
cmp edi, 0x400
je 0x100038b0
push dword [ebp - 0x408]
call fcn.1002cd24
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.10026c75
mov esp, ebp
pop ebp
ret 4

Function at 0x10003930
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004bac0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002c9eb
add esp, 0xc
test eax, eax
je 0x10003969
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002cda4
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10003995
call fcn.1002cd24
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002cbfe
add esp, 0x10
test eax, eax
je 0x100039ef
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x100039d7
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x100039b6
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002cbfe
add esp, 0x10
test eax, eax
jne 0x100039b0
pop esi
push ebx
call fcn.1002cdaf
push dword [ebp + 0xc]
call fcn.1002cd24
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003a10
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004bab8
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002c9a4
add esp, 0xc
test eax, eax
je 0x10003a49
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002cda4
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10003a75
call fcn.1002cd24
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002cbfe
add esp, 0x10
test eax, eax
je 0x10003acf
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10003ab7
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10003a96
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002cbfe
add esp, 0x10
test eax, eax
jne 0x10003a90
pop esi
push ebx
call fcn.1002cdaf
push dword [ebp + 0xc]
call fcn.1002cd24
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003b50
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100571b8]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10003b93
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10057b74], eax
cmp eax, 0xffffffff
je 0x10003b7d
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10057b78], eax
test eax, eax
je 0x10003b7d
mov ecx, dword [esp + 0x194]
mov al, 1
xor ecx, esp
mov dword [0x10157b84], 0x10004530
call fcn.10026c75
mov esp, ebp
pop ebp
ret 4
Function at 0x10003be0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x100571b8]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [0x10057b74], 0xffffffff
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x10003c31
mov ecx, 1
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov edi, 2
mov word [esp + 0x10], di
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10003c7b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003c7b
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.10029c20
add esp, 0xc
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [0x10057b74]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10003cdb
call esi
cmp eax, 0x2733
je 0x10003cdb
call esi
mov ecx, edi
push eax
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0x10
mov ecx, 0x10057b70
call fcn.10003d70
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [0x10057b78]
push dword [0x10057b74]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003cfd
call esi
mov ecx, 3
jmp 0x10003ca6
push 0x80000
push 0
push 0x10057b7c
call fcn.1002a1a0
add esp, 0xc
mov dword [0x100d7b7c], 0
push 0x80000
push 0
push 0x100d7b80
call fcn.1002a1a0
add esp, 0xc
mov dword [0x10157b80], 0
push 0x10163c20
push ecx
push 0x10057b70
push 0x10004230
call fcn.10020e30
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x10157ba4], eax
xor ecx, esp
mov byte [0x10157ba8], 1
mov al, 1
call fcn.10026c75
mov esp, ebp
pop ebp
ret 8

Function at 0x10003d70
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10003daa
push 0
mov dword [0x10163c20], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10003dc0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10003dd5
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret
Function at 0x10003de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
push 0
mov eax, 0x80000
mov ecx, dword [esi + 0x8000c]
sub eax, ecx
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10003e35
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10003f33
call edi
mov ecx, 4
jmp 0x10003f79
add dword [esi + 0x8000c], eax
cmp dword [esi + 0x8000c], 4
jl 0x10003f33
xor ecx, ecx
lea edi, [esi + 0xc]
lea eax, [edi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10003e66
movzx ebx, byte [ecx + esi + 0xd]
mov dl, al
mov al, byte [ecx + esi + 0xf]
jmp 0x10003e87
cmp al, 0xc2
jne 0x10003f6f
mov dl, al
movzx eax, byte [ecx + esi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + esi + 0xe]
or ebx, eax
mov al, byte [ecx + esi + 0x10]
cmp ebx, 4
jl 0x10003f3c
cmp ebx, 0x80000
jg 0x10003f3c
cmp ebx, dword [esi + 0x8000c]
jg 0x10003f0a
lea edi, [ecx + esi]
cmp dl, 0xc1
jne 0x10003ec2
movzx eax, byte [ecx + esi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [edi + 0xf]
call fcn.1001f4a0
mov al, byte [edi + 0xf]
jmp 0x10003ed6
movzx eax, byte [ecx + esi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.1001f4a0
mov al, byte [edi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [esi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [esi + 0x8000c], ebx
add ecx, ebx
cmp dword [esi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x10003f33
jmp 0x10003e4a
test ecx, ecx
jle 0x10003f33
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10003f33
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x10003f33
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push edi
call fcn.10028b70
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 6
push eax
movzx eax, dl
push ebx
push eax
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0x18
mov ecx, esi
call fcn.10003d70
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + esi + 0xc]
mov ecx, 5
push eax
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0x10
mov ecx, esi
call fcn.10003d70
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003fa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8000c
call fcn.10027dc0
mov eax, dword [0x100571b8]
xor eax, esp
mov dword [esp + 0x80008], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10157b8c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x10057b74]
cmp ebx, 0xffffffff
je 0x10004090
cmp byte [0x10157ba8], 0
je 0x10004090
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push esi
push edi
push eax
call fcn.10029c20
mov al, byte [esp + 0x1c]
add esp, 0xc
cmp al, 0xc1
jne 0x10004012
push dword [esp + 0x12]
lea edx, [esi - 3]
lea ecx, [esp + 0x17]
jmp 0x1000402e
cmp al, 0xc3
jne 0x10004023
push dword [esp + 0x15]
lea edx, [esi - 6]
lea ecx, [esp + 0x1a]
jmp 0x1000402e
push dword [esp + 0x13]
lea edx, [esi - 4]
lea ecx, [esp + 0x18]
call fcn.1001f540
mov ecx, dword [0x10157b80]
add esp, 4
test ecx, ecx
jle 0x100040f2
lea eax, [ecx + esi]
push esi
cmp eax, 0x80000
jle 0x100040b4
push ecx
push str.Size1___d_2___d
push 0
push 0x10157d08
call fcn.10015b60
mov eax, dword [0x10157b80]
add esp, 0x14
add eax, esi
mov ecx, 7
push eax
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0x10
mov ecx, 0x10057b70
call fcn.10003d70
push 0x10157b8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80008]
xor ecx, esp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x14]
push eax
lea eax, [ecx + 0x100d7b80]
push eax
call fcn.10029c20
add esp, 0xc
add dword [0x10157b80], esi
push 0x10157b8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x80014]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10026c75
mov esp, ebp
pop ebp
ret 8
xor edi, edi
test esi, esi
jle 0x100040ce
push 0
push esi
lea eax, [esp + 0x18]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000411e
sub esi, eax
add edi, eax
test esi, esi
jle 0x100040ce
mov ebx, dword [0x10057b74]
jmp 0x100040f8
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10004153
mov ecx, dword [0x10157b80]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10004147
mov ecx, 8
jmp 0x10004070
lea eax, [esp + 0x10]
push esi
add eax, edi
jmp 0x100040b8
call ebx
mov ecx, 9
jmp 0x10004070
Function at 0x10004160
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10001c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x100041b2
lea eax, [esi + 0x80010]
push 0
push dword [esi + 0x100010]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100041bf
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x10004182
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100041f7
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.10028b70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, 0xa
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
add esp, 0x10
mov ecx, esi
call fcn.10003d70
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x10004f30
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x100571b8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10163730], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jne 0x10005189
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10163730], eax
mov word [ebp - 0x33c], 0x85c1
call fcn.1002cdb4
and eax, 0x800000ff
jns 0x10004f81
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x10057b74], 0xffffffff
mov byte [ebp - 0x33a], al
mov byte [ebp - 0x339], 3
mov byte [ebp - 0x338], bl
je 0x1000517e
cmp byte [0x10157ba8], 0
je 0x1000517e
mov word [ebp - 0x2b4], 0x9bc1
call fcn.1002cdb4
and eax, 0x800000ff
jns 0x10004fca
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1016372c]
mov byte [ebp - 0x2b2], al
mov byte [ebp - 0x2b1], 3
mov byte [ebp - 0x2b0], bl
test ecx, ecx
jne 0x10005001
xorps xmm0, xmm0
mov word [ebp - 0x2a7], cx
movq qword [ebp - 0x2af], xmm0
mov byte [ebp - 0x2a5], cl
jmp 0x10005021
movq xmm0, qword [ecx]
movq qword [ebp - 0x2af], xmm0
mov ax, word [ecx + 8]
mov word [ebp - 0x2a7], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x2a5], al
mov ecx, dword [0x10163728]
test ecx, ecx
je 0x10005053
mov ecx, dword [ecx]
test ecx, ecx
je 0x10005053
movq xmm0, qword [ecx]
movq qword [ebp - 0x2a4], xmm0
mov ax, word [ecx + 8]
mov word [ebp - 0x29c], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x29a], al
jmp 0x1000506e
xorps xmm0, xmm0
mov word [ebp - 0x29c], 0
movq qword [ebp - 0x2a4], xmm0
mov byte [ebp - 0x29a], 0
test esi, esi
jne 0x10005086
push 0x40
lea eax, [ebp - 0x299]
push esi
push eax
call fcn.1002a1a0
add esp, 0xc
jmp 0x100050b1
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x299], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x289], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x279], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x269], xmm0
push 0x40
lea eax, [ebp - 0x259]
push 0
push eax
call fcn.1002a1a0
add esp, 0xc
test edi, edi
je 0x1000511b
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000511b
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10005114
lea ecx, [ebp - 0x214]
call fcn.1001f440
push eax
lea eax, [ebp - 0x259]
push 0x1004ef54
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x259]
mov ecx, 0x20
push eax
lea eax, [ebp - 0x299]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2af]
push eax
movzx eax, byte [ebp - 0x2b0]
push eax
call fcn.10020c10
push eax
push 0
push 0x10157d08
call fcn.10015b60
movzx eax, byte [ebp - 0x2b3]
add esp, 0x20
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.10003fa0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10026c75
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x33c]
call fcn.10004cd0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026c75
mov esp, ebp
pop ebp
ret
Function at 0x10005e70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005f33
push ebx
mov bl, byte [0x101636da]
mov bh, byte [0x101636d9]
cmp edx, 0x20
jb 0x10005f13
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005ea3
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm3, xmmword [0x10051280]
mov edi, edx
sub edi, ecx
movaps xmm2, xmm3
movsx ecx, bl
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bh
pshufd xmm1, xmm0, 0
paddb xmm2, xmm1
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm4, xmm0, 0
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm2
psubb xmm0, xmm4
paddb xmm0, xmm3
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm2
psubb xmm0, xmm4
paddb xmm0, xmm3
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005ee0
pop edi
cmp eax, edx
jge 0x10005f32
add bl, 0xf
nop word [eax + eax]
mov cl, byte [eax + esi]
xor cl, bl
sub cl, bh
add cl, 0xf
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005f20
pop ebx
pop esi
ret

Function at 0x10005f40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005ff6
push ebx
mov bh, byte [0x101636d9]
mov bl, byte [0x101636da]
cmp edx, 0x20
jb 0x10005fdc
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005f73
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10051280]
mov edi, edx
sub edi, ecx
movsx ecx, bh
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bl
pshufd xmm2, xmm0, 0
psubb xmm2, xmm1
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
paddb xmm1, xmm0
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005fb1
pop edi
cmp eax, edx
jge 0x10005ff5
add bl, 0xf
mov cl, byte [eax + esi]
sub cl, 0xf
add cl, bh
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005fe3
pop ebx
pop esi
ret