joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec58
Capabilities:
Hash data using crc32b
Hash data with crc32

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
test ebx, ebx
jne 0x40ec6b
shl eax, 0x18
mov ecx, 8
mov esi, eax
test ebx, ebx
je 0x40ec86
and esi, 1
shr eax, 1
test esi, esi
je 0x40ec91
xor eax, 0xedb88320
jmp 0x40ec91
add eax, eax
test esi, esi
jns 0x40ec91
xor eax, 0x4c11db7
dec ecx
jne 0x40ec70
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, 0x100
jne 0x40ec62
pop ebx
pop esi
pop ebp
ret

Function at 0x410390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov ebx, dword [eax]
cmp byte [ebx], 0
je 0x410489
lea eax, [ebp - 0x1a]
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00434bb4
mov esi, eax
test eax, eax
jle 0x410425
movzx eax, word [ebp - 0x1a]
mov dword [esp], eax
call sub.cygwin1.dll_wcwidth
mov edi, eax
test eax, eax
js 0x410431
cmp dword [ebp + 0x14], 0
je 0x410400
movzx eax, word [ebp - 0x1a]
cmp ax, 0xff
ja 0x410400
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
jne 0x410431
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x2c]
cmp eax, edi
jl 0x410489
cmp dword [ebp + 0x10], 0
je 0x41047f
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
jmp 0x410477
movzx eax, byte [ebx]
mov esi, 1
mov word [ebp - 0x1a], ax
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 0x2c]
test edi, edi
jle 0x410489
cmp dword [ebp + 0x18], 0
je 0x41045e
movzx eax, word [ebp - 0x1a]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [ebp + 0x18]
mov edi, eax
test eax, eax
jns 0x41047f
jmp 0x410489
cmp dword [ebp + 0x10], 0
je 0x41047f
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.cygwin1.dll_fwrite
add dword [ebp - 0x2c], edi
add ebx, esi
jmp 0x4103a5
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x411ff4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
je 0x41209d
mov edi, 0xfffffffe
test esi, esi
je 0x41201c
mov edi, dword [esi + 0x74]
xor eax, eax
test bl, 8
mov dword [esp], edi
sete al
add eax, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x78]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.cygwin1.dll_fstatat
mov edx, eax
test eax, eax
jne 0x412106
mov eax, dword [ebp - 0x68]
and eax, 0xf000
cmp eax, 0xa000
jne 0x41208a
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0xfff
mov dword [esp + 8], 0x43b340
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_readlinkat
test eax, eax
js 0x412106
mov byte [eax + 0x43b340], 0
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], edx
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov edx, dword [ebp - 0x7c]
jmp 0x4120a1
xor edx, edx
xor eax, eax
add eax, 0x81
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
add eax, edx
mov dword [esp], eax
call fcn.00439aa0
cmp dword [ebp + 0xc], 0
mov dword [eax + 4], esi
mov ebx, eax
je 0x412174
lea eax, [eax + 0x10]
lea esi, [ebp - 0x78]
mov ecx, 0x18
mov edi, eax
mov eax, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], eax
lea eax, [ebx + 0x79]
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
mov edx, dword [ebp - 0x80]
test edx, edx
je 0x412174
mov eax, dword [ebp - 0x7c]
mov esi, 0x43b340
mov ecx, edx
add eax, ebx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x70], eax
jmp 0x412174
and bl, 0x10
jne 0x412167
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004204b0
test eax, eax
jne 0x412167
test esi, esi
je 0x412137
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00412290
mov ebx, eax
mov eax, 0x44124c
jmp 0x41213e
mov ebx, 0x44124e
mov eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], str._s_s_s
call fcn.00427b14
test esi, esi
je 0x412172
mov dword [esp], ebx
call sub.cygwin1.dll_free
jmp 0x41216b
test esi, esi
je 0x412172
mov dword [esi + 0x70], 1
xor ebx, ebx
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x412a08
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, 0x42c268
push ebx
sub esp, 0x2c
mov eax, dword [0x440280]
mov eax, dword [eax]
mov bl, byte [eax]
mov eax, 0x42281c
mov dword [0x43c7c4], 0x67452301
mov dword [0x43c7c8], 0xefcdab89
mov dword [0x43c7cc], 0x98badcfe
cmp bl, 0x73
mov dword [0x43c7d0], 0x10325476
cmovne esi, eax
mov dword [0x43c7d4], 0xc3d2e1f0
mov dword [0x43c7f0], 0
mov dword [0x43c7f4], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x43f280
mov dword [esp], edi
call sub.cygwin1.dll_read
mov edx, eax
test eax, eax
jle 0x412a9e
mov ecx, esi
mov eax, 0x43f280
call fcn.0041e7dc
jmp 0x412a72
mov eax, dword [0x43c7f0]
mov edx, dword [0x43c7f4]
mov byte [ebp - 0x21], pe_nt_image_headers32
shld edx, eax, 3
shl eax, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x21]
mov ecx, esi
mov edx, 1
call fcn.0041e7dc
mov eax, dword [0x43c7f0]
mov byte [ebp - 0x21], 0
and eax, 0x3f
cmp eax, 0x38
jne 0x412aba
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp bl, 0x73
jne 0x412af5
call fcn.00401ff0
mov edx, eax
mov eax, ecx
call fcn.00401ff0
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edx, 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov ecx, esi
xor esi, esi
call fcn.0041e7dc
cmp bl, 0x73
jne 0x412b8a
xor ebx, ebx
mov eax, ebx
mov ecx, ebx
mov dword [esp + 4], 0x451038
sar eax, 2
not ecx
mov eax, dword [eax*4 + 0x43c7c4]
and ecx, 3
shl ecx, 3
shr eax, cl
movzx eax, al
mov dword [esp + 8], eax
lea eax, [ebx + ebx]
inc ebx
add eax, 0x43f280
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
cmp ebx, 0x14
jne 0x412b13
mov edx, 0x43c7c4
xor eax, eax
mov ecx, 0x1d
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp], 0x43f280
call sub.cygwin1.dll_strlen
mov ecx, 0x1000
lea edx, [eax + 1]
sub ecx, edx
lea edx, [eax + 0x43f281]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x43c7c4]
call fcn.00401ff0
mov dword [esp + 4], 0x45103d
mov dword [esp + 8], eax
lea eax, [esi + esi]
add esi, 4
add eax, 0x43f280
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
cmp esi, 0x10
jne 0x412b8a
jmp 0x412b50
Function at 0x41b150
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x2c
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41b16d
lea eax, [edx + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 4]
test esi, esi
je 0x41b2b2
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.004124cc
mov eax, dword [0x43c7c8]
cmp eax, 0xffffffff
je 0x41b1de
cmp dword [ebx + 8], 0
je 0x41b1be
test edi, edi
je 0x41b1be
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41b1be
mov eax, dword [ecx + 0x74]
add edi, 0x79
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
mov esi, eax
test eax, eax
jne 0x41b1d1
mov dword [ebp - 0x20], 1
jmp 0x41b1e5
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
mov esi, eax
test eax, eax
je 0x41b1de
mov edi, 0x455195
mov dword [esp], edi
call fcn.00427b40
jmp 0x41b2b2
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0x10]
lea eax, [eax*4 + 4]
mov dword [esp], eax
call fcn.00437aac
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
test edx, edx
jns 0x41b21a
mov edx, dword [ebx + 0x10]
mov edi, eax
lea ecx, [edx*4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
jmp 0x41b267
lea ecx, [edx*4]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 8]
lea edi, [eax + edx*4]
mov dword [ebp - 0x24], edi
test ecx, ecx
je 0x41b241
mov esi, dword [ecx + 8]
inc edx
mov dword [eax + edx*4 - 4], esi
mov ecx, dword [ecx]
jmp 0x41b22b
mov esi, dword [ebx + 0x18]
lea edi, [eax + edx*4]
mov ecx, esi
not ecx
add ecx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x24], ecx
lea ecx, [ecx*4]
lea esi, [ebx + esi*4 + 4]
mov ebx, dword [ebp - 0x24]
rep movsb byte es:[edi], byte [esi]
lea ecx, [edx + ebx]
mov dword [eax + ecx*4], 0
mov dword [esp], eax
call fcn.004382c8
mov dword [esp + 4], 0x4217b0
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.004217e4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
je 0x41b2b2
mov eax, dword [0x43c7c8]
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41e3fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp word [0x4402a2], 0
je 0x41e431
cmp byte [0x43c9ac], 0
je 0x41e431
mov dword [esp + 8], 0x43c980
mov dword [esp + 4], 3
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
mov dword [esp + 8], 0x72
mov dword [esp + 4], str._r_nConsole_escape._Commands_are:_r_n_n_l__go_to_line_mode_r_n_c__go_to_character_mode_r_n_z__suspend_telnet_r_n_e__exit_telnet_r_n
mov dword [esp], 1
call fcn.004387e0
lea eax, [ebp - 9]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.cygwin1.dll_read
test eax, eax
jg 0x41e49d
cmp byte [0x43c9ac], 0
je 0x41e491
mov dword [esp + 8], 0x43c954
mov dword [esp + 4], 3
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
mov dword [esp], 0
call sub.cygwin1.dll_exit
mov al, byte [ebp - 9]
cmp al, 0x6c
je 0x41e4c0
ja 0x41e4b3
cmp al, 0x63
je 0x41e50b
cmp al, 0x65
je 0x41e46c
jmp 0x41e5d0
cmp al, 0x7a
je 0x41e572
jmp 0x41e5d0
cmp word [0x4402a2], 0
jne 0x41e5d0
and byte [0x43c9ae], 0xfc
mov byte [0x43c9ad], 0
call fcn.0042bcbc
mov dword [esp + 0x18], 3
mov dword [esp + 0x14], 0xfe
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xfe
jmp 0x41e554
cmp word [0x4402a2], 0
je 0x41e5d0
or byte [0x43c9ae], 3
mov byte [0x43c9ad], 0
call fcn.0042bcbc
mov dword [esp + 0x18], 3
mov dword [esp + 0x14], 0xfd
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xfd
mov dword [esp + 4], 0xff
mov dword [esp], 6
call fcn.004292c0
call fcn.0041b2bc
jmp 0x41e61b
cmp byte [0x43c9ac], 0
je 0x41e597
mov dword [esp + 8], 0x43c954
mov dword [esp + 4], 3
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
mov dword [esp + 4], 0x12
mov dword [esp], 0
call sub.cygwin1.dll_kill
cmp byte [0x43c9ac], 0
je 0x41e5d0
mov dword [esp + 8], 0x43c980
mov dword [esp + 4], 3
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
mov dword [esp + 8], 0xf
mov dword [esp + 4], str.continuing..._r_n
mov dword [esp], 1
call fcn.004387e0
cmp word [0x4402a2], 0
je 0x41e61b
cmp byte [0x43c9ac], 0
je 0x41e61b
mov dword [esp + 8], 0x43c954
mov dword [esp + 4], 3
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
mov word [0x4402a2], 0
leave
ret
Function at 0x421a30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
movzx eax, bl
cmp eax, dword [0x43c7cc]
jl 0x421b5d
cmp byte [0x43c7d4], 0
jne 0x421aab
mov eax, dword [0x43c7c4]
test eax, eax
je 0x421aab
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0x209
mov dword [esp], eax
call sub.cygwin1.dll__open64
mov esi, eax
cmp eax, 0xffffffff
jne 0x421a93
mov eax, dword [0x43c7c4]
mov dword [esp], 0x452ca8
mov dword [esp + 4], eax
call fcn.00427b14
jmp 0x421aab
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.cygwin1.dll_dup2
mov dword [esp], esi
call sub.cygwin1.dll_close
lea eax, [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], 0
mov dword [esp + 8], eax
call sub.cygwin1.dll_vsnprintf
lea edi, [eax + 1]
mov dword [ebp - 0x1c], eax
mov dword [esp], edi
call fcn.00439aa0
mov dword [esp + 4], edi
mov esi, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.cygwin1.dll_vsnprintf
cmp byte [0x43c7d4], 0
jne 0x421b09
cmp dword [0x43c7c4], 0
je 0x421b36
mov dword [esp], 0
call fcn.004013ac
mov eax, dword [ebp - 0x1c]
cmp bl, 9
mov byte [esi + eax], 0xa
sbb eax, eax
add eax, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00436ac8
jmp 0x421b55
cmp bl, 9
mov dword [esp + 8], esi
sbb eax, eax
mov dword [esp + 4], 0x452cac
and eax, 3
add eax, 3
mov dword [esp], eax
call sub.cygwin1.dll_syslog
mov dword [esp], esi
call sub.cygwin1.dll_free
test bl, bl
jne 0x421b6d
mov dword [esp], 0x14
call sub.cygwin1.dll_exit
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x422fcc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x78]
push ebx
sub esp, 0x8c
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_fstatat
test eax, eax
jne 0x42301b
mov eax, dword [ebp - 0x68]
mov edi, esi
and eax, 0xf000
cmp eax, 0x4000
je 0x42301d
call sub.cygwin1.dll___errno
mov dword [eax], 0x11
jmp 0x42307a
mov edi, esi
mov eax, dword [ebp + 0x14]
shr eax, 1
mov dword [ebp - 0x7c], eax
mov bl, byte [edi]
mov eax, dword [0x44029c]
cmp bl, 0x2f
jne 0x42304c
test byte [ebp - 0x7c], 1
je 0x42303b
cmp edi, esi
jne 0x42303e
inc edi
jmp 0x423025
not eax
mov byte [edi], 0
and eax, 0x13f
or al, 0xc0
jmp 0x42305d
test bl, bl
jne 0x42303b
test byte [ebp + 0x14], 1
je 0x4230f2
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_mkdirat
test eax, eax
je 0x4230b5
test byte [ebp + 0x14], 2
jne 0x423081
mov eax, 1
jmp 0x4230f4
call sub.cygwin1.dll___errno
cmp dword [eax], 0x11
je 0x4230e8
mov dword [esp + 4], str._drives_
mov dword [esp], esi
call sub.cygwin1.dll_strstr
test eax, eax
jne 0x4230e8
mov dword [esp + 4], str._cygdrive_
mov dword [esp], esi
call sub.cygwin1.dll_strstr
test eax, eax
jne 0x4230e8
jmp 0x42307a
test byte [ebp + 0x14], 4
je 0x4230e8
mov eax, dword [0x440280]
mov edx, dword [eax]
mov dword [ebp - 0x80], edx
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x80]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str._s:_created_directory__s_n
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov byte [edi], bl
test bl, bl
jne 0x42303b
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42713c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x440290]
and eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov ebx, dword [0x43c7c0]
xor esi, esi
cmp dword [ebp - 0x30], 0
je 0x42716d
mov edx, dword [0x43f280]
jmp 0x427186
mov eax, dword [ebp - 0x2c]
cmp dword [0x43c7c4], eax
jle 0x4272ff
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax*4 + 0x43f280]
mov dword [ebp - 0x20], 0
test edx, edx
je 0x4271c2
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov dword [ebp - 0x34], edx
call sub.cygwin1.dll_getline
mov edx, dword [ebp - 0x34]
test eax, eax
mov edi, eax
jle 0x427314
test esi, esi
cmove esi, dword [ebp - 0x2c]
jmp 0x4272ac
xor edi, edi
cmp dword [ebp - 0x30], 0
jne 0x427335
mov eax, dword [ebp - 0x2c]
mov dword [eax*4 + 0x43f280], 0
test esi, esi
je 0x4272f7
mov eax, dword [0x43c7c0]
dec esi
cmp byte [eax], 0
je 0x42726b
cmp byte [ebx], 0x5c
jne 0x427225
movzx eax, byte [ebx + 1]
lea edx, [ebx + 2]
cmp al, 0x30
je 0x42726d
mov dword [esp], eax
call fcn.00433c2c
mov byte [ebp - 0x23], al
test al, al
jne 0x427218
lea edx, [ebx + 1]
mov ecx, 1
jmp 0x42726f
lea edx, [ebx + 2]
mov ecx, 1
lea ebx, [ebp - 0x23]
jmp 0x42726f
mov edx, ebx
lea eax, [ebp - 0x22]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x63
mov dword [esp], eax
mov dword [ebp - 0x34], edx
call fcn.00434bb4
mov edx, dword [ebp - 0x34]
test eax, eax
jle 0x427265
add edx, eax
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
call sub.cygwin1.dll_wcwidth
mov edx, dword [ebp - 0x34]
test eax, eax
je 0x427227
jns 0x427265
lea edx, [ebx + 1]
mov ecx, edx
sub ecx, ebx
jmp 0x42726f
mov edx, ebx
xor ecx, ecx
cmp byte [edx], 0
jne 0x42727a
mov edx, dword [0x43c7c0]
test ecx, ecx
je 0x4272aa
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
call sub.cygwin1.dll___getreent
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.cygwin1.dll_fwrite
mov edx, dword [ebp - 0x34]
mov ebx, edx
test esi, esi
jne 0x4271e4
test edi, edi
jle 0x4272f2
call sub.cygwin1.dll___getreent
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 8]
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
xor edx, edx
cmp byte [ecx + edi - 1], 0xa
sete dl
mov dword [esp], ecx
sub edi, edx
mov dword [esp + 4], edi
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov esi, 1
inc dword [ebp - 0x2c]
jmp 0x42715f
test esi, esi
je 0x427335
mov dword [esp], 0xa
call fcn.00438034
jmp 0x427150
mov dword [ebp - 0x34], edx
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x34]
cmp dword [eax + 4], edx
je 0x4271c4
mov dword [esp], edx
call sub.cygwin1.dll_fclose
jmp 0x4271c4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x429bc4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov edi, dword [ebp - 0x2c]
mov eax, esi
mov ecx, 0x83
mov dword [ebp - 0x1c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0x20c
mov dword [esp], eax
call sub.cygwin1.dll_recvfrom
mov edi, eax
test eax, eax
jns 0x429c42
call sub.cygwin1.dll___errno
cmp dword [eax], 0xb
jne 0x429c2c
mov dword [esp], str.server_read_timed_out
jmp 0x429c3d
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x429bd7
mov dword [esp], str.server_read_failed
call fcn.00427b14
add esp, 0x4c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42b8d8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [esp], ecx
call fcn.00419104
mov dword [esp + 4], ebx
mov dword [esp], 0x43f484
mov byte [0x43f481], 5
call sub.cygwin1.dll_strcpy
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
mov dword [esp + 0x14], edi
add eax, 5
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov eax, dword [0x43c7c4]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x43f480
mov dword [esp], eax
call sub.cygwin1.dll_sendto
test eax, eax
jns 0x42b94a
mov dword [esp], str.sendto_failed
call fcn.00427acc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x430910
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov dword [ebp - 0x28], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x20]
xor eax, eax
mov ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp], ebx
call sub.cygwin1.dll_isatty
lea edx, [ebp - 0x20]
test eax, eax
je 0x43097b
mov dword [esp + 8], edx
mov dword [esp + 4], 0x5401
mov dword [esp], ebx
call sub.cygwin1.dll_ioctl
test eax, eax
jne 0x43097b
movzx eax, word [ebp - 0x1e]
test ax, ax
je 0x43096d
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0x20]
test ax, ax
je 0x430981
mov dword [ebp - 0x24], eax
jmp 0x430981
inc ebx
cmp ebx, 3
jne 0x43092c
mov dword [esp], str.COLUMNS
call sub.cygwin1.dll_getenv
test eax, eax
je 0x4309a8
lea edx, [ebp - 0x28]
mov dword [esp + 4], 0x441665
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll_sscanf
mov dword [esp], str.LINES
call sub.cygwin1.dll_getenv
test eax, eax
je 0x4309cf
lea edx, [ebp - 0x24]
mov dword [esp + 4], 0x441665
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll_sscanf
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x28]
je 0x4309ec
test eax, eax
je 0x430a08
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
jne 0x4309f0
mov eax, 1
jmp 0x430a0e
test esi, esi
je 0x4309f9
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x4309f9
mov dword [esi], edx
test eax, eax
jne 0x4309e5
xor eax, eax
cmp dword [ebp - 0x24], 0
setne al
jmp 0x430a0e
test esi, esi
jne 0x4309f0
jmp 0x4309fd
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_sendto
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x436abb
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x436a77
mov dword [esp], str.server_write_failed
call fcn.00427b14
mov eax, dword [ebp - 0x1c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x437280
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.cygwin1.dll_chdir
test eax, eax
je 0x4372a6
mov dword [esp + 4], ebx
mov dword [esp], str.chdir__s
call fcn.00427acc
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x4372ac
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.cygwin1.dll_chroot
test eax, eax
je 0x4372d2
mov dword [esp + 4], ebx
mov dword [esp], str.chroot__s
call fcn.0041909c
mov dword [ebp + 8], 0x44194b
add esp, 0x14
pop ebx
pop ebp
jmp fcn.00437280