joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x419816
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
cmp ecx, eax
je 0x41983e
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x419837
mov eax, dword [eax]
push edx
push eax
call fcn.00403b80
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], 2
cmp dword [esi + 0x14], 8
jb 0x41985e
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
jmp 0x41986a
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
push 8
mov dword [eax], 0
call fcn.0046ce86
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebx + 4]
mov dword [eax], 0x419b80
push 0
push 0
push eax
push 0x40df80
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4198db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push dword [ebp - 4]
call fcn.0046cebb
add esp, 8
mov ecx, edi
push 0x33
push str.Code_signing_certificate_validation_timed_out__1_2_
call fcn.00403b80
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419909
push 0x33
push str.Code_signing_certificate_validation_timed_out__2_2_
mov ecx, edi
call fcn.00403b80
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, esi
je 0x419921
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x419918
mov esi, dword [esi]
push eax
push esi
mov ecx, edi
call fcn.00403b80
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b4b0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4bb0c8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41b4d7
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
push 2
push ecx
push ecx
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x41b5ee
cmp dword [edi + 0x14], 8
jb 0x41b4ff
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 ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x41b5a7
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41b5d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x41b5d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.StartService_EasyAntiCheat_EOSSys_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [esp + 0xc]
call fcn.00403640
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.CreateService_failed_with__i.
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [esp + 0xc]
call fcn.00403640
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.OpenSCManager_failed_with__i.
push ecx
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [esp + 0xc]
call fcn.00403640
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret 8
Function at 0x41f810
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4bb0c8]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41f839
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [esp + 8]
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 0x41f895
push dword [esp + 8]
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 0x41f89a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegDeleteKeyW_failed_with__i
lea ecx, [esp + 0x14]
push ecx
jmp 0x41f8c0
cmp eax, 2
jne 0x41f8af
mov eax, 3
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_failed_with__i
lea eax, [esp + 0x14]
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [esp + 0xc]
call fcn.00403640
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret

Function at 0x4215c0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4bb0c8]
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], 8
jb 0x4215e7
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
test edi, edi
jne 0x421619
push 0x12
push 0x4b2a34
mov ecx, esi
call fcn.00403b80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046ce78
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 0x42167d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x42167d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.DeleteService_failed_with__i
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [esp + 0x10]
call fcn.00403640
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046ce78
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.0046ce78
mov esp, ebp
pop ebp
ret
Function at 0x421af0
Capabilities:
Create directory
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov byte [ebp - 1], dl
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x421b0b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
mov word [eax], cx
lea eax, [ebp - 8]
push eax
push ecx
push 0x8000
push 0x49ad90
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x421b7e
mov edx, dword [ebp - 8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421b40
sub ecx, dword [ebp - 0xc]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403b80
push 1
push 0x4b1098
mov ecx, esi
call fcn.0040a1c0
push 0x11
push str.EasyAntiCheat_EOS
mov ecx, esi
call fcn.0040a1c0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebx], 0
je 0x421c35
cmp byte [ebp - 1], 0
je 0x421bf7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421b97
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421bad
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421bbe
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x421bf7
cmp dword [esi + 0x14], 8
jb 0x421be0
mov esi, dword [esi]
xor eax, eax
mov dword [ebx], 0
mov word [esi], ax
cmp dword [ebx], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
mov ecx, esi
call fcn.0040e190
sub edi, 0
je 0x421c24
sub edi, 1
jne 0x421c32
push 0x15
push str.EasyAntiCheat_EOS.sys
mov ecx, esi
call fcn.0040a1c0
cmp dword [ebx], edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
push str.EasyAntiCheat_EOS.exe
mov ecx, esi
call fcn.0040a1c0
cmp dword [ebx], 0
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b960
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 0x42b996
mov al, byte [esi]
push eax
call fcn.00439330
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 0x42b978
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x434ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x434f1f
push esi
push 1
push edi
call fcn.00427d90
mov esi, dword [edi + 0x608]
add esp, 8
mov ecx, esi
push dword [edi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x49a38c]
call esi
push 0
push edi
mov esi, eax
call fcn.00427d90
add esp, 0x1c
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x434f55
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x49da18
push 2
push eax
call fcn.004758f0
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004758f0
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4bb0c8]
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.004357b0
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 0x43539a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x43535c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00422780
push eax
mov eax, dword [ebp - 0x108]
push str.Send_failure:__s
push dword [eax]
call fcn.00434f60
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.0046ce78
mov esp, ebp
pop ebp
ret
Function at 0x4357b0
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 0x435884
cmp dword [ebx + ecx*4 + 0x430], 0x4351f0
jne 0x435884
cmp dword [edi], 0
je 0x4357f9
test esi, esi
je 0x435884
mov eax, dword [ebx + ecx*4 + 0x420]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], eax
call fcn.00447740
add esp, 0x14
cmp eax, 0xffffffff
je 0x435884
test al, 1
je 0x435884
mov ecx, dword [edi]
test ecx, ecx
jne 0x43585d
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
mov dword [edi + 4], eax
mov esi, dword [fcn.00476200]
mov ecx, esi
push eax
call dword [0x49a38c]
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 0x43587d
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 0x435884
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 0x436210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bcbc8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x436261
push 3
push 2
push eax
push 6
call fcn.004378e0
add esp, 0x10
test al, al
je 0x436255
mov dword [0x4bcbc8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x4bcbc8], 1
jmp 0x436266
cmp eax, 2
je 0x4362a6
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 0x43628d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4362a6
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 0x436510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2f8], 3
jne 0x43673a
cmp byte [esi + 0x501], 0
push ebx
push edi
jne 0x43672f
cmp byte [esi + 0x518], 0
jne 0x43672f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x208]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4365b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00422780
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00434f60
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x20c], 0x80
push 0
push eax
call fcn.0046ed70
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 0x436627
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00422780
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00434f60
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
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.00435890
add esp, 0x10
test al, al
jne 0x436690
call fcn.00477354
mov esi, dword [eax]
call fcn.00477354
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00422780
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00434f60
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
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.00435890
add esp, 0x10
test al, al
jne 0x43672f
call fcn.00477354
mov esi, dword [eax]
call fcn.00477354
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00422780
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00434f60
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
push esi
call fcn.00436130
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
Function at 0x437200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bb0c8]
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 0x43725d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00435040
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
push dword [esi + 0xaac]
mov dword [ebp - 0x10], 1
call fcn.004374b0
push dword [esi + 0xab0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004374b0
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 0x4372cd
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.00435040
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046ce78
mov esp, ebp
pop ebp
ret

Function at 0x4372e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4bb0c8]
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 0x437344
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00422780
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00435040
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
Function at 0x437740
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 0x43775b
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x49de9c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x49deac
push edi
call fcn.0047db24
add esp, 8
test eax, eax
je 0x4377ac
test ebx, ebx
je 0x43779c
push 8
push 0
push edi
mov ecx, ebx
call dword [0x49a38c]
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 0x4377db
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4377db
push 0x800
push 0
push edi
mov ecx, ebx
call dword [0x49a38c]
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 0x4378c6
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4377f7
sub ecx, esi
mov esi, dword [fcn.00476200]
sar ecx, 1
lea eax, [ecx + edx]
mov ecx, esi
lea eax, [eax*2 + 2]
push eax
call dword [0x49a38c]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x4378a7
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4378a7
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437841
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 0x437860
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 0x437875
test ebx, ebx
je 0x43789c
push 8
push 0
push esi
mov ecx, ebx
call dword [0x49a38c]
call ebx
mov ebx, eax
jmp 0x4378a9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
jmp 0x4378a9
xor ebx, ebx
push esi
mov esi, dword [fcn.00475b60]
mov ecx, esi
call dword [0x49a38c]
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 0x437a50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x437aa9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x437a96
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x437a90
shr eax, 8
cmp al, 2
je 0x437aa9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.0044f280
test eax, eax
jne 0x437b0b
push str.iphlpapi.dll
call fcn.00437740
add esp, 4
mov dword [0x4bcbd0], eax
test eax, eax
je 0x437ae5
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4bcbcc]
test eax, eax
cmovne ecx, eax
mov dword [0x4bcbcc], ecx
push 3
push 2
push 0
push 6
call fcn.004378e0
add esp, 0x10
test al, al
setne byte [0x4be600]
push 0x4be608
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret

Function at 0x439f40
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.0046ed70
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 0x43a00e
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 0x439ff0
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 0x439ff0
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 0x439ff0
cmp esi, dword [ebp - 0xc]
jb 0x439ff0
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 0x439ffe
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x43a00e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43d4b0
Capabilities:
Query environment variable

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

Function at 0x43f7a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x548], 2
jne 0x43f7b8
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0043f760
mov al, 1
pop ebp
ret