joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421760
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
cmp dword [0x46d950], ebx
je 0x42192b
push 0x46d954
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x46d94c]
jmp 0x4217a3
mov esi, dword [ebp - 0x28]
cmp dword [0x46d950], 0
je 0x42190f
test edi, edi
jne 0x4217b8
mov edi, ebx
jmp 0x4217c3
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ebx
mov edi, eax
cmove edi, ecx
test edi, edi
setne al
test al, al
je 0x42190f
mov eax, dword [ebp - 0x28]
mov esi, dword [edi + 8]
test eax, eax
je 0x421809
mov ecx, eax
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x421800
test dl, dl
je 0x4217fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x421800
add eax, 2
add ecx, 2
test dl, dl
jne 0x4217e0
xor eax, eax
jmp 0x421805
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4217a0
cmp dword [esi + 0x50], 0
je 0x42182d
push 0
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x54]
mov ebx, eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4218c5
mov eax, dword [esi + 0x44]
push esi
push 0
push dword [esi + 0x40]
mov dword [esi + 0xa4], 1
call eax
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4218c2
cmp dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
je 0x421871
nop
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x98], 0
jne 0x421860
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4218c2
movaps xmm0, xmmword [0x468350]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x30]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x79726f
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call fcn.00422430
test eax, eax
je 0x4218c2
push 0xc000
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0xffffffffffffffff
call eax
mov ebx, dword [ebp - 0x24]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x4218df
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x421901
mov ebx, dword [0x46d94c]
jmp 0x4217a3
mov edx, edi
mov ecx, 0x46d94c
call fcn.0042fdc0
jmp 0x421912
mov ebx, dword [ebp - 0x24]
test esi, esi
jne 0x421920
mov ecx, 0x46d94c
call fcn.0042fe40
push 0x46d954
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x421940
Capabilities:
Create pipe
Terminate process
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x488
mov eax, dword [0x46c004]
xor eax, esp
mov dword [esp + 0x484], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoCreateGuid]
movaps xmm0, xmmword [esp + 0x30]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x34]
movaps xmmword [esp + 0x34], xmm0
push eax
call fcn.00422ac0
lea eax, [esp + 0x54]
push eax
push str..pipe_S
lea eax, [esp + 0x288]
push 0x208
push eax
call fcn.00401730
add esp, 0x10
lea eax, [esp + 0x40]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 0x927c0
push edi
push edi
push 1
push 0
push 0x80002
lea eax, [esp + 0x29c]
mov dword [esp + 0x48], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x421b22
mov ecx, dword [esp + 0x10]
mov eax, 0x4642b8
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [esp + 0x58]
push eax
push 0x4642d8
push 4
push 0x4641ec
push str._s__i__s__S__s
lea eax, [esp + 0x90]
push 0x104
push eax
call fcn.00401730
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x98]
add esp, 0x20
cmp dword [esp + 0x20], 0
push esi
je 0x421a7d
call fcn.00432a00
jmp 0x421a82
call fcn.00432c40
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x421afc
xor edi, edi
lea esi, [edi + 0x64]
test edi, edi
jne 0x421afc
push edi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x64
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x421a92
test edi, edi
jne 0x421afc
mov esi, dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0xc]
mov dword [esi], 0
xor esi, esi
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x48c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x422290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4222ee
mov eax, dword fs:[0x30]
lea edx, [ebp - 0x18]
movaps xmm0, xmmword [0x468350]
mov dword [ebp - 0x20], ecx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x79726f
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call fcn.00422430
test eax, eax
je 0x4222ee
push 0xc000
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0xffffffffffffffff
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret

Function at 0x422300
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
mov edx, ecx
push edi
xor ecx, ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x42240d
test edx, edx
je 0x42240d
mov eax, dword [edi + 0x3c]
push ebx
mov ebx, dword [eax + edi + 0x78]
test ebx, ebx
je 0x42240c
mov eax, dword [eax + edi + 0x7c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42240c
lea eax, [ebx + edi]
test eax, eax
je 0x42240c
mov edx, dword [eax + 0x1c]
push esi
mov esi, dword [eax + 0x20]
add edx, edi
add esi, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], esi
mov esi, dword [eax + 0x24]
add esi, edi
mov dword [ebp - 0xc], esi
test edx, edx
je 0x42240b
cmp dword [ebp - 8], ecx
je 0x42240b
test esi, esi
je 0x42240b
mov esi, dword [ebp - 4]
test esi, esi
jns 0x4223a3
movzx eax, si
pop esi
pop ebx
mov ecx, dword [edx + eax*4]
add ecx, edi
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42240b
nop
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add eax, edi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4223e0
test dl, dl
je 0x4223dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4223e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4223c0
xor eax, eax
jmp 0x4223e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422403
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov ecx, dword [edx + eax*4]
cmp ecx, ebx
jb 0x422414
mov eax, dword [ebp - 0x14]
add eax, ebx
cmp ecx, eax
ja 0x422414
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x4223b0
xor ecx, ecx
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + esi*2]
pop esi
pop ebx
mov ecx, dword [edx + eax*4]
add ecx, edi
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4224f0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
mov dword [ebp - 0x14], 0
mov eax, edx
mov dword [ebp - 0x10], 0x4c72644c
push esi
mov dword [ebp - 0xc], 0x4464616f
mov word [ebp - 8], 0x6c6c
mov byte [ebp - 6], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422527
sub eax, esi
mov ecx, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422541
sub ecx, esi
mov dword [ebp - 0x18], edx
sar ecx, 1
lea edx, [ebp - 0x10]
lea eax, [ecx*2 + 2]
mov word [ebp - 0x1a], ax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call fcn.00422430
test eax, eax
je 0x4225a4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
call eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop esi
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x4225c0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x422708
movaps xmm0, xmmword [0x468340]
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x6d654d6c
lea edx, [ebp - 0x1c]
mov dword [ebp - 8], 0x79726f
movzx eax, word [ebx + 0x14]
add eax, 0x18
mov dword [ebp - 0x30], ebx
add eax, ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x30]
push esi
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call fcn.00422430
test eax, eax
je 0x422655
push 0x40
push 0x3000
lea ecx, [ebp - 0x20]
push ecx
push esi
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
cmovns esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4226f5
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x422679
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
test edx, edx
je 0x422692
mov ecx, esi
sub edi, esi
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x422684
mov eax, dword [ebp - 0x30]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x4226f5
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
add edi, 8
mov edx, dword [edi]
cmp edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
cmova edx, dword [edi + 8]
mov eax, dword [edi + 4]
add esi, dword [ebp - 0x2c]
add eax, ecx
test edx, edx
je 0x4226d3
sub esi, eax
mov cl, byte [esi + eax]
lea eax, [eax + 1]
mov byte [eax - 1], cl
sub edx, 1
jne 0x4226c2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jb 0x4226a8
pop esi
pop ebx
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0043de43
mov esp, ebp
pop ebp
ret

Function at 0x422940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x408]
call fcn.00423140
xor edx, edx
mov dword [ebp - 0x408], edx
test esi, esi
je 0x422996
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ebp + ecx*4 - 0x404]
xor edx, 0xd202ef8d
mov dword [ebp - 0x408], edx
sub esi, 1
jne 0x422970
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x422f30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov byte [ebp - 1], 1
mov edi, ecx
mov eax, 2
mov word [ebx], ax
movzx eax, word [edi + 0x100]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, edi
mov word [ebx + 2], ax
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x422f60
sub esi, ecx
add esi, 0xffffffff
js 0x422f8c
nop
mov al, byte [esi + edi]
cmp al, 0x2e
je 0x422f87
movsx eax, al
push eax
call fcn.0044494d
add esp, 4
test eax, eax
jne 0x422fa0
sub esi, 1
jns 0x422f70
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebx + 4], eax
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x422fd0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x422f96
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
pop edi
mov dword [ebx + 4], eax
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423140
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
lea edi, [ecx + 4]
mov eax, esi
mov edx, 8
nop
test al, 1
je 0x42315d
shr eax, 1
xor eax, 0xedb88320
jmp 0x42315f
shr eax, 1
sub edx, 1
jne 0x423150
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, 0x100
jb 0x423147
pop edi
mov dword [ecx], edx
mov eax, ecx
pop esi
ret

Function at 0x423280
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40000
mov esi, ecx
call fcn.00444c5f
mov edi, eax
add esp, 4
mov dword [ebp - 0x114], edi
test edi, edi
je 0x42336e
push ebx
mov bl, 1
nop word [eax + eax]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x42334a
mov eax, dword [esi + 0x10]
push 0
push 0x40000
push edi
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jle 0x42333b
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [ebp - 0x114]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x423354
mov edi, dword [ebp - 0x114]
cmp eax, 0x2733
je 0x423354
jmp 0x423352
jns 0x423354
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor bl, bl
test bl, bl
jne 0x4232c0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
push edi
call fcn.00444a30
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x423380
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x111], 1
mov dword [ebp - 0x118], edi
mov esi, dword [edi + 0x10]
xor ebx, ebx
add esi, 0x10
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], ebx
je 0x42340d
lea eax, [ebp - 0x128]
push eax
lea ecx, [esi + 0x1c]
call fcn.00423fa0
mov ebx, dword [eax]
test ebx, ebx
je 0x4233db
mov ebx, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, edx
mov eax, dword [ebx + 8]
and edx, 3
mov edi, dword [ebp - 0x118]
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
mov ebx, dword [eax + edx*4]
add dword [esi + 0x2c], 0xffffffff
jne 0x42340a
mov dword [esi + 0x28], 0
jmp 0x42340d
inc dword [esi + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x423523
xor esi, esi
cmp dword [ebx + 4], esi
jbe 0x4234f5
nop word [eax + eax]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x110], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 1
push eax
push 0
push 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4234db
mov eax, dword [edi + 0x10]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
sub eax, esi
push eax
mov eax, dword [ebx]
add eax, esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [ebp - 0x11c], edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jle 0x4234cc
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebx]
push dword [ebp - 0x11c]
add edx, esi
mov ecx, dword [ecx + 0x10]
push edx
mov edi, dword [ecx]
call dword [edi + 8]
add esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
jmp 0x4234dd
cmp eax, 0x2733
jne 0x4234ee
mov edi, dword [ebp - 0x118]
jmp 0x4234dd
js 0x4234e8
cmp esi, dword [ebx + 4]
jb 0x423430
jmp 0x4234f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [ebp - 0x111], 0
mov eax, dword [ebx]
test eax, eax
je 0x423504
push eax
call fcn.00444a30
add esp, 4
push 8
push ebx
call fcn.0043e2b6
add esp, 8
cmp byte [ebp - 0x111], 0
je 0x423531
mov edi, dword [ebp - 0x118]
jmp 0x4233a5
mov eax, dword [edi + 0x10]
push 1
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de43
mov esp, ebp
pop ebp
ret
Function at 0x423570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45823b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [esi], vtable.GraceTunnelIO.0
mov dword [esi + 4], eax
call fcn.004236b0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0x14
mov dword [esi + 0x40], eax
call fcn.0043e283
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x14
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov byte [eax + 4], 1
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax], vtable.GraceTunnelReadThread.0
mov dword [eax + 0x10], esi
mov dword [esi + 0xc], eax
call fcn.0043e283
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
add esp, 8
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov byte [eax + 4], 1
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax], vtable.GraceTunnelWriteThread.0
mov dword [eax + 0x10], esi
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
push dword [esi + 4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de43
mov esp, ebp
pop ebp
ret 8
Function at 0x423a90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458307
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46c004]
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 edi, ecx
mov dword [ebp - 0x24], edi
push 6
mov dword [ebp - 0x28], edi
call fcn.00424060
push 6
mov dword [ebp - 4], 0
push 1
push 2
mov dword [edi], vtable.GraceTunnelClient.0
mov dword [edi + 0x4c], 0x401e90
mov dword [edi + 0x50], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x423b83
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
mov eax, 2
movq qword [ebp - 0x1e], xmm0
mov word [ebp - 0x12], 0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x423b7c
push 0x48
call fcn.0043e283
mov esi, eax
mov dword [ebp - 0x24], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 1
call fcn.00440480
add esp, 0x10
mov ecx, esi
push dword [ebp + 0x10]
push ebx
call fcn.00423570
mov dword [esi], vtable.GraceTunnelClientIO.0
mov dword [esi + 0x44], edi
mov dword [edi + 0x50], esi
jmp 0x423b83
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
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.0043de43
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423c50
Capabilities:
Create thread

Disassembly:
mov ecx, dword [ecx + 0x50]
test ecx, ecx
jne fcn.00423990
ret