joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064fdd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100a00e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x44], 0
call fcn.100530b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10056da6
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push 0x101
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x10056df7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056ded
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10056ded
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
test esi, esi
je 0x10056e03
mov esi, dword [ebp + 0x14]
jmp 0x10056eb6
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.100530b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4c]
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x10056e63
cmp dword [ebp - 0x48], 4
jne 0x10056e63
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x44]
call esi
mov esi, dword [ebp - 0x50]
test eax, eax
je 0x10056e66
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10056ea2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056e98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10056e98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10056ed2
push ecx
mov dword [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret
Function at 0x10058050
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10059d40

Function at 0x100586e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005a460

Function at 0x10059e50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a00e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100530b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10059e78
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 8]
test eax, eax
sete bl
cmp edx, 8
jb 0x10059ec3
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10059eb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10059eb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
test bl, bl
pop ebx
je 0x10059ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10059ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10057750
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret
Function at 0x10059f10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006548d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100a00e8]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100530b0
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x10059f5f
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.100530b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x10059f74
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete bl
cmp edx, 8
jb 0x10059fb9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10059faf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a000
push edx
push ecx
call fcn.1005c099
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x1005a010
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a006
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test bl, bl
je 0x1005a039
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10057750
add esp, 4
jmp 0x1005a03b
xor eax, eax
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.1005c0a7
mov esp, ebp
pop ebp
ret

Function at 0x1005a170
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a00e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100530b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x1005a198
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 8]
mov esi, eax
cmp edx, 8
jb 0x1005a1de
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a1d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a1d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005c099
add esp, 8
cmp esi, 0xffffffff
pop esi
jne 0x1005a201
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10057750
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005c0a7
mov esp, ebp
pop ebp
ret
Function at 0x1005a220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005a252
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10057750
add esp, 4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005a460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005a492
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10057750
add esp, 4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x40507c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40508b
pop dword [ebp - 8]
mov eax, 0x901150d
sub eax, 0x8c0c482
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3d393
push 0
mov eax, 0x19f16eea
add eax, 0xe650e32e
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x7923e44a
add ecx, 0x86dc6102
xor edi, edi
add edi, eax
mov edx, 0x8dfe8680
add edx, 0x7244cd80
add edx, dword [ebp - 8]
mov esi, 0xc0b8f149
add esi, 0x701557cd
xor dword [ebp - 4], edi
mov ebx, dword [edx]
sub dword [ebp - 4], 0x371c9b28
xor ebx, esi
add dword [ebp - 4], 0x4e4811e2
mov dword [edi], ebx
xor dword [ebp - 4], 0xe323e75e
add edi, 0xff799ab4
add edi, 0x866550
add edx, 0xd35eb20d
add edx, 0x2ca14df7
loop 0x4050ec
add eax, 0x10803
xor ebx, ebx
add ebx, eax
add eax, 0x77b85c77
sub eax, 0x77b85c72
mov ecx, 0x44fffc1a
add ecx, 0xbb4003e6
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x406d80
Capabilities:
Check mutex on windows
Create directory
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1d3c
call fcn.00418e10
mov eax, dword [0x42b6dc]
xor eax, esp
mov dword [esp + 0x1d38], eax
mov al, byte [0x427efc]
movq xmm0, qword [str.75339222]
push ebx
push esi
push edi
push 0x37
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2d]
push 0
push eax
movq qword [esp + 0x2c], xmm0
call fcn.0040eab0
add esp, 0xc
lea eax, [esp + 0x61]
push 0x3f
push 0
push eax
mov byte [esp + 0x6c], 0
call fcn.0040eab0
add esp, 0xc
xorps xmm0, xmm0
push 0x400
push 0x42dfb0
mov byte [esp + 0x18], 0
movq qword [esp + 0x19], xmm0
mov dword [esp + 0x21], 0
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x406e3b
call fcn.00408b30
mov eax, 0x666666
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d38]
xor ecx, esp
call fcn.00409def
mov esp, ebp
pop ebp
ret 0x10
mov edx, str.Ahr0CdOVlZeUBgfSA2fIB3KUEJGUCNuV
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406e43
sub edx, ecx
push 0x40
push 0x42dfd0
mov ecx, str.Ahr0CdOVlZeUBgfSA2fIB3KUEJGUCNuV
call fcn.00404a90
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 8
mov dword [0x42dfc8], eax
push str.SamaelLovesMe
push 1
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0xb7
jne 0x406ed0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SamaelLovesMe
push 1
push 0
call edi
mov edi, eax
call ebx
cmp eax, 0xb7
jne 0x406ed0
push edi
call esi
mov ecx, dword [esp + 0x1d44]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00409def
mov esp, ebp
pop ebp
ret 0x10
mov ecx, str.FirewallGUI.exe
call fcn.00408000
test al, al
jne 0x406eb7
push str.SystemDrive
call fcn.0040bfc8
mov al, byte [eax]
add esp, 4
mov byte [str.X:.Trash_100], al
push 0
push str.X:.Trash_100
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
push str.X:.Trash_100
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
mov edx, str.0051
mov ecx, str.version
call fcn.00404750
mov ecx, str.ActivateDesktop.exe
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f28
sub ecx, edx
push ecx
mov edx, str.ActivateDesktop.exe
mov ecx, str.framework_exe
call fcn.00404750
add esp, 4
call fcn.00405c40
call fcn.00406110
push 0x104
lea edx, [esp + 0x43c]
mov ecx, str.miner_exe_name
jmp loc.004393e4
Function at 0x408c10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42b6dc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], 0
movq xmm0, qword [str.SELECT__FROM]
mov dword [ebp - 0x230], eax
mov eax, dword [0x428260]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x204], eax
mov ax, word [0x428264]
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x200], ax
mov al, byte [0x428266]
push 0x1f1
mov byte [ebp - 0x1fe], al
lea eax, [ebp - 0x1fd]
push 0
push eax
mov ebx, ecx
movq qword [ebp - 0x20c], xmm0
call fcn.0040eab0
push esi
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.0040b371
add esp, 0x18
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x408dc9
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x210]
push eax
push 0x422374
push 1
push 0
push 0x422444
mov dword [ebp - 0x210], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408dc3
mov dword [ebp - 0x214], 0
test edi, edi
jne 0x408d11
lea eax, [edi + 1]
push str.ROOTCIMV2
lea ecx, [ebp - 0x21c]
jmp 0x408d1d
mov eax, 2
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.00407d10
mov eax, dword [eax]
test eax, eax
je 0x408d32
mov edx, dword [eax]
jmp 0x408d34
xor edx, edx
mov eax, dword [ebp - 0x210]
lea esi, [ebp - 0x214]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x220]
test al, 2
je 0x408d7a
and eax, 0xfffffffd
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.00407d70
mov eax, dword [ebp - 0x220]
test al, 1
je 0x408d89
lea ecx, [ebp - 0x21c]
call fcn.00407d70
test esi, esi
js 0x408db7
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x408ddf
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409def
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x218], 0
call fcn.00407cc0
mov eax, dword [eax]
test eax, eax
je 0x408e05
mov esi, dword [eax]
jmp 0x408e07
xor esi, esi
push 0x428280
lea ecx, [ebp - 0x21c]
jmp section..htext
Function at 0x10002050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x10002063
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x1000205f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret

Function at 0x10002750
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005d540]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x100027a1
push 3
push 2
push eax
push 6
call fcn.10028b00
add esp, 0x10
test al, al
je 0x10002795
mov dword [0x1005d540], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1005d540], 1
jmp 0x100027a6
cmp eax, 2
je 0x100027e6
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 0x100027cd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x100027e6
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 0x100028b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100028f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10028040
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10023090
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10023090
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x100029f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1005c2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x10002bce
cmp byte [edi + 0x256], 0
push esi
jne 0x10002bc4
cmp byte [edi + 0x272], 0
jne 0x10002bc4
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10002a88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10028040
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10022fe0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.10036fb0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10002af1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10028040
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10022fe0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.100030d0
add esp, 0xc
test al, al
jne 0x10002b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10028040
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10022fe0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100030d0
add esp, 0xc
test al, al
jne 0x10002bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10028040
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10022fe0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
push edi
call fcn.10002670
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
Function at 0x10003460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005c2a0]
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 + 0x494], 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 0x100034bd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10023090
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036f9c
mov esp, ebp
pop ebp
ret
push dword [esi + 0x498]
mov dword [ebp - 0x10], 1
call fcn.10034e20
push dword [esi + 0x49c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10034e20
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 0x1000352d
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.10023090
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10036f9c
mov esp, ebp
pop ebp
ret