joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e230
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call fcn.004a573e
push eax
call fcn.004a8330
add esp, 8
push 0x505ef8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x505f08
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x505ee0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x505f00], eax
cmp eax, 0xffffffff
je 0x46e27b
mov esp, ebp
pop ebp
ret
push str.D:codeworkspacewintunsockslwIP_srcwin32_sys_arch.c
push 0x93
push str.TlsAlloc_failed
push str.Assertion___s__failed_at_line__d_in__s_n
call fcn.00463ae0
push 0
call fcn.004a705a
add esp, 0x14
call fcn.004a09c0
int3

Function at 0x4738ce
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47390d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47390d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47390d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47390d
cmp dword [ecx + 0x74], 0xe
jbe 0x47390d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x475870
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00475a40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x47594d
mov edx, dword [ebp - 4]
cmp edx, dword [0x50113c]
jb 0x4758ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x501140]
ja 0x4758ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x47588a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0049cfc0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x4758df
jmp 0x47594d
cmp dword [ebp - 0x14], 0x10000
jne 0x475933
cmp dword [ebp - 0x18], 0x10000
jb 0x475933
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x475916
mov eax, dword [ebp - 8]
jmp 0x47594f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x475926
xor eax, eax
jmp 0x47594f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x475948
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.00475a40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x47588a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x475960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00475a70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x475a35
mov edx, dword [ebp - 4]
cmp edx, dword [0x50113c]
jb 0x4759a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x501140]
ja 0x4759a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x475975
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0049cfc0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x4759ca
jmp 0x475a35
cmp dword [ebp - 0x14], 0x10000
jne 0x475a1e
cmp dword [ebp - 0x18], 0x10000
jb 0x475a1e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x475a01
mov eax, dword [ebp - 8]
jmp 0x475a37
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x475a11
xor eax, eax
jmp 0x475a37
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x475a30
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.00475a70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x475975
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x475aa0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00475e90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x503f80], 0
jne 0x475add
cmp dword [0x503f7c], 0
je 0x475add
mov eax, dword [0x503f7c]
mov dword [0x503f80], eax
cmp dword [0x503f80], 0
je 0x475b5a
mov ecx, dword [0x503f80]
cmp dword [ecx + 8], 0
je 0x475b5a
mov edx, dword [0x503f80]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x475b5a
mov ecx, dword [0x503f80]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x475b5a
mov eax, dword [0x503f80]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x475b29
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x475b30
xor eax, eax
jmp 0x475c79
mov ecx, dword [0x503f80]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0049cfc0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x475c79
mov edx, dword [0x503f7c]
mov dword [0x503f80], edx
jmp 0x475b76
mov eax, dword [0x503f80]
mov ecx, dword [eax + 4]
mov dword [0x503f80], ecx
cmp dword [0x503f80], 0
je 0x475bb6
cmp dword [0x503f80], 0
je 0x475bb4
mov edx, dword [0x503f80]
cmp dword [edx + 8], 0
je 0x475bb4
mov eax, dword [0x503f80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x475bb4
mov edx, dword [0x503f80]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x475bb4
jmp 0x475b0e
jmp 0x475b68
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00475c80
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x475c77
mov eax, dword [ebp - 0x18]
mov dword [0x503f80], eax
mov ecx, dword [0x503f80]
mov dword [ecx], 0x52727464
mov edx, dword [0x503f80]
mov dword [edx + 8], 0
mov eax, dword [0x503f80]
mov ecx, dword [0x503f7c]
mov dword [eax + 4], ecx
mov edx, dword [0x503f80]
mov dword [0x503f7c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x503f80]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x475c47
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x475c67
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x475c3e
mov eax, dword [0x503f80]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x475b0e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4769c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503f7c]
mov dword [ebp - 4], eax
jmp 0x4769d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x476a00
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x4769fe
call sub.KERNEL32.dll_GetLastError
jmp 0x476a02
jmp 0x4769d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x476ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x503f8c], eax
je 0x476ec4
mov eax, 0x10dd
jmp 0x47706c
cmp dword [0x503f90], 0
je 0x476ed7
mov eax, dword [0x503f90]
jmp 0x47706c
cmp dword [ebp + 0xc], 0
jne 0x476ee7
mov eax, 0x57
jmp 0x47706c
cmp dword [ebp + 8], 0
jne 0x476ef7
mov eax, 6
jmp 0x47706c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x476f20
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x503f90], ecx
mov edx, dword [ebp + 8]
mov dword [0x503f94], edx
mov eax, dword [ebp - 8]
jmp 0x47706c
push 0x18
call fcn.00472d9c
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476f7b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x503f90], ecx
cmp dword [ebp - 4], 0
je 0x476f6a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.00472d8e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x503f94], ecx
mov eax, dword [ebp - 8]
jmp 0x47706c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00476e80
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00476e80
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x476fbb
cmp dword [ebp - 0xc], 0x1e
jbe 0x476fd7
mov dword [ebp - 8], 9
cmp dword [0x503f84], 0
je 0x476fd2
jmp 0x476f49
jmp 0x476f40
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x476ffe
mov dword [ebp - 8], 9
cmp dword [0x503f84], 0
je 0x476ff9
jmp 0x476f49
jmp 0x476f40
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x477029
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x476f40
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x503f9c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x503f9c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x477080
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x503f8c], eax
je 0x47709d
mov eax, 0x10dd
jmp 0x477180
mov eax, dword [0x503f9c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47711c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4770f8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x4770f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00475f20
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.00472d8e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x4770a5
mov dword [0x503f9c], 0
call fcn.00476800
mov ecx, dword [0x503f98]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x47716a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00472d8e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x477134
mov dword [0x503f98], 0
mov dword [0x503f8c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x477660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x503f90], 0
je 0x477679
mov eax, dword [0x503f90]
jmp 0x477718
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x47768a
xor eax, eax
jmp 0x477718
push 8
call fcn.00472d9c
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4776e2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x4776cb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472d8e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x503f90], eax
mov dword [0x503f94], 0
mov eax, dword [ebp - 8]
jmp 0x477718
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x4776fa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x4776aa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x503f98]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x503f98], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x478c80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push 0x4e6c78
mov dword [0x503fb8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x503fb8], eax
test eax, eax
jne 0x478ca4
mov eax, 0x16
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x503fa0], eax
test eax, eax
jne 0x478ccf
push dword [0x503fb8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop esi
ret
push str.GetAdaptersAddresses
push dword [0x503fb8]
call esi
push str.GetBestRoute2
push dword [0x503fb8]
mov dword [0x503fa8], eax
call esi
push str.advapi32.dll
mov dword [0x503fac], eax
mov dword [0x503fbc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x503fbc], eax
test eax, eax
je 0x478d1e
push str.SystemFunction036
push eax
call esi
mov dword [0x503fa4], eax
xor eax, eax
pop esi
ret

Function at 0x478d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0049cfc0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x478d90
cmp dword [ebp - 0x94], 6
jb 0x478d90
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret

Function at 0x479ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x479bd6
cmp eax, 0xea
jne 0x479c30
mov eax, dword [ebp - 4]
test eax, eax
je 0x479c30
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x479c30
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479c1f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x479c1f
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50114c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x479c81
cmp eax, 0xea
jne 0x479cdd
mov eax, dword [ebp - 4]
test eax, eax
je 0x479cdd
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x479cdd
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479ccc
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x479ccc
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50114c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47a090
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], esi
push eax
push 0
push esi
mov dword [edi], 0
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x47a1f7
lea eax, [ebp - 0x114]
push eax
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47a1c4
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x108], eax
mov dword [edi], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x47a14b
cmp eax, 0xea
jne 0x47a1ac
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x47a1ac
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x47a1ac
lea ecx, [ebp - 0x108]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a19b
mov ecx, dword [ebp - 0x108]
cmp ecx, 1
je 0x47a19b
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x47a1ae
push dword [edi]
call dword [0x50114c]
add esp, 4
mov dword [edi], 0
xor esi, esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47a1f7
mov esi, dword [ebp - 0x118]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push ecx
lea ecx, [ebp - 0x104]
mov eax, ebx
push ecx
push eax
push esi
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x47a0f7
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
Function at 0x47abb0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x47abd9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x47af00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x91b8], 0
je 0x47af2e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x47af72
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47b02b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x47af94
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47b02b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x47afc1
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x47afe4
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x47b01c
cmp eax, 0x17
jne 0x47afe4
lea ebx, [esi + 0x60]
mov edx, 0x4e6efc
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47aff7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x47afd3
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [ebx]
mov word [ebp - 0x20], ax
push 0x1c
movups xmmword [ebp - 0x18], xmm0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x47afe4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
Function at 0x47b6c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
sub eax, 2
je 0x47b73a
sub eax, 0x15
je 0x47b6f7
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x1c
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], 0
test eax, eax
je 0x47b724
push eax
jmp 0x47b727
push dword [esi + 0x14]
call fcn.0047e460
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x47b76d
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x10
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47b75b
push eax
jmp 0x47b75e
push dword [esi + 0x14]
call fcn.0047e460
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x47b791
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x47b79c
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b852
push esi
push dword [ebx]
push edi
call fcn.0047af00
add esp, 0xc
test eax, eax
jns 0x47b7ff
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x47b7e4
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x47b81e
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x47b885
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.0047abb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47b866
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x47b866
cmp eax, 0x2733
je 0x47b866
push edi
push esi
call fcn.0047ab80
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x47b8a3
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x47b8a3
push edi
push esi
call fcn.0047ab80
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x47b8bd
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0x1c], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00472b2a
mov esp, ebp
pop ebp
ret