joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x55a9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x546002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00549dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x546002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005416e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0054a20b
push 0x10
call fcn.0054a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x545fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005361c0
jmp 0x545fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00545b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x545ff0
mov ecx, edi
call fcn.005362c0
push edi
call fcn.0054a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x546021
inc ebx
cmp ebx, 0x20
jb 0x545f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x547250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b808
push 0x54b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x547329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x547329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0054a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x547329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x547329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x54732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00547351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x547d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x547d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x547d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x547d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x547d94
push eax
push esi
call fcn.0054a20b
add esp, 8
pop esi
ret 0x10

Function at 0x547da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x547e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x547e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x560320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00549dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x547dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x547e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x547ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x547eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x560320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00549dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x547eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x547e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x548000
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 0x548131
push esi
call fcn.0054b145
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.0053a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x548131
push 0
push ebp
call fcn.0053a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0053a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x54808b
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.0053a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x548121
push 0x560918
push edi
call fcn.005493f0
push eax
push ebx
push esi
call fcn.00547f60
push 0x5608f8
push edi
call fcn.005493f0
push eax
push ebx
push esi
call fcn.00547f60
push 0x5608d8
push edi
call fcn.005493f0
push eax
push ebx
push esi
call fcn.00547f60
push 0x5608c0
push edi
call fcn.005493f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00547f60
push 0x5608a0
push edi
call fcn.005493f0
push eax
push ebx
push esi
call fcn.00547f60
push 0x560888
push edi
call fcn.005493f0
push eax
push ebx
push esi
call fcn.00547f60
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 0x5491b0
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.00549140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00549140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00549140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00549140
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 0x549bfa
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 0x549c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x55b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x549c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x549c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x440d8f
Capabilities:
Encode data using xor

Disassembly:
sub al, al
pushal
push 0x12daacbd
cmp dh, bl
repne scasb al, byte es:[edi]
push edi
jmp 0x440274
Function at 0x40049a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov al, byte [0x40a0ab]
push ebx
push esi
movsx eax, al
push edi
call fcn.00408ef0
xor esi, esi
mov ebx, esp
xor edi, edi
mov dword [ebp - 8], 0x50
mov eax, dword [ebp - 8]
cmp edi, eax
jae 0x4004d3
sub eax, edi
call fcn.00408ef0
mov esi, esp
mov eax, ebx
sub eax, esi
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 2
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0x80000005
je 0x4004bd
xor edi, edi
cmp eax, edi
jl 0x40059f
xor ebx, ebx
inc ebx
cmp dword [esi + 4], ebx
jne 0x40059f
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x40059f
test bl, al
jne 0x40059f
lea eax, [esi + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 8]
cmp word [ecx + eax - 2], di
jne 0x40059f
mov esi, dword [sym.imp.ntdll.dll_RtlIpv4StringToAddressW]
jmp 0x40058b
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x40057b
mov ecx, dword [ebp + 8]
jmp 0x40055a
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jl 0x400560
jg 0x400554
mov edx, dword [ecx]
cmp edx, dword [ebp + 0x10]
jb 0x400560
add ecx, 8
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x400543
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ecx
mov edi, ebx
mov eax, dword [ebp - 4]
jmp 0x400585
inc eax
inc eax
mov dword [ebp - 4], eax
cmp word [eax], 0x20
je 0x400580
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
call esi
test eax, eax
jge 0x400530
mov eax, edi
jmp 0x4005a1
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4005ab
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x40
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push section..data
stosd dword es:[edi], eax
push 0x20019
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jl 0x4006c7
mov al, byte [0x40a0ad]
movsx eax, al
call fcn.00408ef0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0x64
mov eax, dword [ebp - 0x10]
cmp ebx, eax
jae 0x40062b
sub eax, ebx
call fcn.00408ef0
mov ebx, dword [ebp - 0x18]
mov esi, esp
sub ebx, esi
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0
push dword [ebp - 4]
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov edi, eax
cmp edi, 0x80000005
je 0x400616
inc dword [ebp - 4]
test edi, edi
jl 0x4006b2
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ax, word [esi + 0xc]
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x38]
push eax
push 0x20019
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jl 0x4006b2
push 0x409188
push dword [esi + 4]
lea eax, [ebp - 0xc]
push dword [esi]
push dword [ebp - 8]
push eax
call fcn.0040049a
test eax, eax
jne 0x4006a9
push 0x4091b0
push dword [esi + 4]
lea eax, [ebp - 0xc]
push dword [esi]
push dword [ebp - 8]
push eax
call fcn.0040049a
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwClose]
cmp edi, 0x8000001a
jne 0x400616
push dword [ebp - 0x34]
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x400ad7
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x400afc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x400b1f
push 0
push 0x4009c5
push eax
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x400b12
xor eax, eax
jmp 0x400b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
ret 4
Function at 0x400d3d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x400d56
xor eax, eax
inc eax
jmp 0x400ddd
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 8]
lea eax, [ecx + eax + 0xc]
mov dword [ebp - 0xc], eax
jne 0x400d73
push 0x7a
pop eax
jmp 0x400ddd
lea edx, [esi + 0x70]
call fcn.00400a20
test eax, eax
jne 0x400d86
mov eax, 0x45d
jmp 0x400ddd
mov eax, dword [esi + 0x18]
push ebx
push 0x76636572
mov ecx, esi
call fcn.00400a88
mov ebx, eax
cmp ebx, edi
jne 0x400da9
push dword [esi + 0x78]
call fcn.00400e6d
push 8
pop eax
jmp 0x400ddc
push edi
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x400dd1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x400dd3
xor eax, eax
mov edi, eax
mov esi, ebx
call fcn.004009db
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
push edi
mov edi, dword [esi + 0x18]
lea edx, [esi + 0x70]
call fcn.00400a20
test eax, eax
jne 0x400e01
mov eax, 0x45d
jmp 0x400e69
push ebx
push 0x646e6573
mov eax, edi
mov ecx, esi
call fcn.00400a88
mov ebx, eax
test ebx, ebx
jne 0x400e23
push dword [esi + 0x78]
call fcn.00400e6d
push 8
pop eax
jmp 0x400e68
mov eax, dword [edi + 8]
add edi, 0xc
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
lea eax, [esi + 0x74]
inc ecx
lock xadd dword [eax], ecx
push 0
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x400e5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x400e5f
xor eax, eax
mov edi, eax
mov esi, ebx
call fcn.004009db
pop ebx
pop edi
pop esi
leave
ret
Function at 0x400fd9
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, eax
mov dword [esi + 8], ecx
cmp ecx, 0xffffffff
jne 0x401004
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x401071
push 2
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
push 4
mov word [ebp - 0xe], ax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x409fb0
push 0x20
stosd dword es:[edi], eax
push 0xffff
push ecx
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x401047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x401049
xor eax, eax
test eax, eax
jne 0x401071
push eax
push 0x4009c5
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x401064
xor eax, eax
jmp 0x401071
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0x646e6573
mov ecx, ebx
mov edi, eax
call fcn.00400a88
mov esi, eax
test esi, esi
jne 0x401095
push 8
pop eax
jmp 0x4010f2
mov eax, dword [edi + 8]
push 2
mov dword [ebp - 0xc], eax
pop eax
mov word [ebp - 0x1c], ax
add edi, 0xc
mov dword [ebp - 8], edi
mov eax, 0x3500
mov word [ebp - 0x1a], ax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push esi
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x4010e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4010eb
xor eax, eax
mov edi, eax
call fcn.004009db
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, eax
push 0x76636572
mov eax, ebx
mov ecx, edi
call fcn.00400a88
mov esi, eax
test esi, esi
jne 0x40111b
push 8
pop eax
jmp 0x40116d
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
sub ecx, eax
push 0
lea eax, [eax + ebx + 0xc]
push esi
mov dword [ebp - 8], eax
lea eax, [edi + 0x24]
push eax
lea edx, [edi + 0xc]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0x20]
and dword [ecx], 0
push ecx
mov dword [eax], 0x10
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x401164
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x401166
xor eax, eax
mov edi, eax
call fcn.004009db
pop edi
pop esi
leave
ret