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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eaf96
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x240], ebx
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
test edi, edi
je 0x100a82b5
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x248]
push eax
push edi
mov dword [ebp - 0x248], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x100a8299
push eax
call fcn.101875f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x250], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100a8299
push esi
push dword [ebp - 0x24c]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100a8290
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x234], 0
call edi
test eax, eax
je 0x100a8290
cmp dword [ebp - 0x234], 4
jb 0x100a8290
mov ecx, dword [ebp - 0x23c]
push str.FileVersion
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.100a8ef0
add esp, 0x14
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call edi
test eax, eax
je 0x100a8290
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x100a8290
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x100a8290
cmp word [ecx + eax*2 - 2], 0
jne 0x100a8249
dec eax
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x21c], 8
lea ebx, [ecx + eax*2]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ebx
push dword [ebp - 0x238]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.100785a0
mov ebx, dword [ebp - 0x240]
push esi
call fcn.101a1ad1
add esp, 4
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.10003230
jmp 0x100a82d5
xor eax, eax
mov dword [ebx + 0x14], 7
push eax
mov dword [ebx + 0x10], 0
mov ecx, ebx
push 0x1022a5e4
mov word [ebx], ax
call fcn.10003c10
cmp dword [ebp - 0x21c], 8
jb 0x100a82ec
push dword [ebp - 0x230]
call fcn.101a02f0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100ac9d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x810], ecx
push 0x3fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.101a01b0
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.101a01b0
add esp, 0x18
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100aca8b
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push 0x1022a5e4
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100acaf9
lea eax, [ebp - 0x808]
mov dword [ebp - 0x80c], 0x400
push eax
push 1
push esi
push str.SoftwareMicrosoftIE_SetupSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x808], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100acaf1
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push str.Path
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100acba2
push 0x200
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jle 0x100acba2
push str.iexplore.exe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.101a8487
add esp, 8
test eax, eax
je 0x100acb61
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push str.iexplore.exe
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.101a7aea
add esp, 0x10
cmp word [ebp - 0x404], 0
jne 0x100acb6f
xor ecx, ecx
jmp 0x100acb8f
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
jmp 0x100acb80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100acb80
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x404]
push eax
call fcn.10003c10
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100ad200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eb710
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x1022a5e4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003c10
mov edx, 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100ac720
test eax, eax
je 0x100ad2e2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.iexplore.exe
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.101a7c4c
add esp, 8
test eax, eax
je 0x100ad2e2
push 0x1022a5e4
lea ecx, [ebp - 0x40]
call fcn.100031d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.100ac9d0
test eax, eax
je 0x100ad2d1
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 5
cmovae eax, dword [ebp - 0x40]
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x100ad2d1
lea ecx, [ebp - 0x40]
call fcn.100032a0
mov esi, 1
jmp 0x100ad301
cmp dword [ebp - 0x2c], 8
jb 0x100ad2e2
push dword [ebp - 0x40]
call fcn.101a02f0
add esp, 4
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
cmp dword [ebp - 0x14], 8
jb 0x100ad312
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret

Function at 0x100adc30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100adc88
mov eax, dword [esp]
cmp al, 2
jne 0x100adc82
shr eax, 8
cmp al, 2
jne 0x100adc82
call fcn.100c0310
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100adf30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ecx
xor esi, esi
mov edi, ecx
jmp 0x100adf46
mov edi, eax
test ebx, ebx
jne 0x100ae099
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
mov dword [ebp - 0x14], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
sub esp, 8
call fcn.100aef40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100ae099
cmp dword [ebp - 8], eax
jne 0x100ae015
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
mul edi
mov eax, 0x10624dd3
mov ebx, edx
shr ebx, 6
imul ecx, ebx, 0x3e8
sub ebx, dword [ebp - 0x14]
sub edi, ecx
imul ecx, edi, 0x3e8
sub ecx, dword [ebp - 0x10]
imul ecx
imul eax, ebx, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
cmp ecx, 0xa
jg 0x100ae015
inc esi
cmp esi, 2
jle 0x100ae017
cmp esi, 0xa
jge 0x100ae007
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
test eax, eax
je 0x100ae017
jns 0x100ae00c
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x100ae017
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100ae017
xor esi, esi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.100b0090
mov edi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jne 0x100ae099
cmp dword [ebp - 0xc], 0
jne 0x100adf46
mov eax, edi
mov dword [ebp - 8], 0
test eax, eax
je 0x100adf44
cmp dword [eax], 0xbab1e
jne 0x100adf44
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0xc], 0
je 0x100adf46
mov edx, dword [ecx]
push 0
mov edi, dword [edx]
mov dword [ebp - 0x14], edi
call fcn.100c3a50
mov eax, dword [ebp - 4]
add esp, 4
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
and eax, 0x7fffffff
test edi, edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x100adf46
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
pop edi
cmp ebx, 3
mov eax, 0x2b
mov ecx, 0x1b
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b2b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100b2b7b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100b2b6e
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x100b2bad
cmp dword [esi + 8], 0
jne 0x100b2b9f
push 0x10231fbc
push dword [eax + 8]
call fcn.101abf09
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x100b2b9f
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call fcn.101e0b49
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100b2bcf
mov eax, dword [esi + 8]
test eax, eax
je 0x100b2bc9
push eax
call fcn.101aafe4
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100b7530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.no_proxy
mov edi, ecx
xor esi, esi
call fcn.101d4b5b
add esp, 4
mov byte [ebp - 0x188], 0
test eax, eax
je 0x100b7592
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x188], 0
je 0x100b7592
lea eax, [ebp - 0x188]
push eax
call dword [0x10269bec]
add esp, 4
mov ebx, eax
jmp 0x100b7594
xor ebx, ebx
test ebx, ebx
jne 0x100b75a4
mov ecx, str.NO_PROXY
call fcn.100cce70
mov ebx, eax
mov ecx, dword [edi + 0x98]
mov edx, ebx
call fcn.100b73f0
test al, al
jne 0x100b7675
mov eax, dword [edi + 0x27c]
lea esi, [ebp - 0x84]
mov edi, dword [eax]
mov al, byte [edi]
test al, al
je 0x100b75e8
lea ecx, [ecx]
movsx eax, al
push eax
call fcn.101a44b9
mov byte [esi], al
lea edi, [edi + 1]
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x100b75d0
mov eax, dword [str._proxy]
lea ecx, [ebp - 0x84]
mov dword [esi], eax
mov ax, word [0x10234398]
mov word [esi + 4], ax
mov al, byte [0x1023439a]
mov byte [esi + 6], al
call fcn.100cce70
mov esi, eax
test esi, esi
jne 0x100b7675
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.100ccd70
test eax, eax
jne 0x100b7659
mov esi, 0x80
lea edx, [ebp - 0x84]
mov cl, byte [edx]
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x100b763e
sub cl, 0x20
mov byte [edx], cl
inc edx
test cl, cl
je 0x100b7648
dec esi
jne 0x100b7631
lea ecx, [ebp - 0x84]
call fcn.100cce70
mov esi, eax
test esi, esi
jne 0x100b7675
mov ecx, str.all_proxy
call fcn.100cce70
mov esi, eax
test esi, esi
jne 0x100b7675
mov ecx, str.ALL_PROXY
call fcn.100cce70
mov esi, eax
push ebx
call dword [0x10269bfc]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100b82c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
push esi
mov esi, dword [ecx + 0x208]
xor eax, eax
mov ecx, dword [ecx + 0x20c]
mov edx, 0x493e0
test esi, esi
mov dword [ebp - 4], edx
mov edx, 1
mov dword [ebp - 8], 0
cmovg eax, edx
push edi
test ecx, ecx
jle 0x100b82fc
or eax, 2
dec eax
je 0x100b8316
dec eax
je 0x100b8311
dec eax
jne 0x100b8319
cmp esi, ecx
mov edx, ecx
cmovl edx, esi
mov dword [ebp - 4], edx
jmp 0x100b8319
mov dword [ebp - 4], ecx
jmp 0x100b8319
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
cmp byte [ebx + 0x252], 0
je 0x100b838a
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x100b841b
cmp byte [edx], 0
je 0x100b841b
mov dword [ebp - 4], 0
test ecx, ecx
js 0x100b8488
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push dword [ebx + 0xb0]
call fcn.100bb240
add esp, 8
cmp eax, 1
jne 0x100b83db
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x100b8488
cmp dword [ebp - 4], 0
jne 0x100b848f
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push dword [ebp - 0xc]
call fcn.100bc7f0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 5
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0
test ecx, ecx
js 0x100b8488
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.100bb240
add esp, 8
cmp eax, 1
je 0x100b83c5
cmp eax, 0xfffffffe
je 0x100b8488
cmp dword [ebp - 4], 0
jne 0x100b848f
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push dword [ebp - 0xc]
call fcn.100bc7f0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 6
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b8e60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.100bd340
movsd qword [ebx + 0x4d0], xmm0
add esp, 0x10
mov eax, dword [edi + 0x27c]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x100b8ecc
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov byte [edi + 0x266], 0
cmp dword [ebx + 0x3a8], 0
je 0x100b8f21
push dword [edi + 0x294]
call dword [0x10269bfc]
add esp, 4
mov dword [edi + 0x294], 0
push dword [ebx + 0x3a8]
push str.User_Agent:__s_r_n
call fcn.100cabc0
add esp, 8
mov dword [edi + 0x294], eax
test eax, eax
jne 0x100b8f21
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x100b8f80
mov byte [edi + 0x25a], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.100baa40
test eax, eax
je 0x100b901e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.100bd340
add esp, 0x10
movsd qword [ebx + 0x4d8], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.100bd340
mov eax, dword [esp + 0x1c]
add esp, 0x10
movsd qword [ebx + 0x4e0], xmm0
mov ecx, edi
mov byte [edi + 0x25a], 1
mov byte [eax], 1
mov edx, dword [edi + 0x154]
call fcn.100b9f30
mov ecx, edi
call fcn.100b6690
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b96d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x430], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100b972b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100bc730
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x434]
and eax, 0x7fffffff
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x438]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100b9795
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100bc730
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100b9f30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x100ba102
cmp byte [edi + 0x252], 0
jne 0x100ba0fb
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100b9fbb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100ce930
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100bc7f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10c], 0x80
push 0
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100ba026
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100ce930
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100bc7f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.100b9ee0
add esp, 4
test al, al
jne 0x100ba079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100ce930
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100bc7f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x88]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.100b9ee0
add esp, 4
test al, al
jne 0x100ba0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100ce930
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100bc7f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100b9e20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100ba570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
mov edi, ecx
push 6
push edx
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100ba5bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.100ce930
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100bc730
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100bc730
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100ba5d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10279840]
mov dword [ebp - 0x12c], 0x4020
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x100ba69e
push 0x11c
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.101a01b0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x100ba692
mov dword [0x10279840], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov dword [0x10279840], 1
jmp 0x100ba6a3
cmp eax, 2
je 0x100ba6ee
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100ba6d4
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x100ba6ee
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret