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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x416849
xor ecx, ecx
jne 0x416849
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41686a
mov eax, 0xd
jmp 0x416896
xor eax, eax
jne 0x416851
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4168e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4168e9
xor ecx, ecx
jne 0x4168e9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41690a
mov eax, 0xd
jmp 0x41695f
xor eax, eax
jne 0x4168f1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41691b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x4175a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x14]
call fcn.00417700
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00417540
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41760b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x124], edx
lea ecx, [ebp - 0x14]
call fcn.00417780
mov eax, dword [ebp - 0x124]
jmp 0x41769c
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x417671
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004175a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417668
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x128], edx
lea ecx, [ebp - 0x14]
call fcn.00417780
mov eax, dword [ebp - 0x128]
jmp 0x41769c
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x417612
lea ecx, [ebp - 0x14]
call fcn.00417730
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x130]
call fcn.004177d0
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x14]
call fcn.00417780
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 4
Function at 0x419b10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x419b32
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x419b3b
mov eax, 1
jmp 0x419b3d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x419d90
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x419ddc
mov ecx, dword [ebp - 4]
and ecx, 0x20
je 0x419dbc
xor eax, eax
jmp 0x419dde
push 0
push 1
push str.http:__www.qdccb.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
jne 0x419dd3
xor eax, eax
jmp 0x419dde
mov eax, 1
jmp 0x419dde
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41a8c0
Capabilities:
Create process on windows
Create process suspended
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459413
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x204], ecx
push 0
push 0x26
lea eax, [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00405ba0
mov dword [ebp - 4], 0
push 0x460dc0
lea ecx, [ebp - 0x74]
call fcn.00404660
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405060
mov byte [ebp - 4], 1
push 0x460de0
lea ecx, [ebp - 0x48]
call fcn.00405ba0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1fc]
call fcn.00405ba0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x1e0]
push edx
call fcn.004095f0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c4], 0x44
push 0x44
push 0
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.004463a0
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1e0]
call fcn.004052f0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004052f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41aa47
xor ecx, ecx
je 0x41aa47
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1fd], 1
lea ecx, [ebp - 0x1e0]
call fcn.00405310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1fc]
call fcn.00405310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00405310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00405310
mov al, byte [ebp - 0x1fd]
jmp 0x41aa95
mov byte [ebp - 0x1fe], 0
lea ecx, [ebp - 0x1e0]
call fcn.00405310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1fc]
call fcn.00405310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00405310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00405310
mov al, byte [ebp - 0x1fe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 4
Function at 0x41aea0
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4593c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00405060
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x460aca
call fcn.00405ba0
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x460e8c
call fcn.00405ba0
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x6c]
push edx
mov byte [ebp - 4], 1
call fcn.0041ade0
add esp, 0x3c
push 0x460e90
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x6c]
call fcn.004052f0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x50], 0
push 0x38
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x6c]
call fcn.004052f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41b063
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x6c]
call fcn.004052f0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x460ef8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 0
mov ecx, 0x488a28
call fcn.0040d6f0
movzx ecx, al
test ecx, ecx
je 0x41afcf
mov dword [ebp - 0x44], 0x460efc
jmp 0x41afd6
mov dword [ebp - 0x44], 0x460acb
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41b004
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405310
jmp 0x41b08f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41b028
cmp dword [ebp - 0x14], 0
je 0x41b04f
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405310
jmp 0x41b08f
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405310
jmp 0x41b08f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret
Function at 0x41b2f0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459330
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [str.msiexec.exe]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x460f7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x460f80]
mov dword [ebp - 0x14], edx
push 0x460f84
lea ecx, [ebp - 0x74]
call fcn.00405ba0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.004096c0
push str.__quiet
lea ecx, [ebp - 0x74]
call fcn.00404580
mov dword [ebp - 0x58], 0
push 0x38
push 0
lea ecx, [ebp - 0x54]
push ecx
call fcn.004463a0
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x74]
call fcn.004052f0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push str.uninstDellAssist
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x74]
call fcn.004052f0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00405310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret
Function at 0x41bd60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41bd9d
push str.___________________________________________DELL_Assistant_64_Begin____________________________________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41bda8
push str.___________________________________________DELL_Assistant_32_Begin____________________________________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b440
add esp, 0x10
mov ecx, 0x488c30
call fcn.00423040
movzx edx, al
test edx, edx
jne 0x41be25
mov ecx, 0x488c30
call fcn.00423060
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405060
mov dword [ebp - 4], 0
mov ecx, 0x488c30
call fcn.004230a0
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, byte [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004052f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041b440
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405310
jmp 0x41bdc1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x41be44
push str.___________________________________________DELL_Assistant_64_End____________________________________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41be4f
push str.___________________________________________DELL_Assistant_32_End____________________________________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret
Function at 0x41be70
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea ecx, [ebp + 0xc]
call fcn.004052f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41bec6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.00405310
jmp 0x41bf34
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 8], 1
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.UninstallString
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41bf11
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.00405310
jmp 0x41bf34
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 0xc]
call fcn.00405310
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret

Function at 0x41d020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
push 0x128
call fcn.00424ba6
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0x128
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d0f8
mov ecx, dword [ebp - 0xc]
add ecx, 0x24
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dl, byte [ecx]
mov byte [ebp - 0x25], dl
mov eax, dword [ebp - 0x20]
cmp dl, byte [eax]
jne 0x41d0c4
cmp byte [ebp - 0x25], 0
je 0x41d0bb
mov ecx, dword [ebp - 0x24]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x26], dl
mov eax, dword [ebp - 0x20]
cmp dl, byte [eax + 1]
jne 0x41d0c4
add dword [ebp - 0x24], 2
add dword [ebp - 0x20], 2
cmp byte [ebp - 0x26], 0
jne 0x41d087
mov dword [ebp - 0x2c], 0
jmp 0x41d0cc
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x41d0e3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
jmp 0x41d0f8
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
jmp 0x41d068
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00424be0
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41fad0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x134], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41fb08
xor eax, eax
jmp 0x41fc8c
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x41fc80
mov edx, 2
mov word [ebp - 0x124], dx
push 0x25
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x122], ax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x120], eax
push 0x10
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x130], 0
jmp 0x41fb8d
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x110]
jae 0x41fbb1
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp - 4]
jne 0x41fbaf
jmp 0x41fbb1
jmp 0x41fb7e
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [ebp - 0x110]
jne 0x41fbe7
cmp dword [ebp - 0x110], 0x40
jae 0x41fbe7
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 4]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x41fb72
mov dword [ebp - 0x12c], 5
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x12c]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x41fc80
mov dword [ebp - 0x12c], 1
lea edx, [ebp - 0x12c]
push edx
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x41fc80
push 0
push 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
jne 0x41fc80
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x41fc8c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 0x114]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 8
Function at 0x41fca0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x4724e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c4], ecx
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41fcd9
mov eax, 1
jmp 0x41fe13
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
mov ecx, dword [ebp - 0x19c]
cmp dword [ecx*4 + 0x473858], 0
je 0x41fe08
lea edx, [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax*4 + 0x473858]
push ecx
mov ecx, dword [ebp - 0x1c4]
call fcn.0041fad0
test eax, eax
je 0x41fdf4
mov edx, 0x76c
mov word [ebp - 0x1b8], dx
mov eax, 1
mov word [ebp - 0x1b6], ax
mov ecx, 1
mov word [ebp - 0x1b2], cx
xor edx, edx
mov word [ebp - 0x1b0], dx
xor eax, eax
mov word [ebp - 0x1ae], ax
xor ecx, ecx
mov word [ebp - 0x1ac], cx
xor edx, edx
mov word [ebp - 0x1aa], dx
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1a0]
mov ecx, 0x989680
mul ecx
add eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1bc]
adc ecx, edx
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1a8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1a4]
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x41fe13
mov ecx, dword [ebp - 0x19c]
add ecx, 1
mov dword [ebp - 0x19c], ecx
jmp 0x41fced
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441f6e
mov esp, ebp
pop ebp
ret 4
Function at 0x41fe30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x4628f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41fe8e
push 0x462900
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41fe8c
push 0x462910
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
jmp 0x41fecc
push str.SCHANNEL.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41fecc
push str.SslEmptyCacheA
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41fecc
push str.SslEmptyCacheW
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41fef2
push str.IncrementUrlCacheHeaderData
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x41ff10
push 0
push 0
call dword [ebp - 8]
cmp dword [ebp - 0xc], 0
je 0x41ff0e
lea edx, [ebp - 4]
push edx
push 0xe
call dword [ebp - 0xc]
jmp 0x41ff2c
cmp dword [ebp - 0x10], 0
je 0x41ff2c
push 0
push 0
call dword [ebp - 0x10]
cmp dword [ebp - 0xc], 0
je 0x41ff2c
lea eax, [ebp - 4]
push eax
push 0xe
call dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x41ff3c
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x41ff4c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret