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

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xa8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x40dd7c
cmp byte [esi], 0
je 0x40dd7c
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x40dd7c
cmp byte [eax], 0
je 0x40dd7c
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push edi
push ebx
push ebp
push eax
call fcn.0040ddb0
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
test ebx, ebx
jl 0x40dd63
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 0x40dd4a
push 0x4000
call fcn.0041a915
mov edi, eax
add esp, 4
test edi, edi
je 0x40dd3a
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.dll_LZRead
mov esi, eax
test esi, esi
jl 0x40dc7a
je 0x40dcd3
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]
test eax, eax
je 0x40dc93
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x40dcb3
add dword [esp + 0x10], eax
jmp 0x40dc40
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress:_LZRead_returned__d
push ebp
push ecx
call fcn.0040ddb0
add esp, 0x10
jmp 0x40dd06
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.0040ddb0
add esp, 0x10
jmp 0x40dd06
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.0040ddb0
add esp, 0x10
jmp 0x40dd06
push edi
call fcn.0041a842
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
jne 0x40dd2a
mov ecx, dword [esp + 0xb8]
push str.Success
push ebp
mov dword [esp + 0x1c], 1
push ecx
call fcn.0040ddb0
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 0x40dd1d
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 0x40dcfe
mov eax, dword [esp + 0xb8]
push str.Decompress_failed_to_alloc_copy_buffer
push ebp
push eax
jmp 0x40dcfe
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_create__s
push ebp
push ecx
call fcn.0040ddb0
add esp, 0x10
jmp 0x40dd11
mov edx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ebp
push edx
call fcn.0040ddb0
add esp, 0x10
jmp 0x40dd11
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push str.Invalid_arg_s_
push eax
push ecx
call fcn.0040ddb0
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 0x40e890
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
test ecx, ecx
push edi
je 0x40e942
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x40e942
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40e942
cmp byte [edi], 0
je 0x40e942
mov eax, dword [0x433528]
test eax, eax
jne 0x40e8e0
push 0x433528
mov dword [0x433528], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x431aa4
test eax, eax
je 0x40e904
cmp dword [0x433538], 2
jne 0x40e904
cmp dword [0x43352c], 5
jb 0x40e904
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 0x40e940
mov edx, dword [esp + 0x10]
push edi
push esi
push 0x42add0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40e950
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
test eax, eax
mov dword [edi], 0
je 0x40e996
cmp byte [eax], 0
je 0x40e996
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40e996
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi], ecx
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret
Function at 0x40f160
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425d4b
push eax
mov dword fs:[0], esp
sub esp, 0xcb4
push ebx
xor ebx, ebx
call fcn.00410900
test eax, eax
jne 0x40f19d
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.00410de0
mov ecx, 0x1f
xor 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.0040f2f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xcdc]
and ecx, 3
push eax
push eax
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
push 1
lea ecx, [esp + 0x4a8]
call fcn.0040f660
mov eax, dword [esp + 0xce0]
mov dword [esp + 0xccc], ebx
cmp eax, ebx
jne 0x40f231
mov eax, 0x431aa4
push eax
lea ecx, [esp + 0x98]
push str.User_Agent:_Gator_3.1_Log_r_n_s
push ecx
call fcn.0041b6e7
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.0040fba0
mov esi, eax
mov eax, dword [0x4336bc]
cmp eax, ebx
je 0x40f299
mov edx, dword [0x4336c0]
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 0x40f2a6
mov ebx, 1
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041a842
add esp, 4
lea ecx, [esp + 0x494]
mov dword [esp + 0xccc], 0xffffffff
call fcn.0040f780
mov ecx, dword [esp + 0xcc4]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc0
ret
Function at 0x40f390
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425d6b
push eax
mov dword fs:[0], esp
sub esp, 0xd30
push ebx
push ebp
mov ebp, dword [esp + 0xd48]
xor ebx, ebx
cmp ebp, ebx
je 0x40f542
cmp byte [ebp], bl
je 0x40f542
mov eax, dword [esp + 0xd4c]
cmp eax, ebx
je 0x40f542
cmp byte [eax], bl
je 0x40f542
call fcn.00410900
test eax, eax
je 0x40f542
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1f
xor 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.0040f560
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xd58]
and ecx, 3
push eax
push eax
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
push 1
lea ecx, [esp + 0x524]
call fcn.0040f660
mov ecx, 0x1f
xor 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 0x40f490
mov eax, 0x431aa4
push eax
lea edx, [esp + 0x114]
push str.User_Agent:_Gator_3.1_Log_r_n_s
push edx
call fcn.0041b6e7
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.0040fba0
mov esi, eax
mov eax, dword [0x4336bc]
cmp eax, ebx
je 0x40f4fd
mov ecx, dword [0x4336c0]
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 0x40f50c
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x508]
mov dword [esp + 0xd40], 0xffffffff
call fcn.0040f780
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
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xd3c
ret
Function at 0x410440
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
test ebp, ebp
je 0x41050a
cmp byte [ebp], 0
je 0x41050a
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x410508
push esi
push edi
mov edi, 0x42b398
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
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
mov esi, edi
mov ebp, ecx
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]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00410520
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 0x410520
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
test esi, esi
push edi
je 0x4105b7
cmp byte [esi], 0
je 0x4105b7
lea edx, [esp + 0x18]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4105b7
push ebp
push edi
call fcn.0041a915
add esp, 4
mov ebp, eax
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 0x42b398
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4105a4
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.0041a842
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 0x410630
Capabilities:
Initialize winsock library

Disassembly:
push 0x43439c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4106a0
mov eax, dword [0x434398]
sub esp, 0x1c8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x41076e
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41072c
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, 0xc
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 0x410722
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x30
push edx
mov dword [esp + 0x20], 0x4139a0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x41072c
mov dword [0x434398], 1
mov byte [0x4343a0], bl
lea eax, [esp + 0xc]
push ebx
push eax
push str.GetHostByNameTimeout
push str.softwareGator.comGatordyn
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], ebx
call fcn.0040ab80
add esp, 0x14
test eax, eax
je 0x410764
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [0x42ba54], eax
jne 0x41076e
mov dword [0x42ba54], 0x14
call fcn.00410830
test eax, eax
je 0x410820
cmp dword [0x42ba58], 0xffffffff
jne 0x410820
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
push 0x108
push 0x40
mov dword [0x42ba58], 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 [0x4343b0]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp eax, 0x25b
jne 0x4107f9
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
push 0x40
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 [0x4343b0]
cmp eax, ebx
jne 0x41080d
cmp dword [esp + 0x10], ebx
je 0x41080d
mov dword [0x42ba58], 1
push esi
call ebp
mov eax, dword [0x434398]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
mov eax, dword [0x434398]
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x4138a0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x4343f0]
sub esp, 0x1c4
test eax, eax
push esi
je 0x4138bd
mov eax, 1
pop esi
add esp, 0x1c4
ret
lea eax, [esp + 0x38]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41398c
push edi
push eax
mov dword [0x4343f0], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, 0xc
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]
test eax, eax
pop edi
jne 0x413937
lea edx, [esp + 8]
mov dword [esp + 8], 0x30
push edx
mov dword [esp + 0x14], 0x4139a0
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x41398c
mov byte [0x4344b0], 0
lea eax, [esp + 4]
push 0
push eax
push str.GetHostByNameTimeout
push str.softwareGator.comGatordyn
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x18], 0
call fcn.0040ab80
add esp, 0x14
test eax, eax
je 0x413975
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x42cdbc], eax
jne 0x41397f
mov dword [0x42cdbc], 0x14
mov eax, dword [0x4343f0]
pop esi
add esp, 0x1c4
ret
xor eax, eax
pop esi
add esp, 0x1c4
ret
Function at 0x4139c0
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 0x4139f4
movsx eax, byte [esi]
push eax
call fcn.0041b1b2
add esp, 4
test eax, eax
jne 0x4139ec
cmp byte [esi], 0x2e
jne 0x413a02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4139d7
pop esi
mov eax, 1
pop ebp
add esp, 0x424
ret
call fcn.004138a0
test eax, eax
jne 0x413a14
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 closesocket
push str.GatorAsyncWnd
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
je 0x413b4c
push edi
lea ecx, [esp + 0x34]
push 0x400
push ecx
push ebp
push 0x43e
push ebx
call sub.WSOCK32.dll_WSAAsyncGetHostByName
test eax, eax
mov dword [esp + 0x10], eax
je 0x413b44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x42cdbc]
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 0x413b36
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 0x413b09
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 0x413b09
mov ecx, dword [esp + 0x24]
shr ecx, 0x10
test cx, cx
jne 0x413b09
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
xor 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 [0x4344b0]
test al, al
jne 0x413b36
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x413a85
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
test esi, esi
jne 0x413b44
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_WSACancelAsyncRequest
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x424
ret
Function at 0x4142b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
push ebx
call fcn.00414ec0
add esp, 8
mov ecx, ebx
push str.send
push 0
push 1
call fcn.00414e60
test eax, eax
jne 0x4142dc
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test ebp, ebp
jge 0x4142f6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov edi, edx
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
mov esi, eax
cmp esi, 0xffffffff
je 0x414359
mov ecx, dword [esp + 0x18]
add ecx, esi
test esi, esi
mov dword [esp + 0x18], ecx
jle 0x414353
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 0x41436f
mov ecx, ebx
call fcn.00414e50
cmp eax, 0x2733
jne 0x41438a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x4143b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
ja 0x4143a2
mov al, byte [0x4344b0]
test al, al
jne 0x4143b9
jmp 0x414319
push eax
push str.Send_failed___d_.
push ebx
call fcn.00414ec0
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.00414ec0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov dl, byte [0x4344b0]
pop edi
test dl, dl
sete al
pop esi
pop ebp
and eax, 0xff
pop ebx
ret 8
Function at 0x414ab0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
push esi
push ebx
call fcn.00414ec0
mov eax, dword [ebx + 8]
add esp, 8
cmp eax, esi
jne 0x414ae4
push str.retrieve_file_headers
push 1
push 1
mov ecx, ebx
call fcn.00414e60
test eax, eax
jne 0x414ae4
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 8]
push ebp
cmp eax, esi
push edi
jne 0x414c24
push 0x2000
call fcn.00410db0
mov dword [ebx + 8], eax
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x10], esi
xor 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 0x414c16
cmp esi, 0x2000
jae 0x414baf
test ebp, ebp
jne 0x414bb3
mov eax, 0x2000
sub eax, esi
cmp eax, 0x80
jbe 0x414b54
mov eax, 0x80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
mov eax, esi
add eax, ecx
mov ecx, ebx
push eax
call fcn.00414c80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esi, eax
test ecx, ecx
jne 0x414b94
test eax, eax
jne 0x414b94
call edi
cmp eax, dword [esp + 0x1c]
ja 0x414c0e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 8]
push str._r_n_r_n
push ecx
call fcn.0041ae30
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x414b35
test ebp, ebp
je 0x414c16
mov ecx, ebx
mov byte [ebp], 0
call fcn.004143d0
cmp eax, 0x64
jne 0x414c2f
mov edx, dword [ebx + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
sub esi, 4
mov eax, esi
je 0x414bf4
mov ecx, eax
mov edi, edx
mov edx, ecx
lea esi, [ebp + 4]
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, eax
jmp 0x414bf9
xor esi, esi
mov byte [edx], 0
mov eax, dword [esp + 0x14]
xor ebp, ebp
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jge 0x414c24
jmp 0x414b0e
mov dword [esp + 0x10], 1
push str.Reply_contains_no_headers.
push ebx
call fcn.00414ec0
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 0x414c24
push esi
call fcn.00410db0
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
mov edi, eax
mov eax, ecx
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