joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4501f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45020f
add esp, 0xfffffff0
call fcn.004034bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004197ec
mov eax, dword [0x4781f0]
cmp word [eax + 2], 0
jne 0x450237
mov eax, dword [0x4781f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004518e8
mov eax, dword [0x4782b8]
cmp word [eax + 2], 0
jne 0x450251
mov eax, dword [0x4782b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451ae0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a40]
call fcn.00403168
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a40]
call fcn.00403168
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bc40]
call fcn.00423018
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4503d8
mov eax, dword [0x4780dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004233e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452080
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4780dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c5e4
test eax, eax
je 0x450346
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408518
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c60c
test eax, eax
je 0x45035a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404158
mov eax, dword [0x477f94]
cmp byte [eax], 0
jne 0x45038e
mov eax, ebx
call fcn.00450500
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045225c
mov eax, ebx
call fcn.00452c20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4503ce
call fcn.00403514
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450780
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bb0]
cmp dword [eax + 0x30], 0
je 0x45082a
cmp dword [ebx + 0x94], 0
jne 0x450824
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450710
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450824
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4507ea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450824
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4507f9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45138c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4513c1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fd8
jmp 0x4513ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452438
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452479
mov eax, esi
call fcn.00438b58
test al, al
je 0x452479
mov eax, dword [ebx + 0x84]
call fcn.00438854
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452479
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438854
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x475aa4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x478290]
mov eax, dword [eax]
call fcn.0045163c
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x475ae5
cmp eax, dword [esp]
pop edx
pop eax
ja 0x475aaf
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x475aaf
pop esi
pop ebx
ret
Function at 0x406260
Capabilities:
Initialize iwebbrowser2
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x406289
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x4094d0
push 4
push 0
push 0x4094e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x406338
cmp dword [ebp - 0x18], 0
je 0x406338
push str.http:__www.fiap.com.br
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor edx, edx
mov word [ebp - 0x14], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 0x2c]
call edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0xa4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x406340
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040774c
mov esp, ebp
pop ebp
ret
Function at 0x406dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00404ee0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00404f00
mov dword [ebp - 0x30], eax
jmp 0x406df7
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x30]
je 0x406ee4
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0x21], cl
mov dword [ebp - 0x20], 1
xor edx, edx
mov word [ebp - 0x1a], dx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movsx eax, byte [ebp - 0x21]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isupper]
add esp, 4
test eax, eax
je 0x406e3e
mov byte [ebp - 0x23], 1
jmp 0x406e42
mov byte [ebp - 0x23], 0
mov cl, byte [ebp - 0x23]
mov byte [ebp - 0x22], cl
movsx edx, byte [ebp - 0x21]
cmp edx, 0x7b
je 0x406e5a
movsx eax, byte [ebp - 0x21]
cmp eax, 0x7d
jne 0x406e5e
mov byte [ebp - 0x22], 1
movzx ecx, byte [ebp - 0x22]
test ecx, ecx
je 0x406e74
push 0
push 0
push 0
push 0x10
call dword [sym.imp.USER32.dll_keybd_event]
movzx edx, byte [ebp - 0x21]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], 0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
mov dword [ebp - 0x18], 2
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push 1
call dword [sym.imp.USER32.dll_SendInput]
movzx edx, byte [ebp - 0x22]
test edx, edx
je 0x406ec3
push 0
push 2
push 0
push 0x10
call dword [sym.imp.USER32.dll_keybd_event]
mov dword [ebp - 0x34], 0x32
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401070
push eax
call fcn.00402e90
add esp, 4
jmp 0x406dee
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040774c
mov esp, ebp
pop ebp
ret
Function at 0x4084d7
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
test byte [0x10047174], 8
jne 0x100057e8
lea eax, [ebp - 0x10]
mov dword [esp + 4], 0x4004667f
mov dword [esp + 8], eax
mov eax, dword [esi + 0x48]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
test eax, eax
jne 0x100057ce
test byte [0x10047174], 8
jne 0x10005880
mov ebx, dword [ebp - 0x10]
mov dword [edi], ebx
test ebx, ebx
je 0x10005830
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x100497c3
mov dword [esp + 0x18], eax
mov dword [esp + 8], str.FTPFILE_QueryDataAvailable
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000579f
lea eax, [ebp - 0x11]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esp], eax
call sym._sock_recv
test eax, eax
jle 0x100057d9
mov dword [esp + 8], 8
mov ebx, 0x3e5
mov dword [esp + 4], sym._FTPFILE_AsyncQueryDataAvailableProc
mov dword [esp], esi
call sym._alloc_async_task
mov dword [esp], eax
call sym._INTERNET_AsyncCall
jmp 0x100057d9
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], str._ld_bytes_of_queued__but_unread_data_n
mov dword [esp + 8], str.FTPFILE_QueryDataAvailable
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100057ce
Function at 0x100058b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
cmp eax, 9
je 0x100058e0
cmp eax, 0x21
je 0x10005910
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._INET_QueryOption
test byte [0x10047174], 8
jne 0x100059d0
cmp dword [ebx], 3
jbe 0x100059c1
mov dword [ebx], 4
xor eax, eax
mov dword [edi], 7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10047174], 8
jne 0x10005a00
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x10005a80
test ecx, ecx
je 0x10005970
cmp word [edx], 0
je 0x10005a90
mov eax, edx
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x10005940
sub eax, edx
add eax, 2
cmp dword [ebx], eax
jb 0x100059c1
mov dword [ebx], eax
mov edx, dword [esi + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._memcpy
xor eax, eax
jmp 0x10005904
mov dword [esp + 8], edx
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call edx
mov ecx, eax
mov eax, dword [ebx]
sub esp, 0x20
cmp eax, ecx
jae 0x10005a30
lea esp, [ebp - 0xc]
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10049871
mov dword [esp + 8], str.FTPFILE_QueryOption
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100058ed
mov dword [esp + 0xc], 0x10049890
mov dword [esp + 8], str.FTPFILE_QueryOption
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
mov dword [ebp - 0x10], ecx
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x10]
jmp 0x1000591d
mov dword [esp + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edx
mov dword [ebx], eax
sub esp, 0x20
xor eax, eax
jmp 0x10005904
mov dword [ebx], 0
mov eax, 0x2efc
jmp 0x10005904
mov eax, 2
jmp 0x1000594e
Function at 0x10005aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0x2f83
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
je 0x10005b2a
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], 8
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._sock_recv
mov ecx, 0
mov edx, 0x2ee0
test eax, eax
cmovs eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
js 0x10005b2a
mov ecx, dword [ebx + 0x4c]
xor edx, edx
test ecx, ecx
je 0x10005b2a
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x10005b28
test byte [0x10047174], 4
jne 0x10005b38
xor edx, edx
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x100497ac
mov dword [esp + 8], str.FTPFILE_ReadFile
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10047174
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
xor edx, edx
jmp 0x10005b2a

Function at 0x10005e00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
cmp dword [ebp + 0xc], 9
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
jne 0x10005e40
test byte [0x10047174], 8
jne 0x10005e50
cmp dword [ebx], 3
mov eax, 0x7a
jbe 0x10005e35
mov dword [ebx], 4
xor eax, eax
mov dword [esi], 5
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp sym._INET_QueryOption
mov dword [esp + 0xc], 0x10049871
mov dword [esp + 8], str.FTPFINDNEXT_QueryOption
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
cmp dword [ebx], 3
mov eax, 0x7a
ja 0x10005e27
jmp 0x10005e35

Function at 0x10005ff0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
cmp dword [ebp + 0xc], 9
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
jne 0x10006030
test byte [0x10047174], 8
jne 0x10006040
cmp dword [ebx], 3
mov eax, 0x7a
jbe 0x10006025
mov dword [ebx], 4
xor eax, eax
mov dword [esi], 2
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp sym._INET_QueryOption
mov dword [esp + 0xc], 0x10049871
mov dword [esp + 8], str.FTPSESSION_QueryOption
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
cmp dword [ebx], 3
mov eax, 0x7a
ja 0x10006017
jmp 0x10006025
Function at 0x100093d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x130
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x118], 0x1e
mov dword [ebp - 0x114], 0
call sym._INTERNET_GetResponseBuffer
mov edi, eax
test byte [0x10047174], 8
jne 0x100094c8
mov eax, dword [ebp - 0x11c]
xor ebx, ebx
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x10c], eax
inc eax
mov dword [ebp - 0x120], eax
nop
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_select]
sub esp, 0x14
test eax, eax
jle 0x100094f8
mov eax, dword [ebp - 0x11c]
lea esi, [edi + ebx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._sock_recv
test eax, eax
jle 0x10009510
movzx eax, byte [esi]
cmp al, 0xa
je 0x10009530
cmp al, 0xd
setne al
movzx eax, al
add ebx, eax
cmp ebx, 0x1000
jne 0x10009430
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x10049824
mov dword [esp + 8], str.FTP_GetNextLine
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10009410
mov dword [esp], 0x2ee2
xor edi, edi
call sym._INTERNET_SetLastError
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x2f4e
xor edi, edi
call sym._INTERNET_SetLastError
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x124]
lea eax, [ebx - 1]
mov byte [esi], 0
mov dword [ecx], eax
test byte [0x10047174], 8
je 0x100094ba
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.:_d__s_n
mov dword [esp + 8], str.FTP_GetNextLine
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100094ba
Function at 0x10009580
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [ebp - 0xc], 0x10
test byte [0x10047174], 8
jne 0x100096e0
call sym._init_winsock
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.ws2_32.dll_socket]
mov dword [ebx + 0x48], eax
sub esp, 0xc
cmp eax, 0xffffffff
je 0x100096a8
mov eax, dword [ebx + 0x54]
mov dword [esp], 0
lea esi, [ebx + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
call dword [sym.imp.ws2_32.dll_htons]
mov word [ebx + 0x66], ax
mov eax, dword [ebx + 0x48]
sub esp, 4
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_bind]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x10009670
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_listen]
sub esp, 8
cmp eax, 0xffffffff
je 0x10009740
lea eax, [ebp - 0xc]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_getsockname]
mov edx, eax
sub esp, 0xc
mov eax, 1
cmp edx, 0xffffffff
je 0x1000967d
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x10047174], 8
jne 0x10009710
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
je 0x10009698
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [ebx + 0x48], 0xffffffff
sub esp, 4
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
test byte [0x10047174], 8
je 0x10009698
mov dword [esp + 0xc], str.Unable_to_create_listening_socket_n
mov dword [esp + 8], str.FTP_InitListenSocket
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000967d
mov dword [esp + 0xc], 0x10049824
mov dword [esp + 8], str.FTP_InitListenSocket
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000959e
mov dword [esp + 0xc], str.Unable_to_bind_socket_n
mov dword [esp + 8], str.FTP_InitListenSocket
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000967d
test byte [0x10047174], 8
je 0x1000967d
mov dword [esp + 0xc], str.listen_failed_n
mov dword [esp + 8], str.FTP_InitListenSocket
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000967d
Function at 0x1000d72c
Capabilities:
Get disk size

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov ecx, dword [ecx]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
test byte [0x100471c4], 8
jne 0x1000d7b0
test ecx, ecx
je 0x1000d7fe
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
sub esp, 0x10
test eax, eax
je 0x1000d7a0
test edi, edi
je 0x1000d782
mov dword [edi], 1
test esi, esi
je 0x1000d791
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], edx
mov dword [esi + 4], ecx
test ebx, ebx
je 0x1000d7a0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebx], esi
mov dword [ebx + 4], edi
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, ecx
mov edx, 0xffffffff
mov dword [ebp - 0x24], ecx
call sym._wine_dbgstr_an_2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___p___p___p__n
mov dword [esp + 8], str.GetDiskInfoA
mov dword [esp + 4], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x1000d752
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
Function at 0x10010100
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp eax, 6
je 0x100101e0
ja 0x10010160
cmp eax, 2
je 0x100101b8
cmp eax, 5
jne 0x10010198
test byte [0x10047194], 8
jne 0x10010240
cmp dword [ebx], 3
jbe 0x100102d0
mov dword [ebx], 4
mov eax, dword [edi + 0x58]
mov dword [esi], eax
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 9
jne 0x10010198
test byte [0x10047194], 8
jne 0x100102a0
cmp dword [ebx], 3
jbe 0x100102d0
mov dword [ebx], 4
xor eax, eax
mov dword [esi], 4
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], edx
mov dword [ebp + 0xc], eax
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
jmp sym._INET_QueryOption
test byte [0x10047194], 8
jne 0x10010210
cmp dword [ebx], 3
jbe 0x100102d0
mov dword [ebx], 4
mov eax, dword [edi + 0x54]
mov dword [esi], eax
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10047194], 8
jne 0x10010270
cmp dword [ebx], 3
jbe 0x100102d0
mov dword [ebx], 4
mov eax, dword [edi + 0x5c]
mov dword [esi], eax
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x1004a1e4
mov dword [esp + 8], str.HTTPSESSION_QueryOption
mov dword [esp + 4], 0x10047194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x100101c1
mov dword [esp + 0xc], str.INTERNET_OPTION_SEND_TIMEOUT_n
mov dword [esp + 8], str.HTTPSESSION_QueryOption
mov dword [esp + 4], 0x10047194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1001013e
mov dword [esp + 0xc], str.INTERNET_OPTION_RECEIVE_TIMEOUT_n
mov dword [esp + 8], str.HTTPSESSION_QueryOption
mov dword [esp + 4], 0x10047194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x100101ed
mov dword [esp + 0xc], 0x1004a1c4
mov dword [esp + 8], str.HTTPSESSION_QueryOption
mov dword [esp + 4], 0x10047194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x10010172
add esp, 0x10
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret