joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a2e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x47258b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x12c]
mov esi, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
call fcn.00405790
push 0
push str.UseRegistry
push str.admin
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0
call fcn.00405d70
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x43a376
push 0xfe
push edi
push 3
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x43a386
push edi
push esi
push str.admin_auth
lea ecx, [esp + 0x20]
call fcn.00405cf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.00437380
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0045c20d
add esp, 0x118
ret
Function at 0x43c390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4728cb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
call fcn.00405790
push 0
push str.UseRegistry
push str.admin
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0
call fcn.00405d70
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x43c48b
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x47c708
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43c445
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00437380
xor eax, eax
jmp 0x43c4b8
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.NewMSLogon
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c42d
cmp dword [esp + 0x10], esi
jne 0x43c42d
cmp dword [esp + 0xc], esi
jne 0x43c42d
mov eax, dword [esp + 8]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x43c4a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43c4a2
push 0
push str.NewMSLogon
push str.admin
lea ecx, [esp + 0x28]
call fcn.00405d70
mov esi, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00437380
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0045c20d
add esp, 0x128
ret

Function at 0x43c630
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
sub eax, 1
je 0x43c6d8
sub eax, 1
jne 0x43c6e9
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x43c690
mov dword [0x48e850], 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045c20d
add esp, 0x98
ret
cmp eax, 6
jne 0x43c6b4
mov dword [0x48e850], 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045c20d
add esp, 0x98
ret
cmp eax, 4
ja 0x43c6e9
mov dword [0x48e850], 3
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045c20d
add esp, 0x98
ret
mov ecx, dword [esp + 8]
neg ecx
sbb ecx, ecx
add ecx, 5
mov dword [0x48e850], ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045c20d
add esp, 0x98
ret
Function at 0x43cab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Password
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43cb0c
cmp dword [esp + 4], 8
jg 0x43cb0c
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x14
ret 8

Function at 0x43cb20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
mov esi, 1
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
jne 0x43cb93
cmp dword [esp + 0x10], esi
jne 0x43cb93
mov edx, dword [esp + 0x14]
push edx
call fcn.0045cd98
mov esi, eax
add esp, 4
test esi, esi
je 0x43cb93
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
push ebx
call ebp
test eax, eax
je 0x43cb9f
push esi
call fcn.0045d145
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
cmp dword [esp + 0x10], 1
jne 0x43cb8a
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x43d080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x11c]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.DSMPlugin
mov esi, pe_nt_image_headers32
push eax
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43d0e7
cmp dword [esp + 8], esi
jg 0x43d0e7
mov ecx, 0x40
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x10c
ret 8

Function at 0x441180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0
push eax
mov esi, 4
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4411c1
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
cmp dword [esp + 4], esi
jne 0x4411b6
cmp dword [esp + 8], esi
mov eax, dword [esp + 0x18]
jne 0x4411d5
mov eax, dword [esp + 0x14]
pop esi
add esp, 8
ret 0xc
Function at 0x4411e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push str.SingleWindowName
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44123f
cmp dword [esp + 4], 0x100
jg 0x44123f
push esi
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop esi
mov ecx, dword [esp + 0x2c]
pop edi
xor ecx, esp
call fcn.0045c20d
add esp, 0x2c
ret 8

Function at 0x441670
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441680
mov ecx, dword [esp + 8]
sub eax, esi
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x44347d
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x15c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x160]
test eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x40], eax
je 0x44357a
cmp dword [esi + 0x30], 0
je 0x44357a
cmp dword [esi + 0x38], 0
jne 0x443591
push 0x104
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x44351e
lea ecx, [esp + 0x58]
push 0x5c
push ecx
call fcn.0045c1e0
add esp, 8
test eax, eax
jne 0x4434de
pop esi
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0045c20d
add esp, 0x15c
ret 4
mov byte [eax], 0
lea eax, [esp + 0x58]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4434e8
mov edx, dword [str.xdmcpxdmcp.exe]
mov ecx, dword [0x47d378]
mov dword [eax], edx
mov edx, dword [0x47d37c]
mov dword [eax + 4], ecx
mov ecx, dword [0x47d380]
mov dword [eax + 8], edx
mov dl, byte [0x47d384]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0045c220
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push str..xdmcp
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x44358a
mov ecx, dword [esp + 4]
push 0x2710
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 4]
mov dword [esi + 0x38], edx
jmp 0x443591
mov eax, dword [esi + 0x38]
test eax, eax
je 0x443591
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0x38], 0
mov ecx, dword [esp + 0x15c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0045c20d
add esp, 0x15c
ret 4
Function at 0x447860
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.kernel32.dll
mov dword [0x4a94dc], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.WTSGetActiveConsoleSessionId
push ebx
call edi
push str.ProcessIdToSessionId
push ebx
mov esi, eax
call edi
test esi, esi
mov dword [0x4a94dc], eax
je 0x4478b4
call esi
mov edi, eax
jmp 0x4478b6
xor edi, edi
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4478d4
cmp dword [0x4a94dc], ebp
je 0x4478d4
call fcn.00447840
mov edi, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x447902
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x447910
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x44795d
lea ecx, [esp + 0x38]
push str.explorer.exe
push ecx
call fcn.0045dab4
add esp, 8
test eax, eax
jne 0x44797a
mov dword [esp + 0x10], eax
mov eax, dword [0x4a94dc]
test eax, eax
je 0x447976
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x44797a
cmp dword [esp + 0x10], edi
jne 0x44797a
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045c20d
add esp, 0x130
ret
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x447910
jmp 0x44794d
Function at 0x4481f0
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ecx
call fcn.00448180
test eax, eax
je 0x448204
mov dword [0x4a94d4], 1
cmp dword [0x4a54c8], 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4482f4
call fcn.00448170
test eax, eax
je 0x4482f4
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
jne 0x448247
push str.._vncservice.cpp_:_______________GetCurrentUser___ERROR_:_No_window_station__n
push eax
push 0x490660
call fcn.00401810
add esp, 0xc
xor eax, eax
pop ebx
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 4], 0
jne 0x4482bd
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [esp + 0x10], 0
mov dword [0x4a94d4], 0
ja 0x44829a
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_Bad_buffer_size__n
push 0
push 0x490660
call fcn.00401810
add esp, 0xc
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_Usersize_0_n
push 0
push 0x490660
mov byte [edx], 0
call fcn.00401810
add esp, 0xc
mov eax, 1
pop ebx
pop ecx
ret
cmp dword [0x4a94d4], 0
jne 0x4482f4
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_NOT_impersonating_user__n
push 0
push 0x490660
call fcn.00401810
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x448242
mov eax, dword [esp + 0xc]
mov byte [eax], 0
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, dword [0x4a54c8]
add ecx, 0xffffffff
cmp ecx, 1
ja 0x44839d
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
mov dword [esp + 0x14], edi
call fcn.00447990
add esp, 8
test al, al
jne 0x44837e
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x44837e
call ebx
cmp eax, 0x4dd
jne 0x448360
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_No_user_logged_on__n
push 0
push 0x490660
call fcn.00401810
add esp, 0xc
test edi, edi
jbe 0x448377
pop edi
mov byte [esi], 0
pop esi
mov eax, 1
pop ebx
pop ecx
ret
call ebx
push eax
push str.._vncservice.cpp_:_getusername_error__d_n
push 0
push 0x490660
call fcn.00401810
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push esi
push str.._vncservice.cpp_:_______________GetCurrentUser___UserNAme_found:__s__n
push 0
push 0x490660
call fcn.00401810
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_Unknown_OS__n
push 0
push 0x490660
call fcn.00401810
add esp, 0xc
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x448570
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 8
cmp dword [ecx + 0x32c], 0
je 0x4485d1
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0
push eax
mov esi, 4
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4485bb
cmp dword [esp + 4], esi
jne 0x4485bb
cmp dword [esp + 8], esi
je 0x4485c6
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x14]
pop esi
add esp, 8
ret 0xc
add esp, 8
mov dword [esp + 4], str.admin_auth
add ecx, 0x330
jmp fcn.00405d70

Function at 0x4485f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x32c], 0
je 0x448692
mov edi, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
mov esi, pe_nt_image_headers32
push ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x44867a
cmp dword [esp + 0x10], 3
jne 0x44867a
push esi
mov dword [esp + 0x18], esi
call fcn.0045cd98
mov esi, eax
add esp, 4
test esi, esi
je 0x44867a
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x448671
cmp dword [esp + 0x10], 3
je 0x448686
push esi
call fcn.0045d145
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8
push 0x96
call fcn.0045cd98
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0x96
mov esi, eax
push esi
push ecx
push str.admin_auth
lea ecx, [edi + 0x330]
call fcn.00405d90
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x4486d0
Capabilities:
Set registry value

Disassembly:
cmp dword [ecx + 0x32c], 0
je 0x4486f7
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
push str.admin_auth
add ecx, 0x330
call fcn.00405d10
ret 0xc

Function at 0x448720
Capabilities:
Set registry value

Disassembly:
cmp dword [ecx + 0x32c], 0
je 0x44874a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0xfe
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
mov dword [esp + 4], str.admin_auth
add ecx, 0x330
jmp fcn.00405cf0
Function at 0x4495e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
push 2
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
mov eax, esi
je 0x449626
mov dword [esi], 0
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0045c20d
add esp, 0x194
ret
mov cx, word [esp + 4]
mov word [0x4a94ec], cx
mov ecx, dword [esp + 0x194]
mov dword [esi], 0xffffffff
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x194
ret

Function at 0x449800
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
xor eax, eax
cmp dword [edi + 4], eax
jl 0x4498a2
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x449878
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x44985b
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
jne 0x449870
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0045c20d
add esp, 0x14
ret 8
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [edi + 4]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x14
ret 8

Function at 0x4498e0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4735cb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0xc], 1
jge 0x449928
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0
push 0
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
test edi, edi
jl 0x449914
push 0x2394
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x449968
mov ecx, eax
call fcn.00449660
mov esi, eax
test esi, esi
je 0x44996a
mov dword [esi + 4], edi
jmp 0x44997a
xor esi, esi
push 2
push edi
call dword [sym.imp.WSOCK32.dll_shutdown]
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x449a00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
mov eax, dword [ecx + 4]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x449a3d
mov eax, str._unavailable_
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045c20d
add esp, 0x18
ret

Function at 0x449a50
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x449a7c
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x449a7a
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x449a7a
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x449a80
Capabilities:
Set socket configuration

Disassembly:
cmp byte [0x4a94ec], 2
push esi
mov esi, ecx
jae 0x449a92
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x449ac4
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
push ecx
call edi
sub eax, 0xffffffff
neg eax
pop edi
sbb eax, eax
pop esi
ret 4

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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_send]
push esi
mov esi, ecx
mov eax, dword [esi + 0x2390]
lea ecx, [eax + ebx]
cmp ecx, 0x2000
push edi
mov edi, dword [esp + 0x14]
jle 0x449b9b
mov edx, 0x2000
sub edx, eax
push edx
lea eax, [eax + esi + 0x68]
push edi
push eax
call fcn.0045d280
mov edx, dword [esi + 4]
add esp, 0xc
push 0
push 0x2000
lea ecx, [esi + 0x68]
push ecx
push edx
call ebp
mov eax, dword [esi + 0x2390]
sub edi, eax
mov ecx, ebx
lea ebx, [eax + ecx - 0x2000]
add edi, 0x2000
cmp ebx, 0x2000
mov dword [esi + 0x2390], 0
jbe 0x449b9b
mov edx, dword [esi + 4]
push 0
push 0x2000
push edi
push edx
call ebp
test eax, eax
je 0x449be2
sub ebx, 0x2000
add edi, 0x2000
cmp ebx, 0x2000
ja 0x449b75
mov eax, dword [esi + 0x2390]
push ebx
lea ecx, [esi + eax + 0x68]
push edi
push ecx
call fcn.0045d280
add dword [esi + 0x2390], ebx
mov eax, dword [esi + 0x2390]
add esp, 0xc
push 0
push eax
mov eax, dword [esi + 4]
lea edx, [esi + 0x68]
push edx
push eax
call ebp
test eax, eax
je 0x449be2
mov eax, dword [esp + 0x18]
pop edi
mov dword [esi + 0x2390], 0
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x449bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov eax, dword [esi + 0x2390]
lea ecx, [eax + ebp]
cmp ecx, 0x2000
push edi
mov edi, dword [esp + 0x14]
mov ebx, ebp
jle 0x449c8d
mov edx, 0x2000
sub edx, eax
push edx
lea eax, [eax + esi + 0x68]
push edi
push eax
call fcn.0045d280
mov edx, dword [esi + 4]
add esp, 0xc
push 0
push 0x2000
lea ecx, [esi + 0x68]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [esi + 0x2390]
sub edi, eax
lea ebx, [eax + ebp - 0x2000]
add edi, 0x2000
cmp ebx, 0x2000
mov dword [esi + 0x2390], 0
jbe 0x449c8d
mov eax, dword [esi + 4]
push 0
push 0x2000
push edi
push eax
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x449cb1
sub ebx, 0x2000
add edi, 0x2000
cmp ebx, 0x2000
ja 0x449c63
mov ecx, dword [esi + 0x2390]
push ebx
lea edx, [esi + ecx + 0x68]
push edi
push edx
call fcn.0045d280
add esp, 0xc
add dword [esi + 0x2390], ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8