joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e2c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xa8]
sub ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x40e4dc
cmp byte [esi], 0
je 0x40e4dc
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x40e4dc
cmp byte [eax], 0
je 0x40e4dc
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push edi
push ebx
push ebp
push eax
call fcn.0040e510
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
or ebx, ebx
jl 0x40e4c3
push 2
push 0
push ebx
call sub.LZ32.dll_LZSeek
push 0
push 0
push ebx
mov dword [esp + 0x28], eax
call sub.LZ32.dll_LZSeek
mov esi, dword [esp + 0xb4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40e4aa
push 0x4000
call fcn.0041b345
push eax
pop edi
add esp, 4
or edi, edi
je 0x40e49a
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.dll_LZRead
push eax
pop esi
or esi, esi
jl 0x40e3da
je 0x40e433
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
or eax, eax
je 0x40e3f3
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x40e413
add dword [esp + 0x10], eax
jmp 0x40e3a0
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress:_LZRead_returned__d
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
push edx
push str.Decompress_failed_to_write_to__s
push ebp
push eax
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
push ecx
push str.Decompress_failed_to_write_all_bytes_to__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
push edi
call fcn.0041b272
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
jne 0x40e48a
mov ecx, dword [esp + 0xb8]
push str.Success
push ebp
mov dword [esp + 0x1c], 1
push ecx
call fcn.0040e510
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebp
test ebx, ebx
jl 0x40e47d
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
mov edx, dword [esp + 0xb8]
push str.Decompress_failed_to_copy_all_bytes
push ebp
push edx
jmp 0x40e45e
mov eax, dword [esp + 0xb8]
push str.Decompress_failed_to_alloc_copy_buffer
push ebp
push eax
jmp 0x40e45e
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_create__s
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov edx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push str.Invalid_arg_s_
push eax
push ecx
call fcn.0040e510
add esp, 0xc
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x40eff0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
or ecx, ecx
push edi
je 0x40f0a2
mov ebp, dword [esp + 0x14]
or ebp, ebp
jle 0x40f0a2
mov edi, dword [esp + 0x18]
or edi, edi
je 0x40f0a2
cmp byte [edi], 0
je 0x40f0a2
mov eax, dword [0x432168]
test eax, eax
jne 0x40f040
push 0x432168
mov dword [0x432168], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x42fa7c
or eax, eax
je 0x40f064
cmp dword [0x432178], 2
jne 0x40f064
cmp dword [0x43216c], 5
jb 0x40f064
mov esi, str.Global_
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
call ebx
mov edx, eax
push edi
mov dword [esp + 0x1c], edx
call ebx
mov ecx, dword [esp + 0x18]
pop ebx
add ecx, eax
cmp ebp, ecx
jle 0x40f0a0
mov edx, dword [esp + 0x10]
push edi
push esi
push 0x42ae94
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40f0b0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], 0
or eax, eax
mov dword [edi], 0
je 0x40f0f6
cmp byte [eax], 0
je 0x40f0f6
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40f0f6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi], ecx
mov ecx, dword [esi]
xor eax, eax
or ecx, ecx
pop edi
pop esi
setne al
ret
Function at 0x40f5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42577b
push eax
mov dword fs:[0], esp
sub esp, 0xcb4
push ebx
xor ebx, ebx
call fcn.0040fde0
or eax, eax
jne 0x40f5fd
pop ebx
mov ecx, dword [esp + 0xcb4]
mov dword fs:[0], ecx
add esp, 0xcc0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
call ebp
mov ecx, dword [esp + 0xcd8]
mov edx, dword [esp + 0xcd4]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.00410290
mov ecx, 0x1f
sub eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
call fcn.0040f760
mov edi, eax
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ecx
pop eax
push edi
pop esi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
pop ecx
mov eax, dword [0x4322fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xcdc]
neg eax
sbb eax, eax
push ecx
and eax, 2
push ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x4a8]
call fcn.00410510
mov eax, dword [esp + 0xce0]
mov dword [esp + 0xccc], ebx
cmp eax, ebx
jne 0x40f69d
mov eax, 0x42fa7c
push eax
lea ecx, [esp + 0x98]
push str.User_Agent:_Qwert_3.1_Log_r_n_s
push ecx
call fcn.0041c117
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push edx
push eax
push str._Cmd_client_log_event
push ecx
lea ecx, [esp + 0x4a4]
call fcn.00410a50
push eax
pop esi
mov eax, dword [0x432300]
cmp eax, ebx
je 0x40f705
mov edx, dword [0x432304]
mov ecx, dword [esp + 0x10]
push edx
push esi
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0x24]
push str._Cmd_client_log_event
push ecx
call eax
add esp, 0x18
cmp esi, 0xc8
jne 0x40f712
push 1
pop ebx
pushal
popal
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041b272
add esp, 4
lea ecx, [esp + 0x494]
mov dword [esp + 0xccc], 0xffffffff
call fcn.00410630
mov ecx, dword [esp + 0xcc4]
pop edi
pop esi
push ebx
pop eax
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc0
ret
Function at 0x40f800
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42579b
push eax
mov dword fs:[0], esp
sub esp, 0xd30
push ebx
push ebp
mov ebp, dword [esp + 0xd48]
sub ebx, ebx
cmp ebp, ebx
je 0x40f9be
cmp byte [ebp], bl
je 0x40f9be
mov eax, dword [esp + 0xd4c]
cmp eax, ebx
je 0x40f9be
cmp byte [eax], bl
je 0x40f9be
call fcn.0040fde0
or eax, eax
je 0x40f9be
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
nop
nop
push 0x1f
pop ecx
sub eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040f9e0
push eax
pop edi
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ecx
pop eax
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
pop ecx
mov eax, dword [0x4322fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xd58]
neg eax
sbb eax, eax
push ecx
and eax, 2
push ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x524]
call fcn.00410510
mov ecx, 0x1f
sub eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
lea ecx, [esp + 0x94]
push str._rs.dll__s
push ecx
mov dword [esp + 0xd54], ebx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0xd68]
add esp, 0xc
cmp eax, ebx
jne 0x40f90c
mov eax, 0x42fa7c
push eax
lea edx, [esp + 0x114]
push str.User_Agent:_Qwert_3.1_Log_r_n_s
push edx
call fcn.0041c117
mov edi, dword [esp + 0xd60]
add esp, 0xc
lea eax, [esp + 0x110]
lea ecx, [esp + 0x90]
push edi
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x520]
call fcn.00410a50
push eax
pop esi
mov eax, dword [0x432300]
cmp eax, ebx
je 0x40f979
mov ecx, dword [0x432304]
lea edx, [esp + 0x110]
push ecx
push esi
push edi
push edx
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x20]
push ecx
push edx
call eax
add esp, 0x18
pop edi
cmp esi, 0xc8
pop esi
jne 0x40f988
nop
push 1
nop
pop ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [esp + 0x508]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00410630
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0xd30]
mov dword fs:[0], ecx
add esp, 0xd3c
ret
mov ecx, dword [esp + 0xd38]
pop ebp
sub eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xd3c
ret
Function at 0x40faf0
Capabilities:
Initialize winsock library

Disassembly:
push 0x4324a4
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x40fb60
mov eax, dword [0x4324a0]
sub esp, 0x1c8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x40fc2e
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40fbec
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
nop
push 0xc
nop
pop ecx
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40fbe2
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x30
push edx
mov dword [esp + 0x20], 0x40fcf0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40fbec
mov dword [0x4324a0], 1
mov byte [0x4324a8], bl
lea eax, [esp + 0xc]
push ebx
push eax
push str.GetHostByNameTimeout
push str.softwareQwertyuioQwertdyn
push 0x80000002
mov dword [esp + 0x20], ebx
call fcn.0040afb0
add esp, 0x14
test eax, eax
je 0x40fc24
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [0x42b8d8], eax
jne 0x40fc2e
mov dword [0x42b8d8], 0x14
call fcn.0040fd10
test eax, eax
je 0x40fce0
cmp dword [0x42b8dc], 0xffffffff
jne 0x40fce0
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebp
push 0x108
push pe_nt_image_headers32
mov dword [0x42b8dc], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
mov dword [esi], 0x108
push ebx
mov dword [esp + 0x28], 0x108
mov dword [esp + 0x24], ebx
call dword [0x4324b8]
mov ebp, dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp eax, 0x25b
jne 0x40fcb9
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
push pe_nt_image_headers32
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
push ebx
mov dword [esi], 0x108
call dword [0x4324b8]
cmp eax, ebx
jne 0x40fccd
cmp dword [esp + 0x10], ebx
je 0x40fccd
mov dword [0x42b8dc], 1
push esi
call ebp
mov eax, dword [0x4324a0]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
mov eax, dword [0x4324a0]
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x411420
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x104
xor al, al
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x110]
mov dword [ebx], 0
mov dword [ecx], 0
or ebp, ebp
je 0x4114ea
cmp byte [ebp], 0
je 0x4114ea
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
or eax, eax
je 0x4114e8
push esi
push edi
mov edi, 0x42b380
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
push edi
pop esi
push edx
pop edi
push ecx
pop edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edi
pop esi
push ecx
pop ebp
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x120]
push ebp
pop ecx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00411500
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
xor al, al
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x411500
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 8
mov dword [eax], 0
mov dword [ecx], 0
push ebx
push esi
mov esi, dword [esp + 0x14]
xor bl, bl
or esi, esi
push edi
je 0x411597
cmp byte [esi], 0
je 0x411597
lea edx, [esp + 0x18]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
pop edi
test edi, edi
je 0x411597
push ebp
push edi
call fcn.0041b345
add esp, 4
push eax
pop ebp
mov eax, dword [esp + 0x1c]
push ebp
push edi
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x42b380
push ebp
call sub.VERSION.dll_VerQueryValueA
or eax, eax
je 0x411584
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov bl, 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebp
call fcn.0041b272
add esp, 4
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret
Function at 0x414940
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x4337f0]
sub esp, 0x1c4
test eax, eax
push esi
je 0x41495d
nop
push 1
nop
pop eax
pop esi
add esp, 0x1c4
ret
lea eax, [esp + 0x38]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
or eax, eax
jne 0x414a2c
push edi
push eax
mov dword [0x4337f0], 1
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
nop
push 0xc
nop
pop ecx
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
or eax, eax
pop edi
jne 0x4149d7
lea edx, [esp + 8]
mov dword [esp + 8], 0x30
push edx
mov dword [esp + 0x14], 0x40fcf0
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x414a2c
mov byte [0x4338b0], 0
lea eax, [esp + 4]
push 0
push eax
push str.GetHostByNameTimeout
push str.softwareQwertyuioQwertdyn
push 0x80000002
mov dword [esp + 0x18], 0
call fcn.0040afb0
add esp, 0x14
or eax, eax
je 0x414a15
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x42d23c], eax
jne 0x414a1f
mov dword [0x42d23c], 0x14
mov eax, dword [0x4337f0]
pop esi
add esp, 0x1c4
ret
xor eax, eax
pop esi
add esp, 0x1c4
ret
Function at 0x414ac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x424
push ebp
mov ebp, dword [esp + 0x42c]
push esi
mov esi, ebp
cmp byte [ebp], 0
je 0x414af4
movsx eax, byte [esi]
push eax
call fcn.0041bca2
add esp, 4
or eax, eax
jne 0x414aec
cmp byte [esi], 0x2e
jne 0x414b02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x414ad7
pop esi
pushal
popal
push 1
pop eax
pop ebp
add esp, 0x424
ret
call fcn.00414940
test eax, eax
jne 0x414b14
pop esi
pop ebp
add esp, 0x424
ret
xor esi, esi
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x80000000
push str.GatorAsyncWnd
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
or ebx, ebx
je 0x414c4c
push edi
lea ecx, [esp + 0x34]
push 0x400
push ecx
push ebp
push 0x43e
push ebx
call sub.WSOCK32.dll_WSAAsyncGetHostByName
or eax, eax
mov dword [esp + 0x10], eax
je 0x414c44
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [0x42d23c]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*8]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [esp + 0x14], eax
jbe 0x414c36
push 1
push 0
push 0
lea ecx, [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x414c09
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x1c], 0x43e
jne 0x414c09
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
test cx, cx
jne 0x414c09
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
mov al, byte [0x4338b0]
test al, al
jne 0x414c36
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
test esi, esi
je 0x414b85
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
push esi
pop eax
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
test esi, esi
jne 0x414c44
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_WSACancelAsyncRequest
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
push esi
pop eax
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
Function at 0x4153e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
push ecx
pop ebx
push 0
push ebx
call fcn.00415ff0
add esp, 8
mov ecx, ebx
push str.send
push 0
push 1
call fcn.00415f90
test eax, eax
jne 0x41540c
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
or ebp, ebp
jge 0x415426
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
push edx
pop edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
push 0
push ebp
push edi
push eax
call sub.WSOCK32.dll_send
push eax
pop esi
cmp esi, 0xffffffff
je 0x415489
mov ecx, dword [esp + 0x18]
add ecx, esi
test esi, esi
mov dword [esp + 0x18], ecx
jle 0x415483
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov dword [esp + 0x14], edx
add edi, esi
sub ebp, esi
jmp 0x41549f
mov ecx, ebx
call fcn.00415f80
cmp eax, 0x2733
jne 0x4154ba
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
test ebp, ebp
je 0x4154e9
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [esp + 0x14]
ja 0x4154d2
mov al, byte [0x4338b0]
test al, al
jne 0x4154e9
jmp 0x415449
push eax
push str.Send_failed___d_.
push ebx
call fcn.00415ff0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
push str.Send_timed_out.
push ebx
call fcn.00415ff0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov dl, byte [0x4338b0]
pop edi
test dl, dl
sete al
pop esi
pop ebp
and eax, 0xff
pop ebx
ret 8
Function at 0x415be0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push esi
sub esi, esi
push ecx
pop ebx
push esi
push ebx
call fcn.00415ff0
mov eax, dword [ebx + 8]
add esp, 8
cmp eax, esi
jne 0x415c14
push str.retrieve_file_headers
push 1
push 1
push ebx
pop ecx
call fcn.00415f90
or eax, eax
jne 0x415c14
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 8]
push ebp
cmp eax, esi
push edi
jne 0x415d54
push 0x2000
call fcn.00414f90
mov dword [ebx + 8], eax
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x10], esi
sub ebp, ebp
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ecx, dword [ebx + 0x24]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], edx
jne 0x415d46
cmp esi, 0x2000
jae 0x415cdf
or ebp, ebp
jne 0x415ce3
mov eax, 0x2000
sub eax, esi
cmp eax, 0x80
jbe 0x415c84
mov eax, 0x80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push esi
pop eax
add eax, ecx
push ebx
pop ecx
push eax
call fcn.00415db0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esi, eax
test ecx, ecx
jne 0x415cc4
or eax, eax
jne 0x415cc4
call edi
cmp eax, dword [esp + 0x1c]
ja 0x415d3e
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebx + 8]
push str._r_n_r_n
push ecx
call fcn.0041b780
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 8
or eax, eax
je 0x415c65
test ebp, ebp
je 0x415d46
mov ecx, ebx
mov byte [ebp], 0
call fcn.00415500
cmp eax, 0x64
jne 0x415d5f
mov edx, dword [ebx + 8]
or ecx, 0xffffffff
push edx
pop edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
sub esi, 4
push esi
pop eax
je 0x415d24
mov ecx, eax
push edx
pop edi
mov edx, ecx
lea esi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
pop esi
jmp 0x415d29
xor esi, esi
mov byte [edx], 0
mov eax, dword [esp + 0x14]
sub ebp, ebp
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jge 0x415d54
jmp 0x415c3e
mov dword [esp + 0x10], 1
push str.Reply_contains_no_headers.
push ebx
call fcn.00415ff0
add esp, 8
mov eax, dword [ebx + 8]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
mov edi, dword [ebx + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
add esi, 0xfffffffc
test esi, esi
mov dword [ebx + 0x10], esi
je 0x415d54
push esi
call fcn.00414f90
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
mov edi, eax
push ecx
pop eax
lea esi, [ebp + 4]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret