joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41193d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
cmp dword [0x4294d7], 0
jne 0x4119a5
push dword [0x42989b]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [0x4294d7], eax
cmp eax, 0
je 0x411ae4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [0x42989b]
call sub.GDI32.dll_CreateCompatibleBitmap
or eax, eax
jne 0x411994
push dword [0x4294d7]
call sub.GDI32.dll_DeleteDC
mov dword [0x4294d7], 0
jmp 0x411ae4
push eax
push dword [0x4294d7]
call sub.GDI32.dll_SelectObject
mov dword [0x4294db], eax
cmp dword [0x4294df], 1
jne 0x411a4d
lea eax, [ebp - 0x20]
push eax
push dword [0x429048]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x14], eax
push 0
push 1
push 1
push 0
push 0
push dword [0x429048]
call sub.USER32.dll_MoveWindow
cmp dword [0x42961a], 1
jne 0x411a0f
lea eax, [ebp - 0x30]
push eax
push dword [0x43513c]
call sub.USER32.dll_GetWindowRect
push 0
push 1
push 1
push 0
push 0
push dword [0x43513c]
call sub.USER32.dll_MoveWindow
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
add eax, dword [ebp + 0x10]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x411ae8
call sub.USER32.dll_EnumWindows
cmp dword [0x429563], 1
jne 0x411a4d
mov dword [0x429563], 0
leave
ret 0x10
push 0xcc0020
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x42989b]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
push dword [0x4294d7]
call sub.GDI32.dll_BitBlt
cmp dword [0x4294df], 1
jne 0x411ae4
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [0x429048]
call sub.USER32.dll_MoveWindow
cmp dword [0x42961a], 1
jne 0x411ac3
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x24], eax
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [0x43513c]
call sub.USER32.dll_MoveWindow
push dword [0x4298e9]
call fcn.0041151d
cmp eax, 1
jne 0x411ada
push 0
call fcn.00412416
mov dword [0x429563], 0
leave
ret 0x10
Function at 0x413814
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
call fcn.00413793
or eax, eax
je 0x41393d
mov dword [ebp - 0x414], eax
push 0x104
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x429491
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.DLL_lstrcatA
push dword [0x42ad2b]
push 0
call fcn.004065e2
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 0x41393d
push dword [0x435260]
push 7
call fcn.004065e2
mov dword [ebp - 0x41c], eax
inc dword [ebp - 0x414]
push dword [0x42ad2b]
push dword [ebp - 0x414]
call fcn.004065e2
push 4
push dword [ebp - 0x41c]
push eax
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x41393d
push dword [0x42ad33]
push 3
call fcn.004065e2
push dword [0x42ad33]
push dword [ebp + 8]
push eax
call fcn.00413941
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.DLL_GetBinaryTypeA
or eax, eax
jne 0x41393d
push dword [0x435260]
push 7
call fcn.004065e2
mov dword [ebp - 0x41c], eax
push dword [0x42ad33]
push 9
call fcn.004065e2
push 4
push dword [ebp - 0x41c]
push eax
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x41393d
jmp 0x4138d2
leave
ret 4
Function at 0x413941
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
mov dword [ebp - 0x2b4], 0
lea eax, [ebp - 0x2a1]
push eax
lea eax, [ebp - 0x2b4]
push eax
push str.DWB_Temp_File_Temp_u.tmp
call fcn.00418711
cmp eax, 0xffffffff
je 0x413a24
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.004065e2
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
push 6
call fcn.004065e2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2ac], eax
push dword [ebp + 0xc]
pop dword [ebp - 0x2c]
lea eax, [ebp - 0xa1]
push eax
push 2
push 0
push dword [ebp + 8]
call fcn.00417fb4
push eax
or eax, eax
jne 0x4139fc
push dword [ebp + 0x10]
push 7
call fcn.004065e2
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x2a1]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2b0]
push eax
push 0x413a28
push dword [ebp + 0xc]
push str.PostPrgsDlg
push dword [0x429044]
call sub.USER32.dll_DialogBoxParamA
lea eax, [ebp - 0x2a1]
push eax
call sub.KERNEL32.DLL_DeleteFileA
pop eax
or eax, eax
je 0x413a24
push 0
push 0x429aa2
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 [0x429048]
call sub.USER32.dll_MessageBoxA
leave
ret 0xc

Function at 0x413b74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 0x18], 2
je 0x413bc1
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 0x413bfd
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 3
jne 0x413bb7
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
pop eax
jmp 0x413bfd
cmp dword [ebp + 0x18], 4
jne 0x413bc7
jmp 0x413bfd
push dword [ebp + 0xc]
pop dword [ebp - 4]
cmp dword [ebp + 0x18], 1
jne 0x413bdb
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 0x413bfd
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
leave
ret 0x14
Function at 0x413f93
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 0x413fd9
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
je 0x413ff4
push 0x429491
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 0x4149fd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
cmp dword [0x429763], 0
je 0x414a59
mov esi, dword [0x429763]
mov dword [ebp - 4], 0
mov eax, dword [0x42975f]
jmp 0x414a54
cmp dword [esi + 0xc], 1
jne 0x414a49
cmp dword [esi + 0x38], 0
je 0x414a49
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 [0x42975f]
cmp dword [ebp - 4], eax
jb 0x414a20
cmp dword [0x42976f], 0
je 0x414aa0
mov esi, dword [0x42976f]
mov dword [ebp - 4], 0
mov eax, dword [0x42976b]
jmp 0x414a9b
cmp dword [esi], 0
je 0x414a90
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 [0x42976b]
cmp dword [ebp - 4], eax
jb 0x414a76
leave
ret
Function at 0x415304
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 0x41533a
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 0x41536e
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 0x41642e
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 0x416456
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 0x41648a
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 0x417ee2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push esi
push ecx
push ebx
push edi
mov byte [ebp - 0x404], 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 0x4294b2
lea eax, [ebp - 0x404]
push eax
push 1
call fcn.0041ddc8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041de7c
cmp dword [ebp - 4], 0
jbe 0x417f40
cmp dword [ebp - 4], eax
jne 0x417f39
mov eax, 0x42949f
jmp 0x417f45
mov eax, 0x4294a6
jmp 0x417f45
mov eax, 0x4294b2
push eax
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 1
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 0x40e22c
push dword [0x429048]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x417f8a
mov eax, 0
jmp 0x417fac
push dword [0x435264]
push 0xf
call fcn.004065e2
push 0
push 0
push eax
push dword [0x429048]
call sub.USER32.dll_MessageBoxA
mov eax, 1
pop edi
pop ebx
pop ecx
pop esi
leave
ret 8
Function at 0x418711
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 0x418752
lea eax, [ebp - 0x408]
mov dword [ebp - 8], eax
jmp 0x418758
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 0x418797
jmp 0x41879f
cmp dword [ebp - 4], 0xa
jae 0x41879f
jmp 0x418758
leave
ret 0xc

Function at 0x4187a3
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 0x4187e5
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 [0x42abe5]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x418820
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 0x418816
Function at 0x418f84
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, 0xffffff4c
push 0xa1
lea eax, [ebp - 0xb1]
push eax
push dword [ebp + 8]
call fcn.0041df10
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
je 0x419081
mov dword [ebp - 0xa5], eax
cmp byte [ebp - 0x61], 0
jne 0x419021
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x419018
push dword [ebp - 0xb1]
call sub.WSOCK32.dll_gethostbyname
or eax, eax
jne 0x41900c
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], 1
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xb1]
push eax
call fcn.0041df10
leave
ret 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x41901b
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp - 0xad]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x31
push dword [ebp - 0x99]
push dword [ebp - 0xa9]
push dword [ebp - 0xa5]
call sub.WSOCK32.dll_WSAAsyncSelect
or eax, eax
jne 0x419091
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xa5]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x41907f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41907f
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], eax
jmp 0x419091
mov dword [ebp - 0xa1], 0
mov dword [ebp - 0x95], eax
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xb1]
push eax
call fcn.0041df10
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0xa1
lea eax, [ebp - 0xa1]
push eax
push dword [ebp + 8]
call fcn.0041df10
push dword [ebp - 0x50]
call sub.KERNEL32.DLL_lstrlenA
push 0
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x95]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x419150
mov dword [ebp - 0x63], 0
mov byte [ebp - 0x5f], 0
mov byte [ebp - 0x5e], 0
mov byte [ebp - 0x5d], 0
mov word [ebp - 0x65], 0
push 0x200
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 0
mov dword [ebp - 0x55], 0
cmp dword [ebp - 0x10], 0
je 0x419160
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 0x419160
mov dword [ebp - 0x91], 0
mov dword [ebp - 0x85], eax
mov dword [ebp - 0x3c], 0
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xa1]
push eax
call fcn.0041df10
leave
ret 4
Function at 0x41917f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0xa1
lea eax, [ebp - 0xa1]
push eax
push dword [ebp + 8]
call fcn.0041df10
lea eax, [ebp - 0x6d]
push eax
push 0x4004667f
push dword [ebp - 0x95]
call sub.WSOCK32.dll_ioctlsocket
cmp dword [ebp - 0x6d], 0
jne 0x4191ba
leave
ret 4
push dword [ebp - 0x6d]
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x81], eax
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0x7d], eax
push 0
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
push dword [ebp - 0x95]
call sub.WSOCK32.dll_recv
push eax
cmp eax, 0xffffffff
je 0x419256
mov dword [ebp - 0x6d], eax
cmp byte [ebp - 0x5f], 0
jne 0x419203
lea eax, [ebp - 0xa1]
push eax
call fcn.0041960a
jmp 0x419241
cmp byte [ebp - 0x56], 0
je 0x419215
cmp byte [ebp - 0x56], 1
jne 0x419235
cmp byte [ebp - 0x58], 1
jne 0x419235
cmp dword [ebp - 0x18], 2
je 0x419221
cmp dword [ebp - 0x18], 3
jne 0x419241
push dword [ebp - 0x6d]
push dword [ebp - 0x7d]
lea eax, [ebp - 0xa1]
push eax
call fcn.00419aea
jmp 0x419241
lea eax, [ebp - 0xa1]
push eax
call fcn.00419564
push dword [ebp - 0x7d]
call sub.KERNEL32.DLL_GlobalUnlock
push dword [ebp - 0x81]
call sub.KERNEL32.DLL_GlobalFree
jmp 0x419279
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x419279
cmp eax, 0x2734
je 0x419279
mov dword [ebp - 0x91], 0
mov dword [ebp - 0x85], eax
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0xa1]
push eax
call fcn.0041df10
pop eax
leave
ret 4
Function at 0x41960a
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb5c
push edi
push esi
push 0xa1
lea eax, [ebp - 0x4a1]
push eax
push dword [ebp + 8]
call fcn.0041df10
lea edi, [ebp - 0x400]
add edi, dword [ebp - 0x463]
mov esi, dword [ebp - 0x47d]
push esi
call sub.KERNEL32.DLL_lstrlenA
jmp 0x419851
cmp byte [esi], 0xa
jne 0x419844
cmp byte [esi - 2], 0xa
jne 0x419844
mov cl, byte [esi]
mov byte [edi], cl
inc esi
inc edi
mov byte [edi], 0
mov byte [ebp - 0x45f], 1
mov dword [ebp - 0x471], esi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419437
lea eax, [ebp - 0x43c]
push eax
call fcn.0041d854
mov word [ebp - 0x465], ax
cmp byte [ebp - 0x43c], 0x33
jne 0x419760
mov byte [ebp - 0x45d], 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 0x4196f7
test ecx, ecx
jne 0x4196c9
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419292
jmp 0x419859
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 0x41971f
mov al, 0x20
mov ecx, 0x200
repe scasb al, byte es:[edi]
dec edi
jmp 0x419727
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
je 0x419736
cmp byte [edi], 0xd
je 0x419736
cmp byte [edi], 0xa
jne 0x419721
lea eax, [ebp - 0x200]
push eax
pop dword [ebp - 0x440]
lea eax, [ebp - 0x4a1]
push eax
call fcn.004192d3
lea eax, [ebp - 0x4a1]
push eax
call fcn.00418f84
jmp 0x419840
cmp word [ebp - 0x465], 0xcc
je 0x419774
cmp byte [ebp - 0x43c], 0x34
jne 0x419785
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419292
jmp 0x419840
cmp byte [ebp - 0x43c], 0x32
je 0x41979b
cmp byte [ebp - 0x43c], 0x35
jne 0x419834
push str.multipart_
lea eax, [ebp - 0x400]
push eax
call fcn.00419873
cmp eax, 0
jbe 0x4197cd
mov byte [ebp - 0x457], 1
mov byte [ebp - 0x456], 1
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419564
jmp 0x419840
push str.accept_ranges:
lea eax, [ebp - 0x400]
push eax
call fcn.00419873
cmp eax, 0
ja 0x4197ee
cmp word [ebp - 0x465], 0xce
jne 0x4197f7
mov byte [ebp - 0x457], 1
jmp 0x419814
push str.Content_Range:
lea eax, [ebp - 0x400]
push eax
call fcn.00419873
cmp eax, 0
jbe 0x419814
mov byte [ebp - 0x457], 1
cmp dword [ebp - 0x418], 2
je 0x419826
cmp dword [ebp - 0x418], 3
jne 0x419832
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419a2f
jmp 0x419840
lea eax, [ebp - 0x4a1]
push eax
call fcn.00419292
jmp 0x419859
mov cl, byte [esi]
mov byte [edi], cl
inc edi
inc esi
inc dword [ebp - 0x463]
dec eax
or eax, eax
jne 0x419646
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0x4a1]
push eax
call fcn.0041df10
pop esi
pop edi
leave
ret 4
Function at 0x419a54
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x34]
sub ecx, eax
push ecx
push dword [esi + 0x30]
push dword [ebp + 8]
call fcn.00419aea
cmp eax, 1
jne 0x419ae5
push eax
lea eax, [esi + 0x34]
push eax
push 0x4004667f
push dword [esi + 0xc]
call sub.WSOCK32.dll_ioctlsocket
pop eax
cmp dword [esi + 0x34], 0
je 0x419ad4
push 0x42
push dword [esi + 0x34]
push dword [esi + 0x20]
call sub.KERNEL32.DLL_GlobalReAlloc
mov dword [esi + 0x20], eax
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [esi + 0x24], eax
push 0
push dword [esi + 0x34]
push dword [esi + 0x24]
push dword [esi + 0xc]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x419ac5
mov eax, 0
jmp 0x419ad4
mov dword [esi + 0x34], eax
push eax
push dword [esi + 0x24]
push dword [ebp + 8]
call fcn.00419aea
cmp eax, 1
jne 0x419ae5
cmp byte [esi + 0x43], 1
jne 0x419ae5
push esi
call fcn.00419292
pop esi
leave
ret 4

Function at 0x419aea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
je 0x419b40
cmp dword [esi + 0x89], 3
jne 0x419b2c
cmp dword [esi + 0x91], 0
jne 0x419b2c
push 4
push 0x1000
push dword [esi + 0x2c]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [esi + 0x91], eax
push dword [esi + 0x2c]
pop dword [esi + 0x95]
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jbe 0x419b40
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x38]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jne 0x419b52
mov dword [esi + 0x71], 1
cmp dword [esi + 0x89], 2
jne 0x419b75
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x69]
call sub.KERNEL32.DLL_WriteFile
push eax
jmp 0x419c28
cmp dword [esi + 0x89], 3
jne 0x419c28
mov eax, dword [esi + 0x99]
add eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x95]
ja 0x419b9c
cmp dword [esi + 0x91], 0
jne 0x419bf6
shl eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 4], eax
cmp dword [esi + 0x91], 0
je 0x419be4
push dword [esi + 0x99]
push dword [ebp - 4]
push dword [esi + 0x91]
call fcn.0041df10
push 0x8000
push 0
push dword [esi + 0x91]
call sub.KERNEL32.DLL_VirtualFree
push dword [ebp - 4]
pop dword [esi + 0x91]
push dword [ebp - 8]
pop dword [esi + 0x95]
cmp dword [esi + 0x91], 0
je 0x419c28
mov eax, dword [esi + 0x91]
add eax, dword [esi + 0x99]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0041df10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
add dword [esi + 0x99], eax
mov eax, 1
cmp eax, 1
jne 0x419c44
mov eax, dword [ebp - 0xc]
add dword [esi + 0x38], eax
add dword [esi + 0x4c], eax
cmp dword [esi + 0x6d], 0
je 0x419c44
push dword [ebp + 8]
call fcn.00418b15
pop eax
pop esi
leave
ret 0xc