joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe0a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe0a131
push esi
call fcn.00e0d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00dfc080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe0a131
push 0
push ebp
call fcn.00dfc3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00dfc260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe0a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00dfc2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe0a121
push 0xe22918
push edi
call fcn.00e0b3f0
push eax
push ebx
push esi
call fcn.00e09f60
push 0xe228f8
push edi
call fcn.00e0b3f0
push eax
push ebx
push esi
call fcn.00e09f60
push 0xe228d8
push edi
call fcn.00e0b3f0
push eax
push ebx
push esi
call fcn.00e09f60
push 0xe228c0
push edi
call fcn.00e0b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e09f60
push 0xe228a0
push edi
call fcn.00e0b3f0
push eax
push ebx
push esi
call fcn.00e09f60
push 0xe22888
push edi
call fcn.00e0b3f0
push eax
push ebx
push esi
call fcn.00e09f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe0b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e0b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e0b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e0b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e0b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe0bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe0bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe1d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe0bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe0bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1002c27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002c81
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002c72
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1002c6e
cmp esi, eax
jae 0x1002c72
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1002c60
cmp esi, eax
jb 0x1002c76
xor eax, eax
jmp 0x1002c80
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1003d1e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x1003d39
push 0x80004005
call fcn.01002b61
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1003d3b
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1004327
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01003c9f
mov edi, eax
cmp edi, esi
je 0x1004389
lea ecx, [ebp - 0x208]
call fcn.01002d7a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011905
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10043a7
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.01004327
cmp eax, esi
jne 0x10043ef
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x1004391
lea ecx, [ebp - 0x208]
call fcn.01002d7a
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01002d7a
mov eax, esi
jmp 0x1004378
Function at 0x1005dd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x418
mov eax, 0x101589d
call fcn.01011994
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x418], eax
jne 0x1005e2a
call fcn.01003ba6
mov esi, eax
jmp 0x1005f07
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1005e43
call fcn.01003ba6
jmp 0x1005ef9
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x1005e39
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x1005e9f
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1005e85
lea ecx, [ebp - 0x414]
call fcn.0101260c
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.01004216
mov eax, esi
call fcn.01011a26
ret 0x10
push eax
lea ecx, [ebp - 0x414]
call fcn.01004a88
cmp dword [ebp - 0x414], esi
mov dword [ebp - 4], 1
jne 0x1005ec1
mov esi, 0x8007000e
jmp 0x1005efb
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1005e39
mov ecx, dword [ebp - 0x414]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x414]
lea ecx, [ebp - 0x424]
call fcn.01005aa3
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1005e8a
lea ecx, [ebp - 0x414]
call fcn.0101260c
jmp 0x1005e8a
Function at 0x10090d7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x10090f3
mov eax, 0x8000ffff
jmp 0x10091d6
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ecx
call fcn.01003b8d
cmp eax, edi
jl 0x10091d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x100912c
mov ecx, dword [ebp - 4]
call fcn.01002c0e
call fcn.01003ba6
jmp 0x10091d5
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [ebp - 8], eax
je 0x100919a
push edi
push edi
push eax
mov ecx, esi
call fcn.01008d0f
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1009161
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.010049da
jmp 0x10091d2
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
cmp ebx, edi
je 0x100919a
push edi
push edi
push ebx
mov ecx, esi
call fcn.01008d0f
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1009181
push ebx
jmp 0x100914d
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x1008db1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi], eax
jne 0x10091bb
call fcn.01003ba6
push 0x2710
mov ecx, esi
mov ebx, eax
call fcn.010049da
cmp eax, edi
jge 0x10091b7
cmp ebx, edi
jl 0x10091b7
mov ebx, eax
mov eax, ebx
jmp 0x10091d5
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10091d2
call fcn.01003ba6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100dad1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100db36
cmp dword [ebp - 0x114], 5
jae 0x100db32
cmp dword [ebp - 0x114], 4
jne 0x100db36
cmp dword [ebp - 0x110], 0x5a
jb 0x100db36
xor eax, eax
jmp 0x100db39
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01011905
leave
ret
Function at 0x100ee8f
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1015d6b
call fcn.01011921
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x1019010]
mov esi, 0x1019010
cmp eax, esi
je 0x100eec4
test byte [eax + 0x1c], 1
je 0x100eec4
push 0x1001ae4
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x1001a08
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.01006666
push edi
push edi
push 0x20106
push edi
push edi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push 0x80000001
call fcn.01002d98
mov dword [ebp - 0x14], eax
mov eax, dword [0x1019010]
cmp eax, esi
je 0x100ef1f
test byte [eax + 0x1c], 2
je 0x100ef1f
cmp byte [eax + 0x19], 4
jb 0x100ef1f
push dword [ebp - 0x14]
push 0x1001ae4
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
cmp dword [ebp - 0x14], edi
jne 0x100ef6b
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push 0x1001954
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x1019010]
cmp ecx, esi
je 0x100ef6b
test byte [ecx + 0x1c], 2
je 0x100ef6b
cmp byte [ecx + 0x19], 4
jb 0x100ef6b
push eax
push 0x1001ae4
push 0x65
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002935
mov eax, dword [ebp - 0x1c]
push edi
push edi
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x1019010]
cmp eax, esi
je 0x100efa2
test byte [eax + 0x1c], 1
je 0x100efa2
cmp byte [eax + 0x19], 5
jb 0x100efa2
push 0x1001ae4
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01002efe
lea ecx, [ebp - 0x10]
call fcn.01002d7a
xor eax, eax
call fcn.01011a0d
ret 0x10

Function at 0x1010e3d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01010d7e
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1010eb0
cmp dword [ebp - 0x94], 5
jb 0x1010ed1
jmp 0x1010ecd
cmp dword [ebp - 0x88], 1
jne 0x1010ed1
cmp dword [ebp - 0x94], 4
ja 0x1010ecd
jne 0x1010ed1
cmp dword [ebp - 0x90], 0
jbe 0x1010ed1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100243c
call fcn.01002bbe
test eax, eax
jge 0x1010ef2
mov byte [0x1019514], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01011905
leave
ret
Function at 0x10113fc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1019718], 0
push esi
jne 0x101136a
call fcn.01011261
test eax, eax
je 0x10113ad
mov eax, dword [0x1019718]
cmp eax, 1
jne 0x101138b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10113ad
pop esi
ret
push eax
call dword [0x1019720]
test eax, eax
jne 0x10113f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10113b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1019718]
call dword [0x1019720]
mov edi, eax
test edi, edi
je 0x10113d6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10113f2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1019718]
call dword [0x101971c]
add edi, 0x10
cmp edi, esi
jb 0x10113de
mov eax, edi
pop edi
pop esi
ret
jmp 0x1011357

Function at 0x1012000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1012013
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101200f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1012040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101207f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1012075
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1012081
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1012065
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1013c16
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x10160ef
call fcn.01011994
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.01012714
test ebx, ebx
je 0x1013d9f
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.01012a3c
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x1013d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1013d7f
cmp dword [ebp - 0xdc], 0x44
jbe 0x1013cca
push 0x80004005
call fcn.01002b61
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x1013cee
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.01012a60
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x1013d7f
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1013d7f
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.0100664a
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.0100664a
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.0100664a
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1013d7b
lea ecx, [ebp - 0xd8]
call fcn.0101260c
mov al, 1
jmp 0x1013da1
mov ecx, edi
call fcn.01012714
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1013d9f
lea ecx, [ebp - 0xd8]
call fcn.0101260c
xor al, al
call fcn.01011a26
ret 8
Function at 0x1013e38
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x1016144
call fcn.01011994
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [0x1019010]
mov esi, 0x1019010
cmp eax, esi
je 0x1013e79
test byte [eax + 0x1c], 1
je 0x1013e79
cmp byte [eax + 0x19], 5
jb 0x1013e79
push 0x10025e4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
mov eax, 0x7fff
push eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call fcn.01004b92
lea ecx, [ebp - 0x78]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
movzx ebx, al
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013ec0
test byte [eax + 0x1c], 2
je 0x1013ec0
cmp byte [eax + 0x19], 4
jb 0x1013ec0
push ebx
push 0x10025e4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
push 0xffffffffffffffff
mov ecx, edi
call fcn.01012944
lea ecx, [ebp - 0x70]
call fcn.01012afb
and dword [ebp - 4], 0
cmp ebx, 1
jne 0x1013f85
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013f07
test byte [eax + 0x1c], 2
je 0x1013f07
cmp byte [eax + 0x19], 4
jb 0x1013f07
push dword [edi]
push 0x10025e4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006f58
mov edi, dword [edi]
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.01013c16
movzx ebx, al
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013f44
test byte [eax + 0x1c], 2
je 0x1013f44
cmp byte [eax + 0x19], 4
jb 0x1013f44
push ebx
push 0x10025e4
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
mov eax, dword [0x1019010]
cmp ebx, 1
jne 0x1013f8a
lea ecx, [ebp - 0x70]
call fcn.01013dae
mov edi, dword [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0100664a
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013fad
test byte [eax + 0x1c], 2
je 0x1013f8a
cmp byte [eax + 0x19], 4
jb 0x1013f8a
push dword [edi]
push 0x10025e4
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006f58
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013fad
test byte [eax + 0x1c], 1
je 0x1013fad
cmp byte [eax + 0x19], 5
jb 0x1013fad
push ebx
push 0x10025e4
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
lea ecx, [ebp - 0x70]
call fcn.01012b3a
mov eax, ebx
call fcn.01011a26
ret 8
Function at 0x4085e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4a60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d0084]
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, edx
mov bl, cl
mov dword [ebp - 4], 0
mov esi, dword [0x4d0a10]
cmp esi, 0x4d0a10
je 0x40864d
test byte [esi + 0x1c], 2
je 0x40864d
cmp byte [esi + 0x19], 4
jb 0x40864d
push edi
movzx eax, bl
mov edx, 0x4bca90
push eax
push dword [esi + 0x14]
mov ecx, 0x77
push dword [esi + 0x10]
call fcn.00401990
add esp, 0x10
test bl, bl
je 0x408794
call fcn.00473ff0
movzx eax, bl
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov word [ebp - 0x12], di
mov eax, dword [eax + 0x18]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x40867e
call fcn.00473ff0
mov ebx, 0x2719
jmp 0x4086c3
or byte [eax + 4], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00473ff0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], esi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test edi, edi
jne 0x4086c9
xor ebx, ebx
call fcn.00473ff0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov eax, fcn.00412b40
test ebx, ebx
cmove eax, ecx
test eax, eax
je 0x40870a
mov eax, dword [0x4d0a10]
cmp eax, 0x4d0a10
je 0x40870a
test byte [eax + 0x1c], 2
je 0x40870a
cmp byte [eax + 0x19], 2
jb 0x40870a
push ebx
push dword [eax + 0x14]
mov edx, 0x4bca90
mov ecx, 0x78
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 4
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dl, byte [ecx + 4]
lea eax, [ebp - 0x14]
mov ecx, dword [ecx]
push eax
push 0x80
push 0xffff
call fcn.00419530
add esp, 0x14
cmp dword [ebp - 0x1c], 0
jne 0x408794
cmp dword [ebp - 0x24], 4
jne 0x4087e9
mov ecx, dword [0x4d0a10]
cmp ecx, 0x4d0a10
je 0x408794
test byte [ecx + 0x1c], 2
je 0x408794
cmp byte [ecx + 0x19], 5
jb 0x408794
movzx eax, word [ebp - 0x12]
mov esi, str.FALSE
cmp word [ebp - 0x14], 0
mov edx, 0x4bca90
push eax
mov eax, str.TRUE
cmove eax, esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x79
call fcn.00401f60
add esp, 0x10
mov dword [ebp - 4], 2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4087cd
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4087cd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x4087cd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
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.004785e6
mov esp, ebp
pop ebp
ret
push str.linger_socket_option_resize
lea ecx, [ebp - 0x20]
call fcn.00411ea0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411440
int3
Function at 0x40ccb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4d0084]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00473ff0
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x40ccdf
mov ebx, 0x2719
jmp 0x40cd17
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push edi
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00473ff0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], esi
mov ebx, eax
mov dword [esp + 0xc], ebx
test edi, edi
jne 0x40cd24
xor ebx, ebx
call fcn.00473ff0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x40cd3c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004785e6
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 0xc]
call fcn.0041b020
int3