joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov eax, 7
mov ebp, esp
push esi
push ebx
sub esp, 0x30
lea ebx, [ebp - 0x10]
mov esi, dword [ebp + 8]
mov edx, ebx
lea esi, [esi]
lea edi, [edi]
mov byte [edx], 0
inc edx
dec eax
jns 0x4016e0
mov ecx, esi
mov edx, esi
and ecx, 0x1f
mov eax, 1
shr edx, 5
shl eax, cl
or dword [ebx + edx*4], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esi + 1]
mov dword [esp + 4], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov dword [esp], eax
call sub.cygwin1.dll_select
test eax, eax
sete al
add esp, 0x30
pop ebx
movzx eax, al
pop esi
pop ebp
ret

Function at 0x4019f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
xor ebx, ebx
fld qword [ebp + 0x14]
mov edx, dword [0x4300a0]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test edx, edx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
fstp qword [ebp - 0x20]
je 0x401a46
cmp dword [0x424004], esi
je 0x401adb
mov dword [esp + 4], esi
mov dword [esp], edx
call fcn.0040c4b0
mov dword [0x430030], eax
mov ebx, eax
mov eax, dword [0x4300b0]
mov dword [0x424004], esi
mov dword [0x430040], eax
fld qword [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov dword [esp], 1
fstp qword [esp + 4]
call fcn.00401840
test eax, eax
mov edx, 0xffffffff
je 0x401aaf
test ebx, ebx
je 0x401a80
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x401ac0
jmp 0x401a80
mov dword [esp + 8], edi
mov ecx, 2
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_recv
cmp eax, 0xffffffff
mov ebx, eax
jne 0x401aad
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x401a80
mov edx, ebx
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp ecx
mov eax, dword [0x4300b0]
cmp dword [0x430040], eax
jne 0x401a23
mov ebx, dword [0x430030]
jmp 0x401a46
Function at 0x401cd0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x28]
push ebx
sub esp, 0x5c
mov dword [esp + 8], eax
mov eax, 1
mov dword [ebp - 0x2c], 1
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.cygwin1.dll_socket
test eax, eax
mov ebx, eax
mov edx, 0xffffffff
js 0x401de1
mov dword [esp], ebx
mov eax, 4
mov ecx, 0xffff
mov dword [esp + 0x10], eax
mov edi, 4
lea eax, [ebp - 0x2c]
mov dword [esp + 8], edi
mov edi, esi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_setsockopt
cld
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call fcn.00401370
mov eax, esi
call fcn.004013c0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_bind
test eax, eax
js 0x401e0e
mov edx, dword [0x438b14]
test edx, edx
jne 0x401e1d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x401dca
mov eax, esi
call fcn.004013c0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_getsockname
test eax, eax
js 0x401e0e
cmp word [ebp - 0x28], 2
jne 0x401e32
movzx eax, word [ebp - 0x26]
xchg ah, al
mov edi, dword [ebp + 0xc]
movzx eax, ax
mov dword [edi], eax
mov eax, dword [0x438b14]
test eax, eax
jne 0x401deb
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_listen
test eax, eax
mov edx, ebx
js 0x401e0e
add esp, 0x5c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040ce50
mov edx, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], str.binding_to_address__s_using_port__i._n
mov dword [esp + 8], edx
call fcn.004174e0
jmp 0x401dca
mov dword [esp], ebx
call fcn.00401c30
mov edx, 0xffffffff
jmp 0x401de1
mov dword [esp + 4], ebx
mov dword [esp], str.Local_socket_fd__d_bound._n
call fcn.004174e0
jmp 0x401d82
call sub.cygwin1.dll_abort
mov esi, esi
lea edi, [edi]
Function at 0x402430
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call sub.cygwin1.dll_strlen
cmp ebx, 2
mov edi, eax
je 0x402514
lea eax, [eax + 0x24]
and eax, 0xfffffff0
call fcn.00422c50
mov edx, dword [ebp - 0x10]
lea esi, [esp + 0x23]
and esi, 0xfffffff0
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.cygwin1.dll_strcpy
mov dword [esi + edi], 0x69726f2e
mov word [esi + edi + 4], 0x67
mov eax, dword [0x4300e0]
test eax, eax
je 0x4024b0
mov edx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00421a70
test eax, eax
je 0x4024e0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0
call fcn.0040ca80
mov dword [0x4300e0], eax
mov edx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00421a70
test eax, eax
jne 0x4024a2
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_rename
test eax, eax
jne 0x402547
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [0x4300e0]
mov dword [esp], eax
call fcn.00421a10
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [eax + 0x1f]
and eax, 0xfffffff0
call fcn.00422c50
mov eax, dword [ebp - 0x10]
lea esi, [esp + 0x23]
and esi, 0xfffffff0
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_strcpy
mov byte [esi + edi], 0
mov eax, 0x6769726f
mov dword [esi + edi - 4], eax
jmp 0x402486
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Cannot_back_up__s_as__s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 8], edx
call fcn.00417550
jmp 0x4024f3
Function at 0x402590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x2c
mov dword [ebp - 0x18], 0
mov ebx, eax
mov byte [ebp - 0x19], 0x22
movzx ecx, byte [eax]
cmp cl, 0x22
sete al
cmp cl, 0x27
sete dl
or eax, edx
test al, 1
je 0x4025cb
mov byte [ebp - 0x19], cl
inc ebx
sub esi, 2
mov dword [ebp - 0x18], 1
movsx edi, byte [ebp - 0x19]
mov eax, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, ebx
lea ebx, [ebx + esi]
xor ecx, ecx
cmp eax, ebx
jae 0x402619
nop
lea esi, [esi]
movsx edx, byte [eax]
cmp edx, 0x23
je 0x402640
cmp edx, 0x26
mov ecx, 1
je 0x402614
xor ecx, ecx
inc eax
cmp eax, ebx
jb 0x402600
cmp dword [ebp - 0x18], 1
mov dword [esp], edi
mov eax, dword [ebp + 8]
sbb ebx, 0xffffffff
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
jne 0x402612
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ecx, 1
mov dword [esp + 0xc], eax
mov eax, ebx
sub eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.cygwin1.dll_fwrite
jmp 0x402619
Function at 0x4053a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x438b14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x40553e
mov dword [esp], 0
call sub.cygwin1.dll_time
mov dword [0x430100], eax
mov eax, 0x428708
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll__fopen64
test eax, eax
mov esi, eax
je 0x4054c7
mov dword [esp + 0xc], eax
mov eax, 0x14
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], str._HTTP_cookie_file._n
call sub.cygwin1.dll_fwrite
mov dword [esp], 0x430100
call fcn.004202c0
mov dword [esp + 8], eax
mov eax, str._Generated_by_Wget_on__s._n
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_fprintf
mov dword [esp + 0xc], esi
mov ecx, 0x1a
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], str._Edit_at_your_own_risk._n_n
call sub.cygwin1.dll_fwrite
mov dword [esp + 8], esi
mov eax, 0x405290
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0040c9a0
test byte [esi + 0xc], 0x40
jne 0x405490
mov dword [esp], esi
call sub.cygwin1.dll_fclose
test eax, eax
js 0x405504
mov eax, dword [0x438b14]
test eax, eax
jne 0x405553
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Error_writing_to___s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], 1
call fcn.00417550
jmp 0x40546a
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Cannot_open_cookies_file___s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], 1
call fcn.00417550
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.Error_closing___s:__s_n
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], 1
call fcn.00417550
jmp 0x40547a
mov dword [esp + 4], edi
mov dword [esp], str.Saving_cookies_to__s._n
call fcn.004174e0
jmp 0x4053bc
mov dword [ebp + 8], str.Done_saving_cookies._n
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004174e0
Function at 0x414ff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x42b596
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4151ae
mov esi, 1
mov edi, 1
mov dword [0x4321d0], esi
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00421590
test eax, eax
mov esi, eax
je 0x4150ff
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
mov eax, esi
mov dword [ebp - 0x14], 0
call fcn.00414d60
cmp eax, 1
je 0x4150d3
jb 0x415150
cmp eax, 2
je 0x4151a5
cmp eax, 3
jne 0x415200
mov dword [esp], str._s:_Unknown_command___s_in__s_at_line__d._n
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], edi
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [0x4389d0]
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x415123
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x415140
mov dword [esp], esi
call fcn.004228c0
mov eax, dword [ebp - 0x20]
inc edi
mov dword [esp], eax
call fcn.00421590
test eax, eax
mov esi, eax
jne 0x415050
mov edx, dword [ebp - 0x20]
xor ebx, ebx
mov dword [0x4321d0], ebx
mov dword [esp], edx
call sub.cygwin1.dll_fclose
xor eax, eax
cmp dword [ebp - 0x24], 0
sete al
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.004228c0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4150e1
lea esi, [esi]
lea edi, [edi]
mov dword [esp], eax
call fcn.004228c0
jmp 0x4150e1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [esp], ecx
call fcn.00414f50
test eax, eax
jne 0x4150d3
mov dword [esp], str._s:_Error_in__s_at_line__d._n
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov edx, dword [0x4389d0]
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4150d0
mov dword [esp], str._s:_Syntax_error_in__s_at_line__d._n
jmp 0x415170
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], 0x42b60c
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov esi, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], ebx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov edx, dword [0x4389d0]
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, 1
jmp 0x41511b
call sub.cygwin1.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4154c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
add eax, 0x21
and eax, 0xfffffff0
call fcn.00422c50
lea esi, [esp + 0x1b]
and esi, 0xfffffff0
lea eax, [esi + 2]
mov byte [esi], 0x2d
mov byte [esi + 1], 0x2d
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
test edi, edi
je 0x41552c
mov eax, dword [ebp + 8]
call fcn.00414cb0
mov dword [esp], edi
mov edx, esi
call fcn.00414f50
test eax, eax
je 0x41554c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str._home_eblake_wget_1.10.2_2_src_wget_1.10.2_src_init.c
mov ecx, str.val___NULL
mov edx, 0x27d
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.cygwin1.dll___assert
jmp 0x415509
mov dword [esp], 2
call sub.cygwin1.dll_exit
nop
lea esi, [esi]

Function at 0x415560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
push esi
lea edx, [ebp - 0x14]
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov eax, esi
call fcn.00414d60
test eax, eax
jne 0x4155b8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [esp], ecx
call fcn.00414f50
test eax, eax
je 0x4155e8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004228c0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004228c0
add esp, 0x20
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str._s:_Invalid___execute_command___s_n
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], esi
mov edx, dword [0x4389d0]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 2
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
Function at 0x416fa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ebx
test esi, esi
je 0x416fe7
mov ecx, dword [ebp + 0xc]
mov eax, 0x42b9a0
test ecx, ecx
je 0x416fe0
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll__fopen64
mov dword [0x4321f8], eax
test eax, eax
je 0x417014
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 0x42b9a2
jmp 0x416fbf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [0x4321f8], eax
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp], eax
call sub.cygwin1.dll_isatty
test eax, eax
je 0x416fd4
mov eax, 1
mov dword [0x432218], eax
jmp 0x416fd4
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], ebx
mov edx, dword [0x4389d0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov edx, str._s:__s:__s_n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
Function at 0x41ccf0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov ebx, eax
mov eax, dword [0x438b20]
cdq
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00421e50
lea ebx, [ebx + eax + 0x20]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.00422c50
lea edx, [esp + 0x1f]
mov eax, ebx
and edx, 0xfffffff0
mov dword [ebp - 0x7c], edx
call fcn.00422c50
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x78]
lea edi, [esp + 0x1f]
mov dword [esp + 4], eax
and edi, 0xfffffff0
mov dword [esp], edx
call sub.cygwin1.dll__stat64
test eax, eax
jne 0x41cd70
mov eax, dword [ebp - 0x68]
and eax, 0xf000
cmp eax, 0x8000
jne 0x41ce04
lea esi, [esi]
mov esi, dword [0x438b20]
cmp esi, 1
jle 0x41cdd4
nop
lea esi, [esi]
mov eax, dword [ebp + 8]
lea ebx, [esi - 1]
mov edx, dword [ebp - 0x7c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, 0x42ed88
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.cygwin1.dll_sprintf
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, 0x42ed88
mov dword [esp + 4], eax
call sub.cygwin1.dll_sprintf
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x7c]
mov dword [esp], edx
call sub.cygwin1.dll_rename
cmp esi, 1
jg 0x41cd80
mov dword [esp], edi
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, 0x42ed88
mov dword [esp + 4], eax
call sub.cygwin1.dll_sprintf
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll_rename
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x420350
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [esp], 0
call sub.cygwin1.dll_time
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_utime
inc eax
je 0x420387
add esp, 0x24
pop ebx
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], ebx
mov ebx, str.utime__s_:__s_n
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp], 1
call fcn.00417550
add esp, 0x24
pop ebx
pop ebp
ret

Function at 0x420e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push ebx
sub esp, 0x10
mov eax, dword [0x438a28]
test eax, eax
je 0x420ef0
call sub.cygwin1.dll_fork
test eax, eax
mov ebx, eax
jl 0x420f25
jne 0x420f3d
call sub.cygwin1.dll_setsid
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 4]
mov dword [esp], str._dev_null
mov esi, 0x42f9f3
mov dword [esp + 8], eax
mov eax, 0x42f9ff
mov dword [esp + 4], eax
call sub.cygwin1.dll__freopen64
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], str._dev_null
mov dword [esp + 8], eax
mov eax, 0x42f9f3
mov dword [esp + 4], eax
call sub.cygwin1.dll__freopen64
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], esi
mov dword [esp], str._dev_null
mov dword [esp + 8], eax
call sub.cygwin1.dll__freopen64
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str.wget_log
mov eax, 0x438a28
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.00420dc0
test eax, eax
je 0x420e67
mov dword [esp], eax
mov esi, 1
call sub.cygwin1.dll_fclose
jmp 0x420e67
mov dword [esp], str.fork
call sub.cygwin1.dll_perror
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov dword [esp], str.Continuing_in_background__pid__d._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.cygwin1.dll_printf
test esi, esi
jne 0x420f65
mov dword [esp], 0
call sub.cygwin1.dll_exit
mov dword [esp], str.Output_will_be_written_to___s._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp], eax
mov edx, dword [0x438a28]
mov dword [esp + 4], edx
call sub.cygwin1.dll_printf
jmp 0x420f59
Function at 0x420f90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
add eax, 0x1f
and eax, 0xfffffff0
call fcn.00422c50
mov dword [esp + 4], ebx
lea esi, [esp + 0x17]
and esi, 0xfffffff0
mov dword [esp], esi
xor ebx, ebx
call sub.cygwin1.dll_strcpy
cmp byte [esi], 0x2f
sete bl
movzx ecx, byte [esi + ebx]
test cl, cl
setne al
xor edx, edx
cmp cl, 0x2f
setne dl
test eax, edx
je 0x421006
jmp 0x420ff0
inc ebx
movzx ecx, byte [esi + ebx]
test cl, cl
setne al
xor edx, edx
cmp cl, 0x2f
setne dl
test eax, edx
jne 0x420ff0
test cl, cl
jne 0x42100f
mov edi, 1
mov byte [esi + ebx], 0
mov dword [esp], esi
call fcn.00420470
xor edx, edx
test eax, eax
je 0x42102c
test edi, edi
jne 0x421043
mov byte [esi + ebx], 0x2f
inc ebx
jmp 0x420ff1
mov dword [esp], esi
mov eax, 0x1ff
mov dword [esp + 4], eax
call sub.cygwin1.dll_mkdir
test edi, edi
mov edx, eax
je 0x421025
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x422280
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
jmp 0x4222f7
movzx eax, byte [ebx]
add esi, 3
shr al, 2
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
and edx, 3
shr al, 4
shl edx, 4
movzx eax, al
movzx eax, byte [edx + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 1]
shr al, 6
and edx, 0xf
movzx eax, al
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
cmp esi, edi
jl 0x422293
lea eax, [edi + 1]
cmp eax, esi
je 0x42231c
lea eax, [edi + 2]
cmp eax, esi
je 0x422318
mov byte [ecx], 0
mov ebx, dword [ebp + 0x10]
sub ecx, ebx
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret
mov byte [ecx - 2], 0x3d
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov ebx, dword [ebp + 0x10]
sub ecx, ebx
pop ebx
mov eax, ecx
pop esi
pop edi
pop ebp
ret

Function at 0x422750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], esi
mov esi, eax
call fcn.00416f80
mov dword [esp], str._s:__s:_Failed_to_allocate__ld_bytes__memory_exhausted._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [0x4389d0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp], 3
call fcn.00417550
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]