joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cb4a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push edi
push edx
push esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x74], 0
je 0x41ccc6
cmp dword [edi + 0x78], 0
je 0x41ccc6
push dword [ebp + 8]
call fcn.0041cccd
or eax, eax
je 0x41cb7e
jmp 0x41ccc6
push 0x40
push 0x1000
push dword [edi + 0x78]
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
jne 0x41cb98
jmp 0x41ccc6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push 0x144
lea eax, [ebp - 0x160]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 8], 0xc
mov dword [ebp - 4], 1
mov eax, dword [edi + 0xec]
jmp 0x41cc19
push dword [ebp - 4]
lea eax, [edi + 0xe8]
push eax
call fcn.0040a8b6
or eax, eax
je 0x41cc10
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0x5a
ja 0x41cbe9
cmp al, 0x41
jb 0x41cbe9
sub al, 0x41
jmp 0x41cbf7
cmp al, 0x7a
ja 0x41cbf5
cmp al, 0x61
jb 0x41cbf5
sub al, 0x61
jmp 0x41cbf7
mov al, 0x1a
and eax, 0xff
mul dword [ebp - 8]
lea edx, [ebp - 0x160]
add eax, edx
push dword [ebp - 0xc]
push eax
call fcn.0040a863
inc dword [ebp - 4]
mov eax, dword [edi + 0xec]
cmp dword [ebp - 4], eax
jbe 0x41cbc5
mov eax, 0x1b
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x41ccac
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
lea edx, [ebp - 0x160]
add eax, edx
mov esi, eax
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 4]
jmp 0x41cc8f
inc dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call fcn.0040a8b6
or eax, eax
je 0x41cc89
mov dword [ebp - 0x1c], eax
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_lstrcpyA
push dword [ebp - 0x18]
push dword [ebp - 0xc]
lea eax, [edi + 0xe8]
push eax
call fcn.0040a837
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_lstrlenA
inc eax
add dword [ebp - 0x18], eax
inc dword [ebp - 0x10]
mov eax, dword [esi + 4]
cmp dword [ebp - 0x10], eax
jbe 0x41cc4f
push esi
call fcn.0040a7a7
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
pop dword [edi + eax*4 + 0x7c]
inc dword [ebp - 4]
mov eax, 0x1b
cmp dword [ebp - 4], eax
jb 0x41cc33
push 0x8000
push 0
push dword [edi + 0x74]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp - 0x14]
pop dword [edi + 0x74]
pop esi
pop edx
pop edi
leave
ret 4
Function at 0x41de94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
call fcn.0041de13
or eax, eax
je 0x41dfbd
mov dword [ebp - 0x414], eax
push 0x104
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
push 0x43b5ad
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [0x43d04f]
push 0
call fcn.0040a161
mov dword [ebp - 0x418], eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_GetBinaryTypeA
or eax, eax
jne 0x41dfbd
push dword [0x44b850]
push 7
call fcn.0040a161
mov dword [ebp - 0x41c], eax
inc dword [ebp - 0x414]
push dword [0x43d04f]
push dword [ebp - 0x414]
call fcn.0040a161
push 4
push dword [ebp - 0x41c]
push eax
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x41dfbd
push dword [0x43d057]
push 3
call fcn.0040a161
push dword [0x43d057]
push dword [ebp + 8]
push eax
call fcn.0041dfc1
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_GetBinaryTypeA
or eax, eax
jne 0x41dfbd
push dword [0x44b850]
push 7
call fcn.0040a161
mov dword [ebp - 0x41c], eax
push dword [0x43d057]
push 9
call fcn.0040a161
push 4
push dword [ebp - 0x41c]
push eax
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x41dfbd
jmp 0x41df52
leave
ret 4
Function at 0x41dfc1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
mov dword [ebp - 0x2b8], 0
lea eax, [ebp - 0x2a5]
push eax
lea eax, [ebp - 0x2b8]
push eax
push str.DWB_Temp_File_Temp_u.tmp
call fcn.00423470
cmp eax, 0xffffffff
je 0x41e0a4
mov dword [ebp - 0x38], eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
push dword [ebp + 0x10]
push 5
call fcn.0040a161
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
push 6
call fcn.0040a161
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2b0], eax
push dword [ebp + 0xc]
pop dword [ebp - 0x2c]
lea eax, [ebp - 0xa5]
push eax
push 2
push 0
push dword [ebp + 8]
call fcn.00422c02
push eax
or eax, eax
jne 0x41e07c
push dword [ebp + 0x10]
push 7
call fcn.0040a161
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2a5]
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2b4]
push eax
push 0x41e0a8
push dword [ebp + 0xc]
push str.PostPrgsDlg
push dword [0x43b15c]
call sub.USER32.dll_DialogBoxParamA
lea eax, [ebp - 0x2a5]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop eax
or eax, eax
je 0x41e0a4
push 0
push 0x43bc4a
push str.The_DNL_Reader_needs_to_install_extensions_to_properly_run_this_Digital_Web_r_nBook._It_is_unable_to_do_this_at_present._Some_of_the_possible_reasons_are:_r_n_r_n1._This_computer_may_not_be_connected_to_the_Internet_or_you_may_be_r_nexperiencing_network_problems._r_n_r_n2._Your_firewall_software_may_not_be_prompting_you_to_give_you_a_choice_to_r_ndownload_the_extension_the_DNL_reader_requires_to_use_this_Digital_Web_Book._r_n_r_nPossible_solution:_r_nA._Temporarily_switch_off_the_firewall_to_allow_this_program_to_access_the_r_nInternet._r_nB._Configure_your_firewall_to_allow_the_DNL_reader_to_access_the_Internet._r_n_r_n3._If_you_are_using_a_proxy_server_or_external_gateway__please_ensure_that_r_nit_is_correctly_configured._If_you_are_connecting_to_the_internet_using_a_r_ncorporate_network__please_ask_your_network_administrator_for_help._r_n
push dword [0x43b160]
call sub.USER32.dll_MessageBoxA
leave
ret 0xc

Function at 0x41e1f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 0x18], 2
je 0x41e241
push 0
push 0x80
push dword [ebp + 0xc]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x41e27d
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 3
jne 0x41e237
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
pop eax
jmp 0x41e27d
cmp dword [ebp + 0x18], 4
jne 0x41e247
jmp 0x41e27d
push dword [ebp + 0xc]
pop dword [ebp - 4]
cmp dword [ebp + 0x18], 1
jne 0x41e25b
push 0
push 0
push 1
push dword [ebp - 4]
call sub.KERNEL32.dll_SetNamedPipeHandleState
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp + 0x18], 2
je 0x41e27d
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
leave
ret 0x14
Function at 0x41e613
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
cmp dword [ebp + 0xc], 0
jne 0x41e659
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
je 0x41e674
push 0x43b5ad
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_LoadLibraryA
leave
ret 8
Function at 0x41f0ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
cmp dword [0x43b8ff], 0
je 0x41f108
mov esi, dword [0x43b8ff]
mov dword [ebp - 4], 0
mov eax, dword [0x43b8fb]
jmp 0x41f103
cmp dword [esi + 0xc], 1
jne 0x41f0f8
cmp dword [esi + 0x38], 0
je 0x41f0f8
push 0x8000
push 0
push dword [esi + 0x38]
call sub.KERNEL32.dll_VirtualFree
mov dword [esi + 0x38], 0
mov dword [esi + 0xc], 0
add esi, 0x54
inc dword [ebp - 4]
mov eax, dword [0x43b8fb]
cmp dword [ebp - 4], eax
jb 0x41f0cf
cmp dword [0x43b90b], 0
je 0x41f14f
mov esi, dword [0x43b90b]
mov dword [ebp - 4], 0
mov eax, dword [0x43b907]
jmp 0x41f14a
cmp dword [esi], 0
je 0x41f13f
push dword [esi]
call sub.KERNEL32.dll_DeleteFileA
push 0x8000
push 0
push dword [esi]
call sub.KERNEL32.dll_VirtualFree
lea esi, [esi + 4]
inc dword [ebp - 4]
mov eax, dword [0x43b907]
cmp dword [ebp - 4], eax
jb 0x41f125
leave
ret
Function at 0x41f9c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x41f9fa
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x41fa2e
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 1
push 0
push 0
push 0xce
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push 0
push 0xffffffffffffffff
push 0xbb
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x2c], eax
push 0
push eax
push 0xd6
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov ax, 1
push eax
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
sub eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 0x10
and dword [ebp - 8], 0xffff
dec dword [ebp - 8]
or eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0
push 0xd7
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
and eax, 0xffff
add eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x420e59
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x420e81
push 0x8000
push 0
push dword [esi + 0x20]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp + 8]
call sub.USER32.dll_GetWindowTextLengthA
or eax, eax
je 0x420eb5
inc eax
mov dword [esi + 0x24], eax
push 4
push 0x1000
push dword [esi + 0x24]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x20], eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push 0xd
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
push dword [esi + 4]
call sub.GDI32.dll_DeleteObject
push dword [esi + 8]
call sub.GDI32.dll_DeleteObject
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 1
push 0
push 0
push 0x147
push dword [ebp + 8]
call sub.USER32.dll_SendMessageA
mov dword [esi + 0x28], eax
push dword [ebp + 8]
call sub.USER32.dll_DestroyWindow
pop esi
leave
ret 4
Function at 0x4229f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.0042b1e4
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call fcn.0042b1e4
add dword [ebp - 4], eax
add dword [ebp - 4], 0x64
push dword [ebp - 4]
push 0
push dword [0x43b044]
call sub.KERNEL32.dll_HeapAlloc
or eax, eax
jne 0x422ab1
pushfd
pushal
sub esp, 0x6c
wait
fnsave dword [esp]
cld
mov eax, esp
and esp, 0xfffffffc
push eax
mov eax, dword [eax + 0x88]
push 0x43b054
call sub.KERNEL32.dll_EnterCriticalSection
push str.DBPLUGIN
push 0
push 0xff
push str.MemAlloc_failed
call fcn.0042929b
test dword [0x43b050], 1
je 0x422a86
push str.DBPLUGIN
push 0
push 0x808080
push str.__frmcommn.asm__244_
call fcn.0042929b
push str.DBPLUGIN
push 0x80
push 0
push 0x436574
call fcn.0042929b
push 0x43b054
call sub.KERNEL32.dll_LeaveCriticalSection
pop esp
frstor dword [esp]
add esp, 0x6c
popal
popfd
xor eax, eax
mov dword [ebp - 8], eax
or eax, eax
je 0x422bcc
mov byte [eax], 0
push dword [ebp + 8]
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push 0x43b5ce
push dword [ebp - 8]
push 1
call fcn.0042b118
mov dword [ebp - 4], eax
push dword [ebp - 8]
call fcn.0042b1e4
cmp dword [ebp - 4], 0
jbe 0x422afd
cmp dword [ebp - 4], eax
jne 0x422af6
mov eax, 0x43b5bb
jmp 0x422b02
mov eax, 0x43b5c2
jmp 0x422b02
mov eax, 0x43b5ce
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcatA
push 1
push 0
push 0
push dword [ebp - 8]
push 0x41387e
push dword [0x43b160]
call sub.SHELL32.dll_ShellExecuteA
push eax
push dword [ebp - 8]
push 0
push dword [0x43b044]
call sub.KERNEL32.dll_HeapFree
or eax, eax
jne 0x422bcb
pushfd
pushal
sub esp, 0x6c
wait
fnsave dword [esp]
cld
mov eax, esp
and esp, 0xfffffffc
push eax
mov eax, dword [eax + 0x88]
push 0x43b054
call sub.KERNEL32.dll_EnterCriticalSection
push str.DBPLUGIN
push 0
push 0xff
push str.MemFree_failed
call fcn.0042929b
test dword [0x43b050], 1
je 0x422ba0
push str.DBPLUGIN
push 0
push 0x808080
push str.__frmcommn.asm__268_
call fcn.0042929b
push str.DBPLUGIN
push 0x80
push 0
push 0x436574
call fcn.0042929b
push 0x43b054
call sub.KERNEL32.dll_LeaveCriticalSection
pop esp
frstor dword [esp]
add esp, 0x6c
popal
popfd
xor eax, eax
pop eax
cmp eax, 0x20
jbe 0x422bd8
mov eax, 0
jmp 0x422bfa
push dword [0x44b854]
push 0xf
call fcn.0040a161
push 0
push 0
push eax
push dword [0x43b160]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop edi
pop ebx
pop ecx
pop esi
leave
ret 8
Function at 0x423470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x208]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.dll_lstrcatA
cmp dword [ebp + 0x10], 0
jne 0x4234b1
lea eax, [ebp - 0x408]
mov dword [ebp - 8], eax
jmp 0x4234b7
push dword [ebp + 0x10]
pop dword [ebp - 8]
mov eax, dword [ebp + 0xc]
inc dword [eax]
inc dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 8]
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4234f6
jmp 0x4234fe
cmp dword [ebp - 4], 0xa
jae 0x4234fe
jmp 0x4234b7
leave
ret 0xc

Function at 0x423502
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0x10]
call sub.USER32.dll_wsprintfA
add esp, 0xc
leave
ret 0xc

Function at 0x423544
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
lea eax, [ebp - 0x204]
push eax
push 0x200
call sub.KERNEL32.dll_GetTempPathA
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x43cefc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42357f
leave
ret 8
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.dll_DeleteFileA
dec dword [ebp - 4]
jmp 0x423575
Function at 0x423f96
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push 0xa5
lea eax, [ebp - 0xb5]
push eax
push dword [ebp + 8]
call fcn.0042b270
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x424093
mov dword [ebp - 0xa9], eax
cmp byte [ebp - 0x65], 0
jne 0x424033
push dword [ebp - 0xb5]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x42402a
push dword [ebp - 0xb5]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x42401e
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], 1
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xb5]
push eax
call fcn.0042b270
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x42402d
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x9d]
push dword [ebp - 0xad]
push dword [ebp - 0xa9]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x4240a3
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xa9]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x424091
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x424091
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], eax
jmp 0x4240a3
mov dword [ebp - 0xa5], 0
mov dword [ebp - 0x99], eax
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xb5]
push eax
call fcn.0042b270
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push 0xa5
lea eax, [ebp - 0xa5]
push eax
push dword [ebp + 8]
call fcn.0042b270
cmp dword [ebp - 0x50], 0
jne 0x4240e9
push dword [ebp - 0x54]
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0x50], eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x99]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x42416d
mov dword [ebp - 0x67], 0
mov byte [ebp - 0x63], 0
mov byte [ebp - 0x62], 0
mov byte [ebp - 0x61], 0
mov word [ebp - 0x69], 0
push 0x200
push dword [ebp - 0x4c]
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x5a], 0
mov dword [ebp - 0x59], 0
cmp dword [ebp - 0x10], 0
je 0x42417d
push 0x8000
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_VirtualFree
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x42417d
mov dword [ebp - 0x95], 0
mov dword [ebp - 0x89], eax
mov dword [ebp - 0x3c], 0
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xa5]
push eax
call fcn.0042b270
leave
ret 4
Function at 0x42419c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push 0xa5
lea eax, [ebp - 0xa5]
push eax
push dword [ebp + 8]
call fcn.0042b270
lea eax, [ebp - 0x71]
push eax
push 0x4004667f
push dword [ebp - 0x99]
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp - 0x71], 0
jne 0x4241d7
leave
ret 4
push dword [ebp - 0x71]
push 0x42
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x85], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x81], eax
push 0
push dword [ebp - 0x71]
push dword [ebp - 0x81]
push dword [ebp - 0x99]
call sub.WSOCK32.dll_recv
push eax
cmp eax, 0xffffffff
je 0x42427f
mov dword [ebp - 0x71], eax
cmp byte [ebp - 0x63], 0
jne 0x424226
lea eax, [ebp - 0xa5]
push eax
call fcn.0042462c
jmp 0x424267
cmp byte [ebp - 0x5a], 0
je 0x424238
cmp byte [ebp - 0x5a], 1
jne 0x42425b
cmp byte [ebp - 0x5c], 1
jne 0x42425b
cmp dword [ebp - 0x18], 2
je 0x424244
cmp dword [ebp - 0x18], 3
jne 0x424267
push dword [ebp - 0x71]
push dword [ebp - 0x81]
lea eax, [ebp - 0xa5]
push eax
call fcn.00424b0c
jmp 0x424267
lea eax, [ebp - 0xa5]
push eax
call fcn.00424583
push dword [ebp - 0x81]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x85]
call sub.KERNEL32.dll_GlobalFree
jmp 0x4242a2
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4242a2
cmp eax, 0x2734
je 0x4242a2
mov dword [ebp - 0x95], 0
mov dword [ebp - 0x89], eax
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0xa5]
push eax
call fcn.0042b270
pop eax
leave
ret 4
Function at 0x42462c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb58
push edi
push esi
push 0xa5
lea eax, [ebp - 0x4a5]
push eax
push dword [ebp + 8]
call fcn.0042b270
lea edi, [ebp - 0x400]
add edi, dword [ebp - 0x467]
mov esi, dword [ebp - 0x481]
push esi
call sub.KERNEL32.dll_lstrlenA
jmp 0x424873
cmp byte [esi], 0xa
jne 0x424866
cmp byte [esi - 2], 0xa
jne 0x424866
mov cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
mov byte [edi], 0
mov byte [ebp - 0x463], 1
mov dword [ebp - 0x475], esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x4a5]
push eax
call fcn.00424460
lea eax, [ebp - 0x43c]
push eax
call fcn.0042ab34
mov word [ebp - 0x469], ax
cmp byte [ebp - 0x43c], 0x33
jne 0x424782
mov byte [ebp - 0x461], 1
lea eax, [ebp - 0x400]
push eax
call sub.USER32.dll_CharLowerA
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ecx, eax
lea edi, [ebp - 0x400]
mov al, 0x6c
repne scasb al, byte es:[edi]
push edi
push ecx
dec edi
mov esi, str.location:
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
mov esi, edi
pop ecx
pop edi
je 0x424719
test ecx, ecx
jne 0x4246eb
lea eax, [ebp - 0x4a5]
push eax
call fcn.004242bb
jmp 0x42487b
push 0x200
lea eax, [ebp - 0x200]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov edi, esi
lea esi, [ebp - 0x200]
cmp byte [edi], 0x20
jne 0x424741
mov al, 0x20
mov ecx, 0x200
repe scasb al, byte es:[edi]
dec edi
jmp 0x424749
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
je 0x424758
cmp byte [edi], 0xd
je 0x424758
cmp byte [edi], 0xa
jne 0x424743
lea eax, [ebp - 0x200]
push eax
pop dword [ebp - 0x440]
lea eax, [ebp - 0x4a5]
push eax
call fcn.004242fc
lea eax, [ebp - 0x4a5]
push eax
call fcn.00423f96
jmp 0x424862
cmp word [ebp - 0x469], 0xcc
je 0x424796
cmp byte [ebp - 0x43c], 0x34
jne 0x4247a7
lea eax, [ebp - 0x4a5]
push eax
call fcn.004242bb
jmp 0x424862
cmp byte [ebp - 0x43c], 0x32
je 0x4247bd
cmp byte [ebp - 0x43c], 0x35
jne 0x424856
push str.multipart_
lea eax, [ebp - 0x400]
push eax
call fcn.00424895
cmp eax, 0
jbe 0x4247ef
mov byte [ebp - 0x45b], 1
mov byte [ebp - 0x45a], 1
lea eax, [ebp - 0x4a5]
push eax
call fcn.00424583
jmp 0x424862
push str.accept_ranges:
lea eax, [ebp - 0x400]
push eax
call fcn.00424895
cmp eax, 0
ja 0x424810
cmp word [ebp - 0x469], 0xce
jne 0x424819
mov byte [ebp - 0x45b], 1
jmp 0x424836
push str.Content_Range:
lea eax, [ebp - 0x400]
push eax
call fcn.00424895
cmp eax, 0
jbe 0x424836
mov byte [ebp - 0x45b], 1
cmp dword [ebp - 0x418], 2
je 0x424848
cmp dword [ebp - 0x418], 3
jne 0x424854
lea eax, [ebp - 0x4a5]
push eax
call fcn.00424a51
jmp 0x424862
lea eax, [ebp - 0x4a5]
push eax
call fcn.004242bb
jmp 0x42487b
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
inc dword [ebp - 0x467]
dec eax
or eax, eax
jne 0x424668
push 0xa5
push dword [ebp + 8]
lea eax, [ebp - 0x4a5]
push eax
call fcn.0042b270
pop esi
pop edi
leave
ret 4