joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41da00
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4bf100]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x41da29
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
push 2
push ecx
push ecx
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41db86
cmp dword [edi + 0x14], 7
jbe 0x41da4f
mov edi, dword [edi]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0x10030
push str.EasyAntiCheat_EOSSys
push str.EasyAntiCheat_EOSSys
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x41dae9
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41db7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x41db7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.StartService_failed_with__i.
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [esp + 0x14]
call fcn.004037b0
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x10]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41dbd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.CreateService_failed_with__i.
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x41db71
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x41db41
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41db37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dbea
mov eax, edx
push ecx
push eax
call fcn.00471b8b
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [esp + 0x14]
call fcn.004037b0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41dbd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenSCManager_failed_with__i.
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x41dbcb
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [esp + 0x14]
call fcn.004037b0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret 8
call fcn.00477334
int3
Function at 0x421ed0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4bf100]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x421ef9
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax], cx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ecx
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421f80
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareEasyAntiCheat_EOS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x421f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.RegDeleteKeyW_failed_with__i
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x422020
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], ebx
jmp 0x422014
cmp eax, 2
jne 0x421f9e
mov ebx, 3
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x422020
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x421ff2
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x421fe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42203d
mov eax, edx
push ecx
push eax
call fcn.00471b8b
add esp, 8
mov dword [esi + 0x10], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [esp + 0x14]
call fcn.004037b0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
int3
Function at 0x423ef0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4bf100]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, edx
xor bl, bl
push edi
mov edi, ecx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x423f17
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
test edi, edi
jne 0x423f49
push 0x12
push str.Invalid_parameters
mov ecx, esi
call fcn.004093c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x423fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x423fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.DeleteService_failed_with__i
push eax
call fcn.0041f5e0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004094d0
lea ecx, [esp + 0x10]
call fcn.004037b0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
Function at 0x424450
Capabilities:
Create directory
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
lea ebx, [esi + 0x14]
push edi
mov byte [ebp - 1], dl
mov edi, ecx
jbe 0x424476
mov eax, dword [esi]
lea ecx, [esi + 0x14]
mov dword [ebp - 0xc], ecx
jmp 0x424479
mov dword [ebp - 0xc], ebx
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 8]
push eax
push ecx
push 0x8000
push 0x4a1e60
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4244ea
mov edx, dword [ebp - 8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4244b0
sub ecx, dword [ebp - 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004093c0
push 0x4b41e8
mov ecx, esi
call fcn.0040be90
push str.EasyAntiCheat_EOS
mov ecx, esi
call fcn.0040be90
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [esi + 0x10], 0
je 0x424593
cmp byte [ebp - 1], 0
je 0x424569
cmp dword [ebx], 7
mov eax, esi
jbe 0x424503
mov eax, dword [esi]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0xc]
mov eax, esi
cmp dword [ecx], 7
jbe 0x42451b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x42452c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424569
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x424569
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x424550
mov eax, dword [esi]
mov dword [esi + 0x10], 0
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], ecx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
mov ecx, esi
call fcn.0040f680
sub edi, 0
je 0x424583
sub edi, 1
jne 0x42458f
push str.EasyAntiCheat_EOS.sys
jmp 0x424588
push str.EasyAntiCheat_EOS.exe
mov ecx, esi
call fcn.0040be90
cmp dword [esi + 0x10], 0
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e2c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x42e2f6
mov al, byte [esi]
push eax
call fcn.0043bc80
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x42e2d8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x437c30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x420]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x108], ecx
call fcn.00438100
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x437cea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x437cac
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.004250e0
push eax
mov eax, dword [ebp - 0x108]
push str.Send_failure:__s
push dword [eax]
call fcn.004378b0
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xd34], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471b48
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ecx + 0x44]
mov eax, dword [ebx + 0x540]
shl edi, 4
add edi, ebx
mov esi, dword [edi + 4]
sub esi, dword [edi + 8]
test byte [eax + 0x40], 3
je 0x4381d4
cmp dword [ebx + ecx*4 + 0x430], 0x437b40
jne 0x4381d4
cmp dword [edi], 0
je 0x438149
test esi, esi
je 0x4381d4
mov eax, dword [ebx + ecx*4 + 0x420]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], eax
call fcn.0044a0a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4381d4
test al, 1
je 0x4381d4
mov ecx, dword [edi]
test ecx, ecx
jne 0x4381ad
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
mov dword [edi + 4], eax
mov esi, dword [fcn.0047d4a0]
mov ecx, esi
push eax
call dword [0x4a1398]
call esi
mov esi, dword [edi + 4]
mov ecx, eax
add esp, 4
mov dword [edi], ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
test ecx, ecx
je 0x4381cd
mov eax, dword [edi + 8]
push 0
push esi
add eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4381d4
add dword [edi + 8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c0dc0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x438bb1
push 3
push 2
push eax
push 6
call fcn.0043a230
add esp, 0x10
test al, al
je 0x438ba5
mov dword [0x4c0dc0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x4c0dc0], 1
jmp 0x438bb6
cmp eax, 2
je 0x438bf6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x438bdd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x438bf6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x438e60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2f8], 3
jne 0x43908a
cmp byte [esi + 0x501], 0
push ebx
push edi
jne 0x43907f
cmp byte [esi + 0x518], 0
jne 0x43907f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x208]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], pe_nt_image_headers32
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x438f03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004250e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004378b0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x184]
mov dword [ebp - 0x20c], pe_nt_image_headers32
push 0
push eax
call fcn.00473b60
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x438f77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004250e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004378b0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
call fcn.004381e0
add esp, 0x10
test al, al
jne 0x438fe0
call fcn.0047e618
mov esi, dword [eax]
call fcn.0047e618
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004250e0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004378b0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [ebp - 0x20c]
lea eax, [ebp - 0x184]
push eax
call fcn.004381e0
add esp, 0x10
test al, al
jne 0x43907f
call fcn.0047e618
mov esi, dword [eax]
call fcn.0047e618
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004250e0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004378b0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
push esi
call fcn.00438a80
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00471b48
mov esp, ebp
pop ebp
ret
Function at 0x439b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xb0f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x439bad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00437990
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
push dword [esi + 0xaac]
mov dword [ebp - 0x10], 1
call fcn.00439e00
push dword [esi + 0xab0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00439e00
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x439c1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00437990
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00471b48
mov esp, ebp
pop ebp
ret

Function at 0x439c30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x108], 1
mov esi, dword [eax]
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x439c94
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004250e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00437990
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00471b48
mov esp, ebp
pop ebp
ret
Function at 0x43a090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x43a0ab
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x4a4f6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x4a4f7c
push edi
call fcn.0048518a
add esp, 8
test eax, eax
je 0x43a0fc
test ebx, ebx
je 0x43a0ec
push 8
push 0
push edi
mov ecx, ebx
call dword [0x4a1398]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x43a12b
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43a12b
push 0x800
push 0
push edi
mov ecx, ebx
call dword [0x4a1398]
call ebx
pop edi
mov ebx, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x43a216
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a147
sub ecx, esi
mov esi, dword [fcn.0047d4a0]
sar ecx, 1
lea eax, [ecx + edx]
mov ecx, esi
lea eax, [eax*2 + 2]
push eax
call dword [0x4a1398]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x43a1f7
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43a1f7
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a191
sub ecx, edx
sar ecx, 1
mov dword [esi + ecx*2], 0x5c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43a1b0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, esi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x43a1c5
test ebx, ebx
je 0x43a1ec
push 8
push 0
push esi
mov ecx, ebx
call dword [0x4a1398]
call ebx
mov ebx, eax
jmp 0x43a1f9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
jmp 0x43a1f9
xor ebx, ebx
push esi
mov esi, dword [fcn.0047cd20]
mov ecx, esi
call dword [0x4a1398]
call esi
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a3a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x43a3f9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43a3e6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43a3e0
shr eax, 8
cmp al, 2
je 0x43a3f9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00451bf0
test eax, eax
jne 0x43a45b
push str.iphlpapi.dll
call fcn.0043a090
add esp, 4
mov dword [0x4c0dc8], eax
test eax, eax
je 0x43a435
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4c0dc4]
test eax, eax
cmovne ecx, eax
mov dword [0x4c0dc4], ecx
push 3
push 2
push 0
push 6
call fcn.0043a230
add esp, 0x10
test al, al
setne byte [0x4c2838]
push 0x4c2840
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret

Function at 0x43c8a0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call fcn.00473b60
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43c96e
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43c950
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43c950
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43c950
cmp esi, dword [ebp - 0xc]
jb 0x43c950
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43c95e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x43c96e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43fe10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043fd70

Function at 0x442100
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x548], 2
jne 0x442118
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004420c0
mov al, 1
pop ebp
ret
Function at 0x4422b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4422db
cmp dword [esi + 0x80], 0
je 0x4422db
push 2
push 3
push esi
call fcn.0043c2b0
push dword [ebp + 0xc]
call fcn.00441c40
add esp, 0x10
jmp 0x4422ea
push dword [ebp + 0xc]
call fcn.00441c40
add esp, 4
test esi, esi
je 0x4422fe
cmp dword [esi + 0x80], 0
je 0x4422fe
push 3
push esi
call fcn.0043c300
add esp, 8
pop esi
pop ebp
ret